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 |
| 804 | with_cxx_main |
| 805 | with_suffix |
| 806 | enable_shared |
| 807 | enable_profiling |
| 808 | with_pydebug |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 809 | with_hash_algorithm |
Charles-François Natali | d30b022 | 2014-05-08 23:08:51 +0100 | [diff] [blame] | 810 | with_address_sanitizer |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 811 | with_libs |
| 812 | with_system_expat |
| 813 | with_system_ffi |
Stefan Krah | 60187b5 | 2012-03-23 19:06:27 +0100 | [diff] [blame] | 814 | with_system_libmpdec |
Benjamin Peterson | 076ed00 | 2010-10-31 17:11:02 +0000 | [diff] [blame] | 815 | enable_loadable_sqlite_extensions |
Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 816 | with_tcltk_includes |
| 817 | with_tcltk_libs |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 818 | with_dbmliborder |
| 819 | with_signal_module |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 820 | with_threads |
| 821 | with_thread |
| 822 | enable_ipv6 |
| 823 | with_doc_strings |
| 824 | with_tsc |
| 825 | with_pymalloc |
| 826 | with_valgrind |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 827 | with_fpectl |
| 828 | with_libm |
| 829 | with_libc |
| 830 | enable_big_digits |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 831 | with_computed_gotos |
Ned Deily | 322f5ba | 2013-11-21 23:01:59 -0800 | [diff] [blame] | 832 | with_ensurepip |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 833 | ' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 834 | ac_precious_vars='build_alias |
| 835 | host_alias |
| 836 | target_alias |
doko@python.org | eab42bf | 2013-01-26 18:57:19 +0100 | [diff] [blame] | 837 | MACHDEP |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 838 | CC |
| 839 | CFLAGS |
| 840 | LDFLAGS |
| 841 | LIBS |
| 842 | CPPFLAGS |
Victor Stinner | 8291b5e | 2015-03-20 16:03:14 +0100 | [diff] [blame] | 843 | CPP |
| 844 | PKG_CONFIG |
| 845 | PKG_CONFIG_PATH |
| 846 | PKG_CONFIG_LIBDIR' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 847 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 848 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 849 | # Initialize some variables set by options. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 850 | ac_init_help= |
| 851 | ac_init_version=false |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 852 | ac_unrecognized_opts= |
| 853 | ac_unrecognized_sep= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 854 | # The variables have the same names as the options, with |
| 855 | # dashes changed to underlines. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 856 | cache_file=/dev/null |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 857 | exec_prefix=NONE |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 858 | no_create= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 859 | no_recursion= |
| 860 | prefix=NONE |
| 861 | program_prefix=NONE |
| 862 | program_suffix=NONE |
| 863 | program_transform_name=s,x,x, |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 864 | silent= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 865 | site= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 866 | srcdir= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 867 | verbose= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 868 | x_includes=NONE |
| 869 | x_libraries=NONE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 870 | |
| 871 | # Installation directory options. |
| 872 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 873 | # and all the variables that are supposed to be based on exec_prefix |
| 874 | # by default will actually change. |
| 875 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 876 | # (The list follows the same order as the GNU Coding Standards.) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 877 | bindir='${exec_prefix}/bin' |
| 878 | sbindir='${exec_prefix}/sbin' |
| 879 | libexecdir='${exec_prefix}/libexec' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 880 | datarootdir='${prefix}/share' |
| 881 | datadir='${datarootdir}' |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 882 | sysconfdir='${prefix}/etc' |
| 883 | sharedstatedir='${prefix}/com' |
| 884 | localstatedir='${prefix}/var' |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 885 | includedir='${prefix}/include' |
| 886 | oldincludedir='/usr/include' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 887 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 888 | infodir='${datarootdir}/info' |
| 889 | htmldir='${docdir}' |
| 890 | dvidir='${docdir}' |
| 891 | pdfdir='${docdir}' |
| 892 | psdir='${docdir}' |
| 893 | libdir='${exec_prefix}/lib' |
| 894 | localedir='${datarootdir}/locale' |
| 895 | mandir='${datarootdir}/man' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 896 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 897 | ac_prev= |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 898 | ac_dashdash= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 899 | for ac_option |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 900 | do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 901 | # If the previous option needs an argument, assign it. |
| 902 | if test -n "$ac_prev"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 903 | eval $ac_prev=\$ac_option |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 904 | ac_prev= |
| 905 | continue |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 906 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 907 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 908 | case $ac_option in |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 909 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 910 | *=) ac_optarg= ;; |
| 911 | *) ac_optarg=yes ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 912 | esac |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 913 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 914 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 915 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 916 | case $ac_dashdash$ac_option in |
| 917 | --) |
| 918 | ac_dashdash=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 919 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 920 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 921 | ac_prev=bindir ;; |
| 922 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 923 | bindir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 924 | |
| 925 | -build | --build | --buil | --bui | --bu) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 926 | ac_prev=build_alias ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 927 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 928 | build_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 929 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 930 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 931 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 932 | ac_prev=cache_file ;; |
| 933 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 934 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 935 | cache_file=$ac_optarg ;; |
| 936 | |
| 937 | --config-cache | -C) |
| 938 | cache_file=config.cache ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 939 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 940 | -datadir | --datadir | --datadi | --datad) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 941 | ac_prev=datadir ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 942 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 943 | datadir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 944 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 945 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 946 | | --dataroo | --dataro | --datar) |
| 947 | ac_prev=datarootdir ;; |
| 948 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 949 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 950 | datarootdir=$ac_optarg ;; |
| 951 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 952 | -disable-* | --disable-*) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 953 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 954 | # Reject names that are not valid shell variable names. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 955 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 956 | as_fn_error $? "invalid feature name: $ac_useropt" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 957 | ac_useropt_orig=$ac_useropt |
| 958 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 959 | case $ac_user_opts in |
| 960 | *" |
| 961 | "enable_$ac_useropt" |
| 962 | "*) ;; |
| 963 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 964 | ac_unrecognized_sep=', ';; |
| 965 | esac |
| 966 | eval enable_$ac_useropt=no ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 967 | |
| 968 | -docdir | --docdir | --docdi | --doc | --do) |
| 969 | ac_prev=docdir ;; |
| 970 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 971 | docdir=$ac_optarg ;; |
| 972 | |
| 973 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 974 | ac_prev=dvidir ;; |
| 975 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 976 | dvidir=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 977 | |
| 978 | -enable-* | --enable-*) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 979 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 980 | # Reject names that are not valid shell variable names. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 981 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 982 | as_fn_error $? "invalid feature name: $ac_useropt" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 983 | ac_useropt_orig=$ac_useropt |
| 984 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 985 | case $ac_user_opts in |
| 986 | *" |
| 987 | "enable_$ac_useropt" |
| 988 | "*) ;; |
| 989 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 990 | ac_unrecognized_sep=', ';; |
| 991 | esac |
| 992 | eval enable_$ac_useropt=\$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 993 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 994 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 995 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 996 | | --exec | --exe | --ex) |
| 997 | ac_prev=exec_prefix ;; |
| 998 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 999 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 1000 | | --exec=* | --exe=* | --ex=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1001 | exec_prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1002 | |
| 1003 | -gas | --gas | --ga | --g) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1004 | # Obsolete; use --with-gas. |
| 1005 | with_gas=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1006 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1007 | -help | --help | --hel | --he | -h) |
| 1008 | ac_init_help=long ;; |
| 1009 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 1010 | ac_init_help=recursive ;; |
| 1011 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 1012 | ac_init_help=short ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1013 | |
| 1014 | -host | --host | --hos | --ho) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1015 | ac_prev=host_alias ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1016 | -host=* | --host=* | --hos=* | --ho=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1017 | host_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1018 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1019 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 1020 | ac_prev=htmldir ;; |
| 1021 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 1022 | | --ht=*) |
| 1023 | htmldir=$ac_optarg ;; |
| 1024 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1025 | -includedir | --includedir | --includedi | --included | --include \ |
| 1026 | | --includ | --inclu | --incl | --inc) |
| 1027 | ac_prev=includedir ;; |
| 1028 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 1029 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1030 | includedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1031 | |
| 1032 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 1033 | ac_prev=infodir ;; |
| 1034 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1035 | infodir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1036 | |
| 1037 | -libdir | --libdir | --libdi | --libd) |
| 1038 | ac_prev=libdir ;; |
| 1039 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1040 | libdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1041 | |
| 1042 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1043 | | --libexe | --libex | --libe) |
| 1044 | ac_prev=libexecdir ;; |
| 1045 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1046 | | --libexe=* | --libex=* | --libe=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1047 | libexecdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1048 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1049 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1050 | ac_prev=localedir ;; |
| 1051 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1052 | localedir=$ac_optarg ;; |
| 1053 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1054 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1055 | | --localstate | --localstat | --localsta | --localst | --locals) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1056 | ac_prev=localstatedir ;; |
| 1057 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1058 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1059 | localstatedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1060 | |
| 1061 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1062 | ac_prev=mandir ;; |
| 1063 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1064 | mandir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1065 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1066 | -nfp | --nfp | --nf) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1067 | # Obsolete; use --without-fp. |
| 1068 | with_fp=no ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1069 | |
| 1070 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1071 | | --no-cr | --no-c | -n) |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1072 | no_create=yes ;; |
| 1073 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1074 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1075 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1076 | no_recursion=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1077 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1078 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1079 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1080 | | --oldin | --oldi | --old | --ol | --o) |
| 1081 | ac_prev=oldincludedir ;; |
| 1082 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1083 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1084 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1085 | oldincludedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1086 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1087 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1088 | ac_prev=prefix ;; |
| 1089 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1090 | prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1091 | |
| 1092 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1093 | | --program-pre | --program-pr | --program-p) |
| 1094 | ac_prev=program_prefix ;; |
| 1095 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1096 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1097 | program_prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1098 | |
| 1099 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1100 | | --program-suf | --program-su | --program-s) |
| 1101 | ac_prev=program_suffix ;; |
| 1102 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1103 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1104 | program_suffix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1105 | |
| 1106 | -program-transform-name | --program-transform-name \ |
| 1107 | | --program-transform-nam | --program-transform-na \ |
| 1108 | | --program-transform-n | --program-transform- \ |
| 1109 | | --program-transform | --program-transfor \ |
| 1110 | | --program-transfo | --program-transf \ |
| 1111 | | --program-trans | --program-tran \ |
| 1112 | | --progr-tra | --program-tr | --program-t) |
| 1113 | ac_prev=program_transform_name ;; |
| 1114 | -program-transform-name=* | --program-transform-name=* \ |
| 1115 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1116 | | --program-transform-n=* | --program-transform-=* \ |
| 1117 | | --program-transform=* | --program-transfor=* \ |
| 1118 | | --program-transfo=* | --program-transf=* \ |
| 1119 | | --program-trans=* | --program-tran=* \ |
| 1120 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1121 | program_transform_name=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1122 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1123 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1124 | ac_prev=pdfdir ;; |
| 1125 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1126 | pdfdir=$ac_optarg ;; |
| 1127 | |
| 1128 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1129 | ac_prev=psdir ;; |
| 1130 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1131 | psdir=$ac_optarg ;; |
| 1132 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1133 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1134 | | -silent | --silent | --silen | --sile | --sil) |
| 1135 | silent=yes ;; |
| 1136 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1137 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1138 | ac_prev=sbindir ;; |
| 1139 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1140 | | --sbi=* | --sb=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1141 | sbindir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1142 | |
| 1143 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1144 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1145 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1146 | | --sha | --sh) |
| 1147 | ac_prev=sharedstatedir ;; |
| 1148 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1149 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1150 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1151 | | --sha=* | --sh=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1152 | sharedstatedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1153 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1154 | -site | --site | --sit) |
| 1155 | ac_prev=site ;; |
| 1156 | -site=* | --site=* | --sit=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1157 | site=$ac_optarg ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1158 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1159 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1160 | ac_prev=srcdir ;; |
| 1161 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1162 | srcdir=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1163 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1164 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1165 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1166 | ac_prev=sysconfdir ;; |
| 1167 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1168 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1169 | sysconfdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1170 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1171 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1172 | ac_prev=target_alias ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1173 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1174 | target_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1175 | |
| 1176 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1177 | verbose=yes ;; |
| 1178 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1179 | -version | --version | --versio | --versi | --vers | -V) |
| 1180 | ac_init_version=: ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1181 | |
| 1182 | -with-* | --with-*) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1183 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1184 | # Reject names that are not valid shell variable names. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1185 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1186 | as_fn_error $? "invalid package name: $ac_useropt" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1187 | ac_useropt_orig=$ac_useropt |
| 1188 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1189 | case $ac_user_opts in |
| 1190 | *" |
| 1191 | "with_$ac_useropt" |
| 1192 | "*) ;; |
| 1193 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1194 | ac_unrecognized_sep=', ';; |
| 1195 | esac |
| 1196 | eval with_$ac_useropt=\$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1197 | |
| 1198 | -without-* | --without-*) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1199 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1200 | # Reject names that are not valid shell variable names. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1201 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1202 | as_fn_error $? "invalid package name: $ac_useropt" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1203 | ac_useropt_orig=$ac_useropt |
| 1204 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1205 | case $ac_user_opts in |
| 1206 | *" |
| 1207 | "with_$ac_useropt" |
| 1208 | "*) ;; |
| 1209 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1210 | ac_unrecognized_sep=', ';; |
| 1211 | esac |
| 1212 | eval with_$ac_useropt=no ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1213 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1214 | --x) |
| 1215 | # Obsolete; use --with-x. |
| 1216 | with_x=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1217 | |
| 1218 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1219 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1220 | ac_prev=x_includes ;; |
| 1221 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1222 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1223 | x_includes=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1224 | |
| 1225 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1226 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1227 | ac_prev=x_libraries ;; |
| 1228 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1229 | | --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] | 1230 | x_libraries=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1231 | |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1232 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
| 1233 | Try \`$0 --help' for more information" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1234 | ;; |
| 1235 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1236 | *=*) |
| 1237 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1238 | # Reject names that are not valid shell variable names. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1239 | case $ac_envvar in #( |
| 1240 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1241 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1242 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1243 | eval $ac_envvar=\$ac_optarg |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1244 | export $ac_envvar ;; |
| 1245 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1246 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1247 | # FIXME: should be removed in autoconf 3.0. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1248 | $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] | 1249 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1250 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1251 | : "${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] | 1252 | ;; |
| 1253 | |
| 1254 | esac |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1255 | done |
| 1256 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1257 | if test -n "$ac_prev"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1258 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1259 | as_fn_error $? "missing argument to $ac_option" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1260 | fi |
| 1261 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1262 | if test -n "$ac_unrecognized_opts"; then |
| 1263 | case $enable_option_checking in |
| 1264 | no) ;; |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1265 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1266 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1267 | esac |
| 1268 | fi |
| 1269 | |
| 1270 | # Check all directory arguments for consistency. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1271 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1272 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1273 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1274 | libdir localedir mandir |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1275 | do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1276 | eval ac_val=\$$ac_var |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1277 | # Remove trailing slashes. |
| 1278 | case $ac_val in |
| 1279 | */ ) |
| 1280 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1281 | eval $ac_var=\$ac_val;; |
| 1282 | esac |
| 1283 | # Be sure to have absolute directory names. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1284 | case $ac_val in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1285 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1286 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1287 | esac |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1288 | 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] | 1289 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1290 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1291 | # There might be people who depend on the old broken behavior: `$host' |
| 1292 | # used to hold the argument of --host etc. |
| 1293 | # FIXME: To remove some day. |
| 1294 | build=$build_alias |
| 1295 | host=$host_alias |
| 1296 | target=$target_alias |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1297 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1298 | # FIXME: To remove some day. |
| 1299 | if test "x$host_alias" != x; then |
| 1300 | if test "x$build_alias" = x; then |
| 1301 | cross_compiling=maybe |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1302 | elif test "x$build_alias" != "x$host_alias"; then |
| 1303 | cross_compiling=yes |
| 1304 | fi |
| 1305 | fi |
| 1306 | |
| 1307 | ac_tool_prefix= |
| 1308 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1309 | |
| 1310 | test "$silent" = yes && exec 6>/dev/null |
| 1311 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1312 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1313 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1314 | ac_ls_di=`ls -di .` && |
| 1315 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1316 | as_fn_error $? "working directory cannot be determined" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1317 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1318 | as_fn_error $? "pwd does not report name of working directory" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1319 | |
| 1320 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1321 | # Find the source files, if location was not specified. |
| 1322 | if test -z "$srcdir"; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1323 | ac_srcdir_defaulted=yes |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1324 | # Try the directory containing this script, then the parent directory. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1325 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1326 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1327 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1328 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1329 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1330 | $as_echo X"$as_myself" | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1331 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1332 | s//\1/ |
| 1333 | q |
| 1334 | } |
| 1335 | /^X\(\/\/\)[^/].*/{ |
| 1336 | s//\1/ |
| 1337 | q |
| 1338 | } |
| 1339 | /^X\(\/\/\)$/{ |
| 1340 | s//\1/ |
| 1341 | q |
| 1342 | } |
| 1343 | /^X\(\/\).*/{ |
| 1344 | s//\1/ |
| 1345 | q |
| 1346 | } |
| 1347 | s/.*/./; q'` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1348 | srcdir=$ac_confdir |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1349 | if test ! -r "$srcdir/$ac_unique_file"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1350 | srcdir=.. |
| 1351 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1352 | else |
| 1353 | ac_srcdir_defaulted=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1354 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1355 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1356 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1357 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1358 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1359 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1360 | ac_abs_confdir=`( |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1361 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1362 | pwd)` |
| 1363 | # When building in place, set srcdir=. |
| 1364 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1365 | srcdir=. |
| 1366 | fi |
| 1367 | # Remove unnecessary trailing slashes from srcdir. |
| 1368 | # Double slashes in file names in object file debugging info |
| 1369 | # mess up M-x gdb in Emacs. |
| 1370 | case $srcdir in |
| 1371 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1372 | esac |
| 1373 | for ac_var in $ac_precious_vars; do |
| 1374 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1375 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1376 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1377 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1378 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1379 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1380 | # |
| 1381 | # Report the --help message. |
| 1382 | # |
| 1383 | if test "$ac_init_help" = "long"; then |
| 1384 | # Omit some internal or obsolete options to make the list less imposing. |
| 1385 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1386 | cat <<_ACEOF |
Yury Selivanov | 7aa5341 | 2015-05-30 10:57:56 -0400 | [diff] [blame] | 1387 | \`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] | 1388 | |
| 1389 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1390 | |
| 1391 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1392 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1393 | |
| 1394 | Defaults for the options are specified in brackets. |
| 1395 | |
| 1396 | Configuration: |
| 1397 | -h, --help display this help and exit |
| 1398 | --help=short display options specific to this package |
| 1399 | --help=recursive display the short help of all the included packages |
| 1400 | -V, --version display version information and exit |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1401 | -q, --quiet, --silent do not print \`checking ...' messages |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1402 | --cache-file=FILE cache test results in FILE [disabled] |
| 1403 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1404 | -n, --no-create do not create output files |
| 1405 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1406 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1407 | Installation directories: |
| 1408 | --prefix=PREFIX install architecture-independent files in PREFIX |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1409 | [$ac_default_prefix] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1410 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1411 | [PREFIX] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1412 | |
| 1413 | By default, \`make install' will install all the files in |
| 1414 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1415 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1416 | for instance \`--prefix=\$HOME'. |
| 1417 | |
| 1418 | For better control, use the options below. |
| 1419 | |
| 1420 | Fine tuning of the installation directories: |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1421 | --bindir=DIR user executables [EPREFIX/bin] |
| 1422 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1423 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1424 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1425 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1426 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1427 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1428 | --includedir=DIR C header files [PREFIX/include] |
| 1429 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1430 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1431 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1432 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1433 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1434 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1435 | --docdir=DIR documentation root [DATAROOTDIR/doc/python] |
| 1436 | --htmldir=DIR html documentation [DOCDIR] |
| 1437 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1438 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1439 | --psdir=DIR ps documentation [DOCDIR] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1440 | _ACEOF |
| 1441 | |
| 1442 | cat <<\_ACEOF |
Matthias Klose | ca2f6ec | 2012-03-15 21:30:11 +0100 | [diff] [blame] | 1443 | |
| 1444 | System types: |
| 1445 | --build=BUILD configure for building on BUILD [guessed] |
| 1446 | --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] | 1447 | _ACEOF |
| 1448 | fi |
| 1449 | |
| 1450 | if test -n "$ac_init_help"; then |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1451 | case $ac_init_help in |
Yury Selivanov | 7aa5341 | 2015-05-30 10:57:56 -0400 | [diff] [blame] | 1452 | short | recursive ) echo "Configuration of python 3.5:";; |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1453 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1454 | cat <<\_ACEOF |
| 1455 | |
| 1456 | Optional Features: |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1457 | --disable-option-checking ignore unrecognized --enable/--with options |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1458 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1459 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Christian Heimes | 68f5fbe | 2008-02-14 08:27:37 +0000 | [diff] [blame] | 1460 | --enable-universalsdk[=SDKDIR] |
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 1461 | Build fat binary against Mac OS X SDK |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1462 | --enable-framework[=INSTALLDIR] |
| 1463 | Build (MacOSX|Darwin) framework |
| 1464 | --enable-shared disable/enable building shared python library |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 1465 | --enable-profiling enable C-level code profiling |
Benjamin Peterson | 076ed00 | 2010-10-31 17:11:02 +0000 | [diff] [blame] | 1466 | --enable-loadable-sqlite-extensions |
| 1467 | support loadable extensions in _sqlite module |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1468 | --enable-ipv6 Enable ipv6 (with ipv4) support |
| 1469 | --disable-ipv6 Disable ipv6 support |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 1470 | --enable-big-digits[=BITS] |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1471 | use big digits for Python longs [[BITS=30]] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1472 | |
| 1473 | Optional Packages: |
| 1474 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1475 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 1476 | --with-universal-archs=ARCH |
| 1477 | select architectures for universal build ("32-bit", |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 1478 | "64-bit", "3-way", "intel", "intel-32", or "all") |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 1479 | --with-framework-name=FRAMEWORK |
| 1480 | specify an alternate name of the framework built |
| 1481 | with --enable-framework |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1482 | --without-gcc never use gcc |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 1483 | --with-cxx-main=<compiler> |
| 1484 | compile main() and link python executable with C++ |
| 1485 | compiler |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1486 | --with-suffix=.exe set executable suffix |
| 1487 | --with-pydebug build with Py_DEBUG defined |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 1488 | --with-hash-algorithm=[fnv|siphash24] |
| 1489 | select hash algorithm |
Charles-François Natali | d30b022 | 2014-05-08 23:08:51 +0100 | [diff] [blame] | 1490 | --with-address-sanitizer |
| 1491 | enable AddressSanitizer |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1492 | --with-libs='lib1 ...' link against additional libs |
Benjamin Peterson | b2d9046 | 2009-12-31 03:23:10 +0000 | [diff] [blame] | 1493 | --with-system-expat build pyexpat module using an installed expat |
| 1494 | library |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 1495 | --with-system-ffi build _ctypes module using an installed ffi library |
Stefan Krah | 60187b5 | 2012-03-23 19:06:27 +0100 | [diff] [blame] | 1496 | --with-system-libmpdec build _decimal module using an installed libmpdec |
| 1497 | library |
Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 1498 | --with-tcltk-includes='-I...' |
| 1499 | override search for Tcl and Tk include files |
| 1500 | --with-tcltk-libs='-L...' |
| 1501 | override search for Tcl and Tk libs |
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 1502 | --with-dbmliborder=db1:db2:... |
| 1503 | order to check db backends for dbm. Valid value is a |
| 1504 | colon separated string with the backend names |
| 1505 | `ndbm', `gdbm' and `bdb'. |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1506 | --with-signal-module disable/enable signal module |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1507 | --with(out)-threads[=DIRECTORY] |
| 1508 | disable/enable thread support |
| 1509 | --with(out)-thread[=DIRECTORY] |
| 1510 | deprecated; use --with(out)-threads |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1511 | --with(out)-doc-strings disable/enable documentation strings |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 1512 | --with(out)-tsc enable/disable timestamp counter profile |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1513 | --with(out)-pymalloc disable/enable specialized mallocs |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 1514 | --with-valgrind Enable Valgrind support |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1515 | --with-fpectl enable SIGFPE catching |
| 1516 | --with-libm=STRING math library |
| 1517 | --with-libc=STRING C library |
Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 1518 | --with(out)-computed-gotos |
| 1519 | Use computed gotos in evaluation loop (enabled by |
| 1520 | default on supported compilers) |
Ned Deily | 322f5ba | 2013-11-21 23:01:59 -0800 | [diff] [blame] | 1521 | --with(out)-ensurepip=[=upgrade] |
| 1522 | "install" or "upgrade" using bundled pip |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1523 | |
| 1524 | Some influential environment variables: |
doko@python.org | eab42bf | 2013-01-26 18:57:19 +0100 | [diff] [blame] | 1525 | MACHDEP name for machine-dependent library files |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1526 | CC C compiler command |
| 1527 | CFLAGS C compiler flags |
| 1528 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1529 | nonstandard directory <lib dir> |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1530 | LIBS libraries to pass to the linker, e.g. -l<library> |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1531 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1532 | you have headers in a nonstandard directory <include dir> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1533 | CPP C preprocessor |
Victor Stinner | 8291b5e | 2015-03-20 16:03:14 +0100 | [diff] [blame] | 1534 | PKG_CONFIG path to pkg-config utility |
| 1535 | PKG_CONFIG_PATH |
| 1536 | directories to add to pkg-config's search path |
| 1537 | PKG_CONFIG_LIBDIR |
| 1538 | path overriding pkg-config's built-in search path |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1539 | |
| 1540 | Use these variables to override the choices made by `configure' or to help |
| 1541 | it to find libraries and programs with nonstandard names/locations. |
| 1542 | |
Georg Brandl | e2e1561 | 2009-05-20 18:25:10 +0000 | [diff] [blame] | 1543 | Report bugs to <http://bugs.python.org/>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1544 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1545 | ac_status=$? |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1546 | fi |
| 1547 | |
| 1548 | if test "$ac_init_help" = "recursive"; then |
| 1549 | # If there are subdirs, report their specific --help. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1550 | 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] | 1551 | test -d "$ac_dir" || |
| 1552 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1553 | continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1554 | ac_builddir=. |
| 1555 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1556 | case "$ac_dir" in |
| 1557 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1558 | *) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1559 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1560 | # A ".." for each directory in $ac_dir_suffix. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1561 | 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] | 1562 | case $ac_top_builddir_sub in |
| 1563 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1564 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1565 | esac ;; |
| 1566 | esac |
| 1567 | ac_abs_top_builddir=$ac_pwd |
| 1568 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1569 | # for backward compatibility: |
| 1570 | ac_top_builddir=$ac_top_build_prefix |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1571 | |
| 1572 | case $srcdir in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1573 | .) # We are building in place. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1574 | ac_srcdir=. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1575 | ac_top_srcdir=$ac_top_builddir_sub |
| 1576 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1577 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1578 | ac_srcdir=$srcdir$ac_dir_suffix; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1579 | ac_top_srcdir=$srcdir |
| 1580 | ac_abs_top_srcdir=$srcdir ;; |
| 1581 | *) # Relative name. |
| 1582 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1583 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1584 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1585 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1586 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1587 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1588 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1589 | # Check for guested configure. |
| 1590 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1591 | echo && |
| 1592 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1593 | elif test -f "$ac_srcdir/configure"; then |
| 1594 | echo && |
| 1595 | $SHELL "$ac_srcdir/configure" --help=recursive |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1596 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1597 | $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] | 1598 | fi || ac_status=$? |
| 1599 | cd "$ac_pwd" || { ac_status=$?; break; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1600 | done |
| 1601 | fi |
| 1602 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1603 | test -n "$ac_init_help" && exit $ac_status |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1604 | if $ac_init_version; then |
| 1605 | cat <<\_ACEOF |
Yury Selivanov | 7aa5341 | 2015-05-30 10:57:56 -0400 | [diff] [blame] | 1606 | python configure 3.5 |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 1607 | generated by GNU Autoconf 2.69 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1608 | |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 1609 | Copyright (C) 2012 Free Software Foundation, Inc. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1610 | This configure script is free software; the Free Software Foundation |
| 1611 | gives unlimited permission to copy, distribute and modify it. |
| 1612 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1613 | exit |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1614 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1615 | |
| 1616 | ## ------------------------ ## |
| 1617 | ## Autoconf initialization. ## |
| 1618 | ## ------------------------ ## |
| 1619 | |
| 1620 | # ac_fn_c_try_compile LINENO |
| 1621 | # -------------------------- |
| 1622 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1623 | ac_fn_c_try_compile () |
| 1624 | { |
| 1625 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1626 | rm -f conftest.$ac_objext |
| 1627 | if { { ac_try="$ac_compile" |
| 1628 | case "(($ac_try" in |
| 1629 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1630 | *) ac_try_echo=$ac_try;; |
| 1631 | esac |
| 1632 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1633 | $as_echo "$ac_try_echo"; } >&5 |
| 1634 | (eval "$ac_compile") 2>conftest.err |
| 1635 | ac_status=$? |
| 1636 | if test -s conftest.err; then |
| 1637 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1638 | cat conftest.er1 >&5 |
| 1639 | mv -f conftest.er1 conftest.err |
| 1640 | fi |
| 1641 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1642 | test $ac_status = 0; } && { |
| 1643 | test -z "$ac_c_werror_flag" || |
| 1644 | test ! -s conftest.err |
| 1645 | } && test -s conftest.$ac_objext; then : |
| 1646 | ac_retval=0 |
| 1647 | else |
| 1648 | $as_echo "$as_me: failed program was:" >&5 |
| 1649 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1650 | |
| 1651 | ac_retval=1 |
| 1652 | fi |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1653 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1654 | as_fn_set_status $ac_retval |
| 1655 | |
| 1656 | } # ac_fn_c_try_compile |
| 1657 | |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 1658 | # ac_fn_c_try_cpp LINENO |
| 1659 | # ---------------------- |
| 1660 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1661 | ac_fn_c_try_cpp () |
| 1662 | { |
| 1663 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1664 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1665 | case "(($ac_try" in |
| 1666 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1667 | *) ac_try_echo=$ac_try;; |
| 1668 | esac |
| 1669 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1670 | $as_echo "$ac_try_echo"; } >&5 |
| 1671 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1672 | ac_status=$? |
| 1673 | if test -s conftest.err; then |
| 1674 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1675 | cat conftest.er1 >&5 |
| 1676 | mv -f conftest.er1 conftest.err |
| 1677 | fi |
| 1678 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1679 | test $ac_status = 0; } > conftest.i && { |
| 1680 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 1681 | test ! -s conftest.err |
| 1682 | }; then : |
| 1683 | ac_retval=0 |
| 1684 | else |
| 1685 | $as_echo "$as_me: failed program was:" >&5 |
| 1686 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1687 | |
| 1688 | ac_retval=1 |
| 1689 | fi |
| 1690 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1691 | as_fn_set_status $ac_retval |
| 1692 | |
| 1693 | } # ac_fn_c_try_cpp |
| 1694 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1695 | # ac_fn_c_try_link LINENO |
| 1696 | # ----------------------- |
| 1697 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1698 | ac_fn_c_try_link () |
| 1699 | { |
| 1700 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1701 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 1702 | if { { ac_try="$ac_link" |
| 1703 | case "(($ac_try" in |
| 1704 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1705 | *) ac_try_echo=$ac_try;; |
| 1706 | esac |
| 1707 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1708 | $as_echo "$ac_try_echo"; } >&5 |
| 1709 | (eval "$ac_link") 2>conftest.err |
| 1710 | ac_status=$? |
| 1711 | if test -s conftest.err; then |
| 1712 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1713 | cat conftest.er1 >&5 |
| 1714 | mv -f conftest.er1 conftest.err |
| 1715 | fi |
| 1716 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1717 | test $ac_status = 0; } && { |
| 1718 | test -z "$ac_c_werror_flag" || |
| 1719 | test ! -s conftest.err |
| 1720 | } && test -s conftest$ac_exeext && { |
| 1721 | test "$cross_compiling" = yes || |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 1722 | test -x conftest$ac_exeext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1723 | }; then : |
| 1724 | ac_retval=0 |
| 1725 | else |
| 1726 | $as_echo "$as_me: failed program was:" >&5 |
| 1727 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1728 | |
| 1729 | ac_retval=1 |
| 1730 | fi |
| 1731 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1732 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1733 | # interfere with the next link command; also delete a directory that is |
| 1734 | # left behind by Apple's compiler. We do this before executing the actions. |
| 1735 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1736 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1737 | as_fn_set_status $ac_retval |
| 1738 | |
| 1739 | } # ac_fn_c_try_link |
| 1740 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1741 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
| 1742 | # ------------------------------------------------------- |
| 1743 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
| 1744 | # the include files in INCLUDES and setting the cache variable VAR |
| 1745 | # accordingly. |
| 1746 | ac_fn_c_check_header_mongrel () |
| 1747 | { |
| 1748 | 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] | 1749 | if eval \${$3+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1750 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1751 | $as_echo_n "checking for $2... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1752 | if eval \${$3+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1753 | $as_echo_n "(cached) " >&6 |
| 1754 | fi |
| 1755 | eval ac_res=\$$3 |
| 1756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1757 | $as_echo "$ac_res" >&6; } |
| 1758 | else |
| 1759 | # Is the header compilable? |
| 1760 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
| 1761 | $as_echo_n "checking $2 usability... " >&6; } |
| 1762 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1763 | /* end confdefs.h. */ |
| 1764 | $4 |
| 1765 | #include <$2> |
| 1766 | _ACEOF |
| 1767 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1768 | ac_header_compiler=yes |
| 1769 | else |
| 1770 | ac_header_compiler=no |
| 1771 | fi |
| 1772 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
| 1774 | $as_echo "$ac_header_compiler" >&6; } |
| 1775 | |
| 1776 | # Is the header present? |
| 1777 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
| 1778 | $as_echo_n "checking $2 presence... " >&6; } |
| 1779 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1780 | /* end confdefs.h. */ |
| 1781 | #include <$2> |
| 1782 | _ACEOF |
| 1783 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 1784 | ac_header_preproc=yes |
| 1785 | else |
| 1786 | ac_header_preproc=no |
| 1787 | fi |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1788 | rm -f conftest.err conftest.i conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
| 1790 | $as_echo "$ac_header_preproc" >&6; } |
| 1791 | |
| 1792 | # So? What about this header? |
| 1793 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
| 1794 | yes:no: ) |
| 1795 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 1796 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 1797 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1798 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1799 | ;; |
| 1800 | no:yes:* ) |
| 1801 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
| 1802 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
| 1803 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
| 1804 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
| 1805 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
| 1806 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
| 1807 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
| 1808 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
| 1809 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1810 | $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] | 1811 | ( $as_echo "## -------------------------------------- ## |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1812 | ## Report this to http://bugs.python.org/ ## |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1813 | ## -------------------------------------- ##" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1814 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 1815 | ;; |
| 1816 | esac |
| 1817 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1818 | $as_echo_n "checking for $2... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1819 | if eval \${$3+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1820 | $as_echo_n "(cached) " >&6 |
| 1821 | else |
| 1822 | eval "$3=\$ac_header_compiler" |
| 1823 | fi |
| 1824 | eval ac_res=\$$3 |
| 1825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1826 | $as_echo "$ac_res" >&6; } |
| 1827 | fi |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1828 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1829 | |
| 1830 | } # ac_fn_c_check_header_mongrel |
| 1831 | |
| 1832 | # ac_fn_c_try_run LINENO |
| 1833 | # ---------------------- |
| 1834 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
| 1835 | # that executables *can* be run. |
| 1836 | ac_fn_c_try_run () |
| 1837 | { |
| 1838 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1839 | if { { ac_try="$ac_link" |
| 1840 | case "(($ac_try" in |
| 1841 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1842 | *) ac_try_echo=$ac_try;; |
| 1843 | esac |
| 1844 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1845 | $as_echo "$ac_try_echo"; } >&5 |
| 1846 | (eval "$ac_link") 2>&5 |
| 1847 | ac_status=$? |
| 1848 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1849 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 1850 | { { case "(($ac_try" in |
| 1851 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1852 | *) ac_try_echo=$ac_try;; |
| 1853 | esac |
| 1854 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1855 | $as_echo "$ac_try_echo"; } >&5 |
| 1856 | (eval "$ac_try") 2>&5 |
| 1857 | ac_status=$? |
| 1858 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1859 | test $ac_status = 0; }; }; then : |
| 1860 | ac_retval=0 |
| 1861 | else |
| 1862 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 1863 | $as_echo "$as_me: failed program was:" >&5 |
| 1864 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1865 | |
| 1866 | ac_retval=$ac_status |
| 1867 | fi |
| 1868 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1869 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1870 | as_fn_set_status $ac_retval |
| 1871 | |
| 1872 | } # ac_fn_c_try_run |
| 1873 | |
| 1874 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 1875 | # ------------------------------------------------------- |
| 1876 | # Tests whether HEADER exists and can be compiled using the include files in |
| 1877 | # INCLUDES, setting the cache variable VAR accordingly. |
| 1878 | ac_fn_c_check_header_compile () |
| 1879 | { |
| 1880 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1881 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1882 | $as_echo_n "checking for $2... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1883 | if eval \${$3+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1884 | $as_echo_n "(cached) " >&6 |
| 1885 | else |
| 1886 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1887 | /* end confdefs.h. */ |
| 1888 | $4 |
| 1889 | #include <$2> |
| 1890 | _ACEOF |
| 1891 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1892 | eval "$3=yes" |
| 1893 | else |
| 1894 | eval "$3=no" |
| 1895 | fi |
| 1896 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1897 | fi |
| 1898 | eval ac_res=\$$3 |
| 1899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1900 | $as_echo "$ac_res" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1901 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1902 | |
| 1903 | } # ac_fn_c_check_header_compile |
| 1904 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1905 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
| 1906 | # ------------------------------------------- |
| 1907 | # Tests whether TYPE exists after having included INCLUDES, setting cache |
| 1908 | # variable VAR accordingly. |
| 1909 | ac_fn_c_check_type () |
| 1910 | { |
| 1911 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1912 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1913 | $as_echo_n "checking for $2... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1914 | if eval \${$3+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1915 | $as_echo_n "(cached) " >&6 |
| 1916 | else |
| 1917 | eval "$3=no" |
| 1918 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1919 | /* end confdefs.h. */ |
| 1920 | $4 |
| 1921 | int |
| 1922 | main () |
| 1923 | { |
| 1924 | if (sizeof ($2)) |
| 1925 | return 0; |
| 1926 | ; |
| 1927 | return 0; |
| 1928 | } |
| 1929 | _ACEOF |
| 1930 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1931 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1932 | /* end confdefs.h. */ |
| 1933 | $4 |
| 1934 | int |
| 1935 | main () |
| 1936 | { |
| 1937 | if (sizeof (($2))) |
| 1938 | return 0; |
| 1939 | ; |
| 1940 | return 0; |
| 1941 | } |
| 1942 | _ACEOF |
| 1943 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1944 | |
| 1945 | else |
| 1946 | eval "$3=yes" |
| 1947 | fi |
| 1948 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1949 | fi |
| 1950 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1951 | fi |
| 1952 | eval ac_res=\$$3 |
| 1953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1954 | $as_echo "$ac_res" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1955 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1956 | |
| 1957 | } # ac_fn_c_check_type |
| 1958 | |
| 1959 | # ac_fn_c_find_uintX_t LINENO BITS VAR |
| 1960 | # ------------------------------------ |
| 1961 | # Finds an unsigned integer type with width BITS, setting cache variable VAR |
| 1962 | # accordingly. |
| 1963 | ac_fn_c_find_uintX_t () |
| 1964 | { |
| 1965 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1966 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 |
| 1967 | $as_echo_n "checking for uint$2_t... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1968 | if eval \${$3+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1969 | $as_echo_n "(cached) " >&6 |
| 1970 | else |
| 1971 | eval "$3=no" |
| 1972 | # Order is important - never check a type that is potentially smaller |
| 1973 | # than half of the expected target width. |
| 1974 | for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ |
| 1975 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
| 1976 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1977 | /* end confdefs.h. */ |
| 1978 | $ac_includes_default |
| 1979 | int |
| 1980 | main () |
| 1981 | { |
| 1982 | 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] | 1983 | test_array [0] = 0; |
| 1984 | return test_array [0]; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1985 | |
| 1986 | ; |
| 1987 | return 0; |
| 1988 | } |
| 1989 | _ACEOF |
| 1990 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1991 | case $ac_type in #( |
| 1992 | uint$2_t) : |
| 1993 | eval "$3=yes" ;; #( |
| 1994 | *) : |
| 1995 | eval "$3=\$ac_type" ;; |
| 1996 | esac |
| 1997 | fi |
| 1998 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1999 | if eval test \"x\$"$3"\" = x"no"; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2000 | |
| 2001 | else |
| 2002 | break |
| 2003 | fi |
| 2004 | done |
| 2005 | fi |
| 2006 | eval ac_res=\$$3 |
| 2007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2008 | $as_echo "$ac_res" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2009 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2010 | |
| 2011 | } # ac_fn_c_find_uintX_t |
| 2012 | |
| 2013 | # ac_fn_c_find_intX_t LINENO BITS VAR |
| 2014 | # ----------------------------------- |
| 2015 | # Finds a signed integer type with width BITS, setting cache variable VAR |
| 2016 | # accordingly. |
| 2017 | ac_fn_c_find_intX_t () |
| 2018 | { |
| 2019 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2020 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 |
| 2021 | $as_echo_n "checking for int$2_t... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2022 | if eval \${$3+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2023 | $as_echo_n "(cached) " >&6 |
| 2024 | else |
| 2025 | eval "$3=no" |
| 2026 | # Order is important - never check a type that is potentially smaller |
| 2027 | # than half of the expected target width. |
| 2028 | for ac_type in int$2_t 'int' 'long int' \ |
| 2029 | 'long long int' 'short int' 'signed char'; do |
| 2030 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2031 | /* end confdefs.h. */ |
| 2032 | $ac_includes_default |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 2033 | enum { N = $2 / 2 - 1 }; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2034 | int |
| 2035 | main () |
| 2036 | { |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 2037 | 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] | 2038 | test_array [0] = 0; |
| 2039 | return test_array [0]; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2040 | |
| 2041 | ; |
| 2042 | return 0; |
| 2043 | } |
| 2044 | _ACEOF |
| 2045 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2046 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2047 | /* end confdefs.h. */ |
| 2048 | $ac_includes_default |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 2049 | enum { N = $2 / 2 - 1 }; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2050 | int |
| 2051 | main () |
| 2052 | { |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 2053 | 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] | 2054 | < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2055 | test_array [0] = 0; |
| 2056 | return test_array [0]; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2057 | |
| 2058 | ; |
| 2059 | return 0; |
| 2060 | } |
| 2061 | _ACEOF |
| 2062 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2063 | |
| 2064 | else |
| 2065 | case $ac_type in #( |
| 2066 | int$2_t) : |
| 2067 | eval "$3=yes" ;; #( |
| 2068 | *) : |
| 2069 | eval "$3=\$ac_type" ;; |
| 2070 | esac |
| 2071 | fi |
| 2072 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2073 | fi |
| 2074 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2075 | if eval test \"x\$"$3"\" = x"no"; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2076 | |
| 2077 | else |
| 2078 | break |
| 2079 | fi |
| 2080 | done |
| 2081 | fi |
| 2082 | eval ac_res=\$$3 |
| 2083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2084 | $as_echo "$ac_res" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2085 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2086 | |
| 2087 | } # ac_fn_c_find_intX_t |
| 2088 | |
| 2089 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
| 2090 | # -------------------------------------------- |
| 2091 | # Tries to find the compile-time value of EXPR in a program that includes |
| 2092 | # INCLUDES, setting VAR accordingly. Returns whether the value could be |
| 2093 | # computed |
| 2094 | ac_fn_c_compute_int () |
| 2095 | { |
| 2096 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2097 | if test "$cross_compiling" = yes; then |
| 2098 | # Depending upon the size, compute the lo and hi bounds. |
| 2099 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2100 | /* end confdefs.h. */ |
| 2101 | $4 |
| 2102 | int |
| 2103 | main () |
| 2104 | { |
| 2105 | static int test_array [1 - 2 * !(($2) >= 0)]; |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2106 | test_array [0] = 0; |
| 2107 | return test_array [0]; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2108 | |
| 2109 | ; |
| 2110 | return 0; |
| 2111 | } |
| 2112 | _ACEOF |
| 2113 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2114 | ac_lo=0 ac_mid=0 |
| 2115 | while :; do |
| 2116 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2117 | /* end confdefs.h. */ |
| 2118 | $4 |
| 2119 | int |
| 2120 | main () |
| 2121 | { |
| 2122 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2123 | test_array [0] = 0; |
| 2124 | return test_array [0]; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2125 | |
| 2126 | ; |
| 2127 | return 0; |
| 2128 | } |
| 2129 | _ACEOF |
| 2130 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2131 | ac_hi=$ac_mid; break |
| 2132 | else |
| 2133 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val |
| 2134 | if test $ac_lo -le $ac_mid; then |
| 2135 | ac_lo= ac_hi= |
| 2136 | break |
| 2137 | fi |
| 2138 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val |
| 2139 | fi |
| 2140 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2141 | done |
| 2142 | else |
| 2143 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2144 | /* end confdefs.h. */ |
| 2145 | $4 |
| 2146 | int |
| 2147 | main () |
| 2148 | { |
| 2149 | static int test_array [1 - 2 * !(($2) < 0)]; |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2150 | test_array [0] = 0; |
| 2151 | return test_array [0]; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2152 | |
| 2153 | ; |
| 2154 | return 0; |
| 2155 | } |
| 2156 | _ACEOF |
| 2157 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2158 | ac_hi=-1 ac_mid=-1 |
| 2159 | while :; do |
| 2160 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2161 | /* end confdefs.h. */ |
| 2162 | $4 |
| 2163 | int |
| 2164 | main () |
| 2165 | { |
| 2166 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2167 | test_array [0] = 0; |
| 2168 | return test_array [0]; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2169 | |
| 2170 | ; |
| 2171 | return 0; |
| 2172 | } |
| 2173 | _ACEOF |
| 2174 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2175 | ac_lo=$ac_mid; break |
| 2176 | else |
| 2177 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val |
| 2178 | if test $ac_mid -le $ac_hi; then |
| 2179 | ac_lo= ac_hi= |
| 2180 | break |
| 2181 | fi |
| 2182 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val |
| 2183 | fi |
| 2184 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2185 | done |
| 2186 | else |
| 2187 | ac_lo= ac_hi= |
| 2188 | fi |
| 2189 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2190 | fi |
| 2191 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2192 | # Binary search between lo and hi bounds. |
| 2193 | while test "x$ac_lo" != "x$ac_hi"; do |
| 2194 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val |
| 2195 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2196 | /* end confdefs.h. */ |
| 2197 | $4 |
| 2198 | int |
| 2199 | main () |
| 2200 | { |
| 2201 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2202 | test_array [0] = 0; |
| 2203 | return test_array [0]; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2204 | |
| 2205 | ; |
| 2206 | return 0; |
| 2207 | } |
| 2208 | _ACEOF |
| 2209 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2210 | ac_hi=$ac_mid |
| 2211 | else |
| 2212 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val |
| 2213 | fi |
| 2214 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2215 | done |
| 2216 | case $ac_lo in #(( |
| 2217 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; |
| 2218 | '') ac_retval=1 ;; |
| 2219 | esac |
| 2220 | else |
| 2221 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2222 | /* end confdefs.h. */ |
| 2223 | $4 |
| 2224 | static long int longval () { return $2; } |
| 2225 | static unsigned long int ulongval () { return $2; } |
| 2226 | #include <stdio.h> |
| 2227 | #include <stdlib.h> |
| 2228 | int |
| 2229 | main () |
| 2230 | { |
| 2231 | |
| 2232 | FILE *f = fopen ("conftest.val", "w"); |
| 2233 | if (! f) |
| 2234 | return 1; |
| 2235 | if (($2) < 0) |
| 2236 | { |
| 2237 | long int i = longval (); |
| 2238 | if (i != ($2)) |
| 2239 | return 1; |
| 2240 | fprintf (f, "%ld", i); |
| 2241 | } |
| 2242 | else |
| 2243 | { |
| 2244 | unsigned long int i = ulongval (); |
| 2245 | if (i != ($2)) |
| 2246 | return 1; |
| 2247 | fprintf (f, "%lu", i); |
| 2248 | } |
| 2249 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 2250 | on some platforms. */ |
| 2251 | return ferror (f) || fclose (f) != 0; |
| 2252 | |
| 2253 | ; |
| 2254 | return 0; |
| 2255 | } |
| 2256 | _ACEOF |
| 2257 | if ac_fn_c_try_run "$LINENO"; then : |
| 2258 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 |
| 2259 | else |
| 2260 | ac_retval=1 |
| 2261 | fi |
| 2262 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 2263 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2264 | rm -f conftest.val |
| 2265 | |
| 2266 | fi |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2267 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2268 | as_fn_set_status $ac_retval |
| 2269 | |
| 2270 | } # ac_fn_c_compute_int |
| 2271 | |
| 2272 | # ac_fn_c_check_func LINENO FUNC VAR |
| 2273 | # ---------------------------------- |
| 2274 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 2275 | ac_fn_c_check_func () |
| 2276 | { |
| 2277 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2278 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2279 | $as_echo_n "checking for $2... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2280 | if eval \${$3+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2281 | $as_echo_n "(cached) " >&6 |
| 2282 | else |
| 2283 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2284 | /* end confdefs.h. */ |
| 2285 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 2286 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 2287 | #define $2 innocuous_$2 |
| 2288 | |
| 2289 | /* System header to define __stub macros and hopefully few prototypes, |
| 2290 | which can conflict with char $2 (); below. |
| 2291 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2292 | <limits.h> exists even on freestanding compilers. */ |
| 2293 | |
| 2294 | #ifdef __STDC__ |
| 2295 | # include <limits.h> |
| 2296 | #else |
| 2297 | # include <assert.h> |
| 2298 | #endif |
| 2299 | |
| 2300 | #undef $2 |
| 2301 | |
| 2302 | /* Override any GCC internal prototype to avoid an error. |
| 2303 | Use char because int might match the return type of a GCC |
| 2304 | builtin and then its argument prototype would still apply. */ |
| 2305 | #ifdef __cplusplus |
| 2306 | extern "C" |
| 2307 | #endif |
| 2308 | char $2 (); |
| 2309 | /* The GNU C library defines this for functions which it implements |
| 2310 | to always fail with ENOSYS. Some functions are actually named |
| 2311 | something starting with __ and the normal name is an alias. */ |
| 2312 | #if defined __stub_$2 || defined __stub___$2 |
| 2313 | choke me |
| 2314 | #endif |
| 2315 | |
| 2316 | int |
| 2317 | main () |
| 2318 | { |
| 2319 | return $2 (); |
| 2320 | ; |
| 2321 | return 0; |
| 2322 | } |
| 2323 | _ACEOF |
| 2324 | if ac_fn_c_try_link "$LINENO"; then : |
| 2325 | eval "$3=yes" |
| 2326 | else |
| 2327 | eval "$3=no" |
| 2328 | fi |
| 2329 | rm -f core conftest.err conftest.$ac_objext \ |
| 2330 | conftest$ac_exeext conftest.$ac_ext |
| 2331 | fi |
| 2332 | eval ac_res=\$$3 |
| 2333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2334 | $as_echo "$ac_res" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2335 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2336 | |
| 2337 | } # ac_fn_c_check_func |
| 2338 | |
Gregory P. Smith | df300d5 | 2012-01-21 18:20:15 -0800 | [diff] [blame] | 2339 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES |
| 2340 | # --------------------------------------------- |
| 2341 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR |
| 2342 | # accordingly. |
| 2343 | ac_fn_c_check_decl () |
| 2344 | { |
| 2345 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2346 | as_decl_name=`echo $2|sed 's/ *(.*//'` |
| 2347 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` |
| 2348 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 |
| 2349 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } |
| 2350 | if eval \${$3+:} false; then : |
| 2351 | $as_echo_n "(cached) " >&6 |
| 2352 | else |
| 2353 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2354 | /* end confdefs.h. */ |
| 2355 | $4 |
| 2356 | int |
| 2357 | main () |
| 2358 | { |
| 2359 | #ifndef $as_decl_name |
| 2360 | #ifdef __cplusplus |
| 2361 | (void) $as_decl_use; |
| 2362 | #else |
| 2363 | (void) $as_decl_name; |
| 2364 | #endif |
| 2365 | #endif |
| 2366 | |
| 2367 | ; |
| 2368 | return 0; |
| 2369 | } |
| 2370 | _ACEOF |
| 2371 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2372 | eval "$3=yes" |
| 2373 | else |
| 2374 | eval "$3=no" |
| 2375 | fi |
| 2376 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2377 | fi |
| 2378 | eval ac_res=\$$3 |
| 2379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2380 | $as_echo "$ac_res" >&6; } |
| 2381 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2382 | |
| 2383 | } # ac_fn_c_check_decl |
| 2384 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2385 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
| 2386 | # ---------------------------------------------------- |
| 2387 | # Tries to find if the field MEMBER exists in type AGGR, after including |
| 2388 | # INCLUDES, setting cache variable VAR accordingly. |
| 2389 | ac_fn_c_check_member () |
| 2390 | { |
| 2391 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2392 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 |
| 2393 | $as_echo_n "checking for $2.$3... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2394 | if eval \${$4+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2395 | $as_echo_n "(cached) " >&6 |
| 2396 | else |
| 2397 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2398 | /* end confdefs.h. */ |
| 2399 | $5 |
| 2400 | int |
| 2401 | main () |
| 2402 | { |
| 2403 | static $2 ac_aggr; |
| 2404 | if (ac_aggr.$3) |
| 2405 | return 0; |
| 2406 | ; |
| 2407 | return 0; |
| 2408 | } |
| 2409 | _ACEOF |
| 2410 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2411 | eval "$4=yes" |
| 2412 | else |
| 2413 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2414 | /* end confdefs.h. */ |
| 2415 | $5 |
| 2416 | int |
| 2417 | main () |
| 2418 | { |
| 2419 | static $2 ac_aggr; |
| 2420 | if (sizeof ac_aggr.$3) |
| 2421 | return 0; |
| 2422 | ; |
| 2423 | return 0; |
| 2424 | } |
| 2425 | _ACEOF |
| 2426 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2427 | eval "$4=yes" |
| 2428 | else |
| 2429 | eval "$4=no" |
| 2430 | fi |
| 2431 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2432 | fi |
| 2433 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2434 | fi |
| 2435 | eval ac_res=\$$4 |
| 2436 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2437 | $as_echo "$ac_res" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2438 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2439 | |
| 2440 | } # ac_fn_c_check_member |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2441 | cat >config.log <<_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2442 | This file contains any messages produced by compilers while |
| 2443 | running configure, to aid debugging if configure makes a mistake. |
| 2444 | |
Yury Selivanov | 7aa5341 | 2015-05-30 10:57:56 -0400 | [diff] [blame] | 2445 | It was created by python $as_me 3.5, which was |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2446 | generated by GNU Autoconf 2.69. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2447 | |
| 2448 | $ $0 $@ |
| 2449 | |
| 2450 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2451 | exec 5>>config.log |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2452 | { |
| 2453 | cat <<_ASUNAME |
| 2454 | ## --------- ## |
| 2455 | ## Platform. ## |
| 2456 | ## --------- ## |
| 2457 | |
| 2458 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 2459 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 2460 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 2461 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 2462 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 2463 | |
| 2464 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 2465 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 2466 | |
| 2467 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 2468 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 2469 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2470 | /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] | 2471 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 2472 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 2473 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 2474 | |
| 2475 | _ASUNAME |
| 2476 | |
| 2477 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2478 | for as_dir in $PATH |
| 2479 | do |
| 2480 | IFS=$as_save_IFS |
| 2481 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2482 | $as_echo "PATH: $as_dir" |
| 2483 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2484 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2485 | |
| 2486 | } >&5 |
| 2487 | |
| 2488 | cat >&5 <<_ACEOF |
| 2489 | |
| 2490 | |
| 2491 | ## ----------- ## |
| 2492 | ## Core tests. ## |
| 2493 | ## ----------- ## |
| 2494 | |
| 2495 | _ACEOF |
| 2496 | |
| 2497 | |
| 2498 | # Keep a trace of the command line. |
| 2499 | # 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] | 2500 | # 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] | 2501 | # Also quote any args containing shell meta-characters. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2502 | # Make two passes to allow for proper duplicate-argument suppression. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2503 | ac_configure_args= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2504 | ac_configure_args0= |
| 2505 | ac_configure_args1= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2506 | ac_must_keep_next=false |
| 2507 | for ac_pass in 1 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2508 | do |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2509 | for ac_arg |
| 2510 | do |
| 2511 | case $ac_arg in |
| 2512 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 2513 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 2514 | | -silent | --silent | --silen | --sile | --sil) |
| 2515 | continue ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2516 | *\'*) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2517 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2518 | esac |
| 2519 | case $ac_pass in |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2520 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2521 | 2) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2522 | as_fn_append ac_configure_args1 " '$ac_arg'" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2523 | if test $ac_must_keep_next = true; then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2524 | ac_must_keep_next=false # Got value, back to normal. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2525 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2526 | case $ac_arg in |
| 2527 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 2528 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 2529 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 2530 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 2531 | case "$ac_configure_args0 " in |
| 2532 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 2533 | esac |
| 2534 | ;; |
| 2535 | -* ) ac_must_keep_next=true ;; |
| 2536 | esac |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2537 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2538 | as_fn_append ac_configure_args " '$ac_arg'" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2539 | ;; |
| 2540 | esac |
| 2541 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2542 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2543 | { ac_configure_args0=; unset ac_configure_args0;} |
| 2544 | { ac_configure_args1=; unset ac_configure_args1;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2545 | |
| 2546 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 2547 | # config.log. We remove comments because anyway the quotes in there |
| 2548 | # would cause problems or look ugly. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2549 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 2550 | # 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] | 2551 | trap 'exit_status=$? |
| 2552 | # Save into config.log some information that might help in debugging. |
| 2553 | { |
| 2554 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2555 | |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2556 | $as_echo "## ---------------- ## |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2557 | ## Cache variables. ## |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2558 | ## ---------------- ##" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2559 | echo |
| 2560 | # The following way of writing the cache mishandles newlines in values, |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2561 | ( |
| 2562 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 2563 | eval ac_val=\$$ac_var |
| 2564 | case $ac_val in #( |
| 2565 | *${as_nl}*) |
| 2566 | case $ac_var in #( |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2567 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 2568 | $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] | 2569 | esac |
| 2570 | case $ac_var in #( |
| 2571 | _ | IFS | as_nl) ;; #( |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2572 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 2573 | *) { eval $ac_var=; unset $ac_var;} ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2574 | esac ;; |
| 2575 | esac |
| 2576 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2577 | (set) 2>&1 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2578 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 2579 | *${as_nl}ac_space=\ *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2580 | sed -n \ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2581 | "s/'\''/'\''\\\\'\'''\''/g; |
| 2582 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 2583 | ;; #( |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 2584 | *) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2585 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
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 | esac | |
| 2588 | sort |
| 2589 | ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2590 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2591 | |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2592 | $as_echo "## ----------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2593 | ## Output variables. ## |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2594 | ## ----------------- ##" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2595 | echo |
| 2596 | for ac_var in $ac_subst_vars |
| 2597 | do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2598 | eval ac_val=\$$ac_var |
| 2599 | case $ac_val in |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2600 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2601 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2602 | $as_echo "$ac_var='\''$ac_val'\''" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2603 | done | sort |
| 2604 | echo |
| 2605 | |
| 2606 | if test -n "$ac_subst_files"; then |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2607 | $as_echo "## ------------------- ## |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2608 | ## File substitutions. ## |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2609 | ## ------------------- ##" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2610 | echo |
| 2611 | for ac_var in $ac_subst_files |
| 2612 | do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2613 | eval ac_val=\$$ac_var |
| 2614 | case $ac_val in |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2615 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2616 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2617 | $as_echo "$ac_var='\''$ac_val'\''" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2618 | done | sort |
| 2619 | echo |
| 2620 | fi |
| 2621 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2622 | if test -s confdefs.h; then |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2623 | $as_echo "## ----------- ## |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2624 | ## confdefs.h. ## |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2625 | ## ----------- ##" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2626 | echo |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2627 | cat confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2628 | echo |
| 2629 | fi |
| 2630 | test "$ac_signal" != 0 && |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2631 | $as_echo "$as_me: caught signal $ac_signal" |
| 2632 | $as_echo "$as_me: exit $exit_status" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2633 | } >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2634 | rm -f core *.core core.conftest.* && |
| 2635 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2636 | exit $exit_status |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2637 | ' 0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2638 | for ac_signal in 1 2 13 15; do |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2639 | 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] | 2640 | done |
| 2641 | ac_signal=0 |
| 2642 | |
| 2643 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2644 | rm -f -r conftest* confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2645 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2646 | $as_echo "/* confdefs.h */" > confdefs.h |
| 2647 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2648 | # Predefined preprocessor variables. |
| 2649 | |
| 2650 | cat >>confdefs.h <<_ACEOF |
| 2651 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 2652 | _ACEOF |
| 2653 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2654 | cat >>confdefs.h <<_ACEOF |
| 2655 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 2656 | _ACEOF |
| 2657 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2658 | cat >>confdefs.h <<_ACEOF |
| 2659 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 2660 | _ACEOF |
| 2661 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2662 | cat >>confdefs.h <<_ACEOF |
| 2663 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 2664 | _ACEOF |
| 2665 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2666 | cat >>confdefs.h <<_ACEOF |
| 2667 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 2668 | _ACEOF |
| 2669 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2670 | cat >>confdefs.h <<_ACEOF |
| 2671 | #define PACKAGE_URL "$PACKAGE_URL" |
| 2672 | _ACEOF |
| 2673 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2674 | |
| 2675 | # 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] | 2676 | # Prefer an explicitly selected file to automatically selected ones. |
| 2677 | ac_site_file1=NONE |
| 2678 | ac_site_file2=NONE |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2679 | if test -n "$CONFIG_SITE"; then |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2680 | # We do not want a PATH search for config.site. |
| 2681 | case $CONFIG_SITE in #(( |
| 2682 | -*) ac_site_file1=./$CONFIG_SITE;; |
| 2683 | */*) ac_site_file1=$CONFIG_SITE;; |
| 2684 | *) ac_site_file1=./$CONFIG_SITE;; |
| 2685 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2686 | elif test "x$prefix" != xNONE; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2687 | ac_site_file1=$prefix/share/config.site |
| 2688 | ac_site_file2=$prefix/etc/config.site |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2689 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2690 | ac_site_file1=$ac_default_prefix/share/config.site |
| 2691 | ac_site_file2=$ac_default_prefix/etc/config.site |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2692 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2693 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2694 | do |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2695 | test "x$ac_site_file" = xNONE && continue |
| 2696 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
| 2697 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
| 2698 | $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] | 2699 | sed 's/^/| /' "$ac_site_file" >&5 |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2700 | . "$ac_site_file" \ |
| 2701 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2702 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2703 | as_fn_error $? "failed to load site script $ac_site_file |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2704 | See \`config.log' for more details" "$LINENO" 5; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2705 | fi |
| 2706 | done |
| 2707 | |
| 2708 | if test -r "$cache_file"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2709 | # Some versions of bash will fail to source /dev/null (special files |
| 2710 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 2711 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
| 2712 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
| 2713 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2714 | case $cache_file in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2715 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 2716 | *) . "./$cache_file";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2717 | esac |
| 2718 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2719 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2720 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
| 2721 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2722 | >$cache_file |
| 2723 | fi |
| 2724 | |
| 2725 | # Check that the precious variables saved in the cache have kept the same |
| 2726 | # value. |
| 2727 | ac_cache_corrupted=false |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2728 | for ac_var in $ac_precious_vars; do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2729 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 2730 | eval ac_new_set=\$ac_env_${ac_var}_set |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2731 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 2732 | eval ac_new_val=\$ac_env_${ac_var}_value |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2733 | case $ac_old_set,$ac_new_set in |
| 2734 | set,) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2735 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 2736 | $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] | 2737 | ac_cache_corrupted=: ;; |
| 2738 | ,set) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2739 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
| 2740 | $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] | 2741 | ac_cache_corrupted=: ;; |
| 2742 | ,);; |
| 2743 | *) |
| 2744 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2745 | # differences in whitespace do not lead to failure. |
| 2746 | ac_old_val_w=`echo x $ac_old_val` |
| 2747 | ac_new_val_w=`echo x $ac_new_val` |
| 2748 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
| 2749 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
| 2750 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 2751 | ac_cache_corrupted=: |
| 2752 | else |
| 2753 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
| 2754 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 2755 | eval $ac_var=\$ac_old_val |
| 2756 | fi |
| 2757 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
| 2758 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
| 2759 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
| 2760 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2761 | fi;; |
| 2762 | esac |
| 2763 | # Pass precious variables to config.status. |
| 2764 | if test "$ac_new_set" = set; then |
| 2765 | case $ac_new_val in |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2766 | *\'*) 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] | 2767 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 2768 | esac |
| 2769 | case " $ac_configure_args " in |
| 2770 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2771 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2772 | esac |
| 2773 | fi |
| 2774 | done |
| 2775 | if $ac_cache_corrupted; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2776 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2777 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2778 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
| 2779 | $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] | 2780 | 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] | 2781 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2782 | ## -------------------- ## |
| 2783 | ## Main body of script. ## |
| 2784 | ## -------------------- ## |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2785 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2786 | ac_ext=c |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2787 | ac_cpp='$CPP $CPPFLAGS' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2788 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2789 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2790 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2791 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2792 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2793 | |
Trent Nelson | 4d4ec65 | 2012-10-16 08:51:24 -0400 | [diff] [blame] | 2794 | |
Trent Nelson | 5595ab5 | 2012-10-17 04:47:31 -0400 | [diff] [blame] | 2795 | if test "$abs_srcdir" != "$abs_builddir"; then |
Trent Nelson | 4d4ec65 | 2012-10-16 08:51:24 -0400 | [diff] [blame] | 2796 | # If we're building out-of-tree, we need to make sure the following |
| 2797 | # resources get picked up before their $srcdir counterparts. |
| 2798 | # Objects/ -> typeslots.inc |
| 2799 | # Include/ -> Python-ast.h, graminit.h |
| 2800 | # Python/ -> importlib.h |
| 2801 | # (A side effect of this is that these resources will automatically be |
| 2802 | # regenerated when building out-of-tree, regardless of whether or not |
| 2803 | # the $srcdir counterpart is up-to-date. This is an acceptable trade |
| 2804 | # off.) |
| 2805 | BASECPPFLAGS="-IObjects -IInclude -IPython" |
| 2806 | else |
| 2807 | BASECPPFLAGS="" |
| 2808 | fi |
| 2809 | |
Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2810 | |
| 2811 | |
| 2812 | |
| 2813 | |
Antoine Pitrou | d3b2aef | 2011-07-27 01:22:41 +0200 | [diff] [blame] | 2814 | if test -e $srcdir/.hg/dirstate |
Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2815 | then |
| 2816 | # Extract the first word of "hg", so it can be a program name with args. |
| 2817 | set dummy hg; ac_word=$2 |
| 2818 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2819 | $as_echo_n "checking for $ac_word... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2820 | if ${ac_cv_prog_HAS_HG+:} false; then : |
Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2821 | $as_echo_n "(cached) " >&6 |
| 2822 | else |
| 2823 | if test -n "$HAS_HG"; then |
| 2824 | ac_cv_prog_HAS_HG="$HAS_HG" # Let the user override the test. |
| 2825 | else |
| 2826 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2827 | for as_dir in $PATH |
| 2828 | do |
| 2829 | IFS=$as_save_IFS |
| 2830 | test -z "$as_dir" && as_dir=. |
| 2831 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 2832 | 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] | 2833 | ac_cv_prog_HAS_HG="found" |
| 2834 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2835 | break 2 |
| 2836 | fi |
| 2837 | done |
| 2838 | done |
| 2839 | IFS=$as_save_IFS |
| 2840 | |
| 2841 | test -z "$ac_cv_prog_HAS_HG" && ac_cv_prog_HAS_HG="not-found" |
| 2842 | fi |
| 2843 | fi |
| 2844 | HAS_HG=$ac_cv_prog_HAS_HG |
| 2845 | if test -n "$HAS_HG"; then |
| 2846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAS_HG" >&5 |
| 2847 | $as_echo "$HAS_HG" >&6; } |
| 2848 | else |
| 2849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2850 | $as_echo "no" >&6; } |
| 2851 | fi |
| 2852 | |
| 2853 | |
| 2854 | else |
| 2855 | HAS_HG=no-repository |
| 2856 | fi |
| 2857 | if test $HAS_HG = found |
| 2858 | then |
| 2859 | HGVERSION="hg id -i \$(srcdir)" |
| 2860 | HGTAG="hg id -t \$(srcdir)" |
| 2861 | HGBRANCH="hg id -b \$(srcdir)" |
| 2862 | else |
| 2863 | HGVERSION="" |
| 2864 | HGTAG="" |
| 2865 | HGBRANCH="" |
| 2866 | fi |
| 2867 | |
| 2868 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2869 | ac_config_headers="$ac_config_headers pyconfig.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2870 | |
| 2871 | |
Matthias Klose | ca2f6ec | 2012-03-15 21:30:11 +0100 | [diff] [blame] | 2872 | ac_aux_dir= |
| 2873 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
| 2874 | if test -f "$ac_dir/install-sh"; then |
| 2875 | ac_aux_dir=$ac_dir |
| 2876 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 2877 | break |
| 2878 | elif test -f "$ac_dir/install.sh"; then |
| 2879 | ac_aux_dir=$ac_dir |
| 2880 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 2881 | break |
| 2882 | elif test -f "$ac_dir/shtool"; then |
| 2883 | ac_aux_dir=$ac_dir |
| 2884 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 2885 | break |
| 2886 | fi |
| 2887 | done |
| 2888 | if test -z "$ac_aux_dir"; then |
| 2889 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
| 2890 | fi |
| 2891 | |
| 2892 | # These three variables are undocumented and unsupported, |
| 2893 | # and are intended to be withdrawn in a future Autoconf release. |
| 2894 | # They can cause serious problems if a builder's source tree is in a directory |
| 2895 | # whose full name contains unusual characters. |
| 2896 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 2897 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 2898 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 2899 | |
| 2900 | |
| 2901 | # Make sure we can run config.sub. |
| 2902 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
| 2903 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
| 2904 | |
| 2905 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
| 2906 | $as_echo_n "checking build system type... " >&6; } |
| 2907 | if ${ac_cv_build+:} false; then : |
| 2908 | $as_echo_n "(cached) " >&6 |
| 2909 | else |
| 2910 | ac_build_alias=$build_alias |
| 2911 | test "x$ac_build_alias" = x && |
| 2912 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 2913 | test "x$ac_build_alias" = x && |
| 2914 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
| 2915 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
| 2916 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
| 2917 | |
| 2918 | fi |
| 2919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
| 2920 | $as_echo "$ac_cv_build" >&6; } |
| 2921 | case $ac_cv_build in |
| 2922 | *-*-*) ;; |
| 2923 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
| 2924 | esac |
| 2925 | build=$ac_cv_build |
| 2926 | ac_save_IFS=$IFS; IFS='-' |
| 2927 | set x $ac_cv_build |
| 2928 | shift |
| 2929 | build_cpu=$1 |
| 2930 | build_vendor=$2 |
| 2931 | shift; shift |
| 2932 | # Remember, the first character of IFS is used to create $*, |
| 2933 | # except with old shells: |
| 2934 | build_os=$* |
| 2935 | IFS=$ac_save_IFS |
| 2936 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
| 2937 | |
| 2938 | |
| 2939 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
| 2940 | $as_echo_n "checking host system type... " >&6; } |
| 2941 | if ${ac_cv_host+:} false; then : |
| 2942 | $as_echo_n "(cached) " >&6 |
| 2943 | else |
| 2944 | if test "x$host_alias" = x; then |
| 2945 | ac_cv_host=$ac_cv_build |
| 2946 | else |
| 2947 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
| 2948 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
| 2949 | fi |
| 2950 | |
| 2951 | fi |
| 2952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
| 2953 | $as_echo "$ac_cv_host" >&6; } |
| 2954 | case $ac_cv_host in |
| 2955 | *-*-*) ;; |
| 2956 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
| 2957 | esac |
| 2958 | host=$ac_cv_host |
| 2959 | ac_save_IFS=$IFS; IFS='-' |
| 2960 | set x $ac_cv_host |
| 2961 | shift |
| 2962 | host_cpu=$1 |
| 2963 | host_vendor=$2 |
| 2964 | shift; shift |
| 2965 | # Remember, the first character of IFS is used to create $*, |
| 2966 | # except with old shells: |
| 2967 | host_os=$* |
| 2968 | IFS=$ac_save_IFS |
| 2969 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
| 2970 | |
| 2971 | |
| 2972 | |
doko@python.org | a10e4a9 | 2013-01-25 18:45:12 +0100 | [diff] [blame] | 2973 | |
| 2974 | |
Ned Deily | fcbc246 | 2014-08-22 13:32:49 -0700 | [diff] [blame] | 2975 | # pybuilddir.txt will be created by --generate-posix-vars in the Makefile |
| 2976 | rm -f pybuilddir.txt |
| 2977 | |
doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 2978 | if test "$cross_compiling" = yes; then |
| 2979 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python interpreter for cross build" >&5 |
| 2980 | $as_echo_n "checking for python interpreter for cross build... " >&6; } |
| 2981 | if test -z "$PYTHON_FOR_BUILD"; then |
| 2982 | for interp in python$PACKAGE_VERSION python3 python; do |
| 2983 | which $interp >/dev/null 2>&1 || continue |
| 2984 | if $interp -c 'import sys;sys.exit(not sys.version_info[:2] >= (3,3))'; then |
| 2985 | break |
| 2986 | fi |
| 2987 | interp= |
| 2988 | done |
| 2989 | if test x$interp = x; then |
| 2990 | as_fn_error $? "python$PACKAGE_VERSION interpreter not found" "$LINENO" 5 |
| 2991 | fi |
| 2992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $interp" >&5 |
| 2993 | $as_echo "$interp" >&6; } |
doko@python.org | 244b687 | 2013-01-26 12:08:25 +0100 | [diff] [blame] | 2994 | 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] | 2995 | fi |
Christian Heimes | 954ac03 | 2012-12-12 13:10:21 +0100 | [diff] [blame] | 2996 | elif test "$cross_compiling" = maybe; then |
| 2997 | 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] | 2998 | else |
| 2999 | PYTHON_FOR_BUILD='./$(BUILDPYTHON) -E' |
| 3000 | fi |
| 3001 | |
| 3002 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3003 | |
Benjamin Peterson | d23f822 | 2009-04-05 19:13:16 +0000 | [diff] [blame] | 3004 | if test "$prefix" != "/"; then |
| 3005 | prefix=`echo "$prefix" | sed -e 's/\/$//g'` |
| 3006 | fi |
| 3007 | |
| 3008 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3009 | |
| 3010 | |
Martin v. Löwis | 8316feb | 2003-06-14 07:48:07 +0000 | [diff] [blame] | 3011 | # We don't use PACKAGE_ variables, and they cause conflicts |
| 3012 | # with other autoconf-based packages that include Python.h |
| 3013 | grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new |
| 3014 | rm confdefs.h |
| 3015 | mv confdefs.h.new confdefs.h |
| 3016 | |
Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 3017 | |
Yury Selivanov | 7aa5341 | 2015-05-30 10:57:56 -0400 | [diff] [blame] | 3018 | VERSION=3.5 |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 3019 | |
Benjamin Peterson | d7f73e9 | 2010-09-05 00:09:07 +0000 | [diff] [blame] | 3020 | # Version number of Python's own shared library file. |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3021 | |
| 3022 | SOVERSION=1.0 |
| 3023 | |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 3024 | # The later defininition of _XOPEN_SOURCE disables certain features |
| 3025 | # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone). |
| 3026 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3027 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 3028 | |
| 3029 | |
Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 3030 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 3031 | # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable |
| 3032 | # them. |
| 3033 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3034 | $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h |
Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 3035 | |
| 3036 | |
Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 3037 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 3038 | # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable |
| 3039 | # them. |
| 3040 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3041 | $as_echo "#define __BSD_VISIBLE 1" >>confdefs.h |
Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 3042 | |
| 3043 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 3044 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 3045 | # u_int on Irix 5.3. Defining _BSD_TYPES brings it back. |
| 3046 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3047 | $as_echo "#define _BSD_TYPES 1" >>confdefs.h |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 3048 | |
| 3049 | |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3050 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 3051 | # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable |
| 3052 | # them. |
| 3053 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3054 | $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3055 | |
| 3056 | |
| 3057 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3058 | define_xopen_source=yes |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 3059 | |
Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 +0000 | [diff] [blame] | 3060 | # Arguments passed to configure. |
| 3061 | |
| 3062 | CONFIG_ARGS="$ac_configure_args" |
| 3063 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3064 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-universalsdk" >&5 |
| 3065 | $as_echo_n "checking for --enable-universalsdk... " >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3066 | # Check whether --enable-universalsdk was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3067 | if test "${enable_universalsdk+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3068 | enableval=$enable_universalsdk; |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3069 | case $enableval in |
| 3070 | yes) |
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3071 | # Locate the best usable SDK, see Mac/README.txt for more |
| 3072 | # information |
| 3073 | enableval="`/usr/bin/xcodebuild -version -sdk macosx Path 2>/dev/null`" |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 3074 | if ! ( echo $enableval | grep -E '\.sdk' 1>/dev/null ) |
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3075 | then |
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3076 | enableval=/Developer/SDKs/MacOSX10.4u.sdk |
| 3077 | if test ! -d "${enableval}" |
| 3078 | then |
| 3079 | enableval=/ |
| 3080 | fi |
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3081 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3082 | ;; |
| 3083 | esac |
| 3084 | case $enableval in |
| 3085 | no) |
| 3086 | UNIVERSALSDK= |
| 3087 | enable_universalsdk= |
| 3088 | ;; |
| 3089 | *) |
| 3090 | UNIVERSALSDK=$enableval |
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3091 | if test ! -d "${UNIVERSALSDK}" |
| 3092 | then |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 3093 | as_fn_error $? "--enable-universalsdk specifies non-existing SDK: ${UNIVERSALSDK}" "$LINENO" 5 |
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3094 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3095 | ;; |
| 3096 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3097 | |
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3098 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3099 | else |
| 3100 | |
| 3101 | UNIVERSALSDK= |
| 3102 | enable_universalsdk= |
| 3103 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3104 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3105 | |
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3106 | if test -n "${UNIVERSALSDK}" |
| 3107 | then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSALSDK}" >&5 |
| 3109 | $as_echo "${UNIVERSALSDK}" >&6; } |
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3110 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3112 | $as_echo "no" >&6; } |
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3113 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3114 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3115 | |
Benjamin Peterson | 6794aa3 | 2008-07-16 20:33:37 +0000 | [diff] [blame] | 3116 | |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 3117 | ARCH_RUN_32BIT="" |
Benjamin Peterson | 6794aa3 | 2008-07-16 20:33:37 +0000 | [diff] [blame] | 3118 | |
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3119 | # For backward compatibility reasons we prefer to select '32-bit' if available, |
| 3120 | # otherwise use 'intel' |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3121 | UNIVERSAL_ARCHS="32-bit" |
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3122 | if test "`uname -s`" = "Darwin" |
| 3123 | then |
| 3124 | if test -n "${UNIVERSALSDK}" |
| 3125 | then |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 3126 | 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] | 3127 | then |
| 3128 | UNIVERSAL_ARCHS="intel" |
| 3129 | fi |
| 3130 | fi |
| 3131 | fi |
| 3132 | |
Ronald Oussoren | 6f6c562 | 2009-12-24 14:03:19 +0000 | [diff] [blame] | 3133 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3134 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-universal-archs" >&5 |
| 3135 | $as_echo_n "checking for --with-universal-archs... " >&6; } |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3136 | |
| 3137 | # Check whether --with-universal-archs was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3138 | if test "${with_universal_archs+set}" = set; then : |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3139 | withval=$with_universal_archs; |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3140 | UNIVERSAL_ARCHS="$withval" |
| 3141 | |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3142 | fi |
| 3143 | |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 3144 | if test -n "${UNIVERSALSDK}" |
| 3145 | then |
| 3146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSAL_ARCHS}" >&5 |
| 3147 | $as_echo "${UNIVERSAL_ARCHS}" >&6; } |
| 3148 | else |
| 3149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3150 | $as_echo "no" >&6; } |
| 3151 | fi |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3152 | |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 3153 | |
| 3154 | # Check whether --with-framework-name was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3155 | if test "${with_framework_name+set}" = set; then : |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 3156 | withval=$with_framework_name; |
| 3157 | PYTHONFRAMEWORK=${withval} |
| 3158 | PYTHONFRAMEWORKDIR=${withval}.framework |
| 3159 | PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'` |
| 3160 | |
| 3161 | else |
| 3162 | |
| 3163 | PYTHONFRAMEWORK=Python |
| 3164 | PYTHONFRAMEWORKDIR=Python.framework |
| 3165 | PYTHONFRAMEWORKIDENTIFIER=org.python.python |
| 3166 | |
| 3167 | fi |
| 3168 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3169 | # Check whether --enable-framework was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3170 | if test "${enable_framework+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3171 | enableval=$enable_framework; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3172 | case $enableval in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3173 | yes) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3174 | enableval=/Library/Frameworks |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3175 | esac |
| 3176 | case $enableval in |
| 3177 | no) |
| 3178 | PYTHONFRAMEWORK= |
| 3179 | PYTHONFRAMEWORKDIR=no-framework |
| 3180 | PYTHONFRAMEWORKPREFIX= |
| 3181 | PYTHONFRAMEWORKINSTALLDIR= |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3182 | FRAMEWORKINSTALLFIRST= |
| 3183 | FRAMEWORKINSTALLLAST= |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3184 | FRAMEWORKALTINSTALLFIRST= |
| 3185 | FRAMEWORKALTINSTALLLAST= |
Ned Deily | b8f944f | 2013-11-21 22:42:25 -0800 | [diff] [blame] | 3186 | FRAMEWORKPYTHONW= |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3187 | if test "x${prefix}" = "xNONE"; then |
| 3188 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
| 3189 | else |
| 3190 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
| 3191 | fi |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3192 | enable_framework= |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3193 | ;; |
| 3194 | *) |
Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 3195 | PYTHONFRAMEWORKPREFIX="${enableval}" |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3196 | PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3197 | FRAMEWORKINSTALLFIRST="frameworkinstallstructure" |
Ronald Oussoren | f6ccbf6 | 2009-06-02 10:55:56 +0000 | [diff] [blame] | 3198 | FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure " |
Ronald Oussoren | 6f6c562 | 2009-12-24 14:03:19 +0000 | [diff] [blame] | 3199 | FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools" |
| 3200 | FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools" |
Ned Deily | b8f944f | 2013-11-21 22:42:25 -0800 | [diff] [blame] | 3201 | FRAMEWORKPYTHONW="frameworkpythonw" |
Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 3202 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3203 | |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3204 | if test "x${prefix}" = "xNONE" ; then |
| 3205 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 3206 | |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3207 | else |
| 3208 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
| 3209 | fi |
Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 3210 | |
| 3211 | case "${enableval}" in |
| 3212 | /System*) |
| 3213 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" |
| 3214 | if test "${prefix}" = "NONE" ; then |
| 3215 | # See below |
| 3216 | FRAMEWORKUNIXTOOLSPREFIX="/usr" |
| 3217 | fi |
| 3218 | ;; |
| 3219 | |
| 3220 | /Library*) |
| 3221 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" |
| 3222 | ;; |
| 3223 | |
| 3224 | */Library/Frameworks) |
| 3225 | MDIR="`dirname "${enableval}"`" |
| 3226 | MDIR="`dirname "${MDIR}"`" |
| 3227 | FRAMEWORKINSTALLAPPSPREFIX="${MDIR}/Applications" |
| 3228 | |
| 3229 | if test "${prefix}" = "NONE"; then |
| 3230 | # User hasn't specified the |
| 3231 | # --prefix option, but wants to install |
| 3232 | # the framework in a non-default location, |
| 3233 | # ensure that the compatibility links get |
| 3234 | # installed relative to that prefix as well |
| 3235 | # instead of in /usr/local. |
| 3236 | FRAMEWORKUNIXTOOLSPREFIX="${MDIR}" |
| 3237 | fi |
| 3238 | ;; |
| 3239 | |
| 3240 | *) |
| 3241 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" |
| 3242 | ;; |
| 3243 | esac |
| 3244 | |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3245 | prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3246 | |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 3247 | # Add files for Mac specific code to the list of output |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3248 | # files: |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3249 | ac_config_files="$ac_config_files Mac/Makefile" |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3250 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3251 | ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile" |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3252 | |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 3253 | ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist" |
| 3254 | |
| 3255 | ac_config_files="$ac_config_files Mac/Resources/app/Info.plist" |
| 3256 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3257 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3258 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3259 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3260 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3261 | PYTHONFRAMEWORK= |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3262 | PYTHONFRAMEWORKDIR=no-framework |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3263 | PYTHONFRAMEWORKPREFIX= |
| 3264 | PYTHONFRAMEWORKINSTALLDIR= |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3265 | FRAMEWORKINSTALLFIRST= |
| 3266 | FRAMEWORKINSTALLLAST= |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3267 | FRAMEWORKALTINSTALLFIRST= |
| 3268 | FRAMEWORKALTINSTALLLAST= |
Ned Deily | b8f944f | 2013-11-21 22:42:25 -0800 | [diff] [blame] | 3269 | FRAMEWORKPYTHONW= |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3270 | if test "x${prefix}" = "xNONE" ; then |
| 3271 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
| 3272 | else |
| 3273 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
| 3274 | fi |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3275 | enable_framework= |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3276 | |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3277 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3278 | fi |
| 3279 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3280 | |
| 3281 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3282 | |
| 3283 | |
| 3284 | |
| 3285 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3286 | |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3287 | |
| 3288 | |
| 3289 | |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 3290 | |
Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 3291 | |
Ned Deily | b8f944f | 2013-11-21 22:42:25 -0800 | [diff] [blame] | 3292 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3293 | ##AC_ARG_WITH(dyld, |
Matthias Klose | 2b8733f | 2010-04-25 18:34:36 +0000 | [diff] [blame] | 3294 | ## AS_HELP_STRING([--with-dyld], |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 3295 | ## [Use (OpenStep|Rhapsody) dynamic linker])) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3296 | ## |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3297 | # Set name for machine-dependent library files |
| 3298 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3299 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP" >&5 |
| 3300 | $as_echo_n "checking MACHDEP... " >&6; } |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3301 | if test -z "$MACHDEP" |
| 3302 | then |
Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 3303 | # avoid using uname for cross builds |
| 3304 | if test "$cross_compiling" = yes; then |
doko@python.org | 44bbbda | 2013-01-25 14:44:00 +0100 | [diff] [blame] | 3305 | # ac_sys_system and ac_sys_release are used for setting |
| 3306 | # a lot of different things including 'define_xopen_source' |
| 3307 | # in the case statement below. |
Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 3308 | case "$host" in |
| 3309 | *-*-linux*) |
| 3310 | ac_sys_system=Linux |
| 3311 | ;; |
| 3312 | *-*-cygwin*) |
| 3313 | ac_sys_system=Cygwin |
| 3314 | ;; |
| 3315 | *) |
| 3316 | # for now, limit cross builds to known configurations |
| 3317 | MACHDEP="unknown" |
| 3318 | as_fn_error $? "cross build not supported for $host" "$LINENO" 5 |
| 3319 | esac |
| 3320 | ac_sys_release= |
| 3321 | else |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3322 | ac_sys_system=`uname -s` |
Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 3323 | if test "$ac_sys_system" = "AIX" \ |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 3324 | -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3325 | ac_sys_release=`uname -v` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3326 | else |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3327 | ac_sys_release=`uname -r` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3328 | fi |
Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 3329 | fi |
| 3330 | ac_md_system=`echo $ac_sys_system | |
| 3331 | tr -d '/ ' | tr '[A-Z]' '[a-z]'` |
| 3332 | ac_md_release=`echo $ac_sys_release | |
| 3333 | tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'` |
| 3334 | MACHDEP="$ac_md_system$ac_md_release" |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3335 | |
Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 3336 | case $MACHDEP in |
Victor Stinner | 7209ff2 | 2011-08-21 00:00:16 +0200 | [diff] [blame] | 3337 | linux*) MACHDEP="linux";; |
Andrew M. Kuchling | 5a3e4cb | 2001-07-20 19:29:04 +0000 | [diff] [blame] | 3338 | cygwin*) MACHDEP="cygwin";; |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame] | 3339 | darwin*) MACHDEP="darwin";; |
doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 3340 | irix646) MACHDEP="irix6";; |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 3341 | '') MACHDEP="unknown";; |
Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 3342 | esac |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3343 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3344 | |
doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 3345 | |
| 3346 | if test "$cross_compiling" = yes; then |
| 3347 | case "$host" in |
| 3348 | *-*-linux*) |
| 3349 | case "$host_cpu" in |
| 3350 | arm*) |
| 3351 | _host_cpu=arm |
| 3352 | ;; |
| 3353 | *) |
| 3354 | _host_cpu=$host_cpu |
| 3355 | esac |
| 3356 | ;; |
| 3357 | *-*-cygwin*) |
| 3358 | _host_cpu= |
| 3359 | ;; |
| 3360 | *) |
| 3361 | # for now, limit cross builds to known configurations |
| 3362 | MACHDEP="unknown" |
| 3363 | as_fn_error $? "cross build not supported for $host" "$LINENO" 5 |
| 3364 | esac |
| 3365 | _PYTHON_HOST_PLATFORM="$MACHDEP${_host_cpu:+-$_host_cpu}" |
| 3366 | fi |
| 3367 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3368 | # Some systems cannot stand _XOPEN_SOURCE being defined at all; they |
| 3369 | # disable features if it is defined, without any means to access these |
| 3370 | # features as extensions. For these systems, we skip the definition of |
| 3371 | # _XOPEN_SOURCE. Before adding a system to the list to gain access to |
| 3372 | # some feature, make sure there is no alternative way to access this |
| 3373 | # feature. Also, when using wildcards, make sure you have verified the |
| 3374 | # need for not defining _XOPEN_SOURCE on all systems matching the |
| 3375 | # wildcard, and that the wildcard does not include future systems |
| 3376 | # (which may remove their limitations). |
| 3377 | case $ac_sys_system/$ac_sys_release in |
| 3378 | # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined, |
| 3379 | # 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] | 3380 | # 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] | 3381 | # In addition, Stefan Krah confirms that issue #1244610 exists through |
| 3382 | # OpenBSD 4.6, but is fixed in 4.7. |
Charles-François Natali | 54ef40b | 2011-07-22 23:52:02 +0200 | [diff] [blame] | 3383 | OpenBSD/2.* | OpenBSD/3.* | OpenBSD/4.[0123456]) |
Christian Heimes | 5b5e81c | 2007-12-31 16:14:33 +0000 | [diff] [blame] | 3384 | define_xopen_source=no |
| 3385 | # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is |
| 3386 | # also defined. This can be overridden by defining _BSD_SOURCE |
| 3387 | # As this has a different meaning on Linux, only define it on OpenBSD |
| 3388 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3389 | $as_echo "#define _BSD_SOURCE 1" >>confdefs.h |
Christian Heimes | 5b5e81c | 2007-12-31 16:14:33 +0000 | [diff] [blame] | 3390 | |
| 3391 | ;; |
Charles-François Natali | 54ef40b | 2011-07-22 23:52:02 +0200 | [diff] [blame] | 3392 | OpenBSD/*) |
Martin v. Löwis | 7671efc | 2010-02-15 08:35:16 +0000 | [diff] [blame] | 3393 | # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is |
| 3394 | # also defined. This can be overridden by defining _BSD_SOURCE |
| 3395 | # As this has a different meaning on Linux, only define it on OpenBSD |
| 3396 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3397 | $as_echo "#define _BSD_SOURCE 1" >>confdefs.h |
Martin v. Löwis | 7671efc | 2010-02-15 08:35:16 +0000 | [diff] [blame] | 3398 | |
| 3399 | ;; |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 3400 | # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of |
| 3401 | # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by |
| 3402 | # Marc Recht |
Benjamin Peterson | f608c61 | 2008-11-16 18:33:53 +0000 | [diff] [blame] | 3403 | 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] | 3404 | define_xopen_source=no;; |
Martin v. Löwis | 1a41576 | 2010-05-28 15:44:20 +0000 | [diff] [blame] | 3405 | # From the perspective of Solaris, _XOPEN_SOURCE is not so much a |
| 3406 | # request to enable features supported by the standard as a request |
| 3407 | # to disable features not supported by the standard. The best way |
| 3408 | # for Python to use Solaris is simply to leave _XOPEN_SOURCE out |
| 3409 | # entirely and define __EXTENSIONS__ instead. |
| 3410 | SunOS/*) |
Martin v. Löwis | a9d7142 | 2003-03-28 18:43:31 +0000 | [diff] [blame] | 3411 | define_xopen_source=no;; |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 3412 | # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE, |
| 3413 | # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice. |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3414 | # Reconfirmed for 7.1.4 by Martin v. Loewis. |
Martin v. Löwis | 253d1f4 | 2004-05-07 19:14:14 +0000 | [diff] [blame] | 3415 | OpenUNIX/8.0.0| UnixWare/7.1.[0-4]) |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 3416 | define_xopen_source=no;; |
| 3417 | # 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] | 3418 | # 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] | 3419 | SCO_SV/3.2) |
Martin v. Löwis | 53e73c3 | 2003-05-05 05:13:18 +0000 | [diff] [blame] | 3420 | define_xopen_source=no;; |
Martin v. Löwis | b37509b | 2008-11-04 20:45:29 +0000 | [diff] [blame] | 3421 | # On FreeBSD 4, the math functions C89 does not cover are never defined |
| 3422 | # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them. |
| 3423 | FreeBSD/4.*) |
| 3424 | define_xopen_source=no;; |
| 3425 | # On MacOS X 10.2, a bug in ncurses.h means that it craps out if |
| 3426 | # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which |
| 3427 | # identifies itself as Darwin/7.* |
| 3428 | # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE |
| 3429 | # disables platform specific features beyond repair. |
| 3430 | # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE |
| 3431 | # has no effect, don't bother defining them |
| 3432 | Darwin/[6789].*) |
Anthony Baxter | 6169c6b | 2003-10-04 07:46:23 +0000 | [diff] [blame] | 3433 | define_xopen_source=no;; |
Ronald Oussoren | 92fb941 | 2010-03-09 06:40:19 +0000 | [diff] [blame] | 3434 | Darwin/1[0-9].*) |
Ronald Oussoren | b8f11a6 | 2010-03-08 07:02:03 +0000 | [diff] [blame] | 3435 | define_xopen_source=no;; |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 3436 | # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but |
| 3437 | # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined |
| 3438 | # 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] | 3439 | AIX/4) |
| 3440 | define_xopen_source=no;; |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 3441 | AIX/5) |
| 3442 | if test `uname -r` -eq 1; then |
| 3443 | define_xopen_source=no |
| 3444 | fi |
| 3445 | ;; |
Benjamin Peterson | de9c869 | 2008-07-01 18:23:09 +0000 | [diff] [blame] | 3446 | # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from |
| 3447 | # defining NI_NUMERICHOST. |
| 3448 | QNX/6.3.2) |
| 3449 | define_xopen_source=no |
| 3450 | ;; |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 3451 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3452 | esac |
| 3453 | |
| 3454 | if test $define_xopen_source = yes |
| 3455 | then |
Victor Stinner | 14d098d | 2011-09-07 22:29:43 +0200 | [diff] [blame] | 3456 | # X/Open 7, incorporating POSIX.1-2008 |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3457 | |
Victor Stinner | 14d098d | 2011-09-07 22:29:43 +0200 | [diff] [blame] | 3458 | $as_echo "#define _XOPEN_SOURCE 700" >>confdefs.h |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3459 | |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3460 | |
| 3461 | # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires |
| 3462 | # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else |
| 3463 | # several APIs are not declared. Since this is also needed in some |
| 3464 | # cases for HP-UX, we define it globally. |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3465 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3466 | $as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3467 | |
| 3468 | |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 3469 | |
Victor Stinner | d169fdc | 2011-09-08 00:56:17 +0200 | [diff] [blame] | 3470 | $as_echo "#define _POSIX_C_SOURCE 200809L" >>confdefs.h |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3471 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3472 | fi |
| 3473 | |
Christian Heimes | 647cd87 | 2013-12-07 23:39:33 +0100 | [diff] [blame] | 3474 | # On HP-UX mbstate_t requires _INCLUDE__STDC_A1_SOURCE |
| 3475 | case $ac_sys_system in |
Christian Heimes | b02bcae | 2013-12-08 15:21:08 +0100 | [diff] [blame] | 3476 | hp*|HP*) |
| 3477 | define_stdc_a1=yes;; |
| 3478 | *) |
| 3479 | define_stdc_a1=no;; |
| 3480 | esac |
| 3481 | |
| 3482 | if test $define_stdc_a1 = yes |
| 3483 | then |
Christian Heimes | 647cd87 | 2013-12-07 23:39:33 +0100 | [diff] [blame] | 3484 | |
| 3485 | $as_echo "#define _INCLUDE__STDC_A1_SOURCE 1" >>confdefs.h |
| 3486 | |
Christian Heimes | b02bcae | 2013-12-08 15:21:08 +0100 | [diff] [blame] | 3487 | fi |
Christian Heimes | 647cd87 | 2013-12-07 23:39:33 +0100 | [diff] [blame] | 3488 | |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3489 | # |
| 3490 | # SGI compilers allow the specification of the both the ABI and the |
| 3491 | # ISA on the command line. Depending on the values of these switches, |
| 3492 | # different and often incompatable code will be generated. |
| 3493 | # |
| 3494 | # The SGI_ABI variable can be used to modify the CC and LDFLAGS and |
| 3495 | # thus supply support for various ABI/ISA combinations. The MACHDEP |
| 3496 | # variable is also adjusted. |
| 3497 | # |
| 3498 | |
| 3499 | if test ! -z "$SGI_ABI" |
| 3500 | then |
| 3501 | CC="cc $SGI_ABI" |
| 3502 | LDFLAGS="$SGI_ABI $LDFLAGS" |
| 3503 | MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'` |
| 3504 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACHDEP" >&5 |
| 3506 | $as_echo "$MACHDEP" >&6; } |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3507 | |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3508 | # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET, |
| 3509 | # it may influence the way we can build extensions, so distutils |
| 3510 | # needs to check it |
| 3511 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3512 | |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3513 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET= |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3514 | EXPORT_MACOSX_DEPLOYMENT_TARGET='#' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3515 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3516 | # checks for alternative programs |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3517 | |
| 3518 | # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just |
| 3519 | # for debug/optimization stuff. BASECFLAGS is for flags that are required |
| 3520 | # just to get things to compile and link. Users are free to override OPT |
| 3521 | # when running configure or make. The build should not break if they do. |
| 3522 | # BASECFLAGS should generally not be messed with, however. |
| 3523 | |
| 3524 | # XXX shouldn't some/most/all of this code be merged with the stuff later |
| 3525 | # on that fiddles with OPT and BASECFLAGS? |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3526 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --without-gcc" >&5 |
| 3527 | $as_echo_n "checking for --without-gcc... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3528 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3529 | # Check whether --with-gcc was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3530 | if test "${with_gcc+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3531 | withval=$with_gcc; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3532 | case $withval in |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3533 | no) CC=${CC:-cc} |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3534 | without_gcc=yes;; |
| 3535 | yes) CC=gcc |
| 3536 | without_gcc=no;; |
| 3537 | *) CC=$withval |
| 3538 | without_gcc=$withval;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3539 | esac |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3540 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3541 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3542 | case $ac_sys_system in |
Antoine Pitrou | f6350d2 | 2010-09-21 15:19:14 +0000 | [diff] [blame] | 3543 | AIX*) CC=${CC:-xlc_r} |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 3544 | without_gcc=;; |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3545 | *) without_gcc=no;; |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 3546 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3547 | fi |
| 3548 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $without_gcc" >&5 |
| 3550 | $as_echo "$without_gcc" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3551 | |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 3552 | # If the user switches compilers, we can't believe the cache |
| 3553 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" |
| 3554 | then |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 3555 | as_fn_error $? "cached CC is different -- throw away $cache_file |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3556 | (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] | 3557 | fi |
| 3558 | |
Jeffrey Yasskin | d4fcdb1 | 2010-07-09 16:30:58 +0000 | [diff] [blame] | 3559 | # Don't let AC_PROG_CC set the default CFLAGS. It normally sets -g -O2 |
| 3560 | # when the compiler supports them, but we don't always want -O2, and |
| 3561 | # we set -g later. |
| 3562 | if test -z "$CFLAGS"; then |
| 3563 | CFLAGS= |
| 3564 | fi |
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3565 | |
| 3566 | if test "$ac_sys_system" = "Darwin" |
| 3567 | then |
| 3568 | # Compiler selection on MacOSX is more complicated than |
| 3569 | # AC_PROG_CC can handle, see Mac/README.txt for more |
| 3570 | # information |
| 3571 | if test -z "${CC}" |
| 3572 | then |
| 3573 | found_gcc= |
| 3574 | found_clang= |
| 3575 | as_save_IFS=$IFS; IFS=: |
| 3576 | for as_dir in $PATH |
| 3577 | do |
| 3578 | IFS=$as_save_IFS |
| 3579 | if test -x $as_dir/gcc; then |
| 3580 | if test -z "${found_gcc}"; then |
| 3581 | found_gcc=$as_dir/gcc |
| 3582 | fi |
| 3583 | fi |
| 3584 | if test -x $as_dir/clang; then |
| 3585 | if test -z "${found_clang}"; then |
| 3586 | found_clang=$as_dir/clang |
| 3587 | fi |
| 3588 | fi |
| 3589 | done |
| 3590 | IFS=$as_save_IFS |
| 3591 | |
| 3592 | if test -n "$found_gcc" -a -n "$found_clang" |
| 3593 | then |
| 3594 | if test -n "`"$found_gcc" --version | grep llvm-gcc`" |
| 3595 | then |
| 3596 | { $as_echo "$as_me:${as_lineno-$LINENO}: Detected llvm-gcc, falling back to clang" >&5 |
| 3597 | $as_echo "$as_me: Detected llvm-gcc, falling back to clang" >&6;} |
| 3598 | CC="$found_clang" |
| 3599 | CXX="$found_clang++" |
| 3600 | fi |
| 3601 | |
| 3602 | |
| 3603 | elif test -z "$found_gcc" -a -n "$found_clang" |
| 3604 | then |
| 3605 | { $as_echo "$as_me:${as_lineno-$LINENO}: No GCC found, use CLANG" >&5 |
| 3606 | $as_echo "$as_me: No GCC found, use CLANG" >&6;} |
| 3607 | CC="$found_clang" |
| 3608 | CXX="$found_clang++" |
| 3609 | |
| 3610 | elif test -z "$found_gcc" -a -z "$found_clang" |
| 3611 | then |
| 3612 | found_clang=`/usr/bin/xcrun -find clang 2>/dev/null` |
| 3613 | if test -n "${found_clang}" |
| 3614 | then |
| 3615 | { $as_echo "$as_me:${as_lineno-$LINENO}: Using clang from Xcode.app" >&5 |
| 3616 | $as_echo "$as_me: Using clang from Xcode.app" >&6;} |
| 3617 | CC="${found_clang}" |
| 3618 | CXX="`/usr/bin/xcrun -find clang++`" |
| 3619 | |
| 3620 | # else: use default behaviour |
| 3621 | fi |
| 3622 | fi |
| 3623 | fi |
| 3624 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3625 | ac_ext=c |
| 3626 | ac_cpp='$CPP $CPPFLAGS' |
| 3627 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3628 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3629 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3630 | if test -n "$ac_tool_prefix"; then |
| 3631 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 3632 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3633 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3634 | $as_echo_n "checking for $ac_word... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3635 | if ${ac_cv_prog_CC+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3636 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3637 | else |
| 3638 | if test -n "$CC"; then |
| 3639 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3640 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3641 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3642 | for as_dir in $PATH |
| 3643 | do |
| 3644 | IFS=$as_save_IFS |
| 3645 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3646 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 3647 | 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] | 3648 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3649 | $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] | 3650 | break 2 |
| 3651 | fi |
| 3652 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3653 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3654 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3655 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3656 | fi |
| 3657 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3658 | CC=$ac_cv_prog_CC |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3659 | if test -n "$CC"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3661 | $as_echo "$CC" >&6; } |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3662 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3664 | $as_echo "no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3665 | fi |
| 3666 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3667 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3668 | fi |
| 3669 | if test -z "$ac_cv_prog_CC"; then |
| 3670 | ac_ct_CC=$CC |
| 3671 | # Extract the first word of "gcc", so it can be a program name with args. |
| 3672 | set dummy gcc; ac_word=$2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3673 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3674 | $as_echo_n "checking for $ac_word... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3675 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3676 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3677 | else |
| 3678 | if test -n "$ac_ct_CC"; then |
| 3679 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3680 | else |
| 3681 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3682 | for as_dir in $PATH |
| 3683 | do |
| 3684 | IFS=$as_save_IFS |
| 3685 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3686 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 3687 | 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] | 3688 | ac_cv_prog_ac_ct_CC="gcc" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3689 | $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] | 3690 | break 2 |
| 3691 | fi |
| 3692 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3693 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3694 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3695 | |
| 3696 | fi |
| 3697 | fi |
| 3698 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3699 | if test -n "$ac_ct_CC"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3701 | $as_echo "$ac_ct_CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3702 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3704 | $as_echo "no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3705 | fi |
| 3706 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3707 | if test "x$ac_ct_CC" = x; then |
| 3708 | CC="" |
| 3709 | else |
| 3710 | case $cross_compiling:$ac_tool_warned in |
| 3711 | yes:) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3712 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3713 | $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] | 3714 | ac_tool_warned=yes ;; |
| 3715 | esac |
| 3716 | CC=$ac_ct_CC |
| 3717 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3718 | else |
| 3719 | CC="$ac_cv_prog_CC" |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3720 | fi |
| 3721 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3722 | if test -z "$CC"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3723 | if test -n "$ac_tool_prefix"; then |
| 3724 | # 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] | 3725 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3726 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3727 | $as_echo_n "checking for $ac_word... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3728 | if ${ac_cv_prog_CC+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3729 | $as_echo_n "(cached) " >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3730 | else |
| 3731 | if test -n "$CC"; then |
| 3732 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3733 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3734 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3735 | for as_dir in $PATH |
| 3736 | do |
| 3737 | IFS=$as_save_IFS |
| 3738 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3739 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 3740 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3741 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3742 | $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] | 3743 | break 2 |
| 3744 | fi |
| 3745 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3746 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3747 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3748 | |
| 3749 | fi |
| 3750 | fi |
| 3751 | CC=$ac_cv_prog_CC |
| 3752 | if test -n "$CC"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3754 | $as_echo "$CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3755 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3757 | $as_echo "no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3758 | fi |
| 3759 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3760 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3761 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3762 | fi |
| 3763 | if test -z "$CC"; then |
| 3764 | # Extract the first word of "cc", so it can be a program name with args. |
| 3765 | set dummy cc; ac_word=$2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3766 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3767 | $as_echo_n "checking for $ac_word... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3768 | if ${ac_cv_prog_CC+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3769 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3770 | else |
| 3771 | if test -n "$CC"; then |
| 3772 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3773 | else |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3774 | ac_prog_rejected=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3775 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3776 | for as_dir in $PATH |
| 3777 | do |
| 3778 | IFS=$as_save_IFS |
| 3779 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3780 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 3781 | 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] | 3782 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 3783 | ac_prog_rejected=yes |
| 3784 | continue |
| 3785 | fi |
| 3786 | ac_cv_prog_CC="cc" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3787 | $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] | 3788 | break 2 |
| 3789 | fi |
| 3790 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3791 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3792 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3793 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3794 | if test $ac_prog_rejected = yes; then |
| 3795 | # We found a bogon in the path, so make sure we never use it. |
| 3796 | set dummy $ac_cv_prog_CC |
| 3797 | shift |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3798 | if test $# != 0; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3799 | # We chose a different compiler from the bogus one. |
| 3800 | # However, it has the same basename, so the bogon will be chosen |
| 3801 | # first if we set CC to just the basename; use the full file name. |
| 3802 | shift |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3803 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3804 | fi |
| 3805 | fi |
| 3806 | fi |
| 3807 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3808 | CC=$ac_cv_prog_CC |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3809 | if test -n "$CC"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3811 | $as_echo "$CC" >&6; } |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3812 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3814 | $as_echo "no" >&6; } |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3815 | fi |
| 3816 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3817 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3818 | fi |
| 3819 | if test -z "$CC"; then |
| 3820 | if test -n "$ac_tool_prefix"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3821 | for ac_prog in cl.exe |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3822 | do |
| 3823 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3824 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3825 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3826 | $as_echo_n "checking for $ac_word... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3827 | if ${ac_cv_prog_CC+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3828 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3829 | else |
| 3830 | if test -n "$CC"; then |
| 3831 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3832 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3833 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3834 | for as_dir in $PATH |
| 3835 | do |
| 3836 | IFS=$as_save_IFS |
| 3837 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3838 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 3839 | 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] | 3840 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3841 | $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] | 3842 | break 2 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3843 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3844 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3845 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3846 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3847 | |
| 3848 | fi |
| 3849 | fi |
| 3850 | CC=$ac_cv_prog_CC |
| 3851 | if test -n "$CC"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3853 | $as_echo "$CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3854 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3856 | $as_echo "no" >&6; } |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3857 | fi |
| 3858 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3859 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3860 | test -n "$CC" && break |
| 3861 | done |
| 3862 | fi |
| 3863 | if test -z "$CC"; then |
| 3864 | ac_ct_CC=$CC |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3865 | for ac_prog in cl.exe |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3866 | do |
| 3867 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3868 | set dummy $ac_prog; ac_word=$2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3869 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3870 | $as_echo_n "checking for $ac_word... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3871 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3872 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3873 | else |
| 3874 | if test -n "$ac_ct_CC"; then |
| 3875 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3876 | else |
| 3877 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3878 | for as_dir in $PATH |
| 3879 | do |
| 3880 | IFS=$as_save_IFS |
| 3881 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3882 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 3883 | 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] | 3884 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3885 | $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] | 3886 | break 2 |
| 3887 | fi |
| 3888 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3889 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3890 | IFS=$as_save_IFS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3891 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3892 | fi |
| 3893 | fi |
| 3894 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3895 | if test -n "$ac_ct_CC"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3897 | $as_echo "$ac_ct_CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3898 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3900 | $as_echo "no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3901 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3902 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3903 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3904 | test -n "$ac_ct_CC" && break |
| 3905 | done |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3906 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3907 | if test "x$ac_ct_CC" = x; then |
| 3908 | CC="" |
| 3909 | else |
| 3910 | case $cross_compiling:$ac_tool_warned in |
| 3911 | yes:) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3912 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3913 | $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] | 3914 | ac_tool_warned=yes ;; |
| 3915 | esac |
| 3916 | CC=$ac_ct_CC |
| 3917 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3918 | fi |
| 3919 | |
| 3920 | fi |
| 3921 | |
| 3922 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3923 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3924 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 3925 | as_fn_error $? "no acceptable C compiler found in \$PATH |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3926 | See \`config.log' for more details" "$LINENO" 5; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3927 | |
| 3928 | # Provide some information about the compiler. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3929 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 3930 | set X $ac_compile |
| 3931 | ac_compiler=$2 |
| 3932 | for ac_option in --version -v -V -qversion; do |
| 3933 | { { ac_try="$ac_compiler $ac_option >&5" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3934 | case "(($ac_try" in |
| 3935 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3936 | *) ac_try_echo=$ac_try;; |
| 3937 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3938 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3939 | $as_echo "$ac_try_echo"; } >&5 |
| 3940 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3941 | ac_status=$? |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3942 | if test -s conftest.err; then |
| 3943 | sed '10a\ |
| 3944 | ... rest of stderr output deleted ... |
| 3945 | 10q' conftest.err >conftest.er1 |
| 3946 | cat conftest.er1 >&5 |
| 3947 | fi |
| 3948 | rm -f conftest.er1 conftest.err |
| 3949 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3950 | test $ac_status = 0; } |
| 3951 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3952 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3953 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3954 | /* end confdefs.h. */ |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3955 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3956 | int |
| 3957 | main () |
| 3958 | { |
| 3959 | |
| 3960 | ; |
| 3961 | return 0; |
| 3962 | } |
| 3963 | _ACEOF |
| 3964 | ac_clean_files_save=$ac_clean_files |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3965 | 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] | 3966 | # Try to create an executable without -o first, disregard a.out. |
| 3967 | # It will help us diagnose broken compilers, and finding out an intuition |
| 3968 | # of exeext. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3969 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 3970 | $as_echo_n "checking whether the C compiler works... " >&6; } |
| 3971 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 3972 | |
| 3973 | # The possible output files: |
| 3974 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 3975 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3976 | ac_rmfiles= |
| 3977 | for ac_file in $ac_files |
| 3978 | do |
| 3979 | case $ac_file in |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3980 | *.$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] | 3981 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 3982 | esac |
| 3983 | done |
| 3984 | rm -f $ac_rmfiles |
| 3985 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3986 | if { { ac_try="$ac_link_default" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3987 | case "(($ac_try" in |
| 3988 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3989 | *) ac_try_echo=$ac_try;; |
| 3990 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3991 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3992 | $as_echo "$ac_try_echo"; } >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3993 | (eval "$ac_link_default") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3994 | ac_status=$? |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3995 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3996 | test $ac_status = 0; }; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3997 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 3998 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 3999 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 4000 | # so that the user can short-circuit this test for compilers unknown to |
| 4001 | # Autoconf. |
| 4002 | for ac_file in $ac_files '' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4003 | do |
| 4004 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4005 | case $ac_file in |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4006 | *.$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] | 4007 | ;; |
| 4008 | [ab].out ) |
| 4009 | # We found the default executable, but exeext='' is most |
| 4010 | # certainly right. |
| 4011 | break;; |
| 4012 | *.* ) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4013 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4014 | then :; else |
| 4015 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 4016 | fi |
| 4017 | # We set ac_cv_exeext here because the later test for it is not |
| 4018 | # safe: cross compilers may not add the suffix if given an `-o' |
| 4019 | # argument, so we may need to know it at that point already. |
| 4020 | # Even if this section looks crufty: it has the advantage of |
| 4021 | # actually working. |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4022 | break;; |
| 4023 | * ) |
| 4024 | break;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4025 | esac |
| 4026 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4027 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 4028 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4029 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4030 | ac_file='' |
| 4031 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4032 | if test -z "$ac_file"; then : |
| 4033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4034 | $as_echo "no" >&6; } |
| 4035 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4036 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4037 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4038 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4039 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 4040 | as_fn_error 77 "C compiler cannot create executables |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4041 | See \`config.log' for more details" "$LINENO" 5; } |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4042 | else |
| 4043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 4044 | $as_echo "yes" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4045 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4046 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 4047 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
| 4048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 4049 | $as_echo "$ac_file" >&6; } |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4050 | ac_exeext=$ac_cv_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4051 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4052 | 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] | 4053 | ac_clean_files=$ac_clean_files_save |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4054 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
| 4055 | $as_echo_n "checking for suffix of executables... " >&6; } |
| 4056 | if { { ac_try="$ac_link" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4057 | case "(($ac_try" in |
| 4058 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4059 | *) ac_try_echo=$ac_try;; |
| 4060 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4061 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4062 | $as_echo "$ac_try_echo"; } >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4063 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4064 | ac_status=$? |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4065 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4066 | test $ac_status = 0; }; then : |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4067 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 4068 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 4069 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 4070 | # `rm'. |
| 4071 | for ac_file in conftest.exe conftest conftest.*; do |
| 4072 | test -f "$ac_file" || continue |
| 4073 | case $ac_file in |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4074 | *.$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] | 4075 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 4076 | break;; |
| 4077 | * ) break;; |
| 4078 | esac |
| 4079 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4080 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4081 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4082 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 4083 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4084 | See \`config.log' for more details" "$LINENO" 5; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4085 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4086 | rm -f conftest conftest$ac_cv_exeext |
| 4087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
| 4088 | $as_echo "$ac_cv_exeext" >&6; } |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4089 | |
| 4090 | rm -f conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4091 | EXEEXT=$ac_cv_exeext |
| 4092 | ac_exeext=$EXEEXT |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4093 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4094 | /* end confdefs.h. */ |
| 4095 | #include <stdio.h> |
| 4096 | int |
| 4097 | main () |
| 4098 | { |
| 4099 | FILE *f = fopen ("conftest.out", "w"); |
| 4100 | return ferror (f) || fclose (f) != 0; |
| 4101 | |
| 4102 | ; |
| 4103 | return 0; |
| 4104 | } |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4105 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4106 | ac_clean_files="$ac_clean_files conftest.out" |
| 4107 | # Check that the compiler produces executables we can run. If not, either |
| 4108 | # the compiler is broken, or we cross compile. |
| 4109 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 4110 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 4111 | if test "$cross_compiling" != yes; then |
| 4112 | { { ac_try="$ac_link" |
| 4113 | case "(($ac_try" in |
| 4114 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4115 | *) ac_try_echo=$ac_try;; |
| 4116 | esac |
| 4117 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4118 | $as_echo "$ac_try_echo"; } >&5 |
| 4119 | (eval "$ac_link") 2>&5 |
| 4120 | ac_status=$? |
| 4121 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4122 | test $ac_status = 0; } |
| 4123 | if { ac_try='./conftest$ac_cv_exeext' |
| 4124 | { { case "(($ac_try" in |
| 4125 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4126 | *) ac_try_echo=$ac_try;; |
| 4127 | esac |
| 4128 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4129 | $as_echo "$ac_try_echo"; } >&5 |
| 4130 | (eval "$ac_try") 2>&5 |
| 4131 | ac_status=$? |
| 4132 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4133 | test $ac_status = 0; }; }; then |
| 4134 | cross_compiling=no |
| 4135 | else |
| 4136 | if test "$cross_compiling" = maybe; then |
| 4137 | cross_compiling=yes |
| 4138 | else |
| 4139 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4140 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 4141 | as_fn_error $? "cannot run C compiled programs. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4142 | If you meant to cross compile, use \`--host'. |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4143 | See \`config.log' for more details" "$LINENO" 5; } |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4144 | fi |
| 4145 | fi |
| 4146 | fi |
| 4147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 4148 | $as_echo "$cross_compiling" >&6; } |
| 4149 | |
| 4150 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
| 4151 | ac_clean_files=$ac_clean_files_save |
| 4152 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
| 4153 | $as_echo_n "checking for suffix of object files... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4154 | if ${ac_cv_objext+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4155 | $as_echo_n "(cached) " >&6 |
| 4156 | else |
| 4157 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4158 | /* end confdefs.h. */ |
| 4159 | |
| 4160 | int |
| 4161 | main () |
| 4162 | { |
| 4163 | |
| 4164 | ; |
| 4165 | return 0; |
| 4166 | } |
| 4167 | _ACEOF |
| 4168 | rm -f conftest.o conftest.obj |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4169 | if { { ac_try="$ac_compile" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4170 | case "(($ac_try" in |
| 4171 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4172 | *) ac_try_echo=$ac_try;; |
| 4173 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4174 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4175 | $as_echo "$ac_try_echo"; } >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4176 | (eval "$ac_compile") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4177 | ac_status=$? |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4178 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4179 | test $ac_status = 0; }; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4180 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 4181 | test -f "$ac_file" || continue; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4182 | case $ac_file in |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4183 | *.$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] | 4184 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 4185 | break;; |
| 4186 | esac |
| 4187 | done |
| 4188 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4189 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4190 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4191 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4192 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4193 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 4194 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4195 | See \`config.log' for more details" "$LINENO" 5; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4196 | fi |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4197 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4198 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
| 4200 | $as_echo "$ac_cv_objext" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4201 | OBJEXT=$ac_cv_objext |
| 4202 | ac_objext=$OBJEXT |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4203 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
| 4204 | $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] | 4205 | if ${ac_cv_c_compiler_gnu+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4206 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4207 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4208 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4209 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4210 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4211 | int |
| 4212 | main () |
| 4213 | { |
| 4214 | #ifndef __GNUC__ |
| 4215 | choke me |
| 4216 | #endif |
| 4217 | |
| 4218 | ; |
| 4219 | return 0; |
| 4220 | } |
| 4221 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4222 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4223 | ac_compiler_gnu=yes |
| 4224 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4225 | ac_compiler_gnu=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4226 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4227 | 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] | 4228 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 4229 | |
| 4230 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 4232 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 4233 | if test $ac_compiler_gnu = yes; then |
| 4234 | GCC=yes |
| 4235 | else |
| 4236 | GCC= |
| 4237 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4238 | ac_test_CFLAGS=${CFLAGS+set} |
| 4239 | ac_save_CFLAGS=$CFLAGS |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4240 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 4241 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4242 | if ${ac_cv_prog_cc_g+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4243 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4244 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4245 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 4246 | ac_c_werror_flag=yes |
| 4247 | ac_cv_prog_cc_g=no |
| 4248 | CFLAGS="-g" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4249 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4250 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4251 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4252 | int |
| 4253 | main () |
| 4254 | { |
| 4255 | |
| 4256 | ; |
| 4257 | return 0; |
| 4258 | } |
| 4259 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4260 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4261 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4262 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4263 | CFLAGS="" |
| 4264 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4265 | /* end confdefs.h. */ |
| 4266 | |
| 4267 | int |
| 4268 | main () |
| 4269 | { |
| 4270 | |
| 4271 | ; |
| 4272 | return 0; |
| 4273 | } |
| 4274 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4275 | if ac_fn_c_try_compile "$LINENO"; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4276 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4277 | else |
| 4278 | ac_c_werror_flag=$ac_save_c_werror_flag |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4279 | CFLAGS="-g" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4280 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4281 | /* end confdefs.h. */ |
| 4282 | |
| 4283 | int |
| 4284 | main () |
| 4285 | { |
| 4286 | |
| 4287 | ; |
| 4288 | return 0; |
| 4289 | } |
| 4290 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4291 | if ac_fn_c_try_compile "$LINENO"; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4292 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4293 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4294 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4295 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4296 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4297 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4298 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4299 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 4300 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 4302 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4303 | if test "$ac_test_CFLAGS" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4304 | CFLAGS=$ac_save_CFLAGS |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4305 | elif test $ac_cv_prog_cc_g = yes; then |
| 4306 | if test "$GCC" = yes; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4307 | CFLAGS="-g -O2" |
| 4308 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4309 | CFLAGS="-g" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4310 | fi |
| 4311 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4312 | if test "$GCC" = yes; then |
| 4313 | CFLAGS="-O2" |
| 4314 | else |
| 4315 | CFLAGS= |
| 4316 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4317 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4318 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
| 4319 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4320 | if ${ac_cv_prog_cc_c89+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4321 | $as_echo_n "(cached) " >&6 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4322 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4323 | ac_cv_prog_cc_c89=no |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4324 | ac_save_CC=$CC |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4325 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4326 | /* end confdefs.h. */ |
| 4327 | #include <stdarg.h> |
| 4328 | #include <stdio.h> |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 4329 | struct stat; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4330 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 4331 | struct buf { int x; }; |
| 4332 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 4333 | static char *e (p, i) |
| 4334 | char **p; |
| 4335 | int i; |
| 4336 | { |
| 4337 | return p[i]; |
| 4338 | } |
| 4339 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 4340 | { |
| 4341 | char *s; |
| 4342 | va_list v; |
| 4343 | va_start (v,p); |
| 4344 | s = g (p, va_arg (v,int)); |
| 4345 | va_end (v); |
| 4346 | return s; |
| 4347 | } |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4348 | |
| 4349 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 4350 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 4351 | These don't provoke an error unfortunately, instead are silently treated |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4352 | 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] | 4353 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 4354 | 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] | 4355 | that's true only with -std. */ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4356 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 4357 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4358 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 4359 | inside strings and character constants. */ |
| 4360 | #define FOO(x) 'x' |
| 4361 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 4362 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4363 | int test (int i, double x); |
| 4364 | struct s1 {int (*f) (int a);}; |
| 4365 | struct s2 {int (*f) (double a);}; |
| 4366 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 4367 | int argc; |
| 4368 | char **argv; |
| 4369 | int |
| 4370 | main () |
| 4371 | { |
| 4372 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 4373 | ; |
| 4374 | return 0; |
| 4375 | } |
| 4376 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4377 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 4378 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4379 | do |
| 4380 | CC="$ac_save_CC $ac_arg" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4381 | if ac_fn_c_try_compile "$LINENO"; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4382 | ac_cv_prog_cc_c89=$ac_arg |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4383 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4384 | rm -f core conftest.err conftest.$ac_objext |
| 4385 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4386 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4387 | rm -f conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4388 | CC=$ac_save_CC |
| 4389 | |
| 4390 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4391 | # AC_CACHE_VAL |
| 4392 | case "x$ac_cv_prog_cc_c89" in |
| 4393 | x) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 4395 | $as_echo "none needed" >&6; } ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4396 | xno) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 4398 | $as_echo "unsupported" >&6; } ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4399 | *) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4400 | CC="$CC $ac_cv_prog_cc_c89" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4401 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 4402 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4403 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4404 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4405 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4406 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4407 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4408 | ac_ext=c |
| 4409 | ac_cpp='$CPP $CPPFLAGS' |
| 4410 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4411 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4412 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4413 | |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 4414 | ac_ext=c |
| 4415 | ac_cpp='$CPP $CPPFLAGS' |
| 4416 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4417 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4418 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4419 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
| 4420 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
| 4421 | # On Suns, sometimes $CPP names a directory. |
| 4422 | if test -n "$CPP" && test -d "$CPP"; then |
| 4423 | CPP= |
| 4424 | fi |
| 4425 | if test -z "$CPP"; then |
| 4426 | if ${ac_cv_prog_CPP+:} false; then : |
| 4427 | $as_echo_n "(cached) " >&6 |
| 4428 | else |
| 4429 | # Double quotes because CPP needs to be expanded |
| 4430 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 4431 | do |
| 4432 | ac_preproc_ok=false |
| 4433 | for ac_c_preproc_warn_flag in '' yes |
| 4434 | do |
| 4435 | # Use a header file that comes with gcc, so configuring glibc |
| 4436 | # with a fresh cross-compiler works. |
| 4437 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4438 | # <limits.h> exists even on freestanding compilers. |
| 4439 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4440 | # not just through cpp. "Syntax error" is here to catch this case. |
| 4441 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4442 | /* end confdefs.h. */ |
| 4443 | #ifdef __STDC__ |
| 4444 | # include <limits.h> |
| 4445 | #else |
| 4446 | # include <assert.h> |
| 4447 | #endif |
| 4448 | Syntax error |
| 4449 | _ACEOF |
| 4450 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 4451 | |
| 4452 | else |
| 4453 | # Broken: fails on valid input. |
| 4454 | continue |
| 4455 | fi |
| 4456 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 4457 | |
| 4458 | # OK, works on sane cases. Now check whether nonexistent headers |
| 4459 | # can be detected and how. |
| 4460 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4461 | /* end confdefs.h. */ |
| 4462 | #include <ac_nonexistent.h> |
| 4463 | _ACEOF |
| 4464 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 4465 | # Broken: success on invalid input. |
| 4466 | continue |
| 4467 | else |
| 4468 | # Passes both tests. |
| 4469 | ac_preproc_ok=: |
| 4470 | break |
| 4471 | fi |
| 4472 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 4473 | |
| 4474 | done |
| 4475 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4476 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 4477 | if $ac_preproc_ok; then : |
| 4478 | break |
| 4479 | fi |
| 4480 | |
| 4481 | done |
| 4482 | ac_cv_prog_CPP=$CPP |
| 4483 | |
| 4484 | fi |
| 4485 | CPP=$ac_cv_prog_CPP |
| 4486 | else |
| 4487 | ac_cv_prog_CPP=$CPP |
| 4488 | fi |
| 4489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
| 4490 | $as_echo "$CPP" >&6; } |
| 4491 | ac_preproc_ok=false |
| 4492 | for ac_c_preproc_warn_flag in '' yes |
| 4493 | do |
| 4494 | # Use a header file that comes with gcc, so configuring glibc |
| 4495 | # with a fresh cross-compiler works. |
| 4496 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4497 | # <limits.h> exists even on freestanding compilers. |
| 4498 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4499 | # not just through cpp. "Syntax error" is here to catch this case. |
| 4500 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4501 | /* end confdefs.h. */ |
| 4502 | #ifdef __STDC__ |
| 4503 | # include <limits.h> |
| 4504 | #else |
| 4505 | # include <assert.h> |
| 4506 | #endif |
| 4507 | Syntax error |
| 4508 | _ACEOF |
| 4509 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 4510 | |
| 4511 | else |
| 4512 | # Broken: fails on valid input. |
| 4513 | continue |
| 4514 | fi |
| 4515 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 4516 | |
| 4517 | # OK, works on sane cases. Now check whether nonexistent headers |
| 4518 | # can be detected and how. |
| 4519 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4520 | /* end confdefs.h. */ |
| 4521 | #include <ac_nonexistent.h> |
| 4522 | _ACEOF |
| 4523 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 4524 | # Broken: success on invalid input. |
| 4525 | continue |
| 4526 | else |
| 4527 | # Passes both tests. |
| 4528 | ac_preproc_ok=: |
| 4529 | break |
| 4530 | fi |
| 4531 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 4532 | |
| 4533 | done |
| 4534 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4535 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 4536 | if $ac_preproc_ok; then : |
| 4537 | |
| 4538 | else |
| 4539 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4540 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 4541 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
| 4542 | See \`config.log' for more details" "$LINENO" 5; } |
| 4543 | fi |
| 4544 | |
| 4545 | ac_ext=c |
| 4546 | ac_cpp='$CPP $CPPFLAGS' |
| 4547 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4548 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4549 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4550 | |
| 4551 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
| 4552 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
| 4553 | if ${ac_cv_path_GREP+:} false; then : |
| 4554 | $as_echo_n "(cached) " >&6 |
| 4555 | else |
| 4556 | if test -z "$GREP"; then |
| 4557 | ac_path_GREP_found=false |
| 4558 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4559 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4560 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4561 | do |
| 4562 | IFS=$as_save_IFS |
| 4563 | test -z "$as_dir" && as_dir=. |
| 4564 | for ac_prog in grep ggrep; do |
| 4565 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4566 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4567 | as_fn_executable_p "$ac_path_GREP" || continue |
| 4568 | # Check for GNU ac_path_GREP and select it if it is found. |
| 4569 | # Check for GNU $ac_path_GREP |
| 4570 | case `"$ac_path_GREP" --version 2>&1` in |
| 4571 | *GNU*) |
| 4572 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 4573 | *) |
| 4574 | ac_count=0 |
| 4575 | $as_echo_n 0123456789 >"conftest.in" |
| 4576 | while : |
| 4577 | do |
| 4578 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4579 | mv "conftest.tmp" "conftest.in" |
| 4580 | cp "conftest.in" "conftest.nl" |
| 4581 | $as_echo 'GREP' >> "conftest.nl" |
| 4582 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4583 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4584 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 4585 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 4586 | # Best one so far, save it but keep looking for a better one |
| 4587 | ac_cv_path_GREP="$ac_path_GREP" |
| 4588 | ac_path_GREP_max=$ac_count |
| 4589 | fi |
| 4590 | # 10*(2^10) chars as input seems more than enough |
| 4591 | test $ac_count -gt 10 && break |
| 4592 | done |
| 4593 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4594 | esac |
| 4595 | |
| 4596 | $ac_path_GREP_found && break 3 |
| 4597 | done |
| 4598 | done |
| 4599 | done |
| 4600 | IFS=$as_save_IFS |
| 4601 | if test -z "$ac_cv_path_GREP"; then |
| 4602 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 4603 | fi |
| 4604 | else |
| 4605 | ac_cv_path_GREP=$GREP |
| 4606 | fi |
| 4607 | |
| 4608 | fi |
| 4609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
| 4610 | $as_echo "$ac_cv_path_GREP" >&6; } |
| 4611 | GREP="$ac_cv_path_GREP" |
| 4612 | |
| 4613 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 4614 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4615 | |
| 4616 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4617 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-cxx-main=<compiler>" >&5 |
| 4618 | $as_echo_n "checking for --with-cxx-main=<compiler>... " >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4619 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4620 | # Check whether --with-cxx_main was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4621 | if test "${with_cxx_main+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4622 | withval=$with_cxx_main; |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4623 | |
| 4624 | case $withval in |
| 4625 | no) with_cxx_main=no |
| 4626 | MAINCC='$(CC)';; |
| 4627 | yes) with_cxx_main=yes |
| 4628 | MAINCC='$(CXX)';; |
| 4629 | *) with_cxx_main=yes |
| 4630 | MAINCC=$withval |
| 4631 | if test -z "$CXX" |
| 4632 | then |
| 4633 | CXX=$withval |
| 4634 | fi;; |
| 4635 | esac |
| 4636 | else |
| 4637 | |
| 4638 | with_cxx_main=no |
| 4639 | MAINCC='$(CC)' |
| 4640 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4641 | fi |
| 4642 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_cxx_main" >&5 |
| 4644 | $as_echo "$with_cxx_main" >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4645 | |
| 4646 | preset_cxx="$CXX" |
| 4647 | if test -z "$CXX" |
| 4648 | then |
| 4649 | case "$CC" in |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4650 | gcc) if test -n "$ac_tool_prefix"; then |
| 4651 | # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args. |
| 4652 | set dummy ${ac_tool_prefix}g++; ac_word=$2 |
| 4653 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4654 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4655 | if ${ac_cv_path_CXX+:} false; then : |
| 4656 | $as_echo_n "(cached) " >&6 |
| 4657 | else |
| 4658 | case $CXX in |
| 4659 | [\\/]* | ?:[\\/]*) |
| 4660 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. |
| 4661 | ;; |
| 4662 | *) |
| 4663 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4664 | for as_dir in notfound |
| 4665 | do |
| 4666 | IFS=$as_save_IFS |
| 4667 | test -z "$as_dir" && as_dir=. |
| 4668 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 4669 | 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] | 4670 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" |
| 4671 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4672 | break 2 |
| 4673 | fi |
| 4674 | done |
| 4675 | done |
| 4676 | IFS=$as_save_IFS |
| 4677 | |
| 4678 | ;; |
| 4679 | esac |
| 4680 | fi |
| 4681 | CXX=$ac_cv_path_CXX |
| 4682 | if test -n "$CXX"; then |
| 4683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
| 4684 | $as_echo "$CXX" >&6; } |
| 4685 | else |
| 4686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4687 | $as_echo "no" >&6; } |
| 4688 | fi |
| 4689 | |
| 4690 | |
| 4691 | fi |
| 4692 | if test -z "$ac_cv_path_CXX"; then |
| 4693 | ac_pt_CXX=$CXX |
| 4694 | # 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] | 4695 | set dummy g++; ac_word=$2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4696 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4697 | $as_echo_n "checking for $ac_word... " >&6; } |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4698 | if ${ac_cv_path_ac_pt_CXX+:} false; then : |
| 4699 | $as_echo_n "(cached) " >&6 |
| 4700 | else |
| 4701 | case $ac_pt_CXX in |
| 4702 | [\\/]* | ?:[\\/]*) |
| 4703 | ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. |
| 4704 | ;; |
| 4705 | *) |
| 4706 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4707 | for as_dir in notfound |
| 4708 | do |
| 4709 | IFS=$as_save_IFS |
| 4710 | test -z "$as_dir" && as_dir=. |
| 4711 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 4712 | 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] | 4713 | ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext" |
| 4714 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4715 | break 2 |
| 4716 | fi |
| 4717 | done |
| 4718 | done |
| 4719 | IFS=$as_save_IFS |
| 4720 | |
| 4721 | ;; |
| 4722 | esac |
| 4723 | fi |
| 4724 | ac_pt_CXX=$ac_cv_path_ac_pt_CXX |
| 4725 | if test -n "$ac_pt_CXX"; then |
| 4726 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 |
| 4727 | $as_echo "$ac_pt_CXX" >&6; } |
| 4728 | else |
| 4729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4730 | $as_echo "no" >&6; } |
| 4731 | fi |
| 4732 | |
| 4733 | if test "x$ac_pt_CXX" = x; then |
| 4734 | CXX="g++" |
| 4735 | else |
| 4736 | case $cross_compiling:$ac_tool_warned in |
| 4737 | yes:) |
| 4738 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4739 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4740 | ac_tool_warned=yes ;; |
| 4741 | esac |
| 4742 | CXX=$ac_pt_CXX |
| 4743 | fi |
| 4744 | else |
| 4745 | CXX="$ac_cv_path_CXX" |
| 4746 | fi |
| 4747 | ;; |
| 4748 | cc) if test -n "$ac_tool_prefix"; then |
| 4749 | # Extract the first word of "${ac_tool_prefix}c++", so it can be a program name with args. |
| 4750 | set dummy ${ac_tool_prefix}c++; ac_word=$2 |
| 4751 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4752 | $as_echo_n "checking for $ac_word... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4753 | if ${ac_cv_path_CXX+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4754 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4755 | else |
| 4756 | case $CXX in |
| 4757 | [\\/]* | ?:[\\/]*) |
| 4758 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. |
| 4759 | ;; |
| 4760 | *) |
| 4761 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4762 | for as_dir in notfound |
| 4763 | do |
| 4764 | IFS=$as_save_IFS |
| 4765 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4766 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 4767 | 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] | 4768 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4769 | $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] | 4770 | break 2 |
| 4771 | fi |
| 4772 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4773 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4774 | IFS=$as_save_IFS |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4775 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4776 | ;; |
| 4777 | esac |
| 4778 | fi |
| 4779 | CXX=$ac_cv_path_CXX |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4780 | if test -n "$CXX"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
| 4782 | $as_echo "$CXX" >&6; } |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4783 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4785 | $as_echo "no" >&6; } |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4786 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4787 | |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4788 | |
| 4789 | fi |
| 4790 | if test -z "$ac_cv_path_CXX"; then |
| 4791 | ac_pt_CXX=$CXX |
| 4792 | # 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] | 4793 | set dummy c++; ac_word=$2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4794 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4795 | $as_echo_n "checking for $ac_word... " >&6; } |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4796 | if ${ac_cv_path_ac_pt_CXX+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4797 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4798 | else |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4799 | case $ac_pt_CXX in |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4800 | [\\/]* | ?:[\\/]*) |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4801 | 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] | 4802 | ;; |
| 4803 | *) |
| 4804 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4805 | for as_dir in notfound |
| 4806 | do |
| 4807 | IFS=$as_save_IFS |
| 4808 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4809 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 4810 | 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] | 4811 | 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] | 4812 | $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] | 4813 | break 2 |
| 4814 | fi |
| 4815 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4816 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4817 | IFS=$as_save_IFS |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4818 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4819 | ;; |
| 4820 | esac |
| 4821 | fi |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4822 | ac_pt_CXX=$ac_cv_path_ac_pt_CXX |
| 4823 | if test -n "$ac_pt_CXX"; then |
| 4824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 |
| 4825 | $as_echo "$ac_pt_CXX" >&6; } |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4826 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4828 | $as_echo "no" >&6; } |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4829 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4830 | |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4831 | if test "x$ac_pt_CXX" = x; then |
| 4832 | CXX="c++" |
| 4833 | else |
| 4834 | case $cross_compiling:$ac_tool_warned in |
| 4835 | yes:) |
| 4836 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4837 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4838 | ac_tool_warned=yes ;; |
| 4839 | esac |
| 4840 | CXX=$ac_pt_CXX |
| 4841 | fi |
| 4842 | else |
| 4843 | CXX="$ac_cv_path_CXX" |
| 4844 | fi |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4845 | ;; |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4846 | clang|*/clang) if test -n "$ac_tool_prefix"; then |
| 4847 | # Extract the first word of "${ac_tool_prefix}clang++", so it can be a program name with args. |
| 4848 | set dummy ${ac_tool_prefix}clang++; ac_word=$2 |
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 4849 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4850 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4851 | if ${ac_cv_path_CXX+:} false; then : |
| 4852 | $as_echo_n "(cached) " >&6 |
| 4853 | else |
| 4854 | case $CXX in |
| 4855 | [\\/]* | ?:[\\/]*) |
| 4856 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. |
| 4857 | ;; |
| 4858 | *) |
| 4859 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4860 | for as_dir in notfound |
| 4861 | do |
| 4862 | IFS=$as_save_IFS |
| 4863 | test -z "$as_dir" && as_dir=. |
| 4864 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 4865 | 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] | 4866 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" |
| 4867 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4868 | break 2 |
| 4869 | fi |
| 4870 | done |
| 4871 | done |
| 4872 | IFS=$as_save_IFS |
| 4873 | |
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 4874 | ;; |
| 4875 | esac |
| 4876 | fi |
| 4877 | CXX=$ac_cv_path_CXX |
| 4878 | if test -n "$CXX"; then |
| 4879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
| 4880 | $as_echo "$CXX" >&6; } |
| 4881 | else |
| 4882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4883 | $as_echo "no" >&6; } |
| 4884 | fi |
| 4885 | |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4886 | |
| 4887 | fi |
| 4888 | if test -z "$ac_cv_path_CXX"; then |
| 4889 | ac_pt_CXX=$CXX |
| 4890 | # Extract the first word of "clang++", so it can be a program name with args. |
| 4891 | set dummy clang++; ac_word=$2 |
| 4892 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4893 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4894 | if ${ac_cv_path_ac_pt_CXX+:} false; then : |
| 4895 | $as_echo_n "(cached) " >&6 |
| 4896 | else |
| 4897 | case $ac_pt_CXX in |
| 4898 | [\\/]* | ?:[\\/]*) |
| 4899 | ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. |
| 4900 | ;; |
| 4901 | *) |
| 4902 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4903 | for as_dir in notfound |
| 4904 | do |
| 4905 | IFS=$as_save_IFS |
| 4906 | test -z "$as_dir" && as_dir=. |
| 4907 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 4908 | 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] | 4909 | ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext" |
| 4910 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4911 | break 2 |
| 4912 | fi |
| 4913 | done |
| 4914 | done |
| 4915 | IFS=$as_save_IFS |
| 4916 | |
| 4917 | ;; |
| 4918 | esac |
| 4919 | fi |
| 4920 | ac_pt_CXX=$ac_cv_path_ac_pt_CXX |
| 4921 | if test -n "$ac_pt_CXX"; then |
| 4922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 |
| 4923 | $as_echo "$ac_pt_CXX" >&6; } |
| 4924 | else |
| 4925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4926 | $as_echo "no" >&6; } |
| 4927 | fi |
| 4928 | |
| 4929 | if test "x$ac_pt_CXX" = x; then |
| 4930 | CXX="clang++" |
| 4931 | else |
| 4932 | case $cross_compiling:$ac_tool_warned in |
| 4933 | yes:) |
| 4934 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4935 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4936 | ac_tool_warned=yes ;; |
| 4937 | esac |
| 4938 | CXX=$ac_pt_CXX |
| 4939 | fi |
| 4940 | else |
| 4941 | CXX="$ac_cv_path_CXX" |
| 4942 | fi |
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 4943 | ;; |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4944 | esac |
| 4945 | if test "$CXX" = "notfound" |
| 4946 | then |
| 4947 | CXX="" |
| 4948 | fi |
| 4949 | fi |
| 4950 | if test -z "$CXX" |
| 4951 | then |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4952 | if test -n "$ac_tool_prefix"; then |
| 4953 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
| 4954 | do |
| 4955 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 4956 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4957 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4958 | $as_echo_n "checking for $ac_word... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4959 | if ${ac_cv_prog_CXX+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4960 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4961 | else |
| 4962 | if test -n "$CXX"; then |
| 4963 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 4964 | else |
| 4965 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4966 | for as_dir in $PATH |
| 4967 | do |
| 4968 | IFS=$as_save_IFS |
| 4969 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4970 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 4971 | 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] | 4972 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4973 | $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] | 4974 | break 2 |
| 4975 | fi |
| 4976 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4977 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4978 | IFS=$as_save_IFS |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4979 | |
| 4980 | fi |
| 4981 | fi |
| 4982 | CXX=$ac_cv_prog_CXX |
| 4983 | if test -n "$CXX"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
| 4985 | $as_echo "$CXX" >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4986 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4988 | $as_echo "no" >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4989 | fi |
| 4990 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4991 | |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4992 | test -n "$CXX" && break |
| 4993 | done |
| 4994 | fi |
| 4995 | if test -z "$CXX"; then |
| 4996 | ac_ct_CXX=$CXX |
| 4997 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
| 4998 | do |
| 4999 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5000 | set dummy $ac_prog; ac_word=$2 |
| 5001 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5002 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5003 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
| 5004 | $as_echo_n "(cached) " >&6 |
| 5005 | else |
| 5006 | if test -n "$ac_ct_CXX"; then |
| 5007 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 5008 | else |
| 5009 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5010 | for as_dir in $PATH |
| 5011 | do |
| 5012 | IFS=$as_save_IFS |
| 5013 | test -z "$as_dir" && as_dir=. |
| 5014 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 5015 | 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] | 5016 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 5017 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5018 | break 2 |
| 5019 | fi |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5020 | done |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5021 | done |
| 5022 | IFS=$as_save_IFS |
| 5023 | |
| 5024 | fi |
| 5025 | fi |
| 5026 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 5027 | if test -n "$ac_ct_CXX"; then |
| 5028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
| 5029 | $as_echo "$ac_ct_CXX" >&6; } |
| 5030 | else |
| 5031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5032 | $as_echo "no" >&6; } |
| 5033 | fi |
| 5034 | |
| 5035 | |
| 5036 | test -n "$ac_ct_CXX" && break |
| 5037 | done |
| 5038 | |
| 5039 | if test "x$ac_ct_CXX" = x; then |
| 5040 | CXX="notfound" |
| 5041 | else |
| 5042 | case $cross_compiling:$ac_tool_warned in |
| 5043 | yes:) |
| 5044 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5045 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5046 | ac_tool_warned=yes ;; |
| 5047 | esac |
| 5048 | CXX=$ac_ct_CXX |
| 5049 | fi |
| 5050 | fi |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5051 | |
| 5052 | if test "$CXX" = "notfound" |
| 5053 | then |
| 5054 | CXX="" |
| 5055 | fi |
| 5056 | fi |
| 5057 | if test "$preset_cxx" != "$CXX" |
| 5058 | then |
Christian Heimes | fe32aec | 2013-11-20 01:18:26 +0100 | [diff] [blame] | 5059 | { $as_echo "$as_me:${as_lineno-$LINENO}: |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5060 | |
| 5061 | By default, distutils will build C++ extension modules with \"$CXX\". |
| 5062 | If this is not intended, then set CXX on the configure command line. |
| 5063 | " >&5 |
Christian Heimes | fe32aec | 2013-11-20 01:18:26 +0100 | [diff] [blame] | 5064 | $as_echo "$as_me: |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5065 | |
| 5066 | By default, distutils will build C++ extension modules with \"$CXX\". |
| 5067 | 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] | 5068 | " >&6;} |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5069 | fi |
| 5070 | |
| 5071 | |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5072 | MULTIARCH=$($CC --print-multiarch 2>/dev/null) |
| 5073 | |
| 5074 | |
| 5075 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the platform triplet based on compiler characteristics" >&5 |
| 5076 | $as_echo_n "checking for the platform triplet based on compiler characteristics... " >&6; } |
| 5077 | cat >> conftest.c <<EOF |
doko@ubuntu.com | 5cc9c4f | 2015-04-19 14:44:05 +0200 | [diff] [blame] | 5078 | #undef bfin |
| 5079 | #undef cris |
| 5080 | #undef fr30 |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5081 | #undef linux |
doko@ubuntu.com | 5cc9c4f | 2015-04-19 14:44:05 +0200 | [diff] [blame] | 5082 | #undef hppa |
| 5083 | #undef hpux |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5084 | #undef i386 |
doko@ubuntu.com | 5cc9c4f | 2015-04-19 14:44:05 +0200 | [diff] [blame] | 5085 | #undef mips |
doko@ubuntu.com | 9abe049 | 2015-04-15 23:31:02 +0200 | [diff] [blame] | 5086 | #undef powerpc |
doko@ubuntu.com | 5cc9c4f | 2015-04-19 14:44:05 +0200 | [diff] [blame] | 5087 | #undef sparc |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5088 | #undef unix |
| 5089 | #if defined(__linux__) |
| 5090 | # if defined(__x86_64__) && defined(__LP64__) |
| 5091 | x86_64-linux-gnu |
| 5092 | # elif defined(__x86_64__) && defined(__ILP32__) |
| 5093 | x86_64-linux-gnux32 |
| 5094 | # elif defined(__i386__) |
| 5095 | i386-linux-gnu |
| 5096 | # elif defined(__aarch64__) && defined(__AARCH64EL__) |
| 5097 | # if defined(__ILP32__) |
| 5098 | aarch64_ilp32-linux-gnu |
| 5099 | # else |
| 5100 | aarch64-linux-gnu |
| 5101 | # endif |
| 5102 | # elif defined(__aarch64__) && defined(__AARCH64EB__) |
| 5103 | # if defined(__ILP32__) |
| 5104 | aarch64_be_ilp32-linux-gnu |
| 5105 | # else |
| 5106 | aarch64_be-linux-gnu |
| 5107 | # endif |
| 5108 | # elif defined(__alpha__) |
| 5109 | alpha-linux-gnu |
| 5110 | # elif defined(__ARM_EABI__) && defined(__ARM_PCS_VFP) |
| 5111 | # if defined(__ARMEL__) |
| 5112 | arm-linux-gnueabihf |
| 5113 | # else |
| 5114 | armeb-linux-gnueabihf |
| 5115 | # endif |
| 5116 | # elif defined(__ARM_EABI__) && !defined(__ARM_PCS_VFP) |
| 5117 | # if defined(__ARMEL__) |
| 5118 | arm-linux-gnueabi |
| 5119 | # else |
| 5120 | armeb-linux-gnueabi |
| 5121 | # endif |
| 5122 | # elif defined(__hppa__) |
| 5123 | hppa-linux-gnu |
| 5124 | # elif defined(__ia64__) |
| 5125 | ia64-linux-gnu |
| 5126 | # elif defined(__m68k__) && !defined(__mcoldfire__) |
| 5127 | m68k-linux-gnu |
| 5128 | # elif defined(__mips_hard_float) && defined(_MIPSEL) |
| 5129 | # if _MIPS_SIM == _ABIO32 |
| 5130 | mipsel-linux-gnu |
| 5131 | # elif _MIPS_SIM == _ABIN32 |
| 5132 | mips64el-linux-gnuabin32 |
| 5133 | # elif _MIPS_SIM == _ABI64 |
| 5134 | mips64el-linux-gnuabi64 |
| 5135 | # else |
| 5136 | # error unknown platform triplet |
| 5137 | # endif |
| 5138 | # elif defined(__mips_hard_float) |
| 5139 | # if _MIPS_SIM == _ABIO32 |
| 5140 | mips-linux-gnu |
| 5141 | # elif _MIPS_SIM == _ABIN32 |
| 5142 | mips64-linux-gnuabin32 |
| 5143 | # elif _MIPS_SIM == _ABI64 |
| 5144 | mips64-linux-gnuabi64 |
| 5145 | # else |
| 5146 | # error unknown platform triplet |
| 5147 | # endif |
| 5148 | # elif defined(__or1k__) |
| 5149 | or1k-linux-gnu |
| 5150 | # elif defined(__powerpc__) && defined(__SPE__) |
| 5151 | powerpc-linux-gnuspe |
| 5152 | # elif defined(__powerpc64__) |
| 5153 | # if defined(__LITTLE_ENDIAN__) |
| 5154 | powerpc64le-linux-gnu |
| 5155 | # else |
| 5156 | powerpc64-linux-gnu |
| 5157 | # endif |
| 5158 | # elif defined(__powerpc__) |
| 5159 | powerpc-linux-gnu |
| 5160 | # elif defined(__s390x__) |
| 5161 | s390x-linux-gnu |
| 5162 | # elif defined(__s390__) |
| 5163 | s390-linux-gnu |
| 5164 | # elif defined(__sh__) && defined(__LITTLE_ENDIAN__) |
| 5165 | sh4-linux-gnu |
| 5166 | # elif defined(__sparc__) && defined(__arch64__) |
| 5167 | sparc64-linux-gnu |
| 5168 | # elif defined(__sparc__) |
| 5169 | sparc-linux-gnu |
| 5170 | # else |
| 5171 | # error unknown platform triplet |
| 5172 | # endif |
| 5173 | #elif defined(__FreeBSD_kernel__) |
| 5174 | # if defined(__LP64__) |
| 5175 | x86_64-kfreebsd-gnu |
| 5176 | # elif defined(__i386__) |
| 5177 | i386-kfreebsd-gnu |
| 5178 | # else |
| 5179 | # error unknown platform triplet |
| 5180 | # endif |
| 5181 | #elif defined(__gnu_hurd__) |
| 5182 | i386-gnu |
Ned Deily | 3b81248 | 2015-04-15 17:11:47 -0700 | [diff] [blame] | 5183 | #elif defined(__APPLE__) |
| 5184 | darwin |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5185 | #else |
| 5186 | # error unknown platform triplet |
| 5187 | #endif |
| 5188 | |
| 5189 | EOF |
| 5190 | |
| 5191 | if $CPP conftest.c >conftest.out 2>/dev/null; then |
| 5192 | PLATFORM_TRIPLET=`grep -v '^#' conftest.out | grep -v '^ *$' | tr -d ' '` |
| 5193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PLATFORM_TRIPLET" >&5 |
| 5194 | $as_echo "$PLATFORM_TRIPLET" >&6; } |
| 5195 | else |
| 5196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
| 5197 | $as_echo "none" >&6; } |
| 5198 | fi |
| 5199 | rm -f conftest.c conftest.out |
| 5200 | |
| 5201 | if test x$PLATFORM_TRIPLET != x && test x$MULTIARCH != x; then |
| 5202 | if test x$PLATFORM_TRIPLET != x$MULTIARCH; then |
| 5203 | as_fn_error $? "internal configure error for the platform triplet, please file a bug report" "$LINENO" 5 |
| 5204 | fi |
| 5205 | fi |
| 5206 | PLATDIR=plat-$MACHDEP |
| 5207 | |
| 5208 | |
| 5209 | |
| 5210 | |
Martin v. Löwis | 48e14d3 | 2011-05-09 07:37:45 +0200 | [diff] [blame] | 5211 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wl,--no-as-needed" >&5 |
| 5212 | $as_echo_n "checking for -Wl,--no-as-needed... " >&6; } |
| 5213 | save_LDFLAGS="$LDFLAGS" |
| 5214 | LDFLAGS="$LDFLAGS -Wl,--no-as-needed" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5215 | |
Martin v. Löwis | 48e14d3 | 2011-05-09 07:37:45 +0200 | [diff] [blame] | 5216 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5217 | /* end confdefs.h. */ |
| 5218 | |
| 5219 | int |
| 5220 | main () |
| 5221 | { |
| 5222 | |
| 5223 | ; |
| 5224 | return 0; |
| 5225 | } |
| 5226 | _ACEOF |
| 5227 | if ac_fn_c_try_link "$LINENO"; then : |
| 5228 | NO_AS_NEEDED="-Wl,--no-as-needed" |
| 5229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5230 | $as_echo "yes" >&6; } |
| 5231 | else |
| 5232 | NO_AS_NEEDED="" |
| 5233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5234 | $as_echo "no" >&6; } |
| 5235 | fi |
| 5236 | rm -f core conftest.err conftest.$ac_objext \ |
| 5237 | conftest$ac_exeext conftest.$ac_ext |
| 5238 | LDFLAGS="$save_LDFLAGS" |
| 5239 | |
| 5240 | |
| 5241 | |
| 5242 | # checks for UNIX variants that set C preprocessor variables |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5243 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5244 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
| 5245 | $as_echo_n "checking for egrep... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 5246 | if ${ac_cv_path_EGREP+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5247 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5248 | else |
| 5249 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 5250 | then ac_cv_path_EGREP="$GREP -E" |
| 5251 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5252 | if test -z "$EGREP"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5253 | ac_path_EGREP_found=false |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5254 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 5255 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5256 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 5257 | do |
| 5258 | IFS=$as_save_IFS |
| 5259 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5260 | for ac_prog in egrep; do |
| 5261 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5262 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 5263 | as_fn_executable_p "$ac_path_EGREP" || continue |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5264 | # 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] | 5265 | # Check for GNU $ac_path_EGREP |
| 5266 | case `"$ac_path_EGREP" --version 2>&1` in |
| 5267 | *GNU*) |
| 5268 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 5269 | *) |
| 5270 | ac_count=0 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5271 | $as_echo_n 0123456789 >"conftest.in" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5272 | while : |
| 5273 | do |
| 5274 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 5275 | mv "conftest.tmp" "conftest.in" |
| 5276 | cp "conftest.in" "conftest.nl" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5277 | $as_echo 'EGREP' >> "conftest.nl" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5278 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 5279 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5280 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5281 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 5282 | # Best one so far, save it but keep looking for a better one |
| 5283 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 5284 | ac_path_EGREP_max=$ac_count |
| 5285 | fi |
| 5286 | # 10*(2^10) chars as input seems more than enough |
| 5287 | test $ac_count -gt 10 && break |
| 5288 | done |
| 5289 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 5290 | esac |
| 5291 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5292 | $ac_path_EGREP_found && break 3 |
| 5293 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5294 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5295 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5296 | IFS=$as_save_IFS |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5297 | if test -z "$ac_cv_path_EGREP"; then |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 5298 | 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] | 5299 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5300 | else |
| 5301 | ac_cv_path_EGREP=$EGREP |
| 5302 | fi |
| 5303 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5304 | fi |
| 5305 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
| 5307 | $as_echo "$ac_cv_path_EGREP" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5308 | EGREP="$ac_cv_path_EGREP" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5309 | |
| 5310 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5311 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 5312 | $as_echo_n "checking for ANSI C header files... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 5313 | if ${ac_cv_header_stdc+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5314 | $as_echo_n "(cached) " >&6 |
| 5315 | else |
| 5316 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 5317 | /* end confdefs.h. */ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5318 | #include <stdlib.h> |
| 5319 | #include <stdarg.h> |
| 5320 | #include <string.h> |
| 5321 | #include <float.h> |
| 5322 | |
| 5323 | int |
| 5324 | main () |
| 5325 | { |
| 5326 | |
| 5327 | ; |
| 5328 | return 0; |
| 5329 | } |
| 5330 | _ACEOF |
| 5331 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5332 | ac_cv_header_stdc=yes |
| 5333 | else |
| 5334 | ac_cv_header_stdc=no |
| 5335 | fi |
| 5336 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5337 | |
| 5338 | if test $ac_cv_header_stdc = yes; then |
| 5339 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 5340 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5341 | /* end confdefs.h. */ |
| 5342 | #include <string.h> |
Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 5343 | |
Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 5344 | _ACEOF |
Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 5345 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5346 | $EGREP "memchr" >/dev/null 2>&1; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5347 | |
Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 5348 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5349 | ac_cv_header_stdc=no |
Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 5350 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 5351 | rm -f conftest* |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5352 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5353 | fi |
| 5354 | |
| 5355 | if test $ac_cv_header_stdc = yes; then |
| 5356 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 5357 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5358 | /* end confdefs.h. */ |
| 5359 | #include <stdlib.h> |
| 5360 | |
| 5361 | _ACEOF |
| 5362 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5363 | $EGREP "free" >/dev/null 2>&1; then : |
| 5364 | |
| 5365 | else |
| 5366 | ac_cv_header_stdc=no |
| 5367 | fi |
| 5368 | rm -f conftest* |
| 5369 | |
| 5370 | fi |
| 5371 | |
| 5372 | if test $ac_cv_header_stdc = yes; then |
| 5373 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 5374 | if test "$cross_compiling" = yes; then : |
| 5375 | : |
| 5376 | else |
| 5377 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5378 | /* end confdefs.h. */ |
| 5379 | #include <ctype.h> |
| 5380 | #include <stdlib.h> |
| 5381 | #if ((' ' & 0x0FF) == 0x020) |
| 5382 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 5383 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 5384 | #else |
| 5385 | # define ISLOWER(c) \ |
| 5386 | (('a' <= (c) && (c) <= 'i') \ |
| 5387 | || ('j' <= (c) && (c) <= 'r') \ |
| 5388 | || ('s' <= (c) && (c) <= 'z')) |
| 5389 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 5390 | #endif |
| 5391 | |
| 5392 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 5393 | int |
| 5394 | main () |
| 5395 | { |
| 5396 | int i; |
| 5397 | for (i = 0; i < 256; i++) |
| 5398 | if (XOR (islower (i), ISLOWER (i)) |
| 5399 | || toupper (i) != TOUPPER (i)) |
| 5400 | return 2; |
| 5401 | return 0; |
| 5402 | } |
| 5403 | _ACEOF |
| 5404 | if ac_fn_c_try_run "$LINENO"; then : |
| 5405 | |
| 5406 | else |
| 5407 | ac_cv_header_stdc=no |
| 5408 | fi |
| 5409 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 5410 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 5411 | fi |
| 5412 | |
| 5413 | fi |
| 5414 | fi |
| 5415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| 5416 | $as_echo "$ac_cv_header_stdc" >&6; } |
| 5417 | if test $ac_cv_header_stdc = yes; then |
| 5418 | |
| 5419 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
| 5420 | |
| 5421 | fi |
| 5422 | |
| 5423 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 5424 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 5425 | inttypes.h stdint.h unistd.h |
| 5426 | do : |
| 5427 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5428 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 5429 | " |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 5430 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5431 | cat >>confdefs.h <<_ACEOF |
| 5432 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 5433 | _ACEOF |
| 5434 | |
| 5435 | fi |
| 5436 | |
| 5437 | done |
| 5438 | |
| 5439 | |
| 5440 | |
| 5441 | 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] | 5442 | if test "x$ac_cv_header_minix_config_h" = xyes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5443 | MINIX=yes |
| 5444 | else |
| 5445 | MINIX= |
| 5446 | fi |
| 5447 | |
| 5448 | |
| 5449 | if test "$MINIX" = yes; then |
| 5450 | |
| 5451 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h |
| 5452 | |
| 5453 | |
| 5454 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h |
| 5455 | |
| 5456 | |
| 5457 | $as_echo "#define _MINIX 1" >>confdefs.h |
| 5458 | |
| 5459 | fi |
| 5460 | |
| 5461 | |
| 5462 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 |
| 5463 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 5464 | if ${ac_cv_safe_to_define___extensions__+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5465 | $as_echo_n "(cached) " >&6 |
| 5466 | else |
| 5467 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5468 | /* end confdefs.h. */ |
| 5469 | |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 5470 | # define __EXTENSIONS__ 1 |
| 5471 | $ac_includes_default |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5472 | int |
| 5473 | main () |
| 5474 | { |
| 5475 | |
| 5476 | ; |
| 5477 | return 0; |
| 5478 | } |
| 5479 | _ACEOF |
| 5480 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5481 | ac_cv_safe_to_define___extensions__=yes |
| 5482 | else |
| 5483 | ac_cv_safe_to_define___extensions__=no |
| 5484 | fi |
| 5485 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5486 | fi |
| 5487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
| 5488 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } |
| 5489 | test $ac_cv_safe_to_define___extensions__ = yes && |
| 5490 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h |
| 5491 | |
| 5492 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
| 5493 | |
| 5494 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
| 5495 | |
| 5496 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
| 5497 | |
| 5498 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h |
| 5499 | |
| 5500 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5501 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5502 | # Check for unsupported systems |
| 5503 | case $ac_sys_system/$ac_sys_release in |
| 5504 | atheos*|Linux*/1*) |
| 5505 | echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported. |
| 5506 | echo See README for details. |
| 5507 | exit 1;; |
| 5508 | esac |
| 5509 | |
| 5510 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5511 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-suffix" >&5 |
| 5512 | $as_echo_n "checking for --with-suffix... " >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5513 | |
| 5514 | # Check whether --with-suffix was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5515 | if test "${with_suffix+set}" = set; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5516 | withval=$with_suffix; |
| 5517 | case $withval in |
| 5518 | no) EXEEXT=;; |
| 5519 | yes) EXEEXT=.exe;; |
| 5520 | *) EXEEXT=$withval;; |
| 5521 | esac |
| 5522 | fi |
| 5523 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXEEXT" >&5 |
| 5525 | $as_echo "$EXEEXT" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5526 | |
| 5527 | # Test whether we're running on a non-case-sensitive system, in which |
| 5528 | # case we give a warning if no ext is given |
| 5529 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5530 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for case-insensitive build directory" >&5 |
| 5531 | $as_echo_n "checking for case-insensitive build directory... " >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5532 | if test ! -d CaseSensitiveTestDir; then |
| 5533 | mkdir CaseSensitiveTestDir |
| 5534 | fi |
| 5535 | |
| 5536 | if test -d casesensitivetestdir |
| 5537 | then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5539 | $as_echo "yes" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5540 | BUILDEXEEXT=.exe |
| 5541 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5543 | $as_echo "no" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5544 | BUILDEXEEXT=$EXEEXT |
| 5545 | fi |
| 5546 | rmdir CaseSensitiveTestDir |
| 5547 | |
| 5548 | case $MACHDEP in |
| 5549 | bsdos*) |
| 5550 | case $CC in |
| 5551 | gcc) CC="$CC -D_HAVE_BSDI";; |
| 5552 | esac;; |
| 5553 | esac |
| 5554 | |
| 5555 | case $ac_sys_system in |
| 5556 | hp*|HP*) |
| 5557 | case $CC in |
| 5558 | cc|*/cc) CC="$CC -Ae";; |
| 5559 | esac;; |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5560 | esac |
| 5561 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5562 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5563 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY" >&5 |
| 5564 | $as_echo_n "checking LIBRARY... " >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5565 | if test -z "$LIBRARY" |
| 5566 | then |
Barry Warsaw | f040d7d | 2010-10-18 17:09:07 +0000 | [diff] [blame] | 5567 | LIBRARY='libpython$(VERSION)$(ABIFLAGS).a' |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5568 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBRARY" >&5 |
| 5570 | $as_echo "$LIBRARY" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5571 | |
| 5572 | # LDLIBRARY is the name of the library to link against (as opposed to the |
| 5573 | # name of the library into which to insert object files). BLDLIBRARY is also |
| 5574 | # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY |
| 5575 | # is blank as the main program is not linked directly against LDLIBRARY. |
| 5576 | # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On |
| 5577 | # systems without shared libraries, LDLIBRARY is the same as LIBRARY |
| 5578 | # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, |
| 5579 | # DLLLIBRARY is the shared (i.e., DLL) library. |
| 5580 | # |
| 5581 | # RUNSHARED is used to run shared python without installed libraries |
| 5582 | # |
| 5583 | # INSTSONAME is the name of the shared library that will be use to install |
| 5584 | # on the system - some systems like version suffix, others don't |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5585 | # |
| 5586 | # LDVERSION is the shared library version number, normally the Python version |
| 5587 | # with the ABI build flags appended. |
| 5588 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5589 | |
| 5590 | |
| 5591 | |
| 5592 | |
| 5593 | |
| 5594 | |
Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 +0000 | [diff] [blame] | 5595 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5596 | LDLIBRARY="$LIBRARY" |
| 5597 | BLDLIBRARY='$(LDLIBRARY)' |
| 5598 | INSTSONAME='$(LDLIBRARY)' |
| 5599 | DLLLIBRARY='' |
| 5600 | LDLIBRARYDIR='' |
| 5601 | RUNSHARED='' |
Barry Warsaw | 14d98ac | 2010-11-24 19:43:47 +0000 | [diff] [blame] | 5602 | LDVERSION="$VERSION" |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5603 | |
| 5604 | # LINKCC is the command that links the python executable -- default is $(CC). |
| 5605 | # If CXX is set, and if it is needed to link a main function that was |
| 5606 | # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: |
| 5607 | # python might then depend on the C++ runtime |
| 5608 | # This is altered for AIX in order to build the export list before |
| 5609 | # linking. |
| 5610 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5611 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKCC" >&5 |
| 5612 | $as_echo_n "checking LINKCC... " >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5613 | if test -z "$LINKCC" |
| 5614 | then |
| 5615 | LINKCC='$(PURIFY) $(MAINCC)' |
| 5616 | case $ac_sys_system in |
| 5617 | AIX*) |
| 5618 | exp_extra="\"\"" |
| 5619 | if test $ac_sys_release -ge 5 -o \ |
| 5620 | $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then |
| 5621 | exp_extra="." |
| 5622 | fi |
| 5623 | LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";; |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5624 | QNX*) |
| 5625 | # qcc must be used because the other compilers do not |
| 5626 | # support -N. |
| 5627 | LINKCC=qcc;; |
| 5628 | esac |
| 5629 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKCC" >&5 |
| 5631 | $as_echo "$LINKCC" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5632 | |
| 5633 | # GNULD is set to "yes" if the GNU linker is used. If this goes wrong |
| 5634 | # make sure we default having it set to "no": this is used by |
| 5635 | # distutils.unixccompiler to know if it should add --enable-new-dtags |
| 5636 | # to linker command lines, and failing to detect GNU ld simply results |
| 5637 | # in the same bahaviour as before. |
| 5638 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5639 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
| 5640 | $as_echo_n "checking for GNU ld... " >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5641 | ac_prog=ld |
| 5642 | if test "$GCC" = yes; then |
| 5643 | ac_prog=`$CC -print-prog-name=ld` |
| 5644 | fi |
| 5645 | case `"$ac_prog" -V 2>&1 < /dev/null` in |
| 5646 | *GNU*) |
| 5647 | GNULD=yes;; |
| 5648 | *) |
| 5649 | GNULD=no;; |
| 5650 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNULD" >&5 |
| 5652 | $as_echo "$GNULD" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5653 | |
Daniel Stutzbach | a606faa | 2010-08-31 19:51:07 +0000 | [diff] [blame] | 5654 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
| 5655 | $as_echo_n "checking for inline... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 5656 | if ${ac_cv_c_inline+:} false; then : |
Daniel Stutzbach | a606faa | 2010-08-31 19:51:07 +0000 | [diff] [blame] | 5657 | $as_echo_n "(cached) " >&6 |
| 5658 | else |
| 5659 | ac_cv_c_inline=no |
| 5660 | for ac_kw in inline __inline__ __inline; do |
| 5661 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5662 | /* end confdefs.h. */ |
| 5663 | #ifndef __cplusplus |
| 5664 | typedef int foo_t; |
| 5665 | static $ac_kw foo_t static_foo () {return 0; } |
| 5666 | $ac_kw foo_t foo () {return 0; } |
| 5667 | #endif |
| 5668 | |
| 5669 | _ACEOF |
| 5670 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5671 | ac_cv_c_inline=$ac_kw |
| 5672 | fi |
| 5673 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5674 | test "$ac_cv_c_inline" != no && break |
| 5675 | done |
| 5676 | |
| 5677 | fi |
| 5678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 |
| 5679 | $as_echo "$ac_cv_c_inline" >&6; } |
| 5680 | |
| 5681 | case $ac_cv_c_inline in |
| 5682 | inline | yes) ;; |
| 5683 | *) |
| 5684 | case $ac_cv_c_inline in |
| 5685 | no) ac_val=;; |
| 5686 | *) ac_val=$ac_cv_c_inline;; |
| 5687 | esac |
| 5688 | cat >>confdefs.h <<_ACEOF |
| 5689 | #ifndef __cplusplus |
| 5690 | #define inline $ac_val |
| 5691 | #endif |
| 5692 | _ACEOF |
| 5693 | ;; |
| 5694 | esac |
| 5695 | |
| 5696 | if test "$ac_cv_c_inline" != no ; then |
Benjamin Peterson | d7f73e9 | 2010-09-05 00:09:07 +0000 | [diff] [blame] | 5697 | |
| 5698 | $as_echo "#define USE_INLINE 1" >>confdefs.h |
Daniel Stutzbach | a606faa | 2010-08-31 19:51:07 +0000 | [diff] [blame] | 5699 | |
| 5700 | |
| 5701 | fi |
| 5702 | |
| 5703 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5704 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-shared" >&5 |
| 5705 | $as_echo_n "checking for --enable-shared... " >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5706 | # Check whether --enable-shared was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5707 | if test "${enable_shared+set}" = set; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5708 | enableval=$enable_shared; |
| 5709 | fi |
| 5710 | |
| 5711 | |
| 5712 | if test -z "$enable_shared" |
| 5713 | then |
| 5714 | case $ac_sys_system in |
Antoine Pitrou | 6103ab1 | 2009-10-24 20:11:21 +0000 | [diff] [blame] | 5715 | CYGWIN*) |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5716 | enable_shared="yes";; |
| 5717 | *) |
| 5718 | enable_shared="no";; |
| 5719 | esac |
| 5720 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
| 5722 | $as_echo "$enable_shared" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5723 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5724 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-profiling" >&5 |
| 5725 | $as_echo_n "checking for --enable-profiling... " >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5726 | # Check whether --enable-profiling was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5727 | if test "${enable_profiling+set}" = set; then : |
doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 5728 | enableval=$enable_profiling; |
| 5729 | fi |
| 5730 | |
| 5731 | if test "x$enable_profiling" = xyes; then |
| 5732 | ac_save_cc="$CC" |
Benjamin Peterson | 615ea1a | 2013-03-26 08:55:37 -0400 | [diff] [blame] | 5733 | CC="$CC -pg" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5734 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5735 | /* end confdefs.h. */ |
| 5736 | int main() { return 0; } |
| 5737 | _ACEOF |
doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 5738 | if ac_fn_c_try_link "$LINENO"; then : |
| 5739 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5740 | else |
doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 5741 | enable_profiling=no |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5742 | fi |
doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 5743 | rm -f core conftest.err conftest.$ac_objext \ |
| 5744 | conftest$ac_exeext conftest.$ac_ext |
| 5745 | CC="$ac_save_cc" |
| 5746 | else |
| 5747 | enable_profiling=no |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5748 | fi |
doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 5749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_profiling" >&5 |
| 5750 | $as_echo "$enable_profiling" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5751 | |
doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 5752 | if test "x$enable_profiling" = xyes; then |
| 5753 | BASECFLAGS="-pg $BASECFLAGS" |
| 5754 | LDFLAGS="-pg $LDFLAGS" |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5755 | fi |
| 5756 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5757 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDLIBRARY" >&5 |
| 5758 | $as_echo_n "checking LDLIBRARY... " >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5759 | |
| 5760 | # MacOSX framework builds need more magic. LDLIBRARY is the dynamic |
| 5761 | # library that we build, but we do not want to link against it (we |
| 5762 | # will find it with a -framework option). For this reason there is an |
| 5763 | # extra variable BLDLIBRARY against which Python and the extension |
| 5764 | # modules are linked, BLDLIBRARY. This is normally the same as |
| 5765 | # LDLIBRARY, but empty for MacOSX framework builds. |
| 5766 | if test "$enable_framework" |
| 5767 | then |
| 5768 | LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
doko@ubuntu.com | e5de66e | 2014-05-07 12:57:44 +0200 | [diff] [blame] | 5769 | RUNSHARED=DYLD_FRAMEWORK_PATH=`pwd`${DYLD_FRAMEWORK_PATH:+:${DYLD_FRAMEWORK_PATH}} |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5770 | BLDLIBRARY='' |
| 5771 | else |
| 5772 | BLDLIBRARY='$(LDLIBRARY)' |
| 5773 | fi |
| 5774 | |
| 5775 | # Other platforms follow |
| 5776 | if test $enable_shared = "yes"; then |
doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 5777 | PY_ENABLE_SHARED=1 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5778 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5779 | $as_echo "#define Py_ENABLE_SHARED 1" >>confdefs.h |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5780 | |
| 5781 | case $ac_sys_system in |
| 5782 | CYGWIN*) |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5783 | LDLIBRARY='libpython$(LDVERSION).dll.a' |
| 5784 | DLLLIBRARY='libpython$(LDVERSION).dll' |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5785 | ;; |
| 5786 | SunOS*) |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5787 | LDLIBRARY='libpython$(LDVERSION).so' |
| 5788 | BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(LDVERSION)' |
doko@ubuntu.com | e5de66e | 2014-05-07 12:57:44 +0200 | [diff] [blame] | 5789 | RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5790 | INSTSONAME="$LDLIBRARY".$SOVERSION |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 5791 | if test "$with_pydebug" != yes |
Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 +0000 | [diff] [blame] | 5792 | then |
| 5793 | PY3LIBRARY=libpython3.so |
| 5794 | fi |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5795 | ;; |
Charles-François Natali | 749400a | 2011-07-24 22:41:18 +0200 | [diff] [blame] | 5796 | Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*|OpenBSD*) |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5797 | LDLIBRARY='libpython$(LDVERSION).so' |
| 5798 | BLDLIBRARY='-L. -lpython$(LDVERSION)' |
doko@ubuntu.com | e5de66e | 2014-05-07 12:57:44 +0200 | [diff] [blame] | 5799 | RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5800 | INSTSONAME="$LDLIBRARY".$SOVERSION |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 5801 | if test "$with_pydebug" != yes |
Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 +0000 | [diff] [blame] | 5802 | then |
| 5803 | PY3LIBRARY=libpython3.so |
| 5804 | fi |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5805 | ;; |
| 5806 | hp*|HP*) |
| 5807 | case `uname -m` in |
| 5808 | ia64) |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5809 | LDLIBRARY='libpython$(LDVERSION).so' |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5810 | ;; |
| 5811 | *) |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5812 | LDLIBRARY='libpython$(LDVERSION).sl' |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5813 | ;; |
| 5814 | esac |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5815 | BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(LDVERSION)' |
doko@ubuntu.com | e5de66e | 2014-05-07 12:57:44 +0200 | [diff] [blame] | 5816 | RUNSHARED=SHLIB_PATH=`pwd`${SHLIB_PATH:+:${SHLIB_PATH}} |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5817 | ;; |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5818 | Darwin*) |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5819 | LDLIBRARY='libpython$(LDVERSION).dylib' |
| 5820 | BLDLIBRARY='-L. -lpython$(LDVERSION)' |
doko@ubuntu.com | e5de66e | 2014-05-07 12:57:44 +0200 | [diff] [blame] | 5821 | RUNSHARED=DYLD_LIBRARY_PATH=`pwd`${DYLD_LIBRARY_PATH:+:${DYLD_LIBRARY_PATH}} |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5822 | ;; |
Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 5823 | AIX*) |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5824 | LDLIBRARY='libpython$(LDVERSION).so' |
doko@ubuntu.com | e5de66e | 2014-05-07 12:57:44 +0200 | [diff] [blame] | 5825 | RUNSHARED=LIBPATH=`pwd`${LIBPATH:+:${LIBPATH}} |
Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 5826 | ;; |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5827 | |
| 5828 | esac |
| 5829 | else # shared is disabled |
doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 5830 | PY_ENABLE_SHARED=0 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5831 | case $ac_sys_system in |
| 5832 | CYGWIN*) |
| 5833 | BLDLIBRARY='$(LIBRARY)' |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5834 | LDLIBRARY='libpython$(LDVERSION).dll.a' |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5835 | ;; |
| 5836 | esac |
| 5837 | fi |
| 5838 | |
doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 5839 | if test "$cross_compiling" = yes; then |
| 5840 | RUNSHARED= |
| 5841 | fi |
| 5842 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDLIBRARY" >&5 |
| 5844 | $as_echo "$LDLIBRARY" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5845 | |
| 5846 | if test -n "$ac_tool_prefix"; then |
| 5847 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 5848 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5849 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5850 | $as_echo_n "checking for $ac_word... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 5851 | if ${ac_cv_prog_RANLIB+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5852 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5853 | else |
| 5854 | if test -n "$RANLIB"; then |
| 5855 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 5856 | else |
| 5857 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5858 | for as_dir in $PATH |
| 5859 | do |
| 5860 | IFS=$as_save_IFS |
| 5861 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5862 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 5863 | 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] | 5864 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5865 | $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] | 5866 | break 2 |
| 5867 | fi |
| 5868 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5869 | done |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5870 | IFS=$as_save_IFS |
| 5871 | |
| 5872 | fi |
| 5873 | fi |
| 5874 | RANLIB=$ac_cv_prog_RANLIB |
| 5875 | if test -n "$RANLIB"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
| 5877 | $as_echo "$RANLIB" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5878 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5880 | $as_echo "no" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5881 | fi |
| 5882 | |
| 5883 | |
| 5884 | fi |
| 5885 | if test -z "$ac_cv_prog_RANLIB"; then |
| 5886 | ac_ct_RANLIB=$RANLIB |
| 5887 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 5888 | set dummy ranlib; ac_word=$2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5889 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5890 | $as_echo_n "checking for $ac_word... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 5891 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5892 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5893 | else |
| 5894 | if test -n "$ac_ct_RANLIB"; then |
| 5895 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 5896 | else |
| 5897 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5898 | for as_dir in $PATH |
| 5899 | do |
| 5900 | IFS=$as_save_IFS |
| 5901 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5902 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 5903 | 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] | 5904 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5905 | $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] | 5906 | break 2 |
| 5907 | fi |
| 5908 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5909 | done |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5910 | IFS=$as_save_IFS |
| 5911 | |
| 5912 | fi |
| 5913 | fi |
| 5914 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 5915 | if test -n "$ac_ct_RANLIB"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
| 5917 | $as_echo "$ac_ct_RANLIB" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5918 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5920 | $as_echo "no" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5921 | fi |
| 5922 | |
| 5923 | if test "x$ac_ct_RANLIB" = x; then |
| 5924 | RANLIB=":" |
| 5925 | else |
| 5926 | case $cross_compiling:$ac_tool_warned in |
| 5927 | yes:) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5928 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5929 | $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] | 5930 | ac_tool_warned=yes ;; |
| 5931 | esac |
| 5932 | RANLIB=$ac_ct_RANLIB |
| 5933 | fi |
| 5934 | else |
| 5935 | RANLIB="$ac_cv_prog_RANLIB" |
| 5936 | fi |
| 5937 | |
| 5938 | |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5939 | if test -n "$ac_tool_prefix"; then |
| 5940 | for ac_prog in ar aal |
| 5941 | do |
| 5942 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 5943 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5944 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5945 | $as_echo_n "checking for $ac_word... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 5946 | if ${ac_cv_prog_AR+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5947 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5948 | else |
| 5949 | if test -n "$AR"; then |
| 5950 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 5951 | else |
| 5952 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5953 | for as_dir in $PATH |
| 5954 | do |
| 5955 | IFS=$as_save_IFS |
| 5956 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5957 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 5958 | 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] | 5959 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5960 | $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] | 5961 | break 2 |
| 5962 | fi |
| 5963 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5964 | done |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5965 | IFS=$as_save_IFS |
| 5966 | |
| 5967 | fi |
| 5968 | fi |
| 5969 | AR=$ac_cv_prog_AR |
| 5970 | if test -n "$AR"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
| 5972 | $as_echo "$AR" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5973 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5975 | $as_echo "no" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5976 | fi |
| 5977 | |
| 5978 | |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5979 | test -n "$AR" && break |
| 5980 | done |
| 5981 | fi |
| 5982 | if test -z "$AR"; then |
| 5983 | ac_ct_AR=$AR |
| 5984 | for ac_prog in ar aal |
| 5985 | do |
| 5986 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5987 | set dummy $ac_prog; ac_word=$2 |
| 5988 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5989 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5990 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
| 5991 | $as_echo_n "(cached) " >&6 |
| 5992 | else |
| 5993 | if test -n "$ac_ct_AR"; then |
| 5994 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 5995 | else |
| 5996 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5997 | for as_dir in $PATH |
| 5998 | do |
| 5999 | IFS=$as_save_IFS |
| 6000 | test -z "$as_dir" && as_dir=. |
| 6001 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 6002 | 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] | 6003 | ac_cv_prog_ac_ct_AR="$ac_prog" |
| 6004 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6005 | break 2 |
| 6006 | fi |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6007 | done |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 6008 | done |
| 6009 | IFS=$as_save_IFS |
| 6010 | |
| 6011 | fi |
| 6012 | fi |
| 6013 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 6014 | if test -n "$ac_ct_AR"; then |
| 6015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
| 6016 | $as_echo "$ac_ct_AR" >&6; } |
| 6017 | else |
| 6018 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6019 | $as_echo "no" >&6; } |
| 6020 | fi |
| 6021 | |
| 6022 | |
| 6023 | test -n "$ac_ct_AR" && break |
| 6024 | done |
| 6025 | |
| 6026 | if test "x$ac_ct_AR" = x; then |
| 6027 | AR="ar" |
| 6028 | else |
| 6029 | case $cross_compiling:$ac_tool_warned in |
| 6030 | yes:) |
| 6031 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6032 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6033 | ac_tool_warned=yes ;; |
| 6034 | esac |
| 6035 | AR=$ac_ct_AR |
| 6036 | fi |
| 6037 | fi |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6038 | |
| 6039 | |
| 6040 | # tweak ARFLAGS only if the user didn't set it on the command line |
| 6041 | |
| 6042 | if test -z "$ARFLAGS" |
| 6043 | then |
| 6044 | ARFLAGS="rc" |
| 6045 | fi |
| 6046 | |
doko@ubuntu.com | 5884449 | 2012-06-30 18:25:32 +0200 | [diff] [blame] | 6047 | if test -n "$ac_tool_prefix"; then |
| 6048 | for ac_prog in readelf |
| 6049 | do |
| 6050 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 6051 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 6052 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6053 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6054 | if ${ac_cv_prog_READELF+:} false; then : |
| 6055 | $as_echo_n "(cached) " >&6 |
| 6056 | else |
| 6057 | if test -n "$READELF"; then |
| 6058 | ac_cv_prog_READELF="$READELF" # Let the user override the test. |
| 6059 | else |
| 6060 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6061 | for as_dir in $PATH |
| 6062 | do |
| 6063 | IFS=$as_save_IFS |
| 6064 | test -z "$as_dir" && as_dir=. |
| 6065 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 6066 | 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] | 6067 | ac_cv_prog_READELF="$ac_tool_prefix$ac_prog" |
| 6068 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6069 | break 2 |
| 6070 | fi |
| 6071 | done |
| 6072 | done |
| 6073 | IFS=$as_save_IFS |
| 6074 | |
| 6075 | fi |
| 6076 | fi |
| 6077 | READELF=$ac_cv_prog_READELF |
| 6078 | if test -n "$READELF"; then |
| 6079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 |
| 6080 | $as_echo "$READELF" >&6; } |
| 6081 | else |
| 6082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6083 | $as_echo "no" >&6; } |
| 6084 | fi |
| 6085 | |
| 6086 | |
| 6087 | test -n "$READELF" && break |
| 6088 | done |
| 6089 | fi |
| 6090 | if test -z "$READELF"; then |
| 6091 | ac_ct_READELF=$READELF |
| 6092 | for ac_prog in readelf |
| 6093 | do |
| 6094 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6095 | set dummy $ac_prog; ac_word=$2 |
| 6096 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6097 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6098 | if ${ac_cv_prog_ac_ct_READELF+:} false; then : |
| 6099 | $as_echo_n "(cached) " >&6 |
| 6100 | else |
| 6101 | if test -n "$ac_ct_READELF"; then |
| 6102 | ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test. |
| 6103 | else |
| 6104 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6105 | for as_dir in $PATH |
| 6106 | do |
| 6107 | IFS=$as_save_IFS |
| 6108 | test -z "$as_dir" && as_dir=. |
| 6109 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 6110 | 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] | 6111 | ac_cv_prog_ac_ct_READELF="$ac_prog" |
| 6112 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6113 | break 2 |
| 6114 | fi |
| 6115 | done |
| 6116 | done |
| 6117 | IFS=$as_save_IFS |
| 6118 | |
| 6119 | fi |
| 6120 | fi |
| 6121 | ac_ct_READELF=$ac_cv_prog_ac_ct_READELF |
| 6122 | if test -n "$ac_ct_READELF"; then |
| 6123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5 |
| 6124 | $as_echo "$ac_ct_READELF" >&6; } |
| 6125 | else |
| 6126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6127 | $as_echo "no" >&6; } |
| 6128 | fi |
| 6129 | |
| 6130 | |
| 6131 | test -n "$ac_ct_READELF" && break |
| 6132 | done |
| 6133 | |
| 6134 | if test "x$ac_ct_READELF" = x; then |
| 6135 | READELF=":" |
| 6136 | else |
| 6137 | case $cross_compiling:$ac_tool_warned in |
| 6138 | yes:) |
| 6139 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6140 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6141 | ac_tool_warned=yes ;; |
| 6142 | esac |
| 6143 | READELF=$ac_ct_READELF |
| 6144 | fi |
| 6145 | fi |
| 6146 | |
| 6147 | if test "$cross_compiling" = yes; then |
| 6148 | case "$READELF" in |
| 6149 | readelf|:) |
| 6150 | as_fn_error $? "readelf for the host is required for cross builds" "$LINENO" 5 |
| 6151 | ;; |
| 6152 | esac |
| 6153 | fi |
| 6154 | |
| 6155 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6156 | |
Matthias Klose | c4c4842 | 2012-10-21 23:05:35 +0200 | [diff] [blame] | 6157 | for ac_prog in python$PACKAGE_VERSION python3 python |
| 6158 | do |
| 6159 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6160 | set dummy $ac_prog; ac_word=$2 |
Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 6161 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6162 | $as_echo_n "checking for $ac_word... " >&6; } |
Matthias Klose | c4c4842 | 2012-10-21 23:05:35 +0200 | [diff] [blame] | 6163 | if ${ac_cv_prog_PYTHON+:} false; then : |
Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 6164 | $as_echo_n "(cached) " >&6 |
| 6165 | else |
Matthias Klose | c4c4842 | 2012-10-21 23:05:35 +0200 | [diff] [blame] | 6166 | if test -n "$PYTHON"; then |
| 6167 | ac_cv_prog_PYTHON="$PYTHON" # Let the user override the test. |
Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 6168 | else |
| 6169 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6170 | for as_dir in $PATH |
| 6171 | do |
| 6172 | IFS=$as_save_IFS |
| 6173 | test -z "$as_dir" && as_dir=. |
| 6174 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 6175 | 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] | 6176 | ac_cv_prog_PYTHON="$ac_prog" |
Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 6177 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6178 | break 2 |
| 6179 | fi |
| 6180 | done |
| 6181 | done |
| 6182 | IFS=$as_save_IFS |
| 6183 | |
Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 6184 | fi |
| 6185 | fi |
Matthias Klose | c4c4842 | 2012-10-21 23:05:35 +0200 | [diff] [blame] | 6186 | PYTHON=$ac_cv_prog_PYTHON |
| 6187 | if test -n "$PYTHON"; then |
| 6188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 |
| 6189 | $as_echo "$PYTHON" >&6; } |
Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 6190 | else |
| 6191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6192 | $as_echo "no" >&6; } |
| 6193 | fi |
| 6194 | |
| 6195 | |
Matthias Klose | c4c4842 | 2012-10-21 23:05:35 +0200 | [diff] [blame] | 6196 | test -n "$PYTHON" && break |
| 6197 | done |
| 6198 | test -n "$PYTHON" || PYTHON="not-found" |
| 6199 | |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 6200 | if test "$PYTHON" = not-found; then |
Matthias Klose | c4c4842 | 2012-10-21 23:05:35 +0200 | [diff] [blame] | 6201 | ASDLGEN="@echo python: $PYTHON! cannot run \$(srcdir)/Parser/asdl_c.py #" |
| 6202 | else |
| 6203 | ASDLGEN="$PYTHON" |
Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 6204 | fi |
| 6205 | |
| 6206 | |
Kushal Das | 02d23a2 | 2014-04-15 23:50:06 +0530 | [diff] [blame] | 6207 | for ac_prog in python$PACKAGE_VERSION python3 python |
| 6208 | do |
| 6209 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6210 | set dummy $ac_prog; ac_word=$2 |
| 6211 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6212 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6213 | if ${ac_cv_prog_PYTHON+:} false; then : |
| 6214 | $as_echo_n "(cached) " >&6 |
| 6215 | else |
| 6216 | if test -n "$PYTHON"; then |
| 6217 | ac_cv_prog_PYTHON="$PYTHON" # Let the user override the test. |
| 6218 | else |
| 6219 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6220 | for as_dir in $PATH |
| 6221 | do |
| 6222 | IFS=$as_save_IFS |
| 6223 | test -z "$as_dir" && as_dir=. |
| 6224 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6225 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6226 | ac_cv_prog_PYTHON="$ac_prog" |
| 6227 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6228 | break 2 |
| 6229 | fi |
| 6230 | done |
| 6231 | done |
| 6232 | IFS=$as_save_IFS |
| 6233 | |
| 6234 | fi |
| 6235 | fi |
| 6236 | PYTHON=$ac_cv_prog_PYTHON |
| 6237 | if test -n "$PYTHON"; then |
| 6238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 |
| 6239 | $as_echo "$PYTHON" >&6; } |
| 6240 | else |
| 6241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6242 | $as_echo "no" >&6; } |
| 6243 | fi |
| 6244 | |
| 6245 | |
| 6246 | test -n "$PYTHON" && break |
| 6247 | done |
| 6248 | test -n "$PYTHON" || PYTHON="not-found" |
| 6249 | |
| 6250 | if test "$PYTHON" = not-found; then |
| 6251 | OPCODEHGEN="@echo python: $PYTHON! cannot run Tools/scripts/generate_opcode_h.py" |
| 6252 | else |
| 6253 | OPCODEHGEN="$PYTHON" |
| 6254 | fi |
| 6255 | |
| 6256 | |
| 6257 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6258 | case $MACHDEP in |
| 6259 | bsdos*|hp*|HP*) |
| 6260 | # install -d does not work on BSDI or HP-UX |
| 6261 | if test -z "$INSTALL" |
| 6262 | then |
| 6263 | INSTALL="${srcdir}/install-sh -c" |
| 6264 | fi |
| 6265 | esac |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6266 | # Find a good install program. We prefer a C program (faster), |
| 6267 | # so one script is as good as another. But avoid the broken or |
| 6268 | # incompatible versions: |
| 6269 | # SysV /etc/install, /usr/sbin/install |
| 6270 | # SunOS /usr/etc/install |
| 6271 | # IRIX /sbin/install |
| 6272 | # AIX /bin/install |
| 6273 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 6274 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 6275 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 6276 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 6277 | # OS/2's system install, which has a completely different semantic |
| 6278 | # ./install, which can be erroneously created by make from ./install.sh. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6279 | # Reject install programs that cannot install multiple files. |
| 6280 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
| 6281 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6282 | if test -z "$INSTALL"; then |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 6283 | if ${ac_cv_path_install+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6284 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6285 | else |
| 6286 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6287 | for as_dir in $PATH |
| 6288 | do |
| 6289 | IFS=$as_save_IFS |
| 6290 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6291 | # Account for people who put trailing slashes in PATH elements. |
| 6292 | case $as_dir/ in #(( |
| 6293 | ./ | .// | /[cC]/* | \ |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6294 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6295 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6296 | /usr/ucb/* ) ;; |
| 6297 | *) |
| 6298 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 6299 | # Don't use installbsd from OSF since it installs stuff as root |
| 6300 | # by default. |
| 6301 | for ac_prog in ginstall scoinst install; do |
| 6302 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 6303 | 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] | 6304 | if test $ac_prog = install && |
| 6305 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 6306 | # AIX install. It has an incompatible calling convention. |
| 6307 | : |
| 6308 | elif test $ac_prog = install && |
| 6309 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 6310 | # program-specific install script used by HP pwplus--don't use. |
| 6311 | : |
| 6312 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6313 | rm -rf conftest.one conftest.two conftest.dir |
| 6314 | echo one > conftest.one |
| 6315 | echo two > conftest.two |
| 6316 | mkdir conftest.dir |
| 6317 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 6318 | test -s conftest.one && test -s conftest.two && |
| 6319 | test -s conftest.dir/conftest.one && |
| 6320 | test -s conftest.dir/conftest.two |
| 6321 | then |
| 6322 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 6323 | break 3 |
| 6324 | fi |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6325 | fi |
| 6326 | fi |
| 6327 | done |
| 6328 | done |
| 6329 | ;; |
| 6330 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6331 | |
| 6332 | done |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6333 | IFS=$as_save_IFS |
| 6334 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6335 | rm -rf conftest.one conftest.two conftest.dir |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6336 | |
| 6337 | fi |
| 6338 | if test "${ac_cv_path_install+set}" = set; then |
| 6339 | INSTALL=$ac_cv_path_install |
| 6340 | else |
| 6341 | # As a last resort, use the slow shell script. Don't cache a |
| 6342 | # value for INSTALL within a source directory, because that will |
| 6343 | # break other packages using the cache if that directory is |
| 6344 | # removed, or if the value is a relative name. |
| 6345 | INSTALL=$ac_install_sh |
| 6346 | fi |
| 6347 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
| 6349 | $as_echo "$INSTALL" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6350 | |
| 6351 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 6352 | # It thinks the first close brace ends the variable substitution. |
| 6353 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 6354 | |
| 6355 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 6356 | |
| 6357 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 6358 | |
Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 6359 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
| 6360 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
| 6361 | if test -z "$MKDIR_P"; then |
| 6362 | if ${ac_cv_path_mkdir+:} false; then : |
| 6363 | $as_echo_n "(cached) " >&6 |
| 6364 | else |
| 6365 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6366 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
| 6367 | do |
| 6368 | IFS=$as_save_IFS |
| 6369 | test -z "$as_dir" && as_dir=. |
| 6370 | for ac_prog in mkdir gmkdir; do |
| 6371 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 6372 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 6373 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
| 6374 | 'mkdir (GNU coreutils) '* | \ |
| 6375 | 'mkdir (coreutils) '* | \ |
| 6376 | 'mkdir (fileutils) '4.1*) |
| 6377 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
| 6378 | break 3;; |
| 6379 | esac |
| 6380 | done |
| 6381 | done |
| 6382 | done |
| 6383 | IFS=$as_save_IFS |
| 6384 | |
| 6385 | fi |
| 6386 | |
| 6387 | test -d ./--version && rmdir ./--version |
| 6388 | if test "${ac_cv_path_mkdir+set}" = set; then |
| 6389 | MKDIR_P="$ac_cv_path_mkdir -p" |
| 6390 | else |
| 6391 | # As a last resort, use the slow shell script. Don't cache a |
| 6392 | # value for MKDIR_P within a source directory, because that will |
| 6393 | # break other packages using the cache if that directory is |
| 6394 | # removed, or if the value is a relative name. |
| 6395 | MKDIR_P="$ac_install_sh -d" |
| 6396 | fi |
| 6397 | fi |
| 6398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
| 6399 | $as_echo "$MKDIR_P" >&6; } |
| 6400 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6401 | |
| 6402 | # Not every filesystem supports hard links |
| 6403 | |
| 6404 | if test -z "$LN" ; then |
| 6405 | case $ac_sys_system in |
| 6406 | CYGWIN*) LN="ln -s";; |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6407 | *) LN=ln;; |
| 6408 | esac |
| 6409 | fi |
| 6410 | |
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 6411 | # For calculating the .so ABI tag. |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 6412 | |
| 6413 | ABIFLAGS="" |
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 6414 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6415 | # Check for --with-pydebug |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6416 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pydebug" >&5 |
| 6417 | $as_echo_n "checking for --with-pydebug... " >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6418 | |
| 6419 | # Check whether --with-pydebug was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6420 | if test "${with_pydebug+set}" = set; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6421 | withval=$with_pydebug; |
| 6422 | if test "$withval" != no |
| 6423 | then |
| 6424 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6425 | $as_echo "#define Py_DEBUG 1" >>confdefs.h |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6426 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6428 | $as_echo "yes" >&6; }; |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6429 | Py_DEBUG='true' |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 6430 | ABIFLAGS="${ABIFLAGS}d" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6431 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6432 | $as_echo "no" >&6; }; Py_DEBUG='false' |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6433 | fi |
| 6434 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6436 | $as_echo "no" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6437 | fi |
| 6438 | |
| 6439 | |
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6440 | # Enable PGO flags. |
| 6441 | # Extract the first word of "llvm-profdata", so it can be a program name with args. |
| 6442 | set dummy llvm-profdata; ac_word=$2 |
| 6443 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6444 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6445 | if ${ac_cv_prog_LLVM_PROF_FOUND+:} false; then : |
| 6446 | $as_echo_n "(cached) " >&6 |
| 6447 | else |
| 6448 | if test -n "$LLVM_PROF_FOUND"; then |
| 6449 | ac_cv_prog_LLVM_PROF_FOUND="$LLVM_PROF_FOUND" # Let the user override the test. |
| 6450 | else |
| 6451 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6452 | for as_dir in $PATH |
| 6453 | do |
| 6454 | IFS=$as_save_IFS |
| 6455 | test -z "$as_dir" && as_dir=. |
| 6456 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6457 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6458 | ac_cv_prog_LLVM_PROF_FOUND="found" |
| 6459 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6460 | break 2 |
| 6461 | fi |
| 6462 | done |
| 6463 | done |
| 6464 | IFS=$as_save_IFS |
| 6465 | |
| 6466 | test -z "$ac_cv_prog_LLVM_PROF_FOUND" && ac_cv_prog_LLVM_PROF_FOUND="not-found" |
| 6467 | fi |
| 6468 | fi |
| 6469 | LLVM_PROF_FOUND=$ac_cv_prog_LLVM_PROF_FOUND |
| 6470 | if test -n "$LLVM_PROF_FOUND"; then |
| 6471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_PROF_FOUND" >&5 |
| 6472 | $as_echo "$LLVM_PROF_FOUND" >&6; } |
| 6473 | else |
| 6474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6475 | $as_echo "no" >&6; } |
| 6476 | fi |
| 6477 | |
| 6478 | |
| 6479 | LLVM_PROF_ERR=no |
| 6480 | case $CC in |
| 6481 | *clang*) |
| 6482 | # Any changes made here should be reflected in the GCC+Darwin case below |
| 6483 | PGO_PROF_GEN_FLAG="-fprofile-instr-generate" |
| 6484 | PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd" |
| 6485 | LLVM_PROF_MERGER="llvm-profdata merge -output=code.profclangd *.profclangr" |
| 6486 | LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"code-%p.profclangr\"" |
| 6487 | if test $LLVM_PROF_FOUND = not-found |
| 6488 | then |
| 6489 | LLVM_PROF_ERR=yes |
| 6490 | fi |
| 6491 | ;; |
| 6492 | *gcc*) |
| 6493 | case $ac_sys_system in |
| 6494 | Darwin*) |
| 6495 | PGO_PROF_GEN_FLAG="-fprofile-instr-generate" |
| 6496 | PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd" |
| 6497 | LLVM_PROF_MERGER="llvm-profdata merge -output=code.profclangd *.profclangr" |
| 6498 | LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"code-%p.profclangr\"" |
| 6499 | if test $LLVM_PROF_FOUND = not-found |
| 6500 | then |
| 6501 | LLVM_PROF_ERR=yes |
| 6502 | fi |
| 6503 | ;; |
| 6504 | *) |
| 6505 | PGO_PROF_GEN_FLAG="-fprofile-generate" |
| 6506 | PGO_PROF_USE_FLAG="-fprofile-use -fprofile-correction" |
| 6507 | LLVM_PROF_MERGER="true" |
| 6508 | LLVM_PROF_FILE="" |
| 6509 | ;; |
| 6510 | esac |
| 6511 | ;; |
| 6512 | esac |
| 6513 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6514 | # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be |
| 6515 | # merged with this chunk of code? |
| 6516 | |
| 6517 | # Optimizer/debugger flags |
| 6518 | # ------------------------ |
| 6519 | # (The following bit of code is complicated enough - please keep things |
| 6520 | # indented properly. Just pretend you're editing Python code. ;-) |
| 6521 | |
| 6522 | # There are two parallel sets of case statements below, one that checks to |
| 6523 | # see if OPT was set and one that does BASECFLAGS setting based upon |
| 6524 | # compiler and platform. BASECFLAGS tweaks need to be made even if the |
| 6525 | # user set OPT. |
| 6526 | |
| 6527 | # tweak OPT based on compiler and platform, only if the user didn't set |
| 6528 | # it on the command line |
| 6529 | |
Benjamin Peterson | 65b4ec5 | 2010-03-23 21:02:34 +0000 | [diff] [blame] | 6530 | if test "${OPT-unset}" = "unset" |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6531 | then |
| 6532 | case $GCC in |
| 6533 | yes) |
| 6534 | if test "$CC" != 'g++' ; then |
| 6535 | STRICT_PROTO="-Wstrict-prototypes" |
| 6536 | fi |
| 6537 | # For gcc 4.x we need to use -fwrapv so lets check if its supported |
| 6538 | if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then |
| 6539 | WRAP="-fwrapv" |
| 6540 | fi |
Stefan Krah | 962055d | 2011-09-14 15:14:08 +0200 | [diff] [blame] | 6541 | |
| 6542 | # Clang also needs -fwrapv |
Stefan Krah | af04ff2 | 2011-12-08 22:20:31 +0100 | [diff] [blame] | 6543 | case $CC in |
| 6544 | *clang*) WRAP="-fwrapv" |
| 6545 | ;; |
| 6546 | esac |
Stefan Krah | 962055d | 2011-09-14 15:14:08 +0200 | [diff] [blame] | 6547 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6548 | case $ac_cv_prog_cc_g in |
| 6549 | yes) |
| 6550 | if test "$Py_DEBUG" = 'true' ; then |
| 6551 | # Optimization messes up debuggers, so turn it off for |
| 6552 | # debug builds. |
Antoine Pitrou | 3d6c784 | 2015-02-11 19:39:16 +0100 | [diff] [blame] | 6553 | if "$CC" -v --help 2>/dev/null |grep -- -Og > /dev/null; then |
| 6554 | OPT="-g -Og -Wall $STRICT_PROTO" |
| 6555 | else |
| 6556 | OPT="-g -O0 -Wall $STRICT_PROTO" |
| 6557 | fi |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6558 | else |
| 6559 | OPT="-g $WRAP -O3 -Wall $STRICT_PROTO" |
| 6560 | fi |
| 6561 | ;; |
| 6562 | *) |
| 6563 | OPT="-O3 -Wall $STRICT_PROTO" |
| 6564 | ;; |
| 6565 | esac |
| 6566 | case $ac_sys_system in |
| 6567 | SCO_SV*) OPT="$OPT -m486 -DSCO5" |
| 6568 | ;; |
| 6569 | esac |
| 6570 | ;; |
| 6571 | |
| 6572 | *) |
| 6573 | OPT="-O" |
| 6574 | ;; |
| 6575 | esac |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6576 | fi |
| 6577 | |
| 6578 | |
| 6579 | |
Benjamin Peterson | acb8c52 | 2014-08-09 20:01:49 -0700 | [diff] [blame] | 6580 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6581 | # The -arch flags for universal builds on OSX |
| 6582 | UNIVERSAL_ARCH_FLAGS= |
| 6583 | |
| 6584 | |
| 6585 | # tweak BASECFLAGS based on compiler and platform |
| 6586 | case $GCC in |
| 6587 | yes) |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6588 | # Python doesn't violate C99 aliasing rules, but older versions of |
| 6589 | # GCC produce warnings for legal Python code. Enable |
| 6590 | # -fno-strict-aliasing on versions of GCC that support but produce |
| 6591 | # warnings. See Issue3326 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6592 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts and needs -fno-strict-aliasing" >&5 |
| 6593 | $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] | 6594 | ac_save_cc="$CC" |
| 6595 | CC="$CC -fno-strict-aliasing" |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6596 | save_CFLAGS="$CFLAGS" |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 6597 | if ${ac_cv_no_strict_aliasing+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6598 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 6599 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6600 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6601 | /* end confdefs.h. */ |
Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 +0000 | [diff] [blame] | 6602 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6603 | |
Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 +0000 | [diff] [blame] | 6604 | int |
| 6605 | main () |
| 6606 | { |
Mark Dickinson | 8c2b6f1 | 2010-05-11 09:23:07 +0000 | [diff] [blame] | 6607 | |
Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 +0000 | [diff] [blame] | 6608 | ; |
| 6609 | return 0; |
| 6610 | } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6611 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6612 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6613 | if ac_fn_c_try_compile "$LINENO"; then : |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6614 | |
| 6615 | CC="$ac_save_cc -fstrict-aliasing" |
| 6616 | CFLAGS="$CFLAGS -Werror -Wstrict-aliasing" |
| 6617 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6618 | /* end confdefs.h. */ |
| 6619 | |
Mark Dickinson | 8c2b6f1 | 2010-05-11 09:23:07 +0000 | [diff] [blame] | 6620 | void f(int **x) {} |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6621 | int |
| 6622 | main () |
| 6623 | { |
Mark Dickinson | 8c2b6f1 | 2010-05-11 09:23:07 +0000 | [diff] [blame] | 6624 | double *x; f((int **) &x); |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6625 | ; |
| 6626 | return 0; |
| 6627 | } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6628 | |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6629 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6630 | if ac_fn_c_try_compile "$LINENO"; then : |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6631 | |
| 6632 | ac_cv_no_strict_aliasing=no |
| 6633 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6634 | else |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6635 | |
| 6636 | ac_cv_no_strict_aliasing=yes |
| 6637 | |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6638 | fi |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6639 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6640 | |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6641 | else |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6642 | |
| 6643 | ac_cv_no_strict_aliasing=no |
| 6644 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6645 | fi |
Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 +0000 | [diff] [blame] | 6646 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 6647 | fi |
| 6648 | |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6649 | CFLAGS="$save_CFLAGS" |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6650 | CC="$ac_save_cc" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_no_strict_aliasing" >&5 |
| 6652 | $as_echo "$ac_cv_no_strict_aliasing" >&6; } |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6653 | if test $ac_cv_no_strict_aliasing = yes |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6654 | then |
| 6655 | BASECFLAGS="$BASECFLAGS -fno-strict-aliasing" |
| 6656 | fi |
| 6657 | |
Benjamin Peterson | 7ddbf10 | 2011-09-23 13:23:22 -0400 | [diff] [blame] | 6658 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn off $CC unused result warning" >&5 |
| 6659 | $as_echo_n "checking if we can turn off $CC unused result warning... " >&6; } |
| 6660 | ac_save_cc="$CC" |
| 6661 | CC="$CC -Wunused-result -Werror" |
| 6662 | save_CFLAGS="$CFLAGS" |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 6663 | if ${ac_cv_disable_unused_result_warning+:} false; then : |
Benjamin Peterson | 7ddbf10 | 2011-09-23 13:23:22 -0400 | [diff] [blame] | 6664 | $as_echo_n "(cached) " >&6 |
| 6665 | else |
| 6666 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6667 | /* end confdefs.h. */ |
| 6668 | |
| 6669 | |
| 6670 | int |
| 6671 | main () |
| 6672 | { |
| 6673 | |
| 6674 | ; |
| 6675 | return 0; |
| 6676 | } |
| 6677 | |
| 6678 | _ACEOF |
| 6679 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6680 | |
| 6681 | ac_cv_disable_unused_result_warning=yes |
| 6682 | |
| 6683 | else |
| 6684 | |
| 6685 | ac_cv_disable_unused_result_warning=no |
| 6686 | |
| 6687 | fi |
| 6688 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6689 | fi |
| 6690 | |
| 6691 | CFLAGS="$save_CFLAGS" |
| 6692 | CC="$ac_save_cc" |
| 6693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_unused_result_warning" >&5 |
| 6694 | $as_echo "$ac_cv_disable_unused_result_warning" >&6; } |
| 6695 | |
| 6696 | if test $ac_cv_disable_unused_result_warning = yes |
| 6697 | then |
| 6698 | BASECFLAGS="$BASECFLAGS -Wno-unused-result" |
| 6699 | fi |
| 6700 | |
Benjamin Peterson | cc00e01 | 2013-05-20 08:22:04 -0700 | [diff] [blame] | 6701 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Werror=declaration-after-statement" >&5 |
| 6702 | $as_echo_n "checking for -Werror=declaration-after-statement... " >&6; } |
| 6703 | ac_save_cc="$CC" |
| 6704 | CC="$CC -Werror=declaration-after-statement" |
| 6705 | save_CFLAGS="$CFLAGS" |
| 6706 | if ${ac_cv_declaration_after_statement_warning+:} false; then : |
| 6707 | $as_echo_n "(cached) " >&6 |
| 6708 | else |
| 6709 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6710 | /* end confdefs.h. */ |
| 6711 | |
| 6712 | |
| 6713 | int |
| 6714 | main () |
| 6715 | { |
| 6716 | |
| 6717 | ; |
| 6718 | return 0; |
| 6719 | } |
| 6720 | |
| 6721 | _ACEOF |
| 6722 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6723 | |
| 6724 | ac_cv_declaration_after_statement_warning=yes |
| 6725 | |
| 6726 | else |
| 6727 | |
| 6728 | ac_cv_declaration_after_statement_warning=no |
| 6729 | |
| 6730 | fi |
| 6731 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6732 | fi |
| 6733 | |
| 6734 | CFLAGS="$save_CFLAGS" |
| 6735 | CC="$ac_save_cc" |
| 6736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_declaration_after_statement_warning" >&5 |
| 6737 | $as_echo "$ac_cv_declaration_after_statement_warning" >&6; } |
| 6738 | |
| 6739 | if test $ac_cv_declaration_after_statement_warning = yes |
| 6740 | then |
Benjamin Peterson | acb8c52 | 2014-08-09 20:01:49 -0700 | [diff] [blame] | 6741 | CFLAGS_NODIST="$CFLAGS_NODIST -Werror=declaration-after-statement" |
Benjamin Peterson | cc00e01 | 2013-05-20 08:22:04 -0700 | [diff] [blame] | 6742 | fi |
| 6743 | |
Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 6744 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn on $CC mixed sign comparison warning" >&5 |
| 6745 | $as_echo_n "checking if we can turn on $CC mixed sign comparison warning... " >&6; } |
| 6746 | ac_save_cc="$CC" |
| 6747 | CC="$CC -Wsign-compare" |
| 6748 | save_CFLAGS="$CFLAGS" |
| 6749 | if ${ac_cv_enable_sign_compare_warning+:} false; then : |
| 6750 | $as_echo_n "(cached) " >&6 |
| 6751 | else |
| 6752 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6753 | /* end confdefs.h. */ |
| 6754 | |
| 6755 | |
| 6756 | int |
| 6757 | main () |
| 6758 | { |
| 6759 | |
| 6760 | ; |
| 6761 | return 0; |
| 6762 | } |
| 6763 | |
| 6764 | _ACEOF |
| 6765 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6766 | |
| 6767 | ac_cv_enable_sign_compare_warning=yes |
| 6768 | |
| 6769 | else |
| 6770 | |
| 6771 | ac_cv_enable_sign_compare_warning=no |
| 6772 | |
| 6773 | fi |
| 6774 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6775 | fi |
| 6776 | |
| 6777 | CFLAGS="$save_CFLAGS" |
| 6778 | CC="$ac_save_cc" |
| 6779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_sign_compare_warning" >&5 |
| 6780 | $as_echo "$ac_cv_enable_sign_compare_warning" >&6; } |
| 6781 | |
| 6782 | if test $ac_cv_enable_sign_compare_warning = yes |
| 6783 | then |
| 6784 | BASECFLAGS="$BASECFLAGS -Wsign-compare" |
| 6785 | fi |
| 6786 | |
| 6787 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn on $CC unreachable code warning" >&5 |
| 6788 | $as_echo_n "checking if we can turn on $CC unreachable code warning... " >&6; } |
| 6789 | ac_save_cc="$CC" |
| 6790 | CC="$CC -Wunreachable-code" |
| 6791 | save_CFLAGS="$CFLAGS" |
| 6792 | if ${ac_cv_enable_unreachable_code_warning+:} false; then : |
| 6793 | $as_echo_n "(cached) " >&6 |
| 6794 | else |
| 6795 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6796 | /* end confdefs.h. */ |
| 6797 | |
| 6798 | |
| 6799 | int |
| 6800 | main () |
| 6801 | { |
| 6802 | |
| 6803 | ; |
| 6804 | return 0; |
| 6805 | } |
| 6806 | |
| 6807 | _ACEOF |
| 6808 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6809 | |
| 6810 | ac_cv_enable_unreachable_code_warning=yes |
| 6811 | |
| 6812 | else |
| 6813 | |
| 6814 | ac_cv_enable_unreachable_code_warning=no |
| 6815 | |
| 6816 | fi |
| 6817 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6818 | fi |
| 6819 | |
| 6820 | CFLAGS="$save_CFLAGS" |
| 6821 | CC="$ac_save_cc" |
| 6822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_unreachable_code_warning" >&5 |
| 6823 | $as_echo "$ac_cv_enable_unreachable_code_warning" >&6; } |
| 6824 | |
| 6825 | # Don't enable unreachable code warning in debug mode, since it usually |
| 6826 | # results in non-standard code paths. |
| 6827 | if test $ac_cv_enable_unreachable_code_warning = yes && test "$Py_DEBUG" != "true" |
| 6828 | then |
| 6829 | BASECFLAGS="$BASECFLAGS -Wunreachable-code" |
| 6830 | fi |
| 6831 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6832 | # if using gcc on alpha, use -mieee to get (near) full IEEE 754 |
| 6833 | # support. Without this, treatment of subnormals doesn't follow |
| 6834 | # the standard. |
Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 6835 | case $host in |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6836 | alpha*) |
| 6837 | BASECFLAGS="$BASECFLAGS -mieee" |
| 6838 | ;; |
| 6839 | esac |
| 6840 | |
| 6841 | case $ac_sys_system in |
| 6842 | SCO_SV*) |
| 6843 | BASECFLAGS="$BASECFLAGS -m486 -DSCO5" |
| 6844 | ;; |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 6845 | |
| 6846 | # is there any other compiler on Darwin besides gcc? |
| 6847 | Darwin*) |
| 6848 | # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd |
| 6849 | # used to be here, but non-Apple gcc doesn't accept them. |
| 6850 | if test "${CC}" = gcc |
| 6851 | then |
| 6852 | { $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] | 6853 | $as_echo_n "checking which compiler should be used... " >&6; } |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 6854 | case "${UNIVERSALSDK}" in |
| 6855 | */MacOSX10.4u.sdk) |
| 6856 | # Build using 10.4 SDK, force usage of gcc when the |
| 6857 | # compiler is gcc, otherwise the user will get very |
| 6858 | # confusing error messages when building on OSX 10.6 |
| 6859 | CC=gcc-4.0 |
| 6860 | CPP=cpp-4.0 |
| 6861 | ;; |
| 6862 | esac |
| 6863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6864 | $as_echo "$CC" >&6; } |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 6865 | fi |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6866 | |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 6867 | if test "${enable_universalsdk}" |
| 6868 | then |
| 6869 | case "$UNIVERSAL_ARCHS" in |
| 6870 | 32-bit) |
| 6871 | UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386" |
| 6872 | LIPO_32BIT_FLAGS="" |
| 6873 | ARCH_RUN_32BIT="" |
| 6874 | ;; |
| 6875 | 64-bit) |
| 6876 | UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64" |
| 6877 | LIPO_32BIT_FLAGS="" |
| 6878 | ARCH_RUN_32BIT="true" |
| 6879 | ;; |
| 6880 | all) |
| 6881 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64" |
| 6882 | LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" |
| 6883 | ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" |
| 6884 | ;; |
| 6885 | intel) |
| 6886 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64" |
| 6887 | LIPO_32BIT_FLAGS="-extract i386" |
| 6888 | ARCH_RUN_32BIT="/usr/bin/arch -i386" |
| 6889 | ;; |
| 6890 | intel-32) |
| 6891 | UNIVERSAL_ARCH_FLAGS="-arch i386" |
| 6892 | LIPO_32BIT_FLAGS="" |
| 6893 | ARCH_RUN_32BIT="" |
| 6894 | ;; |
| 6895 | 3-way) |
| 6896 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64" |
| 6897 | LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" |
| 6898 | ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" |
| 6899 | ;; |
| 6900 | *) |
| 6901 | as_fn_error $? "proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" "$LINENO" 5 |
| 6902 | ;; |
| 6903 | esac |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6904 | |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 6905 | CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}" |
| 6906 | LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}" |
| 6907 | if test "${UNIVERSALSDK}" != "/" |
| 6908 | then |
| 6909 | CPPFLAGS="-isysroot ${UNIVERSALSDK} ${CPPFLAGS}" |
| 6910 | fi |
| 6911 | fi |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6912 | |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 6913 | # Calculate an appropriate deployment target for this build: |
| 6914 | # The deployment target value is used explicitly to enable certain |
| 6915 | # features are enabled (such as builtin libedit support for readline) |
| 6916 | # through the use of Apple's Availabiliy Macros and is used as a |
| 6917 | # component of the string returned by distutils.get_platform(). |
| 6918 | # |
| 6919 | # Use the value from: |
| 6920 | # 1. the MACOSX_DEPLOYMENT_TARGET environment variable if specified |
| 6921 | # 2. the operating system version of the build machine if >= 10.6 |
| 6922 | # 3. If running on OS X 10.3 through 10.5, use the legacy tests |
| 6923 | # below to pick either 10.3, 10.4, or 10.5 as the target. |
| 6924 | # 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] | 6925 | |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 6926 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which MACOSX_DEPLOYMENT_TARGET to use" >&5 |
| 6927 | $as_echo_n "checking which MACOSX_DEPLOYMENT_TARGET to use... " >&6; } |
Ned Deily | 36820b6 | 2014-06-25 13:44:22 -0700 | [diff] [blame] | 6928 | cur_target_major=`sw_vers -productVersion | \ |
| 6929 | sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'` |
| 6930 | cur_target_minor=`sw_vers -productVersion | \ |
| 6931 | sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'` |
| 6932 | cur_target="${cur_target_major}.${cur_target_minor}" |
| 6933 | if test ${cur_target_major} -eq 10 && \ |
| 6934 | test ${cur_target_minor} -ge 3 && \ |
| 6935 | test ${cur_target_minor} -le 5 |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 6936 | then |
Ned Deily | 36820b6 | 2014-06-25 13:44:22 -0700 | [diff] [blame] | 6937 | # OS X 10.3 through 10.5 |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 6938 | cur_target=10.3 |
| 6939 | if test ${enable_universalsdk} |
| 6940 | then |
| 6941 | case "$UNIVERSAL_ARCHS" in |
| 6942 | all|3-way|intel|64-bit) |
| 6943 | # These configurations were first supported in 10.5 |
| 6944 | cur_target='10.5' |
| 6945 | ;; |
| 6946 | esac |
| 6947 | else |
| 6948 | if test `/usr/bin/arch` = "i386" |
| 6949 | then |
| 6950 | # 10.4 was the first release to support Intel archs |
| 6951 | cur_target="10.4" |
| 6952 | fi |
| 6953 | fi |
| 6954 | fi |
| 6955 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}} |
Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 6956 | |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 6957 | # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the |
| 6958 | # environment with a value that is the same as what we'll use |
| 6959 | # in the Makefile to ensure that we'll get the same compiler |
| 6960 | # environment during configure and build time. |
| 6961 | MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET" |
| 6962 | export MACOSX_DEPLOYMENT_TARGET |
| 6963 | EXPORT_MACOSX_DEPLOYMENT_TARGET='' |
| 6964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACOSX_DEPLOYMENT_TARGET" >&5 |
| 6965 | $as_echo "$MACOSX_DEPLOYMENT_TARGET" >&6; } |
Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 6966 | |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 6967 | # end of Darwin* tests |
| 6968 | ;; |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6969 | esac |
| 6970 | ;; |
| 6971 | |
| 6972 | *) |
| 6973 | case $ac_sys_system in |
| 6974 | OpenUNIX*|UnixWare*) |
| 6975 | BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca " |
| 6976 | ;; |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6977 | SCO_SV*) |
| 6978 | BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5" |
| 6979 | ;; |
| 6980 | esac |
| 6981 | ;; |
| 6982 | esac |
| 6983 | |
| 6984 | if test "$Py_DEBUG" = 'true'; then |
| 6985 | : |
| 6986 | else |
| 6987 | OPT="-DNDEBUG $OPT" |
| 6988 | fi |
| 6989 | |
| 6990 | if test "$ac_arch_flags" |
| 6991 | then |
| 6992 | BASECFLAGS="$BASECFLAGS $ac_arch_flags" |
| 6993 | fi |
| 6994 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6995 | # On some compilers, pthreads are available without further options |
| 6996 | # (e.g. MacOS X). On some of these systems, the compiler will not |
| 6997 | # complain if unaccepted options are passed (e.g. gcc on Mac OS X). |
| 6998 | # So we have to see first whether pthreads are available without |
| 6999 | # options before we can check whether -Kpthread improves anything. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7000 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads are available without options" >&5 |
| 7001 | $as_echo_n "checking whether pthreads are available without options... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7002 | if ${ac_cv_pthread_is_default+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7003 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7004 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7005 | if test "$cross_compiling" = yes; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7006 | ac_cv_pthread_is_default=no |
| 7007 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7008 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7009 | /* end confdefs.h. */ |
| 7010 | |
Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 7011 | #include <stdio.h> |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7012 | #include <pthread.h> |
| 7013 | |
| 7014 | void* routine(void* p){return NULL;} |
| 7015 | |
| 7016 | int main(){ |
| 7017 | pthread_t p; |
| 7018 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 7019 | return 1; |
| 7020 | (void)pthread_detach(p); |
| 7021 | return 0; |
| 7022 | } |
| 7023 | |
| 7024 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7025 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7026 | |
| 7027 | ac_cv_pthread_is_default=yes |
| 7028 | ac_cv_kthread=no |
| 7029 | ac_cv_pthread=no |
| 7030 | |
| 7031 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7032 | ac_cv_pthread_is_default=no |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7033 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7034 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7035 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7036 | fi |
| 7037 | |
| 7038 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7039 | fi |
| 7040 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_is_default" >&5 |
| 7042 | $as_echo "$ac_cv_pthread_is_default" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7043 | |
| 7044 | |
| 7045 | if test $ac_cv_pthread_is_default = yes |
| 7046 | then |
| 7047 | ac_cv_kpthread=no |
| 7048 | else |
| 7049 | # -Kpthread, if available, provides the right #defines |
| 7050 | # and linker options to make pthread_create available |
| 7051 | # Some compilers won't report that they do not support -Kpthread, |
| 7052 | # so we need to run a program to see whether it really made the |
| 7053 | # function available. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7054 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kpthread" >&5 |
| 7055 | $as_echo_n "checking whether $CC accepts -Kpthread... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7056 | if ${ac_cv_kpthread+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7057 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7058 | else |
| 7059 | ac_save_cc="$CC" |
| 7060 | CC="$CC -Kpthread" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7061 | if test "$cross_compiling" = yes; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7062 | ac_cv_kpthread=no |
| 7063 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7064 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7065 | /* end confdefs.h. */ |
| 7066 | |
Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 7067 | #include <stdio.h> |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7068 | #include <pthread.h> |
| 7069 | |
| 7070 | void* routine(void* p){return NULL;} |
| 7071 | |
| 7072 | int main(){ |
| 7073 | pthread_t p; |
| 7074 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 7075 | return 1; |
| 7076 | (void)pthread_detach(p); |
| 7077 | return 0; |
| 7078 | } |
| 7079 | |
| 7080 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7081 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7082 | ac_cv_kpthread=yes |
| 7083 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7084 | ac_cv_kpthread=no |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7085 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7086 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7087 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7088 | fi |
| 7089 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7090 | CC="$ac_save_cc" |
| 7091 | fi |
| 7092 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kpthread" >&5 |
| 7094 | $as_echo "$ac_cv_kpthread" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7095 | fi |
| 7096 | |
| 7097 | if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no |
| 7098 | then |
| 7099 | # -Kthread, if available, provides the right #defines |
| 7100 | # and linker options to make pthread_create available |
| 7101 | # Some compilers won't report that they do not support -Kthread, |
| 7102 | # so we need to run a program to see whether it really made the |
| 7103 | # function available. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7104 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kthread" >&5 |
| 7105 | $as_echo_n "checking whether $CC accepts -Kthread... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7106 | if ${ac_cv_kthread+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7107 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7108 | else |
| 7109 | ac_save_cc="$CC" |
| 7110 | CC="$CC -Kthread" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7111 | if test "$cross_compiling" = yes; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7112 | ac_cv_kthread=no |
| 7113 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7114 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7115 | /* end confdefs.h. */ |
| 7116 | |
Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 7117 | #include <stdio.h> |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7118 | #include <pthread.h> |
| 7119 | |
| 7120 | void* routine(void* p){return NULL;} |
| 7121 | |
| 7122 | int main(){ |
| 7123 | pthread_t p; |
| 7124 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 7125 | return 1; |
| 7126 | (void)pthread_detach(p); |
| 7127 | return 0; |
| 7128 | } |
| 7129 | |
| 7130 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7131 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7132 | ac_cv_kthread=yes |
| 7133 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7134 | ac_cv_kthread=no |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7135 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7136 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7137 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7138 | fi |
| 7139 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7140 | CC="$ac_save_cc" |
| 7141 | fi |
| 7142 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kthread" >&5 |
| 7144 | $as_echo "$ac_cv_kthread" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7145 | fi |
| 7146 | |
| 7147 | if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no |
| 7148 | then |
| 7149 | # -pthread, if available, provides the right #defines |
| 7150 | # and linker options to make pthread_create available |
| 7151 | # Some compilers won't report that they do not support -pthread, |
| 7152 | # so we need to run a program to see whether it really made the |
| 7153 | # function available. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7154 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -pthread" >&5 |
| 7155 | $as_echo_n "checking whether $CC accepts -pthread... " >&6; } |
doko@python.org | 7981f20 | 2013-01-25 15:33:25 +0100 | [diff] [blame] | 7156 | if ${ac_cv_pthread+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7157 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7158 | else |
| 7159 | ac_save_cc="$CC" |
| 7160 | CC="$CC -pthread" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7161 | if test "$cross_compiling" = yes; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7162 | ac_cv_pthread=no |
| 7163 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7164 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7165 | /* end confdefs.h. */ |
| 7166 | |
Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 7167 | #include <stdio.h> |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7168 | #include <pthread.h> |
| 7169 | |
| 7170 | void* routine(void* p){return NULL;} |
| 7171 | |
| 7172 | int main(){ |
| 7173 | pthread_t p; |
| 7174 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 7175 | return 1; |
| 7176 | (void)pthread_detach(p); |
| 7177 | return 0; |
| 7178 | } |
| 7179 | |
| 7180 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7181 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7182 | ac_cv_pthread=yes |
| 7183 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7184 | ac_cv_pthread=no |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7185 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7186 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7187 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7188 | fi |
| 7189 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7190 | CC="$ac_save_cc" |
| 7191 | fi |
| 7192 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread" >&5 |
| 7194 | $as_echo "$ac_cv_pthread" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7195 | fi |
| 7196 | |
| 7197 | # If we have set a CC compiler flag for thread support then |
| 7198 | # check if it works for CXX, too. |
| 7199 | ac_cv_cxx_thread=no |
| 7200 | if test ! -z "$CXX" |
| 7201 | then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7202 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX also accepts flags for thread support" >&5 |
| 7203 | $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] | 7204 | ac_save_cxx="$CXX" |
| 7205 | |
| 7206 | if test "$ac_cv_kpthread" = "yes" |
| 7207 | then |
| 7208 | CXX="$CXX -Kpthread" |
| 7209 | ac_cv_cxx_thread=yes |
| 7210 | elif test "$ac_cv_kthread" = "yes" |
| 7211 | then |
| 7212 | CXX="$CXX -Kthread" |
| 7213 | ac_cv_cxx_thread=yes |
| 7214 | elif test "$ac_cv_pthread" = "yes" |
| 7215 | then |
| 7216 | CXX="$CXX -pthread" |
| 7217 | ac_cv_cxx_thread=yes |
| 7218 | fi |
| 7219 | |
| 7220 | if test $ac_cv_cxx_thread = yes |
| 7221 | then |
| 7222 | echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext |
| 7223 | $CXX -c conftest.$ac_ext 2>&5 |
| 7224 | if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ |
| 7225 | && test -s conftest$ac_exeext && ./conftest$ac_exeext |
| 7226 | then |
| 7227 | ac_cv_cxx_thread=yes |
| 7228 | else |
| 7229 | ac_cv_cxx_thread=no |
| 7230 | fi |
| 7231 | rm -fr conftest* |
| 7232 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_thread" >&5 |
| 7234 | $as_echo "$ac_cv_cxx_thread" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7235 | fi |
| 7236 | CXX="$ac_save_cxx" |
| 7237 | |
| 7238 | |
| 7239 | # checks for header files |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7240 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 7241 | $as_echo_n "checking for ANSI C header files... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7242 | if ${ac_cv_header_stdc+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7243 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7244 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7245 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7246 | /* end confdefs.h. */ |
| 7247 | #include <stdlib.h> |
| 7248 | #include <stdarg.h> |
| 7249 | #include <string.h> |
| 7250 | #include <float.h> |
| 7251 | |
| 7252 | int |
| 7253 | main () |
| 7254 | { |
| 7255 | |
| 7256 | ; |
| 7257 | return 0; |
| 7258 | } |
| 7259 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7260 | if ac_fn_c_try_compile "$LINENO"; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7261 | ac_cv_header_stdc=yes |
| 7262 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7263 | ac_cv_header_stdc=no |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7264 | fi |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7265 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7266 | |
| 7267 | if test $ac_cv_header_stdc = yes; then |
| 7268 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7269 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7270 | /* end confdefs.h. */ |
| 7271 | #include <string.h> |
| 7272 | |
| 7273 | _ACEOF |
| 7274 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7275 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 7276 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7277 | else |
| 7278 | ac_cv_header_stdc=no |
| 7279 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 7280 | rm -f conftest* |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7281 | |
| 7282 | fi |
| 7283 | |
| 7284 | if test $ac_cv_header_stdc = yes; then |
| 7285 | # 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] | 7286 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7287 | /* end confdefs.h. */ |
| 7288 | #include <stdlib.h> |
| 7289 | |
| 7290 | _ACEOF |
| 7291 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7292 | $EGREP "free" >/dev/null 2>&1; then : |
| 7293 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7294 | else |
| 7295 | ac_cv_header_stdc=no |
| 7296 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 7297 | rm -f conftest* |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7298 | |
| 7299 | fi |
| 7300 | |
| 7301 | if test $ac_cv_header_stdc = yes; then |
| 7302 | # /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] | 7303 | if test "$cross_compiling" = yes; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7304 | : |
| 7305 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7306 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7307 | /* end confdefs.h. */ |
| 7308 | #include <ctype.h> |
| 7309 | #include <stdlib.h> |
| 7310 | #if ((' ' & 0x0FF) == 0x020) |
| 7311 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 7312 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 7313 | #else |
| 7314 | # define ISLOWER(c) \ |
| 7315 | (('a' <= (c) && (c) <= 'i') \ |
| 7316 | || ('j' <= (c) && (c) <= 'r') \ |
| 7317 | || ('s' <= (c) && (c) <= 'z')) |
| 7318 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 7319 | #endif |
| 7320 | |
| 7321 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 7322 | int |
| 7323 | main () |
| 7324 | { |
| 7325 | int i; |
| 7326 | for (i = 0; i < 256; i++) |
| 7327 | if (XOR (islower (i), ISLOWER (i)) |
| 7328 | || toupper (i) != TOUPPER (i)) |
| 7329 | return 2; |
| 7330 | return 0; |
| 7331 | } |
| 7332 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7333 | if ac_fn_c_try_run "$LINENO"; then : |
| 7334 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7335 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7336 | ac_cv_header_stdc=no |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7337 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7338 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7339 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7340 | fi |
| 7341 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7342 | fi |
| 7343 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| 7345 | $as_echo "$ac_cv_header_stdc" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7346 | if test $ac_cv_header_stdc = yes; then |
| 7347 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7348 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7349 | |
| 7350 | fi |
| 7351 | |
doko@ubuntu.com | 1a4f561 | 2014-04-17 20:13:44 +0200 | [diff] [blame] | 7352 | 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] | 7353 | fcntl.h grp.h \ |
doko@ubuntu.com | 1a4f561 | 2014-04-17 20:13:44 +0200 | [diff] [blame] | 7354 | ieeefp.h io.h langinfo.h libintl.h process.h pthread.h \ |
Benjamin Peterson | 94b580d | 2011-08-02 17:30:04 -0500 | [diff] [blame] | 7355 | 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] | 7356 | unistd.h utime.h \ |
Jesus Cea | d8b9ae6 | 2011-11-14 19:07:41 +0100 | [diff] [blame] | 7357 | poll.h sys/devpoll.h sys/epoll.h sys/poll.h \ |
Antoine Pitrou | bcf2b59 | 2012-02-08 23:28:36 +0100 | [diff] [blame] | 7358 | 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] | 7359 | 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] | 7360 | 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] | 7361 | 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] | 7362 | 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] | 7363 | libutil.h sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \ |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 7364 | bluetooth/bluetooth.h linux/tipc.h spawn.h util.h alloca.h endian.h \ |
| 7365 | sys/endian.h |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7366 | do : |
| 7367 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 7368 | 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] | 7369 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7370 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7371 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7372 | _ACEOF |
| 7373 | |
| 7374 | fi |
| 7375 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7376 | done |
| 7377 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7378 | ac_header_dirent=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7379 | 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] | 7380 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 7381 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 |
| 7382 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7383 | if eval \${$as_ac_Header+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7384 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7385 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7386 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7387 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7388 | #include <sys/types.h> |
| 7389 | #include <$ac_hdr> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7390 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7391 | int |
| 7392 | main () |
| 7393 | { |
| 7394 | if ((DIR *) 0) |
| 7395 | return 0; |
| 7396 | ; |
| 7397 | return 0; |
| 7398 | } |
| 7399 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7400 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7401 | eval "$as_ac_Header=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7402 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7403 | eval "$as_ac_Header=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7404 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7405 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7406 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7407 | eval ac_res=\$$as_ac_Header |
| 7408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 7409 | $as_echo "$ac_res" >&6; } |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 7410 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7411 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7412 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7413 | _ACEOF |
| 7414 | |
| 7415 | ac_header_dirent=$ac_hdr; break |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7416 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7417 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7418 | done |
| 7419 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 7420 | if test $ac_header_dirent = dirent.h; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7421 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
| 7422 | $as_echo_n "checking for library containing opendir... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7423 | if ${ac_cv_search_opendir+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7424 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7425 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7426 | ac_func_search_save_LIBS=$LIBS |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7427 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7428 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7429 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7430 | /* Override any GCC internal prototype to avoid an error. |
| 7431 | Use char because int might match the return type of a GCC |
| 7432 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7433 | #ifdef __cplusplus |
| 7434 | extern "C" |
| 7435 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7436 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7437 | int |
| 7438 | main () |
| 7439 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7440 | return opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7441 | ; |
| 7442 | return 0; |
| 7443 | } |
| 7444 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7445 | for ac_lib in '' dir; do |
| 7446 | if test -z "$ac_lib"; then |
| 7447 | ac_res="none required" |
| 7448 | else |
| 7449 | ac_res=-l$ac_lib |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 7450 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7451 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7452 | if ac_fn_c_try_link "$LINENO"; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7453 | ac_cv_search_opendir=$ac_res |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7454 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7455 | rm -f core conftest.err conftest.$ac_objext \ |
| 7456 | conftest$ac_exeext |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7457 | if ${ac_cv_search_opendir+:} false; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7458 | break |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 7459 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7460 | done |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7461 | if ${ac_cv_search_opendir+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7462 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7463 | else |
| 7464 | ac_cv_search_opendir=no |
| 7465 | fi |
| 7466 | rm conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7467 | LIBS=$ac_func_search_save_LIBS |
| 7468 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
| 7470 | $as_echo "$ac_cv_search_opendir" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7471 | ac_res=$ac_cv_search_opendir |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7472 | if test "$ac_res" != no; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7473 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7474 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7475 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7476 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7477 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7478 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
| 7479 | $as_echo_n "checking for library containing opendir... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7480 | if ${ac_cv_search_opendir+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7481 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7482 | else |
| 7483 | ac_func_search_save_LIBS=$LIBS |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7484 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7485 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7486 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7487 | /* Override any GCC internal prototype to avoid an error. |
| 7488 | Use char because int might match the return type of a GCC |
| 7489 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7490 | #ifdef __cplusplus |
| 7491 | extern "C" |
| 7492 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7493 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7494 | int |
| 7495 | main () |
| 7496 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7497 | return opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7498 | ; |
| 7499 | return 0; |
| 7500 | } |
| 7501 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7502 | for ac_lib in '' x; do |
| 7503 | if test -z "$ac_lib"; then |
| 7504 | ac_res="none required" |
| 7505 | else |
| 7506 | ac_res=-l$ac_lib |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 7507 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7508 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7509 | if ac_fn_c_try_link "$LINENO"; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7510 | ac_cv_search_opendir=$ac_res |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7511 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7512 | rm -f core conftest.err conftest.$ac_objext \ |
| 7513 | conftest$ac_exeext |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7514 | if ${ac_cv_search_opendir+:} false; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7515 | break |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 7516 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7517 | done |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7518 | if ${ac_cv_search_opendir+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7519 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7520 | else |
| 7521 | ac_cv_search_opendir=no |
| 7522 | fi |
| 7523 | rm conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7524 | LIBS=$ac_func_search_save_LIBS |
| 7525 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
| 7527 | $as_echo "$ac_cv_search_opendir" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7528 | ac_res=$ac_cv_search_opendir |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7529 | if test "$ac_res" != no; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7530 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7531 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7532 | fi |
| 7533 | |
| 7534 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7535 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7536 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5 |
| 7537 | $as_echo_n "checking whether sys/types.h defines makedev... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7538 | if ${ac_cv_header_sys_types_h_makedev+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7539 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7540 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7541 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7542 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7543 | #include <sys/types.h> |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7544 | int |
| 7545 | main () |
| 7546 | { |
| 7547 | return makedev(0, 0); |
| 7548 | ; |
| 7549 | return 0; |
| 7550 | } |
| 7551 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7552 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7553 | ac_cv_header_sys_types_h_makedev=yes |
| 7554 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7555 | ac_cv_header_sys_types_h_makedev=no |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7556 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7557 | rm -f core conftest.err conftest.$ac_objext \ |
| 7558 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7559 | |
| 7560 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5 |
| 7562 | $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7563 | |
| 7564 | if test $ac_cv_header_sys_types_h_makedev = no; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7565 | 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] | 7566 | if test "x$ac_cv_header_sys_mkdev_h" = xyes; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7567 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7568 | $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7569 | |
| 7570 | fi |
| 7571 | |
| 7572 | |
| 7573 | |
| 7574 | if test $ac_cv_header_sys_mkdev_h = no; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7575 | 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] | 7576 | if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7577 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7578 | $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7579 | |
| 7580 | fi |
| 7581 | |
| 7582 | |
| 7583 | fi |
| 7584 | fi |
| 7585 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7586 | |
Gregory P. Smith | 3b1f2c3 | 2011-05-15 12:18:23 -0700 | [diff] [blame] | 7587 | # On Darwin (OS X) net/if.h requires sys/socket.h to be imported first. |
| 7588 | for ac_header in net/if.h |
| 7589 | do : |
| 7590 | ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#include <stdio.h> |
| 7591 | #ifdef STDC_HEADERS |
| 7592 | # include <stdlib.h> |
| 7593 | # include <stddef.h> |
| 7594 | #else |
| 7595 | # ifdef HAVE_STDLIB_H |
| 7596 | # include <stdlib.h> |
| 7597 | # endif |
| 7598 | #endif |
| 7599 | #ifdef HAVE_SYS_SOCKET_H |
| 7600 | # include <sys/socket.h> |
| 7601 | #endif |
| 7602 | |
| 7603 | " |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7604 | if test "x$ac_cv_header_net_if_h" = xyes; then : |
Gregory P. Smith | 3b1f2c3 | 2011-05-15 12:18:23 -0700 | [diff] [blame] | 7605 | cat >>confdefs.h <<_ACEOF |
| 7606 | #define HAVE_NET_IF_H 1 |
| 7607 | _ACEOF |
| 7608 | |
| 7609 | fi |
| 7610 | |
| 7611 | done |
| 7612 | |
| 7613 | |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 7614 | # On Linux, netlink.h requires asm/types.h |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 7615 | for ac_header in linux/netlink.h |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7616 | do : |
| 7617 | 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] | 7618 | #ifdef HAVE_ASM_TYPES_H |
| 7619 | #include <asm/types.h> |
| 7620 | #endif |
| 7621 | #ifdef HAVE_SYS_SOCKET_H |
| 7622 | #include <sys/socket.h> |
| 7623 | #endif |
| 7624 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7625 | " |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7626 | 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] | 7627 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7628 | #define HAVE_LINUX_NETLINK_H 1 |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 7629 | _ACEOF |
| 7630 | |
| 7631 | fi |
| 7632 | |
| 7633 | done |
| 7634 | |
| 7635 | |
Charles-François Natali | 47413c1 | 2011-10-06 19:47:44 +0200 | [diff] [blame] | 7636 | # 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] | 7637 | 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] | 7638 | do : |
| 7639 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 7640 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " |
| 7641 | #ifdef HAVE_SYS_SOCKET_H |
| 7642 | #include <sys/socket.h> |
| 7643 | #endif |
| 7644 | |
| 7645 | " |
| 7646 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 7647 | cat >>confdefs.h <<_ACEOF |
| 7648 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 7649 | _ACEOF |
| 7650 | |
| 7651 | fi |
| 7652 | |
| 7653 | done |
| 7654 | |
| 7655 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7656 | # checks for typedefs |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 7657 | was_it_defined=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7658 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t in time.h" >&5 |
| 7659 | $as_echo_n "checking for clock_t in time.h... " >&6; } |
| 7660 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7661 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7662 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7663 | |
| 7664 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7665 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7666 | $EGREP "clock_t" >/dev/null 2>&1; then : |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 7667 | was_it_defined=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7668 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7669 | |
| 7670 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7671 | $as_echo "#define clock_t long" >>confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7672 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 7673 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7674 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 7675 | rm -f conftest* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7676 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5 |
| 7678 | $as_echo "$was_it_defined" >&6; } |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 7679 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7680 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for makedev" >&5 |
| 7681 | $as_echo_n "checking for makedev... " >&6; } |
| 7682 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7683 | /* end confdefs.h. */ |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 7684 | |
Jesus Cea | 740f53a | 2010-04-28 11:35:30 +0000 | [diff] [blame] | 7685 | #if defined(MAJOR_IN_MKDEV) |
| 7686 | #include <sys/mkdev.h> |
| 7687 | #elif defined(MAJOR_IN_SYSMACROS) |
| 7688 | #include <sys/sysmacros.h> |
| 7689 | #else |
| 7690 | #include <sys/types.h> |
| 7691 | #endif |
| 7692 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7693 | int |
| 7694 | main () |
| 7695 | { |
Jesus Cea | 740f53a | 2010-04-28 11:35:30 +0000 | [diff] [blame] | 7696 | |
| 7697 | makedev(0, 0) |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7698 | ; |
| 7699 | return 0; |
| 7700 | } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 7701 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7702 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7703 | if ac_fn_c_try_link "$LINENO"; then : |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7704 | ac_cv_has_makedev=yes |
| 7705 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7706 | ac_cv_has_makedev=no |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7707 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7708 | rm -f core conftest.err conftest.$ac_objext \ |
| 7709 | conftest$ac_exeext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_makedev" >&5 |
| 7711 | $as_echo "$ac_cv_has_makedev" >&6; } |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7712 | if test "$ac_cv_has_makedev" = "yes"; then |
| 7713 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7714 | $as_echo "#define HAVE_MAKEDEV 1" >>confdefs.h |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7715 | |
| 7716 | fi |
| 7717 | |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 7718 | # byte swapping |
| 7719 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for le64toh" >&5 |
| 7720 | $as_echo_n "checking for le64toh... " >&6; } |
| 7721 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7722 | /* end confdefs.h. */ |
| 7723 | |
| 7724 | #ifdef HAVE_ENDIAN_H |
| 7725 | #include <endian.h> |
| 7726 | #elif defined(HAVE_SYS_ENDIAN_H) |
| 7727 | #include <sys/endian.h> |
| 7728 | #endif |
| 7729 | |
| 7730 | int |
| 7731 | main () |
| 7732 | { |
| 7733 | |
| 7734 | le64toh(1) |
| 7735 | ; |
| 7736 | return 0; |
| 7737 | } |
| 7738 | |
| 7739 | _ACEOF |
| 7740 | if ac_fn_c_try_link "$LINENO"; then : |
| 7741 | ac_cv_has_le64toh=yes |
| 7742 | else |
| 7743 | ac_cv_has_le64toh=no |
| 7744 | fi |
| 7745 | rm -f core conftest.err conftest.$ac_objext \ |
| 7746 | conftest$ac_exeext conftest.$ac_ext |
| 7747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_le64toh" >&5 |
| 7748 | $as_echo "$ac_cv_has_le64toh" >&6; } |
| 7749 | if test "$ac_cv_has_le64toh" = "yes"; then |
| 7750 | |
| 7751 | $as_echo "#define HAVE_HTOLE64 1" >>confdefs.h |
| 7752 | |
| 7753 | fi |
| 7754 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 7755 | # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in |
| 7756 | # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are |
| 7757 | # defined, but the compiler does not support pragma redefine_extname, |
| 7758 | # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit |
| 7759 | # structures (such as rlimit64) without declaring them. As a |
| 7760 | # work-around, disable LFS on such configurations |
| 7761 | |
| 7762 | use_lfs=yes |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7763 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking Solaris LFS bug" >&5 |
| 7764 | $as_echo_n "checking Solaris LFS bug... " >&6; } |
| 7765 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7766 | /* end confdefs.h. */ |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 7767 | |
| 7768 | #define _LARGEFILE_SOURCE 1 |
| 7769 | #define _FILE_OFFSET_BITS 64 |
| 7770 | #include <sys/resource.h> |
| 7771 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 7772 | int |
| 7773 | main () |
| 7774 | { |
| 7775 | struct rlimit foo; |
| 7776 | ; |
| 7777 | return 0; |
| 7778 | } |
| 7779 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7780 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 7781 | sol_lfs_bug=no |
| 7782 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7783 | sol_lfs_bug=yes |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 7784 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7785 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sol_lfs_bug" >&5 |
| 7787 | $as_echo "$sol_lfs_bug" >&6; } |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 7788 | if test "$sol_lfs_bug" = "yes"; then |
| 7789 | use_lfs=no |
| 7790 | fi |
| 7791 | |
| 7792 | if test "$use_lfs" = "yes"; then |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 7793 | # Two defines needed to enable largefile support on various platforms |
| 7794 | # These may affect some typedefs |
Georg Brandl | 216e404 | 2011-02-19 08:58:23 +0000 | [diff] [blame] | 7795 | case $ac_sys_system/$ac_sys_release in |
| 7796 | AIX*) |
| 7797 | |
| 7798 | $as_echo "#define _LARGE_FILES 1" >>confdefs.h |
| 7799 | |
| 7800 | ;; |
| 7801 | esac |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 7802 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7803 | $as_echo "#define _LARGEFILE_SOURCE 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7804 | |
| 7805 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7806 | $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 7807 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 7808 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7809 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 7810 | # Add some code to confdefs.h so that the test for off_t works on SCO |
| 7811 | cat >> confdefs.h <<\EOF |
| 7812 | #if defined(SCO_DS) |
| 7813 | #undef _OFF_T |
| 7814 | #endif |
| 7815 | EOF |
| 7816 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7817 | # Type availability checks |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7818 | 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] | 7819 | if test "x$ac_cv_type_mode_t" = xyes; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7820 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7821 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7822 | |
| 7823 | cat >>confdefs.h <<_ACEOF |
| 7824 | #define mode_t int |
| 7825 | _ACEOF |
| 7826 | |
| 7827 | fi |
| 7828 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7829 | 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] | 7830 | if test "x$ac_cv_type_off_t" = xyes; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7831 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7832 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7833 | |
| 7834 | cat >>confdefs.h <<_ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7835 | #define off_t long int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7836 | _ACEOF |
| 7837 | |
| 7838 | fi |
| 7839 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7840 | 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] | 7841 | if test "x$ac_cv_type_pid_t" = xyes; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7842 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7843 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7844 | |
| 7845 | cat >>confdefs.h <<_ACEOF |
| 7846 | #define pid_t int |
| 7847 | _ACEOF |
| 7848 | |
| 7849 | fi |
| 7850 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 7851 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7852 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | bada4c3 | 2010-04-25 21:18:48 +0000 | [diff] [blame] | 7853 | #define RETSIGTYPE void |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7854 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7855 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7856 | 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] | 7857 | if test "x$ac_cv_type_size_t" = xyes; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7858 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7859 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7860 | |
| 7861 | cat >>confdefs.h <<_ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7862 | #define size_t unsigned int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7863 | _ACEOF |
| 7864 | |
| 7865 | fi |
| 7866 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7867 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 |
| 7868 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7869 | if ${ac_cv_type_uid_t+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7870 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7871 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7872 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7873 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7874 | #include <sys/types.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7875 | |
| 7876 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7877 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7878 | $EGREP "uid_t" >/dev/null 2>&1; then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7879 | ac_cv_type_uid_t=yes |
| 7880 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7881 | ac_cv_type_uid_t=no |
| 7882 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 7883 | rm -f conftest* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7884 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7885 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 |
| 7887 | $as_echo "$ac_cv_type_uid_t" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7888 | if test $ac_cv_type_uid_t = no; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7889 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7890 | $as_echo "#define uid_t int" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7891 | |
| 7892 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7893 | $as_echo "#define gid_t int" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7894 | |
| 7895 | fi |
| 7896 | |
Mark Dickinson | 983bc16 | 2012-12-02 12:11:38 +0000 | [diff] [blame] | 7897 | |
| 7898 | # There are two separate checks for each of the exact-width integer types we |
| 7899 | # need. First we check whether the type is available using the usual |
| 7900 | # AC_CHECK_TYPE macro with the default includes (which includes <inttypes.h> |
| 7901 | # and <stdint.h> where available). We then also use the special type checks of |
| 7902 | # the form AC_TYPE_UINT32_T, which in the case that uint32_t is not available |
| 7903 | # directly, #define's uint32_t to be a suitable type. |
| 7904 | |
| 7905 | ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default" |
| 7906 | if test "x$ac_cv_type_uint32_t" = xyes; then : |
| 7907 | |
| 7908 | $as_echo "#define HAVE_UINT32_T 1" >>confdefs.h |
| 7909 | |
| 7910 | fi |
| 7911 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7912 | ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" |
| 7913 | case $ac_cv_c_uint32_t in #( |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 7914 | no|yes) ;; #( |
| 7915 | *) |
| 7916 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7917 | $as_echo "#define _UINT32_T 1" >>confdefs.h |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 7918 | |
| 7919 | |
| 7920 | cat >>confdefs.h <<_ACEOF |
| 7921 | #define uint32_t $ac_cv_c_uint32_t |
| 7922 | _ACEOF |
| 7923 | ;; |
| 7924 | esac |
| 7925 | |
Mark Dickinson | 983bc16 | 2012-12-02 12:11:38 +0000 | [diff] [blame] | 7926 | |
| 7927 | ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default" |
| 7928 | if test "x$ac_cv_type_uint64_t" = xyes; then : |
| 7929 | |
| 7930 | $as_echo "#define HAVE_UINT64_T 1" >>confdefs.h |
| 7931 | |
| 7932 | fi |
| 7933 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7934 | ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t" |
| 7935 | case $ac_cv_c_uint64_t in #( |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 7936 | no|yes) ;; #( |
| 7937 | *) |
| 7938 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7939 | $as_echo "#define _UINT64_T 1" >>confdefs.h |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 7940 | |
| 7941 | |
| 7942 | cat >>confdefs.h <<_ACEOF |
| 7943 | #define uint64_t $ac_cv_c_uint64_t |
| 7944 | _ACEOF |
| 7945 | ;; |
| 7946 | esac |
| 7947 | |
Mark Dickinson | 983bc16 | 2012-12-02 12:11:38 +0000 | [diff] [blame] | 7948 | |
| 7949 | ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default" |
| 7950 | if test "x$ac_cv_type_int32_t" = xyes; then : |
| 7951 | |
| 7952 | $as_echo "#define HAVE_INT32_T 1" >>confdefs.h |
| 7953 | |
| 7954 | fi |
| 7955 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7956 | ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" |
| 7957 | case $ac_cv_c_int32_t in #( |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 7958 | no|yes) ;; #( |
| 7959 | *) |
| 7960 | |
| 7961 | cat >>confdefs.h <<_ACEOF |
| 7962 | #define int32_t $ac_cv_c_int32_t |
| 7963 | _ACEOF |
| 7964 | ;; |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 7965 | esac |
| 7966 | |
Mark Dickinson | 983bc16 | 2012-12-02 12:11:38 +0000 | [diff] [blame] | 7967 | |
| 7968 | ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default" |
| 7969 | if test "x$ac_cv_type_int64_t" = xyes; then : |
| 7970 | |
| 7971 | $as_echo "#define HAVE_INT64_T 1" >>confdefs.h |
| 7972 | |
| 7973 | fi |
| 7974 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7975 | ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t" |
| 7976 | case $ac_cv_c_int64_t in #( |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 7977 | no|yes) ;; #( |
| 7978 | *) |
| 7979 | |
| 7980 | cat >>confdefs.h <<_ACEOF |
| 7981 | #define int64_t $ac_cv_c_int64_t |
| 7982 | _ACEOF |
| 7983 | ;; |
Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 7984 | esac |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7985 | |
Mark Dickinson | 983bc16 | 2012-12-02 12:11:38 +0000 | [diff] [blame] | 7986 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7987 | 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] | 7988 | if test "x$ac_cv_type_ssize_t" = xyes; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7989 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7990 | $as_echo "#define HAVE_SSIZE_T 1" >>confdefs.h |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7991 | |
| 7992 | fi |
| 7993 | |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 7994 | ac_fn_c_check_type "$LINENO" "__uint128_t" "ac_cv_type___uint128_t" "$ac_includes_default" |
| 7995 | if test "x$ac_cv_type___uint128_t" = xyes; then : |
| 7996 | |
| 7997 | $as_echo "#define HAVE_GCC_UINT128_T 1" >>confdefs.h |
| 7998 | |
| 7999 | fi |
| 8000 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 8001 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8002 | # Sizes of various common basic types |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 8003 | # ANSI C requires sizeof(char) == 1, so no need to check it |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8004 | # The cast to long int works around a bug in the HP C Compiler |
| 8005 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8006 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8007 | # This bug is HP SR number 8606223364. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8008 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 |
| 8009 | $as_echo_n "checking size of int... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8010 | if ${ac_cv_sizeof_int+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8011 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8012 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8013 | 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] | 8014 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8015 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8016 | if test "$ac_cv_type_int" = yes; then |
| 8017 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 8018 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8019 | as_fn_error 77 "cannot compute sizeof (int) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8020 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8021 | else |
| 8022 | ac_cv_sizeof_int=0 |
| 8023 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8024 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8025 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8026 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 |
| 8028 | $as_echo "$ac_cv_sizeof_int" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8029 | |
| 8030 | |
| 8031 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8032 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8033 | #define SIZEOF_INT $ac_cv_sizeof_int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8034 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8035 | |
| 8036 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8037 | # The cast to long int works around a bug in the HP C Compiler |
| 8038 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8039 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8040 | # This bug is HP SR number 8606223364. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8041 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 |
| 8042 | $as_echo_n "checking size of long... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8043 | if ${ac_cv_sizeof_long+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8044 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8045 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8046 | 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] | 8047 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8048 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8049 | if test "$ac_cv_type_long" = yes; then |
| 8050 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 8051 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8052 | as_fn_error 77 "cannot compute sizeof (long) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8053 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8054 | else |
| 8055 | ac_cv_sizeof_long=0 |
| 8056 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8057 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8058 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8059 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 |
| 8061 | $as_echo "$ac_cv_sizeof_long" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8062 | |
| 8063 | |
| 8064 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8065 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8066 | #define SIZEOF_LONG $ac_cv_sizeof_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8067 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8068 | |
| 8069 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8070 | # The cast to long int works around a bug in the HP C Compiler |
| 8071 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8072 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8073 | # This bug is HP SR number 8606223364. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8074 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 |
| 8075 | $as_echo_n "checking size of void *... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8076 | if ${ac_cv_sizeof_void_p+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8077 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8078 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8079 | 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] | 8080 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8081 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8082 | if test "$ac_cv_type_void_p" = yes; then |
| 8083 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 8084 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8085 | as_fn_error 77 "cannot compute sizeof (void *) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8086 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8087 | else |
| 8088 | ac_cv_sizeof_void_p=0 |
| 8089 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8090 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8091 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8092 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 |
| 8094 | $as_echo "$ac_cv_sizeof_void_p" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8095 | |
| 8096 | |
| 8097 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8098 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8099 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8100 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8101 | |
| 8102 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8103 | # The cast to long int works around a bug in the HP C Compiler |
| 8104 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8105 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8106 | # This bug is HP SR number 8606223364. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8107 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 |
| 8108 | $as_echo_n "checking size of short... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8109 | if ${ac_cv_sizeof_short+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8110 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8111 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8112 | 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] | 8113 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8114 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8115 | if test "$ac_cv_type_short" = yes; then |
| 8116 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 8117 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8118 | as_fn_error 77 "cannot compute sizeof (short) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8119 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8120 | else |
| 8121 | ac_cv_sizeof_short=0 |
| 8122 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8123 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8124 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8125 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 |
| 8127 | $as_echo "$ac_cv_sizeof_short" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8128 | |
| 8129 | |
| 8130 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8131 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8132 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8133 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8134 | |
| 8135 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8136 | # The cast to long int works around a bug in the HP C Compiler |
| 8137 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8138 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8139 | # This bug is HP SR number 8606223364. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8140 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5 |
| 8141 | $as_echo_n "checking size of float... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8142 | if ${ac_cv_sizeof_float+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8143 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8144 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8145 | 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] | 8146 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8147 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8148 | if test "$ac_cv_type_float" = yes; then |
| 8149 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 8150 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8151 | as_fn_error 77 "cannot compute sizeof (float) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8152 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8153 | else |
| 8154 | ac_cv_sizeof_float=0 |
| 8155 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8156 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8157 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8158 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5 |
| 8160 | $as_echo "$ac_cv_sizeof_float" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8161 | |
| 8162 | |
| 8163 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8164 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8165 | #define SIZEOF_FLOAT $ac_cv_sizeof_float |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8166 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8167 | |
| 8168 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8169 | # The cast to long int works around a bug in the HP C Compiler |
| 8170 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8171 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8172 | # This bug is HP SR number 8606223364. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8173 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5 |
| 8174 | $as_echo_n "checking size of double... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8175 | if ${ac_cv_sizeof_double+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8176 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8177 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8178 | 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] | 8179 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8180 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8181 | if test "$ac_cv_type_double" = yes; then |
| 8182 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 8183 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8184 | as_fn_error 77 "cannot compute sizeof (double) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8185 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8186 | else |
| 8187 | ac_cv_sizeof_double=0 |
| 8188 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8189 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8190 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8191 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5 |
| 8193 | $as_echo "$ac_cv_sizeof_double" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8194 | |
| 8195 | |
| 8196 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8197 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8198 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8199 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8200 | |
| 8201 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8202 | # The cast to long int works around a bug in the HP C Compiler |
| 8203 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8204 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8205 | # This bug is HP SR number 8606223364. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8206 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of fpos_t" >&5 |
| 8207 | $as_echo_n "checking size of fpos_t... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8208 | if ${ac_cv_sizeof_fpos_t+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8209 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8210 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8211 | 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] | 8212 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8213 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8214 | if test "$ac_cv_type_fpos_t" = yes; then |
| 8215 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 8216 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8217 | as_fn_error 77 "cannot compute sizeof (fpos_t) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8218 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8219 | else |
| 8220 | ac_cv_sizeof_fpos_t=0 |
| 8221 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8222 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8223 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8224 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_fpos_t" >&5 |
| 8226 | $as_echo "$ac_cv_sizeof_fpos_t" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8227 | |
| 8228 | |
| 8229 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8230 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8231 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8232 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8233 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8234 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8235 | # The cast to long int works around a bug in the HP C Compiler |
| 8236 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8237 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8238 | # This bug is HP SR number 8606223364. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8239 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 |
| 8240 | $as_echo_n "checking size of size_t... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8241 | if ${ac_cv_sizeof_size_t+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8242 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8243 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8244 | 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] | 8245 | |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8246 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8247 | if test "$ac_cv_type_size_t" = yes; then |
| 8248 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 8249 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8250 | as_fn_error 77 "cannot compute sizeof (size_t) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8251 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8252 | else |
| 8253 | ac_cv_sizeof_size_t=0 |
| 8254 | fi |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8255 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8256 | |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8257 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 |
| 8259 | $as_echo "$ac_cv_sizeof_size_t" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8260 | |
| 8261 | |
| 8262 | |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8263 | cat >>confdefs.h <<_ACEOF |
| 8264 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t |
| 8265 | _ACEOF |
| 8266 | |
| 8267 | |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 8268 | # The cast to long int works around a bug in the HP C Compiler |
| 8269 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8270 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8271 | # This bug is HP SR number 8606223364. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8272 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pid_t" >&5 |
| 8273 | $as_echo_n "checking size of pid_t... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8274 | if ${ac_cv_sizeof_pid_t+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8275 | $as_echo_n "(cached) " >&6 |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 8276 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8277 | 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] | 8278 | |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 8279 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8280 | if test "$ac_cv_type_pid_t" = yes; then |
| 8281 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 8282 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8283 | as_fn_error 77 "cannot compute sizeof (pid_t) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8284 | See \`config.log' for more details" "$LINENO" 5; } |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 8285 | else |
| 8286 | ac_cv_sizeof_pid_t=0 |
| 8287 | fi |
| 8288 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8289 | |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 8290 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pid_t" >&5 |
| 8292 | $as_echo "$ac_cv_sizeof_pid_t" >&6; } |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 8293 | |
| 8294 | |
| 8295 | |
| 8296 | cat >>confdefs.h <<_ACEOF |
| 8297 | #define SIZEOF_PID_T $ac_cv_sizeof_pid_t |
| 8298 | _ACEOF |
| 8299 | |
| 8300 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8301 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8302 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support" >&5 |
| 8303 | $as_echo_n "checking for long long support... " >&6; } |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8304 | have_long_long=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8305 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8306 | /* end confdefs.h. */ |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8307 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8308 | int |
| 8309 | main () |
| 8310 | { |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8311 | long long x; x = (long long)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8312 | ; |
| 8313 | return 0; |
| 8314 | } |
| 8315 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8316 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8317 | |
| 8318 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8319 | $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8320 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 8321 | have_long_long=yes |
| 8322 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8323 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8324 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_long_long" >&5 |
| 8326 | $as_echo "$have_long_long" >&6; } |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 8327 | if test "$have_long_long" = yes ; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8328 | # The cast to long int works around a bug in the HP C Compiler |
| 8329 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8330 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8331 | # This bug is HP SR number 8606223364. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8332 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 |
| 8333 | $as_echo_n "checking size of long long... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8334 | if ${ac_cv_sizeof_long_long+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8335 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8336 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8337 | 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] | 8338 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8339 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8340 | if test "$ac_cv_type_long_long" = yes; then |
| 8341 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 8342 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8343 | as_fn_error 77 "cannot compute sizeof (long long) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8344 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8345 | else |
| 8346 | ac_cv_sizeof_long_long=0 |
| 8347 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8348 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8349 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8350 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 |
| 8352 | $as_echo "$ac_cv_sizeof_long_long" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8353 | |
| 8354 | |
| 8355 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8356 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8357 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8358 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8359 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8360 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8361 | fi |
| 8362 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8363 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support" >&5 |
| 8364 | $as_echo_n "checking for long double support... " >&6; } |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8365 | have_long_double=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8366 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8367 | /* end confdefs.h. */ |
| 8368 | |
| 8369 | int |
| 8370 | main () |
| 8371 | { |
| 8372 | long double x; x = (long double)0; |
| 8373 | ; |
| 8374 | return 0; |
| 8375 | } |
| 8376 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8377 | if ac_fn_c_try_compile "$LINENO"; then : |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8378 | |
| 8379 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8380 | $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8381 | |
| 8382 | have_long_double=yes |
| 8383 | |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8384 | fi |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8385 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_long_double" >&5 |
| 8387 | $as_echo "$have_long_double" >&6; } |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8388 | if test "$have_long_double" = yes ; then |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8389 | # The cast to long int works around a bug in the HP C Compiler |
| 8390 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8391 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8392 | # This bug is HP SR number 8606223364. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8393 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5 |
| 8394 | $as_echo_n "checking size of long double... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8395 | if ${ac_cv_sizeof_long_double+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8396 | $as_echo_n "(cached) " >&6 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8397 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8398 | 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] | 8399 | |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8400 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8401 | if test "$ac_cv_type_long_double" = yes; then |
| 8402 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 8403 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8404 | as_fn_error 77 "cannot compute sizeof (long double) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8405 | See \`config.log' for more details" "$LINENO" 5; } |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8406 | else |
| 8407 | ac_cv_sizeof_long_double=0 |
| 8408 | fi |
| 8409 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8410 | |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8411 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5 |
| 8413 | $as_echo "$ac_cv_sizeof_long_double" >&6; } |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8414 | |
| 8415 | |
| 8416 | |
| 8417 | cat >>confdefs.h <<_ACEOF |
| 8418 | #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double |
| 8419 | _ACEOF |
| 8420 | |
| 8421 | |
| 8422 | fi |
| 8423 | |
| 8424 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8425 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Bool support" >&5 |
| 8426 | $as_echo_n "checking for _Bool support... " >&6; } |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8427 | have_c99_bool=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8428 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8429 | /* end confdefs.h. */ |
| 8430 | |
| 8431 | int |
| 8432 | main () |
| 8433 | { |
| 8434 | _Bool x; x = (_Bool)0; |
| 8435 | ; |
| 8436 | return 0; |
| 8437 | } |
| 8438 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8439 | if ac_fn_c_try_compile "$LINENO"; then : |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8440 | |
| 8441 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8442 | $as_echo "#define HAVE_C99_BOOL 1" >>confdefs.h |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8443 | |
| 8444 | have_c99_bool=yes |
| 8445 | |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8446 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8447 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_c99_bool" >&5 |
| 8449 | $as_echo "$have_c99_bool" >&6; } |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8450 | if test "$have_c99_bool" = yes ; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8451 | # The cast to long int works around a bug in the HP C Compiler |
| 8452 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8453 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8454 | # This bug is HP SR number 8606223364. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8455 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of _Bool" >&5 |
| 8456 | $as_echo_n "checking size of _Bool... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8457 | if ${ac_cv_sizeof__Bool+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8458 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8459 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8460 | 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] | 8461 | |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8462 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8463 | if test "$ac_cv_type__Bool" = yes; then |
| 8464 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 8465 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8466 | as_fn_error 77 "cannot compute sizeof (_Bool) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8467 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8468 | else |
| 8469 | ac_cv_sizeof__Bool=0 |
| 8470 | fi |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8471 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8472 | |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8473 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof__Bool" >&5 |
| 8475 | $as_echo "$ac_cv_sizeof__Bool" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8476 | |
| 8477 | |
| 8478 | |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8479 | cat >>confdefs.h <<_ACEOF |
| 8480 | #define SIZEOF__BOOL $ac_cv_sizeof__Bool |
| 8481 | _ACEOF |
| 8482 | |
| 8483 | |
| 8484 | fi |
| 8485 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8486 | 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] | 8487 | #include <stdint.h> |
| 8488 | #endif |
Antoine Pitrou | 1bf29b7 | 2010-10-10 08:10:16 +0000 | [diff] [blame] | 8489 | #ifdef HAVE_INTTYPES_H |
| 8490 | #include <inttypes.h> |
| 8491 | #endif |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8492 | " |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8493 | if test "x$ac_cv_type_uintptr_t" = xyes; then : |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 8494 | |
| 8495 | cat >>confdefs.h <<_ACEOF |
| 8496 | #define HAVE_UINTPTR_T 1 |
| 8497 | _ACEOF |
| 8498 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8499 | # The cast to long int works around a bug in the HP C Compiler |
| 8500 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8501 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8502 | # This bug is HP SR number 8606223364. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8503 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uintptr_t" >&5 |
| 8504 | $as_echo_n "checking size of uintptr_t... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8505 | if ${ac_cv_sizeof_uintptr_t+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8506 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8507 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8508 | 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] | 8509 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8510 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8511 | if test "$ac_cv_type_uintptr_t" = yes; then |
| 8512 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 8513 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8514 | as_fn_error 77 "cannot compute sizeof (uintptr_t) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8515 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8516 | else |
| 8517 | ac_cv_sizeof_uintptr_t=0 |
| 8518 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8519 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8520 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8521 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uintptr_t" >&5 |
| 8523 | $as_echo "$ac_cv_sizeof_uintptr_t" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8524 | |
| 8525 | |
| 8526 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8527 | cat >>confdefs.h <<_ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8528 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8529 | _ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8530 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8531 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8532 | fi |
| 8533 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 8534 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8535 | # The cast to long int works around a bug in the HP C Compiler |
| 8536 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8537 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8538 | # This bug is HP SR number 8606223364. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8539 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 |
| 8540 | $as_echo_n "checking size of off_t... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8541 | if ${ac_cv_sizeof_off_t+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8542 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8543 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8544 | 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] | 8545 | #ifdef HAVE_SYS_TYPES_H |
| 8546 | #include <sys/types.h> |
| 8547 | #endif |
| 8548 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8549 | "; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8550 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8551 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8552 | if test "$ac_cv_type_off_t" = yes; then |
| 8553 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 8554 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8555 | as_fn_error 77 "cannot compute sizeof (off_t) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8556 | See \`config.log' for more details" "$LINENO" 5; } |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8557 | else |
| 8558 | ac_cv_sizeof_off_t=0 |
| 8559 | fi |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8560 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8561 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8562 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 |
| 8564 | $as_echo "$ac_cv_sizeof_off_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8565 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8566 | |
| 8567 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8568 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8569 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8570 | _ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8571 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8572 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8573 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8574 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable large file support" >&5 |
| 8575 | $as_echo_n "checking whether to enable large file support... " >&6; } |
Mark Dickinson | 2df5d28 | 2009-12-31 21:22:50 +0000 | [diff] [blame] | 8576 | if test "$have_long_long" = yes |
| 8577 | then |
| 8578 | 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] | 8579 | "$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] | 8580 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8581 | $as_echo "#define HAVE_LARGEFILE_SUPPORT 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8582 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 8584 | $as_echo "yes" >&6; } |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8585 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8587 | $as_echo "no" >&6; } |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8588 | fi |
Mark Dickinson | 2df5d28 | 2009-12-31 21:22:50 +0000 | [diff] [blame] | 8589 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8591 | $as_echo "no" >&6; } |
Mark Dickinson | 2df5d28 | 2009-12-31 21:22:50 +0000 | [diff] [blame] | 8592 | fi |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8593 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8594 | # The cast to long int works around a bug in the HP C Compiler |
| 8595 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8596 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8597 | # This bug is HP SR number 8606223364. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8598 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 |
| 8599 | $as_echo_n "checking size of time_t... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8600 | if ${ac_cv_sizeof_time_t+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8601 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8602 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8603 | 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] | 8604 | #ifdef HAVE_SYS_TYPES_H |
| 8605 | #include <sys/types.h> |
| 8606 | #endif |
| 8607 | #ifdef HAVE_TIME_H |
| 8608 | #include <time.h> |
| 8609 | #endif |
| 8610 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8611 | "; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8612 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8613 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8614 | if test "$ac_cv_type_time_t" = yes; then |
| 8615 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 8616 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8617 | as_fn_error 77 "cannot compute sizeof (time_t) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8618 | See \`config.log' for more details" "$LINENO" 5; } |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8619 | else |
| 8620 | ac_cv_sizeof_time_t=0 |
| 8621 | fi |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8622 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8623 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8624 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 |
| 8626 | $as_echo "$ac_cv_sizeof_time_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8627 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8628 | |
| 8629 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8630 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8631 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8632 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8633 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8634 | |
| 8635 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8636 | # if have pthread_t then define SIZEOF_PTHREAD_T |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 8637 | ac_save_cc="$CC" |
| 8638 | if test "$ac_cv_kpthread" = "yes" |
| 8639 | then CC="$CC -Kpthread" |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 8640 | elif test "$ac_cv_kthread" = "yes" |
| 8641 | then CC="$CC -Kthread" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8642 | elif test "$ac_cv_pthread" = "yes" |
| 8643 | then CC="$CC -pthread" |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 8644 | fi |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8645 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8646 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_t" >&5 |
| 8647 | $as_echo_n "checking for pthread_t... " >&6; } |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8648 | have_pthread_t=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8649 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8650 | /* end confdefs.h. */ |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8651 | |
| 8652 | #include <pthread.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8653 | int |
| 8654 | main () |
| 8655 | { |
Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 8656 | pthread_t x; x = *(pthread_t*)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8657 | ; |
| 8658 | return 0; |
| 8659 | } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8660 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8661 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8662 | if ac_fn_c_try_compile "$LINENO"; then : |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8663 | have_pthread_t=yes |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8664 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8665 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_t" >&5 |
| 8667 | $as_echo "$have_pthread_t" >&6; } |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8668 | if test "$have_pthread_t" = yes ; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8669 | # 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] | 8670 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8671 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8672 | # This bug is HP SR number 8606223364. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8673 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5 |
| 8674 | $as_echo_n "checking size of pthread_t... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8675 | if ${ac_cv_sizeof_pthread_t+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8676 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8677 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8678 | 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] | 8679 | #ifdef HAVE_PTHREAD_H |
| 8680 | #include <pthread.h> |
| 8681 | #endif |
| 8682 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8683 | "; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8684 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8685 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8686 | if test "$ac_cv_type_pthread_t" = yes; then |
| 8687 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 8688 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8689 | as_fn_error 77 "cannot compute sizeof (pthread_t) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8690 | See \`config.log' for more details" "$LINENO" 5; } |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8691 | else |
| 8692 | ac_cv_sizeof_pthread_t=0 |
| 8693 | fi |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8694 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8695 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8696 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5 |
| 8698 | $as_echo "$ac_cv_sizeof_pthread_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8699 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8700 | |
| 8701 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8702 | cat >>confdefs.h <<_ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8703 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8704 | _ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8705 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8706 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8707 | fi |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 8708 | CC="$ac_save_cc" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8709 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8710 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8711 | case $ac_sys_system/$ac_sys_release in |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 8712 | Darwin/[01567]\..*) |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 8713 | OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000" |
| 8714 | ;; |
| 8715 | Darwin/*) |
| 8716 | OTHER_LIBTOOL_OPT="" |
| 8717 | ;; |
| 8718 | esac |
| 8719 | |
| 8720 | |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 8721 | |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 8722 | case $ac_sys_system/$ac_sys_release in |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 8723 | Darwin/[01567]\..*) |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8724 | LIBTOOL_CRUFT="-framework System -lcc_dynamic" |
| 8725 | if test "${enable_universalsdk}"; then |
| 8726 | : |
| 8727 | else |
Ronald Oussoren | e3da75a | 2010-02-11 13:38:58 +0000 | [diff] [blame] | 8728 | LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `/usr/bin/arch`" |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8729 | fi |
Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 8730 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 8731 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 8732 | Darwin/*) |
Ronald Oussoren | 9812a6c | 2010-02-07 11:53:18 +0000 | [diff] [blame] | 8733 | gcc_version=`gcc -dumpversion` |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 8734 | if test ${gcc_version} '<' 4.0 |
| 8735 | then |
| 8736 | LIBTOOL_CRUFT="-lcc_dynamic" |
| 8737 | else |
| 8738 | LIBTOOL_CRUFT="" |
| 8739 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8740 | if test "$cross_compiling" = yes; then : |
Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 8741 | ac_osx_32bit=yes |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 8742 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8743 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 8744 | /* end confdefs.h. */ |
Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 8745 | |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 8746 | #include <unistd.h> |
| 8747 | int main(int argc, char*argv[]) |
| 8748 | { |
| 8749 | if (sizeof(long) == 4) { |
| 8750 | return 0; |
| 8751 | } else { |
| 8752 | return 1; |
| 8753 | } |
Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 8754 | } |
| 8755 | |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 8756 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8757 | if ac_fn_c_try_run "$LINENO"; then : |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 8758 | ac_osx_32bit=yes |
| 8759 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8760 | ac_osx_32bit=no |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 8761 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8762 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 8763 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 8764 | fi |
| 8765 | |
| 8766 | |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 8767 | if test "${ac_osx_32bit}" = "yes"; then |
Ronald Oussoren | e3da75a | 2010-02-11 13:38:58 +0000 | [diff] [blame] | 8768 | case `/usr/bin/arch` in |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 8769 | i386) |
| 8770 | MACOSX_DEFAULT_ARCH="i386" |
| 8771 | ;; |
| 8772 | ppc) |
| 8773 | MACOSX_DEFAULT_ARCH="ppc" |
| 8774 | ;; |
| 8775 | *) |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8776 | as_fn_error $? "Unexpected output of 'arch' on OSX" "$LINENO" 5 |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 8777 | ;; |
| 8778 | esac |
| 8779 | else |
Ronald Oussoren | e3da75a | 2010-02-11 13:38:58 +0000 | [diff] [blame] | 8780 | case `/usr/bin/arch` in |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 8781 | i386) |
| 8782 | MACOSX_DEFAULT_ARCH="x86_64" |
| 8783 | ;; |
| 8784 | ppc) |
| 8785 | MACOSX_DEFAULT_ARCH="ppc64" |
| 8786 | ;; |
| 8787 | *) |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8788 | as_fn_error $? "Unexpected output of 'arch' on OSX" "$LINENO" 5 |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 8789 | ;; |
| 8790 | esac |
| 8791 | |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 8792 | fi |
| 8793 | |
| 8794 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}" |
Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 8795 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8796 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8797 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8798 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-framework" >&5 |
| 8799 | $as_echo_n "checking for --enable-framework... " >&6; } |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8800 | if test "$enable_framework" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8801 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 8802 | BASECFLAGS="$BASECFLAGS -fno-common -dynamic" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8803 | # -F. is needed to allow linking to the framework while |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8804 | # in the build location. |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8805 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8806 | $as_echo "#define WITH_NEXT_FRAMEWORK 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8807 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 8809 | $as_echo "yes" >&6; } |
Ronald Oussoren | 99aab65 | 2009-06-08 21:22:57 +0000 | [diff] [blame] | 8810 | if test $enable_shared = "yes" |
| 8811 | then |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8812 | 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] | 8813 | fi |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8814 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8816 | $as_echo "no" >&6; } |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8817 | fi |
| 8818 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8819 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dyld" >&5 |
| 8820 | $as_echo_n "checking for dyld... " >&6; } |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 8821 | case $ac_sys_system/$ac_sys_release in |
| 8822 | Darwin/*) |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8823 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8824 | $as_echo "#define WITH_DYLD 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8825 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: always on for Darwin" >&5 |
| 8827 | $as_echo "always on for Darwin" >&6; } |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 8828 | ;; |
| 8829 | *) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8831 | $as_echo "no" >&6; } |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8832 | ;; |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 8833 | esac |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8834 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8835 | # Set info about shared libraries. |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8836 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8837 | |
| 8838 | |
| 8839 | |
| 8840 | |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 8841 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8842 | |
doko@ubuntu.com | d5537d0 | 2013-03-21 13:21:49 -0700 | [diff] [blame] | 8843 | # SHLIB_SUFFIX is the extension of shared libraries `(including the dot!) |
| 8844 | # -- usually .so, .sl on HP-UX, .dll on Cygwin |
| 8845 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the extension of shared libraries" >&5 |
| 8846 | $as_echo_n "checking the extension of shared libraries... " >&6; } |
| 8847 | if test -z "$SHLIB_SUFFIX"; then |
| 8848 | case $ac_sys_system in |
| 8849 | hp*|HP*) |
| 8850 | case `uname -m` in |
| 8851 | ia64) SHLIB_SUFFIX=.so;; |
| 8852 | *) SHLIB_SUFFIX=.sl;; |
| 8853 | esac |
| 8854 | ;; |
| 8855 | CYGWIN*) SHLIB_SUFFIX=.dll;; |
| 8856 | *) SHLIB_SUFFIX=.so;; |
| 8857 | esac |
| 8858 | fi |
| 8859 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIB_SUFFIX" >&5 |
| 8860 | $as_echo "$SHLIB_SUFFIX" >&6; } |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8861 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8862 | # LDSHARED is the ld *command* used to create shared library |
Martin v. Löwis | 12af048 | 2004-01-31 12:34:17 +0000 | [diff] [blame] | 8863 | # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8864 | # (Shared libraries in this instance are shared modules to be loaded into |
| 8865 | # Python, as opposed to building Python itself as a shared library.) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8866 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDSHARED" >&5 |
| 8867 | $as_echo_n "checking LDSHARED... " >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8868 | if test -z "$LDSHARED" |
| 8869 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8870 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 8871 | AIX*) |
Georg Brandl | 9a829be | 2011-02-15 15:44:51 +0000 | [diff] [blame] | 8872 | 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] | 8873 | LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 8874 | ;; |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 8875 | IRIX/5*) LDSHARED="ld -shared";; |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 8876 | IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8877 | SunOS/5*) |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 8878 | if test "$GCC" = "yes" ; then |
| 8879 | LDSHARED='$(CC) -shared' |
| 8880 | LDCXXSHARED='$(CXX) -shared' |
| 8881 | else |
| 8882 | LDSHARED='$(CC) -G' |
| 8883 | LDCXXSHARED='$(CXX) -G' |
Greg Ward | 57c9a663 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 8884 | fi ;; |
Thomas Heller | f44b9a1 | 2008-04-04 10:18:23 +0000 | [diff] [blame] | 8885 | hp*|HP*) |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 8886 | if test "$GCC" = "yes" ; then |
| 8887 | LDSHARED='$(CC) -shared' |
| 8888 | LDCXXSHARED='$(CXX) -shared' |
| 8889 | else |
| 8890 | LDSHARED='ld -b' |
Thomas Heller | f44b9a1 | 2008-04-04 10:18:23 +0000 | [diff] [blame] | 8891 | fi ;; |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 8892 | Darwin/1.3*) |
Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 8893 | LDSHARED='$(CC) -bundle' |
| 8894 | LDCXXSHARED='$(CXX) -bundle' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 8895 | if test "$enable_framework" ; then |
| 8896 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 8897 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 8898 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 8899 | LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 8900 | else |
| 8901 | # No framework. Ignore undefined symbols, assuming they come from Python |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 8902 | LDSHARED="$LDSHARED -undefined suppress" |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 8903 | LDCXXSHARED="$LDCXXSHARED -undefined suppress" |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 8904 | fi ;; |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 8905 | Darwin/1.4*|Darwin/5.*|Darwin/6.*) |
Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 8906 | LDSHARED='$(CC) -bundle' |
| 8907 | LDCXXSHARED='$(CXX) -bundle' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8908 | if test "$enable_framework" ; then |
| 8909 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 8910 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 8911 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 8912 | LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8913 | else |
Michael W. Hudson | 594bc80 | 2002-03-07 09:59:15 +0000 | [diff] [blame] | 8914 | # No framework, use the Python app as bundle-loader |
| 8915 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
Jack Jansen | c28fc37 | 2003-02-25 13:14:43 +0000 | [diff] [blame] | 8916 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 8917 | LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8918 | fi ;; |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 8919 | Darwin/*) |
| 8920 | # Use -undefined dynamic_lookup whenever possible (10.3 and later). |
| 8921 | # This allows an extension to be used in any Python |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 8922 | |
Ned Deily | 36820b6 | 2014-06-25 13:44:22 -0700 | [diff] [blame] | 8923 | dep_target_major=`echo ${MACOSX_DEPLOYMENT_TARGET} | \ |
| 8924 | sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'` |
| 8925 | dep_target_minor=`echo ${MACOSX_DEPLOYMENT_TARGET} | \ |
| 8926 | sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'` |
| 8927 | if test ${dep_target_major} -eq 10 && \ |
| 8928 | test ${dep_target_minor} -le 2 |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 8929 | then |
Ned Deily | 36820b6 | 2014-06-25 13:44:22 -0700 | [diff] [blame] | 8930 | # building for OS X 10.0 through 10.2 |
Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 8931 | LDSHARED='$(CC) -bundle' |
| 8932 | LDCXXSHARED='$(CXX) -bundle' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 8933 | if test "$enable_framework" ; then |
| 8934 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 8935 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 8936 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 8937 | LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 8938 | else |
| 8939 | # No framework, use the Python app as bundle-loader |
| 8940 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
| 8941 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 8942 | LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 8943 | fi |
Ned Deily | 36820b6 | 2014-06-25 13:44:22 -0700 | [diff] [blame] | 8944 | else |
| 8945 | # building for OS X 10.3 and later |
| 8946 | LDSHARED='$(CC) -bundle -undefined dynamic_lookup' |
| 8947 | LDCXXSHARED='$(CXX) -bundle -undefined dynamic_lookup' |
| 8948 | BLDSHARED="$LDSHARED" |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 8949 | fi |
| 8950 | ;; |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 8951 | Linux*|GNU*|QNX*) |
| 8952 | LDSHARED='$(CC) -shared' |
| 8953 | LDCXXSHARED='$(CXX) -shared';; |
| 8954 | BSD/OS*/4*) |
| 8955 | LDSHARED="gcc -shared" |
| 8956 | LDCXXSHARED="g++ -shared";; |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 8957 | FreeBSD*) |
Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 8958 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 8959 | then |
Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 8960 | LDSHARED='$(CC) -shared' |
| 8961 | LDCXXSHARED='$(CXX) -shared' |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 8962 | else |
Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 8963 | LDSHARED="ld -Bshareable" |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 8964 | fi;; |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 8965 | OpenBSD*) |
| 8966 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 8967 | then |
Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 8968 | LDSHARED='$(CC) -shared $(CCSHARED)' |
| 8969 | LDCXXSHARED='$(CXX) -shared $(CCSHARED)' |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 8970 | else |
| 8971 | case `uname -r` in |
| 8972 | [01].* | 2.[0-7] | 2.[0-7].*) |
| 8973 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 8974 | ;; |
| 8975 | *) |
Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 8976 | LDSHARED='$(CC) -shared $(CCSHARED)' |
| 8977 | LDCXXSHARED='$(CXX) -shared $(CCSHARED)' |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 8978 | ;; |
| 8979 | esac |
| 8980 | fi;; |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 8981 | NetBSD*|DragonFly*) |
Antoine Pitrou | ece919e | 2011-01-02 20:45:21 +0000 | [diff] [blame] | 8982 | LDSHARED='$(CC) -shared' |
| 8983 | LDCXXSHARED='$(CXX) -shared';; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 8984 | OpenUNIX*|UnixWare*) |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 8985 | if test "$GCC" = "yes" ; then |
| 8986 | LDSHARED='$(CC) -shared' |
| 8987 | LDCXXSHARED='$(CXX) -shared' |
| 8988 | else |
| 8989 | LDSHARED='$(CC) -G' |
| 8990 | LDCXXSHARED='$(CXX) -G' |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 8991 | fi;; |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 8992 | SCO_SV*) |
| 8993 | LDSHARED='$(CC) -Wl,-G,-Bexport' |
| 8994 | LDCXXSHARED='$(CXX) -Wl,-G,-Bexport';; |
| 8995 | CYGWIN*) |
| 8996 | LDSHARED="gcc -shared -Wl,--enable-auto-image-base" |
| 8997 | LDCXXSHARED="g++ -shared -Wl,--enable-auto-image-base";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8998 | *) LDSHARED="ld";; |
| 8999 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9000 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDSHARED" >&5 |
| 9002 | $as_echo "$LDSHARED" >&6; } |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9003 | LDCXXSHARED=${LDCXXSHARED-$LDSHARED} |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9004 | BLDSHARED=${BLDSHARED-$LDSHARED} |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9005 | # 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] | 9006 | # library (module) -- this is only needed for a few systems |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9007 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CCSHARED" >&5 |
| 9008 | $as_echo_n "checking CCSHARED... " >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9009 | if test -z "$CCSHARED" |
| 9010 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 9011 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 9012 | SunOS*) if test "$GCC" = yes; |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 9013 | then CCSHARED="-fPIC"; |
| 9014 | elif test `uname -p` = sparc; |
| 9015 | then CCSHARED="-xcode=pic32"; |
| 9016 | else CCSHARED="-Kpic"; |
| 9017 | fi;; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 9018 | hp*|HP*) if test "$GCC" = yes; |
Martin v. Löwis | 703ad70 | 2001-09-05 08:36:52 +0000 | [diff] [blame] | 9019 | then CCSHARED="-fPIC"; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 9020 | else CCSHARED="+z"; |
| 9021 | fi;; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9022 | Linux*|GNU*) CCSHARED="-fPIC";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 9023 | BSD/OS*/4*) CCSHARED="-fpic";; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 9024 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 9025 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 9026 | if test "$GCC" = "yes" |
| 9027 | then CCSHARED="-fPIC" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9028 | else CCSHARED="-KPIC" |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 9029 | fi;; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 9030 | SCO_SV*) |
| 9031 | if test "$GCC" = "yes" |
| 9032 | then CCSHARED="-fPIC" |
| 9033 | else CCSHARED="-Kpic -belf" |
| 9034 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9035 | IRIX*/6*) case $CC in |
| 9036 | *gcc*) CCSHARED="-shared";; |
Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 9037 | *) CCSHARED="";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9038 | esac;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9039 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9040 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCSHARED" >&5 |
| 9042 | $as_echo "$CCSHARED" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9043 | # LINKFORSHARED are the flags passed to the $(CC) command that links |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9044 | # the python executable -- this is only needed for a few systems |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9045 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKFORSHARED" >&5 |
| 9046 | $as_echo_n "checking LINKFORSHARED... " >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9047 | if test -z "$LINKFORSHARED" |
| 9048 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 9049 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9050 | AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 9051 | hp*|HP*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 9052 | LINKFORSHARED="-Wl,-E -Wl,+s";; |
| 9053 | # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 9054 | BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9055 | Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9056 | # -u libsys_s pulls in all symbols in libsys |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9057 | Darwin/*) |
Benjamin Peterson | 9c80cac | 2009-05-23 16:34:23 +0000 | [diff] [blame] | 9058 | LINKFORSHARED="$extra_undefs -framework CoreFoundation" |
Łukasz Langa | 335ab5b | 2013-05-30 20:58:53 +0200 | [diff] [blame] | 9059 | |
| 9060 | # Issue #18075: the default maximum stack size (8MBytes) is too |
| 9061 | # small for the default recursion limit. Increase the stack size |
| 9062 | # to ensure that tests don't crash |
| 9063 | LINKFORSHARED="-Wl,-stack_size,1000000 $LINKFORSHARED" |
| 9064 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9065 | if test "$enable_framework" |
| 9066 | then |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 9067 | LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9068 | fi |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 9069 | LINKFORSHARED="$LINKFORSHARED";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 9070 | OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 9071 | SCO_SV*) LINKFORSHARED="-Wl,-Bexport";; |
Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 9072 | ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 9073 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 9074 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 9075 | then |
| 9076 | LINKFORSHARED="-Wl,--export-dynamic" |
| 9077 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9078 | SunOS/5*) case $CC in |
| 9079 | *gcc*) |
Martin v. Löwis | a454857 | 2002-04-18 14:51:36 +0000 | [diff] [blame] | 9080 | if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null |
Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 9081 | then |
| 9082 | LINKFORSHARED="-Xlinker --export-dynamic" |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9083 | fi;; |
| 9084 | esac;; |
Jason Tishler | 3076559 | 2003-09-04 11:04:06 +0000 | [diff] [blame] | 9085 | CYGWIN*) |
| 9086 | if test $enable_shared = "no" |
| 9087 | then |
| 9088 | LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)' |
| 9089 | fi;; |
Benjamin Peterson | de9c869 | 2008-07-01 18:23:09 +0000 | [diff] [blame] | 9090 | QNX*) |
| 9091 | # -Wl,-E causes the symbols to be added to the dynamic |
| 9092 | # symbol table so that they can be found when a module |
| 9093 | # is loaded. -N 2048K causes the stack size to be set |
| 9094 | # to 2048 kilobytes so that the stack doesn't overflow |
| 9095 | # when running test_compile.py. |
| 9096 | LINKFORSHARED='-Wl,-E -N 2048K';; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9097 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9098 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKFORSHARED" >&5 |
| 9100 | $as_echo "$LINKFORSHARED" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9101 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9102 | |
Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 9103 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9104 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGSFORSHARED" >&5 |
| 9105 | $as_echo_n "checking CFLAGSFORSHARED... " >&6; } |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 9106 | if test ! "$LIBRARY" = "$LDLIBRARY" |
| 9107 | then |
Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 +0000 | [diff] [blame] | 9108 | case $ac_sys_system in |
| 9109 | CYGWIN*) |
| 9110 | # Cygwin needs CCSHARED when building extension DLLs |
| 9111 | # but not when building the interpreter DLL. |
| 9112 | CFLAGSFORSHARED='';; |
| 9113 | *) |
| 9114 | CFLAGSFORSHARED='$(CCSHARED)' |
| 9115 | esac |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 9116 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLAGSFORSHARED" >&5 |
| 9118 | $as_echo "$CFLAGSFORSHARED" >&6; } |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 9119 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9120 | # SHLIBS are libraries (except -lc and -lm) to link to the python shared |
| 9121 | # library (with --enable-shared). |
| 9122 | # 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] | 9123 | # symbols, this must be set to $(LIBS) (expanded by make). We do this even |
| 9124 | # if it is not required, since it creates a dependency of the shared library |
| 9125 | # to LIBS. This, in turn, means that applications linking the shared libpython |
| 9126 | # don't need to link LIBS explicitly. The default should be only changed |
| 9127 | # on systems where this approach causes problems. |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9128 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9129 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking SHLIBS" >&5 |
| 9130 | $as_echo_n "checking SHLIBS... " >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9131 | case "$ac_sys_system" in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9132 | *) |
Martin v. Löwis | d6359c5 | 2002-08-04 12:38:50 +0000 | [diff] [blame] | 9133 | SHLIBS='$(LIBS)';; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9134 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIBS" >&5 |
| 9136 | $as_echo "$SHLIBS" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9137 | |
| 9138 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9139 | # checks for libraries |
Georg Brandl | 941f956 | 2011-02-25 15:21:47 +0000 | [diff] [blame] | 9140 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendfile in -lsendfile" >&5 |
| 9141 | $as_echo_n "checking for sendfile in -lsendfile... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9142 | if ${ac_cv_lib_sendfile_sendfile+:} false; then : |
Georg Brandl | 941f956 | 2011-02-25 15:21:47 +0000 | [diff] [blame] | 9143 | $as_echo_n "(cached) " >&6 |
| 9144 | else |
| 9145 | ac_check_lib_save_LIBS=$LIBS |
| 9146 | LIBS="-lsendfile $LIBS" |
| 9147 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9148 | /* end confdefs.h. */ |
| 9149 | |
| 9150 | /* Override any GCC internal prototype to avoid an error. |
| 9151 | Use char because int might match the return type of a GCC |
| 9152 | builtin and then its argument prototype would still apply. */ |
| 9153 | #ifdef __cplusplus |
| 9154 | extern "C" |
| 9155 | #endif |
| 9156 | char sendfile (); |
| 9157 | int |
| 9158 | main () |
| 9159 | { |
| 9160 | return sendfile (); |
| 9161 | ; |
| 9162 | return 0; |
| 9163 | } |
| 9164 | _ACEOF |
| 9165 | if ac_fn_c_try_link "$LINENO"; then : |
| 9166 | ac_cv_lib_sendfile_sendfile=yes |
| 9167 | else |
| 9168 | ac_cv_lib_sendfile_sendfile=no |
| 9169 | fi |
| 9170 | rm -f core conftest.err conftest.$ac_objext \ |
| 9171 | conftest$ac_exeext conftest.$ac_ext |
| 9172 | LIBS=$ac_check_lib_save_LIBS |
| 9173 | fi |
| 9174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sendfile_sendfile" >&5 |
| 9175 | $as_echo "$ac_cv_lib_sendfile_sendfile" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9176 | if test "x$ac_cv_lib_sendfile_sendfile" = xyes; then : |
Georg Brandl | 941f956 | 2011-02-25 15:21:47 +0000 | [diff] [blame] | 9177 | cat >>confdefs.h <<_ACEOF |
| 9178 | #define HAVE_LIBSENDFILE 1 |
| 9179 | _ACEOF |
| 9180 | |
| 9181 | LIBS="-lsendfile $LIBS" |
| 9182 | |
| 9183 | fi |
| 9184 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9185 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| 9186 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9187 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9188 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9189 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9190 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9191 | LIBS="-ldl $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9192 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9193 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9194 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9195 | /* Override any GCC internal prototype to avoid an error. |
| 9196 | Use char because int might match the return type of a GCC |
| 9197 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9198 | #ifdef __cplusplus |
| 9199 | extern "C" |
| 9200 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9201 | char dlopen (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9202 | int |
| 9203 | main () |
| 9204 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9205 | return dlopen (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9206 | ; |
| 9207 | return 0; |
| 9208 | } |
| 9209 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9210 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9211 | ac_cv_lib_dl_dlopen=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9212 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9213 | ac_cv_lib_dl_dlopen=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9214 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9215 | rm -f core conftest.err conftest.$ac_objext \ |
| 9216 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9217 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9218 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| 9220 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9221 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9222 | cat >>confdefs.h <<_ACEOF |
| 9223 | #define HAVE_LIBDL 1 |
| 9224 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9225 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9226 | LIBS="-ldl $LIBS" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 9227 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9228 | fi |
| 9229 | # Dynamic linking for SunOS/Solaris and SYSV |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9230 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
| 9231 | $as_echo_n "checking for shl_load in -ldld... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9232 | if ${ac_cv_lib_dld_shl_load+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9233 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9234 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9235 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9236 | LIBS="-ldld $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9237 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9238 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9239 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9240 | /* Override any GCC internal prototype to avoid an error. |
| 9241 | Use char because int might match the return type of a GCC |
| 9242 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9243 | #ifdef __cplusplus |
| 9244 | extern "C" |
| 9245 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9246 | char shl_load (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9247 | int |
| 9248 | main () |
| 9249 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9250 | return shl_load (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9251 | ; |
| 9252 | return 0; |
| 9253 | } |
| 9254 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9255 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9256 | ac_cv_lib_dld_shl_load=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9257 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9258 | ac_cv_lib_dld_shl_load=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9259 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9260 | rm -f core conftest.err conftest.$ac_objext \ |
| 9261 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9262 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9263 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
| 9265 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9266 | 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] | 9267 | cat >>confdefs.h <<_ACEOF |
| 9268 | #define HAVE_LIBDLD 1 |
| 9269 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9270 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9271 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9272 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9273 | fi |
| 9274 | # Dynamic linking for HP-UX |
Victor Stinner | beeb512 | 2014-11-28 13:28:25 +0100 | [diff] [blame] | 9275 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RAND_egd in -lcrypto" >&5 |
| 9276 | $as_echo_n "checking for RAND_egd in -lcrypto... " >&6; } |
| 9277 | if ${ac_cv_lib_crypto_RAND_egd+:} false; then : |
| 9278 | $as_echo_n "(cached) " >&6 |
| 9279 | else |
| 9280 | ac_check_lib_save_LIBS=$LIBS |
| 9281 | LIBS="-lcrypto $LIBS" |
| 9282 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9283 | /* end confdefs.h. */ |
| 9284 | |
| 9285 | /* Override any GCC internal prototype to avoid an error. |
| 9286 | Use char because int might match the return type of a GCC |
| 9287 | builtin and then its argument prototype would still apply. */ |
| 9288 | #ifdef __cplusplus |
| 9289 | extern "C" |
| 9290 | #endif |
| 9291 | char RAND_egd (); |
| 9292 | int |
| 9293 | main () |
| 9294 | { |
| 9295 | return RAND_egd (); |
| 9296 | ; |
| 9297 | return 0; |
| 9298 | } |
| 9299 | _ACEOF |
| 9300 | if ac_fn_c_try_link "$LINENO"; then : |
| 9301 | ac_cv_lib_crypto_RAND_egd=yes |
| 9302 | else |
| 9303 | ac_cv_lib_crypto_RAND_egd=no |
| 9304 | fi |
| 9305 | rm -f core conftest.err conftest.$ac_objext \ |
| 9306 | conftest$ac_exeext conftest.$ac_ext |
| 9307 | LIBS=$ac_check_lib_save_LIBS |
| 9308 | fi |
| 9309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RAND_egd" >&5 |
| 9310 | $as_echo "$ac_cv_lib_crypto_RAND_egd" >&6; } |
| 9311 | if test "x$ac_cv_lib_crypto_RAND_egd" = xyes; then : |
| 9312 | |
| 9313 | $as_echo "#define HAVE_RAND_EGD 1" >>confdefs.h |
| 9314 | |
| 9315 | fi |
| 9316 | |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 9317 | |
Georg Brandl | b1441c7 | 2009-01-03 22:33:39 +0000 | [diff] [blame] | 9318 | # only check for sem_init if thread support is requested |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 9319 | if test "$with_threads" = "yes" -o -z "$with_threads"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9320 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5 |
| 9321 | $as_echo_n "checking for library containing sem_init... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9322 | if ${ac_cv_search_sem_init+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9323 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9324 | else |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9325 | ac_func_search_save_LIBS=$LIBS |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9326 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9327 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9328 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9329 | /* Override any GCC internal prototype to avoid an error. |
| 9330 | Use char because int might match the return type of a GCC |
| 9331 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9332 | #ifdef __cplusplus |
| 9333 | extern "C" |
| 9334 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9335 | char sem_init (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9336 | int |
| 9337 | main () |
| 9338 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9339 | return sem_init (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9340 | ; |
| 9341 | return 0; |
| 9342 | } |
| 9343 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9344 | for ac_lib in '' pthread rt posix4; do |
| 9345 | if test -z "$ac_lib"; then |
| 9346 | ac_res="none required" |
| 9347 | else |
| 9348 | ac_res=-l$ac_lib |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 9349 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9350 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9351 | if ac_fn_c_try_link "$LINENO"; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9352 | ac_cv_search_sem_init=$ac_res |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9353 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9354 | rm -f core conftest.err conftest.$ac_objext \ |
| 9355 | conftest$ac_exeext |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9356 | if ${ac_cv_search_sem_init+:} false; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9357 | break |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 9358 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9359 | done |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9360 | if ${ac_cv_search_sem_init+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9361 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9362 | else |
| 9363 | ac_cv_search_sem_init=no |
| 9364 | fi |
| 9365 | rm conftest.$ac_ext |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9366 | LIBS=$ac_func_search_save_LIBS |
| 9367 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5 |
| 9369 | $as_echo "$ac_cv_search_sem_init" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9370 | ac_res=$ac_cv_search_sem_init |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9371 | if test "$ac_res" != no; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9372 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9373 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9374 | fi |
Martin v. Löwis | d3545ec | 2003-05-03 11:25:43 +0000 | [diff] [blame] | 9375 | # 'Real Time' functions on Solaris |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 9376 | # posix4 on Solaris 2.6 |
| 9377 | # pthread (first!) on Linux |
| 9378 | fi |
| 9379 | |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9380 | # check if we need libintl for locale functions |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9381 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for textdomain in -lintl" >&5 |
| 9382 | $as_echo_n "checking for textdomain in -lintl... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9383 | if ${ac_cv_lib_intl_textdomain+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9384 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9385 | else |
| 9386 | ac_check_lib_save_LIBS=$LIBS |
| 9387 | LIBS="-lintl $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9388 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9389 | /* end confdefs.h. */ |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9390 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9391 | /* Override any GCC internal prototype to avoid an error. |
| 9392 | Use char because int might match the return type of a GCC |
| 9393 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9394 | #ifdef __cplusplus |
| 9395 | extern "C" |
| 9396 | #endif |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9397 | char textdomain (); |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9398 | int |
| 9399 | main () |
| 9400 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9401 | return textdomain (); |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9402 | ; |
| 9403 | return 0; |
| 9404 | } |
| 9405 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9406 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9407 | ac_cv_lib_intl_textdomain=yes |
| 9408 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9409 | ac_cv_lib_intl_textdomain=no |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9410 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9411 | rm -f core conftest.err conftest.$ac_objext \ |
| 9412 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9413 | LIBS=$ac_check_lib_save_LIBS |
| 9414 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_textdomain" >&5 |
| 9416 | $as_echo "$ac_cv_lib_intl_textdomain" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9417 | if test "x$ac_cv_lib_intl_textdomain" = xyes; then : |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9418 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9419 | $as_echo "#define WITH_LIBINTL 1" >>confdefs.h |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9420 | |
Brett Cannon | c6d936e | 2009-06-07 20:09:53 +0000 | [diff] [blame] | 9421 | LIBS="-lintl $LIBS" |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9422 | fi |
| 9423 | |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9424 | |
| 9425 | # checks for system dependent C++ extensions support |
| 9426 | case "$ac_sys_system" in |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9427 | AIX*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for genuine AIX C++ extensions support" >&5 |
| 9428 | $as_echo_n "checking for genuine AIX C++ extensions support... " >&6; } |
| 9429 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9430 | /* end confdefs.h. */ |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9431 | |
Georg Brandl | 59e87bd | 2011-02-15 19:48:59 +0000 | [diff] [blame] | 9432 | #include <load.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9433 | int |
| 9434 | main () |
| 9435 | { |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9436 | loadAndInit("", 0, "") |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9437 | ; |
| 9438 | return 0; |
| 9439 | } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9440 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9441 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9442 | if ac_fn_c_try_link "$LINENO"; then : |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9443 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9444 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9445 | $as_echo "#define AIX_GENUINE_CPLUSPLUS 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9446 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9448 | $as_echo "yes" >&6; } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9449 | |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9450 | else |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9451 | |
| 9452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9453 | $as_echo "no" >&6; } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9454 | |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9455 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9456 | rm -f core conftest.err conftest.$ac_objext \ |
| 9457 | conftest$ac_exeext conftest.$ac_ext;; |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9458 | *) ;; |
| 9459 | esac |
| 9460 | |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 9461 | # check for systems that require aligned memory access |
| 9462 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking aligned memory access is required" >&5 |
| 9463 | $as_echo_n "checking aligned memory access is required... " >&6; } |
| 9464 | if test "$cross_compiling" = yes; then : |
| 9465 | aligned_required=yes |
| 9466 | else |
| 9467 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9468 | /* end confdefs.h. */ |
| 9469 | |
| 9470 | int main() |
| 9471 | { |
| 9472 | char s[16]; |
| 9473 | int i, *p1, *p2; |
| 9474 | for (i=0; i < 16; i++) |
| 9475 | s[i] = i; |
| 9476 | p1 = (int*)(s+1); |
| 9477 | p2 = (int*)(s+2); |
| 9478 | if (*p1 == *p2) |
| 9479 | return 1; |
| 9480 | return 0; |
| 9481 | } |
| 9482 | |
| 9483 | _ACEOF |
| 9484 | if ac_fn_c_try_run "$LINENO"; then : |
| 9485 | aligned_required=no |
| 9486 | else |
| 9487 | aligned_required=yes |
| 9488 | fi |
| 9489 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 9490 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 9491 | fi |
| 9492 | |
| 9493 | |
| 9494 | if test "$aligned_required" = yes ; then |
| 9495 | |
| 9496 | $as_echo "#define HAVE_ALIGNED_REQUIRED 1" >>confdefs.h |
| 9497 | |
| 9498 | fi |
| 9499 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aligned_required" >&5 |
| 9500 | $as_echo "$aligned_required" >&6; } |
| 9501 | |
| 9502 | |
| 9503 | # str, bytes and memoryview hash algorithm |
| 9504 | |
| 9505 | |
| 9506 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-hash-algorithm" >&5 |
| 9507 | $as_echo_n "checking for --with-hash-algorithm... " >&6; } |
| 9508 | |
| 9509 | # Check whether --with-hash_algorithm was given. |
| 9510 | if test "${with_hash_algorithm+set}" = set; then : |
| 9511 | withval=$with_hash_algorithm; |
| 9512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 |
| 9513 | $as_echo "$withval" >&6; } |
| 9514 | case "$withval" in |
| 9515 | siphash24) |
| 9516 | $as_echo "#define Py_HASH_ALGORITHM 1" >>confdefs.h |
| 9517 | |
| 9518 | ;; |
| 9519 | fnv) |
| 9520 | $as_echo "#define Py_HASH_ALGORITHM 2" >>confdefs.h |
| 9521 | |
| 9522 | ;; |
| 9523 | *) |
| 9524 | as_fn_error $? "unknown hash algorithm '$withval'" "$LINENO" 5 |
| 9525 | ;; |
| 9526 | esac |
| 9527 | |
| 9528 | else |
| 9529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: default" >&5 |
| 9530 | $as_echo "default" >&6; } |
| 9531 | fi |
| 9532 | |
| 9533 | |
Charles-François Natali | d30b022 | 2014-05-08 23:08:51 +0100 | [diff] [blame] | 9534 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-address-sanitizer" >&5 |
| 9535 | $as_echo_n "checking for --with-address-sanitizer... " >&6; } |
| 9536 | |
| 9537 | # Check whether --with-address_sanitizer was given. |
| 9538 | if test "${with_address_sanitizer+set}" = set; then : |
| 9539 | withval=$with_address_sanitizer; |
| 9540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 |
| 9541 | $as_echo "$withval" >&6; } |
| 9542 | BASECFLAGS="-fsanitize=address -fno-omit-frame-pointer $BASECFLAGS" |
| 9543 | LDFLAGS="-fsanitize=address $LDFLAGS" |
| 9544 | |
| 9545 | else |
| 9546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9547 | $as_echo "no" >&6; } |
| 9548 | fi |
| 9549 | |
| 9550 | |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 9551 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9552 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_open in -lnsl" >&5 |
| 9553 | $as_echo_n "checking for t_open in -lnsl... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9554 | if ${ac_cv_lib_nsl_t_open+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9555 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9556 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9557 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9558 | LIBS="-lnsl $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9559 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9560 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9561 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9562 | /* Override any GCC internal prototype to avoid an error. |
| 9563 | Use char because int might match the return type of a GCC |
| 9564 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9565 | #ifdef __cplusplus |
| 9566 | extern "C" |
| 9567 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9568 | char t_open (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9569 | int |
| 9570 | main () |
| 9571 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9572 | return t_open (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9573 | ; |
| 9574 | return 0; |
| 9575 | } |
| 9576 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9577 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9578 | ac_cv_lib_nsl_t_open=yes |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9579 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9580 | ac_cv_lib_nsl_t_open=no |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9581 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9582 | rm -f core conftest.err conftest.$ac_objext \ |
| 9583 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9584 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9585 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_t_open" >&5 |
| 9587 | $as_echo "$ac_cv_lib_nsl_t_open" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9588 | if test "x$ac_cv_lib_nsl_t_open" = xyes; then : |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9589 | LIBS="-lnsl $LIBS" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9590 | fi |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 9591 | # SVR4 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9592 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 |
| 9593 | $as_echo_n "checking for socket in -lsocket... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9594 | if ${ac_cv_lib_socket_socket+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9595 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9596 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9597 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9598 | LIBS="-lsocket $LIBS $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9599 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9600 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9601 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9602 | /* Override any GCC internal prototype to avoid an error. |
| 9603 | Use char because int might match the return type of a GCC |
| 9604 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9605 | #ifdef __cplusplus |
| 9606 | extern "C" |
| 9607 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9608 | char socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9609 | int |
| 9610 | main () |
| 9611 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9612 | return socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9613 | ; |
| 9614 | return 0; |
| 9615 | } |
| 9616 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9617 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9618 | ac_cv_lib_socket_socket=yes |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9619 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9620 | ac_cv_lib_socket_socket=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9621 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9622 | rm -f core conftest.err conftest.$ac_objext \ |
| 9623 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9624 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9625 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 |
| 9627 | $as_echo "$ac_cv_lib_socket_socket" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9628 | if test "x$ac_cv_lib_socket_socket" = xyes; then : |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9629 | LIBS="-lsocket $LIBS" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9630 | fi |
| 9631 | # SVR4 sockets |
Skip Montanaro | b9949db | 2004-01-17 04:04:13 +0000 | [diff] [blame] | 9632 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9633 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libs" >&5 |
| 9634 | $as_echo_n "checking for --with-libs... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9635 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9636 | # Check whether --with-libs was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9637 | if test "${with_libs+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9638 | withval=$with_libs; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 |
| 9640 | $as_echo "$withval" >&6; } |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 9641 | LIBS="$withval $LIBS" |
| 9642 | |
| 9643 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9645 | $as_echo "no" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9646 | fi |
| 9647 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 9648 | |
Victor Stinner | 8291b5e | 2015-03-20 16:03:14 +0100 | [diff] [blame] | 9649 | |
| 9650 | |
| 9651 | |
| 9652 | |
| 9653 | |
| 9654 | |
| 9655 | |
| 9656 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
| 9657 | if test -n "$ac_tool_prefix"; then |
| 9658 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 9659 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
| 9660 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9661 | $as_echo_n "checking for $ac_word... " >&6; } |
| 9662 | if ${ac_cv_path_PKG_CONFIG+:} false; then : |
| 9663 | $as_echo_n "(cached) " >&6 |
| 9664 | else |
| 9665 | case $PKG_CONFIG in |
| 9666 | [\\/]* | ?:[\\/]*) |
| 9667 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 9668 | ;; |
| 9669 | *) |
| 9670 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9671 | for as_dir in $PATH |
| 9672 | do |
| 9673 | IFS=$as_save_IFS |
| 9674 | test -z "$as_dir" && as_dir=. |
| 9675 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9676 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 9677 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 9678 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9679 | break 2 |
| 9680 | fi |
| 9681 | done |
| 9682 | done |
| 9683 | IFS=$as_save_IFS |
| 9684 | |
| 9685 | ;; |
| 9686 | esac |
| 9687 | fi |
| 9688 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 9689 | if test -n "$PKG_CONFIG"; then |
| 9690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
| 9691 | $as_echo "$PKG_CONFIG" >&6; } |
| 9692 | else |
| 9693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9694 | $as_echo "no" >&6; } |
| 9695 | fi |
| 9696 | |
| 9697 | |
| 9698 | fi |
| 9699 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 9700 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 9701 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 9702 | set dummy pkg-config; ac_word=$2 |
| 9703 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9704 | $as_echo_n "checking for $ac_word... " >&6; } |
| 9705 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : |
| 9706 | $as_echo_n "(cached) " >&6 |
| 9707 | else |
| 9708 | case $ac_pt_PKG_CONFIG in |
| 9709 | [\\/]* | ?:[\\/]*) |
| 9710 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 9711 | ;; |
| 9712 | *) |
| 9713 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9714 | for as_dir in $PATH |
| 9715 | do |
| 9716 | IFS=$as_save_IFS |
| 9717 | test -z "$as_dir" && as_dir=. |
| 9718 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9719 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 9720 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 9721 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9722 | break 2 |
| 9723 | fi |
| 9724 | done |
| 9725 | done |
| 9726 | IFS=$as_save_IFS |
| 9727 | |
| 9728 | ;; |
| 9729 | esac |
| 9730 | fi |
| 9731 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 9732 | if test -n "$ac_pt_PKG_CONFIG"; then |
| 9733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
| 9734 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } |
| 9735 | else |
| 9736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9737 | $as_echo "no" >&6; } |
| 9738 | fi |
| 9739 | |
| 9740 | if test "x$ac_pt_PKG_CONFIG" = x; then |
| 9741 | PKG_CONFIG="" |
| 9742 | else |
| 9743 | case $cross_compiling:$ac_tool_warned in |
| 9744 | yes:) |
| 9745 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 9746 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 9747 | ac_tool_warned=yes ;; |
| 9748 | esac |
| 9749 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 9750 | fi |
| 9751 | else |
| 9752 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 9753 | fi |
| 9754 | |
| 9755 | fi |
| 9756 | if test -n "$PKG_CONFIG"; then |
| 9757 | _pkg_min_version=0.9.0 |
| 9758 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 |
| 9759 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } |
| 9760 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
| 9761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 9762 | $as_echo "yes" >&6; } |
| 9763 | else |
| 9764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9765 | $as_echo "no" >&6; } |
| 9766 | PKG_CONFIG="" |
| 9767 | fi |
| 9768 | fi |
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 9769 | |
| 9770 | # Check for use of the system expat library |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9771 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-expat" >&5 |
| 9772 | $as_echo_n "checking for --with-system-expat... " >&6; } |
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 9773 | |
| 9774 | # Check whether --with-system_expat was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9775 | if test "${with_system_expat+set}" = set; then : |
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 9776 | withval=$with_system_expat; |
Benjamin Peterson | 7926325 | 2010-10-31 16:50:44 +0000 | [diff] [blame] | 9777 | else |
| 9778 | with_system_expat="no" |
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 9779 | fi |
| 9780 | |
| 9781 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_expat" >&5 |
| 9783 | $as_echo "$with_system_expat" >&6; } |
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 9784 | |
| 9785 | # Check for use of the system libffi library |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9786 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-ffi" >&5 |
| 9787 | $as_echo_n "checking for --with-system-ffi... " >&6; } |
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 9788 | |
| 9789 | # Check whether --with-system_ffi was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9790 | if test "${with_system_ffi+set}" = set; then : |
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 9791 | withval=$with_system_ffi; |
Benjamin Peterson | 7926325 | 2010-10-31 16:50:44 +0000 | [diff] [blame] | 9792 | else |
| 9793 | with_system_ffi="no" |
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 9794 | fi |
| 9795 | |
| 9796 | |
| 9797 | if test "$with_system_ffi" = "yes" && test -n "$PKG_CONFIG"; then |
Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 9798 | LIBFFI_INCLUDEDIR="`"$PKG_CONFIG" libffi --cflags-only-I 2>/dev/null | sed -e 's/^-I//;s/ *$//'`" |
| 9799 | else |
| 9800 | LIBFFI_INCLUDEDIR="" |
| 9801 | fi |
| 9802 | |
| 9803 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_ffi" >&5 |
| 9805 | $as_echo "$with_system_ffi" >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 9806 | |
Stefan Krah | 60187b5 | 2012-03-23 19:06:27 +0100 | [diff] [blame] | 9807 | # Check for use of the system libmpdec library |
| 9808 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-libmpdec" >&5 |
| 9809 | $as_echo_n "checking for --with-system-libmpdec... " >&6; } |
| 9810 | |
| 9811 | # Check whether --with-system_libmpdec was given. |
| 9812 | if test "${with_system_libmpdec+set}" = set; then : |
| 9813 | withval=$with_system_libmpdec; |
| 9814 | else |
| 9815 | with_system_libmpdec="no" |
| 9816 | fi |
| 9817 | |
| 9818 | |
| 9819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_libmpdec" >&5 |
| 9820 | $as_echo "$with_system_libmpdec" >&6; } |
| 9821 | |
Benjamin Peterson | 076ed00 | 2010-10-31 17:11:02 +0000 | [diff] [blame] | 9822 | # Check for support for loadable sqlite extensions |
| 9823 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-loadable-sqlite-extensions" >&5 |
| 9824 | $as_echo_n "checking for --enable-loadable-sqlite-extensions... " >&6; } |
| 9825 | # Check whether --enable-loadable-sqlite-extensions was given. |
| 9826 | if test "${enable_loadable_sqlite_extensions+set}" = set; then : |
| 9827 | enableval=$enable_loadable_sqlite_extensions; |
| 9828 | else |
| 9829 | enable_loadable_sqlite_extensions="no" |
| 9830 | fi |
| 9831 | |
| 9832 | |
| 9833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_loadable_sqlite_extensions" >&5 |
| 9834 | $as_echo "$enable_loadable_sqlite_extensions" >&6; } |
| 9835 | |
Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 9836 | # Check for --with-tcltk-includes=path and --with-tcltk-libs=path |
| 9837 | |
| 9838 | |
| 9839 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tcltk-includes" >&5 |
| 9840 | $as_echo_n "checking for --with-tcltk-includes... " >&6; } |
| 9841 | |
| 9842 | # Check whether --with-tcltk-includes was given. |
| 9843 | if test "${with_tcltk_includes+set}" = set; then : |
| 9844 | withval=$with_tcltk_includes; |
| 9845 | else |
| 9846 | with_tcltk_includes="default" |
| 9847 | fi |
| 9848 | |
| 9849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcltk_includes" >&5 |
| 9850 | $as_echo "$with_tcltk_includes" >&6; } |
| 9851 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tcltk-libs" >&5 |
| 9852 | $as_echo_n "checking for --with-tcltk-libs... " >&6; } |
| 9853 | |
| 9854 | # Check whether --with-tcltk-libs was given. |
| 9855 | if test "${with_tcltk_libs+set}" = set; then : |
| 9856 | withval=$with_tcltk_libs; |
| 9857 | else |
| 9858 | with_tcltk_libs="default" |
| 9859 | fi |
| 9860 | |
| 9861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcltk_libs" >&5 |
| 9862 | $as_echo "$with_tcltk_libs" >&6; } |
| 9863 | if test "x$with_tcltk_includes" = xdefault || test "x$with_tcltk_libs" = xdefault |
| 9864 | then |
| 9865 | if test "x$with_tcltk_includes" != "x$with_tcltk_libs" |
| 9866 | then |
| 9867 | as_fn_error $? "use both --with-tcltk-includes='...' and --with-tcltk-libs='...' or neither" "$LINENO" 5 |
| 9868 | fi |
| 9869 | TCLTK_INCLUDES="" |
| 9870 | TCLTK_LIBS="" |
| 9871 | else |
| 9872 | TCLTK_INCLUDES="$with_tcltk_includes" |
| 9873 | TCLTK_LIBS="$with_tcltk_libs" |
| 9874 | fi |
| 9875 | |
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 9876 | # Check for --with-dbmliborder |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9877 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dbmliborder" >&5 |
| 9878 | $as_echo_n "checking for --with-dbmliborder... " >&6; } |
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 9879 | |
| 9880 | # Check whether --with-dbmliborder was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9881 | if test "${with_dbmliborder+set}" = set; then : |
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 9882 | withval=$with_dbmliborder; |
| 9883 | if test x$with_dbmliborder = xyes |
| 9884 | then |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 9885 | as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5 |
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 9886 | else |
| 9887 | for db in `echo $with_dbmliborder | sed 's/:/ /g'`; do |
| 9888 | if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb |
| 9889 | then |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 9890 | as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5 |
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 9891 | fi |
| 9892 | done |
| 9893 | fi |
| 9894 | fi |
| 9895 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_dbmliborder" >&5 |
| 9897 | $as_echo "$with_dbmliborder" >&6; } |
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 9898 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 9899 | # Determine if signalmodule should be used. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 9900 | |
| 9901 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9902 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-signal-module" >&5 |
| 9903 | $as_echo_n "checking for --with-signal-module... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9904 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9905 | # Check whether --with-signal-module was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9906 | if test "${with_signal_module+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9907 | withval=$with_signal_module; |
| 9908 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 9909 | |
| 9910 | |
| 9911 | if test -z "$with_signal_module" |
| 9912 | then with_signal_module="yes" |
| 9913 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_signal_module" >&5 |
| 9915 | $as_echo "$with_signal_module" >&6; } |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 9916 | |
| 9917 | if test "${with_signal_module}" = "yes"; then |
| 9918 | USE_SIGNAL_MODULE="" |
| 9919 | SIGNAL_OBJS="" |
| 9920 | else |
| 9921 | USE_SIGNAL_MODULE="#" |
| 9922 | SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o" |
| 9923 | fi |
| 9924 | |
Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 9925 | # This is used to generate Setup.config |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 9926 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9927 | USE_THREAD_MODULE="" |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 9928 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9929 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9930 | |
| 9931 | # Templates for things AC_DEFINEd more than once. |
| 9932 | # For a single AC_DEFINE, no template is needed. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9933 | |
| 9934 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9935 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9936 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-threads" >&5 |
| 9937 | $as_echo_n "checking for --with-threads... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9938 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9939 | # Check whether --with-threads was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9940 | if test "${with_threads+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9941 | withval=$with_threads; |
| 9942 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9943 | |
| 9944 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9945 | # --with-thread is deprecated, but check for it anyway |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9946 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9947 | # Check whether --with-thread was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9948 | if test "${with_thread+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9949 | withval=$with_thread; with_threads=$with_thread |
| 9950 | fi |
| 9951 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9952 | |
| 9953 | if test -z "$with_threads" |
| 9954 | then with_threads="yes" |
| 9955 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_threads" >&5 |
| 9957 | $as_echo "$with_threads" >&6; } |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9958 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9959 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9960 | if test "$with_threads" = "no" |
| 9961 | then |
| 9962 | USE_THREAD_MODULE="#" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9963 | elif test "$ac_cv_pthread_is_default" = yes |
| 9964 | then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9965 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9966 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9967 | # Defining _REENTRANT on system with POSIX threads should not hurt. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9968 | $as_echo "#define _REENTRANT 1" >>confdefs.h |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9969 | |
| 9970 | posix_threads=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9971 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9972 | elif test "$ac_cv_kpthread" = "yes" |
| 9973 | then |
| 9974 | CC="$CC -Kpthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 9975 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 9976 | CXX="$CXX -Kpthread" |
| 9977 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9978 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 9979 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 9980 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9981 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 9982 | elif test "$ac_cv_kthread" = "yes" |
| 9983 | then |
| 9984 | CC="$CC -Kthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 9985 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 9986 | CXX="$CXX -Kthread" |
| 9987 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9988 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 9989 | |
| 9990 | posix_threads=yes |
| 9991 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9992 | elif test "$ac_cv_pthread" = "yes" |
| 9993 | then |
| 9994 | CC="$CC -pthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 9995 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 9996 | CXX="$CXX -pthread" |
| 9997 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9998 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9999 | |
| 10000 | posix_threads=yes |
| 10001 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10002 | else |
| 10003 | if test ! -z "$with_threads" -a -d "$with_threads" |
| 10004 | then LDFLAGS="$LDFLAGS -L$with_threads" |
| 10005 | fi |
| 10006 | if test ! -z "$withval" -a -d "$withval" |
| 10007 | then LDFLAGS="$LDFLAGS -L$withval" |
| 10008 | fi |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10009 | |
| 10010 | # According to the POSIX spec, a pthreads implementation must |
Matthias Klose | a2542be | 2004-08-16 11:35:51 +0000 | [diff] [blame] | 10011 | # define _POSIX_THREADS in unistd.h. Some apparently don't |
| 10012 | # (e.g. gnu pth with pthread emulation) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10013 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _POSIX_THREADS in unistd.h" >&5 |
| 10014 | $as_echo_n "checking for _POSIX_THREADS in unistd.h... " >&6; } |
| 10015 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10016 | /* end confdefs.h. */ |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 10017 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10018 | #include <unistd.h> |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 10019 | #ifdef _POSIX_THREADS |
| 10020 | yes |
| 10021 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10022 | |
| 10023 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10024 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10025 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10026 | unistd_defines_pthreads=yes |
| 10027 | else |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10028 | unistd_defines_pthreads=no |
| 10029 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 10030 | rm -f conftest* |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10031 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unistd_defines_pthreads" >&5 |
| 10033 | $as_echo "$unistd_defines_pthreads" >&6; } |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10034 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10035 | $as_echo "#define _REENTRANT 1" >>confdefs.h |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 10036 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10037 | # Just looking for pthread_create in libpthread is not enough: |
| 10038 | # on HP/UX, pthread.h renames pthread_create to a different symbol name. |
| 10039 | # So we really have to include pthread.h, and then link. |
| 10040 | _libs=$LIBS |
| 10041 | LIBS="$LIBS -lpthread" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10042 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 |
| 10043 | $as_echo_n "checking for pthread_create in -lpthread... " >&6; } |
| 10044 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10045 | /* end confdefs.h. */ |
Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 10046 | |
| 10047 | #include <stdio.h> |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10048 | #include <pthread.h> |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10049 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10050 | void * start_routine (void *arg) { exit (0); } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10051 | int |
| 10052 | main () |
| 10053 | { |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10054 | |
| 10055 | pthread_create (NULL, NULL, start_routine, NULL) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10056 | ; |
| 10057 | return 0; |
| 10058 | } |
| 10059 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10060 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10061 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 10063 | $as_echo "yes" >&6; } |
| 10064 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10065 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10066 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10067 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10068 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10069 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10070 | LIBS=$_libs |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10071 | 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] | 10072 | if test "x$ac_cv_func_pthread_detach" = xyes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10073 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10074 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10075 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10076 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10077 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10078 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10079 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5 |
| 10080 | $as_echo_n "checking for pthread_create in -lpthreads... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10081 | if ${ac_cv_lib_pthreads_pthread_create+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10082 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10083 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10084 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10085 | LIBS="-lpthreads $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10086 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10087 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10088 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10089 | /* Override any GCC internal prototype to avoid an error. |
| 10090 | Use char because int might match the return type of a GCC |
| 10091 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10092 | #ifdef __cplusplus |
| 10093 | extern "C" |
| 10094 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10095 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10096 | int |
| 10097 | main () |
| 10098 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10099 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10100 | ; |
| 10101 | return 0; |
| 10102 | } |
| 10103 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10104 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10105 | ac_cv_lib_pthreads_pthread_create=yes |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10106 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10107 | ac_cv_lib_pthreads_pthread_create=no |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10108 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10109 | rm -f core conftest.err conftest.$ac_objext \ |
| 10110 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10111 | LIBS=$ac_check_lib_save_LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10112 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5 |
| 10114 | $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10115 | if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10116 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10117 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10118 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10119 | LIBS="$LIBS -lpthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10120 | THREADOBJ="Python/thread.o" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10121 | else |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10122 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10123 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5 |
| 10124 | $as_echo_n "checking for pthread_create in -lc_r... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10125 | if ${ac_cv_lib_c_r_pthread_create+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10126 | $as_echo_n "(cached) " >&6 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10127 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10128 | ac_check_lib_save_LIBS=$LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10129 | LIBS="-lc_r $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10130 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10131 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10132 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10133 | /* Override any GCC internal prototype to avoid an error. |
| 10134 | Use char because int might match the return type of a GCC |
| 10135 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10136 | #ifdef __cplusplus |
| 10137 | extern "C" |
| 10138 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10139 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10140 | int |
| 10141 | main () |
| 10142 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10143 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10144 | ; |
| 10145 | return 0; |
| 10146 | } |
| 10147 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10148 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10149 | ac_cv_lib_c_r_pthread_create=yes |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10150 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10151 | ac_cv_lib_c_r_pthread_create=no |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10152 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10153 | rm -f core conftest.err conftest.$ac_objext \ |
| 10154 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10155 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10156 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5 |
| 10158 | $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10159 | if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10160 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10161 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10162 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10163 | LIBS="$LIBS -lc_r" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10164 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10165 | else |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10166 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10167 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __pthread_create_system in -lpthread" >&5 |
| 10168 | $as_echo_n "checking for __pthread_create_system in -lpthread... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10169 | if ${ac_cv_lib_pthread___pthread_create_system+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10170 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10171 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10172 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10173 | LIBS="-lpthread $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10174 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10175 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10176 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10177 | /* Override any GCC internal prototype to avoid an error. |
| 10178 | Use char because int might match the return type of a GCC |
| 10179 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10180 | #ifdef __cplusplus |
| 10181 | extern "C" |
| 10182 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10183 | char __pthread_create_system (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10184 | int |
| 10185 | main () |
| 10186 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10187 | return __pthread_create_system (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10188 | ; |
| 10189 | return 0; |
| 10190 | } |
| 10191 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10192 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10193 | ac_cv_lib_pthread___pthread_create_system=yes |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10194 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10195 | ac_cv_lib_pthread___pthread_create_system=no |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10196 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10197 | rm -f core conftest.err conftest.$ac_objext \ |
| 10198 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10199 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10200 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_create_system" >&5 |
| 10202 | $as_echo "$ac_cv_lib_pthread___pthread_create_system" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10203 | if test "x$ac_cv_lib_pthread___pthread_create_system" = xyes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10204 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10205 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10206 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10207 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10208 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10209 | else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10210 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10211 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lcma" >&5 |
| 10212 | $as_echo_n "checking for pthread_create in -lcma... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10213 | if ${ac_cv_lib_cma_pthread_create+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10214 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10215 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10216 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10217 | LIBS="-lcma $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10218 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10219 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10220 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10221 | /* Override any GCC internal prototype to avoid an error. |
| 10222 | Use char because int might match the return type of a GCC |
| 10223 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10224 | #ifdef __cplusplus |
| 10225 | extern "C" |
| 10226 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10227 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10228 | int |
| 10229 | main () |
| 10230 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10231 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10232 | ; |
| 10233 | return 0; |
| 10234 | } |
| 10235 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10236 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10237 | ac_cv_lib_cma_pthread_create=yes |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10238 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10239 | ac_cv_lib_cma_pthread_create=no |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10240 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10241 | rm -f core conftest.err conftest.$ac_objext \ |
| 10242 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10243 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10244 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cma_pthread_create" >&5 |
| 10246 | $as_echo "$ac_cv_lib_cma_pthread_create" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10247 | if test "x$ac_cv_lib_cma_pthread_create" = xyes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10248 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10249 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10250 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10251 | LIBS="$LIBS -lcma" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10252 | THREADOBJ="Python/thread.o" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10253 | else |
Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 10254 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10255 | USE_THREAD_MODULE="#" |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 10256 | fi |
| 10257 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10258 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10259 | fi |
| 10260 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 10261 | fi |
| 10262 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10263 | fi |
| 10264 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10265 | fi |
| 10266 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10267 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10268 | rm -f core conftest.err conftest.$ac_objext \ |
| 10269 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10270 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10271 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usconfig in -lmpc" >&5 |
| 10272 | $as_echo_n "checking for usconfig in -lmpc... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10273 | if ${ac_cv_lib_mpc_usconfig+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10274 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10275 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10276 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10277 | LIBS="-lmpc $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10278 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10279 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10280 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10281 | /* Override any GCC internal prototype to avoid an error. |
| 10282 | Use char because int might match the return type of a GCC |
| 10283 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10284 | #ifdef __cplusplus |
| 10285 | extern "C" |
| 10286 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10287 | char usconfig (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10288 | int |
| 10289 | main () |
| 10290 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10291 | return usconfig (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10292 | ; |
| 10293 | return 0; |
| 10294 | } |
| 10295 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10296 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10297 | ac_cv_lib_mpc_usconfig=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10298 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10299 | ac_cv_lib_mpc_usconfig=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10300 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10301 | rm -f core conftest.err conftest.$ac_objext \ |
| 10302 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10303 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10304 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpc_usconfig" >&5 |
| 10306 | $as_echo "$ac_cv_lib_mpc_usconfig" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10307 | if test "x$ac_cv_lib_mpc_usconfig" = xyes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10308 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10309 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10310 | LIBS="$LIBS -lmpc" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10311 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10312 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10313 | fi |
| 10314 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 10315 | |
Neal Norwitz | a978ab0 | 2002-11-02 16:58:05 +0000 | [diff] [blame] | 10316 | if test "$posix_threads" != "yes"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10317 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5 |
| 10318 | $as_echo_n "checking for thr_create in -lthread... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10319 | if ${ac_cv_lib_thread_thr_create+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10320 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10321 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10322 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10323 | LIBS="-lthread $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10324 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10325 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10326 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10327 | /* Override any GCC internal prototype to avoid an error. |
| 10328 | Use char because int might match the return type of a GCC |
| 10329 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10330 | #ifdef __cplusplus |
| 10331 | extern "C" |
| 10332 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10333 | char thr_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10334 | int |
| 10335 | main () |
| 10336 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10337 | return thr_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10338 | ; |
| 10339 | return 0; |
| 10340 | } |
| 10341 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10342 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10343 | ac_cv_lib_thread_thr_create=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10344 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10345 | ac_cv_lib_thread_thr_create=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10346 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10347 | rm -f core conftest.err conftest.$ac_objext \ |
| 10348 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10349 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10350 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5 |
| 10352 | $as_echo "$ac_cv_lib_thread_thr_create" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10353 | if test "x$ac_cv_lib_thread_thr_create" = xyes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10354 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10355 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 10356 | LIBS="$LIBS -lthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10357 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 10358 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10359 | fi |
| 10360 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 10361 | fi |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10362 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 10363 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10364 | if test "$posix_threads" = "yes"; then |
| 10365 | if test "$unistd_defines_pthreads" = "no"; then |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 10366 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10367 | $as_echo "#define _POSIX_THREADS 1" >>confdefs.h |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10368 | |
| 10369 | fi |
| 10370 | |
| 10371 | # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8. |
| 10372 | case $ac_sys_system/$ac_sys_release in |
Charles-François Natali | 996f606 | 2011-07-21 19:45:31 +0200 | [diff] [blame] | 10373 | SunOS/5.6) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10374 | $as_echo "#define HAVE_PTHREAD_DESTRUCTOR 1" >>confdefs.h |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 10375 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10376 | ;; |
| 10377 | SunOS/5.8) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10378 | $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10379 | |
| 10380 | ;; |
Charles-François Natali | 996f606 | 2011-07-21 19:45:31 +0200 | [diff] [blame] | 10381 | AIX/*) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10382 | $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h |
Christian Heimes | 7b3ce6a | 2008-01-31 14:31:45 +0000 | [diff] [blame] | 10383 | |
| 10384 | ;; |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10385 | esac |
| 10386 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10387 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 |
| 10388 | $as_echo_n "checking if PTHREAD_SCOPE_SYSTEM is supported... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10389 | if ${ac_cv_pthread_system_supported+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10390 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10391 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10392 | if test "$cross_compiling" = yes; then : |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10393 | ac_cv_pthread_system_supported=no |
| 10394 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10395 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10396 | /* end confdefs.h. */ |
Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 10397 | |
| 10398 | #include <stdio.h> |
| 10399 | #include <pthread.h> |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10400 | void *foo(void *parm) { |
| 10401 | return NULL; |
| 10402 | } |
| 10403 | main() { |
| 10404 | pthread_attr_t attr; |
| 10405 | pthread_t id; |
| 10406 | if (pthread_attr_init(&attr)) exit(-1); |
| 10407 | if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1); |
| 10408 | if (pthread_create(&id, &attr, foo, NULL)) exit(-1); |
| 10409 | exit(0); |
| 10410 | } |
| 10411 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10412 | if ac_fn_c_try_run "$LINENO"; then : |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10413 | ac_cv_pthread_system_supported=yes |
| 10414 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10415 | ac_cv_pthread_system_supported=no |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10416 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10417 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 10418 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10419 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 10420 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10421 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10422 | fi |
| 10423 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_system_supported" >&5 |
| 10425 | $as_echo "$ac_cv_pthread_system_supported" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10426 | if test "$ac_cv_pthread_system_supported" = "yes"; then |
| 10427 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10428 | $as_echo "#define PTHREAD_SYSTEM_SCHED_SUPPORTED 1" >>confdefs.h |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10429 | |
| 10430 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10431 | for ac_func in pthread_sigmask |
| 10432 | do : |
| 10433 | 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] | 10434 | if test "x$ac_cv_func_pthread_sigmask" = xyes; then : |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10435 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10436 | #define HAVE_PTHREAD_SIGMASK 1 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10437 | _ACEOF |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 10438 | case $ac_sys_system in |
| 10439 | CYGWIN*) |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10440 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10441 | $as_echo "#define HAVE_BROKEN_PTHREAD_SIGMASK 1" >>confdefs.h |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 10442 | |
| 10443 | ;; |
| 10444 | esac |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10445 | fi |
| 10446 | done |
| 10447 | |
Christian Heimes | f77b4b2 | 2013-08-21 13:26:05 +0200 | [diff] [blame] | 10448 | for ac_func in pthread_atfork |
| 10449 | do : |
| 10450 | ac_fn_c_check_func "$LINENO" "pthread_atfork" "ac_cv_func_pthread_atfork" |
| 10451 | if test "x$ac_cv_func_pthread_atfork" = xyes; then : |
| 10452 | cat >>confdefs.h <<_ACEOF |
| 10453 | #define HAVE_PTHREAD_ATFORK 1 |
| 10454 | _ACEOF |
| 10455 | |
| 10456 | fi |
| 10457 | done |
| 10458 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10459 | fi |
| 10460 | |
| 10461 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10462 | # Check for enable-ipv6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10463 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10464 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-ipv6 is specified" >&5 |
| 10465 | $as_echo_n "checking if --enable-ipv6 is specified... " >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10466 | # Check whether --enable-ipv6 was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10467 | if test "${enable_ipv6+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10468 | enableval=$enable_ipv6; case "$enableval" in |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10469 | no) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10471 | $as_echo "no" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10472 | ipv6=no |
| 10473 | ;; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10474 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 10475 | $as_echo "yes" >&6; } |
| 10476 | $as_echo "#define ENABLE_IPV6 1" >>confdefs.h |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10477 | |
| 10478 | ipv6=yes |
| 10479 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10480 | esac |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10481 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10482 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10483 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10484 | /* end confdefs.h. */ |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10485 | /* AF_INET6 available check */ |
| 10486 | #include <sys/types.h> |
| 10487 | #include <sys/socket.h> |
Charles-François Natali | f6fd794 | 2013-01-08 19:49:42 +0100 | [diff] [blame] | 10488 | int |
| 10489 | main () |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10490 | { |
Charles-François Natali | f6fd794 | 2013-01-08 19:49:42 +0100 | [diff] [blame] | 10491 | int domain = AF_INET6; |
| 10492 | ; |
| 10493 | return 0; |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10494 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10495 | _ACEOF |
Charles-François Natali | f6fd794 | 2013-01-08 19:49:42 +0100 | [diff] [blame] | 10496 | if ac_fn_c_try_compile "$LINENO"; then : |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10497 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 10499 | $as_echo "yes" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10500 | ipv6=yes |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10501 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10502 | else |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10503 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10504 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10505 | $as_echo "no" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10506 | ipv6=no |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10507 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10508 | fi |
Charles-François Natali | f6fd794 | 2013-01-08 19:49:42 +0100 | [diff] [blame] | 10509 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10510 | |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10511 | if test "$ipv6" = "yes"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10512 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RFC2553 API is available" >&5 |
| 10513 | $as_echo_n "checking if RFC2553 API is available... " >&6; } |
| 10514 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10515 | /* end confdefs.h. */ |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10516 | |
| 10517 | #include <sys/types.h> |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10518 | #include <netinet/in.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10519 | int |
| 10520 | main () |
| 10521 | { |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10522 | struct sockaddr_in6 x; |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10523 | x.sin6_scope_id; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10524 | ; |
| 10525 | return 0; |
| 10526 | } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10527 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10528 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10529 | if ac_fn_c_try_compile "$LINENO"; then : |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10530 | |
| 10531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10532 | $as_echo "yes" >&6; } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10533 | ipv6=yes |
| 10534 | |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10535 | else |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10536 | |
| 10537 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10538 | $as_echo "no" >&6; } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10539 | ipv6=no |
| 10540 | |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10541 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10542 | 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] | 10543 | fi |
| 10544 | |
| 10545 | if test "$ipv6" = "yes"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10546 | $as_echo "#define ENABLE_IPV6 1" >>confdefs.h |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10547 | |
| 10548 | fi |
| 10549 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10550 | fi |
| 10551 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10552 | |
| 10553 | ipv6type=unknown |
| 10554 | ipv6lib=none |
| 10555 | ipv6trylibc=no |
| 10556 | |
| 10557 | if test "$ipv6" = "yes"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10558 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking ipv6 stack type" >&5 |
| 10559 | $as_echo_n "checking ipv6 stack type... " >&6; } |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 10560 | for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; |
| 10561 | do |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10562 | case $i in |
| 10563 | inria) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10564 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10565 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10566 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10567 | #include <netinet/in.h> |
| 10568 | #ifdef IPV6_INRIA_VERSION |
| 10569 | yes |
| 10570 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10571 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10572 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10573 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 10574 | ipv6type=$i |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10575 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 10576 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10577 | |
| 10578 | ;; |
| 10579 | kame) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10580 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10581 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10582 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10583 | #include <netinet/in.h> |
| 10584 | #ifdef __KAME__ |
| 10585 | yes |
| 10586 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10587 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10588 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10589 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10590 | ipv6type=$i; |
| 10591 | ipv6lib=inet6 |
| 10592 | ipv6libdir=/usr/local/v6/lib |
| 10593 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10594 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 10595 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10596 | |
| 10597 | ;; |
| 10598 | linux-glibc) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10599 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10600 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10601 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10602 | #include <features.h> |
| 10603 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) |
| 10604 | yes |
| 10605 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10606 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10607 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10608 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10609 | ipv6type=$i; |
| 10610 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10611 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 10612 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10613 | |
| 10614 | ;; |
| 10615 | linux-inet6) |
| 10616 | if test -d /usr/inet6; then |
| 10617 | ipv6type=$i |
| 10618 | ipv6lib=inet6 |
| 10619 | ipv6libdir=/usr/inet6/lib |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 10620 | BASECFLAGS="-I/usr/inet6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10621 | fi |
| 10622 | ;; |
| 10623 | solaris) |
| 10624 | if test -f /etc/netconfig; then |
Antoine Pitrou | f3fcd9f | 2011-01-03 18:53:50 +0000 | [diff] [blame] | 10625 | if $GREP -q tcp6 /etc/netconfig; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10626 | ipv6type=$i |
| 10627 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10628 | fi |
| 10629 | fi |
| 10630 | ;; |
| 10631 | toshiba) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10632 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10633 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10634 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10635 | #include <sys/param.h> |
| 10636 | #ifdef _TOSHIBA_INET6 |
| 10637 | yes |
| 10638 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10639 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10640 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10641 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10642 | ipv6type=$i; |
| 10643 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 10644 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10645 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 10646 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10647 | |
| 10648 | ;; |
| 10649 | v6d) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10650 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10651 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10652 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10653 | #include </usr/local/v6/include/sys/v6config.h> |
| 10654 | #ifdef __V6D__ |
| 10655 | yes |
| 10656 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10657 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10658 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10659 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10660 | ipv6type=$i; |
| 10661 | ipv6lib=v6; |
| 10662 | ipv6libdir=/usr/local/v6/lib; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 10663 | BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10664 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 10665 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10666 | |
| 10667 | ;; |
| 10668 | zeta) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10669 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10670 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10671 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10672 | #include <sys/param.h> |
| 10673 | #ifdef _ZETA_MINAMI_INET6 |
| 10674 | yes |
| 10675 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10676 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10677 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10678 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10679 | ipv6type=$i; |
| 10680 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 10681 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10682 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 10683 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10684 | |
| 10685 | ;; |
| 10686 | esac |
| 10687 | if test "$ipv6type" != "unknown"; then |
| 10688 | break |
| 10689 | fi |
| 10690 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10691 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6type" >&5 |
| 10692 | $as_echo "$ipv6type" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10693 | fi |
| 10694 | |
| 10695 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then |
| 10696 | if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then |
| 10697 | LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" |
| 10698 | echo "using lib$ipv6lib" |
| 10699 | else |
| 10700 | if test $ipv6trylibc = "yes"; then |
| 10701 | echo "using libc" |
| 10702 | else |
| 10703 | echo 'Fatal: no $ipv6lib library found. cannot continue.' |
| 10704 | echo "You need to fetch lib$ipv6lib.a from appropriate" |
| 10705 | echo 'ipv6 kit and compile beforehand.' |
| 10706 | exit 1 |
| 10707 | fi |
| 10708 | fi |
| 10709 | fi |
| 10710 | |
Larry Hastings | a6cc551 | 2015-04-13 17:48:40 -0400 | [diff] [blame] | 10711 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAN_RAW_FD_FRAMES" >&5 |
| 10712 | $as_echo_n "checking for CAN_RAW_FD_FRAMES... " >&6; } |
| 10713 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10714 | /* end confdefs.h. */ |
| 10715 | /* CAN_RAW_FD_FRAMES available check */ |
| 10716 | #include <linux/can/raw.h> |
| 10717 | int |
| 10718 | main () |
| 10719 | { |
| 10720 | int can_raw_fd_frames = CAN_RAW_FD_FRAMES; |
| 10721 | ; |
| 10722 | return 0; |
| 10723 | } |
| 10724 | _ACEOF |
| 10725 | if ac_fn_c_try_compile "$LINENO"; then : |
| 10726 | |
| 10727 | |
| 10728 | $as_echo "#define HAVE_LINUX_CAN_RAW_FD_FRAMES 1" >>confdefs.h |
| 10729 | |
| 10730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 10731 | $as_echo "yes" >&6; } |
| 10732 | |
| 10733 | else |
| 10734 | |
| 10735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10736 | $as_echo "no" >&6; } |
| 10737 | |
| 10738 | fi |
| 10739 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10740 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10741 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSX 10.5 SDK or later" >&5 |
| 10742 | $as_echo_n "checking for OSX 10.5 SDK or later... " >&6; } |
| 10743 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 10744 | /* end confdefs.h. */ |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10745 | |
| 10746 | #include <Carbon/Carbon.h> |
Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 10747 | int |
| 10748 | main () |
| 10749 | { |
| 10750 | FSIORefNum fRef = 0 |
| 10751 | ; |
| 10752 | return 0; |
| 10753 | } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10754 | |
Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 10755 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10756 | if ac_fn_c_try_compile "$LINENO"; then : |
Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 10757 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10758 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10759 | $as_echo "#define HAVE_OSX105_SDK 1" >>confdefs.h |
Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 10760 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 10762 | $as_echo "yes" >&6; } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10763 | |
Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 10764 | else |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10765 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10767 | $as_echo "no" >&6; } |
Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 10768 | |
| 10769 | fi |
Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 10770 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10771 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 10772 | # Check for --with-doc-strings |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10773 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-doc-strings" >&5 |
| 10774 | $as_echo_n "checking for --with-doc-strings... " >&6; } |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 10775 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10776 | # Check whether --with-doc-strings was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10777 | if test "${with_doc_strings+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10778 | withval=$with_doc_strings; |
| 10779 | fi |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 10780 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 10781 | |
| 10782 | if test -z "$with_doc_strings" |
| 10783 | then with_doc_strings="yes" |
| 10784 | fi |
| 10785 | if test "$with_doc_strings" != "no" |
| 10786 | then |
| 10787 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10788 | $as_echo "#define WITH_DOC_STRINGS 1" >>confdefs.h |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 10789 | |
| 10790 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_doc_strings" >&5 |
| 10792 | $as_echo "$with_doc_strings" >&6; } |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 10793 | |
Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 10794 | # Check if eval loop should use timestamp counter profiling |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10795 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tsc" >&5 |
| 10796 | $as_echo_n "checking for --with-tsc... " >&6; } |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 10797 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10798 | # Check whether --with-tsc was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10799 | if test "${with_tsc+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10800 | withval=$with_tsc; |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 10801 | if test "$withval" != no |
| 10802 | then |
| 10803 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10804 | $as_echo "#define WITH_TSC 1" >>confdefs.h |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 10805 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 10807 | $as_echo "yes" >&6; } |
| 10808 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10809 | $as_echo "no" >&6; } |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 10810 | fi |
| 10811 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10813 | $as_echo "no" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10814 | fi |
| 10815 | |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 10816 | |
| 10817 | # Check for Python-specific malloc support |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10818 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pymalloc" >&5 |
| 10819 | $as_echo_n "checking for --with-pymalloc... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10820 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10821 | # Check whether --with-pymalloc was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10822 | if test "${with_pymalloc+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10823 | withval=$with_pymalloc; |
| 10824 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10825 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 10826 | |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 10827 | if test -z "$with_pymalloc" |
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 10828 | then |
| 10829 | with_pymalloc="yes" |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 10830 | fi |
| 10831 | if test "$with_pymalloc" != "no" |
| 10832 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10833 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10834 | $as_echo "#define WITH_PYMALLOC 1" >>confdefs.h |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 10835 | |
doko@ubuntu.com | 9c7817e | 2012-06-30 17:05:13 +0200 | [diff] [blame] | 10836 | ABIFLAGS="${ABIFLAGS}m" |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 10837 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pymalloc" >&5 |
| 10839 | $as_echo "$with_pymalloc" >&6; } |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 10840 | |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 10841 | # Check for Valgrind support |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10842 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-valgrind" >&5 |
| 10843 | $as_echo_n "checking for --with-valgrind... " >&6; } |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 10844 | |
| 10845 | # Check whether --with-valgrind was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10846 | if test "${with_valgrind+set}" = set; then : |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 10847 | withval=$with_valgrind; |
| 10848 | else |
| 10849 | with_valgrind=no |
| 10850 | fi |
| 10851 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_valgrind" >&5 |
| 10853 | $as_echo "$with_valgrind" >&6; } |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 10854 | if test "$with_valgrind" != no; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10855 | 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] | 10856 | if test "x$ac_cv_header_valgrind_valgrind_h" = xyes; then : |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 10857 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10858 | $as_echo "#define WITH_VALGRIND 1" >>confdefs.h |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 10859 | |
| 10860 | else |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 10861 | as_fn_error $? "Valgrind support requested but headers not available" "$LINENO" 5 |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 10862 | |
| 10863 | fi |
| 10864 | |
| 10865 | |
Jeffrey Yasskin | 3937083 | 2010-05-03 19:29:34 +0000 | [diff] [blame] | 10866 | OPT="-DDYNAMIC_ANNOTATIONS_ENABLED=1 $OPT" |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 10867 | fi |
| 10868 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10869 | # -I${DLINCLDIR} is added to the compile rule for importdl.o |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 10870 | |
Guido van Rossum | 98935bf | 2001-09-05 19:13:16 +0000 | [diff] [blame] | 10871 | DLINCLDIR=. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 10872 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 10873 | # the dlopen() function means we might want to use dynload_shlib.o. some |
| 10874 | # 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] | 10875 | for ac_func in dlopen |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10876 | do : |
| 10877 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10878 | if test "x$ac_cv_func_dlopen" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10879 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10880 | #define HAVE_DLOPEN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10881 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 10882 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 10883 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 10884 | done |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 10885 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10886 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 10887 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic |
| 10888 | # loading of modules. |
| 10889 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10890 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking DYNLOADFILE" >&5 |
| 10891 | $as_echo_n "checking DYNLOADFILE... " >&6; } |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 10892 | if test -z "$DYNLOADFILE" |
| 10893 | then |
| 10894 | case $ac_sys_system/$ac_sys_release in |
Martin v. Löwis | c19c5a6 | 2003-11-18 20:00:44 +0000 | [diff] [blame] | 10895 | AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c |
| 10896 | if test "$ac_cv_func_dlopen" = yes |
| 10897 | then DYNLOADFILE="dynload_shlib.o" |
| 10898 | else DYNLOADFILE="dynload_aix.o" |
| 10899 | fi |
| 10900 | ;; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 10901 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 10902 | # Use dynload_next.c only on 10.2 and below, which don't have native dlopen() |
| 10903 | Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 10904 | *) |
| 10905 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub |
| 10906 | # out any dynamic loading |
| 10907 | if test "$ac_cv_func_dlopen" = yes |
| 10908 | then DYNLOADFILE="dynload_shlib.o" |
| 10909 | else DYNLOADFILE="dynload_stub.o" |
| 10910 | fi |
| 10911 | ;; |
| 10912 | esac |
| 10913 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DYNLOADFILE" >&5 |
| 10915 | $as_echo "$DYNLOADFILE" >&6; } |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 10916 | if test "$DYNLOADFILE" != "dynload_stub.o" |
| 10917 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10918 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10919 | $as_echo "#define HAVE_DYNAMIC_LOADING 1" >>confdefs.h |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 10920 | |
| 10921 | fi |
| 10922 | |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 10923 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python |
| 10924 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10925 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10926 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP_OBJS" >&5 |
| 10927 | $as_echo_n "checking MACHDEP_OBJS... " >&6; } |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 10928 | if test -z "$MACHDEP_OBJS" |
| 10929 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10930 | MACHDEP_OBJS=$extra_machdep_objs |
| 10931 | else |
| 10932 | MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 10933 | fi |
doko@ubuntu.com | 9c7817e | 2012-06-30 17:05:13 +0200 | [diff] [blame] | 10934 | if test -z "$MACHDEP_OBJS"; then |
| 10935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
| 10936 | $as_echo "none" >&6; } |
| 10937 | else |
| 10938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACHDEP_OBJS" >&5 |
| 10939 | $as_echo "$MACHDEP_OBJS" >&6; } |
| 10940 | fi |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 10941 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10942 | # checks for library functions |
Antoine Pitrou | b1c5496 | 2010-10-14 15:05:38 +0000 | [diff] [blame] | 10943 | for ac_func in alarm accept4 setitimer getitimer bind_textdomain_codeset chown \ |
Victor Stinner | daf4555 | 2013-08-28 00:53:59 +0200 | [diff] [blame] | 10944 | clock confstr ctermid dup3 execv faccessat fchmod fchmodat fchown fchownat \ |
Ross Lagerwall | 7807c35 | 2011-03-17 20:20:30 +0200 | [diff] [blame] | 10945 | fexecve fdopendir fork fpathconf fstatat ftime ftruncate futimesat \ |
Victor Stinner | 4d6a3d6 | 2014-12-21 01:16:38 +0100 | [diff] [blame] | 10946 | futimens futimes gai_strerror getentropy \ |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 10947 | getgrouplist getgroups getlogin getloadavg getpeername getpgid getpid \ |
Martin v. Löwis | 7aed61a | 2009-11-27 14:09:49 +0000 | [diff] [blame] | 10948 | getpriority getresuid getresgid getpwent getspnam getspent getsid getwd \ |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 10949 | if_nameindex \ |
Antoine Pitrou | f0effe6 | 2011-11-26 01:11:02 +0100 | [diff] [blame] | 10950 | initgroups kill killpg lchmod lchown lockf linkat lstat lutimes mmap \ |
| 10951 | memrchr mbrtowc mkdirat mkfifo \ |
Charles-François Natali | daafdd5 | 2011-05-29 20:07:40 +0200 | [diff] [blame] | 10952 | mkfifoat mknod mknodat mktime mremap nice openat pathconf pause pipe2 plock poll \ |
Ross Lagerwall | 7807c35 | 2011-03-17 20:20:30 +0200 | [diff] [blame] | 10953 | posix_fallocate posix_fadvise pread \ |
Victor Stinner | b3e7219 | 2011-05-08 01:46:11 +0200 | [diff] [blame] | 10954 | pthread_init pthread_kill putenv pwrite readlink readlinkat readv realpath renameat \ |
Georg Brandl | 941f956 | 2011-02-25 15:21:47 +0000 | [diff] [blame] | 10955 | select sem_open sem_timedwait sem_getvalue sem_unlink sendfile setegid seteuid \ |
Antoine Pitrou | 061cfb5 | 2011-02-28 22:25:22 +0000 | [diff] [blame] | 10956 | setgid sethostname \ |
Giampaolo Rodolà | 18e8bcb | 2011-02-25 20:57:54 +0000 | [diff] [blame] | 10957 | 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] | 10958 | sched_get_priority_max sched_setaffinity sched_setscheduler sched_setparam \ |
| 10959 | sched_rr_get_interval \ |
Ross Lagerwall | bc80822 | 2011-06-25 12:13:40 +0200 | [diff] [blame] | 10960 | sigaction sigaltstack siginterrupt sigpending sigrelse \ |
| 10961 | sigtimedwait sigwait sigwaitinfo snprintf strftime strlcpy symlinkat sync \ |
Michael W. Hudson | 34f20ea | 2002-05-27 15:08:24 +0000 | [diff] [blame] | 10962 | sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ |
Ross Lagerwall | 7807c35 | 2011-03-17 20:20:30 +0200 | [diff] [blame] | 10963 | truncate uname unlinkat unsetenv utimensat utimes waitid waitpid wait3 wait4 \ |
Victor Stinner | cd777ea | 2013-04-08 22:43:44 +0200 | [diff] [blame] | 10964 | wcscoll wcsftime wcsxfrm wmemcmp writev _getpty |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10965 | do : |
| 10966 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 10967 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 10968 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10969 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10970 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10971 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10972 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10973 | fi |
| 10974 | done |
| 10975 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10976 | |
Gregory P. Smith | df300d5 | 2012-01-21 18:20:15 -0800 | [diff] [blame] | 10977 | ac_fn_c_check_decl "$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h> |
| 10978 | #include <dirent.h> |
| 10979 | " |
| 10980 | if test "x$ac_cv_have_decl_dirfd" = xyes; then : |
| 10981 | |
| 10982 | $as_echo "#define HAVE_DIRFD 1" >>confdefs.h |
| 10983 | |
| 10984 | fi |
| 10985 | |
| 10986 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10987 | # For some functions, having a definition is not sufficient, since |
| 10988 | # we want to take their address. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10989 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chroot" >&5 |
| 10990 | $as_echo_n "checking for chroot... " >&6; } |
| 10991 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10992 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10993 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10994 | int |
| 10995 | main () |
| 10996 | { |
| 10997 | void *x=chroot |
| 10998 | ; |
| 10999 | return 0; |
| 11000 | } |
| 11001 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11002 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11003 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11004 | $as_echo "#define HAVE_CHROOT 1" >>confdefs.h |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11005 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11007 | $as_echo "yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11008 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11010 | $as_echo "no" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11011 | |
| 11012 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11013 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11014 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for link" >&5 |
| 11015 | $as_echo_n "checking for link... " >&6; } |
| 11016 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11017 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11018 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11019 | int |
| 11020 | main () |
| 11021 | { |
| 11022 | void *x=link |
| 11023 | ; |
| 11024 | return 0; |
| 11025 | } |
| 11026 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11027 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11028 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11029 | $as_echo "#define HAVE_LINK 1" >>confdefs.h |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11030 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11032 | $as_echo "yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11033 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11035 | $as_echo "no" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11036 | |
| 11037 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11038 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11039 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for symlink" >&5 |
| 11040 | $as_echo_n "checking for symlink... " >&6; } |
| 11041 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11042 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11043 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11044 | int |
| 11045 | main () |
| 11046 | { |
| 11047 | void *x=symlink |
| 11048 | ; |
| 11049 | return 0; |
| 11050 | } |
| 11051 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11052 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11053 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11054 | $as_echo "#define HAVE_SYMLINK 1" >>confdefs.h |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11055 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11057 | $as_echo "yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11058 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11060 | $as_echo "no" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11061 | |
| 11062 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11063 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11064 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fchdir" >&5 |
| 11065 | $as_echo_n "checking for fchdir... " >&6; } |
| 11066 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11067 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11068 | #include <unistd.h> |
| 11069 | int |
| 11070 | main () |
| 11071 | { |
| 11072 | void *x=fchdir |
| 11073 | ; |
| 11074 | return 0; |
| 11075 | } |
| 11076 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11077 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11078 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11079 | $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11080 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11081 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11082 | $as_echo "yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11083 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11085 | $as_echo "no" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11086 | |
| 11087 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11088 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11089 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fsync" >&5 |
| 11090 | $as_echo_n "checking for fsync... " >&6; } |
| 11091 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11092 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11093 | #include <unistd.h> |
| 11094 | int |
| 11095 | main () |
| 11096 | { |
| 11097 | void *x=fsync |
| 11098 | ; |
| 11099 | return 0; |
| 11100 | } |
| 11101 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11102 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11103 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11104 | $as_echo "#define HAVE_FSYNC 1" >>confdefs.h |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11105 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11107 | $as_echo "yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11108 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11110 | $as_echo "no" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11111 | |
| 11112 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11113 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11114 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fdatasync" >&5 |
| 11115 | $as_echo_n "checking for fdatasync... " >&6; } |
| 11116 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11117 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11118 | #include <unistd.h> |
| 11119 | int |
| 11120 | main () |
| 11121 | { |
| 11122 | void *x=fdatasync |
| 11123 | ; |
| 11124 | return 0; |
| 11125 | } |
| 11126 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11127 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11128 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11129 | $as_echo "#define HAVE_FDATASYNC 1" >>confdefs.h |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11130 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11132 | $as_echo "yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11133 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11135 | $as_echo "no" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11136 | |
| 11137 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11138 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11139 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll" >&5 |
| 11140 | $as_echo_n "checking for epoll... " >&6; } |
| 11141 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11142 | /* end confdefs.h. */ |
| 11143 | #include <sys/epoll.h> |
| 11144 | int |
| 11145 | main () |
| 11146 | { |
| 11147 | void *x=epoll_create |
| 11148 | ; |
| 11149 | return 0; |
| 11150 | } |
| 11151 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11152 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11153 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11154 | $as_echo "#define HAVE_EPOLL 1" >>confdefs.h |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11155 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11157 | $as_echo "yes" >&6; } |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11158 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11160 | $as_echo "no" >&6; } |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11161 | |
| 11162 | fi |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11163 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benjamin Peterson | 95c1662 | 2011-12-27 15:36:32 -0600 | [diff] [blame] | 11164 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll_create1" >&5 |
| 11165 | $as_echo_n "checking for epoll_create1... " >&6; } |
| 11166 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11167 | /* end confdefs.h. */ |
| 11168 | #include <sys/epoll.h> |
| 11169 | int |
| 11170 | main () |
| 11171 | { |
| 11172 | void *x=epoll_create1 |
| 11173 | ; |
| 11174 | return 0; |
| 11175 | } |
| 11176 | _ACEOF |
| 11177 | if ac_fn_c_try_compile "$LINENO"; then : |
| 11178 | |
| 11179 | $as_echo "#define HAVE_EPOLL_CREATE1 1" >>confdefs.h |
| 11180 | |
| 11181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11182 | $as_echo "yes" >&6; } |
| 11183 | else |
| 11184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11185 | $as_echo "no" >&6; } |
| 11186 | |
| 11187 | fi |
| 11188 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11189 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kqueue" >&5 |
| 11190 | $as_echo_n "checking for kqueue... " >&6; } |
| 11191 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11192 | /* end confdefs.h. */ |
| 11193 | |
| 11194 | #include <sys/types.h> |
| 11195 | #include <sys/event.h> |
| 11196 | |
| 11197 | int |
| 11198 | main () |
| 11199 | { |
| 11200 | int x=kqueue() |
| 11201 | ; |
| 11202 | return 0; |
| 11203 | } |
| 11204 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11205 | if ac_fn_c_try_compile "$LINENO"; then : |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11206 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11207 | $as_echo "#define HAVE_KQUEUE 1" >>confdefs.h |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11208 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11210 | $as_echo "yes" >&6; } |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11211 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11213 | $as_echo "no" >&6; } |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11214 | |
| 11215 | fi |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11216 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Christian Heimes | b7bd5df | 2013-10-22 11:21:54 +0200 | [diff] [blame] | 11217 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prlimit" >&5 |
| 11218 | $as_echo_n "checking for prlimit... " >&6; } |
| 11219 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11220 | /* end confdefs.h. */ |
| 11221 | |
| 11222 | #include <sys/time.h> |
| 11223 | #include <sys/resource.h> |
| 11224 | |
| 11225 | int |
| 11226 | main () |
| 11227 | { |
| 11228 | void *x=prlimit |
| 11229 | ; |
| 11230 | return 0; |
| 11231 | } |
| 11232 | _ACEOF |
| 11233 | if ac_fn_c_try_compile "$LINENO"; then : |
| 11234 | |
| 11235 | $as_echo "#define HAVE_PRLIMIT 1" >>confdefs.h |
| 11236 | |
| 11237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11238 | $as_echo "yes" >&6; } |
| 11239 | else |
| 11240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11241 | $as_echo "no" >&6; } |
| 11242 | |
| 11243 | fi |
| 11244 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11245 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11246 | # On some systems (eg. FreeBSD 5), we would find a definition of the |
| 11247 | # functions ctermid_r, setgroups in the library, but no prototype |
| 11248 | # (e.g. because we use _XOPEN_SOURCE). See whether we can take their |
| 11249 | # address to avoid compiler warnings and potential miscompilations |
| 11250 | # because of the missing prototypes. |
| 11251 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11252 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctermid_r" >&5 |
| 11253 | $as_echo_n "checking for ctermid_r... " >&6; } |
| 11254 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11255 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11256 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11257 | #include <stdio.h> |
| 11258 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11259 | int |
| 11260 | main () |
| 11261 | { |
| 11262 | void* p = ctermid_r |
| 11263 | ; |
| 11264 | return 0; |
| 11265 | } |
| 11266 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11267 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11268 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11269 | $as_echo "#define HAVE_CTERMID_R 1" >>confdefs.h |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11270 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11272 | $as_echo "yes" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11273 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11275 | $as_echo "no" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11276 | |
| 11277 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11278 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11279 | |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11280 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock declaration" >&5 |
| 11281 | $as_echo_n "checking for flock declaration... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11282 | if ${ac_cv_flock_decl+:} false; then : |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11283 | $as_echo_n "(cached) " >&6 |
| 11284 | else |
| 11285 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11286 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11287 | #include <sys/file.h> |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11288 | int |
| 11289 | main () |
| 11290 | { |
| 11291 | void* p = flock |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11292 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11293 | ; |
| 11294 | return 0; |
| 11295 | } |
| 11296 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11297 | if ac_fn_c_try_compile "$LINENO"; then : |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11298 | ac_cv_flock_decl=yes |
| 11299 | else |
| 11300 | ac_cv_flock_decl=no |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11301 | |
| 11302 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11303 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 11304 | |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11305 | fi |
| 11306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flock_decl" >&5 |
| 11307 | $as_echo "$ac_cv_flock_decl" >&6; } |
| 11308 | if test "x${ac_cv_flock_decl}" = xyes; then |
| 11309 | for ac_func in flock |
| 11310 | do : |
| 11311 | ac_fn_c_check_func "$LINENO" "flock" "ac_cv_func_flock" |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11312 | if test "x$ac_cv_func_flock" = xyes; then : |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11313 | cat >>confdefs.h <<_ACEOF |
| 11314 | #define HAVE_FLOCK 1 |
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 11315 | _ACEOF |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11316 | |
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 11317 | else |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11318 | { $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] | 11319 | $as_echo_n "checking for flock in -lbsd... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11320 | if ${ac_cv_lib_bsd_flock+:} false; then : |
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 11321 | $as_echo_n "(cached) " >&6 |
| 11322 | else |
| 11323 | ac_check_lib_save_LIBS=$LIBS |
| 11324 | LIBS="-lbsd $LIBS" |
| 11325 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11326 | /* end confdefs.h. */ |
| 11327 | |
| 11328 | /* Override any GCC internal prototype to avoid an error. |
| 11329 | Use char because int might match the return type of a GCC |
| 11330 | builtin and then its argument prototype would still apply. */ |
| 11331 | #ifdef __cplusplus |
| 11332 | extern "C" |
| 11333 | #endif |
| 11334 | char flock (); |
| 11335 | int |
| 11336 | main () |
| 11337 | { |
| 11338 | return flock (); |
| 11339 | ; |
| 11340 | return 0; |
| 11341 | } |
| 11342 | _ACEOF |
| 11343 | if ac_fn_c_try_link "$LINENO"; then : |
| 11344 | ac_cv_lib_bsd_flock=yes |
| 11345 | else |
| 11346 | ac_cv_lib_bsd_flock=no |
| 11347 | fi |
| 11348 | rm -f core conftest.err conftest.$ac_objext \ |
| 11349 | conftest$ac_exeext conftest.$ac_ext |
| 11350 | LIBS=$ac_check_lib_save_LIBS |
| 11351 | fi |
| 11352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_flock" >&5 |
| 11353 | $as_echo "$ac_cv_lib_bsd_flock" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11354 | if test "x$ac_cv_lib_bsd_flock" = xyes; then : |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11355 | $as_echo "#define HAVE_FLOCK 1" >>confdefs.h |
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 11356 | |
| 11357 | |
| 11358 | $as_echo "#define FLOCK_NEEDS_LIBBSD 1" >>confdefs.h |
| 11359 | |
| 11360 | |
| 11361 | fi |
| 11362 | |
| 11363 | |
| 11364 | fi |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11365 | done |
| 11366 | |
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 11367 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11368 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11369 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize" >&5 |
| 11370 | $as_echo_n "checking for getpagesize... " >&6; } |
| 11371 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11372 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11373 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11374 | #include <unistd.h> |
| 11375 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11376 | int |
| 11377 | main () |
| 11378 | { |
| 11379 | void* p = getpagesize |
| 11380 | ; |
| 11381 | return 0; |
| 11382 | } |
| 11383 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11384 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11385 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11386 | $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11387 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11389 | $as_echo "yes" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11390 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11392 | $as_echo "no" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11393 | |
| 11394 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11395 | 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] | 11396 | |
Victor Stinner | 984890f | 2011-11-24 13:53:38 +0100 | [diff] [blame] | 11397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken unsetenv" >&5 |
| 11398 | $as_echo_n "checking for broken unsetenv... " >&6; } |
| 11399 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11400 | /* end confdefs.h. */ |
| 11401 | |
| 11402 | #include <stdlib.h> |
| 11403 | |
| 11404 | int |
| 11405 | main () |
| 11406 | { |
| 11407 | int res = unsetenv("DUMMY") |
| 11408 | ; |
| 11409 | return 0; |
| 11410 | } |
| 11411 | _ACEOF |
| 11412 | if ac_fn_c_try_compile "$LINENO"; then : |
| 11413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11414 | $as_echo "no" >&6; } |
| 11415 | else |
| 11416 | |
| 11417 | $as_echo "#define HAVE_BROKEN_UNSETENV 1" >>confdefs.h |
| 11418 | |
| 11419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11420 | $as_echo "yes" >&6; } |
| 11421 | |
| 11422 | fi |
| 11423 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11424 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11425 | for ac_prog in true |
| 11426 | do |
| 11427 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 11428 | set dummy $ac_prog; ac_word=$2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11429 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 11430 | $as_echo_n "checking for $ac_word... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11431 | if ${ac_cv_prog_TRUE+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11432 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11433 | else |
| 11434 | if test -n "$TRUE"; then |
| 11435 | ac_cv_prog_TRUE="$TRUE" # Let the user override the test. |
| 11436 | else |
| 11437 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11438 | for as_dir in $PATH |
| 11439 | do |
| 11440 | IFS=$as_save_IFS |
| 11441 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11442 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 11443 | 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] | 11444 | ac_cv_prog_TRUE="$ac_prog" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11445 | $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] | 11446 | break 2 |
| 11447 | fi |
| 11448 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11449 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11450 | IFS=$as_save_IFS |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11451 | |
| 11452 | fi |
| 11453 | fi |
| 11454 | TRUE=$ac_cv_prog_TRUE |
| 11455 | if test -n "$TRUE"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUE" >&5 |
| 11457 | $as_echo "$TRUE" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11458 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11460 | $as_echo "no" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11461 | fi |
| 11462 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11463 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11464 | test -n "$TRUE" && break |
| 11465 | done |
| 11466 | test -n "$TRUE" || TRUE="/bin/true" |
| 11467 | |
| 11468 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11469 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lc" >&5 |
| 11470 | $as_echo_n "checking for inet_aton in -lc... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11471 | if ${ac_cv_lib_c_inet_aton+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11472 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11473 | else |
| 11474 | ac_check_lib_save_LIBS=$LIBS |
| 11475 | LIBS="-lc $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11476 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11477 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11478 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11479 | /* Override any GCC internal prototype to avoid an error. |
| 11480 | Use char because int might match the return type of a GCC |
| 11481 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11482 | #ifdef __cplusplus |
| 11483 | extern "C" |
| 11484 | #endif |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11485 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11486 | int |
| 11487 | main () |
| 11488 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11489 | return inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11490 | ; |
| 11491 | return 0; |
| 11492 | } |
| 11493 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11494 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11495 | ac_cv_lib_c_inet_aton=yes |
| 11496 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11497 | ac_cv_lib_c_inet_aton=no |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11498 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11499 | rm -f core conftest.err conftest.$ac_objext \ |
| 11500 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11501 | LIBS=$ac_check_lib_save_LIBS |
| 11502 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_inet_aton" >&5 |
| 11504 | $as_echo "$ac_cv_lib_c_inet_aton" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11505 | 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] | 11506 | $ac_cv_prog_TRUE |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11507 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11508 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5 |
| 11509 | $as_echo_n "checking for inet_aton in -lresolv... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11510 | if ${ac_cv_lib_resolv_inet_aton+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11511 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11512 | else |
| 11513 | ac_check_lib_save_LIBS=$LIBS |
| 11514 | LIBS="-lresolv $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11515 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11516 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11517 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11518 | /* Override any GCC internal prototype to avoid an error. |
| 11519 | Use char because int might match the return type of a GCC |
| 11520 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11521 | #ifdef __cplusplus |
| 11522 | extern "C" |
| 11523 | #endif |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11524 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11525 | int |
| 11526 | main () |
| 11527 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11528 | return inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11529 | ; |
| 11530 | return 0; |
| 11531 | } |
| 11532 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11533 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11534 | ac_cv_lib_resolv_inet_aton=yes |
| 11535 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11536 | ac_cv_lib_resolv_inet_aton=no |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11537 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11538 | rm -f core conftest.err conftest.$ac_objext \ |
| 11539 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11540 | LIBS=$ac_check_lib_save_LIBS |
| 11541 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5 |
| 11543 | $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11544 | 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] | 11545 | cat >>confdefs.h <<_ACEOF |
| 11546 | #define HAVE_LIBRESOLV 1 |
| 11547 | _ACEOF |
| 11548 | |
| 11549 | LIBS="-lresolv $LIBS" |
| 11550 | |
| 11551 | fi |
| 11552 | |
| 11553 | |
| 11554 | fi |
| 11555 | |
| 11556 | |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11557 | # On Tru64, chflags seems to be present, but calling it will |
| 11558 | # exit Python |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11559 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chflags" >&5 |
| 11560 | $as_echo_n "checking for chflags... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11561 | if ${ac_cv_have_chflags+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11562 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11563 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11564 | if test "$cross_compiling" = yes; then : |
Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 11565 | ac_cv_have_chflags=cross |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11566 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11567 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11568 | /* end confdefs.h. */ |
Ned Deily | 3eb67d5 | 2011-06-28 00:00:28 -0700 | [diff] [blame] | 11569 | |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11570 | #include <sys/stat.h> |
| 11571 | #include <unistd.h> |
| 11572 | int main(int argc, char*argv[]) |
| 11573 | { |
| 11574 | if(chflags(argv[0], 0) != 0) |
| 11575 | return 1; |
| 11576 | return 0; |
| 11577 | } |
Ned Deily | 3eb67d5 | 2011-06-28 00:00:28 -0700 | [diff] [blame] | 11578 | |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11579 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11580 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11581 | ac_cv_have_chflags=yes |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11582 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11583 | ac_cv_have_chflags=no |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11584 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11585 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 11586 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 11587 | fi |
| 11588 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11589 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11590 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_chflags" >&5 |
| 11592 | $as_echo "$ac_cv_have_chflags" >&6; } |
Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 11593 | if test "$ac_cv_have_chflags" = cross ; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11594 | ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags" |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11595 | if test "x$ac_cv_func_chflags" = xyes; then : |
Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 11596 | ac_cv_have_chflags="yes" |
| 11597 | else |
| 11598 | ac_cv_have_chflags="no" |
| 11599 | fi |
| 11600 | |
| 11601 | fi |
| 11602 | if test "$ac_cv_have_chflags" = yes ; then |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11603 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11604 | $as_echo "#define HAVE_CHFLAGS 1" >>confdefs.h |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11605 | |
| 11606 | fi |
| 11607 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11608 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lchflags" >&5 |
| 11609 | $as_echo_n "checking for lchflags... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11610 | if ${ac_cv_have_lchflags+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11611 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11612 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11613 | if test "$cross_compiling" = yes; then : |
Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 11614 | ac_cv_have_lchflags=cross |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11615 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11616 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11617 | /* end confdefs.h. */ |
Ned Deily | 3eb67d5 | 2011-06-28 00:00:28 -0700 | [diff] [blame] | 11618 | |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11619 | #include <sys/stat.h> |
| 11620 | #include <unistd.h> |
| 11621 | int main(int argc, char*argv[]) |
| 11622 | { |
| 11623 | if(lchflags(argv[0], 0) != 0) |
| 11624 | return 1; |
| 11625 | return 0; |
| 11626 | } |
Ned Deily | 3eb67d5 | 2011-06-28 00:00:28 -0700 | [diff] [blame] | 11627 | |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11628 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11629 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11630 | ac_cv_have_lchflags=yes |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11631 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11632 | ac_cv_have_lchflags=no |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11633 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11634 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 11635 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11636 | fi |
| 11637 | |
| 11638 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11639 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_lchflags" >&5 |
| 11641 | $as_echo "$ac_cv_have_lchflags" >&6; } |
Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 11642 | if test "$ac_cv_have_lchflags" = cross ; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11643 | ac_fn_c_check_func "$LINENO" "lchflags" "ac_cv_func_lchflags" |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11644 | if test "x$ac_cv_func_lchflags" = xyes; then : |
Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 11645 | ac_cv_have_lchflags="yes" |
| 11646 | else |
| 11647 | ac_cv_have_lchflags="no" |
| 11648 | fi |
| 11649 | |
| 11650 | fi |
| 11651 | if test "$ac_cv_have_lchflags" = yes ; then |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11652 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11653 | $as_echo "#define HAVE_LCHFLAGS 1" >>confdefs.h |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11654 | |
| 11655 | fi |
| 11656 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11657 | case $ac_sys_system/$ac_sys_release in |
| 11658 | Darwin/*) |
| 11659 | _CUR_CFLAGS="${CFLAGS}" |
| 11660 | _CUR_LDFLAGS="${LDFLAGS}" |
| 11661 | CFLAGS="${CFLAGS} -Wl,-search_paths_first" |
| 11662 | LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib" |
| 11663 | ;; |
| 11664 | esac |
| 11665 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11666 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5 |
| 11667 | $as_echo_n "checking for inflateCopy in -lz... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11668 | if ${ac_cv_lib_z_inflateCopy+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11669 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11670 | else |
| 11671 | ac_check_lib_save_LIBS=$LIBS |
| 11672 | LIBS="-lz $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11673 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11674 | /* end confdefs.h. */ |
| 11675 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11676 | /* Override any GCC internal prototype to avoid an error. |
| 11677 | Use char because int might match the return type of a GCC |
| 11678 | builtin and then its argument prototype would still apply. */ |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11679 | #ifdef __cplusplus |
| 11680 | extern "C" |
| 11681 | #endif |
| 11682 | char inflateCopy (); |
| 11683 | int |
| 11684 | main () |
| 11685 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11686 | return inflateCopy (); |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11687 | ; |
| 11688 | return 0; |
| 11689 | } |
| 11690 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11691 | if ac_fn_c_try_link "$LINENO"; then : |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11692 | ac_cv_lib_z_inflateCopy=yes |
| 11693 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11694 | ac_cv_lib_z_inflateCopy=no |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11695 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11696 | rm -f core conftest.err conftest.$ac_objext \ |
| 11697 | conftest$ac_exeext conftest.$ac_ext |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11698 | LIBS=$ac_check_lib_save_LIBS |
| 11699 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5 |
| 11701 | $as_echo "$ac_cv_lib_z_inflateCopy" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11702 | if test "x$ac_cv_lib_z_inflateCopy" = xyes; then : |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11703 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11704 | $as_echo "#define HAVE_ZLIB_COPY 1" >>confdefs.h |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11705 | |
| 11706 | fi |
| 11707 | |
| 11708 | |
| 11709 | case $ac_sys_system/$ac_sys_release in |
| 11710 | Darwin/*) |
| 11711 | CFLAGS="${_CUR_CFLAGS}" |
| 11712 | LDFLAGS="${_CUR_LDFLAGS}" |
| 11713 | ;; |
| 11714 | esac |
| 11715 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hstrerror" >&5 |
| 11717 | $as_echo_n "checking for hstrerror... " >&6; } |
| 11718 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11719 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11720 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11721 | #include <netdb.h> |
| 11722 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11723 | int |
| 11724 | main () |
| 11725 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11726 | void* p = hstrerror; hstrerror(0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11727 | ; |
| 11728 | return 0; |
| 11729 | } |
| 11730 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11731 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11732 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11733 | $as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11734 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11736 | $as_echo "yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11737 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11739 | $as_echo "no" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11740 | |
| 11741 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11742 | rm -f core conftest.err conftest.$ac_objext \ |
| 11743 | conftest$ac_exeext conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11744 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11745 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton" >&5 |
| 11746 | $as_echo_n "checking for inet_aton... " >&6; } |
| 11747 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11748 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11749 | |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 11750 | #include <sys/types.h> |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11751 | #include <sys/socket.h> |
| 11752 | #include <netinet/in.h> |
| 11753 | #include <arpa/inet.h> |
| 11754 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11755 | int |
| 11756 | main () |
| 11757 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11758 | void* p = inet_aton;inet_aton(0,0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11759 | ; |
| 11760 | return 0; |
| 11761 | } |
| 11762 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11763 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11764 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11765 | $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11766 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11768 | $as_echo "yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11769 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11771 | $as_echo "no" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11772 | |
| 11773 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11774 | rm -f core conftest.err conftest.$ac_objext \ |
| 11775 | conftest$ac_exeext conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11776 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11777 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_pton" >&5 |
| 11778 | $as_echo_n "checking for inet_pton... " >&6; } |
| 11779 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11780 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11781 | |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 11782 | #include <sys/types.h> |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11783 | #include <sys/socket.h> |
| 11784 | #include <netinet/in.h> |
| 11785 | #include <arpa/inet.h> |
| 11786 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11787 | int |
| 11788 | main () |
| 11789 | { |
| 11790 | void* p = inet_pton |
| 11791 | ; |
| 11792 | return 0; |
| 11793 | } |
| 11794 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11795 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11796 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11797 | $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11798 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11800 | $as_echo "yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11801 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11803 | $as_echo "no" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11804 | |
| 11805 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11806 | 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] | 11807 | |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 11808 | # 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] | 11809 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setgroups" >&5 |
| 11810 | $as_echo_n "checking for setgroups... " >&6; } |
| 11811 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11812 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11813 | |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 11814 | #include <unistd.h> |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 11815 | #ifdef HAVE_GRP_H |
| 11816 | #include <grp.h> |
| 11817 | #endif |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11818 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11819 | int |
| 11820 | main () |
| 11821 | { |
| 11822 | void* p = setgroups |
| 11823 | ; |
| 11824 | return 0; |
| 11825 | } |
| 11826 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11827 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11828 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11829 | $as_echo "#define HAVE_SETGROUPS 1" >>confdefs.h |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11830 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11832 | $as_echo "yes" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11833 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11835 | $as_echo "no" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11836 | |
| 11837 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11838 | 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] | 11839 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11840 | # check for openpty and forkpty |
| 11841 | |
| 11842 | for ac_func in openpty |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11843 | do : |
| 11844 | ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty" |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11845 | if test "x$ac_cv_func_openpty" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11846 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11847 | #define HAVE_OPENPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11848 | _ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11849 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11850 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11851 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5 |
| 11852 | $as_echo_n "checking for openpty in -lutil... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11853 | if ${ac_cv_lib_util_openpty+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11854 | $as_echo_n "(cached) " >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11855 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11856 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11857 | LIBS="-lutil $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11858 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11859 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11860 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11861 | /* Override any GCC internal prototype to avoid an error. |
| 11862 | Use char because int might match the return type of a GCC |
| 11863 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11864 | #ifdef __cplusplus |
| 11865 | extern "C" |
| 11866 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11867 | char openpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11868 | int |
| 11869 | main () |
| 11870 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11871 | return openpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11872 | ; |
| 11873 | return 0; |
| 11874 | } |
| 11875 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11876 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11877 | ac_cv_lib_util_openpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11878 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11879 | ac_cv_lib_util_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11880 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11881 | rm -f core conftest.err conftest.$ac_objext \ |
| 11882 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11883 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11884 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5 |
| 11886 | $as_echo "$ac_cv_lib_util_openpty" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11887 | if test "x$ac_cv_lib_util_openpty" = xyes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11888 | $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11889 | LIBS="$LIBS -lutil" |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11890 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11891 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lbsd" >&5 |
| 11892 | $as_echo_n "checking for openpty in -lbsd... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11893 | if ${ac_cv_lib_bsd_openpty+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11894 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11895 | else |
| 11896 | ac_check_lib_save_LIBS=$LIBS |
| 11897 | LIBS="-lbsd $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11898 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11899 | /* end confdefs.h. */ |
| 11900 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11901 | /* Override any GCC internal prototype to avoid an error. |
| 11902 | Use char because int might match the return type of a GCC |
| 11903 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11904 | #ifdef __cplusplus |
| 11905 | extern "C" |
| 11906 | #endif |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11907 | char openpty (); |
| 11908 | int |
| 11909 | main () |
| 11910 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11911 | return openpty (); |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11912 | ; |
| 11913 | return 0; |
| 11914 | } |
| 11915 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11916 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11917 | ac_cv_lib_bsd_openpty=yes |
| 11918 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11919 | ac_cv_lib_bsd_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11920 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11921 | rm -f core conftest.err conftest.$ac_objext \ |
| 11922 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11923 | LIBS=$ac_check_lib_save_LIBS |
| 11924 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_openpty" >&5 |
| 11926 | $as_echo "$ac_cv_lib_bsd_openpty" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11927 | if test "x$ac_cv_lib_bsd_openpty" = xyes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11928 | $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11929 | LIBS="$LIBS -lbsd" |
| 11930 | fi |
| 11931 | |
| 11932 | |
| 11933 | fi |
| 11934 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11935 | |
| 11936 | fi |
| 11937 | done |
| 11938 | |
| 11939 | for ac_func in forkpty |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11940 | do : |
| 11941 | ac_fn_c_check_func "$LINENO" "forkpty" "ac_cv_func_forkpty" |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11942 | if test "x$ac_cv_func_forkpty" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11943 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11944 | #define HAVE_FORKPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11945 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11946 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11947 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11948 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lutil" >&5 |
| 11949 | $as_echo_n "checking for forkpty in -lutil... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11950 | if ${ac_cv_lib_util_forkpty+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11951 | $as_echo_n "(cached) " >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11952 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11953 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11954 | LIBS="-lutil $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11955 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11956 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11957 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11958 | /* Override any GCC internal prototype to avoid an error. |
| 11959 | Use char because int might match the return type of a GCC |
| 11960 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11961 | #ifdef __cplusplus |
| 11962 | extern "C" |
| 11963 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11964 | char forkpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11965 | int |
| 11966 | main () |
| 11967 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11968 | return forkpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11969 | ; |
| 11970 | return 0; |
| 11971 | } |
| 11972 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11973 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11974 | ac_cv_lib_util_forkpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11975 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11976 | ac_cv_lib_util_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11977 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11978 | rm -f core conftest.err conftest.$ac_objext \ |
| 11979 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11980 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11981 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_forkpty" >&5 |
| 11983 | $as_echo "$ac_cv_lib_util_forkpty" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11984 | if test "x$ac_cv_lib_util_forkpty" = xyes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11985 | $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11986 | LIBS="$LIBS -lutil" |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11987 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11988 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lbsd" >&5 |
| 11989 | $as_echo_n "checking for forkpty in -lbsd... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11990 | if ${ac_cv_lib_bsd_forkpty+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11991 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11992 | else |
| 11993 | ac_check_lib_save_LIBS=$LIBS |
| 11994 | LIBS="-lbsd $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11995 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11996 | /* end confdefs.h. */ |
| 11997 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11998 | /* Override any GCC internal prototype to avoid an error. |
| 11999 | Use char because int might match the return type of a GCC |
| 12000 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12001 | #ifdef __cplusplus |
| 12002 | extern "C" |
| 12003 | #endif |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12004 | char forkpty (); |
| 12005 | int |
| 12006 | main () |
| 12007 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12008 | return forkpty (); |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12009 | ; |
| 12010 | return 0; |
| 12011 | } |
| 12012 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12013 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12014 | ac_cv_lib_bsd_forkpty=yes |
| 12015 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12016 | ac_cv_lib_bsd_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12017 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12018 | rm -f core conftest.err conftest.$ac_objext \ |
| 12019 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12020 | LIBS=$ac_check_lib_save_LIBS |
| 12021 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_forkpty" >&5 |
| 12023 | $as_echo "$ac_cv_lib_bsd_forkpty" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12024 | if test "x$ac_cv_lib_bsd_forkpty" = xyes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12025 | $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12026 | LIBS="$LIBS -lbsd" |
| 12027 | fi |
| 12028 | |
| 12029 | |
| 12030 | fi |
| 12031 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12032 | |
| 12033 | fi |
| 12034 | done |
| 12035 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 12036 | |
Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 12037 | # Stuff for expat. |
Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 12038 | for ac_func in memmove |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12039 | do : |
| 12040 | ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove" |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12041 | if test "x$ac_cv_func_memmove" = xyes; then : |
Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 12042 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12043 | #define HAVE_MEMMOVE 1 |
Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 12044 | _ACEOF |
| 12045 | |
| 12046 | fi |
| 12047 | done |
| 12048 | |
| 12049 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12050 | # check for long file support functions |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12051 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12052 | do : |
| 12053 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12054 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12055 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12056 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12057 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12058 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12059 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12060 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12061 | done |
| 12062 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12063 | |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12064 | ac_fn_c_check_func "$LINENO" "dup2" "ac_cv_func_dup2" |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12065 | if test "x$ac_cv_func_dup2" = xyes; then : |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12066 | $as_echo "#define HAVE_DUP2 1" >>confdefs.h |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12067 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12068 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12069 | case " $LIBOBJS " in |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12070 | *" dup2.$ac_objext "* ) ;; |
| 12071 | *) LIBOBJS="$LIBOBJS dup2.$ac_objext" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12072 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12073 | esac |
| 12074 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12075 | fi |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12076 | |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12077 | ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup" |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12078 | if test "x$ac_cv_func_strdup" = xyes; then : |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12079 | $as_echo "#define HAVE_STRDUP 1" >>confdefs.h |
| 12080 | |
| 12081 | else |
| 12082 | case " $LIBOBJS " in |
| 12083 | *" strdup.$ac_objext "* ) ;; |
| 12084 | *) LIBOBJS="$LIBOBJS strdup.$ac_objext" |
| 12085 | ;; |
| 12086 | esac |
| 12087 | |
| 12088 | fi |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12089 | |
| 12090 | |
| 12091 | for ac_func in getpgrp |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12092 | do : |
| 12093 | ac_fn_c_check_func "$LINENO" "getpgrp" "ac_cv_func_getpgrp" |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12094 | if test "x$ac_cv_func_getpgrp" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12095 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12096 | #define HAVE_GETPGRP 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12097 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12098 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12099 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12100 | #include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12101 | int |
| 12102 | main () |
| 12103 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12104 | getpgrp(0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12105 | ; |
| 12106 | return 0; |
| 12107 | } |
| 12108 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12109 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12110 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12111 | $as_echo "#define GETPGRP_HAVE_ARG 1" >>confdefs.h |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12112 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12113 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12114 | 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] | 12115 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12116 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12117 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12118 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 12119 | for ac_func in setpgrp |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12120 | do : |
| 12121 | ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp" |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12122 | if test "x$ac_cv_func_setpgrp" = xyes; then : |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 12123 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12124 | #define HAVE_SETPGRP 1 |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 12125 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12126 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12127 | /* end confdefs.h. */ |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 12128 | #include <unistd.h> |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 12129 | int |
| 12130 | main () |
| 12131 | { |
| 12132 | setpgrp(0,0); |
| 12133 | ; |
| 12134 | return 0; |
| 12135 | } |
| 12136 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12137 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12138 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12139 | $as_echo "#define SETPGRP_HAVE_ARG 1" >>confdefs.h |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12140 | |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 12141 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12142 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 12143 | |
| 12144 | fi |
| 12145 | done |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 12146 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12147 | for ac_func in gettimeofday |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12148 | do : |
| 12149 | ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12150 | if test "x$ac_cv_func_gettimeofday" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12151 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12152 | #define HAVE_GETTIMEOFDAY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12153 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12154 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12155 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12156 | #include <sys/time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12157 | int |
| 12158 | main () |
| 12159 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12160 | gettimeofday((struct timeval*)0,(struct timezone*)0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12161 | ; |
| 12162 | return 0; |
| 12163 | } |
| 12164 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12165 | if ac_fn_c_try_compile "$LINENO"; then : |
| 12166 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12167 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12168 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12169 | $as_echo "#define GETTIMEOFDAY_NO_TZ 1" >>confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12170 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12171 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12172 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12173 | 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] | 12174 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12175 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12176 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12177 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12178 | |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12179 | for ac_func in clock_gettime |
| 12180 | do : |
| 12181 | ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" |
| 12182 | if test "x$ac_cv_func_clock_gettime" = xyes; then : |
| 12183 | cat >>confdefs.h <<_ACEOF |
| 12184 | #define HAVE_CLOCK_GETTIME 1 |
| 12185 | _ACEOF |
| 12186 | |
| 12187 | else |
| 12188 | |
| 12189 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 |
| 12190 | $as_echo_n "checking for clock_gettime in -lrt... " >&6; } |
| 12191 | if ${ac_cv_lib_rt_clock_gettime+:} false; then : |
| 12192 | $as_echo_n "(cached) " >&6 |
| 12193 | else |
| 12194 | ac_check_lib_save_LIBS=$LIBS |
| 12195 | LIBS="-lrt $LIBS" |
| 12196 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12197 | /* end confdefs.h. */ |
| 12198 | |
| 12199 | /* Override any GCC internal prototype to avoid an error. |
| 12200 | Use char because int might match the return type of a GCC |
| 12201 | builtin and then its argument prototype would still apply. */ |
| 12202 | #ifdef __cplusplus |
| 12203 | extern "C" |
| 12204 | #endif |
| 12205 | char clock_gettime (); |
| 12206 | int |
| 12207 | main () |
| 12208 | { |
| 12209 | return clock_gettime (); |
| 12210 | ; |
| 12211 | return 0; |
| 12212 | } |
| 12213 | _ACEOF |
| 12214 | if ac_fn_c_try_link "$LINENO"; then : |
| 12215 | ac_cv_lib_rt_clock_gettime=yes |
| 12216 | else |
| 12217 | ac_cv_lib_rt_clock_gettime=no |
| 12218 | fi |
| 12219 | rm -f core conftest.err conftest.$ac_objext \ |
| 12220 | conftest$ac_exeext conftest.$ac_ext |
| 12221 | LIBS=$ac_check_lib_save_LIBS |
| 12222 | fi |
| 12223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 |
| 12224 | $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } |
| 12225 | if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then : |
| 12226 | |
Victor Stinner | 7efb833 | 2014-08-29 15:41:08 +0200 | [diff] [blame] | 12227 | LIBS="$LIBS -lrt" |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12228 | $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h |
| 12229 | |
| 12230 | |
| 12231 | $as_echo "#define TIMEMODULE_LIB rt" >>confdefs.h |
| 12232 | |
| 12233 | |
| 12234 | fi |
| 12235 | |
| 12236 | |
| 12237 | fi |
| 12238 | done |
| 12239 | |
| 12240 | |
| 12241 | for ac_func in clock_getres |
| 12242 | do : |
| 12243 | ac_fn_c_check_func "$LINENO" "clock_getres" "ac_cv_func_clock_getres" |
| 12244 | if test "x$ac_cv_func_clock_getres" = xyes; then : |
| 12245 | cat >>confdefs.h <<_ACEOF |
| 12246 | #define HAVE_CLOCK_GETRES 1 |
| 12247 | _ACEOF |
| 12248 | |
| 12249 | else |
| 12250 | |
| 12251 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_getres in -lrt" >&5 |
| 12252 | $as_echo_n "checking for clock_getres in -lrt... " >&6; } |
| 12253 | if ${ac_cv_lib_rt_clock_getres+:} false; then : |
| 12254 | $as_echo_n "(cached) " >&6 |
| 12255 | else |
| 12256 | ac_check_lib_save_LIBS=$LIBS |
| 12257 | LIBS="-lrt $LIBS" |
| 12258 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12259 | /* end confdefs.h. */ |
| 12260 | |
| 12261 | /* Override any GCC internal prototype to avoid an error. |
| 12262 | Use char because int might match the return type of a GCC |
| 12263 | builtin and then its argument prototype would still apply. */ |
| 12264 | #ifdef __cplusplus |
| 12265 | extern "C" |
| 12266 | #endif |
| 12267 | char clock_getres (); |
| 12268 | int |
| 12269 | main () |
| 12270 | { |
| 12271 | return clock_getres (); |
| 12272 | ; |
| 12273 | return 0; |
| 12274 | } |
| 12275 | _ACEOF |
| 12276 | if ac_fn_c_try_link "$LINENO"; then : |
| 12277 | ac_cv_lib_rt_clock_getres=yes |
| 12278 | else |
| 12279 | ac_cv_lib_rt_clock_getres=no |
| 12280 | fi |
| 12281 | rm -f core conftest.err conftest.$ac_objext \ |
| 12282 | conftest$ac_exeext conftest.$ac_ext |
| 12283 | LIBS=$ac_check_lib_save_LIBS |
| 12284 | fi |
| 12285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_getres" >&5 |
| 12286 | $as_echo "$ac_cv_lib_rt_clock_getres" >&6; } |
| 12287 | if test "x$ac_cv_lib_rt_clock_getres" = xyes; then : |
| 12288 | |
| 12289 | $as_echo "#define HAVE_CLOCK_GETRES 1" >>confdefs.h |
| 12290 | |
| 12291 | |
| 12292 | fi |
| 12293 | |
| 12294 | |
| 12295 | fi |
| 12296 | done |
| 12297 | |
| 12298 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12299 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for major" >&5 |
| 12300 | $as_echo_n "checking for major... " >&6; } |
| 12301 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12302 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 12303 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 12304 | #if defined(MAJOR_IN_MKDEV) |
| 12305 | #include <sys/mkdev.h> |
| 12306 | #elif defined(MAJOR_IN_SYSMACROS) |
| 12307 | #include <sys/sysmacros.h> |
| 12308 | #else |
| 12309 | #include <sys/types.h> |
| 12310 | #endif |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 12311 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 12312 | int |
| 12313 | main () |
| 12314 | { |
| 12315 | |
| 12316 | makedev(major(0),minor(0)); |
| 12317 | |
| 12318 | ; |
| 12319 | return 0; |
| 12320 | } |
| 12321 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12322 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 12323 | |
| 12324 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12325 | $as_echo "#define HAVE_DEVICE_MACROS 1" >>confdefs.h |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 12326 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12327 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 12328 | $as_echo "yes" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 12329 | |
| 12330 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12331 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12333 | $as_echo "no" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 12334 | |
| 12335 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12336 | rm -f core conftest.err conftest.$ac_objext \ |
| 12337 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12338 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12339 | # 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] | 12340 | # for [no]getaddrinfo in netdb.h. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12341 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5 |
| 12342 | $as_echo_n "checking for getaddrinfo... " >&6; } |
| 12343 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12344 | /* end confdefs.h. */ |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12345 | |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 12346 | #include <sys/types.h> |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12347 | #include <sys/socket.h> |
| 12348 | #include <netdb.h> |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 12349 | #include <stdio.h> |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12350 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12351 | int |
| 12352 | main () |
| 12353 | { |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12354 | getaddrinfo(NULL, NULL, NULL, NULL); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12355 | ; |
| 12356 | return 0; |
| 12357 | } |
| 12358 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12359 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12360 | have_getaddrinfo=yes |
| 12361 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12362 | have_getaddrinfo=no |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12363 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12364 | rm -f core conftest.err conftest.$ac_objext \ |
| 12365 | conftest$ac_exeext conftest.$ac_ext |
| 12366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getaddrinfo" >&5 |
| 12367 | $as_echo "$have_getaddrinfo" >&6; } |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12368 | if test $have_getaddrinfo = yes |
| 12369 | then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12370 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking getaddrinfo bug" >&5 |
| 12371 | $as_echo_n "checking getaddrinfo bug... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12372 | if ${ac_cv_buggy_getaddrinfo+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12373 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12374 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12375 | if test "$cross_compiling" = yes; then : |
Matthias Klose | 9635013 | 2012-03-15 20:42:23 +0100 | [diff] [blame] | 12376 | |
| 12377 | if test "${enable_ipv6+set}" = set; then |
| 12378 | ac_cv_buggy_getaddrinfo="no -- configured with --(en|dis)able-ipv6" |
| 12379 | else |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12380 | ac_cv_buggy_getaddrinfo=yes |
Matthias Klose | 9635013 | 2012-03-15 20:42:23 +0100 | [diff] [blame] | 12381 | fi |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12382 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12383 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12384 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12385 | |
Stefan Krah | 19c2139 | 2012-11-22 23:47:32 +0100 | [diff] [blame] | 12386 | #include <stdio.h> |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12387 | #include <sys/types.h> |
| 12388 | #include <netdb.h> |
| 12389 | #include <string.h> |
| 12390 | #include <sys/socket.h> |
| 12391 | #include <netinet/in.h> |
| 12392 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12393 | int main() |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12394 | { |
| 12395 | int passive, gaierr, inet4 = 0, inet6 = 0; |
| 12396 | struct addrinfo hints, *ai, *aitop; |
| 12397 | char straddr[INET6_ADDRSTRLEN], strport[16]; |
| 12398 | |
| 12399 | for (passive = 0; passive <= 1; passive++) { |
| 12400 | memset(&hints, 0, sizeof(hints)); |
| 12401 | hints.ai_family = AF_UNSPEC; |
| 12402 | hints.ai_flags = passive ? AI_PASSIVE : 0; |
| 12403 | hints.ai_socktype = SOCK_STREAM; |
Hye-Shik Chang | 54f9439 | 2004-04-14 07:55:31 +0000 | [diff] [blame] | 12404 | hints.ai_protocol = IPPROTO_TCP; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12405 | if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { |
| 12406 | (void)gai_strerror(gaierr); |
| 12407 | goto bad; |
| 12408 | } |
| 12409 | for (ai = aitop; ai; ai = ai->ai_next) { |
| 12410 | if (ai->ai_addr == NULL || |
| 12411 | ai->ai_addrlen == 0 || |
| 12412 | getnameinfo(ai->ai_addr, ai->ai_addrlen, |
| 12413 | straddr, sizeof(straddr), strport, sizeof(strport), |
| 12414 | NI_NUMERICHOST|NI_NUMERICSERV) != 0) { |
| 12415 | goto bad; |
| 12416 | } |
| 12417 | switch (ai->ai_family) { |
| 12418 | case AF_INET: |
| 12419 | if (strcmp(strport, "54321") != 0) { |
| 12420 | goto bad; |
| 12421 | } |
| 12422 | if (passive) { |
| 12423 | if (strcmp(straddr, "0.0.0.0") != 0) { |
| 12424 | goto bad; |
| 12425 | } |
| 12426 | } else { |
| 12427 | if (strcmp(straddr, "127.0.0.1") != 0) { |
| 12428 | goto bad; |
| 12429 | } |
| 12430 | } |
| 12431 | inet4++; |
| 12432 | break; |
| 12433 | case AF_INET6: |
| 12434 | if (strcmp(strport, "54321") != 0) { |
| 12435 | goto bad; |
| 12436 | } |
| 12437 | if (passive) { |
| 12438 | if (strcmp(straddr, "::") != 0) { |
| 12439 | goto bad; |
| 12440 | } |
| 12441 | } else { |
| 12442 | if (strcmp(straddr, "::1") != 0) { |
| 12443 | goto bad; |
| 12444 | } |
| 12445 | } |
| 12446 | inet6++; |
| 12447 | break; |
| 12448 | case AF_UNSPEC: |
| 12449 | goto bad; |
| 12450 | break; |
| 12451 | default: |
| 12452 | /* another family support? */ |
| 12453 | break; |
| 12454 | } |
| 12455 | } |
| 12456 | } |
| 12457 | |
| 12458 | if (!(inet4 == 0 || inet4 == 2)) |
| 12459 | goto bad; |
| 12460 | if (!(inet6 == 0 || inet6 == 2)) |
| 12461 | goto bad; |
| 12462 | |
| 12463 | if (aitop) |
| 12464 | freeaddrinfo(aitop); |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12465 | return 0; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12466 | |
| 12467 | bad: |
| 12468 | if (aitop) |
| 12469 | freeaddrinfo(aitop); |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12470 | return 1; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12471 | } |
| 12472 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12473 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12474 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12475 | ac_cv_buggy_getaddrinfo=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12476 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12477 | ac_cv_buggy_getaddrinfo=yes |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12478 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12479 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 12480 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12481 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12482 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12483 | fi |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12484 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12485 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12486 | |
Benjamin Peterson | d4694ed | 2010-11-01 01:44:30 +0000 | [diff] [blame] | 12487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_buggy_getaddrinfo" >&5 |
| 12488 | $as_echo "$ac_cv_buggy_getaddrinfo" >&6; } |
| 12489 | |
doko@ubuntu.com | 9c7817e | 2012-06-30 17:05:13 +0200 | [diff] [blame] | 12490 | if test $have_getaddrinfo = no || test "$ac_cv_buggy_getaddrinfo" = yes |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12491 | then |
| 12492 | if test $ipv6 = yes |
| 12493 | then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12494 | echo 'Fatal: You must get working getaddrinfo() function.' |
| 12495 | echo ' or you can specify "--disable-ipv6"'. |
| 12496 | exit 1 |
| 12497 | fi |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12498 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12499 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12500 | $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12501 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12502 | fi |
Benjamin Peterson | d4694ed | 2010-11-01 01:44:30 +0000 | [diff] [blame] | 12503 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 12504 | for ac_func in getnameinfo |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12505 | do : |
| 12506 | ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo" |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12507 | if test "x$ac_cv_func_getnameinfo" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12508 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12509 | #define HAVE_GETNAMEINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12510 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12511 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12512 | fi |
| 12513 | done |
| 12514 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12515 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12516 | # checks for structures |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12517 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 |
| 12518 | $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] | 12519 | if ${ac_cv_header_time+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12520 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12521 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12522 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12523 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12524 | #include <sys/types.h> |
| 12525 | #include <sys/time.h> |
| 12526 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12527 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12528 | int |
| 12529 | main () |
| 12530 | { |
| 12531 | if ((struct tm *) 0) |
| 12532 | return 0; |
| 12533 | ; |
| 12534 | return 0; |
| 12535 | } |
| 12536 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12537 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12538 | ac_cv_header_time=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12539 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12540 | ac_cv_header_time=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12541 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12542 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12543 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 |
| 12545 | $as_echo "$ac_cv_header_time" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12546 | if test $ac_cv_header_time = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12547 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12548 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12549 | |
| 12550 | fi |
| 12551 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12552 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 12553 | $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] | 12554 | if ${ac_cv_struct_tm+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12555 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12556 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12557 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12558 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12559 | #include <sys/types.h> |
| 12560 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12561 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12562 | int |
| 12563 | main () |
| 12564 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12565 | struct tm tm; |
| 12566 | int *p = &tm.tm_sec; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12567 | return !p; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12568 | ; |
| 12569 | return 0; |
| 12570 | } |
| 12571 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12572 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12573 | ac_cv_struct_tm=time.h |
| 12574 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12575 | ac_cv_struct_tm=sys/time.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12576 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12577 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12578 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12579 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 |
| 12580 | $as_echo "$ac_cv_struct_tm" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12581 | if test $ac_cv_struct_tm = sys/time.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12582 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12583 | $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12584 | |
| 12585 | fi |
| 12586 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12587 | 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] | 12588 | #include <$ac_cv_struct_tm> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12589 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12590 | " |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12591 | 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] | 12592 | |
| 12593 | cat >>confdefs.h <<_ACEOF |
| 12594 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 12595 | _ACEOF |
| 12596 | |
| 12597 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12598 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12599 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12600 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 12601 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12602 | $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12603 | |
| 12604 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12605 | ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> |
| 12606 | " |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12607 | if test "x$ac_cv_have_decl_tzname" = xyes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12608 | ac_have_decl=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12609 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12610 | ac_have_decl=0 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12611 | fi |
| 12612 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12613 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12614 | #define HAVE_DECL_TZNAME $ac_have_decl |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12615 | _ACEOF |
| 12616 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12617 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 |
| 12618 | $as_echo_n "checking for tzname... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12619 | if ${ac_cv_var_tzname+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12620 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12621 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12622 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12623 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12624 | #include <time.h> |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12625 | #if !HAVE_DECL_TZNAME |
| 12626 | extern char *tzname[]; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12627 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12628 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12629 | int |
| 12630 | main () |
| 12631 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12632 | return tzname[0][0]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12633 | ; |
| 12634 | return 0; |
| 12635 | } |
| 12636 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12637 | if ac_fn_c_try_link "$LINENO"; then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12638 | ac_cv_var_tzname=yes |
| 12639 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12640 | ac_cv_var_tzname=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12641 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12642 | rm -f core conftest.err conftest.$ac_objext \ |
| 12643 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12644 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 |
| 12646 | $as_echo "$ac_cv_var_tzname" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12647 | if test $ac_cv_var_tzname = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12648 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12649 | $as_echo "#define HAVE_TZNAME 1" >>confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12650 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12651 | fi |
| 12652 | fi |
| 12653 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12654 | 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] | 12655 | 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] | 12656 | |
| 12657 | cat >>confdefs.h <<_ACEOF |
| 12658 | #define HAVE_STRUCT_STAT_ST_RDEV 1 |
| 12659 | _ACEOF |
| 12660 | |
| 12661 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 12662 | fi |
| 12663 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12664 | 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] | 12665 | if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then : |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 12666 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12667 | cat >>confdefs.h <<_ACEOF |
| 12668 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 |
| 12669 | _ACEOF |
| 12670 | |
| 12671 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 12672 | fi |
| 12673 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12674 | 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] | 12675 | 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] | 12676 | |
| 12677 | cat >>confdefs.h <<_ACEOF |
| 12678 | #define HAVE_STRUCT_STAT_ST_FLAGS 1 |
| 12679 | _ACEOF |
| 12680 | |
| 12681 | |
| 12682 | fi |
| 12683 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12684 | 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] | 12685 | 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] | 12686 | |
| 12687 | cat >>confdefs.h <<_ACEOF |
| 12688 | #define HAVE_STRUCT_STAT_ST_GEN 1 |
| 12689 | _ACEOF |
| 12690 | |
| 12691 | |
| 12692 | fi |
| 12693 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12694 | 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] | 12695 | 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] | 12696 | |
| 12697 | cat >>confdefs.h <<_ACEOF |
| 12698 | #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1 |
| 12699 | _ACEOF |
| 12700 | |
| 12701 | |
| 12702 | fi |
| 12703 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12704 | 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] | 12705 | if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then : |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 12706 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12707 | cat >>confdefs.h <<_ACEOF |
| 12708 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 |
| 12709 | _ACEOF |
| 12710 | |
| 12711 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12712 | $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 12713 | |
| 12714 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12715 | case " $LIBOBJS " in |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12716 | *" fileblocks.$ac_objext "* ) ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12717 | *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" |
| 12718 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12719 | esac |
| 12720 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 12721 | fi |
| 12722 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12723 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12724 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12725 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for time.h that defines altzone" >&5 |
| 12726 | $as_echo_n "checking for time.h that defines altzone... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12727 | if ${ac_cv_header_time_altzone+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12728 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12729 | else |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 12730 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12731 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12732 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12733 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12734 | int |
| 12735 | main () |
| 12736 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12737 | return altzone; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12738 | ; |
| 12739 | return 0; |
| 12740 | } |
| 12741 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12742 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12743 | ac_cv_header_time_altzone=yes |
| 12744 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12745 | ac_cv_header_time_altzone=no |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12746 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12747 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 12748 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12749 | fi |
| 12750 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time_altzone" >&5 |
| 12752 | $as_echo "$ac_cv_header_time_altzone" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12753 | if test $ac_cv_header_time_altzone = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12754 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12755 | $as_echo "#define HAVE_ALTZONE 1" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12756 | |
| 12757 | fi |
| 12758 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 12759 | was_it_defined=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12760 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be included" >&5 |
| 12761 | $as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; } |
| 12762 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12763 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12764 | |
| 12765 | #include <sys/types.h> |
| 12766 | #include <sys/select.h> |
| 12767 | #include <sys/time.h> |
| 12768 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12769 | int |
| 12770 | main () |
| 12771 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12772 | ; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12773 | ; |
| 12774 | return 0; |
| 12775 | } |
| 12776 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12777 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12778 | |
| 12779 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12780 | $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] | 12781 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 12782 | was_it_defined=yes |
| 12783 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12784 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12785 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5 |
| 12787 | $as_echo "$was_it_defined" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12788 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12789 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for addrinfo" >&5 |
| 12790 | $as_echo_n "checking for addrinfo... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12791 | if ${ac_cv_struct_addrinfo+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12792 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12793 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12794 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12795 | /* end confdefs.h. */ |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 12796 | #include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12797 | int |
| 12798 | main () |
| 12799 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12800 | struct addrinfo a |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12801 | ; |
| 12802 | return 0; |
| 12803 | } |
| 12804 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12805 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12806 | ac_cv_struct_addrinfo=yes |
| 12807 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12808 | ac_cv_struct_addrinfo=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12809 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12810 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12811 | fi |
| 12812 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_addrinfo" >&5 |
| 12814 | $as_echo "$ac_cv_struct_addrinfo" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12815 | if test $ac_cv_struct_addrinfo = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12816 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12817 | $as_echo "#define HAVE_ADDRINFO 1" >>confdefs.h |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12818 | |
| 12819 | fi |
| 12820 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12821 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage" >&5 |
| 12822 | $as_echo_n "checking for sockaddr_storage... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12823 | if ${ac_cv_struct_sockaddr_storage+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12824 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12825 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12826 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12827 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12828 | |
| 12829 | # include <sys/types.h> |
| 12830 | # include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12831 | int |
| 12832 | main () |
| 12833 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12834 | struct sockaddr_storage s |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12835 | ; |
| 12836 | return 0; |
| 12837 | } |
| 12838 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12839 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12840 | ac_cv_struct_sockaddr_storage=yes |
| 12841 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12842 | ac_cv_struct_sockaddr_storage=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12843 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12844 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12845 | fi |
| 12846 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_storage" >&5 |
| 12848 | $as_echo "$ac_cv_struct_sockaddr_storage" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12849 | if test $ac_cv_struct_sockaddr_storage = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12850 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12851 | $as_echo "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12852 | |
| 12853 | fi |
| 12854 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12855 | # checks for compiler characteristics |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12856 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12857 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5 |
| 12858 | $as_echo_n "checking whether char is unsigned... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12859 | if ${ac_cv_c_char_unsigned+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12860 | $as_echo_n "(cached) " >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 12861 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12862 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12863 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12864 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12865 | int |
| 12866 | main () |
| 12867 | { |
| 12868 | static int test_array [1 - 2 * !(((char) -1) < 0)]; |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 12869 | test_array [0] = 0; |
| 12870 | return test_array [0]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12871 | |
| 12872 | ; |
| 12873 | return 0; |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12874 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12875 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12876 | if ac_fn_c_try_compile "$LINENO"; then : |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12877 | ac_cv_c_char_unsigned=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12878 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12879 | ac_cv_c_char_unsigned=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12880 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12881 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12882 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5 |
| 12884 | $as_echo "$ac_cv_c_char_unsigned" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12885 | if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12886 | $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12887 | |
| 12888 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12889 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12890 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
| 12891 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12892 | if ${ac_cv_c_const+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12893 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12894 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12895 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12896 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12897 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12898 | int |
| 12899 | main () |
| 12900 | { |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 12901 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12902 | #ifndef __cplusplus |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 12903 | /* Ultrix mips cc rejects this sort of thing. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12904 | typedef int charset[2]; |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 12905 | const charset cs = { 0, 0 }; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12906 | /* SunOS 4.1.1 cc rejects this. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12907 | char const *const *pcpcc; |
| 12908 | char **ppc; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12909 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 12910 | struct point {int x, y;}; |
| 12911 | static struct point const zero = {0,0}; |
| 12912 | /* AIX XL C 1.02.0.0 rejects this. |
| 12913 | It does not let you subtract one const X* pointer from another in |
| 12914 | an arm of an if-expression whose if-part is not a constant |
| 12915 | expression */ |
| 12916 | const char *g = "string"; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12917 | pcpcc = &g + (g ? g-g : 0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12918 | /* HPUX 7.0 cc rejects these. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12919 | ++pcpcc; |
| 12920 | ppc = (char**) pcpcc; |
| 12921 | pcpcc = (char const *const *) ppc; |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 12922 | { /* SCO 3.2v4 cc rejects this sort of thing. */ |
| 12923 | char tx; |
| 12924 | char *t = &tx; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12925 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12926 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12927 | *t++ = 0; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12928 | if (s) return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12929 | } |
| 12930 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 12931 | int x[] = {25, 17}; |
| 12932 | const int *foo = &x[0]; |
| 12933 | ++foo; |
| 12934 | } |
| 12935 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 12936 | typedef const int *iptr; |
| 12937 | iptr p = 0; |
| 12938 | ++p; |
| 12939 | } |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 12940 | { /* 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] | 12941 | "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] | 12942 | struct s { int j; const int *ap[3]; } bx; |
| 12943 | struct s *b = &bx; b->j = 5; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12944 | } |
| 12945 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 12946 | const int foo = 10; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12947 | if (!foo) return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12948 | } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12949 | return !cs[0] && !zero.x; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12950 | #endif |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12951 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12952 | ; |
| 12953 | return 0; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12954 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12955 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12956 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12957 | ac_cv_c_const=yes |
| 12958 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12959 | ac_cv_c_const=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12960 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12961 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12962 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
| 12964 | $as_echo "$ac_cv_c_const" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12965 | if test $ac_cv_c_const = no; 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 const /**/" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12968 | |
| 12969 | fi |
| 12970 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12971 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 12972 | works=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12973 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 |
| 12974 | $as_echo_n "checking for working volatile... " >&6; } |
| 12975 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12976 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12977 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12978 | int |
| 12979 | main () |
| 12980 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12981 | volatile int x; x = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12982 | ; |
| 12983 | return 0; |
| 12984 | } |
| 12985 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12986 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 12987 | works=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12988 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12989 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12990 | $as_echo "#define volatile /**/" >>confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12991 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 12992 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +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 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 |
| 12996 | $as_echo "$works" >&6; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12997 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 12998 | works=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12999 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working signed char" >&5 |
| 13000 | $as_echo_n "checking for working signed char... " >&6; } |
| 13001 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13002 | /* end confdefs.h. */ |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 13003 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13004 | int |
| 13005 | main () |
| 13006 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13007 | signed char c; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13008 | ; |
| 13009 | return 0; |
| 13010 | } |
| 13011 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13012 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13013 | works=yes |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 13014 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13015 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13016 | $as_echo "#define signed /**/" >>confdefs.h |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13017 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13018 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13019 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13020 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13021 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 |
| 13022 | $as_echo "$works" >&6; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13023 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13024 | have_prototypes=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13025 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prototypes" >&5 |
| 13026 | $as_echo_n "checking for prototypes... " >&6; } |
| 13027 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13028 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13029 | int foo(int x) { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13030 | int |
| 13031 | main () |
| 13032 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13033 | return foo(10); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13034 | ; |
| 13035 | return 0; |
| 13036 | } |
| 13037 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13038 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13039 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13040 | $as_echo "#define HAVE_PROTOTYPES 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13041 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13042 | have_prototypes=yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13043 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13044 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_prototypes" >&5 |
| 13046 | $as_echo "$have_prototypes" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13047 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13048 | works=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13049 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for variable length prototypes and stdarg.h" >&5 |
| 13050 | $as_echo_n "checking for variable length prototypes and stdarg.h... " >&6; } |
| 13051 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13052 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13053 | |
| 13054 | #include <stdarg.h> |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 13055 | int foo(int x, ...) { |
| 13056 | va_list va; |
| 13057 | va_start(va, x); |
| 13058 | va_arg(va, int); |
| 13059 | va_arg(va, char *); |
| 13060 | va_arg(va, double); |
| 13061 | return 0; |
| 13062 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13063 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13064 | int |
| 13065 | main () |
| 13066 | { |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 13067 | return foo(10, "", 3.14); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13068 | ; |
| 13069 | return 0; |
| 13070 | } |
| 13071 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13072 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13073 | |
| 13074 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13075 | $as_echo "#define HAVE_STDARG_PROTOTYPES 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13076 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13077 | works=yes |
| 13078 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13079 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13080 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13081 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 |
| 13082 | $as_echo "$works" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13083 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 13084 | # check for socketpair |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13085 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socketpair" >&5 |
| 13086 | $as_echo_n "checking for socketpair... " >&6; } |
| 13087 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 13088 | /* end confdefs.h. */ |
| 13089 | |
| 13090 | #include <sys/types.h> |
| 13091 | #include <sys/socket.h> |
| 13092 | |
| 13093 | int |
| 13094 | main () |
| 13095 | { |
| 13096 | void *x=socketpair |
| 13097 | ; |
| 13098 | return 0; |
| 13099 | } |
| 13100 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13101 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 13102 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13103 | $as_echo "#define HAVE_SOCKETPAIR 1" >>confdefs.h |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 13104 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13106 | $as_echo "yes" >&6; } |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 13107 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13109 | $as_echo "no" >&6; } |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 13110 | |
| 13111 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13112 | 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] | 13113 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13114 | # check if sockaddr has sa_len member |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13115 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr has sa_len member" >&5 |
| 13116 | $as_echo_n "checking if sockaddr has sa_len member... " >&6; } |
| 13117 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13118 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13119 | #include <sys/types.h> |
| 13120 | #include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13121 | int |
| 13122 | main () |
| 13123 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13124 | struct sockaddr x; |
| 13125 | x.sa_len = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13126 | ; |
| 13127 | return 0; |
| 13128 | } |
| 13129 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13130 | if ac_fn_c_try_compile "$LINENO"; then : |
| 13131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 13132 | $as_echo "yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13133 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13134 | $as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13135 | |
| 13136 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13137 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13138 | $as_echo "no" >&6; } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13139 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13140 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13141 | 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] | 13142 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13143 | va_list_is_array=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13144 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether va_list is an array" >&5 |
| 13145 | $as_echo_n "checking whether va_list is an array... " >&6; } |
| 13146 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13147 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13148 | |
| 13149 | #ifdef HAVE_STDARG_PROTOTYPES |
| 13150 | #include <stdarg.h> |
| 13151 | #else |
| 13152 | #include <varargs.h> |
| 13153 | #endif |
| 13154 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13155 | int |
| 13156 | main () |
| 13157 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13158 | va_list list1, list2; list1 = list2; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13159 | ; |
| 13160 | return 0; |
| 13161 | } |
| 13162 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13163 | if ac_fn_c_try_compile "$LINENO"; then : |
| 13164 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13165 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13166 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13167 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13168 | $as_echo "#define VA_LIST_IS_ARRAY 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13169 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13170 | va_list_is_array=yes |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13171 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13172 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13173 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $va_list_is_array" >&5 |
| 13175 | $as_echo "$va_list_is_array" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13176 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13177 | # 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] | 13178 | |
| 13179 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13180 | 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] | 13181 | if test "x$ac_cv_func_gethostbyname_r" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13182 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13183 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 13184 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13185 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 6 args" >&5 |
| 13186 | $as_echo_n "checking gethostbyname_r with 6 args... " >&6; } |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13187 | OLD_CFLAGS=$CFLAGS |
| 13188 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13189 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13190 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13191 | |
| 13192 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13193 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13194 | int |
| 13195 | main () |
| 13196 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13197 | |
| 13198 | char *name; |
| 13199 | struct hostent *he, *res; |
| 13200 | char buffer[2048]; |
| 13201 | int buflen = 2048; |
| 13202 | int h_errnop; |
| 13203 | |
| 13204 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13205 | |
| 13206 | ; |
| 13207 | return 0; |
| 13208 | } |
| 13209 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13210 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13211 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13212 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 13213 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13214 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13215 | $as_echo "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13216 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13217 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 13218 | $as_echo "yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13219 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13220 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13221 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13223 | $as_echo "no" >&6; } |
| 13224 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 5 args" >&5 |
| 13225 | $as_echo_n "checking gethostbyname_r with 5 args... " >&6; } |
| 13226 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13227 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13228 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13229 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13230 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13231 | int |
| 13232 | main () |
| 13233 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13234 | |
| 13235 | char *name; |
| 13236 | struct hostent *he; |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13237 | char buffer[2048]; |
| 13238 | int buflen = 2048; |
| 13239 | int h_errnop; |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13240 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13241 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13242 | |
| 13243 | ; |
| 13244 | return 0; |
| 13245 | } |
| 13246 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13247 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13248 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13249 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 13250 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13251 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13252 | $as_echo "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13253 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 13255 | $as_echo "yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13256 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13257 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13258 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13260 | $as_echo "no" >&6; } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13261 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 3 args" >&5 |
| 13262 | $as_echo_n "checking gethostbyname_r with 3 args... " >&6; } |
| 13263 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13264 | /* end confdefs.h. */ |
| 13265 | |
| 13266 | # include <netdb.h> |
| 13267 | |
| 13268 | int |
| 13269 | main () |
| 13270 | { |
| 13271 | |
| 13272 | char *name; |
| 13273 | struct hostent *he; |
| 13274 | struct hostent_data data; |
| 13275 | |
| 13276 | (void) gethostbyname_r(name, he, &data); |
| 13277 | |
| 13278 | ; |
| 13279 | return 0; |
| 13280 | } |
| 13281 | _ACEOF |
| 13282 | if ac_fn_c_try_compile "$LINENO"; then : |
| 13283 | |
| 13284 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h |
| 13285 | |
| 13286 | |
| 13287 | $as_echo "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h |
| 13288 | |
| 13289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 13290 | $as_echo "yes" >&6; } |
| 13291 | |
| 13292 | else |
| 13293 | |
| 13294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13295 | $as_echo "no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13296 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13297 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13298 | 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] | 13299 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13300 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13301 | 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] | 13302 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13303 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13304 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13305 | CFLAGS=$OLD_CFLAGS |
| 13306 | |
| 13307 | else |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13308 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13309 | for ac_func in gethostbyname |
| 13310 | do : |
| 13311 | ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13312 | if test "x$ac_cv_func_gethostbyname" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13313 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13314 | #define HAVE_GETHOSTBYNAME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13315 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13316 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13317 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 13318 | done |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13319 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13320 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13321 | fi |
| 13322 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13323 | |
| 13324 | |
| 13325 | |
| 13326 | |
| 13327 | |
| 13328 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13329 | # checks for system services |
| 13330 | # (none yet) |
| 13331 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13332 | # Linux requires this for correct f.p. operations |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13333 | 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] | 13334 | if test "x$ac_cv_func___fpu_control" = xyes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13335 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 13336 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13337 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __fpu_control in -lieee" >&5 |
| 13338 | $as_echo_n "checking for __fpu_control in -lieee... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13339 | if ${ac_cv_lib_ieee___fpu_control+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13340 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13341 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13342 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13343 | LIBS="-lieee $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13344 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13345 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13346 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13347 | /* Override any GCC internal prototype to avoid an error. |
| 13348 | Use char because int might match the return type of a GCC |
| 13349 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13350 | #ifdef __cplusplus |
| 13351 | extern "C" |
| 13352 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13353 | char __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13354 | int |
| 13355 | main () |
| 13356 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13357 | return __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13358 | ; |
| 13359 | return 0; |
| 13360 | } |
| 13361 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13362 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13363 | ac_cv_lib_ieee___fpu_control=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13364 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13365 | ac_cv_lib_ieee___fpu_control=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13366 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13367 | rm -f core conftest.err conftest.$ac_objext \ |
| 13368 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13369 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13370 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ieee___fpu_control" >&5 |
| 13372 | $as_echo "$ac_cv_lib_ieee___fpu_control" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13373 | 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] | 13374 | cat >>confdefs.h <<_ACEOF |
| 13375 | #define HAVE_LIBIEEE 1 |
| 13376 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13377 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13378 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13379 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13380 | fi |
| 13381 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13382 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 13383 | fi |
| 13384 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13385 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13386 | # Check for --with-fpectl |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13387 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-fpectl" >&5 |
| 13388 | $as_echo_n "checking for --with-fpectl... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13389 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13390 | # Check whether --with-fpectl was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13391 | if test "${with_fpectl+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13392 | withval=$with_fpectl; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13393 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13394 | then |
| 13395 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13396 | $as_echo "#define WANT_SIGFPE_HANDLER 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13397 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 13399 | $as_echo "yes" >&6; } |
| 13400 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13401 | $as_echo "no" >&6; } |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13402 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13403 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13405 | $as_echo "no" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13406 | fi |
| 13407 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13408 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13409 | # check for --with-libm=... |
| 13410 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 13411 | case $ac_sys_system in |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 13412 | Darwin) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 13413 | *) LIBM=-lm |
| 13414 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13415 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libm=STRING" >&5 |
| 13416 | $as_echo_n "checking for --with-libm=STRING... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13417 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13418 | # Check whether --with-libm was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13419 | if test "${with_libm+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13420 | withval=$with_libm; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13421 | if test "$withval" = no |
| 13422 | then LIBM= |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13423 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBM empty" >&5 |
| 13424 | $as_echo "force LIBM empty" >&6; } |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13425 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13426 | then LIBM=$withval |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBM=\"$withval\"" >&5 |
| 13428 | $as_echo "set LIBM=\"$withval\"" >&6; } |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 13429 | 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] | 13430 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13431 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBM=\"$LIBM\"" >&5 |
| 13433 | $as_echo "default LIBM=\"$LIBM\"" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13434 | fi |
| 13435 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13436 | |
| 13437 | # check for --with-libc=... |
| 13438 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13439 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libc=STRING" >&5 |
| 13440 | $as_echo_n "checking for --with-libc=STRING... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13441 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13442 | # Check whether --with-libc was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13443 | if test "${with_libc+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13444 | withval=$with_libc; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13445 | if test "$withval" = no |
| 13446 | then LIBC= |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBC empty" >&5 |
| 13448 | $as_echo "force LIBC empty" >&6; } |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13449 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13450 | then LIBC=$withval |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBC=\"$withval\"" >&5 |
| 13452 | $as_echo "set LIBC=\"$withval\"" >&6; } |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 13453 | 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] | 13454 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13455 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBC=\"$LIBC\"" >&5 |
| 13457 | $as_echo "default LIBC=\"$LIBC\"" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13458 | fi |
| 13459 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13460 | |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 13461 | # ************************************** |
| 13462 | # * Check for gcc x64 inline assembler * |
| 13463 | # ************************************** |
| 13464 | |
| 13465 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x64 gcc inline assembler" >&5 |
| 13466 | $as_echo_n "checking for x64 gcc inline assembler... " >&6; } |
| 13467 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13468 | /* end confdefs.h. */ |
| 13469 | |
| 13470 | int |
| 13471 | main () |
| 13472 | { |
| 13473 | |
| 13474 | __asm__ __volatile__ ("movq %rcx, %rax"); |
| 13475 | |
| 13476 | ; |
| 13477 | return 0; |
| 13478 | } |
| 13479 | _ACEOF |
Stefan Krah | e31db2a | 2015-07-02 20:27:56 +0200 | [diff] [blame] | 13480 | if ac_fn_c_try_link "$LINENO"; then : |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 13481 | have_gcc_asm_for_x64=yes |
| 13482 | else |
| 13483 | have_gcc_asm_for_x64=no |
| 13484 | fi |
Stefan Krah | e31db2a | 2015-07-02 20:27:56 +0200 | [diff] [blame] | 13485 | rm -f core conftest.err conftest.$ac_objext \ |
| 13486 | conftest$ac_exeext conftest.$ac_ext |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 13487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_x64" >&5 |
| 13488 | $as_echo "$have_gcc_asm_for_x64" >&6; } |
| 13489 | if test "$have_gcc_asm_for_x64" = yes |
| 13490 | then |
| 13491 | |
| 13492 | $as_echo "#define HAVE_GCC_ASM_FOR_X64 1" >>confdefs.h |
| 13493 | |
| 13494 | fi |
| 13495 | |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13496 | # ************************************************** |
| 13497 | # * Check for various properties of floating point * |
| 13498 | # ************************************************** |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 13499 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13500 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are little-endian IEEE 754 binary64" >&5 |
| 13501 | $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] | 13502 | if ${ac_cv_little_endian_double+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13503 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13504 | else |
| 13505 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13506 | if test "$cross_compiling" = yes; then : |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13507 | ac_cv_little_endian_double=no |
| 13508 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13509 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13510 | /* end confdefs.h. */ |
| 13511 | |
| 13512 | #include <string.h> |
| 13513 | int main() { |
| 13514 | double x = 9006104071832581.0; |
| 13515 | if (memcmp(&x, "\x05\x04\x03\x02\x01\xff\x3f\x43", 8) == 0) |
| 13516 | return 0; |
| 13517 | else |
| 13518 | return 1; |
| 13519 | } |
| 13520 | |
| 13521 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13522 | if ac_fn_c_try_run "$LINENO"; then : |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13523 | ac_cv_little_endian_double=yes |
| 13524 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13525 | ac_cv_little_endian_double=no |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13526 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13527 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 13528 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13529 | fi |
| 13530 | |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13531 | fi |
| 13532 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_little_endian_double" >&5 |
| 13534 | $as_echo "$ac_cv_little_endian_double" >&6; } |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13535 | if test "$ac_cv_little_endian_double" = yes |
| 13536 | then |
| 13537 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13538 | $as_echo "#define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1" >>confdefs.h |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13539 | |
| 13540 | fi |
| 13541 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13542 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are big-endian IEEE 754 binary64" >&5 |
| 13543 | $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] | 13544 | if ${ac_cv_big_endian_double+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13545 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13546 | else |
| 13547 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13548 | if test "$cross_compiling" = yes; then : |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13549 | ac_cv_big_endian_double=no |
| 13550 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13551 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13552 | /* end confdefs.h. */ |
| 13553 | |
| 13554 | #include <string.h> |
| 13555 | int main() { |
| 13556 | double x = 9006104071832581.0; |
| 13557 | if (memcmp(&x, "\x43\x3f\xff\x01\x02\x03\x04\x05", 8) == 0) |
| 13558 | return 0; |
| 13559 | else |
| 13560 | return 1; |
| 13561 | } |
| 13562 | |
| 13563 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13564 | if ac_fn_c_try_run "$LINENO"; then : |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13565 | ac_cv_big_endian_double=yes |
| 13566 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13567 | ac_cv_big_endian_double=no |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13568 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13569 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 13570 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13571 | fi |
| 13572 | |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13573 | fi |
| 13574 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_big_endian_double" >&5 |
| 13576 | $as_echo "$ac_cv_big_endian_double" >&6; } |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13577 | if test "$ac_cv_big_endian_double" = yes |
| 13578 | then |
| 13579 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13580 | $as_echo "#define DOUBLE_IS_BIG_ENDIAN_IEEE754 1" >>confdefs.h |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13581 | |
| 13582 | fi |
| 13583 | |
| 13584 | # Some ARM platforms use a mixed-endian representation for doubles. |
| 13585 | # While Python doesn't currently have full support for these platforms |
| 13586 | # (see e.g., issue 1762561), we can at least make sure that float <-> string |
| 13587 | # conversions work. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13588 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are ARM mixed-endian IEEE 754 binary64" >&5 |
| 13589 | $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] | 13590 | if ${ac_cv_mixed_endian_double+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13591 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13592 | else |
| 13593 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13594 | if test "$cross_compiling" = yes; then : |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13595 | ac_cv_mixed_endian_double=no |
| 13596 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13597 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13598 | /* end confdefs.h. */ |
| 13599 | |
| 13600 | #include <string.h> |
| 13601 | int main() { |
| 13602 | double x = 9006104071832581.0; |
| 13603 | if (memcmp(&x, "\x01\xff\x3f\x43\x05\x04\x03\x02", 8) == 0) |
| 13604 | return 0; |
| 13605 | else |
| 13606 | return 1; |
| 13607 | } |
| 13608 | |
| 13609 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13610 | if ac_fn_c_try_run "$LINENO"; then : |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13611 | ac_cv_mixed_endian_double=yes |
| 13612 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13613 | ac_cv_mixed_endian_double=no |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13614 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13615 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 13616 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13617 | fi |
| 13618 | |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13619 | fi |
| 13620 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mixed_endian_double" >&5 |
| 13622 | $as_echo "$ac_cv_mixed_endian_double" >&6; } |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13623 | if test "$ac_cv_mixed_endian_double" = yes |
| 13624 | then |
| 13625 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13626 | $as_echo "#define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1" >>confdefs.h |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13627 | |
| 13628 | fi |
| 13629 | |
Mark Dickinson | 7abf8d4 | 2009-04-18 20:17:52 +0000 | [diff] [blame] | 13630 | # The short float repr introduced in Python 3.1 requires the |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 13631 | # correctly-rounded string <-> double conversion functions from |
Mark Dickinson | 7abf8d4 | 2009-04-18 20:17:52 +0000 | [diff] [blame] | 13632 | # 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] | 13633 | # 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] | 13634 | # 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] | 13635 | # using inline assembler to get and set the x87 FPU control word. |
Mark Dickinson | f4243f6 | 2009-11-15 13:47:27 +0000 | [diff] [blame] | 13636 | |
| 13637 | # This inline assembler syntax may also work for suncc and icc, |
| 13638 | # so we try it on all platforms. |
| 13639 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13640 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set x87 control word" >&5 |
| 13641 | $as_echo_n "checking whether we can use gcc inline assembler to get and set x87 control word... " >&6; } |
| 13642 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13643 | /* end confdefs.h. */ |
| 13644 | |
| 13645 | int |
| 13646 | main () |
| 13647 | { |
| 13648 | |
Mark Dickinson | f4243f6 | 2009-11-15 13:47:27 +0000 | [diff] [blame] | 13649 | unsigned short cw; |
| 13650 | __asm__ __volatile__ ("fnstcw %0" : "=m" (cw)); |
| 13651 | __asm__ __volatile__ ("fldcw %0" : : "m" (cw)); |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13652 | |
| 13653 | ; |
| 13654 | return 0; |
| 13655 | } |
| 13656 | _ACEOF |
Stefan Krah | e31db2a | 2015-07-02 20:27:56 +0200 | [diff] [blame] | 13657 | if ac_fn_c_try_link "$LINENO"; then : |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13658 | have_gcc_asm_for_x87=yes |
| 13659 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13660 | have_gcc_asm_for_x87=no |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13661 | fi |
Stefan Krah | e31db2a | 2015-07-02 20:27:56 +0200 | [diff] [blame] | 13662 | rm -f core conftest.err conftest.$ac_objext \ |
| 13663 | conftest$ac_exeext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_x87" >&5 |
| 13665 | $as_echo "$have_gcc_asm_for_x87" >&6; } |
Mark Dickinson | f4243f6 | 2009-11-15 13:47:27 +0000 | [diff] [blame] | 13666 | if test "$have_gcc_asm_for_x87" = yes |
| 13667 | then |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13668 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13669 | $as_echo "#define HAVE_GCC_ASM_FOR_X87 1" >>confdefs.h |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13670 | |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13671 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13672 | |
Benjamin Peterson | 8bdeb16 | 2014-04-17 00:00:31 -0400 | [diff] [blame] | 13673 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set mc68881 fpcr" >&5 |
| 13674 | $as_echo_n "checking whether we can use gcc inline assembler to get and set mc68881 fpcr... " >&6; } |
| 13675 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13676 | /* end confdefs.h. */ |
| 13677 | |
| 13678 | int |
| 13679 | main () |
| 13680 | { |
| 13681 | |
| 13682 | unsigned int fpcr; |
| 13683 | __asm__ __volatile__ ("fmove.l %%fpcr,%0" : "=g" (fpcr)); |
| 13684 | __asm__ __volatile__ ("fmove.l %0,%%fpcr" : : "g" (fpcr)); |
| 13685 | |
| 13686 | ; |
| 13687 | return 0; |
| 13688 | } |
| 13689 | _ACEOF |
Stefan Krah | e31db2a | 2015-07-02 20:27:56 +0200 | [diff] [blame] | 13690 | if ac_fn_c_try_link "$LINENO"; then : |
Benjamin Peterson | 8bdeb16 | 2014-04-17 00:00:31 -0400 | [diff] [blame] | 13691 | have_gcc_asm_for_mc68881=yes |
| 13692 | else |
| 13693 | have_gcc_asm_for_mc68881=no |
| 13694 | fi |
Stefan Krah | e31db2a | 2015-07-02 20:27:56 +0200 | [diff] [blame] | 13695 | rm -f core conftest.err conftest.$ac_objext \ |
| 13696 | conftest$ac_exeext conftest.$ac_ext |
Benjamin Peterson | 8bdeb16 | 2014-04-17 00:00:31 -0400 | [diff] [blame] | 13697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_mc68881" >&5 |
| 13698 | $as_echo "$have_gcc_asm_for_mc68881" >&6; } |
| 13699 | if test "$have_gcc_asm_for_mc68881" = yes |
| 13700 | then |
| 13701 | |
| 13702 | $as_echo "#define HAVE_GCC_ASM_FOR_MC68881 1" >>confdefs.h |
| 13703 | |
| 13704 | fi |
| 13705 | |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 13706 | # Detect whether system arithmetic is subject to x87-style double |
| 13707 | # rounding issues. The result of this test has little meaning on non |
| 13708 | # IEEE 754 platforms. On IEEE 754, test should return 1 if rounding |
| 13709 | # mode is round-to-nearest and double rounding issues are present, and |
| 13710 | # 0 otherwise. See http://bugs.python.org/issue2937 for more info. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13711 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x87-style double rounding" >&5 |
| 13712 | $as_echo_n "checking for x87-style double rounding... " >&6; } |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13713 | # $BASECFLAGS may affect the result |
| 13714 | ac_save_cc="$CC" |
| 13715 | CC="$CC $BASECFLAGS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13716 | if test "$cross_compiling" = yes; then : |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 13717 | ac_cv_x87_double_rounding=no |
| 13718 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13719 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 13720 | /* end confdefs.h. */ |
| 13721 | |
| 13722 | #include <stdlib.h> |
| 13723 | #include <math.h> |
| 13724 | int main() { |
| 13725 | volatile double x, y, z; |
| 13726 | /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */ |
| 13727 | x = 0.99999999999999989; /* 1-2**-53 */ |
| 13728 | y = 1./x; |
| 13729 | if (y != 1.) |
| 13730 | exit(0); |
| 13731 | /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */ |
| 13732 | x = 1e16; |
| 13733 | y = 2.99999; |
| 13734 | z = x + y; |
| 13735 | if (z != 1e16+4.) |
| 13736 | exit(0); |
| 13737 | /* both tests show evidence of double rounding */ |
| 13738 | exit(1); |
| 13739 | } |
| 13740 | |
| 13741 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13742 | if ac_fn_c_try_run "$LINENO"; then : |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 13743 | ac_cv_x87_double_rounding=no |
| 13744 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13745 | ac_cv_x87_double_rounding=yes |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 13746 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13747 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 13748 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 13749 | fi |
| 13750 | |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13751 | CC="$ac_save_cc" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_x87_double_rounding" >&5 |
| 13753 | $as_echo "$ac_cv_x87_double_rounding" >&6; } |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 13754 | if test "$ac_cv_x87_double_rounding" = yes |
| 13755 | then |
| 13756 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13757 | $as_echo "#define X87_DOUBLE_ROUNDING 1" >>confdefs.h |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 13758 | |
| 13759 | fi |
| 13760 | |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13761 | # ************************************ |
| 13762 | # * Check for mathematical functions * |
| 13763 | # ************************************ |
| 13764 | |
| 13765 | LIBS_SAVE=$LIBS |
| 13766 | LIBS="$LIBS $LIBM" |
| 13767 | |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 13768 | for ac_func in acosh asinh atanh copysign erf erfc expm1 finite gamma |
| 13769 | do : |
| 13770 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13771 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 13772 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 13773 | cat >>confdefs.h <<_ACEOF |
| 13774 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 13775 | _ACEOF |
| 13776 | |
| 13777 | fi |
| 13778 | done |
| 13779 | |
Victor Stinner | 8f9f8d6 | 2011-05-09 12:45:41 +0200 | [diff] [blame] | 13780 | for ac_func in hypot lgamma log1p log2 round tgamma |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 13781 | do : |
| 13782 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13783 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 13784 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 13785 | cat >>confdefs.h <<_ACEOF |
| 13786 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 13787 | _ACEOF |
| 13788 | |
| 13789 | fi |
| 13790 | done |
| 13791 | |
| 13792 | ac_fn_c_check_decl "$LINENO" "isinf" "ac_cv_have_decl_isinf" "#include <math.h> |
| 13793 | " |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13794 | if test "x$ac_cv_have_decl_isinf" = xyes; then : |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 13795 | ac_have_decl=1 |
| 13796 | else |
| 13797 | ac_have_decl=0 |
| 13798 | fi |
| 13799 | |
| 13800 | cat >>confdefs.h <<_ACEOF |
| 13801 | #define HAVE_DECL_ISINF $ac_have_decl |
| 13802 | _ACEOF |
| 13803 | ac_fn_c_check_decl "$LINENO" "isnan" "ac_cv_have_decl_isnan" "#include <math.h> |
| 13804 | " |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13805 | if test "x$ac_cv_have_decl_isnan" = xyes; then : |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 13806 | ac_have_decl=1 |
| 13807 | else |
| 13808 | ac_have_decl=0 |
| 13809 | fi |
| 13810 | |
| 13811 | cat >>confdefs.h <<_ACEOF |
| 13812 | #define HAVE_DECL_ISNAN $ac_have_decl |
| 13813 | _ACEOF |
| 13814 | ac_fn_c_check_decl "$LINENO" "isfinite" "ac_cv_have_decl_isfinite" "#include <math.h> |
| 13815 | " |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13816 | if test "x$ac_cv_have_decl_isfinite" = xyes; then : |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 13817 | ac_have_decl=1 |
| 13818 | else |
| 13819 | ac_have_decl=0 |
| 13820 | fi |
| 13821 | |
| 13822 | cat >>confdefs.h <<_ACEOF |
| 13823 | #define HAVE_DECL_ISFINITE $ac_have_decl |
| 13824 | _ACEOF |
| 13825 | |
| 13826 | |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 13827 | # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of |
| 13828 | # -0. on some architectures. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13829 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tanh preserves the sign of zero" >&5 |
| 13830 | $as_echo_n "checking whether tanh preserves the sign of zero... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13831 | if ${ac_cv_tanh_preserves_zero_sign+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13832 | $as_echo_n "(cached) " >&6 |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 13833 | else |
| 13834 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13835 | if test "$cross_compiling" = yes; then : |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 13836 | ac_cv_tanh_preserves_zero_sign=no |
| 13837 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13838 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 13839 | /* end confdefs.h. */ |
| 13840 | |
| 13841 | #include <math.h> |
| 13842 | #include <stdlib.h> |
| 13843 | int main() { |
| 13844 | /* return 0 if either negative zeros don't exist |
| 13845 | on this platform or if negative zeros exist |
| 13846 | and tanh(-0.) == -0. */ |
| 13847 | if (atan2(0., -1.) == atan2(-0., -1.) || |
| 13848 | atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0); |
| 13849 | else exit(1); |
| 13850 | } |
| 13851 | |
| 13852 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13853 | if ac_fn_c_try_run "$LINENO"; then : |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 13854 | ac_cv_tanh_preserves_zero_sign=yes |
| 13855 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13856 | ac_cv_tanh_preserves_zero_sign=no |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 13857 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13858 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 13859 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 13860 | fi |
| 13861 | |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 13862 | fi |
| 13863 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tanh_preserves_zero_sign" >&5 |
| 13865 | $as_echo "$ac_cv_tanh_preserves_zero_sign" >&6; } |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 13866 | if test "$ac_cv_tanh_preserves_zero_sign" = yes |
| 13867 | then |
| 13868 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13869 | $as_echo "#define TANH_PRESERVES_ZERO_SIGN 1" >>confdefs.h |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 13870 | |
| 13871 | fi |
| 13872 | |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 13873 | if test "$ac_cv_func_log1p" = yes |
| 13874 | then |
| 13875 | # On some versions of AIX, log1p(-0.) returns 0. instead of |
| 13876 | # -0. See issue #9920. |
| 13877 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether log1p drops the sign of negative zero" >&5 |
| 13878 | $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] | 13879 | if ${ac_cv_log1p_drops_zero_sign+:} false; then : |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 13880 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 13881 | else |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 13882 | |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 13883 | if test "$cross_compiling" = yes; then : |
| 13884 | ac_cv_log1p_drops_zero_sign=no |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 13885 | else |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 13886 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13887 | /* end confdefs.h. */ |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 13888 | |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 13889 | #include <math.h> |
| 13890 | #include <stdlib.h> |
| 13891 | int main() { |
| 13892 | /* Fail if the signs of log1p(-0.) and -0. can be |
| 13893 | distinguished. */ |
| 13894 | if (atan2(log1p(-0.), -1.) == atan2(-0., -1.)) |
| 13895 | return 0; |
| 13896 | else |
| 13897 | return 1; |
| 13898 | } |
| 13899 | |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 13900 | _ACEOF |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 13901 | if ac_fn_c_try_run "$LINENO"; then : |
| 13902 | ac_cv_log1p_drops_zero_sign=no |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 13903 | else |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 13904 | ac_cv_log1p_drops_zero_sign=yes |
| 13905 | fi |
| 13906 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 13907 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 13908 | fi |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 13909 | |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 13910 | fi |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 13911 | |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 13912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_log1p_drops_zero_sign" >&5 |
| 13913 | $as_echo "$ac_cv_log1p_drops_zero_sign" >&6; } |
| 13914 | fi |
| 13915 | if test "$ac_cv_log1p_drops_zero_sign" = yes |
| 13916 | then |
| 13917 | |
| 13918 | $as_echo "#define LOG1P_DROPS_ZERO_SIGN 1" >>confdefs.h |
| 13919 | |
| 13920 | fi |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 13921 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 13922 | LIBS=$LIBS_SAVE |
| 13923 | |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 13924 | # For multiprocessing module, check that sem_open |
| 13925 | # actually works. For FreeBSD versions <= 7.2, |
| 13926 | # the kernel module that provides POSIX semaphores |
| 13927 | # isn't loaded by default, so an attempt to call |
| 13928 | # sem_open results in a 'Signal 12' error. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13929 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX semaphores are enabled" >&5 |
| 13930 | $as_echo_n "checking whether POSIX semaphores are enabled... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13931 | if ${ac_cv_posix_semaphores_enabled+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13932 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 13933 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13934 | if test "$cross_compiling" = yes; then : |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 13935 | ac_cv_posix_semaphores_enabled=yes |
| 13936 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13937 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 13938 | /* end confdefs.h. */ |
| 13939 | |
| 13940 | #include <unistd.h> |
| 13941 | #include <fcntl.h> |
| 13942 | #include <stdio.h> |
| 13943 | #include <semaphore.h> |
| 13944 | #include <sys/stat.h> |
| 13945 | |
| 13946 | int main(void) { |
| 13947 | sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0); |
| 13948 | if (a == SEM_FAILED) { |
| 13949 | perror("sem_open"); |
| 13950 | return 1; |
| 13951 | } |
| 13952 | sem_close(a); |
Mark Dickinson | ba79b35 | 2009-12-13 21:10:57 +0000 | [diff] [blame] | 13953 | sem_unlink("/autoconf"); |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 13954 | return 0; |
| 13955 | } |
| 13956 | |
| 13957 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13958 | if ac_fn_c_try_run "$LINENO"; then : |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 13959 | ac_cv_posix_semaphores_enabled=yes |
| 13960 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13961 | ac_cv_posix_semaphores_enabled=no |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 13962 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13963 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 13964 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 13965 | fi |
| 13966 | |
| 13967 | |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 13968 | fi |
| 13969 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_semaphores_enabled" >&5 |
| 13971 | $as_echo "$ac_cv_posix_semaphores_enabled" >&6; } |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 13972 | if test $ac_cv_posix_semaphores_enabled = no |
| 13973 | then |
| 13974 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13975 | $as_echo "#define POSIX_SEMAPHORES_NOT_ENABLED 1" >>confdefs.h |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 13976 | |
| 13977 | fi |
| 13978 | |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 13979 | # Multiprocessing check for broken sem_getvalue |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13980 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken sem_getvalue" >&5 |
| 13981 | $as_echo_n "checking for broken sem_getvalue... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13982 | if ${ac_cv_broken_sem_getvalue+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13983 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13984 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13985 | if test "$cross_compiling" = yes; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13986 | ac_cv_broken_sem_getvalue=yes |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 13987 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13988 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 13989 | /* end confdefs.h. */ |
| 13990 | |
| 13991 | #include <unistd.h> |
| 13992 | #include <fcntl.h> |
| 13993 | #include <stdio.h> |
| 13994 | #include <semaphore.h> |
| 13995 | #include <sys/stat.h> |
| 13996 | |
| 13997 | int main(void){ |
Mark Dickinson | ba79b35 | 2009-12-13 21:10:57 +0000 | [diff] [blame] | 13998 | 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] | 13999 | int count; |
| 14000 | int res; |
| 14001 | if(a==SEM_FAILED){ |
| 14002 | perror("sem_open"); |
| 14003 | return 1; |
| 14004 | |
| 14005 | } |
| 14006 | res = sem_getvalue(a, &count); |
| 14007 | sem_close(a); |
Mark Dickinson | ba79b35 | 2009-12-13 21:10:57 +0000 | [diff] [blame] | 14008 | sem_unlink("/autocftw"); |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 14009 | return res==-1 ? 1 : 0; |
| 14010 | } |
| 14011 | |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 14012 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14013 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14014 | ac_cv_broken_sem_getvalue=no |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 14015 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14016 | ac_cv_broken_sem_getvalue=yes |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 14017 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14018 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 14019 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 14020 | fi |
| 14021 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 14022 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14023 | fi |
| 14024 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_sem_getvalue" >&5 |
| 14026 | $as_echo "$ac_cv_broken_sem_getvalue" >&6; } |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14027 | if test $ac_cv_broken_sem_getvalue = yes |
| 14028 | then |
| 14029 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14030 | $as_echo "#define HAVE_BROKEN_SEM_GETVALUE 1" >>confdefs.h |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14031 | |
| 14032 | fi |
| 14033 | |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 14034 | # determine what size digit to use for Python's longs |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14035 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking digit size for Python's longs" >&5 |
| 14036 | $as_echo_n "checking digit size for Python's longs... " >&6; } |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 14037 | # Check whether --enable-big-digits was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14038 | if test "${enable_big_digits+set}" = set; then : |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 14039 | enableval=$enable_big_digits; case $enable_big_digits in |
| 14040 | yes) |
| 14041 | enable_big_digits=30 ;; |
| 14042 | no) |
| 14043 | enable_big_digits=15 ;; |
| 14044 | 15|30) |
| 14045 | ;; |
| 14046 | *) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14047 | 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] | 14048 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14049 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_big_digits" >&5 |
| 14050 | $as_echo "$enable_big_digits" >&6; } |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 14051 | |
| 14052 | cat >>confdefs.h <<_ACEOF |
| 14053 | #define PYLONG_BITS_IN_DIGIT $enable_big_digits |
| 14054 | _ACEOF |
| 14055 | |
| 14056 | |
| 14057 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5 |
| 14059 | $as_echo "no value specified" >&6; } |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 14060 | fi |
| 14061 | |
| 14062 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14063 | # check for wchar.h |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14064 | 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] | 14065 | if test "x$ac_cv_header_wchar_h" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14066 | |
| 14067 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14068 | $as_echo "#define HAVE_WCHAR_H 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14069 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 14070 | wchar_h="yes" |
| 14071 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14072 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14073 | wchar_h="no" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14074 | |
| 14075 | fi |
| 14076 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14077 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14078 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14079 | # determine wchar_t size |
| 14080 | if test "$wchar_h" = yes |
| 14081 | then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14082 | # 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] | 14083 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 14084 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 14085 | # This bug is HP SR number 8606223364. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14086 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5 |
| 14087 | $as_echo_n "checking size of wchar_t... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14088 | if ${ac_cv_sizeof_wchar_t+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14089 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14090 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14091 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" "#include <wchar.h> |
| 14092 | "; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14093 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14094 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14095 | if test "$ac_cv_type_wchar_t" = yes; then |
| 14096 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 14097 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 14098 | as_fn_error 77 "cannot compute sizeof (wchar_t) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14099 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14100 | else |
| 14101 | ac_cv_sizeof_wchar_t=0 |
| 14102 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14103 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14104 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14105 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5 |
| 14107 | $as_echo "$ac_cv_sizeof_wchar_t" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14108 | |
| 14109 | |
| 14110 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14111 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14112 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14113 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14114 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14115 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14116 | fi |
| 14117 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14118 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UCS-4 tcl" >&5 |
| 14119 | $as_echo_n "checking for UCS-4 tcl... " >&6; } |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 14120 | have_ucs4_tcl=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14121 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14122 | /* end confdefs.h. */ |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 14123 | |
| 14124 | #include <tcl.h> |
| 14125 | #if TCL_UTF_MAX != 6 |
| 14126 | # error "NOT UCS4_TCL" |
| 14127 | #endif |
| 14128 | int |
| 14129 | main () |
| 14130 | { |
| 14131 | |
| 14132 | ; |
| 14133 | return 0; |
| 14134 | } |
| 14135 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14136 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 14137 | |
| 14138 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14139 | $as_echo "#define HAVE_UCS4_TCL 1" >>confdefs.h |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 14140 | |
| 14141 | have_ucs4_tcl=yes |
| 14142 | |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 14143 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14144 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ucs4_tcl" >&5 |
| 14146 | $as_echo "$have_ucs4_tcl" >&6; } |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 14147 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14148 | # check whether wchar_t is signed or not |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14149 | if test "$wchar_h" = yes |
| 14150 | then |
| 14151 | # check whether wchar_t is signed or not |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14152 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wchar_t is signed" >&5 |
| 14153 | $as_echo_n "checking whether wchar_t is signed... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14154 | if ${ac_cv_wchar_t_signed+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14155 | $as_echo_n "(cached) " >&6 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14156 | else |
| 14157 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14158 | if test "$cross_compiling" = yes; then : |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14159 | ac_cv_wchar_t_signed=yes |
| 14160 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14161 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14162 | /* end confdefs.h. */ |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14163 | |
| 14164 | #include <wchar.h> |
| 14165 | int main() |
| 14166 | { |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 14167 | /* Success: exit code 0 */ |
| 14168 | exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1); |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14169 | } |
| 14170 | |
| 14171 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14172 | if ac_fn_c_try_run "$LINENO"; then : |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14173 | ac_cv_wchar_t_signed=yes |
| 14174 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14175 | ac_cv_wchar_t_signed=no |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14176 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14177 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 14178 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14179 | fi |
| 14180 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14181 | fi |
| 14182 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_wchar_t_signed" >&5 |
| 14184 | $as_echo "$ac_cv_wchar_t_signed" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14185 | fi |
| 14186 | |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 14187 | # 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] | 14188 | if test "$ac_cv_sizeof_wchar_t" -ge 2 \ |
Matthias Klose | 7dbeed7 | 2004-12-24 08:22:17 +0000 | [diff] [blame] | 14189 | -a "$ac_cv_wchar_t_signed" = "no" |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 14190 | then |
Martin v. Löwis | d63a3b8 | 2011-09-28 07:41:54 +0200 | [diff] [blame] | 14191 | HAVE_USABLE_WCHAR_T="yes" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14192 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14193 | $as_echo "#define HAVE_USABLE_WCHAR_T 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14194 | |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 14195 | else |
Martin v. Löwis | d63a3b8 | 2011-09-28 07:41:54 +0200 | [diff] [blame] | 14196 | HAVE_USABLE_WCHAR_T="no usable wchar_t found" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14197 | fi |
Martin v. Löwis | d63a3b8 | 2011-09-28 07:41:54 +0200 | [diff] [blame] | 14198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_USABLE_WCHAR_T" >&5 |
| 14199 | $as_echo "$HAVE_USABLE_WCHAR_T" >&6; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14200 | |
| 14201 | # check for endianness |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14202 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
| 14203 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14204 | if ${ac_cv_c_bigendian+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14205 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14206 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14207 | ac_cv_c_bigendian=unknown |
| 14208 | # See if we're dealing with a universal compiler. |
| 14209 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14210 | /* end confdefs.h. */ |
| 14211 | #ifndef __APPLE_CC__ |
| 14212 | not a universal capable compiler |
| 14213 | #endif |
| 14214 | typedef int dummy; |
| 14215 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14216 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14217 | if ac_fn_c_try_compile "$LINENO"; then : |
| 14218 | |
| 14219 | # Check for potential -arch flags. It is not universal unless |
| 14220 | # there are at least two -arch flags with different values. |
| 14221 | ac_arch= |
| 14222 | ac_prev= |
| 14223 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do |
| 14224 | if test -n "$ac_prev"; then |
| 14225 | case $ac_word in |
| 14226 | i?86 | x86_64 | ppc | ppc64) |
| 14227 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then |
| 14228 | ac_arch=$ac_word |
| 14229 | else |
| 14230 | ac_cv_c_bigendian=universal |
| 14231 | break |
| 14232 | fi |
| 14233 | ;; |
| 14234 | esac |
| 14235 | ac_prev= |
| 14236 | elif test "x$ac_word" = "x-arch"; then |
| 14237 | ac_prev=arch |
| 14238 | fi |
| 14239 | done |
| 14240 | fi |
| 14241 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14242 | if test $ac_cv_c_bigendian = unknown; then |
| 14243 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 14244 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14245 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14246 | #include <sys/types.h> |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14247 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14248 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14249 | int |
| 14250 | main () |
| 14251 | { |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14252 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
| 14253 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ |
| 14254 | && LITTLE_ENDIAN) |
| 14255 | bogus endian macros |
| 14256 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14257 | |
| 14258 | ; |
| 14259 | return 0; |
| 14260 | } |
| 14261 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14262 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14263 | # It does; now see whether it defined to BIG_ENDIAN or not. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14264 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14265 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14266 | #include <sys/types.h> |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14267 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14268 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14269 | int |
| 14270 | main () |
| 14271 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14272 | #if BYTE_ORDER != BIG_ENDIAN |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14273 | not big endian |
| 14274 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14275 | |
| 14276 | ; |
| 14277 | return 0; |
| 14278 | } |
| 14279 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14280 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14281 | ac_cv_c_bigendian=yes |
| 14282 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14283 | ac_cv_c_bigendian=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14284 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14285 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14286 | fi |
| 14287 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14288 | fi |
| 14289 | if test $ac_cv_c_bigendian = unknown; then |
| 14290 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). |
| 14291 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14292 | /* end confdefs.h. */ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14293 | #include <limits.h> |
| 14294 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14295 | int |
| 14296 | main () |
| 14297 | { |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14298 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
| 14299 | bogus endian macros |
| 14300 | #endif |
| 14301 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14302 | ; |
| 14303 | return 0; |
| 14304 | } |
| 14305 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14306 | if ac_fn_c_try_compile "$LINENO"; then : |
| 14307 | # It does; now see whether it defined to _BIG_ENDIAN or not. |
| 14308 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14309 | /* end confdefs.h. */ |
| 14310 | #include <limits.h> |
| 14311 | |
| 14312 | int |
| 14313 | main () |
| 14314 | { |
| 14315 | #ifndef _BIG_ENDIAN |
| 14316 | not big endian |
| 14317 | #endif |
| 14318 | |
| 14319 | ; |
| 14320 | return 0; |
| 14321 | } |
| 14322 | _ACEOF |
| 14323 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14324 | ac_cv_c_bigendian=yes |
Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 14325 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14326 | ac_cv_c_bigendian=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14327 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14328 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14329 | fi |
| 14330 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14331 | fi |
| 14332 | if test $ac_cv_c_bigendian = unknown; then |
| 14333 | # Compile a test program. |
| 14334 | if test "$cross_compiling" = yes; then : |
| 14335 | # Try to guess by grepping values from an object file. |
| 14336 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14337 | /* end confdefs.h. */ |
| 14338 | short int ascii_mm[] = |
| 14339 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 14340 | short int ascii_ii[] = |
| 14341 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 14342 | int use_ascii (int i) { |
| 14343 | return ascii_mm[i] + ascii_ii[i]; |
| 14344 | } |
| 14345 | short int ebcdic_ii[] = |
| 14346 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 14347 | short int ebcdic_mm[] = |
| 14348 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 14349 | int use_ebcdic (int i) { |
| 14350 | return ebcdic_mm[i] + ebcdic_ii[i]; |
| 14351 | } |
| 14352 | extern int foo; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14353 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14354 | int |
| 14355 | main () |
| 14356 | { |
| 14357 | return use_ascii (foo) == use_ebcdic (foo); |
| 14358 | ; |
| 14359 | return 0; |
| 14360 | } |
| 14361 | _ACEOF |
| 14362 | if ac_fn_c_try_compile "$LINENO"; then : |
| 14363 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then |
| 14364 | ac_cv_c_bigendian=yes |
| 14365 | fi |
| 14366 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 14367 | if test "$ac_cv_c_bigendian" = unknown; then |
| 14368 | ac_cv_c_bigendian=no |
| 14369 | else |
| 14370 | # finding both strings is unlikely to happen, but who knows? |
| 14371 | ac_cv_c_bigendian=unknown |
| 14372 | fi |
| 14373 | fi |
| 14374 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14375 | 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] | 14376 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14377 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14378 | /* end confdefs.h. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14379 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14380 | int |
| 14381 | main () |
| 14382 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14383 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14384 | /* Are we little or big endian? From Harbison&Steele. */ |
| 14385 | union |
| 14386 | { |
| 14387 | long int l; |
| 14388 | char c[sizeof (long int)]; |
| 14389 | } u; |
| 14390 | u.l = 1; |
| 14391 | return u.c[sizeof (long int) - 1] == 1; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14392 | |
| 14393 | ; |
| 14394 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14395 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14396 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14397 | if ac_fn_c_try_run "$LINENO"; then : |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14398 | ac_cv_c_bigendian=no |
| 14399 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14400 | ac_cv_c_bigendian=yes |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14401 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14402 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 14403 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14404 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14405 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14406 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14407 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
| 14409 | $as_echo "$ac_cv_c_bigendian" >&6; } |
| 14410 | case $ac_cv_c_bigendian in #( |
| 14411 | yes) |
| 14412 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h |
| 14413 | ;; #( |
| 14414 | no) |
| 14415 | ;; #( |
| 14416 | universal) |
Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 14417 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14418 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 14419 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14420 | ;; #( |
| 14421 | *) |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 14422 | as_fn_error $? "unknown endianness |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14423 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14424 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14425 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14426 | |
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 14427 | # ABI version string for Python extension modules. This appears between the |
| 14428 | # periods in shared library file names, e.g. foo.<SOABI>.so. It is calculated |
| 14429 | # from the following attributes which affect the ABI of this Python build (in |
| 14430 | # this order): |
| 14431 | # |
| 14432 | # * The Python implementation (always 'cpython-' for us) |
| 14433 | # * The major and minor version numbers |
| 14434 | # * --with-pydebug (adds a 'd') |
| 14435 | # * --with-pymalloc (adds a 'm') |
| 14436 | # * --with-wide-unicode (adds a 'u') |
| 14437 | # |
| 14438 | # 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] | 14439 | # would get a shared library ABI version tag of 'cpython-32dmu' and shared |
| 14440 | # libraries would be named 'foo.cpython-32dmu.so'. |
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 14441 | |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 14442 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking ABIFLAGS" >&5 |
| 14443 | $as_echo_n "checking ABIFLAGS... " >&6; } |
| 14444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ABIFLAGS" >&5 |
| 14445 | $as_echo "$ABIFLAGS" >&6; } |
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 14446 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking SOABI" >&5 |
| 14447 | $as_echo_n "checking SOABI... " >&6; } |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 14448 | SOABI='cpython-'`echo $VERSION | tr -d .`${ABIFLAGS}${PLATFORM_TRIPLET:+-$PLATFORM_TRIPLET} |
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 14449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SOABI" >&5 |
| 14450 | $as_echo "$SOABI" >&6; } |
| 14451 | |
doko@ubuntu.com | d5537d0 | 2013-03-21 13:21:49 -0700 | [diff] [blame] | 14452 | |
| 14453 | case $ac_sys_system in |
Ned Deily | 3b81248 | 2015-04-15 17:11:47 -0700 | [diff] [blame] | 14454 | Linux*|GNU*|Darwin) |
doko@ubuntu.com | d5537d0 | 2013-03-21 13:21:49 -0700 | [diff] [blame] | 14455 | EXT_SUFFIX=.${SOABI}${SHLIB_SUFFIX};; |
| 14456 | *) |
| 14457 | EXT_SUFFIX=${SHLIB_SUFFIX};; |
| 14458 | esac |
| 14459 | |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 14460 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDVERSION" >&5 |
| 14461 | $as_echo_n "checking LDVERSION... " >&6; } |
| 14462 | LDVERSION='$(VERSION)$(ABIFLAGS)' |
| 14463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDVERSION" >&5 |
| 14464 | $as_echo "$LDVERSION" >&6; } |
| 14465 | |
doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 14466 | |
doko@ubuntu.com | e8042e5 | 2015-05-06 01:13:02 +0200 | [diff] [blame] | 14467 | LIBPL='$(prefix)'"/lib/python${VERSION}/config-${LDVERSION}" |
doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 14468 | |
| 14469 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 14470 | # Check whether right shifting a negative integer extends the sign bit |
| 14471 | # or fills with zeros (like the Cray J90, according to Tim Peters). |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14472 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether right shift extends the sign bit" >&5 |
| 14473 | $as_echo_n "checking whether right shift extends the sign bit... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14474 | if ${ac_cv_rshift_extends_sign+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14475 | $as_echo_n "(cached) " >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 14476 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14477 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14478 | if test "$cross_compiling" = yes; then : |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 14479 | ac_cv_rshift_extends_sign=yes |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 14480 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14481 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14482 | /* end confdefs.h. */ |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 14483 | |
| 14484 | int main() |
| 14485 | { |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 14486 | exit(((-1)>>3 == -1) ? 0 : 1); |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 14487 | } |
| 14488 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14489 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14490 | if ac_fn_c_try_run "$LINENO"; then : |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 14491 | ac_cv_rshift_extends_sign=yes |
| 14492 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14493 | ac_cv_rshift_extends_sign=no |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 14494 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14495 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 14496 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 14497 | fi |
| 14498 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14499 | fi |
| 14500 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rshift_extends_sign" >&5 |
| 14502 | $as_echo "$ac_cv_rshift_extends_sign" >&6; } |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 14503 | if test "$ac_cv_rshift_extends_sign" = no |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 14504 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14505 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14506 | $as_echo "#define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1" >>confdefs.h |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 14507 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 14508 | fi |
| 14509 | |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 14510 | # check for getc_unlocked and related locking functions |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14511 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getc_unlocked() and friends" >&5 |
| 14512 | $as_echo_n "checking for getc_unlocked() and friends... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14513 | if ${ac_cv_have_getc_unlocked+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14514 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 14515 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14516 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14517 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14518 | /* end confdefs.h. */ |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 14519 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14520 | int |
| 14521 | main () |
| 14522 | { |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 14523 | |
| 14524 | FILE *f = fopen("/dev/null", "r"); |
| 14525 | flockfile(f); |
| 14526 | getc_unlocked(f); |
| 14527 | funlockfile(f); |
| 14528 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14529 | ; |
| 14530 | return 0; |
| 14531 | } |
| 14532 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14533 | if ac_fn_c_try_link "$LINENO"; then : |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 14534 | ac_cv_have_getc_unlocked=yes |
| 14535 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14536 | ac_cv_have_getc_unlocked=no |
| 14537 | fi |
| 14538 | rm -f core conftest.err conftest.$ac_objext \ |
| 14539 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 14540 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14541 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getc_unlocked" >&5 |
| 14543 | $as_echo "$ac_cv_have_getc_unlocked" >&6; } |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 14544 | if test "$ac_cv_have_getc_unlocked" = yes |
| 14545 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14546 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14547 | $as_echo "#define HAVE_GETC_UNLOCKED 1" >>confdefs.h |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 14548 | |
| 14549 | fi |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 14550 | |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 14551 | # check where readline lives |
Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 14552 | # save the value of LIBS so we don't actually link Python with readline |
| 14553 | LIBS_no_readline=$LIBS |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 14554 | |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 14555 | # On some systems we need to link readline to a termcap compatible |
| 14556 | # library. NOTE: Keep the precedence of listed libraries synchronised |
| 14557 | # with setup.py. |
| 14558 | py_cv_lib_readline=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14559 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link readline libs" >&5 |
| 14560 | $as_echo_n "checking how to link readline libs... " >&6; } |
doko@ubuntu.com | f2967c7 | 2012-06-30 17:32:23 +0200 | [diff] [blame] | 14561 | for py_libtermcap in "" tinfo ncursesw ncurses curses termcap; do |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 14562 | if test -z "$py_libtermcap"; then |
| 14563 | READLINE_LIBS="-lreadline" |
| 14564 | else |
| 14565 | READLINE_LIBS="-lreadline -l$py_libtermcap" |
| 14566 | fi |
| 14567 | LIBS="$READLINE_LIBS $LIBS_no_readline" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14568 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 14569 | /* end confdefs.h. */ |
| 14570 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14571 | /* Override any GCC internal prototype to avoid an error. |
| 14572 | Use char because int might match the return type of a GCC |
| 14573 | builtin and then its argument prototype would still apply. */ |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 14574 | #ifdef __cplusplus |
| 14575 | extern "C" |
| 14576 | #endif |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 14577 | char readline (); |
| 14578 | int |
| 14579 | main () |
| 14580 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14581 | return readline (); |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 14582 | ; |
| 14583 | return 0; |
| 14584 | } |
| 14585 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14586 | if ac_fn_c_try_link "$LINENO"; then : |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 14587 | py_cv_lib_readline=yes |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 14588 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14589 | rm -f core conftest.err conftest.$ac_objext \ |
| 14590 | conftest$ac_exeext conftest.$ac_ext |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 14591 | if test $py_cv_lib_readline = yes; then |
| 14592 | break |
| 14593 | fi |
| 14594 | done |
| 14595 | # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts |
| 14596 | #AC_SUBST([READLINE_LIBS]) |
Gregory P. Smith | 3856c37 | 2008-09-07 19:24:00 +0000 | [diff] [blame] | 14597 | if test $py_cv_lib_readline = no; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
| 14599 | $as_echo "none" >&6; } |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 14600 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE_LIBS" >&5 |
| 14602 | $as_echo "$READLINE_LIBS" >&6; } |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 14603 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14604 | $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 14605 | |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 14606 | fi |
| 14607 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14608 | # check for readline 2.1 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14609 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_callback_handler_install in -lreadline" >&5 |
| 14610 | $as_echo_n "checking for rl_callback_handler_install in -lreadline... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14611 | if ${ac_cv_lib_readline_rl_callback_handler_install+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14612 | $as_echo_n "(cached) " >&6 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14613 | else |
| 14614 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 14615 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14616 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14617 | /* end confdefs.h. */ |
| 14618 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14619 | /* Override any GCC internal prototype to avoid an error. |
| 14620 | Use char because int might match the return type of a GCC |
| 14621 | builtin and then its argument prototype would still apply. */ |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14622 | #ifdef __cplusplus |
| 14623 | extern "C" |
| 14624 | #endif |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14625 | char rl_callback_handler_install (); |
| 14626 | int |
| 14627 | main () |
| 14628 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14629 | return rl_callback_handler_install (); |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14630 | ; |
| 14631 | return 0; |
| 14632 | } |
| 14633 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14634 | if ac_fn_c_try_link "$LINENO"; then : |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14635 | ac_cv_lib_readline_rl_callback_handler_install=yes |
| 14636 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14637 | ac_cv_lib_readline_rl_callback_handler_install=no |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14638 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14639 | rm -f core conftest.err conftest.$ac_objext \ |
| 14640 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14641 | LIBS=$ac_check_lib_save_LIBS |
| 14642 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5 |
| 14644 | $as_echo "$ac_cv_lib_readline_rl_callback_handler_install" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14645 | 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] | 14646 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14647 | $as_echo "#define HAVE_RL_CALLBACK 1" >>confdefs.h |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14648 | |
| 14649 | fi |
| 14650 | |
| 14651 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 14652 | # check for readline 2.2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14653 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14654 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 14655 | #include <readline/readline.h> |
| 14656 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14657 | if ac_fn_c_try_cpp "$LINENO"; then : |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 14658 | have_readline=yes |
| 14659 | else |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 14660 | have_readline=no |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 14661 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 14662 | fi |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 14663 | rm -f conftest.err conftest.i conftest.$ac_ext |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 14664 | if test $have_readline = yes |
| 14665 | then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14666 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14667 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 14668 | #include <readline/readline.h> |
| 14669 | |
| 14670 | _ACEOF |
| 14671 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14672 | $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] | 14673 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14674 | $as_echo "#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1" >>confdefs.h |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 14675 | |
| 14676 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 14677 | rm -f conftest* |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 14678 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14679 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Antoine Pitrou | d513177 | 2009-10-26 19:22:14 +0000 | [diff] [blame] | 14680 | /* end confdefs.h. */ |
| 14681 | #include <readline/readline.h> |
| 14682 | |
| 14683 | _ACEOF |
| 14684 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14685 | $EGREP "extern int rl_completion_suppress_append;" >/dev/null 2>&1; then : |
Antoine Pitrou | d513177 | 2009-10-26 19:22:14 +0000 | [diff] [blame] | 14686 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14687 | $as_echo "#define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1" >>confdefs.h |
Antoine Pitrou | d513177 | 2009-10-26 19:22:14 +0000 | [diff] [blame] | 14688 | |
| 14689 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 14690 | rm -f conftest* |
Antoine Pitrou | d513177 | 2009-10-26 19:22:14 +0000 | [diff] [blame] | 14691 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 14692 | fi |
| 14693 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 14694 | # check for readline 4.0 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14695 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_pre_input_hook in -lreadline" >&5 |
| 14696 | $as_echo_n "checking for rl_pre_input_hook in -lreadline... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14697 | if ${ac_cv_lib_readline_rl_pre_input_hook+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14698 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 14699 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14700 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 14701 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14702 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14703 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14704 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14705 | /* Override any GCC internal prototype to avoid an error. |
| 14706 | Use char because int might match the return type of a GCC |
| 14707 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14708 | #ifdef __cplusplus |
| 14709 | extern "C" |
| 14710 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14711 | char rl_pre_input_hook (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14712 | int |
| 14713 | main () |
| 14714 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14715 | return rl_pre_input_hook (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14716 | ; |
| 14717 | return 0; |
| 14718 | } |
| 14719 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14720 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14721 | ac_cv_lib_readline_rl_pre_input_hook=yes |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 14722 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14723 | ac_cv_lib_readline_rl_pre_input_hook=no |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 14724 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14725 | rm -f core conftest.err conftest.$ac_objext \ |
| 14726 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14727 | LIBS=$ac_check_lib_save_LIBS |
| 14728 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5 |
| 14730 | $as_echo "$ac_cv_lib_readline_rl_pre_input_hook" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14731 | 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] | 14732 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14733 | $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] | 14734 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 14735 | fi |
| 14736 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14737 | |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 14738 | # also in 4.0 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14739 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_display_matches_hook in -lreadline" >&5 |
| 14740 | $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] | 14741 | if ${ac_cv_lib_readline_rl_completion_display_matches_hook+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14742 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 14743 | else |
| 14744 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 14745 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14746 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 14747 | /* end confdefs.h. */ |
| 14748 | |
| 14749 | /* Override any GCC internal prototype to avoid an error. |
| 14750 | Use char because int might match the return type of a GCC |
| 14751 | builtin and then its argument prototype would still apply. */ |
| 14752 | #ifdef __cplusplus |
| 14753 | extern "C" |
| 14754 | #endif |
| 14755 | char rl_completion_display_matches_hook (); |
| 14756 | int |
| 14757 | main () |
| 14758 | { |
| 14759 | return rl_completion_display_matches_hook (); |
| 14760 | ; |
| 14761 | return 0; |
| 14762 | } |
| 14763 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14764 | if ac_fn_c_try_link "$LINENO"; then : |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 14765 | ac_cv_lib_readline_rl_completion_display_matches_hook=yes |
| 14766 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14767 | ac_cv_lib_readline_rl_completion_display_matches_hook=no |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 14768 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14769 | rm -f core conftest.err conftest.$ac_objext \ |
| 14770 | conftest$ac_exeext conftest.$ac_ext |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 14771 | LIBS=$ac_check_lib_save_LIBS |
| 14772 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5 |
| 14774 | $as_echo "$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14775 | 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] | 14776 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14777 | $as_echo "#define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1" >>confdefs.h |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 14778 | |
| 14779 | fi |
| 14780 | |
| 14781 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 14782 | # check for readline 4.2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14783 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_matches in -lreadline" >&5 |
| 14784 | $as_echo_n "checking for rl_completion_matches in -lreadline... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14785 | if ${ac_cv_lib_readline_rl_completion_matches+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14786 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 14787 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14788 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 14789 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14790 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14791 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14792 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14793 | /* Override any GCC internal prototype to avoid an error. |
| 14794 | Use char because int might match the return type of a GCC |
| 14795 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14796 | #ifdef __cplusplus |
| 14797 | extern "C" |
| 14798 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14799 | char rl_completion_matches (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14800 | int |
| 14801 | main () |
| 14802 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14803 | return rl_completion_matches (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14804 | ; |
| 14805 | return 0; |
| 14806 | } |
| 14807 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14808 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14809 | ac_cv_lib_readline_rl_completion_matches=yes |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 14810 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14811 | ac_cv_lib_readline_rl_completion_matches=no |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 14812 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14813 | rm -f core conftest.err conftest.$ac_objext \ |
| 14814 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14815 | LIBS=$ac_check_lib_save_LIBS |
| 14816 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_matches" >&5 |
| 14818 | $as_echo "$ac_cv_lib_readline_rl_completion_matches" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14819 | 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] | 14820 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14821 | $as_echo "#define HAVE_RL_COMPLETION_MATCHES 1" >>confdefs.h |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 14822 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 14823 | fi |
| 14824 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 14825 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14826 | # also in readline 4.2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14827 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14828 | /* end confdefs.h. */ |
| 14829 | #include <readline/readline.h> |
| 14830 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14831 | if ac_fn_c_try_cpp "$LINENO"; then : |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14832 | have_readline=yes |
| 14833 | else |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14834 | have_readline=no |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 14835 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14836 | fi |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 14837 | rm -f conftest.err conftest.i conftest.$ac_ext |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14838 | if test $have_readline = yes |
| 14839 | then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14840 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14841 | /* end confdefs.h. */ |
| 14842 | #include <readline/readline.h> |
| 14843 | |
| 14844 | _ACEOF |
| 14845 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14846 | $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then : |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14847 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14848 | $as_echo "#define HAVE_RL_CATCH_SIGNAL 1" >>confdefs.h |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14849 | |
| 14850 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 14851 | rm -f conftest* |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14852 | |
| 14853 | fi |
| 14854 | |
Benjamin Peterson | d1e22ba | 2014-11-26 14:35:12 -0600 | [diff] [blame] | 14855 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for append_history in -lreadline" >&5 |
| 14856 | $as_echo_n "checking for append_history in -lreadline... " >&6; } |
| 14857 | if ${ac_cv_lib_readline_append_history+:} false; then : |
| 14858 | $as_echo_n "(cached) " >&6 |
| 14859 | else |
| 14860 | ac_check_lib_save_LIBS=$LIBS |
| 14861 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
| 14862 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14863 | /* end confdefs.h. */ |
| 14864 | |
| 14865 | /* Override any GCC internal prototype to avoid an error. |
| 14866 | Use char because int might match the return type of a GCC |
| 14867 | builtin and then its argument prototype would still apply. */ |
| 14868 | #ifdef __cplusplus |
| 14869 | extern "C" |
| 14870 | #endif |
| 14871 | char append_history (); |
| 14872 | int |
| 14873 | main () |
| 14874 | { |
| 14875 | return append_history (); |
| 14876 | ; |
| 14877 | return 0; |
| 14878 | } |
| 14879 | _ACEOF |
| 14880 | if ac_fn_c_try_link "$LINENO"; then : |
| 14881 | ac_cv_lib_readline_append_history=yes |
| 14882 | else |
| 14883 | ac_cv_lib_readline_append_history=no |
| 14884 | fi |
| 14885 | rm -f core conftest.err conftest.$ac_objext \ |
| 14886 | conftest$ac_exeext conftest.$ac_ext |
| 14887 | LIBS=$ac_check_lib_save_LIBS |
| 14888 | fi |
| 14889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_append_history" >&5 |
| 14890 | $as_echo "$ac_cv_lib_readline_append_history" >&6; } |
| 14891 | if test "x$ac_cv_lib_readline_append_history" = xyes; then : |
| 14892 | |
| 14893 | $as_echo "#define HAVE_RL_APPEND_HISTORY 1" >>confdefs.h |
| 14894 | |
| 14895 | fi |
| 14896 | |
| 14897 | |
Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 14898 | # End of readline checks: restore LIBS |
| 14899 | LIBS=$LIBS_no_readline |
| 14900 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14901 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken nice()" >&5 |
| 14902 | $as_echo_n "checking for broken nice()... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14903 | if ${ac_cv_broken_nice+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14904 | $as_echo_n "(cached) " >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14905 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14906 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14907 | if test "$cross_compiling" = yes; then : |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 14908 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 14909 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14910 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14911 | /* end confdefs.h. */ |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 14912 | |
| 14913 | int main() |
| 14914 | { |
| 14915 | int val1 = nice(1); |
| 14916 | if (val1 != -1 && val1 == nice(2)) |
| 14917 | exit(0); |
| 14918 | exit(1); |
| 14919 | } |
| 14920 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14921 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14922 | if ac_fn_c_try_run "$LINENO"; then : |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 14923 | ac_cv_broken_nice=yes |
| 14924 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14925 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 14926 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14927 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 14928 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 14929 | fi |
| 14930 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14931 | fi |
| 14932 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_nice" >&5 |
| 14934 | $as_echo "$ac_cv_broken_nice" >&6; } |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 14935 | if test "$ac_cv_broken_nice" = yes |
| 14936 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14937 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14938 | $as_echo "#define HAVE_BROKEN_NICE 1" >>confdefs.h |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 14939 | |
| 14940 | fi |
| 14941 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14942 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken poll()" >&5 |
| 14943 | $as_echo_n "checking for broken poll()... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14944 | if ${ac_cv_broken_poll+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14945 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14946 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14947 | if test "$cross_compiling" = yes; then : |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 14948 | ac_cv_broken_poll=no |
| 14949 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14950 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 14951 | /* end confdefs.h. */ |
| 14952 | |
| 14953 | #include <poll.h> |
| 14954 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14955 | int main() |
| 14956 | { |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 14957 | struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 }; |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14958 | int poll_test; |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 14959 | |
| 14960 | close (42); |
| 14961 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14962 | poll_test = poll(&poll_struct, 1, 0); |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 14963 | if (poll_test < 0) |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14964 | return 0; |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 14965 | else if (poll_test == 0 && poll_struct.revents != POLLNVAL) |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14966 | return 0; |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 14967 | else |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14968 | return 1; |
| 14969 | } |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 14970 | |
| 14971 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14972 | if ac_fn_c_try_run "$LINENO"; then : |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 14973 | ac_cv_broken_poll=yes |
| 14974 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14975 | ac_cv_broken_poll=no |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 14976 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14977 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 14978 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 14979 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14980 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14981 | fi |
| 14982 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14983 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_poll" >&5 |
| 14984 | $as_echo "$ac_cv_broken_poll" >&6; } |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 14985 | if test "$ac_cv_broken_poll" = yes |
| 14986 | then |
| 14987 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14988 | $as_echo "#define HAVE_BROKEN_POLL 1" >>confdefs.h |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 14989 | |
| 14990 | fi |
| 14991 | |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14992 | # 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] | 14993 | # (which is not required by ISO C or UNIX spec) and/or if we support |
| 14994 | # tzname[] |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14995 | 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] | 14996 | #include <$ac_cv_struct_tm> |
| 14997 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14998 | " |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14999 | if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then : |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15000 | |
| 15001 | cat >>confdefs.h <<_ACEOF |
| 15002 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 15003 | _ACEOF |
| 15004 | |
| 15005 | |
| 15006 | fi |
| 15007 | |
| 15008 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 15009 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15010 | $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15011 | |
| 15012 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15013 | ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> |
| 15014 | " |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15015 | if test "x$ac_cv_have_decl_tzname" = xyes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15016 | ac_have_decl=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15017 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15018 | ac_have_decl=0 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15019 | fi |
| 15020 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15021 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15022 | #define HAVE_DECL_TZNAME $ac_have_decl |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15023 | _ACEOF |
| 15024 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15025 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 |
| 15026 | $as_echo_n "checking for tzname... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15027 | if ${ac_cv_var_tzname+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15028 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15029 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15030 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15031 | /* end confdefs.h. */ |
| 15032 | #include <time.h> |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15033 | #if !HAVE_DECL_TZNAME |
| 15034 | extern char *tzname[]; |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15035 | #endif |
| 15036 | |
| 15037 | int |
| 15038 | main () |
| 15039 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15040 | return tzname[0][0]; |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15041 | ; |
| 15042 | return 0; |
| 15043 | } |
| 15044 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15045 | if ac_fn_c_try_link "$LINENO"; then : |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15046 | ac_cv_var_tzname=yes |
| 15047 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15048 | ac_cv_var_tzname=no |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15049 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15050 | rm -f core conftest.err conftest.$ac_objext \ |
| 15051 | conftest$ac_exeext conftest.$ac_ext |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15052 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 |
| 15054 | $as_echo "$ac_cv_var_tzname" >&6; } |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15055 | if test $ac_cv_var_tzname = yes; then |
| 15056 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15057 | $as_echo "#define HAVE_TZNAME 1" >>confdefs.h |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15058 | |
| 15059 | fi |
| 15060 | fi |
| 15061 | |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15062 | |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 15063 | # check tzset(3) exists and works like we expect it to |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15064 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working tzset()" >&5 |
| 15065 | $as_echo_n "checking for working tzset()... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15066 | if ${ac_cv_working_tzset+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15067 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15068 | else |
| 15069 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15070 | if test "$cross_compiling" = yes; then : |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15071 | ac_cv_working_tzset=no |
| 15072 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15073 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15074 | /* end confdefs.h. */ |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15075 | |
| 15076 | #include <stdlib.h> |
| 15077 | #include <time.h> |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15078 | #include <string.h> |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15079 | |
| 15080 | #if HAVE_TZNAME |
| 15081 | extern char *tzname[]; |
| 15082 | #endif |
| 15083 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15084 | int main() |
| 15085 | { |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15086 | /* Note that we need to ensure that not only does tzset(3) |
| 15087 | do 'something' with localtime, but it works as documented |
| 15088 | 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] | 15089 | This includes making sure that tzname is set properly if |
| 15090 | tm->tm_zone does not exist since it is the alternative way |
| 15091 | of getting timezone info. |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15092 | |
| 15093 | Red Hat 6.2 doesn't understand the southern hemisphere |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 15094 | after New Year's Day. |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15095 | */ |
| 15096 | |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 15097 | time_t groundhogday = 1044144000; /* GMT-based */ |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15098 | time_t midyear = groundhogday + (365 * 24 * 3600 / 2); |
| 15099 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 15100 | putenv("TZ=UTC+0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15101 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15102 | if (localtime(&groundhogday)->tm_hour != 0) |
| 15103 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15104 | #if HAVE_TZNAME |
| 15105 | /* For UTC, tzname[1] is sometimes "", sometimes " " */ |
| 15106 | if (strcmp(tzname[0], "UTC") || |
| 15107 | (tzname[1][0] != 0 && tzname[1][0] != ' ')) |
| 15108 | exit(1); |
| 15109 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15110 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 15111 | putenv("TZ=EST+5EDT,M4.1.0,M10.5.0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15112 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15113 | if (localtime(&groundhogday)->tm_hour != 19) |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15114 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15115 | #if HAVE_TZNAME |
| 15116 | if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT")) |
| 15117 | exit(1); |
| 15118 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15119 | |
| 15120 | putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0"); |
| 15121 | tzset(); |
| 15122 | if (localtime(&groundhogday)->tm_hour != 11) |
| 15123 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15124 | #if HAVE_TZNAME |
| 15125 | if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT")) |
| 15126 | exit(1); |
| 15127 | #endif |
| 15128 | |
| 15129 | #if HAVE_STRUCT_TM_TM_ZONE |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15130 | if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT")) |
| 15131 | exit(1); |
| 15132 | if (strcmp(localtime(&midyear)->tm_zone, "AEST")) |
| 15133 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15134 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15135 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15136 | exit(0); |
| 15137 | } |
| 15138 | |
| 15139 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15140 | if ac_fn_c_try_run "$LINENO"; then : |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15141 | ac_cv_working_tzset=yes |
| 15142 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15143 | ac_cv_working_tzset=no |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15144 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15145 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 15146 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15147 | fi |
| 15148 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15149 | fi |
| 15150 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_tzset" >&5 |
| 15152 | $as_echo "$ac_cv_working_tzset" >&6; } |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15153 | if test "$ac_cv_working_tzset" = yes |
| 15154 | then |
| 15155 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15156 | $as_echo "#define HAVE_WORKING_TZSET 1" >>confdefs.h |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15157 | |
| 15158 | fi |
| 15159 | |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15160 | # Look for subsecond timestamps in struct stat |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15161 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec in struct stat" >&5 |
| 15162 | $as_echo_n "checking for tv_nsec in struct stat... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15163 | if ${ac_cv_stat_tv_nsec+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15164 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15165 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15166 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15167 | /* end confdefs.h. */ |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15168 | #include <sys/stat.h> |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15169 | int |
| 15170 | main () |
| 15171 | { |
| 15172 | |
| 15173 | struct stat st; |
| 15174 | st.st_mtim.tv_nsec = 1; |
| 15175 | |
| 15176 | ; |
| 15177 | return 0; |
| 15178 | } |
| 15179 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15180 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | a32c994 | 2002-09-09 16:17:47 +0000 | [diff] [blame] | 15181 | ac_cv_stat_tv_nsec=yes |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15182 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15183 | ac_cv_stat_tv_nsec=no |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15184 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15185 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15186 | fi |
| 15187 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec" >&5 |
| 15189 | $as_echo "$ac_cv_stat_tv_nsec" >&6; } |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15190 | if test "$ac_cv_stat_tv_nsec" = yes |
| 15191 | then |
| 15192 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15193 | $as_echo "#define HAVE_STAT_TV_NSEC 1" >>confdefs.h |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15194 | |
| 15195 | fi |
| 15196 | |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 15197 | # Look for BSD style subsecond timestamps in struct stat |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15198 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec2 in struct stat" >&5 |
| 15199 | $as_echo_n "checking for tv_nsec2 in struct stat... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15200 | if ${ac_cv_stat_tv_nsec2+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15201 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 15202 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15203 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 15204 | /* end confdefs.h. */ |
| 15205 | #include <sys/stat.h> |
| 15206 | int |
| 15207 | main () |
| 15208 | { |
| 15209 | |
| 15210 | struct stat st; |
| 15211 | st.st_mtimespec.tv_nsec = 1; |
| 15212 | |
| 15213 | ; |
| 15214 | return 0; |
| 15215 | } |
| 15216 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15217 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 15218 | ac_cv_stat_tv_nsec2=yes |
| 15219 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15220 | ac_cv_stat_tv_nsec2=no |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 15221 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15222 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15223 | fi |
| 15224 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec2" >&5 |
| 15226 | $as_echo "$ac_cv_stat_tv_nsec2" >&6; } |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 15227 | if test "$ac_cv_stat_tv_nsec2" = yes |
| 15228 | then |
| 15229 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15230 | $as_echo "#define HAVE_STAT_TV_NSEC2 1" >>confdefs.h |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 15231 | |
| 15232 | fi |
| 15233 | |
doko@ubuntu.com | 1a4f561 | 2014-04-17 20:13:44 +0200 | [diff] [blame] | 15234 | # first curses header check |
doko@ubuntu.com | 9dc823d | 2012-07-07 03:06:42 +0200 | [diff] [blame] | 15235 | ac_save_cppflags="$CPPFLAGS" |
| 15236 | CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw" |
doko@ubuntu.com | 1a4f561 | 2014-04-17 20:13:44 +0200 | [diff] [blame] | 15237 | |
| 15238 | for ac_header in curses.h ncurses.h |
| 15239 | do : |
| 15240 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15241 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 15242 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 15243 | cat >>confdefs.h <<_ACEOF |
| 15244 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 15245 | _ACEOF |
| 15246 | |
| 15247 | fi |
| 15248 | |
| 15249 | done |
| 15250 | |
| 15251 | |
| 15252 | # On Solaris, term.h requires curses.h |
| 15253 | for ac_header in term.h |
| 15254 | do : |
| 15255 | ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" " |
| 15256 | #ifdef HAVE_CURSES_H |
| 15257 | #include <curses.h> |
| 15258 | #endif |
| 15259 | |
| 15260 | " |
| 15261 | if test "x$ac_cv_header_term_h" = xyes; then : |
| 15262 | cat >>confdefs.h <<_ACEOF |
| 15263 | #define HAVE_TERM_H 1 |
| 15264 | _ACEOF |
| 15265 | |
| 15266 | fi |
| 15267 | |
| 15268 | done |
| 15269 | |
| 15270 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15271 | # 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] | 15272 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mvwdelch is an expression" >&5 |
| 15273 | $as_echo_n "checking whether mvwdelch is an expression... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15274 | if ${ac_cv_mvwdelch_is_expression+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15275 | $as_echo_n "(cached) " >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15276 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15277 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15278 | /* end confdefs.h. */ |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15279 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15280 | int |
| 15281 | main () |
| 15282 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15283 | |
| 15284 | int rtn; |
| 15285 | rtn = mvwdelch(0,0,0); |
| 15286 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15287 | ; |
| 15288 | return 0; |
| 15289 | } |
| 15290 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15291 | if ac_fn_c_try_compile "$LINENO"; then : |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15292 | ac_cv_mvwdelch_is_expression=yes |
| 15293 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15294 | ac_cv_mvwdelch_is_expression=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15295 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15296 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15297 | fi |
| 15298 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mvwdelch_is_expression" >&5 |
| 15300 | $as_echo "$ac_cv_mvwdelch_is_expression" >&6; } |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15301 | |
| 15302 | if test "$ac_cv_mvwdelch_is_expression" = yes |
| 15303 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15304 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15305 | $as_echo "#define MVWDELCH_IS_EXPRESSION 1" >>confdefs.h |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15306 | |
| 15307 | fi |
| 15308 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15309 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether WINDOW has _flags" >&5 |
| 15310 | $as_echo_n "checking whether WINDOW has _flags... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15311 | if ${ac_cv_window_has_flags+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15312 | $as_echo_n "(cached) " >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15313 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15314 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15315 | /* end confdefs.h. */ |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15316 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15317 | int |
| 15318 | main () |
| 15319 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15320 | |
| 15321 | WINDOW *w; |
| 15322 | w->_flags = 0; |
| 15323 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15324 | ; |
| 15325 | return 0; |
| 15326 | } |
| 15327 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15328 | if ac_fn_c_try_compile "$LINENO"; then : |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15329 | ac_cv_window_has_flags=yes |
| 15330 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15331 | ac_cv_window_has_flags=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15332 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15333 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15334 | fi |
| 15335 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_window_has_flags" >&5 |
| 15337 | $as_echo "$ac_cv_window_has_flags" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15338 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15339 | |
| 15340 | if test "$ac_cv_window_has_flags" = yes |
| 15341 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15342 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15343 | $as_echo "#define WINDOW_HAS_FLAGS 1" >>confdefs.h |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15344 | |
| 15345 | fi |
| 15346 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15347 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_term_resized" >&5 |
| 15348 | $as_echo_n "checking for is_term_resized... " >&6; } |
| 15349 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15350 | /* end confdefs.h. */ |
| 15351 | #include <curses.h> |
| 15352 | int |
| 15353 | main () |
| 15354 | { |
| 15355 | void *x=is_term_resized |
| 15356 | ; |
| 15357 | return 0; |
| 15358 | } |
| 15359 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15360 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 15361 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15362 | $as_echo "#define HAVE_CURSES_IS_TERM_RESIZED 1" >>confdefs.h |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15363 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 15364 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15365 | $as_echo "yes" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15366 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15368 | $as_echo "no" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15369 | |
| 15370 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15371 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15372 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15373 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resize_term" >&5 |
| 15374 | $as_echo_n "checking for resize_term... " >&6; } |
| 15375 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15376 | /* end confdefs.h. */ |
| 15377 | #include <curses.h> |
| 15378 | int |
| 15379 | main () |
| 15380 | { |
| 15381 | void *x=resize_term |
| 15382 | ; |
| 15383 | return 0; |
| 15384 | } |
| 15385 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15386 | if ac_fn_c_try_compile "$LINENO"; then : |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15387 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15388 | $as_echo "#define HAVE_CURSES_RESIZE_TERM 1" >>confdefs.h |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15389 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 15390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15391 | $as_echo "yes" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15392 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15393 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15394 | $as_echo "no" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15395 | |
| 15396 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15397 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15398 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15399 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resizeterm" >&5 |
| 15400 | $as_echo_n "checking for resizeterm... " >&6; } |
| 15401 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15402 | /* end confdefs.h. */ |
| 15403 | #include <curses.h> |
| 15404 | int |
| 15405 | main () |
| 15406 | { |
| 15407 | void *x=resizeterm |
| 15408 | ; |
| 15409 | return 0; |
| 15410 | } |
| 15411 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15412 | if ac_fn_c_try_compile "$LINENO"; then : |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15413 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15414 | $as_echo "#define HAVE_CURSES_RESIZETERM 1" >>confdefs.h |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15415 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 15416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15417 | $as_echo "yes" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15418 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15420 | $as_echo "no" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15421 | |
| 15422 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15423 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
doko@ubuntu.com | 9dc823d | 2012-07-07 03:06:42 +0200 | [diff] [blame] | 15424 | # last curses configure check |
| 15425 | CPPFLAGS=$ac_save_cppflags |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15426 | |
doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 15427 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for device files" >&5 |
| 15428 | $as_echo "$as_me: checking for device files" >&6;} |
| 15429 | |
| 15430 | if test "x$cross_compiling" = xyes; then |
| 15431 | if test "${ac_cv_file__dev_ptmx+set}" != set; then |
| 15432 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5 |
| 15433 | $as_echo_n "checking for /dev/ptmx... " >&6; } |
| 15434 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5 |
| 15435 | $as_echo "not set" >&6; } |
| 15436 | as_fn_error $? "set ac_cv_file__dev_ptmx to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5 |
| 15437 | fi |
| 15438 | if test "${ac_cv_file__dev_ptc+set}" != set; then |
| 15439 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5 |
| 15440 | $as_echo_n "checking for /dev/ptc... " >&6; } |
| 15441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5 |
| 15442 | $as_echo "not set" >&6; } |
| 15443 | as_fn_error $? "set ac_cv_file__dev_ptc to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5 |
| 15444 | fi |
| 15445 | fi |
| 15446 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15447 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5 |
| 15448 | $as_echo_n "checking for /dev/ptmx... " >&6; } |
doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 15449 | if ${ac_cv_file__dev_ptmx+:} false; then : |
| 15450 | $as_echo_n "(cached) " >&6 |
| 15451 | else |
| 15452 | test "$cross_compiling" = yes && |
| 15453 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 |
| 15454 | if test -r "/dev/ptmx"; then |
| 15455 | ac_cv_file__dev_ptmx=yes |
| 15456 | else |
| 15457 | ac_cv_file__dev_ptmx=no |
| 15458 | fi |
| 15459 | fi |
| 15460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptmx" >&5 |
| 15461 | $as_echo "$ac_cv_file__dev_ptmx" >&6; } |
| 15462 | if test "x$ac_cv_file__dev_ptmx" = xyes; then : |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 15463 | |
doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 15464 | fi |
| 15465 | |
| 15466 | if test "x$ac_cv_file__dev_ptmx" = xyes; then |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 15467 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15468 | $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 15469 | |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 15470 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15471 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5 |
| 15472 | $as_echo_n "checking for /dev/ptc... " >&6; } |
doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 15473 | if ${ac_cv_file__dev_ptc+:} false; then : |
| 15474 | $as_echo_n "(cached) " >&6 |
| 15475 | else |
| 15476 | test "$cross_compiling" = yes && |
| 15477 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 |
| 15478 | if test -r "/dev/ptc"; then |
| 15479 | ac_cv_file__dev_ptc=yes |
| 15480 | else |
| 15481 | ac_cv_file__dev_ptc=no |
| 15482 | fi |
| 15483 | fi |
| 15484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptc" >&5 |
| 15485 | $as_echo "$ac_cv_file__dev_ptc" >&6; } |
| 15486 | if test "x$ac_cv_file__dev_ptc" = xyes; then : |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 15487 | |
doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 15488 | fi |
| 15489 | |
| 15490 | if test "x$ac_cv_file__dev_ptc" = xyes; then |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 15491 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15492 | $as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 15493 | |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 15494 | fi |
| 15495 | |
Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15496 | if test "$have_long_long" = yes |
| 15497 | then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15498 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for %lld and %llu printf() format support" >&5 |
| 15499 | $as_echo_n "checking for %lld and %llu printf() format support... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15500 | if ${ac_cv_have_long_long_format+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15501 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15502 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15503 | if test "$cross_compiling" = yes; then : |
Matthias Klose | 3b739b1 | 2012-03-15 19:31:06 +0100 | [diff] [blame] | 15504 | ac_cv_have_long_long_format="cross -- assuming no" |
| 15505 | if test x$GCC = xyes; then |
| 15506 | save_CFLAGS=$CFLAGS |
| 15507 | CFLAGS="$CFLAGS -Werror -Wformat" |
| 15508 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15509 | /* end confdefs.h. */ |
| 15510 | |
| 15511 | #include <stdio.h> |
| 15512 | #include <stddef.h> |
| 15513 | |
| 15514 | int |
| 15515 | main () |
| 15516 | { |
| 15517 | |
| 15518 | char *buffer; |
| 15519 | sprintf(buffer, "%lld", (long long)123); |
| 15520 | sprintf(buffer, "%lld", (long long)-123); |
| 15521 | sprintf(buffer, "%llu", (unsigned long long)123); |
| 15522 | |
| 15523 | ; |
| 15524 | return 0; |
| 15525 | } |
| 15526 | _ACEOF |
| 15527 | if ac_fn_c_try_compile "$LINENO"; then : |
| 15528 | ac_cv_have_long_long_format=yes |
| 15529 | |
| 15530 | fi |
| 15531 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15532 | CFLAGS=$save_CFLAGS |
| 15533 | fi |
Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15534 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15535 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15536 | /* end confdefs.h. */ |
| 15537 | |
| 15538 | #include <stdio.h> |
| 15539 | #include <stddef.h> |
| 15540 | #include <string.h> |
| 15541 | |
| 15542 | #ifdef HAVE_SYS_TYPES_H |
| 15543 | #include <sys/types.h> |
| 15544 | #endif |
| 15545 | |
| 15546 | int main() |
| 15547 | { |
| 15548 | char buffer[256]; |
| 15549 | |
| 15550 | if (sprintf(buffer, "%lld", (long long)123) < 0) |
| 15551 | return 1; |
| 15552 | if (strcmp(buffer, "123")) |
| 15553 | return 1; |
| 15554 | |
| 15555 | if (sprintf(buffer, "%lld", (long long)-123) < 0) |
| 15556 | return 1; |
| 15557 | if (strcmp(buffer, "-123")) |
| 15558 | return 1; |
| 15559 | |
| 15560 | if (sprintf(buffer, "%llu", (unsigned long long)123) < 0) |
| 15561 | return 1; |
| 15562 | if (strcmp(buffer, "123")) |
| 15563 | return 1; |
| 15564 | |
| 15565 | return 0; |
| 15566 | } |
| 15567 | |
| 15568 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15569 | if ac_fn_c_try_run "$LINENO"; then : |
Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15570 | ac_cv_have_long_long_format=yes |
| 15571 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15572 | ac_cv_have_long_long_format=no |
Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15573 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15574 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 15575 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15576 | fi |
| 15577 | |
| 15578 | |
Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15579 | fi |
| 15580 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_long_long_format" >&5 |
| 15582 | $as_echo "$ac_cv_have_long_long_format" >&6; } |
Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15583 | fi |
| 15584 | |
Mark Dickinson | 89d7d41 | 2009-12-31 20:50:59 +0000 | [diff] [blame] | 15585 | if test "$ac_cv_have_long_long_format" = yes |
Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15586 | then |
| 15587 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15588 | $as_echo "#define PY_FORMAT_LONG_LONG \"ll\"" >>confdefs.h |
Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15589 | |
| 15590 | fi |
| 15591 | |
Ronald Oussoren | 3c1928a | 2009-11-19 17:15:31 +0000 | [diff] [blame] | 15592 | if test $ac_sys_system = Darwin |
| 15593 | then |
| 15594 | LIBS="$LIBS -framework CoreFoundation" |
| 15595 | fi |
Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15596 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15597 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for %zd printf() format support" >&5 |
| 15598 | $as_echo_n "checking for %zd printf() format support... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15599 | if ${ac_cv_have_size_t_format+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15600 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15601 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15602 | if test "$cross_compiling" = yes; then : |
Benjamin Peterson | 8f326b2 | 2009-12-13 02:10:36 +0000 | [diff] [blame] | 15603 | ac_cv_have_size_t_format="cross -- assuming yes" |
| 15604 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15605 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15606 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15607 | /* end confdefs.h. */ |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15608 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15609 | #include <stdio.h> |
| 15610 | #include <stddef.h> |
| 15611 | #include <string.h> |
| 15612 | |
Christian Heimes | 2c18161 | 2007-12-17 20:04:13 +0000 | [diff] [blame] | 15613 | #ifdef HAVE_SYS_TYPES_H |
| 15614 | #include <sys/types.h> |
| 15615 | #endif |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 15616 | |
| 15617 | #ifdef HAVE_SSIZE_T |
| 15618 | typedef ssize_t Py_ssize_t; |
| 15619 | #elif SIZEOF_VOID_P == SIZEOF_LONG |
| 15620 | typedef long Py_ssize_t; |
| 15621 | #else |
| 15622 | typedef int Py_ssize_t; |
| 15623 | #endif |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15624 | |
Christian Heimes | 2c18161 | 2007-12-17 20:04:13 +0000 | [diff] [blame] | 15625 | int main() |
| 15626 | { |
| 15627 | char buffer[256]; |
| 15628 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15629 | if(sprintf(buffer, "%zd", (size_t)123) < 0) |
| 15630 | return 1; |
| 15631 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 15632 | if (strcmp(buffer, "123")) |
| 15633 | return 1; |
| 15634 | |
| 15635 | if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0) |
| 15636 | return 1; |
| 15637 | |
| 15638 | if (strcmp(buffer, "-123")) |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15639 | return 1; |
| 15640 | |
| 15641 | return 0; |
| 15642 | } |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15643 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15644 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15645 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15646 | ac_cv_have_size_t_format=yes |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15647 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15648 | ac_cv_have_size_t_format=no |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15649 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15650 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 15651 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 15652 | fi |
| 15653 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15654 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_size_t_format" >&5 |
| 15656 | $as_echo "$ac_cv_have_size_t_format" >&6; } |
Benjamin Peterson | 8f326b2 | 2009-12-13 02:10:36 +0000 | [diff] [blame] | 15657 | if test "$ac_cv_have_size_t_format" != no ; then |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15658 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15659 | $as_echo "#define PY_FORMAT_SIZE_T \"z\"" >>confdefs.h |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15660 | |
| 15661 | fi |
| 15662 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15663 | 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] | 15664 | #ifdef HAVE_SYS_TYPES_H |
| 15665 | #include <sys/types.h> |
| 15666 | #endif |
| 15667 | #ifdef HAVE_SYS_SOCKET_H |
| 15668 | #include <sys/socket.h> |
| 15669 | #endif |
| 15670 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15671 | " |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15672 | if test "x$ac_cv_type_socklen_t" = xyes; then : |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 15673 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15674 | else |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 15675 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15676 | $as_echo "#define socklen_t int" >>confdefs.h |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 15677 | |
| 15678 | fi |
| 15679 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15680 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15681 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken mbstowcs" >&5 |
| 15682 | $as_echo_n "checking for broken mbstowcs... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15683 | if ${ac_cv_broken_mbstowcs+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15684 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15685 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15686 | if test "$cross_compiling" = yes; then : |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 15687 | ac_cv_broken_mbstowcs=no |
| 15688 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15689 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 15690 | /* end confdefs.h. */ |
| 15691 | |
Stefan Krah | 19c2139 | 2012-11-22 23:47:32 +0100 | [diff] [blame] | 15692 | #include <stdio.h> |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 15693 | #include<stdlib.h> |
| 15694 | int main() { |
| 15695 | size_t len = -1; |
| 15696 | const char *str = "text"; |
| 15697 | len = mbstowcs(NULL, str, 0); |
| 15698 | return (len != 4); |
| 15699 | } |
| 15700 | |
| 15701 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15702 | if ac_fn_c_try_run "$LINENO"; then : |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 15703 | ac_cv_broken_mbstowcs=no |
| 15704 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15705 | ac_cv_broken_mbstowcs=yes |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 15706 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15707 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 15708 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 15709 | fi |
| 15710 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15711 | fi |
| 15712 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_mbstowcs" >&5 |
| 15714 | $as_echo "$ac_cv_broken_mbstowcs" >&6; } |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 15715 | if test "$ac_cv_broken_mbstowcs" = yes |
| 15716 | then |
| 15717 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15718 | $as_echo "#define HAVE_BROKEN_MBSTOWCS 1" >>confdefs.h |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 15719 | |
| 15720 | fi |
| 15721 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15722 | # Check for --with-computed-gotos |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15723 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-computed-gotos" >&5 |
| 15724 | $as_echo_n "checking for --with-computed-gotos... " >&6; } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15725 | |
| 15726 | # Check whether --with-computed-gotos was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15727 | if test "${with_computed_gotos+set}" = set; then : |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15728 | withval=$with_computed_gotos; |
Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 15729 | if test "$withval" = yes |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15730 | then |
| 15731 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15732 | $as_echo "#define USE_COMPUTED_GOTOS 1" >>confdefs.h |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15733 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 15735 | $as_echo "yes" >&6; } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15736 | fi |
Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 15737 | if test "$withval" = no |
| 15738 | then |
| 15739 | |
| 15740 | $as_echo "#define USE_COMPUTED_GOTOS 0" >>confdefs.h |
| 15741 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15743 | $as_echo "no" >&6; } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15744 | fi |
| 15745 | |
Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 15746 | else |
| 15747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5 |
| 15748 | $as_echo "no value specified" >&6; } |
| 15749 | fi |
| 15750 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15751 | |
Matthias Klose | b17289e | 2012-03-15 19:51:34 +0100 | [diff] [blame] | 15752 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports computed gotos" >&5 |
| 15753 | $as_echo_n "checking whether $CC supports computed gotos... " >&6; } |
| 15754 | if ${ac_cv_computed_gotos+:} false; then : |
| 15755 | $as_echo_n "(cached) " >&6 |
| 15756 | else |
| 15757 | if test "$cross_compiling" = yes; then : |
| 15758 | if test "${with_computed_gotos+set}" = set; then |
| 15759 | ac_cv_computed_gotos="$with_computed_gotos -- configured --with(out)-computed-gotos" |
| 15760 | else |
| 15761 | ac_cv_computed_gotos=no |
| 15762 | fi |
| 15763 | else |
| 15764 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15765 | /* end confdefs.h. */ |
| 15766 | |
| 15767 | int main(int argc, char **argv) |
| 15768 | { |
| 15769 | static void *targets[1] = { &&LABEL1 }; |
| 15770 | goto LABEL2; |
| 15771 | LABEL1: |
| 15772 | return 0; |
| 15773 | LABEL2: |
| 15774 | goto *targets[0]; |
| 15775 | return 1; |
| 15776 | } |
| 15777 | |
| 15778 | _ACEOF |
| 15779 | if ac_fn_c_try_run "$LINENO"; then : |
| 15780 | ac_cv_computed_gotos=yes |
| 15781 | else |
| 15782 | ac_cv_computed_gotos=no |
| 15783 | fi |
| 15784 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 15785 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 15786 | fi |
| 15787 | |
| 15788 | fi |
| 15789 | |
| 15790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_computed_gotos" >&5 |
| 15791 | $as_echo "$ac_cv_computed_gotos" >&6; } |
| 15792 | case "$ac_cv_computed_gotos" in yes*) |
| 15793 | |
| 15794 | $as_echo "#define HAVE_COMPUTED_GOTOS 1" >>confdefs.h |
| 15795 | |
| 15796 | esac |
| 15797 | |
Benjamin Peterson | d8d835b | 2010-10-15 23:14:46 +0000 | [diff] [blame] | 15798 | case $ac_sys_system in |
| 15799 | AIX*) |
| 15800 | |
| 15801 | $as_echo "#define HAVE_BROKEN_PIPE_BUF 1" >>confdefs.h |
| 15802 | ;; |
| 15803 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15804 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15805 | |
Mark Dickinson | b2153e9 | 2010-05-05 22:31:36 +0000 | [diff] [blame] | 15806 | |
| 15807 | |
Martin v. Löwis | 06f15bb | 2001-12-02 13:02:32 +0000 | [diff] [blame] | 15808 | for h in `(cd $srcdir;echo Python/thread_*.h)` |
| 15809 | do |
| 15810 | THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" |
| 15811 | done |
| 15812 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15813 | |
Ned Deily | 0db50cf | 2014-07-25 12:41:31 -0700 | [diff] [blame] | 15814 | SRCDIRS="Parser Grammar Objects Python Modules Mac Programs" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15815 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build directories" >&5 |
| 15816 | $as_echo_n "checking for build directories... " >&6; } |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 15817 | for dir in $SRCDIRS; do |
| 15818 | if test ! -d $dir; then |
| 15819 | mkdir $dir |
Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 15820 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 15821 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 |
| 15823 | $as_echo "done" >&6; } |
Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 15824 | |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 15825 | # Availability of -O2: |
| 15826 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -O2" >&5 |
| 15827 | $as_echo_n "checking for -O2... " >&6; } |
| 15828 | saved_cflags="$CFLAGS" |
| 15829 | CFLAGS="-O2" |
| 15830 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15831 | /* end confdefs.h. */ |
| 15832 | |
| 15833 | int |
| 15834 | main () |
| 15835 | { |
| 15836 | |
| 15837 | |
| 15838 | ; |
| 15839 | return 0; |
| 15840 | } |
| 15841 | _ACEOF |
| 15842 | if ac_fn_c_try_compile "$LINENO"; then : |
| 15843 | have_O2=yes |
| 15844 | else |
| 15845 | have_O2=no |
| 15846 | fi |
| 15847 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_O2" >&5 |
| 15849 | $as_echo "$have_O2" >&6; } |
| 15850 | CFLAGS="$saved_cflags" |
| 15851 | |
| 15852 | # _FORTIFY_SOURCE wrappers for memmove and bcopy are incorrect: |
| 15853 | # http://sourceware.org/ml/libc-alpha/2010-12/msg00009.html |
| 15854 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc _FORTIFY_SOURCE/memmove bug" >&5 |
| 15855 | $as_echo_n "checking for glibc _FORTIFY_SOURCE/memmove bug... " >&6; } |
| 15856 | saved_cflags="$CFLAGS" |
| 15857 | CFLAGS="-O2 -D_FORTIFY_SOURCE=2" |
| 15858 | if test "$have_O2" = no; then |
| 15859 | CFLAGS="" |
| 15860 | fi |
| 15861 | if test "$cross_compiling" = yes; then : |
| 15862 | have_glibc_memmove_bug=undefined |
| 15863 | else |
| 15864 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15865 | /* end confdefs.h. */ |
| 15866 | |
| 15867 | #include <stdio.h> |
| 15868 | #include <stdlib.h> |
| 15869 | #include <string.h> |
| 15870 | void foo(void *p, void *q) { memmove(p, q, 19); } |
| 15871 | int main() { |
| 15872 | char a[32] = "123456789000000000"; |
| 15873 | foo(&a[9], a); |
| 15874 | if (strcmp(a, "123456789123456789000000000") != 0) |
| 15875 | return 1; |
| 15876 | foo(a, &a[9]); |
| 15877 | if (strcmp(a, "123456789000000000") != 0) |
| 15878 | return 1; |
| 15879 | return 0; |
| 15880 | } |
| 15881 | |
| 15882 | _ACEOF |
| 15883 | if ac_fn_c_try_run "$LINENO"; then : |
| 15884 | have_glibc_memmove_bug=no |
| 15885 | else |
| 15886 | have_glibc_memmove_bug=yes |
| 15887 | fi |
| 15888 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 15889 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 15890 | fi |
| 15891 | |
| 15892 | CFLAGS="$saved_cflags" |
| 15893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_glibc_memmove_bug" >&5 |
| 15894 | $as_echo "$have_glibc_memmove_bug" >&6; } |
| 15895 | if test "$have_glibc_memmove_bug" = yes; then |
| 15896 | |
| 15897 | $as_echo "#define HAVE_GLIBC_MEMMOVE_BUG 1" >>confdefs.h |
| 15898 | |
| 15899 | fi |
| 15900 | |
| 15901 | if test "$have_gcc_asm_for_x87" = yes; then |
| 15902 | # Some versions of gcc miscompile inline asm: |
| 15903 | # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46491 |
| 15904 | # http://gcc.gnu.org/ml/gcc/2010-11/msg00366.html |
| 15905 | case $CC in |
| 15906 | *gcc*) |
| 15907 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc ipa-pure-const bug" >&5 |
| 15908 | $as_echo_n "checking for gcc ipa-pure-const bug... " >&6; } |
| 15909 | saved_cflags="$CFLAGS" |
| 15910 | CFLAGS="-O2" |
| 15911 | if test "$cross_compiling" = yes; then : |
| 15912 | have_ipa_pure_const_bug=undefined |
| 15913 | else |
| 15914 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15915 | /* end confdefs.h. */ |
| 15916 | |
| 15917 | __attribute__((noinline)) int |
| 15918 | foo(int *p) { |
| 15919 | int r; |
| 15920 | asm ( "movl \$6, (%1)\n\t" |
| 15921 | "xorl %0, %0\n\t" |
| 15922 | : "=r" (r) : "r" (p) : "memory" |
| 15923 | ); |
| 15924 | return r; |
| 15925 | } |
| 15926 | int main() { |
| 15927 | int p = 8; |
| 15928 | if ((foo(&p) ? : p) != 6) |
| 15929 | return 1; |
| 15930 | return 0; |
| 15931 | } |
| 15932 | |
| 15933 | _ACEOF |
| 15934 | if ac_fn_c_try_run "$LINENO"; then : |
| 15935 | have_ipa_pure_const_bug=no |
| 15936 | else |
| 15937 | have_ipa_pure_const_bug=yes |
| 15938 | fi |
| 15939 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 15940 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 15941 | fi |
| 15942 | |
| 15943 | CFLAGS="$saved_cflags" |
| 15944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ipa_pure_const_bug" >&5 |
| 15945 | $as_echo "$have_ipa_pure_const_bug" >&6; } |
| 15946 | if test "$have_ipa_pure_const_bug" = yes; then |
| 15947 | |
| 15948 | $as_echo "#define HAVE_IPA_PURE_CONST_BUG 1" >>confdefs.h |
| 15949 | |
| 15950 | fi |
| 15951 | ;; |
| 15952 | esac |
| 15953 | fi |
| 15954 | |
Victor Stinner | 4f5366e | 2015-01-09 02:13:19 +0100 | [diff] [blame] | 15955 | # Check for stdatomic.h |
| 15956 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdatomic.h" >&5 |
| 15957 | $as_echo_n "checking for stdatomic.h... " >&6; } |
| 15958 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15959 | /* end confdefs.h. */ |
| 15960 | |
| 15961 | |
| 15962 | #include <stdatomic.h> |
Victor Stinner | 923e06f | 2015-01-14 16:01:46 +0100 | [diff] [blame] | 15963 | atomic_int value = ATOMIC_VAR_INIT(1); |
| 15964 | _Atomic void *py_atomic_address = (void*) &value; |
Victor Stinner | 4f5366e | 2015-01-09 02:13:19 +0100 | [diff] [blame] | 15965 | int main() { |
| 15966 | int loaded_value = atomic_load(&value); |
| 15967 | return 0; |
| 15968 | } |
| 15969 | |
| 15970 | |
| 15971 | _ACEOF |
| 15972 | if ac_fn_c_try_link "$LINENO"; then : |
| 15973 | have_stdatomic_h=yes |
| 15974 | else |
| 15975 | have_stdatomic_h=no |
| 15976 | fi |
| 15977 | rm -f core conftest.err conftest.$ac_objext \ |
| 15978 | conftest$ac_exeext conftest.$ac_ext |
| 15979 | |
| 15980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_stdatomic_h" >&5 |
| 15981 | $as_echo "$have_stdatomic_h" >&6; } |
| 15982 | |
| 15983 | if test "$have_stdatomic_h" = yes; then |
| 15984 | |
| 15985 | $as_echo "#define HAVE_STD_ATOMIC 1" >>confdefs.h |
| 15986 | |
| 15987 | fi |
| 15988 | |
| 15989 | # Check for GCC >= 4.7 __atomic builtins |
| 15990 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC >= 4.7 __atomic builtins" >&5 |
| 15991 | $as_echo_n "checking for GCC >= 4.7 __atomic builtins... " >&6; } |
| 15992 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15993 | /* end confdefs.h. */ |
| 15994 | |
| 15995 | |
| 15996 | volatile int val = 1; |
| 15997 | int main() { |
| 15998 | __atomic_load_n(&val, __ATOMIC_SEQ_CST); |
| 15999 | return 0; |
| 16000 | } |
| 16001 | |
| 16002 | |
| 16003 | _ACEOF |
| 16004 | if ac_fn_c_try_link "$LINENO"; then : |
| 16005 | have_builtin_atomic=yes |
| 16006 | else |
| 16007 | have_builtin_atomic=no |
| 16008 | fi |
| 16009 | rm -f core conftest.err conftest.$ac_objext \ |
| 16010 | conftest$ac_exeext conftest.$ac_ext |
| 16011 | |
| 16012 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_builtin_atomic" >&5 |
| 16013 | $as_echo "$have_builtin_atomic" >&6; } |
| 16014 | |
| 16015 | if test "$have_builtin_atomic" = yes; then |
| 16016 | |
| 16017 | $as_echo "#define HAVE_BUILTIN_ATOMIC 1" >>confdefs.h |
| 16018 | |
| 16019 | fi |
| 16020 | |
Ned Deily | 322f5ba | 2013-11-21 23:01:59 -0800 | [diff] [blame] | 16021 | # ensurepip option |
| 16022 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ensurepip" >&5 |
| 16023 | $as_echo_n "checking for ensurepip... " >&6; } |
| 16024 | |
| 16025 | # Check whether --with-ensurepip was given. |
| 16026 | if test "${with_ensurepip+set}" = set; then : |
| 16027 | withval=$with_ensurepip; |
| 16028 | else |
| 16029 | with_ensurepip=upgrade |
| 16030 | fi |
| 16031 | |
| 16032 | case $with_ensurepip in #( |
| 16033 | yes|upgrade) : |
| 16034 | ENSUREPIP=upgrade ;; #( |
| 16035 | install) : |
| 16036 | ENSUREPIP=install ;; #( |
| 16037 | no) : |
| 16038 | ENSUREPIP=no ;; #( |
| 16039 | *) : |
| 16040 | as_fn_error $? "--with-ensurepip=upgrade|install|no" "$LINENO" 5 ;; |
| 16041 | esac |
| 16042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENSUREPIP" >&5 |
| 16043 | $as_echo "$ENSUREPIP" >&6; } |
| 16044 | |
| 16045 | |
Victor Stinner | 35a97c0 | 2015-03-08 02:59:09 +0100 | [diff] [blame] | 16046 | # check if the dirent structure of a d_type field and DT_UNKNOWN is defined |
| 16047 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the dirent structure of a d_type field" >&5 |
| 16048 | $as_echo_n "checking if the dirent structure of a d_type field... " >&6; } |
| 16049 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16050 | /* end confdefs.h. */ |
| 16051 | |
| 16052 | |
| 16053 | #include <dirent.h> |
| 16054 | |
| 16055 | int main() { |
| 16056 | struct dirent entry; |
| 16057 | return entry.d_type == DT_UNKNOWN; |
| 16058 | } |
| 16059 | |
| 16060 | |
| 16061 | _ACEOF |
| 16062 | if ac_fn_c_try_link "$LINENO"; then : |
| 16063 | have_dirent_d_type=yes |
| 16064 | else |
| 16065 | have_dirent_d_type=no |
| 16066 | fi |
| 16067 | rm -f core conftest.err conftest.$ac_objext \ |
| 16068 | conftest$ac_exeext conftest.$ac_ext |
| 16069 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dirent_d_type" >&5 |
| 16070 | $as_echo "$have_dirent_d_type" >&6; } |
| 16071 | |
| 16072 | if test "$have_dirent_d_type" = yes; then |
| 16073 | |
| 16074 | $as_echo "#define HAVE_DIRENT_D_TYPE 1" >>confdefs.h |
| 16075 | |
| 16076 | fi |
| 16077 | |
Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 16078 | # check if the Linux getrandom() syscall is available |
| 16079 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Linux getrandom() syscall" >&5 |
| 16080 | $as_echo_n "checking for the Linux getrandom() syscall... " >&6; } |
| 16081 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16082 | /* end confdefs.h. */ |
| 16083 | |
| 16084 | |
| 16085 | #include <sys/syscall.h> |
| 16086 | |
| 16087 | int main() { |
Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 16088 | char buffer[1]; |
Victor Stinner | bae2d62 | 2015-10-01 09:47:30 +0200 | [diff] [blame] | 16089 | const size_t buflen = sizeof(buffer); |
| 16090 | const int flags = 0; |
Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 16091 | /* ignore the result, Python checks for ENOSYS at runtime */ |
Victor Stinner | bae2d62 | 2015-10-01 09:47:30 +0200 | [diff] [blame] | 16092 | (void)syscall(SYS_getrandom, buffer, buflen, flags); |
Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 16093 | return 0; |
| 16094 | } |
| 16095 | |
| 16096 | |
| 16097 | _ACEOF |
| 16098 | if ac_fn_c_try_link "$LINENO"; then : |
| 16099 | have_getrandom_syscall=yes |
| 16100 | else |
| 16101 | have_getrandom_syscall=no |
| 16102 | fi |
| 16103 | rm -f core conftest.err conftest.$ac_objext \ |
| 16104 | conftest$ac_exeext conftest.$ac_ext |
| 16105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getrandom_syscall" >&5 |
| 16106 | $as_echo "$have_getrandom_syscall" >&6; } |
| 16107 | |
| 16108 | if test "$have_getrandom_syscall" = yes; then |
| 16109 | |
| 16110 | $as_echo "#define HAVE_GETRANDOM_SYSCALL 1" >>confdefs.h |
| 16111 | |
| 16112 | fi |
| 16113 | |
Victor Stinner | bae2d62 | 2015-10-01 09:47:30 +0200 | [diff] [blame] | 16114 | # check if the getrandom() function is available |
| 16115 | # the test was written for the Solaris function of <sys/random.h> |
| 16116 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the getrandom() function" >&5 |
| 16117 | $as_echo_n "checking for the getrandom() function... " >&6; } |
| 16118 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16119 | /* end confdefs.h. */ |
| 16120 | |
| 16121 | |
| 16122 | #include <sys/random.h> |
| 16123 | |
| 16124 | int main() { |
| 16125 | char buffer[1]; |
| 16126 | const size_t buflen = sizeof(buffer); |
| 16127 | const int flags = 0; |
| 16128 | /* ignore the result, Python checks for ENOSYS at runtime */ |
| 16129 | (void)getrandom(buffer, buflen, flags); |
| 16130 | return 0; |
| 16131 | } |
| 16132 | |
| 16133 | |
| 16134 | _ACEOF |
| 16135 | if ac_fn_c_try_link "$LINENO"; then : |
| 16136 | have_getrandom=yes |
| 16137 | else |
| 16138 | have_getrandom=no |
| 16139 | fi |
| 16140 | rm -f core conftest.err conftest.$ac_objext \ |
| 16141 | conftest$ac_exeext conftest.$ac_ext |
| 16142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getrandom" >&5 |
| 16143 | $as_echo "$have_getrandom" >&6; } |
| 16144 | |
| 16145 | if test "$have_getrandom" = yes; then |
| 16146 | |
| 16147 | $as_echo "#define HAVE_GETRANDOM 1" >>confdefs.h |
| 16148 | |
| 16149 | fi |
| 16150 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16151 | # generate output files |
doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 16152 | 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] | 16153 | |
Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 16154 | ac_config_files="$ac_config_files Modules/ld_so_aix" |
| 16155 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16156 | cat >confcache <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16157 | # This file is a shell script that caches the results of configure |
| 16158 | # 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] | 16159 | # scripts and configure runs, see configure's option --config-cache. |
| 16160 | # It is not useful on other systems. If it contains results you don't |
| 16161 | # want to keep, you may remove or edit it. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16162 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16163 | # config.status only pays attention to the cache file if you give it |
| 16164 | # the --recheck option to rerun configure. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16165 | # |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16166 | # `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] | 16167 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 16168 | # following values. |
| 16169 | |
| 16170 | _ACEOF |
| 16171 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 16172 | # The following way of writing the cache mishandles newlines in values, |
| 16173 | # but we know of no workaround that is simple, portable, and efficient. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16174 | # So, we kill variables containing newlines. |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16175 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 16176 | # 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] | 16177 | ( |
| 16178 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 16179 | eval ac_val=\$$ac_var |
| 16180 | case $ac_val in #( |
| 16181 | *${as_nl}*) |
| 16182 | case $ac_var in #( |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16183 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 16184 | $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] | 16185 | esac |
| 16186 | case $ac_var in #( |
| 16187 | _ | IFS | as_nl) ;; #( |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16188 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 16189 | *) { eval $ac_var=; unset $ac_var;} ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16190 | esac ;; |
| 16191 | esac |
| 16192 | done |
| 16193 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16194 | (set) 2>&1 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16195 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 16196 | *${as_nl}ac_space=\ *) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16197 | # `set' does not quote correctly, so add quotes: double-quote |
| 16198 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16199 | sed -n \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16200 | "s/'/'\\\\''/g; |
| 16201 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16202 | ;; #( |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16203 | *) |
| 16204 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16205 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16206 | ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16207 | esac | |
| 16208 | sort |
| 16209 | ) | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16210 | sed ' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16211 | /^ac_cv_env_/b end |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16212 | t clear |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16213 | :clear |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16214 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 16215 | t end |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16216 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 16217 | :end' >>confcache |
| 16218 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 16219 | if test -w "$cache_file"; then |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 16220 | if test "x$cache_file" != "x/dev/null"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16221 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
| 16222 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 16223 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
| 16224 | cat confcache >"$cache_file" |
| 16225 | else |
| 16226 | case $cache_file in #( |
| 16227 | */* | ?:*) |
| 16228 | mv -f confcache "$cache_file"$$ && |
| 16229 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
| 16230 | *) |
| 16231 | mv -f confcache "$cache_file" ;; |
| 16232 | esac |
| 16233 | fi |
| 16234 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16235 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16236 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
| 16237 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16238 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16239 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16240 | rm -f confcache |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 16241 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16242 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 16243 | # Let make expand exec_prefix. |
| 16244 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 16245 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16246 | DEFS=-DHAVE_CONFIG_H |
| 16247 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16248 | ac_libobjs= |
| 16249 | ac_ltlibobjs= |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16250 | U= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16251 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 16252 | # 1. Remove the extension, and $U if already installed. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16253 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16254 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16255 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 16256 | # will be set to the directory where LIBOBJS objects are built. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16257 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 16258 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16259 | done |
| 16260 | LIBOBJS=$ac_libobjs |
| 16261 | |
| 16262 | LTLIBOBJS=$ac_ltlibobjs |
| 16263 | |
| 16264 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16265 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16266 | |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 16267 | : "${CONFIG_STATUS=./config.status}" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16268 | ac_write_fail=0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16269 | ac_clean_files_save=$ac_clean_files |
| 16270 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16271 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
| 16272 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 16273 | as_write_fail=0 |
| 16274 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16275 | #! $SHELL |
| 16276 | # Generated by $as_me. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16277 | # Run this file to recreate the current configuration. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16278 | # Compiler output produced by configure, useful for debugging |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16279 | # configure, is in config.log if it exists. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16280 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16281 | debug=false |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16282 | ac_cs_recheck=false |
| 16283 | ac_cs_silent=false |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16284 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16285 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 16286 | export SHELL |
| 16287 | _ASEOF |
| 16288 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 16289 | ## -------------------- ## |
| 16290 | ## M4sh Initialization. ## |
| 16291 | ## -------------------- ## |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16292 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16293 | # Be more Bourne compatible |
| 16294 | DUALCASE=1; export DUALCASE # for MKS sh |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16295 | 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] | 16296 | emulate sh |
| 16297 | NULLCMD=: |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16298 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16299 | # is contrary to our usage. Disable this feature. |
| 16300 | alias -g '${1+"$@"}'='"$@"' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16301 | setopt NO_GLOB_SUBST |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 16302 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16303 | case `(set -o) 2>/dev/null` in #( |
| 16304 | *posix*) : |
| 16305 | set -o posix ;; #( |
| 16306 | *) : |
| 16307 | ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16308 | esac |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16309 | fi |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 16310 | |
| 16311 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16312 | as_nl=' |
| 16313 | ' |
| 16314 | export as_nl |
| 16315 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 16316 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 16317 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 16318 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 16319 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 16320 | # but without wasting forks for bash or zsh. |
| 16321 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 16322 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 16323 | as_echo='print -r --' |
| 16324 | as_echo_n='print -rn --' |
| 16325 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 16326 | as_echo='printf %s\n' |
| 16327 | as_echo_n='printf %s' |
| 16328 | else |
| 16329 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 16330 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 16331 | as_echo_n='/usr/ucb/echo -n' |
| 16332 | else |
| 16333 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 16334 | as_echo_n_body='eval |
| 16335 | arg=$1; |
| 16336 | case $arg in #( |
| 16337 | *"$as_nl"*) |
| 16338 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 16339 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 16340 | esac; |
| 16341 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 16342 | ' |
| 16343 | export as_echo_n_body |
| 16344 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 16345 | fi |
| 16346 | export as_echo_body |
| 16347 | as_echo='sh -c $as_echo_body as_echo' |
| 16348 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16349 | |
| 16350 | # The user is always right. |
| 16351 | if test "${PATH_SEPARATOR+set}" != set; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16352 | PATH_SEPARATOR=: |
| 16353 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 16354 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 16355 | PATH_SEPARATOR=';' |
| 16356 | } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16357 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16358 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16359 | |
| 16360 | # IFS |
| 16361 | # We need space, tab and new line, in precisely that order. Quoting is |
| 16362 | # there to prevent editors from complaining about space-tab. |
| 16363 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 16364 | # splitting by setting IFS to empty value.) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16365 | IFS=" "" $as_nl" |
| 16366 | |
| 16367 | # 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] | 16368 | as_myself= |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16369 | case $0 in #(( |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16370 | *[\\/]* ) as_myself=$0 ;; |
| 16371 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16372 | for as_dir in $PATH |
| 16373 | do |
| 16374 | IFS=$as_save_IFS |
| 16375 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16376 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 16377 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16378 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16379 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16380 | ;; |
| 16381 | esac |
| 16382 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 16383 | # in which case we are not to be found in the path. |
| 16384 | if test "x$as_myself" = x; then |
| 16385 | as_myself=$0 |
| 16386 | fi |
| 16387 | if test ! -f "$as_myself"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16388 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 16389 | exit 1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16390 | fi |
| 16391 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16392 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 16393 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 16394 | # suppresses any "Segmentation fault" message there. '((' could |
| 16395 | # trigger a bug in pdksh 5.2.14. |
| 16396 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 16397 | do eval test x\${$as_var+set} = xset \ |
| 16398 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16399 | done |
| 16400 | PS1='$ ' |
| 16401 | PS2='> ' |
| 16402 | PS4='+ ' |
| 16403 | |
| 16404 | # NLS nuisances. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16405 | LC_ALL=C |
| 16406 | export LC_ALL |
| 16407 | LANGUAGE=C |
| 16408 | export LANGUAGE |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16409 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16410 | # CDPATH. |
| 16411 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 16412 | |
| 16413 | |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16414 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 16415 | # ---------------------------------------- |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16416 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 16417 | # 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] | 16418 | # script with STATUS, using 1 if that was 0. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16419 | as_fn_error () |
| 16420 | { |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16421 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 16422 | if test "$4"; then |
| 16423 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 16424 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16425 | fi |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16426 | $as_echo "$as_me: error: $2" >&2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16427 | as_fn_exit $as_status |
| 16428 | } # as_fn_error |
| 16429 | |
| 16430 | |
| 16431 | # as_fn_set_status STATUS |
| 16432 | # ----------------------- |
| 16433 | # Set $? to STATUS, without forking. |
| 16434 | as_fn_set_status () |
| 16435 | { |
| 16436 | return $1 |
| 16437 | } # as_fn_set_status |
| 16438 | |
| 16439 | # as_fn_exit STATUS |
| 16440 | # ----------------- |
| 16441 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 16442 | as_fn_exit () |
| 16443 | { |
| 16444 | set +e |
| 16445 | as_fn_set_status $1 |
| 16446 | exit $1 |
| 16447 | } # as_fn_exit |
| 16448 | |
| 16449 | # as_fn_unset VAR |
| 16450 | # --------------- |
| 16451 | # Portably unset VAR. |
| 16452 | as_fn_unset () |
| 16453 | { |
| 16454 | { eval $1=; unset $1;} |
| 16455 | } |
| 16456 | as_unset=as_fn_unset |
| 16457 | # as_fn_append VAR VALUE |
| 16458 | # ---------------------- |
| 16459 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 16460 | # advantage of any shell optimizations that allow amortized linear growth over |
| 16461 | # repeated appends, instead of the typical quadratic growth present in naive |
| 16462 | # implementations. |
| 16463 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 16464 | eval 'as_fn_append () |
| 16465 | { |
| 16466 | eval $1+=\$2 |
| 16467 | }' |
| 16468 | else |
| 16469 | as_fn_append () |
| 16470 | { |
| 16471 | eval $1=\$$1\$2 |
| 16472 | } |
| 16473 | fi # as_fn_append |
| 16474 | |
| 16475 | # as_fn_arith ARG... |
| 16476 | # ------------------ |
| 16477 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 16478 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 16479 | # must be portable across $(()) and expr. |
| 16480 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 16481 | eval 'as_fn_arith () |
| 16482 | { |
| 16483 | as_val=$(( $* )) |
| 16484 | }' |
| 16485 | else |
| 16486 | as_fn_arith () |
| 16487 | { |
| 16488 | as_val=`expr "$@" || test $? -eq 1` |
| 16489 | } |
| 16490 | fi # as_fn_arith |
| 16491 | |
| 16492 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16493 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 16494 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 16495 | as_expr=expr |
| 16496 | else |
| 16497 | as_expr=false |
| 16498 | fi |
| 16499 | |
| 16500 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 16501 | as_basename=basename |
| 16502 | else |
| 16503 | as_basename=false |
| 16504 | fi |
| 16505 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16506 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 16507 | as_dirname=dirname |
| 16508 | else |
| 16509 | as_dirname=false |
| 16510 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16511 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16512 | as_me=`$as_basename -- "$0" || |
| 16513 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 16514 | X"$0" : 'X\(//\)$' \| \ |
| 16515 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16516 | $as_echo X/"$0" | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16517 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 16518 | s//\1/ |
| 16519 | q |
| 16520 | } |
| 16521 | /^X\/\(\/\/\)$/{ |
| 16522 | s//\1/ |
| 16523 | q |
| 16524 | } |
| 16525 | /^X\/\(\/\).*/{ |
| 16526 | s//\1/ |
| 16527 | q |
| 16528 | } |
| 16529 | s/.*/./; q'` |
| 16530 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16531 | # Avoid depending upon Character Ranges. |
| 16532 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 16533 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 16534 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 16535 | as_cr_digits='0123456789' |
| 16536 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16537 | |
| 16538 | ECHO_C= ECHO_N= ECHO_T= |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16539 | case `echo -n x` in #((((( |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16540 | -n*) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16541 | case `echo 'xy\c'` in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16542 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16543 | xy) ECHO_C='\c';; |
| 16544 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 16545 | ECHO_T=' ';; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16546 | esac;; |
| 16547 | *) |
| 16548 | ECHO_N='-n';; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16549 | esac |
Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 16550 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16551 | rm -f conf$$ conf$$.exe conf$$.file |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16552 | if test -d conf$$.dir; then |
| 16553 | rm -f conf$$.dir/conf$$.file |
| 16554 | else |
| 16555 | rm -f conf$$.dir |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16556 | mkdir conf$$.dir 2>/dev/null |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16557 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16558 | if (echo >conf$$.file) 2>/dev/null; then |
| 16559 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 16560 | as_ln_s='ln -s' |
| 16561 | # ... but there are two gotchas: |
| 16562 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 16563 | # 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] | 16564 | # In both cases, we have to default to `cp -pR'. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16565 | 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] | 16566 | as_ln_s='cp -pR' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16567 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 16568 | as_ln_s=ln |
| 16569 | else |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 16570 | as_ln_s='cp -pR' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16571 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16572 | else |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 16573 | as_ln_s='cp -pR' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16574 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16575 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 16576 | rmdir conf$$.dir 2>/dev/null |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16577 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16578 | |
| 16579 | # as_fn_mkdir_p |
| 16580 | # ------------- |
| 16581 | # Create "$as_dir" as a directory, including parents if necessary. |
| 16582 | as_fn_mkdir_p () |
| 16583 | { |
| 16584 | |
| 16585 | case $as_dir in #( |
| 16586 | -*) as_dir=./$as_dir;; |
| 16587 | esac |
| 16588 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 16589 | as_dirs= |
| 16590 | while :; do |
| 16591 | case $as_dir in #( |
| 16592 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 16593 | *) as_qdir=$as_dir;; |
| 16594 | esac |
| 16595 | as_dirs="'$as_qdir' $as_dirs" |
| 16596 | as_dir=`$as_dirname -- "$as_dir" || |
| 16597 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16598 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 16599 | X"$as_dir" : 'X\(//\)$' \| \ |
| 16600 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 16601 | $as_echo X"$as_dir" | |
| 16602 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 16603 | s//\1/ |
| 16604 | q |
| 16605 | } |
| 16606 | /^X\(\/\/\)[^/].*/{ |
| 16607 | s//\1/ |
| 16608 | q |
| 16609 | } |
| 16610 | /^X\(\/\/\)$/{ |
| 16611 | s//\1/ |
| 16612 | q |
| 16613 | } |
| 16614 | /^X\(\/\).*/{ |
| 16615 | s//\1/ |
| 16616 | q |
| 16617 | } |
| 16618 | s/.*/./; q'` |
| 16619 | test -d "$as_dir" && break |
| 16620 | done |
| 16621 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16622 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16623 | |
| 16624 | |
| 16625 | } # as_fn_mkdir_p |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16626 | if mkdir -p . 2>/dev/null; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16627 | as_mkdir_p='mkdir -p "$as_dir"' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16628 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16629 | test -d ./-p && rmdir ./-p |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16630 | as_mkdir_p=false |
| 16631 | fi |
| 16632 | |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 16633 | |
| 16634 | # as_fn_executable_p FILE |
| 16635 | # ----------------------- |
| 16636 | # Test if FILE is an executable regular file. |
| 16637 | as_fn_executable_p () |
| 16638 | { |
| 16639 | test -f "$1" && test -x "$1" |
| 16640 | } # as_fn_executable_p |
| 16641 | as_test_x='test -x' |
| 16642 | as_executable_p=as_fn_executable_p |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16643 | |
| 16644 | # Sed expression to map a string onto a valid CPP name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16645 | 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] | 16646 | |
| 16647 | # Sed expression to map a string onto a valid variable name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16648 | 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] | 16649 | |
| 16650 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16651 | exec 6>&1 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16652 | ## ----------------------------------- ## |
| 16653 | ## Main body of $CONFIG_STATUS script. ## |
| 16654 | ## ----------------------------------- ## |
| 16655 | _ASEOF |
| 16656 | 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] | 16657 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16658 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 16659 | # 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] | 16660 | # report actual input values of CONFIG_FILES etc. instead of their |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16661 | # values after options handling. |
| 16662 | ac_log=" |
Yury Selivanov | 7aa5341 | 2015-05-30 10:57:56 -0400 | [diff] [blame] | 16663 | This file was extended by python $as_me 3.5, which was |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 16664 | generated by GNU Autoconf 2.69. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16665 | |
| 16666 | CONFIG_FILES = $CONFIG_FILES |
| 16667 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 16668 | CONFIG_LINKS = $CONFIG_LINKS |
| 16669 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 16670 | $ $0 $@ |
| 16671 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16672 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 16673 | " |
| 16674 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16675 | _ACEOF |
| 16676 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16677 | case $ac_config_files in *" |
| 16678 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 16679 | esac |
| 16680 | |
| 16681 | case $ac_config_headers in *" |
| 16682 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 16683 | esac |
| 16684 | |
| 16685 | |
| 16686 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16687 | # Files that config.status was made for. |
Charles-François Natali | 6613c18 | 2011-11-27 12:41:06 +0100 | [diff] [blame] | 16688 | config_files="$ac_config_files" |
| 16689 | config_headers="$ac_config_headers" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16690 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16691 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16692 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16693 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16694 | ac_cs_usage="\ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16695 | \`$as_me' instantiates files and other configuration actions |
| 16696 | from templates according to the current configuration. Unless the files |
| 16697 | 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] | 16698 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16699 | Usage: $0 [OPTION]... [TAG]... |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16700 | |
| 16701 | -h, --help print this help, then exit |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16702 | -V, --version print version number and configuration settings, then exit |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16703 | --config print configuration, then exit |
| 16704 | -q, --quiet, --silent |
| 16705 | do not print progress messages |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16706 | -d, --debug don't remove temporary files |
| 16707 | --recheck update $as_me by reconfiguring in the same conditions |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16708 | --file=FILE[:TEMPLATE] |
| 16709 | instantiate the configuration file FILE |
| 16710 | --header=FILE[:TEMPLATE] |
| 16711 | instantiate the configuration header FILE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16712 | |
| 16713 | Configuration files: |
| 16714 | $config_files |
| 16715 | |
| 16716 | Configuration headers: |
| 16717 | $config_headers |
| 16718 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16719 | Report bugs to <http://bugs.python.org/>." |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 16720 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16721 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16722 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 16723 | 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] | 16724 | ac_cs_version="\\ |
Yury Selivanov | 7aa5341 | 2015-05-30 10:57:56 -0400 | [diff] [blame] | 16725 | python config.status 3.5 |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 16726 | configured by $0, generated by GNU Autoconf 2.69, |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16727 | with options \\"\$ac_cs_config\\" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16728 | |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 16729 | Copyright (C) 2012 Free Software Foundation, Inc. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16730 | This config.status script is free software; the Free Software Foundation |
| 16731 | gives unlimited permission to copy, distribute and modify it." |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16732 | |
| 16733 | ac_pwd='$ac_pwd' |
| 16734 | srcdir='$srcdir' |
| 16735 | INSTALL='$INSTALL' |
Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 16736 | MKDIR_P='$MKDIR_P' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16737 | test -n "\$AWK" || AWK=awk |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16738 | _ACEOF |
| 16739 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16740 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 16741 | # 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] | 16742 | ac_need_defaults=: |
| 16743 | while test $# != 0 |
| 16744 | do |
| 16745 | case $1 in |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16746 | --*=?*) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16747 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 16748 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16749 | ac_shift=: |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16750 | ;; |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16751 | --*=) |
| 16752 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 16753 | ac_optarg= |
| 16754 | ac_shift=: |
| 16755 | ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16756 | *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16757 | ac_option=$1 |
| 16758 | ac_optarg=$2 |
| 16759 | ac_shift=shift |
| 16760 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16761 | esac |
| 16762 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16763 | case $ac_option in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16764 | # Handling of the options. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16765 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 16766 | ac_cs_recheck=: ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16767 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16768 | $as_echo "$ac_cs_version"; exit ;; |
| 16769 | --config | --confi | --conf | --con | --co | --c ) |
| 16770 | $as_echo "$ac_cs_config"; exit ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16771 | --debug | --debu | --deb | --de | --d | -d ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16772 | debug=: ;; |
| 16773 | --file | --fil | --fi | --f ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16774 | $ac_shift |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16775 | case $ac_optarg in |
| 16776 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16777 | '') as_fn_error $? "missing file argument" ;; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16778 | esac |
| 16779 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16780 | ac_need_defaults=false;; |
| 16781 | --header | --heade | --head | --hea ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16782 | $ac_shift |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16783 | case $ac_optarg in |
| 16784 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 16785 | esac |
| 16786 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16787 | ac_need_defaults=false;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16788 | --he | --h) |
| 16789 | # Conflict between --help and --header |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16790 | as_fn_error $? "ambiguous option: \`$1' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16791 | Try \`$0 --help' for more information.";; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16792 | --help | --hel | -h ) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16793 | $as_echo "$ac_cs_usage"; exit ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16794 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 16795 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 16796 | ac_cs_silent=: ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16797 | |
| 16798 | # This is an error. |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16799 | -*) as_fn_error $? "unrecognized option: \`$1' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16800 | Try \`$0 --help' for more information." ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16801 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16802 | *) as_fn_append ac_config_targets " $1" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16803 | ac_need_defaults=false ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16804 | |
| 16805 | esac |
| 16806 | shift |
| 16807 | done |
| 16808 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16809 | ac_configure_extra_args= |
| 16810 | |
| 16811 | if $ac_cs_silent; then |
| 16812 | exec 6>/dev/null |
| 16813 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 16814 | fi |
| 16815 | |
| 16816 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16817 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16818 | if \$ac_cs_recheck; then |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 16819 | 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] | 16820 | shift |
| 16821 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 16822 | CONFIG_SHELL='$SHELL' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16823 | export CONFIG_SHELL |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16824 | exec "\$@" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16825 | fi |
| 16826 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16827 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16828 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16829 | exec 5>>config.log |
| 16830 | { |
| 16831 | echo |
| 16832 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 16833 | ## Running $as_me. ## |
| 16834 | _ASBOX |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16835 | $as_echo "$ac_log" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16836 | } >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16837 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16838 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16839 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16840 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16841 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16842 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16843 | |
| 16844 | # Handling of arguments. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16845 | for ac_config_target in $ac_config_targets |
| 16846 | do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16847 | case $ac_config_target in |
| 16848 | "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; |
| 16849 | "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;; |
| 16850 | "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;; |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 16851 | "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;; |
| 16852 | "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] | 16853 | "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; |
| 16854 | "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;; |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 16855 | "Misc/python.pc") CONFIG_FILES="$CONFIG_FILES Misc/python.pc" ;; |
doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 16856 | "Misc/python-config.sh") CONFIG_FILES="$CONFIG_FILES Misc/python-config.sh" ;; |
Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 16857 | "Modules/ld_so_aix") CONFIG_FILES="$CONFIG_FILES Modules/ld_so_aix" ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16858 | |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 16859 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16860 | esac |
| 16861 | done |
| 16862 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16863 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16864 | # If the user did not use the arguments to specify the items to instantiate, |
| 16865 | # then the envvar interface is used. Set only those that are not. |
| 16866 | # We use the long form for the default assignment because of an extremely |
| 16867 | # bizarre bug on SunOS 4.1.3. |
| 16868 | if $ac_need_defaults; then |
| 16869 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 16870 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 16871 | fi |
| 16872 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16873 | # Have a temporary directory for convenience. Make it in the build tree |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16874 | # 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] | 16875 | # creating and moving files from /tmp can sometimes cause problems. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16876 | # Hook for its removal unless debugging. |
| 16877 | # Note that there is a small window in which the directory will not be cleaned: |
| 16878 | # 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] | 16879 | $debug || |
| 16880 | { |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 16881 | tmp= ac_tmp= |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16882 | trap 'exit_status=$? |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 16883 | : "${ac_tmp:=$tmp}" |
| 16884 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16885 | ' 0 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16886 | trap 'as_fn_exit 1' 1 2 13 15 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16887 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16888 | # Create a (secure) tmp directory for tmp files. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16889 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16890 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16891 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 16892 | test -d "$tmp" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16893 | } || |
| 16894 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16895 | tmp=./conf$$-$RANDOM |
| 16896 | (umask 077 && mkdir "$tmp") |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16897 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 16898 | ac_tmp=$tmp |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16899 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16900 | # Set up the scripts for CONFIG_FILES section. |
| 16901 | # No need to generate them if there are no CONFIG_FILES. |
| 16902 | # This happens for instance with `./config.status config.h'. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16903 | if test -n "$CONFIG_FILES"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16904 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16905 | |
| 16906 | ac_cr=`echo X | tr X '\015'` |
| 16907 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 16908 | # But we know of no other shell where ac_cr would be empty at this |
| 16909 | # point, so we can use a bashism as a fallback. |
| 16910 | if test "x$ac_cr" = x; then |
| 16911 | eval ac_cr=\$\'\\r\' |
| 16912 | fi |
| 16913 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 16914 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16915 | ac_cs_awk_cr='\\r' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16916 | else |
| 16917 | ac_cs_awk_cr=$ac_cr |
| 16918 | fi |
| 16919 | |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 16920 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16921 | _ACEOF |
| 16922 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16923 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16924 | { |
| 16925 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 16926 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 16927 | echo "_ACEOF" |
| 16928 | } >conf$$subs.sh || |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16929 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 16930 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16931 | ac_delim='%!_!# ' |
| 16932 | for ac_last_try in false false false false false :; do |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16933 | . ./conf$$subs.sh || |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16934 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16935 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16936 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 16937 | if test $ac_delim_n = $ac_delim_num; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16938 | break |
| 16939 | elif $ac_last_try; then |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16940 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16941 | else |
| 16942 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16943 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16944 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16945 | rm -f conf$$subs.sh |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16946 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16947 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 16948 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16949 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16950 | sed -n ' |
| 16951 | h |
| 16952 | s/^/S["/; s/!.*/"]=/ |
| 16953 | p |
| 16954 | g |
| 16955 | s/^[^!]*!// |
| 16956 | :repl |
| 16957 | t repl |
| 16958 | s/'"$ac_delim"'$// |
| 16959 | t delim |
| 16960 | :nl |
| 16961 | h |
| 16962 | s/\(.\{148\}\)..*/\1/ |
| 16963 | t more1 |
| 16964 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 16965 | p |
| 16966 | n |
| 16967 | b repl |
| 16968 | :more1 |
| 16969 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 16970 | p |
| 16971 | g |
| 16972 | s/.\{148\}// |
| 16973 | t nl |
| 16974 | :delim |
| 16975 | h |
| 16976 | s/\(.\{148\}\)..*/\1/ |
| 16977 | t more2 |
| 16978 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 16979 | p |
| 16980 | b |
| 16981 | :more2 |
| 16982 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 16983 | p |
| 16984 | g |
| 16985 | s/.\{148\}// |
| 16986 | t delim |
| 16987 | ' <conf$$subs.awk | sed ' |
| 16988 | /^[^""]/{ |
| 16989 | N |
| 16990 | s/\n// |
| 16991 | } |
| 16992 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 16993 | rm -f conf$$subs.awk |
| 16994 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 16995 | _ACAWK |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 16996 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16997 | for (key in S) S_is_set[key] = 1 |
| 16998 | FS = "" |
| 16999 | |
| 17000 | } |
| 17001 | { |
| 17002 | line = $ 0 |
| 17003 | nfields = split(line, field, "@") |
| 17004 | substed = 0 |
| 17005 | len = length(field[1]) |
| 17006 | for (i = 2; i < nfields; i++) { |
| 17007 | key = field[i] |
| 17008 | keylen = length(key) |
| 17009 | if (S_is_set[key]) { |
| 17010 | value = S[key] |
| 17011 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 17012 | len += length(value) + length(field[++i]) |
| 17013 | substed = 1 |
| 17014 | } else |
| 17015 | len += 1 + keylen |
| 17016 | } |
| 17017 | |
| 17018 | print line |
| 17019 | } |
| 17020 | |
| 17021 | _ACAWK |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 |
| 17024 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 17025 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 17026 | else |
| 17027 | cat |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17028 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17029 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 17030 | _ACEOF |
| 17031 | |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17032 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
| 17033 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17034 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 17035 | # (actually we leave an empty line to preserve line numbers). |
| 17036 | if test "x$srcdir" = x.; then |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17037 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
| 17038 | h |
| 17039 | s/// |
| 17040 | s/^/:/ |
| 17041 | s/[ ]*$/:/ |
| 17042 | s/:\$(srcdir):/:/g |
| 17043 | s/:\${srcdir}:/:/g |
| 17044 | s/:@srcdir@:/:/g |
| 17045 | s/^:*// |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17046 | s/:*$// |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17047 | x |
| 17048 | s/\(=[ ]*\).*/\1/ |
| 17049 | G |
| 17050 | s/\n// |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17051 | s/^[^=]*=[ ]*$// |
| 17052 | }' |
| 17053 | fi |
| 17054 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17055 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17056 | fi # test -n "$CONFIG_FILES" |
| 17057 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17058 | # Set up the scripts for CONFIG_HEADERS section. |
| 17059 | # No need to generate them if there are no CONFIG_HEADERS. |
| 17060 | # This happens for instance with `./config.status Makefile'. |
| 17061 | if test -n "$CONFIG_HEADERS"; then |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17062 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17063 | BEGIN { |
| 17064 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17065 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17066 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 17067 | # here-document in config.status, that substitutes the proper values into |
| 17068 | # config.h.in to produce config.h. |
| 17069 | |
| 17070 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 17071 | # handling of long lines. |
| 17072 | ac_delim='%!_!# ' |
| 17073 | for ac_last_try in false false :; do |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17074 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
| 17075 | if test -z "$ac_tt"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17076 | break |
| 17077 | elif $ac_last_try; then |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17078 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17079 | else |
| 17080 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 17081 | fi |
| 17082 | done |
| 17083 | |
| 17084 | # For the awk script, D is an array of macro values keyed by name, |
| 17085 | # likewise P contains macro parameters if any. Preserve backslash |
| 17086 | # newline sequences. |
| 17087 | |
| 17088 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 17089 | sed -n ' |
| 17090 | s/.\{148\}/&'"$ac_delim"'/g |
| 17091 | t rset |
| 17092 | :rset |
| 17093 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 17094 | t def |
| 17095 | d |
| 17096 | :def |
| 17097 | s/\\$// |
| 17098 | t bsnl |
| 17099 | s/["\\]/\\&/g |
| 17100 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 17101 | D["\1"]=" \3"/p |
| 17102 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 17103 | d |
| 17104 | :bsnl |
| 17105 | s/["\\]/\\&/g |
| 17106 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 17107 | D["\1"]=" \3\\\\\\n"\\/p |
| 17108 | t cont |
| 17109 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 17110 | t cont |
| 17111 | d |
| 17112 | :cont |
| 17113 | n |
| 17114 | s/.\{148\}/&'"$ac_delim"'/g |
| 17115 | t clear |
| 17116 | :clear |
| 17117 | s/\\$// |
| 17118 | t bsnlc |
| 17119 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 17120 | d |
| 17121 | :bsnlc |
| 17122 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 17123 | b cont |
| 17124 | ' <confdefs.h | sed ' |
| 17125 | s/'"$ac_delim"'/"\\\ |
| 17126 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 17127 | |
| 17128 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 17129 | for (key in D) D_is_set[key] = 1 |
| 17130 | FS = "" |
| 17131 | } |
| 17132 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 17133 | line = \$ 0 |
| 17134 | split(line, arg, " ") |
| 17135 | if (arg[1] == "#") { |
| 17136 | defundef = arg[2] |
| 17137 | mac1 = arg[3] |
| 17138 | } else { |
| 17139 | defundef = substr(arg[1], 2) |
| 17140 | mac1 = arg[2] |
| 17141 | } |
| 17142 | split(mac1, mac2, "(") #) |
| 17143 | macro = mac2[1] |
| 17144 | prefix = substr(line, 1, index(line, defundef) - 1) |
| 17145 | if (D_is_set[macro]) { |
| 17146 | # Preserve the white space surrounding the "#". |
| 17147 | print prefix "define", macro P[macro] D[macro] |
| 17148 | next |
| 17149 | } else { |
| 17150 | # Replace #undef with comments. This is necessary, for example, |
| 17151 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 17152 | # on some systems where configure will not decide to define it. |
| 17153 | if (defundef == "undef") { |
| 17154 | print "/*", prefix defundef, macro, "*/" |
| 17155 | next |
| 17156 | } |
| 17157 | } |
| 17158 | } |
| 17159 | { print } |
| 17160 | _ACAWK |
| 17161 | _ACEOF |
| 17162 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17163 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17164 | fi # test -n "$CONFIG_HEADERS" |
| 17165 | |
| 17166 | |
| 17167 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " |
| 17168 | shift |
| 17169 | for ac_tag |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17170 | do |
| 17171 | case $ac_tag in |
| 17172 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 17173 | esac |
| 17174 | case $ac_mode$ac_tag in |
| 17175 | :[FHL]*:*);; |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17176 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17177 | :[FH]-) ac_tag=-:-;; |
| 17178 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 17179 | esac |
| 17180 | ac_save_IFS=$IFS |
| 17181 | IFS=: |
| 17182 | set x $ac_tag |
| 17183 | IFS=$ac_save_IFS |
| 17184 | shift |
| 17185 | ac_file=$1 |
| 17186 | shift |
| 17187 | |
| 17188 | case $ac_mode in |
| 17189 | :L) ac_source=$1;; |
| 17190 | :[FH]) |
| 17191 | ac_file_inputs= |
| 17192 | for ac_f |
| 17193 | do |
| 17194 | case $ac_f in |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17195 | -) ac_f="$ac_tmp/stdin";; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17196 | *) # Look for the file first in the build tree, then in the source tree |
| 17197 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 17198 | # because $ac_f cannot contain `:'. |
| 17199 | test -f "$ac_f" || |
| 17200 | case $ac_f in |
| 17201 | [\\/$]*) false;; |
| 17202 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 17203 | esac || |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17204 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17205 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17206 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
| 17207 | as_fn_append ac_file_inputs " '$ac_f'" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17208 | done |
| 17209 | |
| 17210 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 17211 | # use $as_me), people would be surprised to read: |
| 17212 | # /* config.h. Generated by config.status. */ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17213 | configure_input='Generated from '` |
| 17214 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 17215 | `' by configure.' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17216 | if test x"$ac_file" != x-; then |
| 17217 | configure_input="$ac_file. $configure_input" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17218 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
| 17219 | $as_echo "$as_me: creating $ac_file" >&6;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17220 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17221 | # Neutralize special characters interpreted by sed in replacement strings. |
| 17222 | case $configure_input in #( |
| 17223 | *\&* | *\|* | *\\* ) |
| 17224 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 17225 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 17226 | *) ac_sed_conf_input=$configure_input;; |
| 17227 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17228 | |
| 17229 | case $ac_tag in |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17230 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
| 17231 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17232 | esac |
| 17233 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17234 | esac |
| 17235 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17236 | ac_dir=`$as_dirname -- "$ac_file" || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17237 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17238 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 17239 | X"$ac_file" : 'X\(//\)$' \| \ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17240 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17241 | $as_echo X"$ac_file" | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17242 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 17243 | s//\1/ |
| 17244 | q |
| 17245 | } |
| 17246 | /^X\(\/\/\)[^/].*/{ |
| 17247 | s//\1/ |
| 17248 | q |
| 17249 | } |
| 17250 | /^X\(\/\/\)$/{ |
| 17251 | s//\1/ |
| 17252 | q |
| 17253 | } |
| 17254 | /^X\(\/\).*/{ |
| 17255 | s//\1/ |
| 17256 | q |
| 17257 | } |
| 17258 | s/.*/./; q'` |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17259 | as_dir="$ac_dir"; as_fn_mkdir_p |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17260 | ac_builddir=. |
| 17261 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17262 | case "$ac_dir" in |
| 17263 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 17264 | *) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17265 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17266 | # A ".." for each directory in $ac_dir_suffix. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17267 | 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] | 17268 | case $ac_top_builddir_sub in |
| 17269 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 17270 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 17271 | esac ;; |
| 17272 | esac |
| 17273 | ac_abs_top_builddir=$ac_pwd |
| 17274 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 17275 | # for backward compatibility: |
| 17276 | ac_top_builddir=$ac_top_build_prefix |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17277 | |
| 17278 | case $srcdir in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17279 | .) # We are building in place. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17280 | ac_srcdir=. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17281 | ac_top_srcdir=$ac_top_builddir_sub |
| 17282 | ac_abs_top_srcdir=$ac_pwd ;; |
| 17283 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17284 | ac_srcdir=$srcdir$ac_dir_suffix; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17285 | ac_top_srcdir=$srcdir |
| 17286 | ac_abs_top_srcdir=$srcdir ;; |
| 17287 | *) # Relative name. |
| 17288 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 17289 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 17290 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17291 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17292 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17293 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17294 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17295 | case $ac_mode in |
| 17296 | :F) |
| 17297 | # |
| 17298 | # CONFIG_FILE |
| 17299 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17300 | |
| 17301 | case $INSTALL in |
| 17302 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17303 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17304 | esac |
Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 17305 | ac_MKDIR_P=$MKDIR_P |
| 17306 | case $MKDIR_P in |
| 17307 | [\\/$]* | ?:[\\/]* ) ;; |
| 17308 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
| 17309 | esac |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 17310 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17311 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17312 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17313 | # If the template does not know about datarootdir, expand it. |
| 17314 | # FIXME: This hack should be removed a few years after 2.60. |
| 17315 | ac_datarootdir_hack=; ac_datarootdir_seen= |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17316 | ac_sed_dataroot=' |
| 17317 | /datarootdir/ { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17318 | p |
| 17319 | q |
| 17320 | } |
| 17321 | /@datadir@/p |
| 17322 | /@docdir@/p |
| 17323 | /@infodir@/p |
| 17324 | /@localedir@/p |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17325 | /@mandir@/p' |
| 17326 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17327 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 17328 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17329 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 17330 | $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] | 17331 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17332 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17333 | ac_datarootdir_hack=' |
| 17334 | s&@datadir@&$datadir&g |
| 17335 | s&@docdir@&$docdir&g |
| 17336 | s&@infodir@&$infodir&g |
| 17337 | s&@localedir@&$localedir&g |
| 17338 | s&@mandir@&$mandir&g |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17339 | s&\\\${datarootdir}&$datarootdir&g' ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17340 | esac |
| 17341 | _ACEOF |
| 17342 | |
| 17343 | # Neutralize VPATH when `$srcdir' = `.'. |
| 17344 | # Shell code in configure.ac might set extrasub. |
| 17345 | # FIXME: do we really want to maintain this feature? |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17346 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 17347 | ac_sed_extra="$ac_vpsub |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17348 | $extrasub |
| 17349 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17350 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17351 | :t |
| 17352 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17353 | s|@configure_input@|$ac_sed_conf_input|;t t |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17354 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17355 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17356 | s&@srcdir@&$ac_srcdir&;t t |
| 17357 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 17358 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 17359 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 17360 | s&@builddir@&$ac_builddir&;t t |
| 17361 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 17362 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 17363 | s&@INSTALL@&$ac_INSTALL&;t t |
Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 17364 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17365 | $ac_datarootdir_hack |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17366 | " |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17367 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
| 17368 | >$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] | 17369 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17370 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17371 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
| 17372 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
| 17373 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17374 | { $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] | 17375 | which seems to be undefined. Please make sure it is defined" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17376 | $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] | 17377 | which seems to be undefined. Please make sure it is defined" >&2;} |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 17378 | |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17379 | rm -f "$ac_tmp/stdin" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17380 | case $ac_file in |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17381 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
| 17382 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17383 | esac \ |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17384 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17385 | ;; |
| 17386 | :H) |
| 17387 | # |
| 17388 | # CONFIG_HEADER |
| 17389 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17390 | if test x"$ac_file" != x-; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17391 | { |
| 17392 | $as_echo "/* $configure_input */" \ |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17393 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
| 17394 | } >"$ac_tmp/config.h" \ |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17395 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17396 | 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] | 17397 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
| 17398 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17399 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17400 | rm -f "$ac_file" |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17401 | mv "$ac_tmp/config.h" "$ac_file" \ |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17402 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17403 | fi |
| 17404 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17405 | $as_echo "/* $configure_input */" \ |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17406 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17407 | || as_fn_error $? "could not create -" "$LINENO" 5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17408 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17409 | ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17410 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17411 | |
| 17412 | esac |
| 17413 | |
Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 17414 | |
| 17415 | case $ac_file$ac_mode in |
| 17416 | "Modules/ld_so_aix":F) chmod +x Modules/ld_so_aix ;; |
| 17417 | |
| 17418 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17419 | done # for ac_tag |
| 17420 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17421 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17422 | as_fn_exit 0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17423 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17424 | ac_clean_files=$ac_clean_files_save |
| 17425 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17426 | test $ac_write_fail = 0 || |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17427 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17428 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17429 | |
| 17430 | # configure is writing to config.log, and then calls config.status. |
| 17431 | # config.status does its own redirection, appending to config.log. |
| 17432 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 17433 | # by configure, so config.status won't be able to write to it; its |
| 17434 | # output is simply discarded. So we exec the FD to /dev/null, |
| 17435 | # effectively closing config.log, so it can be properly (re)opened and |
| 17436 | # appended to by config.status. When coming back to configure, we |
| 17437 | # need to make the FD available again. |
| 17438 | if test "$no_create" != yes; then |
| 17439 | ac_cs_success=: |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17440 | ac_config_status_args= |
| 17441 | test "$silent" = yes && |
| 17442 | ac_config_status_args="$ac_config_status_args --quiet" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17443 | exec 5>/dev/null |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17444 | $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] | 17445 | exec 5>>config.log |
| 17446 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 17447 | # would make configure fail if this is the last instruction. |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17448 | $ac_cs_success || as_fn_exit 1 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17449 | fi |
| 17450 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
| 17451 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
| 17452 | $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] | 17453 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17454 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 17455 | |
Christian Heimes | 75ed890 | 2013-11-20 01:11:18 +0100 | [diff] [blame] | 17456 | echo "creating Modules/Setup" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 17457 | if test ! -f Modules/Setup |
| 17458 | then |
| 17459 | cp $srcdir/Modules/Setup.dist Modules/Setup |
| 17460 | fi |
| 17461 | |
Christian Heimes | 75ed890 | 2013-11-20 01:11:18 +0100 | [diff] [blame] | 17462 | echo "creating Modules/Setup.local" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 17463 | if test ! -f Modules/Setup.local |
| 17464 | then |
| 17465 | echo "# Edit this file for local setup changes" >Modules/Setup.local |
| 17466 | fi |
| 17467 | |
Christian Heimes | 75ed890 | 2013-11-20 01:11:18 +0100 | [diff] [blame] | 17468 | echo "creating Makefile" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 17469 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ |
| 17470 | -s Modules Modules/Setup.config \ |
Neil Schemenauer | f8b71c5 | 2001-04-21 17:41:16 +0000 | [diff] [blame] | 17471 | Modules/Setup.local Modules/Setup |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 17472 | mv config.c Modules |