Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1 | #! /bin/sh |
Matthias Klose | 0f4c16e | 2012-03-14 23:10:15 +0100 | [diff] [blame] | 2 | # From configure.ac Revision. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3 | # Guess values for system-dependent variables and create Makefiles. |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 4 | # Generated by GNU Autoconf 2.69 for python 3.2. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5 | # |
Georg Brandl | e2e1561 | 2009-05-20 18:25:10 +0000 | [diff] [blame] | 6 | # Report bugs to <http://bugs.python.org/>. |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 7 | # |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8 | # |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 9 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10 | # |
| 11 | # |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12 | # This configure script is free software; the Free Software Foundation |
| 13 | # gives unlimited permission to copy, distribute and modify it. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14 | ## -------------------- ## |
| 15 | ## M4sh Initialization. ## |
| 16 | ## -------------------- ## |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18 | # Be more Bourne compatible |
| 19 | DUALCASE=1; export DUALCASE # for MKS sh |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 20 | 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] | 21 | emulate sh |
| 22 | NULLCMD=: |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 23 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24 | # is contrary to our usage. Disable this feature. |
| 25 | alias -g '${1+"$@"}'='"$@"' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26 | setopt NO_GLOB_SUBST |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 27 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 28 | case `(set -o) 2>/dev/null` in #( |
| 29 | *posix*) : |
| 30 | set -o posix ;; #( |
| 31 | *) : |
| 32 | ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 33 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 34 | fi |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 35 | |
| 36 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 37 | as_nl=' |
| 38 | ' |
| 39 | export as_nl |
| 40 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 41 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 42 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 43 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 44 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 45 | # but without wasting forks for bash or zsh. |
| 46 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 47 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 48 | as_echo='print -r --' |
| 49 | as_echo_n='print -rn --' |
| 50 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 51 | as_echo='printf %s\n' |
| 52 | as_echo_n='printf %s' |
| 53 | else |
| 54 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 55 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 56 | as_echo_n='/usr/ucb/echo -n' |
| 57 | else |
| 58 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 59 | as_echo_n_body='eval |
| 60 | arg=$1; |
| 61 | case $arg in #( |
| 62 | *"$as_nl"*) |
| 63 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 64 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 65 | esac; |
| 66 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 67 | ' |
| 68 | export as_echo_n_body |
| 69 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 70 | fi |
| 71 | export as_echo_body |
| 72 | as_echo='sh -c $as_echo_body as_echo' |
| 73 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 74 | |
| 75 | # The user is always right. |
| 76 | if test "${PATH_SEPARATOR+set}" != set; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 77 | PATH_SEPARATOR=: |
| 78 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 79 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 80 | PATH_SEPARATOR=';' |
| 81 | } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 82 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 83 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 84 | |
| 85 | # IFS |
| 86 | # We need space, tab and new line, in precisely that order. Quoting is |
| 87 | # there to prevent editors from complaining about space-tab. |
| 88 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 89 | # splitting by setting IFS to empty value.) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 90 | IFS=" "" $as_nl" |
| 91 | |
| 92 | # Find who we are. Look in the path if we contain no directory separator. |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 93 | as_myself= |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 94 | case $0 in #(( |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 95 | *[\\/]* ) as_myself=$0 ;; |
| 96 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 97 | for as_dir in $PATH |
| 98 | do |
| 99 | IFS=$as_save_IFS |
| 100 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 101 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 102 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 103 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 104 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 105 | ;; |
| 106 | esac |
| 107 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 108 | # in which case we are not to be found in the path. |
| 109 | if test "x$as_myself" = x; then |
| 110 | as_myself=$0 |
| 111 | fi |
| 112 | if test ! -f "$as_myself"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 113 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 114 | exit 1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 115 | fi |
| 116 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 117 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 118 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 119 | # suppresses any "Segmentation fault" message there. '((' could |
| 120 | # trigger a bug in pdksh 5.2.14. |
| 121 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 122 | do eval test x\${$as_var+set} = xset \ |
| 123 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 124 | done |
| 125 | PS1='$ ' |
| 126 | PS2='> ' |
| 127 | PS4='+ ' |
| 128 | |
| 129 | # NLS nuisances. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 130 | LC_ALL=C |
| 131 | export LC_ALL |
| 132 | LANGUAGE=C |
| 133 | export LANGUAGE |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 134 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 135 | # CDPATH. |
| 136 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 137 | |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 138 | # Use a proper internal environment variable to ensure we don't fall |
| 139 | # into an infinite loop, continuously re-executing ourselves. |
| 140 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then |
| 141 | _as_can_reexec=no; export _as_can_reexec; |
| 142 | # We cannot yet assume a decent shell, so we have to provide a |
| 143 | # neutralization value for shells without unset; and this also |
| 144 | # works around shells that cannot unset nonexistent variables. |
| 145 | # Preserve -v and -x to the replacement shell. |
| 146 | BASH_ENV=/dev/null |
| 147 | ENV=/dev/null |
| 148 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 149 | case $- in # (((( |
| 150 | *v*x* | *x*v* ) as_opts=-vx ;; |
| 151 | *v* ) as_opts=-v ;; |
| 152 | *x* ) as_opts=-x ;; |
| 153 | * ) as_opts= ;; |
| 154 | esac |
| 155 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 156 | # Admittedly, this is quite paranoid, since all the known shells bail |
| 157 | # out after a failed `exec'. |
| 158 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 159 | as_fn_exit 255 |
| 160 | fi |
| 161 | # We don't want this to propagate to other subprocesses. |
| 162 | { _as_can_reexec=; unset _as_can_reexec;} |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 163 | if test "x$CONFIG_SHELL" = x; then |
| 164 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
| 165 | emulate sh |
| 166 | NULLCMD=: |
| 167 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
| 168 | # is contrary to our usage. Disable this feature. |
| 169 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
| 170 | setopt NO_GLOB_SUBST |
| 171 | else |
| 172 | case \`(set -o) 2>/dev/null\` in #( |
| 173 | *posix*) : |
| 174 | set -o posix ;; #( |
| 175 | *) : |
| 176 | ;; |
| 177 | esac |
| 178 | fi |
| 179 | " |
| 180 | as_required="as_fn_return () { (exit \$1); } |
| 181 | as_fn_success () { as_fn_return 0; } |
| 182 | as_fn_failure () { as_fn_return 1; } |
| 183 | as_fn_ret_success () { return 0; } |
| 184 | as_fn_ret_failure () { return 1; } |
| 185 | |
| 186 | exitcode=0 |
| 187 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
| 188 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
| 189 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
| 190 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
| 191 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
| 192 | |
| 193 | else |
| 194 | exitcode=1; echo positional parameters were not saved. |
| 195 | fi |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 196 | test x\$exitcode = x0 || exit 1 |
| 197 | test -x / || exit 1" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 198 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
| 199 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
| 200 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
| 201 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
| 202 | test \$(( 1 + 1 )) = 2 || exit 1" |
| 203 | if (eval "$as_required") 2>/dev/null; then : |
| 204 | as_have_required=yes |
| 205 | else |
| 206 | as_have_required=no |
| 207 | fi |
| 208 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
| 209 | |
| 210 | else |
| 211 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 212 | as_found=false |
| 213 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 214 | do |
| 215 | IFS=$as_save_IFS |
| 216 | test -z "$as_dir" && as_dir=. |
| 217 | as_found=: |
| 218 | case $as_dir in #( |
| 219 | /*) |
| 220 | for as_base in sh bash ksh sh5; do |
| 221 | # Try only shells that exist, to save several forks. |
| 222 | as_shell=$as_dir/$as_base |
| 223 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 224 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 225 | CONFIG_SHELL=$as_shell as_have_required=yes |
| 226 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 227 | break 2 |
| 228 | fi |
| 229 | fi |
| 230 | done;; |
| 231 | esac |
| 232 | as_found=false |
| 233 | done |
| 234 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
| 235 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
| 236 | CONFIG_SHELL=$SHELL as_have_required=yes |
| 237 | fi; } |
| 238 | IFS=$as_save_IFS |
| 239 | |
| 240 | |
| 241 | if test "x$CONFIG_SHELL" != x; then : |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 242 | export CONFIG_SHELL |
| 243 | # We cannot yet assume a decent shell, so we have to provide a |
| 244 | # neutralization value for shells without unset; and this also |
| 245 | # works around shells that cannot unset nonexistent variables. |
| 246 | # Preserve -v and -x to the replacement shell. |
| 247 | BASH_ENV=/dev/null |
| 248 | ENV=/dev/null |
| 249 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 250 | case $- in # (((( |
| 251 | *v*x* | *x*v* ) as_opts=-vx ;; |
| 252 | *v* ) as_opts=-v ;; |
| 253 | *x* ) as_opts=-x ;; |
| 254 | * ) as_opts= ;; |
| 255 | esac |
| 256 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 257 | # Admittedly, this is quite paranoid, since all the known shells bail |
| 258 | # out after a failed `exec'. |
| 259 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 260 | exit 255 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 261 | fi |
| 262 | |
| 263 | if test x$as_have_required = xno; then : |
| 264 | $as_echo "$0: This script requires a shell more modern than all" |
| 265 | $as_echo "$0: the shells that I found on your system." |
| 266 | if test x${ZSH_VERSION+set} = xset ; then |
| 267 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
| 268 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
| 269 | else |
| 270 | $as_echo "$0: Please tell bug-autoconf@gnu.org and |
| 271 | $0: http://bugs.python.org/ about your system, including |
| 272 | $0: any error possibly output before this message. Then |
| 273 | $0: install a modern shell, or manually run the script |
| 274 | $0: under such a shell if you do have one." |
| 275 | fi |
| 276 | exit 1 |
| 277 | fi |
| 278 | fi |
| 279 | fi |
| 280 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 281 | export SHELL |
| 282 | # Unset more variables known to interfere with behavior of common tools. |
| 283 | CLICOLOR_FORCE= GREP_OPTIONS= |
| 284 | unset CLICOLOR_FORCE GREP_OPTIONS |
| 285 | |
| 286 | ## --------------------- ## |
| 287 | ## M4sh Shell Functions. ## |
| 288 | ## --------------------- ## |
| 289 | # as_fn_unset VAR |
| 290 | # --------------- |
| 291 | # Portably unset VAR. |
| 292 | as_fn_unset () |
| 293 | { |
| 294 | { eval $1=; unset $1;} |
| 295 | } |
| 296 | as_unset=as_fn_unset |
| 297 | |
| 298 | # as_fn_set_status STATUS |
| 299 | # ----------------------- |
| 300 | # Set $? to STATUS, without forking. |
| 301 | as_fn_set_status () |
| 302 | { |
| 303 | return $1 |
| 304 | } # as_fn_set_status |
| 305 | |
| 306 | # as_fn_exit STATUS |
| 307 | # ----------------- |
| 308 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 309 | as_fn_exit () |
| 310 | { |
| 311 | set +e |
| 312 | as_fn_set_status $1 |
| 313 | exit $1 |
| 314 | } # as_fn_exit |
| 315 | |
| 316 | # as_fn_mkdir_p |
| 317 | # ------------- |
| 318 | # Create "$as_dir" as a directory, including parents if necessary. |
| 319 | as_fn_mkdir_p () |
| 320 | { |
| 321 | |
| 322 | case $as_dir in #( |
| 323 | -*) as_dir=./$as_dir;; |
| 324 | esac |
| 325 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 326 | as_dirs= |
| 327 | while :; do |
| 328 | case $as_dir in #( |
| 329 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 330 | *) as_qdir=$as_dir;; |
| 331 | esac |
| 332 | as_dirs="'$as_qdir' $as_dirs" |
| 333 | as_dir=`$as_dirname -- "$as_dir" || |
| 334 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 335 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 336 | X"$as_dir" : 'X\(//\)$' \| \ |
| 337 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 338 | $as_echo X"$as_dir" | |
| 339 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 340 | s//\1/ |
| 341 | q |
| 342 | } |
| 343 | /^X\(\/\/\)[^/].*/{ |
| 344 | s//\1/ |
| 345 | q |
| 346 | } |
| 347 | /^X\(\/\/\)$/{ |
| 348 | s//\1/ |
| 349 | q |
| 350 | } |
| 351 | /^X\(\/\).*/{ |
| 352 | s//\1/ |
| 353 | q |
| 354 | } |
| 355 | s/.*/./; q'` |
| 356 | test -d "$as_dir" && break |
| 357 | done |
| 358 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 359 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 360 | |
| 361 | |
| 362 | } # as_fn_mkdir_p |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 363 | |
| 364 | # as_fn_executable_p FILE |
| 365 | # ----------------------- |
| 366 | # Test if FILE is an executable regular file. |
| 367 | as_fn_executable_p () |
| 368 | { |
| 369 | test -f "$1" && test -x "$1" |
| 370 | } # as_fn_executable_p |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 371 | # as_fn_append VAR VALUE |
| 372 | # ---------------------- |
| 373 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 374 | # advantage of any shell optimizations that allow amortized linear growth over |
| 375 | # repeated appends, instead of the typical quadratic growth present in naive |
| 376 | # implementations. |
| 377 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 378 | eval 'as_fn_append () |
| 379 | { |
| 380 | eval $1+=\$2 |
| 381 | }' |
| 382 | else |
| 383 | as_fn_append () |
| 384 | { |
| 385 | eval $1=\$$1\$2 |
| 386 | } |
| 387 | fi # as_fn_append |
| 388 | |
| 389 | # as_fn_arith ARG... |
| 390 | # ------------------ |
| 391 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 392 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 393 | # must be portable across $(()) and expr. |
| 394 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 395 | eval 'as_fn_arith () |
| 396 | { |
| 397 | as_val=$(( $* )) |
| 398 | }' |
| 399 | else |
| 400 | as_fn_arith () |
| 401 | { |
| 402 | as_val=`expr "$@" || test $? -eq 1` |
| 403 | } |
| 404 | fi # as_fn_arith |
| 405 | |
| 406 | |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 407 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 408 | # ---------------------------------------- |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 409 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 410 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 411 | # script with STATUS, using 1 if that was 0. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 412 | as_fn_error () |
| 413 | { |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 414 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 415 | if test "$4"; then |
| 416 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 417 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 418 | fi |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 419 | $as_echo "$as_me: error: $2" >&2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 420 | as_fn_exit $as_status |
| 421 | } # as_fn_error |
| 422 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 423 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 424 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 425 | as_expr=expr |
| 426 | else |
| 427 | as_expr=false |
| 428 | fi |
| 429 | |
| 430 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 431 | as_basename=basename |
| 432 | else |
| 433 | as_basename=false |
| 434 | fi |
| 435 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 436 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 437 | as_dirname=dirname |
| 438 | else |
| 439 | as_dirname=false |
| 440 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 441 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 442 | as_me=`$as_basename -- "$0" || |
| 443 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 444 | X"$0" : 'X\(//\)$' \| \ |
| 445 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 446 | $as_echo X/"$0" | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 447 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 448 | s//\1/ |
| 449 | q |
| 450 | } |
| 451 | /^X\/\(\/\/\)$/{ |
| 452 | s//\1/ |
| 453 | q |
| 454 | } |
| 455 | /^X\/\(\/\).*/{ |
| 456 | s//\1/ |
| 457 | q |
| 458 | } |
| 459 | s/.*/./; q'` |
| 460 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 461 | # Avoid depending upon Character Ranges. |
| 462 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 463 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 464 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 465 | as_cr_digits='0123456789' |
| 466 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 467 | |
| 468 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 469 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
| 470 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
| 471 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
| 472 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
| 473 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 474 | sed -n ' |
| 475 | p |
| 476 | /[$]LINENO/= |
| 477 | ' <$as_myself | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 478 | sed ' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 479 | s/[$]LINENO.*/&-/ |
| 480 | t lineno |
| 481 | b |
| 482 | :lineno |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 483 | N |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 484 | :loop |
| 485 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 486 | t loop |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 487 | s/-\n.*// |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 488 | ' >$as_me.lineno && |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 489 | chmod +x "$as_me.lineno" || |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 490 | { $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] | 491 | |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 492 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
| 493 | # already done that, so ensure we don't try to do so again and fall |
| 494 | # in an infinite loop. This has already happened in practice. |
| 495 | _as_can_reexec=no; export _as_can_reexec |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 496 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 497 | # (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] | 498 | # original and so on. Autoconf is especially sensitive to this). |
| 499 | . "./$as_me.lineno" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 500 | # Exit status is that of the last command. |
| 501 | exit |
| 502 | } |
| 503 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 504 | ECHO_C= ECHO_N= ECHO_T= |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 505 | case `echo -n x` in #((((( |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 506 | -n*) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 507 | case `echo 'xy\c'` in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 508 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 509 | xy) ECHO_C='\c';; |
| 510 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 511 | ECHO_T=' ';; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 512 | esac;; |
| 513 | *) |
| 514 | ECHO_N='-n';; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 515 | esac |
Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 516 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 517 | rm -f conf$$ conf$$.exe conf$$.file |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 518 | if test -d conf$$.dir; then |
| 519 | rm -f conf$$.dir/conf$$.file |
| 520 | else |
| 521 | rm -f conf$$.dir |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 522 | mkdir conf$$.dir 2>/dev/null |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 523 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 524 | if (echo >conf$$.file) 2>/dev/null; then |
| 525 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 526 | as_ln_s='ln -s' |
| 527 | # ... but there are two gotchas: |
| 528 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 529 | # 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] | 530 | # In both cases, we have to default to `cp -pR'. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 531 | 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] | 532 | as_ln_s='cp -pR' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 533 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 534 | as_ln_s=ln |
| 535 | else |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 536 | as_ln_s='cp -pR' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 537 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 538 | else |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 539 | as_ln_s='cp -pR' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 540 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 541 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 542 | rmdir conf$$.dir 2>/dev/null |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 543 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 544 | if mkdir -p . 2>/dev/null; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 545 | as_mkdir_p='mkdir -p "$as_dir"' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 546 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 547 | test -d ./-p && rmdir ./-p |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 548 | as_mkdir_p=false |
| 549 | fi |
| 550 | |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 551 | as_test_x='test -x' |
| 552 | as_executable_p=as_fn_executable_p |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 553 | |
| 554 | # Sed expression to map a string onto a valid CPP name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 555 | 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] | 556 | |
| 557 | # Sed expression to map a string onto a valid variable name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 558 | 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] | 559 | |
| 560 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 561 | test -n "$DJDIR" || exec 7<&0 </dev/null |
| 562 | exec 6>&1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 563 | |
| 564 | # Name of the host. |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 565 | # 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] | 566 | # so uname gets run too. |
| 567 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 568 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 569 | # |
| 570 | # Initializations. |
| 571 | # |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 572 | ac_default_prefix=/usr/local |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 573 | ac_clean_files= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 574 | ac_config_libobj_dir=. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 575 | LIBOBJS= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 576 | cross_compiling=no |
| 577 | subdirs= |
| 578 | MFLAGS= |
| 579 | MAKEFLAGS= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 580 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 581 | # Identity of this package. |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 582 | PACKAGE_NAME='python' |
| 583 | PACKAGE_TARNAME='python' |
Benjamin Peterson | 46ea4f7 | 2009-06-27 21:40:27 +0000 | [diff] [blame] | 584 | PACKAGE_VERSION='3.2' |
| 585 | PACKAGE_STRING='python 3.2' |
Georg Brandl | e2e1561 | 2009-05-20 18:25:10 +0000 | [diff] [blame] | 586 | PACKAGE_BUGREPORT='http://bugs.python.org/' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 587 | PACKAGE_URL='' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 588 | |
| 589 | ac_unique_file="Include/object.h" |
| 590 | # Factoring default headers for most tests. |
| 591 | ac_includes_default="\ |
| 592 | #include <stdio.h> |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 593 | #ifdef HAVE_SYS_TYPES_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 594 | # include <sys/types.h> |
| 595 | #endif |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 596 | #ifdef HAVE_SYS_STAT_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 597 | # include <sys/stat.h> |
| 598 | #endif |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 599 | #ifdef STDC_HEADERS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 600 | # include <stdlib.h> |
| 601 | # include <stddef.h> |
| 602 | #else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 603 | # ifdef HAVE_STDLIB_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 604 | # include <stdlib.h> |
| 605 | # endif |
| 606 | #endif |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 607 | #ifdef HAVE_STRING_H |
| 608 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 609 | # include <memory.h> |
| 610 | # endif |
| 611 | # include <string.h> |
| 612 | #endif |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 613 | #ifdef HAVE_STRINGS_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 614 | # include <strings.h> |
| 615 | #endif |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 616 | #ifdef HAVE_INTTYPES_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 617 | # include <inttypes.h> |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 618 | #endif |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 619 | #ifdef HAVE_STDINT_H |
| 620 | # include <stdint.h> |
| 621 | #endif |
| 622 | #ifdef HAVE_UNISTD_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 623 | # include <unistd.h> |
| 624 | #endif" |
| 625 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 626 | ac_subst_vars='LTLIBOBJS |
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 |
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 629 | SOABI |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 630 | LIBC |
| 631 | LIBM |
| 632 | HAVE_GETHOSTBYNAME |
| 633 | HAVE_GETHOSTBYNAME_R |
| 634 | HAVE_GETHOSTBYNAME_R_3_ARG |
| 635 | HAVE_GETHOSTBYNAME_R_5_ARG |
| 636 | HAVE_GETHOSTBYNAME_R_6_ARG |
| 637 | LIBOBJS |
| 638 | TRUE |
| 639 | MACHDEP_OBJS |
| 640 | DYNLOADFILE |
| 641 | DLINCLDIR |
| 642 | THREADOBJ |
| 643 | LDLAST |
| 644 | USE_THREAD_MODULE |
| 645 | SIGNAL_OBJS |
| 646 | USE_SIGNAL_MODULE |
| 647 | LIBFFI_INCLUDEDIR |
| 648 | PKG_CONFIG |
| 649 | SHLIBS |
| 650 | CFLAGSFORSHARED |
| 651 | LINKFORSHARED |
| 652 | CCSHARED |
| 653 | BLDSHARED |
| 654 | LDCXXSHARED |
| 655 | LDSHARED |
| 656 | SO |
| 657 | LIBTOOL_CRUFT |
| 658 | OTHER_LIBTOOL_OPT |
| 659 | UNIVERSAL_ARCH_FLAGS |
| 660 | BASECFLAGS |
| 661 | OPT |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 662 | ABIFLAGS |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 663 | LN |
Trent Nelson | a45afca | 2012-08-30 14:32:02 +0000 | [diff] [blame] | 664 | MKDIR_P |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 665 | INSTALL_DATA |
| 666 | INSTALL_SCRIPT |
| 667 | INSTALL_PROGRAM |
Matthias Klose | c4c4842 | 2012-10-21 23:05:35 +0200 | [diff] [blame] | 668 | PYTHON |
| 669 | ASDLGEN |
Georg Brandl | 1ca2e79 | 2011-03-05 20:51:24 +0100 | [diff] [blame] | 670 | HAS_HG |
| 671 | HGBRANCH |
| 672 | HGTAG |
| 673 | HGVERSION |
Trent Nelson | 9effe69 | 2012-10-16 08:41:32 -0400 | [diff] [blame] | 674 | BASECPPFLAGS |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 675 | SVNVERSION |
| 676 | ARFLAGS |
| 677 | AR |
| 678 | RANLIB |
Daniel Stutzbach | a606faa | 2010-08-31 19:51:07 +0000 | [diff] [blame] | 679 | USE_INLINE |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 680 | GNULD |
| 681 | LINKCC |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 682 | LDVERSION |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 683 | RUNSHARED |
| 684 | INSTSONAME |
| 685 | LDLIBRARYDIR |
Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 +0000 | [diff] [blame] | 686 | PY3LIBRARY |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 687 | BLDLIBRARY |
| 688 | DLLLIBRARY |
| 689 | LDLIBRARY |
| 690 | LIBRARY |
doko@python.org | 3e6e2ac | 2013-01-25 13:12:29 +0100 | [diff] [blame] | 691 | MULTIARCH |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 692 | BUILDEXEEXT |
| 693 | EGREP |
| 694 | GREP |
| 695 | CPP |
Martin v. Löwis | 48e14d3 | 2011-05-09 07:37:45 +0200 | [diff] [blame] | 696 | NO_AS_NEEDED |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 697 | MAINCC |
| 698 | CXX |
| 699 | OBJEXT |
| 700 | EXEEXT |
| 701 | ac_ct_CC |
| 702 | CPPFLAGS |
| 703 | LDFLAGS |
| 704 | CFLAGS |
| 705 | CC |
| 706 | EXPORT_MACOSX_DEPLOYMENT_TARGET |
| 707 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET |
| 708 | SGI_ABI |
| 709 | MACHDEP |
Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 710 | FRAMEWORKINSTALLAPPSPREFIX |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 711 | FRAMEWORKUNIXTOOLSPREFIX |
| 712 | FRAMEWORKALTINSTALLLAST |
| 713 | FRAMEWORKALTINSTALLFIRST |
| 714 | FRAMEWORKINSTALLLAST |
| 715 | FRAMEWORKINSTALLFIRST |
| 716 | PYTHONFRAMEWORKINSTALLDIR |
| 717 | PYTHONFRAMEWORKPREFIX |
| 718 | PYTHONFRAMEWORKDIR |
| 719 | PYTHONFRAMEWORKIDENTIFIER |
| 720 | PYTHONFRAMEWORK |
| 721 | LIPO_32BIT_FLAGS |
| 722 | ARCH_RUN_32BIT |
| 723 | UNIVERSALSDK |
| 724 | CONFIG_ARGS |
| 725 | SOVERSION |
| 726 | VERSION |
| 727 | target_alias |
| 728 | host_alias |
| 729 | build_alias |
| 730 | LIBS |
| 731 | ECHO_T |
| 732 | ECHO_N |
| 733 | ECHO_C |
| 734 | DEFS |
| 735 | mandir |
| 736 | localedir |
| 737 | libdir |
| 738 | psdir |
| 739 | pdfdir |
| 740 | dvidir |
| 741 | htmldir |
| 742 | infodir |
| 743 | docdir |
| 744 | oldincludedir |
| 745 | includedir |
| 746 | localstatedir |
| 747 | sharedstatedir |
| 748 | sysconfdir |
| 749 | datadir |
| 750 | datarootdir |
| 751 | libexecdir |
| 752 | sbindir |
| 753 | bindir |
| 754 | program_transform_name |
| 755 | prefix |
| 756 | exec_prefix |
| 757 | PACKAGE_URL |
| 758 | PACKAGE_BUGREPORT |
| 759 | PACKAGE_STRING |
| 760 | PACKAGE_VERSION |
| 761 | PACKAGE_TARNAME |
| 762 | PACKAGE_NAME |
| 763 | PATH_SEPARATOR |
| 764 | SHELL' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 765 | ac_subst_files='' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 766 | ac_user_opts=' |
| 767 | enable_option_checking |
| 768 | enable_universalsdk |
| 769 | with_universal_archs |
| 770 | with_framework_name |
| 771 | enable_framework |
| 772 | with_gcc |
| 773 | with_cxx_main |
| 774 | with_suffix |
| 775 | enable_shared |
| 776 | enable_profiling |
| 777 | with_pydebug |
| 778 | with_libs |
| 779 | with_system_expat |
| 780 | with_system_ffi |
Benjamin Peterson | 076ed00 | 2010-10-31 17:11:02 +0000 | [diff] [blame] | 781 | enable_loadable_sqlite_extensions |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 782 | with_dbmliborder |
| 783 | with_signal_module |
| 784 | with_dec_threads |
| 785 | with_threads |
| 786 | with_thread |
| 787 | enable_ipv6 |
| 788 | with_doc_strings |
| 789 | with_tsc |
| 790 | with_pymalloc |
| 791 | with_valgrind |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 792 | with_fpectl |
| 793 | with_libm |
| 794 | with_libc |
| 795 | enable_big_digits |
| 796 | with_wide_unicode |
| 797 | with_computed_gotos |
| 798 | ' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 799 | ac_precious_vars='build_alias |
| 800 | host_alias |
| 801 | target_alias |
| 802 | CC |
| 803 | CFLAGS |
| 804 | LDFLAGS |
| 805 | LIBS |
| 806 | CPPFLAGS |
Barry Warsaw | 14d98ac | 2010-11-24 19:43:47 +0000 | [diff] [blame] | 807 | CPP' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 808 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 809 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 810 | # Initialize some variables set by options. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 811 | ac_init_help= |
| 812 | ac_init_version=false |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 813 | ac_unrecognized_opts= |
| 814 | ac_unrecognized_sep= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 815 | # The variables have the same names as the options, with |
| 816 | # dashes changed to underlines. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 817 | cache_file=/dev/null |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 818 | exec_prefix=NONE |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 819 | no_create= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 820 | no_recursion= |
| 821 | prefix=NONE |
| 822 | program_prefix=NONE |
| 823 | program_suffix=NONE |
| 824 | program_transform_name=s,x,x, |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 825 | silent= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 826 | site= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 827 | srcdir= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 828 | verbose= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 829 | x_includes=NONE |
| 830 | x_libraries=NONE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 831 | |
| 832 | # Installation directory options. |
| 833 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 834 | # and all the variables that are supposed to be based on exec_prefix |
| 835 | # by default will actually change. |
| 836 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 837 | # (The list follows the same order as the GNU Coding Standards.) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 838 | bindir='${exec_prefix}/bin' |
| 839 | sbindir='${exec_prefix}/sbin' |
| 840 | libexecdir='${exec_prefix}/libexec' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 841 | datarootdir='${prefix}/share' |
| 842 | datadir='${datarootdir}' |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 843 | sysconfdir='${prefix}/etc' |
| 844 | sharedstatedir='${prefix}/com' |
| 845 | localstatedir='${prefix}/var' |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 846 | includedir='${prefix}/include' |
| 847 | oldincludedir='/usr/include' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 848 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 849 | infodir='${datarootdir}/info' |
| 850 | htmldir='${docdir}' |
| 851 | dvidir='${docdir}' |
| 852 | pdfdir='${docdir}' |
| 853 | psdir='${docdir}' |
| 854 | libdir='${exec_prefix}/lib' |
| 855 | localedir='${datarootdir}/locale' |
| 856 | mandir='${datarootdir}/man' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 857 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 858 | ac_prev= |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 859 | ac_dashdash= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 860 | for ac_option |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 861 | do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 862 | # If the previous option needs an argument, assign it. |
| 863 | if test -n "$ac_prev"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 864 | eval $ac_prev=\$ac_option |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 865 | ac_prev= |
| 866 | continue |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 867 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 868 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 869 | case $ac_option in |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 870 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 871 | *=) ac_optarg= ;; |
| 872 | *) ac_optarg=yes ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 873 | esac |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 874 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 875 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 876 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 877 | case $ac_dashdash$ac_option in |
| 878 | --) |
| 879 | ac_dashdash=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 880 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 881 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 882 | ac_prev=bindir ;; |
| 883 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 884 | bindir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 885 | |
| 886 | -build | --build | --buil | --bui | --bu) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 887 | ac_prev=build_alias ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 888 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 889 | build_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 890 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 891 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 892 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 893 | ac_prev=cache_file ;; |
| 894 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 895 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 896 | cache_file=$ac_optarg ;; |
| 897 | |
| 898 | --config-cache | -C) |
| 899 | cache_file=config.cache ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 900 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 901 | -datadir | --datadir | --datadi | --datad) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 902 | ac_prev=datadir ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 903 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 904 | datadir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 905 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 906 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 907 | | --dataroo | --dataro | --datar) |
| 908 | ac_prev=datarootdir ;; |
| 909 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 910 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 911 | datarootdir=$ac_optarg ;; |
| 912 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 913 | -disable-* | --disable-*) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 914 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 915 | # Reject names that are not valid shell variable names. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 916 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 917 | as_fn_error $? "invalid feature name: $ac_useropt" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 918 | ac_useropt_orig=$ac_useropt |
| 919 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 920 | case $ac_user_opts in |
| 921 | *" |
| 922 | "enable_$ac_useropt" |
| 923 | "*) ;; |
| 924 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 925 | ac_unrecognized_sep=', ';; |
| 926 | esac |
| 927 | eval enable_$ac_useropt=no ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 928 | |
| 929 | -docdir | --docdir | --docdi | --doc | --do) |
| 930 | ac_prev=docdir ;; |
| 931 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 932 | docdir=$ac_optarg ;; |
| 933 | |
| 934 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 935 | ac_prev=dvidir ;; |
| 936 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 937 | dvidir=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 938 | |
| 939 | -enable-* | --enable-*) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 940 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 941 | # Reject names that are not valid shell variable names. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 942 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 943 | as_fn_error $? "invalid feature name: $ac_useropt" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 944 | ac_useropt_orig=$ac_useropt |
| 945 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 946 | case $ac_user_opts in |
| 947 | *" |
| 948 | "enable_$ac_useropt" |
| 949 | "*) ;; |
| 950 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 951 | ac_unrecognized_sep=', ';; |
| 952 | esac |
| 953 | eval enable_$ac_useropt=\$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 954 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 955 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 956 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 957 | | --exec | --exe | --ex) |
| 958 | ac_prev=exec_prefix ;; |
| 959 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 960 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 961 | | --exec=* | --exe=* | --ex=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 962 | exec_prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 963 | |
| 964 | -gas | --gas | --ga | --g) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 965 | # Obsolete; use --with-gas. |
| 966 | with_gas=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 967 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 968 | -help | --help | --hel | --he | -h) |
| 969 | ac_init_help=long ;; |
| 970 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 971 | ac_init_help=recursive ;; |
| 972 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 973 | ac_init_help=short ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 974 | |
| 975 | -host | --host | --hos | --ho) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 976 | ac_prev=host_alias ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 977 | -host=* | --host=* | --hos=* | --ho=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 978 | host_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 979 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 980 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 981 | ac_prev=htmldir ;; |
| 982 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 983 | | --ht=*) |
| 984 | htmldir=$ac_optarg ;; |
| 985 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 986 | -includedir | --includedir | --includedi | --included | --include \ |
| 987 | | --includ | --inclu | --incl | --inc) |
| 988 | ac_prev=includedir ;; |
| 989 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 990 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 991 | includedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 992 | |
| 993 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 994 | ac_prev=infodir ;; |
| 995 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 996 | infodir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 997 | |
| 998 | -libdir | --libdir | --libdi | --libd) |
| 999 | ac_prev=libdir ;; |
| 1000 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1001 | libdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1002 | |
| 1003 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1004 | | --libexe | --libex | --libe) |
| 1005 | ac_prev=libexecdir ;; |
| 1006 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1007 | | --libexe=* | --libex=* | --libe=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1008 | libexecdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1009 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1010 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1011 | ac_prev=localedir ;; |
| 1012 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1013 | localedir=$ac_optarg ;; |
| 1014 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1015 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1016 | | --localstate | --localstat | --localsta | --localst | --locals) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1017 | ac_prev=localstatedir ;; |
| 1018 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1019 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1020 | localstatedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1021 | |
| 1022 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1023 | ac_prev=mandir ;; |
| 1024 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1025 | mandir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1026 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1027 | -nfp | --nfp | --nf) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1028 | # Obsolete; use --without-fp. |
| 1029 | with_fp=no ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1030 | |
| 1031 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1032 | | --no-cr | --no-c | -n) |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1033 | no_create=yes ;; |
| 1034 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1035 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1036 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1037 | no_recursion=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1038 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1039 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1040 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1041 | | --oldin | --oldi | --old | --ol | --o) |
| 1042 | ac_prev=oldincludedir ;; |
| 1043 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1044 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1045 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1046 | oldincludedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1047 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1048 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1049 | ac_prev=prefix ;; |
| 1050 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1051 | prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1052 | |
| 1053 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1054 | | --program-pre | --program-pr | --program-p) |
| 1055 | ac_prev=program_prefix ;; |
| 1056 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1057 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1058 | program_prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1059 | |
| 1060 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1061 | | --program-suf | --program-su | --program-s) |
| 1062 | ac_prev=program_suffix ;; |
| 1063 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1064 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1065 | program_suffix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1066 | |
| 1067 | -program-transform-name | --program-transform-name \ |
| 1068 | | --program-transform-nam | --program-transform-na \ |
| 1069 | | --program-transform-n | --program-transform- \ |
| 1070 | | --program-transform | --program-transfor \ |
| 1071 | | --program-transfo | --program-transf \ |
| 1072 | | --program-trans | --program-tran \ |
| 1073 | | --progr-tra | --program-tr | --program-t) |
| 1074 | ac_prev=program_transform_name ;; |
| 1075 | -program-transform-name=* | --program-transform-name=* \ |
| 1076 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1077 | | --program-transform-n=* | --program-transform-=* \ |
| 1078 | | --program-transform=* | --program-transfor=* \ |
| 1079 | | --program-transfo=* | --program-transf=* \ |
| 1080 | | --program-trans=* | --program-tran=* \ |
| 1081 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1082 | program_transform_name=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1083 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1084 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1085 | ac_prev=pdfdir ;; |
| 1086 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1087 | pdfdir=$ac_optarg ;; |
| 1088 | |
| 1089 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1090 | ac_prev=psdir ;; |
| 1091 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1092 | psdir=$ac_optarg ;; |
| 1093 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1094 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1095 | | -silent | --silent | --silen | --sile | --sil) |
| 1096 | silent=yes ;; |
| 1097 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1098 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1099 | ac_prev=sbindir ;; |
| 1100 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1101 | | --sbi=* | --sb=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1102 | sbindir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1103 | |
| 1104 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1105 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1106 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1107 | | --sha | --sh) |
| 1108 | ac_prev=sharedstatedir ;; |
| 1109 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1110 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1111 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1112 | | --sha=* | --sh=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1113 | sharedstatedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1114 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1115 | -site | --site | --sit) |
| 1116 | ac_prev=site ;; |
| 1117 | -site=* | --site=* | --sit=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1118 | site=$ac_optarg ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1119 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1120 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1121 | ac_prev=srcdir ;; |
| 1122 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1123 | srcdir=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1124 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1125 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1126 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1127 | ac_prev=sysconfdir ;; |
| 1128 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1129 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1130 | sysconfdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1131 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1132 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1133 | ac_prev=target_alias ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1134 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1135 | target_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1136 | |
| 1137 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1138 | verbose=yes ;; |
| 1139 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1140 | -version | --version | --versio | --versi | --vers | -V) |
| 1141 | ac_init_version=: ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1142 | |
| 1143 | -with-* | --with-*) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1144 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1145 | # Reject names that are not valid shell variable names. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1146 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 1147 | as_fn_error $? "invalid package name: $ac_useropt" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1148 | ac_useropt_orig=$ac_useropt |
| 1149 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1150 | case $ac_user_opts in |
| 1151 | *" |
| 1152 | "with_$ac_useropt" |
| 1153 | "*) ;; |
| 1154 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1155 | ac_unrecognized_sep=', ';; |
| 1156 | esac |
| 1157 | eval with_$ac_useropt=\$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1158 | |
| 1159 | -without-* | --without-*) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1160 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1161 | # Reject names that are not valid shell variable names. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1162 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 1163 | as_fn_error $? "invalid package name: $ac_useropt" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1164 | ac_useropt_orig=$ac_useropt |
| 1165 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1166 | case $ac_user_opts in |
| 1167 | *" |
| 1168 | "with_$ac_useropt" |
| 1169 | "*) ;; |
| 1170 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1171 | ac_unrecognized_sep=', ';; |
| 1172 | esac |
| 1173 | eval with_$ac_useropt=no ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1174 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1175 | --x) |
| 1176 | # Obsolete; use --with-x. |
| 1177 | with_x=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1178 | |
| 1179 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1180 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1181 | ac_prev=x_includes ;; |
| 1182 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1183 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1184 | x_includes=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1185 | |
| 1186 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1187 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1188 | ac_prev=x_libraries ;; |
| 1189 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1190 | | --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] | 1191 | x_libraries=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1192 | |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 1193 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
| 1194 | Try \`$0 --help' for more information" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1195 | ;; |
| 1196 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1197 | *=*) |
| 1198 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1199 | # Reject names that are not valid shell variable names. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1200 | case $ac_envvar in #( |
| 1201 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 1202 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1203 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1204 | eval $ac_envvar=\$ac_optarg |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1205 | export $ac_envvar ;; |
| 1206 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1207 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1208 | # FIXME: should be removed in autoconf 3.0. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1209 | $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] | 1210 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1211 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 1212 | : "${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] | 1213 | ;; |
| 1214 | |
| 1215 | esac |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1216 | done |
| 1217 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1218 | if test -n "$ac_prev"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1219 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 1220 | as_fn_error $? "missing argument to $ac_option" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1221 | fi |
| 1222 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1223 | if test -n "$ac_unrecognized_opts"; then |
| 1224 | case $enable_option_checking in |
| 1225 | no) ;; |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 1226 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1227 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1228 | esac |
| 1229 | fi |
| 1230 | |
| 1231 | # Check all directory arguments for consistency. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1232 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1233 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1234 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1235 | libdir localedir mandir |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1236 | do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1237 | eval ac_val=\$$ac_var |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1238 | # Remove trailing slashes. |
| 1239 | case $ac_val in |
| 1240 | */ ) |
| 1241 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1242 | eval $ac_var=\$ac_val;; |
| 1243 | esac |
| 1244 | # Be sure to have absolute directory names. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1245 | case $ac_val in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1246 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1247 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1248 | esac |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 1249 | 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] | 1250 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1251 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1252 | # There might be people who depend on the old broken behavior: `$host' |
| 1253 | # used to hold the argument of --host etc. |
| 1254 | # FIXME: To remove some day. |
| 1255 | build=$build_alias |
| 1256 | host=$host_alias |
| 1257 | target=$target_alias |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1258 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1259 | # FIXME: To remove some day. |
| 1260 | if test "x$host_alias" != x; then |
| 1261 | if test "x$build_alias" = x; then |
| 1262 | cross_compiling=maybe |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1263 | elif test "x$build_alias" != "x$host_alias"; then |
| 1264 | cross_compiling=yes |
| 1265 | fi |
| 1266 | fi |
| 1267 | |
| 1268 | ac_tool_prefix= |
| 1269 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1270 | |
| 1271 | test "$silent" = yes && exec 6>/dev/null |
| 1272 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1273 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1274 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1275 | ac_ls_di=`ls -di .` && |
| 1276 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 1277 | as_fn_error $? "working directory cannot be determined" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1278 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 1279 | as_fn_error $? "pwd does not report name of working directory" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1280 | |
| 1281 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1282 | # Find the source files, if location was not specified. |
| 1283 | if test -z "$srcdir"; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1284 | ac_srcdir_defaulted=yes |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1285 | # Try the directory containing this script, then the parent directory. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1286 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1287 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1288 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1289 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1290 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1291 | $as_echo X"$as_myself" | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1292 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1293 | s//\1/ |
| 1294 | q |
| 1295 | } |
| 1296 | /^X\(\/\/\)[^/].*/{ |
| 1297 | s//\1/ |
| 1298 | q |
| 1299 | } |
| 1300 | /^X\(\/\/\)$/{ |
| 1301 | s//\1/ |
| 1302 | q |
| 1303 | } |
| 1304 | /^X\(\/\).*/{ |
| 1305 | s//\1/ |
| 1306 | q |
| 1307 | } |
| 1308 | s/.*/./; q'` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1309 | srcdir=$ac_confdir |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1310 | if test ! -r "$srcdir/$ac_unique_file"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1311 | srcdir=.. |
| 1312 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1313 | else |
| 1314 | ac_srcdir_defaulted=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1315 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1316 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1317 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 1318 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1319 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1320 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1321 | ac_abs_confdir=`( |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 1322 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1323 | pwd)` |
| 1324 | # When building in place, set srcdir=. |
| 1325 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1326 | srcdir=. |
| 1327 | fi |
| 1328 | # Remove unnecessary trailing slashes from srcdir. |
| 1329 | # Double slashes in file names in object file debugging info |
| 1330 | # mess up M-x gdb in Emacs. |
| 1331 | case $srcdir in |
| 1332 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1333 | esac |
| 1334 | for ac_var in $ac_precious_vars; do |
| 1335 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1336 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1337 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1338 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1339 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1340 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1341 | # |
| 1342 | # Report the --help message. |
| 1343 | # |
| 1344 | if test "$ac_init_help" = "long"; then |
| 1345 | # Omit some internal or obsolete options to make the list less imposing. |
| 1346 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1347 | cat <<_ACEOF |
Benjamin Peterson | 46ea4f7 | 2009-06-27 21:40:27 +0000 | [diff] [blame] | 1348 | \`configure' configures python 3.2 to adapt to many kinds of systems. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1349 | |
| 1350 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1351 | |
| 1352 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1353 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1354 | |
| 1355 | Defaults for the options are specified in brackets. |
| 1356 | |
| 1357 | Configuration: |
| 1358 | -h, --help display this help and exit |
| 1359 | --help=short display options specific to this package |
| 1360 | --help=recursive display the short help of all the included packages |
| 1361 | -V, --version display version information and exit |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 1362 | -q, --quiet, --silent do not print \`checking ...' messages |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1363 | --cache-file=FILE cache test results in FILE [disabled] |
| 1364 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1365 | -n, --no-create do not create output files |
| 1366 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1367 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1368 | Installation directories: |
| 1369 | --prefix=PREFIX install architecture-independent files in PREFIX |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1370 | [$ac_default_prefix] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1371 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1372 | [PREFIX] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1373 | |
| 1374 | By default, \`make install' will install all the files in |
| 1375 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1376 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1377 | for instance \`--prefix=\$HOME'. |
| 1378 | |
| 1379 | For better control, use the options below. |
| 1380 | |
| 1381 | Fine tuning of the installation directories: |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1382 | --bindir=DIR user executables [EPREFIX/bin] |
| 1383 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1384 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1385 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1386 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1387 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1388 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1389 | --includedir=DIR C header files [PREFIX/include] |
| 1390 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1391 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1392 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1393 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1394 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1395 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1396 | --docdir=DIR documentation root [DATAROOTDIR/doc/python] |
| 1397 | --htmldir=DIR html documentation [DOCDIR] |
| 1398 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1399 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1400 | --psdir=DIR ps documentation [DOCDIR] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1401 | _ACEOF |
| 1402 | |
| 1403 | cat <<\_ACEOF |
| 1404 | _ACEOF |
| 1405 | fi |
| 1406 | |
| 1407 | if test -n "$ac_init_help"; then |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1408 | case $ac_init_help in |
Benjamin Peterson | 46ea4f7 | 2009-06-27 21:40:27 +0000 | [diff] [blame] | 1409 | short | recursive ) echo "Configuration of python 3.2:";; |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1410 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1411 | cat <<\_ACEOF |
| 1412 | |
| 1413 | Optional Features: |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1414 | --disable-option-checking ignore unrecognized --enable/--with options |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1415 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1416 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Christian Heimes | 68f5fbe | 2008-02-14 08:27:37 +0000 | [diff] [blame] | 1417 | --enable-universalsdk[=SDKDIR] |
Christian Heimes | 292d351 | 2008-02-03 16:51:08 +0000 | [diff] [blame] | 1418 | Build against Mac OS X 10.4u SDK (ppc/i386) |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1419 | --enable-framework[=INSTALLDIR] |
| 1420 | Build (MacOSX|Darwin) framework |
| 1421 | --enable-shared disable/enable building shared python library |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 1422 | --enable-profiling enable C-level code profiling |
Benjamin Peterson | 076ed00 | 2010-10-31 17:11:02 +0000 | [diff] [blame] | 1423 | --enable-loadable-sqlite-extensions |
| 1424 | support loadable extensions in _sqlite module |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1425 | --enable-ipv6 Enable ipv6 (with ipv4) support |
| 1426 | --disable-ipv6 Disable ipv6 support |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 1427 | --enable-big-digits[=BITS] |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1428 | use big digits for Python longs [[BITS=30]] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1429 | |
| 1430 | Optional Packages: |
| 1431 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1432 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 1433 | --with-universal-archs=ARCH |
| 1434 | select architectures for universal build ("32-bit", |
Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 1435 | "64-bit", "3-way", "intel" or "all") |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 1436 | --with-framework-name=FRAMEWORK |
| 1437 | specify an alternate name of the framework built |
| 1438 | with --enable-framework |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1439 | --without-gcc never use gcc |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 1440 | --with-cxx-main=<compiler> |
| 1441 | compile main() and link python executable with C++ |
| 1442 | compiler |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1443 | --with-suffix=.exe set executable suffix |
| 1444 | --with-pydebug build with Py_DEBUG defined |
| 1445 | --with-libs='lib1 ...' link against additional libs |
Benjamin Peterson | b2d9046 | 2009-12-31 03:23:10 +0000 | [diff] [blame] | 1446 | --with-system-expat build pyexpat module using an installed expat |
| 1447 | library |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 1448 | --with-system-ffi build _ctypes module using an installed ffi library |
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 1449 | --with-dbmliborder=db1:db2:... |
| 1450 | order to check db backends for dbm. Valid value is a |
| 1451 | colon separated string with the backend names |
| 1452 | `ndbm', `gdbm' and `bdb'. |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1453 | --with-signal-module disable/enable signal module |
| 1454 | --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries |
| 1455 | --with(out)-threads[=DIRECTORY] |
| 1456 | disable/enable thread support |
| 1457 | --with(out)-thread[=DIRECTORY] |
| 1458 | deprecated; use --with(out)-threads |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1459 | --with(out)-doc-strings disable/enable documentation strings |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 1460 | --with(out)-tsc enable/disable timestamp counter profile |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1461 | --with(out)-pymalloc disable/enable specialized mallocs |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 1462 | --with-valgrind Enable Valgrind support |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1463 | --with-fpectl enable SIGFPE catching |
| 1464 | --with-libm=STRING math library |
| 1465 | --with-libc=STRING C library |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 1466 | --with-wide-unicode Use 4-byte Unicode characters (default is 2 bytes) |
Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 1467 | --with(out)-computed-gotos |
| 1468 | Use computed gotos in evaluation loop (enabled by |
| 1469 | default on supported compilers) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1470 | |
| 1471 | Some influential environment variables: |
| 1472 | CC C compiler command |
| 1473 | CFLAGS C compiler flags |
| 1474 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1475 | nonstandard directory <lib dir> |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1476 | LIBS libraries to pass to the linker, e.g. -l<library> |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1477 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1478 | you have headers in a nonstandard directory <include dir> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1479 | CPP C preprocessor |
| 1480 | |
| 1481 | Use these variables to override the choices made by `configure' or to help |
| 1482 | it to find libraries and programs with nonstandard names/locations. |
| 1483 | |
Georg Brandl | e2e1561 | 2009-05-20 18:25:10 +0000 | [diff] [blame] | 1484 | Report bugs to <http://bugs.python.org/>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1485 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1486 | ac_status=$? |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1487 | fi |
| 1488 | |
| 1489 | if test "$ac_init_help" = "recursive"; then |
| 1490 | # If there are subdirs, report their specific --help. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1491 | 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] | 1492 | test -d "$ac_dir" || |
| 1493 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1494 | continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1495 | ac_builddir=. |
| 1496 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1497 | case "$ac_dir" in |
| 1498 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1499 | *) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1500 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1501 | # A ".." for each directory in $ac_dir_suffix. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1502 | 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] | 1503 | case $ac_top_builddir_sub in |
| 1504 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1505 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1506 | esac ;; |
| 1507 | esac |
| 1508 | ac_abs_top_builddir=$ac_pwd |
| 1509 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1510 | # for backward compatibility: |
| 1511 | ac_top_builddir=$ac_top_build_prefix |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1512 | |
| 1513 | case $srcdir in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1514 | .) # We are building in place. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1515 | ac_srcdir=. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1516 | ac_top_srcdir=$ac_top_builddir_sub |
| 1517 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1518 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1519 | ac_srcdir=$srcdir$ac_dir_suffix; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1520 | ac_top_srcdir=$srcdir |
| 1521 | ac_abs_top_srcdir=$srcdir ;; |
| 1522 | *) # Relative name. |
| 1523 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1524 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1525 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1526 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1527 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1528 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1529 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1530 | # Check for guested configure. |
| 1531 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1532 | echo && |
| 1533 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1534 | elif test -f "$ac_srcdir/configure"; then |
| 1535 | echo && |
| 1536 | $SHELL "$ac_srcdir/configure" --help=recursive |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1537 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1538 | $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] | 1539 | fi || ac_status=$? |
| 1540 | cd "$ac_pwd" || { ac_status=$?; break; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1541 | done |
| 1542 | fi |
| 1543 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1544 | test -n "$ac_init_help" && exit $ac_status |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1545 | if $ac_init_version; then |
| 1546 | cat <<\_ACEOF |
Benjamin Peterson | 46ea4f7 | 2009-06-27 21:40:27 +0000 | [diff] [blame] | 1547 | python configure 3.2 |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 1548 | generated by GNU Autoconf 2.69 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1549 | |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 1550 | Copyright (C) 2012 Free Software Foundation, Inc. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1551 | This configure script is free software; the Free Software Foundation |
| 1552 | gives unlimited permission to copy, distribute and modify it. |
| 1553 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1554 | exit |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1555 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1556 | |
| 1557 | ## ------------------------ ## |
| 1558 | ## Autoconf initialization. ## |
| 1559 | ## ------------------------ ## |
| 1560 | |
| 1561 | # ac_fn_c_try_compile LINENO |
| 1562 | # -------------------------- |
| 1563 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1564 | ac_fn_c_try_compile () |
| 1565 | { |
| 1566 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1567 | rm -f conftest.$ac_objext |
| 1568 | if { { ac_try="$ac_compile" |
| 1569 | case "(($ac_try" in |
| 1570 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1571 | *) ac_try_echo=$ac_try;; |
| 1572 | esac |
| 1573 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1574 | $as_echo "$ac_try_echo"; } >&5 |
| 1575 | (eval "$ac_compile") 2>conftest.err |
| 1576 | ac_status=$? |
| 1577 | if test -s conftest.err; then |
| 1578 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1579 | cat conftest.er1 >&5 |
| 1580 | mv -f conftest.er1 conftest.err |
| 1581 | fi |
| 1582 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1583 | test $ac_status = 0; } && { |
| 1584 | test -z "$ac_c_werror_flag" || |
| 1585 | test ! -s conftest.err |
| 1586 | } && test -s conftest.$ac_objext; then : |
| 1587 | ac_retval=0 |
| 1588 | else |
| 1589 | $as_echo "$as_me: failed program was:" >&5 |
| 1590 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1591 | |
| 1592 | ac_retval=1 |
| 1593 | fi |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 1594 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1595 | as_fn_set_status $ac_retval |
| 1596 | |
| 1597 | } # ac_fn_c_try_compile |
| 1598 | |
Martin v. Löwis | 48e14d3 | 2011-05-09 07:37:45 +0200 | [diff] [blame] | 1599 | # ac_fn_c_try_link LINENO |
| 1600 | # ----------------------- |
| 1601 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1602 | ac_fn_c_try_link () |
| 1603 | { |
| 1604 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1605 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 1606 | if { { ac_try="$ac_link" |
| 1607 | case "(($ac_try" in |
| 1608 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1609 | *) ac_try_echo=$ac_try;; |
| 1610 | esac |
| 1611 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1612 | $as_echo "$ac_try_echo"; } >&5 |
| 1613 | (eval "$ac_link") 2>conftest.err |
| 1614 | ac_status=$? |
| 1615 | if test -s conftest.err; then |
| 1616 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1617 | cat conftest.er1 >&5 |
| 1618 | mv -f conftest.er1 conftest.err |
| 1619 | fi |
| 1620 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1621 | test $ac_status = 0; } && { |
| 1622 | test -z "$ac_c_werror_flag" || |
| 1623 | test ! -s conftest.err |
| 1624 | } && test -s conftest$ac_exeext && { |
| 1625 | test "$cross_compiling" = yes || |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 1626 | test -x conftest$ac_exeext |
Martin v. Löwis | 48e14d3 | 2011-05-09 07:37:45 +0200 | [diff] [blame] | 1627 | }; then : |
| 1628 | ac_retval=0 |
| 1629 | else |
| 1630 | $as_echo "$as_me: failed program was:" >&5 |
| 1631 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1632 | |
| 1633 | ac_retval=1 |
| 1634 | fi |
| 1635 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1636 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1637 | # interfere with the next link command; also delete a directory that is |
| 1638 | # left behind by Apple's compiler. We do this before executing the actions. |
| 1639 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 1640 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Martin v. Löwis | 48e14d3 | 2011-05-09 07:37:45 +0200 | [diff] [blame] | 1641 | as_fn_set_status $ac_retval |
| 1642 | |
| 1643 | } # ac_fn_c_try_link |
| 1644 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1645 | # ac_fn_c_try_cpp LINENO |
| 1646 | # ---------------------- |
| 1647 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1648 | ac_fn_c_try_cpp () |
| 1649 | { |
| 1650 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1651 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1652 | case "(($ac_try" in |
| 1653 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1654 | *) ac_try_echo=$ac_try;; |
| 1655 | esac |
| 1656 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1657 | $as_echo "$ac_try_echo"; } >&5 |
| 1658 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1659 | ac_status=$? |
| 1660 | if test -s conftest.err; then |
| 1661 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1662 | cat conftest.er1 >&5 |
| 1663 | mv -f conftest.er1 conftest.err |
| 1664 | fi |
| 1665 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 1666 | test $ac_status = 0; } > conftest.i && { |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1667 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 1668 | test ! -s conftest.err |
| 1669 | }; then : |
| 1670 | ac_retval=0 |
| 1671 | else |
| 1672 | $as_echo "$as_me: failed program was:" >&5 |
| 1673 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1674 | |
| 1675 | ac_retval=1 |
| 1676 | fi |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 1677 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1678 | as_fn_set_status $ac_retval |
| 1679 | |
| 1680 | } # ac_fn_c_try_cpp |
| 1681 | |
| 1682 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
| 1683 | # ------------------------------------------------------- |
| 1684 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
| 1685 | # the include files in INCLUDES and setting the cache variable VAR |
| 1686 | # accordingly. |
| 1687 | ac_fn_c_check_header_mongrel () |
| 1688 | { |
| 1689 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 1690 | if eval \${$3+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1691 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1692 | $as_echo_n "checking for $2... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 1693 | if eval \${$3+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1694 | $as_echo_n "(cached) " >&6 |
| 1695 | fi |
| 1696 | eval ac_res=\$$3 |
| 1697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1698 | $as_echo "$ac_res" >&6; } |
| 1699 | else |
| 1700 | # Is the header compilable? |
| 1701 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
| 1702 | $as_echo_n "checking $2 usability... " >&6; } |
| 1703 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1704 | /* end confdefs.h. */ |
| 1705 | $4 |
| 1706 | #include <$2> |
| 1707 | _ACEOF |
| 1708 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1709 | ac_header_compiler=yes |
| 1710 | else |
| 1711 | ac_header_compiler=no |
| 1712 | fi |
| 1713 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
| 1715 | $as_echo "$ac_header_compiler" >&6; } |
| 1716 | |
| 1717 | # Is the header present? |
| 1718 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
| 1719 | $as_echo_n "checking $2 presence... " >&6; } |
| 1720 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1721 | /* end confdefs.h. */ |
| 1722 | #include <$2> |
| 1723 | _ACEOF |
| 1724 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 1725 | ac_header_preproc=yes |
| 1726 | else |
| 1727 | ac_header_preproc=no |
| 1728 | fi |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 1729 | rm -f conftest.err conftest.i conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
| 1731 | $as_echo "$ac_header_preproc" >&6; } |
| 1732 | |
| 1733 | # So? What about this header? |
| 1734 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
| 1735 | yes:no: ) |
| 1736 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 1737 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 1738 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1739 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1740 | ;; |
| 1741 | no:yes:* ) |
| 1742 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
| 1743 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
| 1744 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
| 1745 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
| 1746 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
| 1747 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
| 1748 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
| 1749 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
| 1750 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1751 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 1752 | ( $as_echo "## -------------------------------------- ## |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1753 | ## Report this to http://bugs.python.org/ ## |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 1754 | ## -------------------------------------- ##" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1755 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 1756 | ;; |
| 1757 | esac |
| 1758 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1759 | $as_echo_n "checking for $2... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 1760 | if eval \${$3+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1761 | $as_echo_n "(cached) " >&6 |
| 1762 | else |
| 1763 | eval "$3=\$ac_header_compiler" |
| 1764 | fi |
| 1765 | eval ac_res=\$$3 |
| 1766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1767 | $as_echo "$ac_res" >&6; } |
| 1768 | fi |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 1769 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1770 | |
| 1771 | } # ac_fn_c_check_header_mongrel |
| 1772 | |
| 1773 | # ac_fn_c_try_run LINENO |
| 1774 | # ---------------------- |
| 1775 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
| 1776 | # that executables *can* be run. |
| 1777 | ac_fn_c_try_run () |
| 1778 | { |
| 1779 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1780 | if { { ac_try="$ac_link" |
| 1781 | case "(($ac_try" in |
| 1782 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1783 | *) ac_try_echo=$ac_try;; |
| 1784 | esac |
| 1785 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1786 | $as_echo "$ac_try_echo"; } >&5 |
| 1787 | (eval "$ac_link") 2>&5 |
| 1788 | ac_status=$? |
| 1789 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1790 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 1791 | { { case "(($ac_try" in |
| 1792 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1793 | *) ac_try_echo=$ac_try;; |
| 1794 | esac |
| 1795 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1796 | $as_echo "$ac_try_echo"; } >&5 |
| 1797 | (eval "$ac_try") 2>&5 |
| 1798 | ac_status=$? |
| 1799 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1800 | test $ac_status = 0; }; }; then : |
| 1801 | ac_retval=0 |
| 1802 | else |
| 1803 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 1804 | $as_echo "$as_me: failed program was:" >&5 |
| 1805 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1806 | |
| 1807 | ac_retval=$ac_status |
| 1808 | fi |
| 1809 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 1810 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1811 | as_fn_set_status $ac_retval |
| 1812 | |
| 1813 | } # ac_fn_c_try_run |
| 1814 | |
| 1815 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 1816 | # ------------------------------------------------------- |
| 1817 | # Tests whether HEADER exists and can be compiled using the include files in |
| 1818 | # INCLUDES, setting the cache variable VAR accordingly. |
| 1819 | ac_fn_c_check_header_compile () |
| 1820 | { |
| 1821 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1822 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1823 | $as_echo_n "checking for $2... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 1824 | if eval \${$3+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1825 | $as_echo_n "(cached) " >&6 |
| 1826 | else |
| 1827 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1828 | /* end confdefs.h. */ |
| 1829 | $4 |
| 1830 | #include <$2> |
| 1831 | _ACEOF |
| 1832 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1833 | eval "$3=yes" |
| 1834 | else |
| 1835 | eval "$3=no" |
| 1836 | fi |
| 1837 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1838 | fi |
| 1839 | eval ac_res=\$$3 |
| 1840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1841 | $as_echo "$ac_res" >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 1842 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1843 | |
| 1844 | } # ac_fn_c_check_header_compile |
| 1845 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1846 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
| 1847 | # ------------------------------------------- |
| 1848 | # Tests whether TYPE exists after having included INCLUDES, setting cache |
| 1849 | # variable VAR accordingly. |
| 1850 | ac_fn_c_check_type () |
| 1851 | { |
| 1852 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1853 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1854 | $as_echo_n "checking for $2... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 1855 | if eval \${$3+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1856 | $as_echo_n "(cached) " >&6 |
| 1857 | else |
| 1858 | eval "$3=no" |
| 1859 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1860 | /* end confdefs.h. */ |
| 1861 | $4 |
| 1862 | int |
| 1863 | main () |
| 1864 | { |
| 1865 | if (sizeof ($2)) |
| 1866 | return 0; |
| 1867 | ; |
| 1868 | return 0; |
| 1869 | } |
| 1870 | _ACEOF |
| 1871 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1872 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1873 | /* end confdefs.h. */ |
| 1874 | $4 |
| 1875 | int |
| 1876 | main () |
| 1877 | { |
| 1878 | if (sizeof (($2))) |
| 1879 | return 0; |
| 1880 | ; |
| 1881 | return 0; |
| 1882 | } |
| 1883 | _ACEOF |
| 1884 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1885 | |
| 1886 | else |
| 1887 | eval "$3=yes" |
| 1888 | fi |
| 1889 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1890 | fi |
| 1891 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1892 | fi |
| 1893 | eval ac_res=\$$3 |
| 1894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1895 | $as_echo "$ac_res" >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 1896 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1897 | |
| 1898 | } # ac_fn_c_check_type |
| 1899 | |
| 1900 | # ac_fn_c_find_uintX_t LINENO BITS VAR |
| 1901 | # ------------------------------------ |
| 1902 | # Finds an unsigned integer type with width BITS, setting cache variable VAR |
| 1903 | # accordingly. |
| 1904 | ac_fn_c_find_uintX_t () |
| 1905 | { |
| 1906 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1907 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 |
| 1908 | $as_echo_n "checking for uint$2_t... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 1909 | if eval \${$3+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1910 | $as_echo_n "(cached) " >&6 |
| 1911 | else |
| 1912 | eval "$3=no" |
| 1913 | # Order is important - never check a type that is potentially smaller |
| 1914 | # than half of the expected target width. |
| 1915 | for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ |
| 1916 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
| 1917 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1918 | /* end confdefs.h. */ |
| 1919 | $ac_includes_default |
| 1920 | int |
| 1921 | main () |
| 1922 | { |
| 1923 | 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] | 1924 | test_array [0] = 0; |
| 1925 | return test_array [0]; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1926 | |
| 1927 | ; |
| 1928 | return 0; |
| 1929 | } |
| 1930 | _ACEOF |
| 1931 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1932 | case $ac_type in #( |
| 1933 | uint$2_t) : |
| 1934 | eval "$3=yes" ;; #( |
| 1935 | *) : |
| 1936 | eval "$3=\$ac_type" ;; |
| 1937 | esac |
| 1938 | fi |
| 1939 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 1940 | if eval test \"x\$"$3"\" = x"no"; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1941 | |
| 1942 | else |
| 1943 | break |
| 1944 | fi |
| 1945 | done |
| 1946 | fi |
| 1947 | eval ac_res=\$$3 |
| 1948 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1949 | $as_echo "$ac_res" >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 1950 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1951 | |
| 1952 | } # ac_fn_c_find_uintX_t |
| 1953 | |
| 1954 | # ac_fn_c_find_intX_t LINENO BITS VAR |
| 1955 | # ----------------------------------- |
| 1956 | # Finds a signed integer type with width BITS, setting cache variable VAR |
| 1957 | # accordingly. |
| 1958 | ac_fn_c_find_intX_t () |
| 1959 | { |
| 1960 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1961 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 |
| 1962 | $as_echo_n "checking for int$2_t... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 1963 | if eval \${$3+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1964 | $as_echo_n "(cached) " >&6 |
| 1965 | else |
| 1966 | eval "$3=no" |
| 1967 | # Order is important - never check a type that is potentially smaller |
| 1968 | # than half of the expected target width. |
| 1969 | for ac_type in int$2_t 'int' 'long int' \ |
| 1970 | 'long long int' 'short int' 'signed char'; do |
| 1971 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1972 | /* end confdefs.h. */ |
| 1973 | $ac_includes_default |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 1974 | enum { N = $2 / 2 - 1 }; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1975 | int |
| 1976 | main () |
| 1977 | { |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 1978 | 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] | 1979 | test_array [0] = 0; |
| 1980 | return test_array [0]; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1981 | |
| 1982 | ; |
| 1983 | return 0; |
| 1984 | } |
| 1985 | _ACEOF |
| 1986 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1987 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1988 | /* end confdefs.h. */ |
| 1989 | $ac_includes_default |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 1990 | enum { N = $2 / 2 - 1 }; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1991 | int |
| 1992 | main () |
| 1993 | { |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 1994 | 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] | 1995 | < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 1996 | test_array [0] = 0; |
| 1997 | return test_array [0]; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1998 | |
| 1999 | ; |
| 2000 | return 0; |
| 2001 | } |
| 2002 | _ACEOF |
| 2003 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2004 | |
| 2005 | else |
| 2006 | case $ac_type in #( |
| 2007 | int$2_t) : |
| 2008 | eval "$3=yes" ;; #( |
| 2009 | *) : |
| 2010 | eval "$3=\$ac_type" ;; |
| 2011 | esac |
| 2012 | fi |
| 2013 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2014 | fi |
| 2015 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 2016 | if eval test \"x\$"$3"\" = x"no"; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2017 | |
| 2018 | else |
| 2019 | break |
| 2020 | fi |
| 2021 | done |
| 2022 | fi |
| 2023 | eval ac_res=\$$3 |
| 2024 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2025 | $as_echo "$ac_res" >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 2026 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2027 | |
| 2028 | } # ac_fn_c_find_intX_t |
| 2029 | |
| 2030 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
| 2031 | # -------------------------------------------- |
| 2032 | # Tries to find the compile-time value of EXPR in a program that includes |
| 2033 | # INCLUDES, setting VAR accordingly. Returns whether the value could be |
| 2034 | # computed |
| 2035 | ac_fn_c_compute_int () |
| 2036 | { |
| 2037 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2038 | if test "$cross_compiling" = yes; then |
| 2039 | # Depending upon the size, compute the lo and hi bounds. |
| 2040 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2041 | /* end confdefs.h. */ |
| 2042 | $4 |
| 2043 | int |
| 2044 | main () |
| 2045 | { |
| 2046 | static int test_array [1 - 2 * !(($2) >= 0)]; |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2047 | test_array [0] = 0; |
| 2048 | return test_array [0]; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2049 | |
| 2050 | ; |
| 2051 | return 0; |
| 2052 | } |
| 2053 | _ACEOF |
| 2054 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2055 | ac_lo=0 ac_mid=0 |
| 2056 | while :; do |
| 2057 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2058 | /* end confdefs.h. */ |
| 2059 | $4 |
| 2060 | int |
| 2061 | main () |
| 2062 | { |
| 2063 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2064 | test_array [0] = 0; |
| 2065 | return test_array [0]; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2066 | |
| 2067 | ; |
| 2068 | return 0; |
| 2069 | } |
| 2070 | _ACEOF |
| 2071 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2072 | ac_hi=$ac_mid; break |
| 2073 | else |
| 2074 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val |
| 2075 | if test $ac_lo -le $ac_mid; then |
| 2076 | ac_lo= ac_hi= |
| 2077 | break |
| 2078 | fi |
| 2079 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val |
| 2080 | fi |
| 2081 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2082 | done |
| 2083 | else |
| 2084 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2085 | /* end confdefs.h. */ |
| 2086 | $4 |
| 2087 | int |
| 2088 | main () |
| 2089 | { |
| 2090 | static int test_array [1 - 2 * !(($2) < 0)]; |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2091 | test_array [0] = 0; |
| 2092 | return test_array [0]; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2093 | |
| 2094 | ; |
| 2095 | return 0; |
| 2096 | } |
| 2097 | _ACEOF |
| 2098 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2099 | ac_hi=-1 ac_mid=-1 |
| 2100 | while :; do |
| 2101 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2102 | /* end confdefs.h. */ |
| 2103 | $4 |
| 2104 | int |
| 2105 | main () |
| 2106 | { |
| 2107 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2108 | test_array [0] = 0; |
| 2109 | return test_array [0]; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2110 | |
| 2111 | ; |
| 2112 | return 0; |
| 2113 | } |
| 2114 | _ACEOF |
| 2115 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2116 | ac_lo=$ac_mid; break |
| 2117 | else |
| 2118 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val |
| 2119 | if test $ac_mid -le $ac_hi; then |
| 2120 | ac_lo= ac_hi= |
| 2121 | break |
| 2122 | fi |
| 2123 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val |
| 2124 | fi |
| 2125 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2126 | done |
| 2127 | else |
| 2128 | ac_lo= ac_hi= |
| 2129 | fi |
| 2130 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2131 | fi |
| 2132 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2133 | # Binary search between lo and hi bounds. |
| 2134 | while test "x$ac_lo" != "x$ac_hi"; do |
| 2135 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val |
| 2136 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2137 | /* end confdefs.h. */ |
| 2138 | $4 |
| 2139 | int |
| 2140 | main () |
| 2141 | { |
| 2142 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2143 | test_array [0] = 0; |
| 2144 | return test_array [0]; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2145 | |
| 2146 | ; |
| 2147 | return 0; |
| 2148 | } |
| 2149 | _ACEOF |
| 2150 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2151 | ac_hi=$ac_mid |
| 2152 | else |
| 2153 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val |
| 2154 | fi |
| 2155 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2156 | done |
| 2157 | case $ac_lo in #(( |
| 2158 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; |
| 2159 | '') ac_retval=1 ;; |
| 2160 | esac |
| 2161 | else |
| 2162 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2163 | /* end confdefs.h. */ |
| 2164 | $4 |
| 2165 | static long int longval () { return $2; } |
| 2166 | static unsigned long int ulongval () { return $2; } |
| 2167 | #include <stdio.h> |
| 2168 | #include <stdlib.h> |
| 2169 | int |
| 2170 | main () |
| 2171 | { |
| 2172 | |
| 2173 | FILE *f = fopen ("conftest.val", "w"); |
| 2174 | if (! f) |
| 2175 | return 1; |
| 2176 | if (($2) < 0) |
| 2177 | { |
| 2178 | long int i = longval (); |
| 2179 | if (i != ($2)) |
| 2180 | return 1; |
| 2181 | fprintf (f, "%ld", i); |
| 2182 | } |
| 2183 | else |
| 2184 | { |
| 2185 | unsigned long int i = ulongval (); |
| 2186 | if (i != ($2)) |
| 2187 | return 1; |
| 2188 | fprintf (f, "%lu", i); |
| 2189 | } |
| 2190 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 2191 | on some platforms. */ |
| 2192 | return ferror (f) || fclose (f) != 0; |
| 2193 | |
| 2194 | ; |
| 2195 | return 0; |
| 2196 | } |
| 2197 | _ACEOF |
| 2198 | if ac_fn_c_try_run "$LINENO"; then : |
| 2199 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 |
| 2200 | else |
| 2201 | ac_retval=1 |
| 2202 | fi |
| 2203 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 2204 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2205 | rm -f conftest.val |
| 2206 | |
| 2207 | fi |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 2208 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2209 | as_fn_set_status $ac_retval |
| 2210 | |
| 2211 | } # ac_fn_c_compute_int |
| 2212 | |
| 2213 | # ac_fn_c_check_func LINENO FUNC VAR |
| 2214 | # ---------------------------------- |
| 2215 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 2216 | ac_fn_c_check_func () |
| 2217 | { |
| 2218 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2219 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2220 | $as_echo_n "checking for $2... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 2221 | if eval \${$3+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2222 | $as_echo_n "(cached) " >&6 |
| 2223 | else |
| 2224 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2225 | /* end confdefs.h. */ |
| 2226 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 2227 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 2228 | #define $2 innocuous_$2 |
| 2229 | |
| 2230 | /* System header to define __stub macros and hopefully few prototypes, |
| 2231 | which can conflict with char $2 (); below. |
| 2232 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2233 | <limits.h> exists even on freestanding compilers. */ |
| 2234 | |
| 2235 | #ifdef __STDC__ |
| 2236 | # include <limits.h> |
| 2237 | #else |
| 2238 | # include <assert.h> |
| 2239 | #endif |
| 2240 | |
| 2241 | #undef $2 |
| 2242 | |
| 2243 | /* Override any GCC internal prototype to avoid an error. |
| 2244 | Use char because int might match the return type of a GCC |
| 2245 | builtin and then its argument prototype would still apply. */ |
| 2246 | #ifdef __cplusplus |
| 2247 | extern "C" |
| 2248 | #endif |
| 2249 | char $2 (); |
| 2250 | /* The GNU C library defines this for functions which it implements |
| 2251 | to always fail with ENOSYS. Some functions are actually named |
| 2252 | something starting with __ and the normal name is an alias. */ |
| 2253 | #if defined __stub_$2 || defined __stub___$2 |
| 2254 | choke me |
| 2255 | #endif |
| 2256 | |
| 2257 | int |
| 2258 | main () |
| 2259 | { |
| 2260 | return $2 (); |
| 2261 | ; |
| 2262 | return 0; |
| 2263 | } |
| 2264 | _ACEOF |
| 2265 | if ac_fn_c_try_link "$LINENO"; then : |
| 2266 | eval "$3=yes" |
| 2267 | else |
| 2268 | eval "$3=no" |
| 2269 | fi |
| 2270 | rm -f core conftest.err conftest.$ac_objext \ |
| 2271 | conftest$ac_exeext conftest.$ac_ext |
| 2272 | fi |
| 2273 | eval ac_res=\$$3 |
| 2274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2275 | $as_echo "$ac_res" >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 2276 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2277 | |
| 2278 | } # ac_fn_c_check_func |
| 2279 | |
Gregory P. Smith | df300d5 | 2012-01-21 18:20:15 -0800 | [diff] [blame] | 2280 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES |
| 2281 | # --------------------------------------------- |
| 2282 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR |
| 2283 | # accordingly. |
| 2284 | ac_fn_c_check_decl () |
| 2285 | { |
| 2286 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2287 | as_decl_name=`echo $2|sed 's/ *(.*//'` |
| 2288 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` |
| 2289 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 |
| 2290 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } |
| 2291 | if eval \${$3+:} false; then : |
| 2292 | $as_echo_n "(cached) " >&6 |
| 2293 | else |
| 2294 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2295 | /* end confdefs.h. */ |
| 2296 | $4 |
| 2297 | int |
| 2298 | main () |
| 2299 | { |
| 2300 | #ifndef $as_decl_name |
| 2301 | #ifdef __cplusplus |
| 2302 | (void) $as_decl_use; |
| 2303 | #else |
| 2304 | (void) $as_decl_name; |
| 2305 | #endif |
| 2306 | #endif |
| 2307 | |
| 2308 | ; |
| 2309 | return 0; |
| 2310 | } |
| 2311 | _ACEOF |
| 2312 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2313 | eval "$3=yes" |
| 2314 | else |
| 2315 | eval "$3=no" |
| 2316 | fi |
| 2317 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2318 | fi |
| 2319 | eval ac_res=\$$3 |
| 2320 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2321 | $as_echo "$ac_res" >&6; } |
| 2322 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2323 | |
| 2324 | } # ac_fn_c_check_decl |
| 2325 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2326 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
| 2327 | # ---------------------------------------------------- |
| 2328 | # Tries to find if the field MEMBER exists in type AGGR, after including |
| 2329 | # INCLUDES, setting cache variable VAR accordingly. |
| 2330 | ac_fn_c_check_member () |
| 2331 | { |
| 2332 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2333 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 |
| 2334 | $as_echo_n "checking for $2.$3... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 2335 | if eval \${$4+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2336 | $as_echo_n "(cached) " >&6 |
| 2337 | else |
| 2338 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2339 | /* end confdefs.h. */ |
| 2340 | $5 |
| 2341 | int |
| 2342 | main () |
| 2343 | { |
| 2344 | static $2 ac_aggr; |
| 2345 | if (ac_aggr.$3) |
| 2346 | return 0; |
| 2347 | ; |
| 2348 | return 0; |
| 2349 | } |
| 2350 | _ACEOF |
| 2351 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2352 | eval "$4=yes" |
| 2353 | else |
| 2354 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2355 | /* end confdefs.h. */ |
| 2356 | $5 |
| 2357 | int |
| 2358 | main () |
| 2359 | { |
| 2360 | static $2 ac_aggr; |
| 2361 | if (sizeof ac_aggr.$3) |
| 2362 | return 0; |
| 2363 | ; |
| 2364 | return 0; |
| 2365 | } |
| 2366 | _ACEOF |
| 2367 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2368 | eval "$4=yes" |
| 2369 | else |
| 2370 | eval "$4=no" |
| 2371 | fi |
| 2372 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2373 | fi |
| 2374 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2375 | fi |
| 2376 | eval ac_res=\$$4 |
| 2377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2378 | $as_echo "$ac_res" >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 2379 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2380 | |
| 2381 | } # ac_fn_c_check_member |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2382 | cat >config.log <<_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2383 | This file contains any messages produced by compilers while |
| 2384 | running configure, to aid debugging if configure makes a mistake. |
| 2385 | |
Benjamin Peterson | 46ea4f7 | 2009-06-27 21:40:27 +0000 | [diff] [blame] | 2386 | It was created by python $as_me 3.2, which was |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2387 | generated by GNU Autoconf 2.69. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2388 | |
| 2389 | $ $0 $@ |
| 2390 | |
| 2391 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2392 | exec 5>>config.log |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2393 | { |
| 2394 | cat <<_ASUNAME |
| 2395 | ## --------- ## |
| 2396 | ## Platform. ## |
| 2397 | ## --------- ## |
| 2398 | |
| 2399 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 2400 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 2401 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 2402 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 2403 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 2404 | |
| 2405 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 2406 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 2407 | |
| 2408 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 2409 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 2410 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2411 | /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] | 2412 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 2413 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 2414 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 2415 | |
| 2416 | _ASUNAME |
| 2417 | |
| 2418 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2419 | for as_dir in $PATH |
| 2420 | do |
| 2421 | IFS=$as_save_IFS |
| 2422 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2423 | $as_echo "PATH: $as_dir" |
| 2424 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2425 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2426 | |
| 2427 | } >&5 |
| 2428 | |
| 2429 | cat >&5 <<_ACEOF |
| 2430 | |
| 2431 | |
| 2432 | ## ----------- ## |
| 2433 | ## Core tests. ## |
| 2434 | ## ----------- ## |
| 2435 | |
| 2436 | _ACEOF |
| 2437 | |
| 2438 | |
| 2439 | # Keep a trace of the command line. |
| 2440 | # 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] | 2441 | # 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] | 2442 | # Also quote any args containing shell meta-characters. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2443 | # Make two passes to allow for proper duplicate-argument suppression. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2444 | ac_configure_args= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2445 | ac_configure_args0= |
| 2446 | ac_configure_args1= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2447 | ac_must_keep_next=false |
| 2448 | for ac_pass in 1 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2449 | do |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2450 | for ac_arg |
| 2451 | do |
| 2452 | case $ac_arg in |
| 2453 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 2454 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 2455 | | -silent | --silent | --silen | --sile | --sil) |
| 2456 | continue ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2457 | *\'*) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2458 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2459 | esac |
| 2460 | case $ac_pass in |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2461 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2462 | 2) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2463 | as_fn_append ac_configure_args1 " '$ac_arg'" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2464 | if test $ac_must_keep_next = true; then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2465 | ac_must_keep_next=false # Got value, back to normal. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2466 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2467 | case $ac_arg in |
| 2468 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 2469 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 2470 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 2471 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 2472 | case "$ac_configure_args0 " in |
| 2473 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 2474 | esac |
| 2475 | ;; |
| 2476 | -* ) ac_must_keep_next=true ;; |
| 2477 | esac |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2478 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2479 | as_fn_append ac_configure_args " '$ac_arg'" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2480 | ;; |
| 2481 | esac |
| 2482 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2483 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2484 | { ac_configure_args0=; unset ac_configure_args0;} |
| 2485 | { ac_configure_args1=; unset ac_configure_args1;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2486 | |
| 2487 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 2488 | # config.log. We remove comments because anyway the quotes in there |
| 2489 | # would cause problems or look ugly. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2490 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 2491 | # 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] | 2492 | trap 'exit_status=$? |
| 2493 | # Save into config.log some information that might help in debugging. |
| 2494 | { |
| 2495 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2496 | |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 2497 | $as_echo "## ---------------- ## |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2498 | ## Cache variables. ## |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 2499 | ## ---------------- ##" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2500 | echo |
| 2501 | # The following way of writing the cache mishandles newlines in values, |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2502 | ( |
| 2503 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 2504 | eval ac_val=\$$ac_var |
| 2505 | case $ac_val in #( |
| 2506 | *${as_nl}*) |
| 2507 | case $ac_var in #( |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2508 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 2509 | $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] | 2510 | esac |
| 2511 | case $ac_var in #( |
| 2512 | _ | IFS | as_nl) ;; #( |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2513 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 2514 | *) { eval $ac_var=; unset $ac_var;} ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2515 | esac ;; |
| 2516 | esac |
| 2517 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2518 | (set) 2>&1 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2519 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 2520 | *${as_nl}ac_space=\ *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2521 | sed -n \ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2522 | "s/'\''/'\''\\\\'\'''\''/g; |
| 2523 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 2524 | ;; #( |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 2525 | *) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2526 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 2527 | ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2528 | esac | |
| 2529 | sort |
| 2530 | ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2531 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2532 | |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 2533 | $as_echo "## ----------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2534 | ## Output variables. ## |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 2535 | ## ----------------- ##" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2536 | echo |
| 2537 | for ac_var in $ac_subst_vars |
| 2538 | do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2539 | eval ac_val=\$$ac_var |
| 2540 | case $ac_val in |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2541 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2542 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2543 | $as_echo "$ac_var='\''$ac_val'\''" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2544 | done | sort |
| 2545 | echo |
| 2546 | |
| 2547 | if test -n "$ac_subst_files"; then |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 2548 | $as_echo "## ------------------- ## |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2549 | ## File substitutions. ## |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 2550 | ## ------------------- ##" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2551 | echo |
| 2552 | for ac_var in $ac_subst_files |
| 2553 | do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2554 | eval ac_val=\$$ac_var |
| 2555 | case $ac_val in |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2556 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2557 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2558 | $as_echo "$ac_var='\''$ac_val'\''" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2559 | done | sort |
| 2560 | echo |
| 2561 | fi |
| 2562 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2563 | if test -s confdefs.h; then |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 2564 | $as_echo "## ----------- ## |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2565 | ## confdefs.h. ## |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 2566 | ## ----------- ##" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2567 | echo |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2568 | cat confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2569 | echo |
| 2570 | fi |
| 2571 | test "$ac_signal" != 0 && |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2572 | $as_echo "$as_me: caught signal $ac_signal" |
| 2573 | $as_echo "$as_me: exit $exit_status" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2574 | } >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2575 | rm -f core *.core core.conftest.* && |
| 2576 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2577 | exit $exit_status |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2578 | ' 0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2579 | for ac_signal in 1 2 13 15; do |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2580 | 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] | 2581 | done |
| 2582 | ac_signal=0 |
| 2583 | |
| 2584 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2585 | rm -f -r conftest* confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2586 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2587 | $as_echo "/* confdefs.h */" > confdefs.h |
| 2588 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2589 | # Predefined preprocessor variables. |
| 2590 | |
| 2591 | cat >>confdefs.h <<_ACEOF |
| 2592 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 2593 | _ACEOF |
| 2594 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2595 | cat >>confdefs.h <<_ACEOF |
| 2596 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 2597 | _ACEOF |
| 2598 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2599 | cat >>confdefs.h <<_ACEOF |
| 2600 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 2601 | _ACEOF |
| 2602 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2603 | cat >>confdefs.h <<_ACEOF |
| 2604 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 2605 | _ACEOF |
| 2606 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2607 | cat >>confdefs.h <<_ACEOF |
| 2608 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 2609 | _ACEOF |
| 2610 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2611 | cat >>confdefs.h <<_ACEOF |
| 2612 | #define PACKAGE_URL "$PACKAGE_URL" |
| 2613 | _ACEOF |
| 2614 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2615 | |
| 2616 | # 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] | 2617 | # Prefer an explicitly selected file to automatically selected ones. |
| 2618 | ac_site_file1=NONE |
| 2619 | ac_site_file2=NONE |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2620 | if test -n "$CONFIG_SITE"; then |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 2621 | # We do not want a PATH search for config.site. |
| 2622 | case $CONFIG_SITE in #(( |
| 2623 | -*) ac_site_file1=./$CONFIG_SITE;; |
| 2624 | */*) ac_site_file1=$CONFIG_SITE;; |
| 2625 | *) ac_site_file1=./$CONFIG_SITE;; |
| 2626 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2627 | elif test "x$prefix" != xNONE; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2628 | ac_site_file1=$prefix/share/config.site |
| 2629 | ac_site_file2=$prefix/etc/config.site |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2630 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2631 | ac_site_file1=$ac_default_prefix/share/config.site |
| 2632 | ac_site_file2=$ac_default_prefix/etc/config.site |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2633 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2634 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2635 | do |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2636 | test "x$ac_site_file" = xNONE && continue |
| 2637 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
| 2638 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
| 2639 | $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] | 2640 | sed 's/^/| /' "$ac_site_file" >&5 |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 2641 | . "$ac_site_file" \ |
| 2642 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2643 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2644 | as_fn_error $? "failed to load site script $ac_site_file |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 2645 | See \`config.log' for more details" "$LINENO" 5; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2646 | fi |
| 2647 | done |
| 2648 | |
| 2649 | if test -r "$cache_file"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2650 | # Some versions of bash will fail to source /dev/null (special files |
| 2651 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 2652 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
| 2653 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
| 2654 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2655 | case $cache_file in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2656 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 2657 | *) . "./$cache_file";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2658 | esac |
| 2659 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2660 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2661 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
| 2662 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2663 | >$cache_file |
| 2664 | fi |
| 2665 | |
| 2666 | # Check that the precious variables saved in the cache have kept the same |
| 2667 | # value. |
| 2668 | ac_cache_corrupted=false |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2669 | for ac_var in $ac_precious_vars; do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2670 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 2671 | eval ac_new_set=\$ac_env_${ac_var}_set |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2672 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 2673 | eval ac_new_val=\$ac_env_${ac_var}_value |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2674 | case $ac_old_set,$ac_new_set in |
| 2675 | set,) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2676 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 2677 | $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] | 2678 | ac_cache_corrupted=: ;; |
| 2679 | ,set) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2680 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
| 2681 | $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] | 2682 | ac_cache_corrupted=: ;; |
| 2683 | ,);; |
| 2684 | *) |
| 2685 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2686 | # differences in whitespace do not lead to failure. |
| 2687 | ac_old_val_w=`echo x $ac_old_val` |
| 2688 | ac_new_val_w=`echo x $ac_new_val` |
| 2689 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
| 2690 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
| 2691 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 2692 | ac_cache_corrupted=: |
| 2693 | else |
| 2694 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
| 2695 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 2696 | eval $ac_var=\$ac_old_val |
| 2697 | fi |
| 2698 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
| 2699 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
| 2700 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
| 2701 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2702 | fi;; |
| 2703 | esac |
| 2704 | # Pass precious variables to config.status. |
| 2705 | if test "$ac_new_set" = set; then |
| 2706 | case $ac_new_val in |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2707 | *\'*) 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] | 2708 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 2709 | esac |
| 2710 | case " $ac_configure_args " in |
| 2711 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2712 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2713 | esac |
| 2714 | fi |
| 2715 | done |
| 2716 | if $ac_cache_corrupted; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2717 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2718 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2719 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
| 2720 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 2721 | 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] | 2722 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2723 | ## -------------------- ## |
| 2724 | ## Main body of script. ## |
| 2725 | ## -------------------- ## |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2726 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2727 | ac_ext=c |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2728 | ac_cpp='$CPP $CPPFLAGS' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2729 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2730 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2731 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2732 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2733 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2734 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2735 | ac_config_headers="$ac_config_headers pyconfig.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2736 | |
| 2737 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2738 | |
Benjamin Peterson | d23f822 | 2009-04-05 19:13:16 +0000 | [diff] [blame] | 2739 | if test "$prefix" != "/"; then |
| 2740 | prefix=`echo "$prefix" | sed -e 's/\/$//g'` |
| 2741 | fi |
| 2742 | |
| 2743 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2744 | |
| 2745 | |
Martin v. Löwis | 8316feb | 2003-06-14 07:48:07 +0000 | [diff] [blame] | 2746 | # We don't use PACKAGE_ variables, and they cause conflicts |
| 2747 | # with other autoconf-based packages that include Python.h |
| 2748 | grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new |
| 2749 | rm confdefs.h |
| 2750 | mv confdefs.h.new confdefs.h |
| 2751 | |
Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 2752 | |
Benjamin Peterson | 46ea4f7 | 2009-06-27 21:40:27 +0000 | [diff] [blame] | 2753 | VERSION=3.2 |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 2754 | |
Benjamin Peterson | d7f73e9 | 2010-09-05 00:09:07 +0000 | [diff] [blame] | 2755 | # Version number of Python's own shared library file. |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 2756 | |
| 2757 | SOVERSION=1.0 |
| 2758 | |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 2759 | # The later defininition of _XOPEN_SOURCE disables certain features |
| 2760 | # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone). |
| 2761 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2762 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 2763 | |
| 2764 | |
Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 2765 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 2766 | # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable |
| 2767 | # them. |
| 2768 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2769 | $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h |
Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 2770 | |
| 2771 | |
Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 2772 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 2773 | # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable |
| 2774 | # them. |
| 2775 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2776 | $as_echo "#define __BSD_VISIBLE 1" >>confdefs.h |
Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 2777 | |
| 2778 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 2779 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 2780 | # u_int on Irix 5.3. Defining _BSD_TYPES brings it back. |
| 2781 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2782 | $as_echo "#define _BSD_TYPES 1" >>confdefs.h |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 2783 | |
| 2784 | |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 2785 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 2786 | # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable |
| 2787 | # them. |
| 2788 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2789 | $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 2790 | |
| 2791 | |
| 2792 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2793 | define_xopen_source=yes |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 2794 | |
Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 +0000 | [diff] [blame] | 2795 | # Arguments passed to configure. |
| 2796 | |
| 2797 | CONFIG_ARGS="$ac_configure_args" |
| 2798 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2799 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-universalsdk" >&5 |
| 2800 | $as_echo_n "checking for --enable-universalsdk... " >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2801 | # Check whether --enable-universalsdk was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2802 | if test "${enable_universalsdk+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2803 | enableval=$enable_universalsdk; |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2804 | case $enableval in |
| 2805 | yes) |
| 2806 | enableval=/Developer/SDKs/MacOSX10.4u.sdk |
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 2807 | if test ! -d "${enableval}" |
| 2808 | then |
| 2809 | enableval=/ |
| 2810 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2811 | ;; |
| 2812 | esac |
| 2813 | case $enableval in |
| 2814 | no) |
| 2815 | UNIVERSALSDK= |
| 2816 | enable_universalsdk= |
| 2817 | ;; |
| 2818 | *) |
| 2819 | UNIVERSALSDK=$enableval |
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 2820 | if test ! -d "${UNIVERSALSDK}" |
| 2821 | then |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 2822 | as_fn_error $? "--enable-universalsdk specifies non-existing SDK: ${UNIVERSALSDK}" "$LINENO" 5 |
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 2823 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2824 | ;; |
| 2825 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2826 | |
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 2827 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2828 | else |
| 2829 | |
| 2830 | UNIVERSALSDK= |
| 2831 | enable_universalsdk= |
| 2832 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2833 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2834 | |
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 2835 | if test -n "${UNIVERSALSDK}" |
| 2836 | then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSALSDK}" >&5 |
| 2838 | $as_echo "${UNIVERSALSDK}" >&6; } |
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 2839 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2841 | $as_echo "no" >&6; } |
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 2842 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2843 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2844 | |
Benjamin Peterson | 6794aa3 | 2008-07-16 20:33:37 +0000 | [diff] [blame] | 2845 | |
| 2846 | |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 2847 | UNIVERSAL_ARCHS="32-bit" |
Ronald Oussoren | 6f6c562 | 2009-12-24 14:03:19 +0000 | [diff] [blame] | 2848 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2849 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-universal-archs" >&5 |
| 2850 | $as_echo_n "checking for --with-universal-archs... " >&6; } |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 2851 | |
| 2852 | # Check whether --with-universal-archs was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2853 | if test "${with_universal_archs+set}" = set; then : |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 2854 | withval=$with_universal_archs; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 |
| 2856 | $as_echo "$withval" >&6; } |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 2857 | UNIVERSAL_ARCHS="$withval" |
| 2858 | |
| 2859 | else |
| 2860 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: 32-bit" >&5 |
| 2862 | $as_echo "32-bit" >&6; } |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 2863 | |
| 2864 | fi |
| 2865 | |
| 2866 | |
| 2867 | |
| 2868 | |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 2869 | |
| 2870 | # Check whether --with-framework-name was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2871 | if test "${with_framework_name+set}" = set; then : |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 2872 | withval=$with_framework_name; |
| 2873 | PYTHONFRAMEWORK=${withval} |
| 2874 | PYTHONFRAMEWORKDIR=${withval}.framework |
| 2875 | PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'` |
| 2876 | |
| 2877 | else |
| 2878 | |
| 2879 | PYTHONFRAMEWORK=Python |
| 2880 | PYTHONFRAMEWORKDIR=Python.framework |
| 2881 | PYTHONFRAMEWORKIDENTIFIER=org.python.python |
| 2882 | |
| 2883 | fi |
| 2884 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2885 | # Check whether --enable-framework was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2886 | if test "${enable_framework+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2887 | enableval=$enable_framework; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2888 | case $enableval in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2889 | yes) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2890 | enableval=/Library/Frameworks |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2891 | esac |
| 2892 | case $enableval in |
| 2893 | no) |
| 2894 | PYTHONFRAMEWORK= |
| 2895 | PYTHONFRAMEWORKDIR=no-framework |
| 2896 | PYTHONFRAMEWORKPREFIX= |
| 2897 | PYTHONFRAMEWORKINSTALLDIR= |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2898 | FRAMEWORKINSTALLFIRST= |
| 2899 | FRAMEWORKINSTALLLAST= |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 2900 | FRAMEWORKALTINSTALLFIRST= |
| 2901 | FRAMEWORKALTINSTALLLAST= |
| 2902 | if test "x${prefix}" = "xNONE"; then |
| 2903 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
| 2904 | else |
| 2905 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
| 2906 | fi |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2907 | enable_framework= |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2908 | ;; |
| 2909 | *) |
Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 2910 | PYTHONFRAMEWORKPREFIX="${enableval}" |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2911 | PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2912 | FRAMEWORKINSTALLFIRST="frameworkinstallstructure" |
Ronald Oussoren | f6ccbf6 | 2009-06-02 10:55:56 +0000 | [diff] [blame] | 2913 | FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure " |
Ronald Oussoren | 6f6c562 | 2009-12-24 14:03:19 +0000 | [diff] [blame] | 2914 | FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools" |
| 2915 | FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools" |
Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 2916 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 2917 | |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 2918 | if test "x${prefix}" = "xNONE" ; then |
| 2919 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 2920 | |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 2921 | else |
| 2922 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
| 2923 | fi |
Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 2924 | |
| 2925 | case "${enableval}" in |
| 2926 | /System*) |
| 2927 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" |
| 2928 | if test "${prefix}" = "NONE" ; then |
| 2929 | # See below |
| 2930 | FRAMEWORKUNIXTOOLSPREFIX="/usr" |
| 2931 | fi |
| 2932 | ;; |
| 2933 | |
| 2934 | /Library*) |
| 2935 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" |
| 2936 | ;; |
| 2937 | |
| 2938 | */Library/Frameworks) |
| 2939 | MDIR="`dirname "${enableval}"`" |
| 2940 | MDIR="`dirname "${MDIR}"`" |
| 2941 | FRAMEWORKINSTALLAPPSPREFIX="${MDIR}/Applications" |
| 2942 | |
| 2943 | if test "${prefix}" = "NONE"; then |
| 2944 | # User hasn't specified the |
| 2945 | # --prefix option, but wants to install |
| 2946 | # the framework in a non-default location, |
| 2947 | # ensure that the compatibility links get |
| 2948 | # installed relative to that prefix as well |
| 2949 | # instead of in /usr/local. |
| 2950 | FRAMEWORKUNIXTOOLSPREFIX="${MDIR}" |
| 2951 | fi |
| 2952 | ;; |
| 2953 | |
| 2954 | *) |
| 2955 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" |
| 2956 | ;; |
| 2957 | esac |
| 2958 | |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2959 | prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2960 | |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 2961 | # Add files for Mac specific code to the list of output |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2962 | # files: |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2963 | ac_config_files="$ac_config_files Mac/Makefile" |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2964 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2965 | ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile" |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2966 | |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 2967 | ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist" |
| 2968 | |
| 2969 | ac_config_files="$ac_config_files Mac/Resources/app/Info.plist" |
| 2970 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2971 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2972 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2973 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2974 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2975 | PYTHONFRAMEWORK= |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2976 | PYTHONFRAMEWORKDIR=no-framework |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2977 | PYTHONFRAMEWORKPREFIX= |
| 2978 | PYTHONFRAMEWORKINSTALLDIR= |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2979 | FRAMEWORKINSTALLFIRST= |
| 2980 | FRAMEWORKINSTALLLAST= |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 2981 | FRAMEWORKALTINSTALLFIRST= |
| 2982 | FRAMEWORKALTINSTALLLAST= |
| 2983 | if test "x${prefix}" = "xNONE" ; then |
| 2984 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
| 2985 | else |
| 2986 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
| 2987 | fi |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2988 | enable_framework= |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2989 | |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 2990 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2991 | fi |
| 2992 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2993 | |
| 2994 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2995 | |
| 2996 | |
| 2997 | |
| 2998 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2999 | |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3000 | |
| 3001 | |
| 3002 | |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 3003 | |
Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 3004 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3005 | ##AC_ARG_WITH(dyld, |
Matthias Klose | 2b8733f | 2010-04-25 18:34:36 +0000 | [diff] [blame] | 3006 | ## AS_HELP_STRING([--with-dyld], |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 3007 | ## [Use (OpenStep|Rhapsody) dynamic linker])) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3008 | ## |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3009 | # Set name for machine-dependent library files |
| 3010 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3011 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP" >&5 |
| 3012 | $as_echo_n "checking MACHDEP... " >&6; } |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3013 | if test -z "$MACHDEP" |
| 3014 | then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3015 | ac_sys_system=`uname -s` |
Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 3016 | if test "$ac_sys_system" = "AIX" \ |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 3017 | -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3018 | ac_sys_release=`uname -v` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3019 | else |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3020 | ac_sys_release=`uname -r` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3021 | fi |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3022 | ac_md_system=`echo $ac_sys_system | |
| 3023 | tr -d '/ ' | tr '[A-Z]' '[a-z]'` |
| 3024 | ac_md_release=`echo $ac_sys_release | |
Guido van Rossum | 67b2659 | 2001-10-20 14:21:45 +0000 | [diff] [blame] | 3025 | tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'` |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 3026 | MACHDEP="$ac_md_system$ac_md_release" |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3027 | |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 3028 | case $MACHDEP in |
Victor Stinner | 0c17d0d | 2011-08-20 14:01:05 +0200 | [diff] [blame] | 3029 | linux*) MACHDEP="linux2";; |
Andrew M. Kuchling | 5a3e4cb | 2001-07-20 19:29:04 +0000 | [diff] [blame] | 3030 | cygwin*) MACHDEP="cygwin";; |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame] | 3031 | darwin*) MACHDEP="darwin";; |
Martin v. Löwis | f332228 | 2003-07-13 09:46:13 +0000 | [diff] [blame] | 3032 | irix646) MACHDEP="irix6";; |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 3033 | '') MACHDEP="unknown";; |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3034 | esac |
| 3035 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3036 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3037 | # Some systems cannot stand _XOPEN_SOURCE being defined at all; they |
| 3038 | # disable features if it is defined, without any means to access these |
| 3039 | # features as extensions. For these systems, we skip the definition of |
| 3040 | # _XOPEN_SOURCE. Before adding a system to the list to gain access to |
| 3041 | # some feature, make sure there is no alternative way to access this |
| 3042 | # feature. Also, when using wildcards, make sure you have verified the |
| 3043 | # need for not defining _XOPEN_SOURCE on all systems matching the |
| 3044 | # wildcard, and that the wildcard does not include future systems |
| 3045 | # (which may remove their limitations). |
| 3046 | case $ac_sys_system/$ac_sys_release in |
| 3047 | # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined, |
| 3048 | # 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] | 3049 | # 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] | 3050 | # In addition, Stefan Krah confirms that issue #1244610 exists through |
| 3051 | # OpenBSD 4.6, but is fixed in 4.7. |
Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 3052 | OpenBSD/2.* | OpenBSD/3.* | OpenBSD/4.[0123456]) |
Christian Heimes | 5b5e81c | 2007-12-31 16:14:33 +0000 | [diff] [blame] | 3053 | define_xopen_source=no |
| 3054 | # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is |
| 3055 | # also defined. This can be overridden by defining _BSD_SOURCE |
| 3056 | # As this has a different meaning on Linux, only define it on OpenBSD |
| 3057 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3058 | $as_echo "#define _BSD_SOURCE 1" >>confdefs.h |
Christian Heimes | 5b5e81c | 2007-12-31 16:14:33 +0000 | [diff] [blame] | 3059 | |
| 3060 | ;; |
Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 3061 | OpenBSD/*) |
Martin v. Löwis | 7671efc | 2010-02-15 08:35:16 +0000 | [diff] [blame] | 3062 | # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is |
| 3063 | # also defined. This can be overridden by defining _BSD_SOURCE |
| 3064 | # As this has a different meaning on Linux, only define it on OpenBSD |
| 3065 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3066 | $as_echo "#define _BSD_SOURCE 1" >>confdefs.h |
Martin v. Löwis | 7671efc | 2010-02-15 08:35:16 +0000 | [diff] [blame] | 3067 | |
| 3068 | ;; |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 3069 | # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of |
| 3070 | # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by |
| 3071 | # Marc Recht |
Benjamin Peterson | f608c61 | 2008-11-16 18:33:53 +0000 | [diff] [blame] | 3072 | 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] | 3073 | define_xopen_source=no;; |
Martin v. Löwis | 1a41576 | 2010-05-28 15:44:20 +0000 | [diff] [blame] | 3074 | # From the perspective of Solaris, _XOPEN_SOURCE is not so much a |
| 3075 | # request to enable features supported by the standard as a request |
| 3076 | # to disable features not supported by the standard. The best way |
| 3077 | # for Python to use Solaris is simply to leave _XOPEN_SOURCE out |
| 3078 | # entirely and define __EXTENSIONS__ instead. |
| 3079 | SunOS/*) |
Martin v. Löwis | a9d7142 | 2003-03-28 18:43:31 +0000 | [diff] [blame] | 3080 | define_xopen_source=no;; |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 3081 | # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE, |
| 3082 | # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice. |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3083 | # Reconfirmed for 7.1.4 by Martin v. Loewis. |
Martin v. Löwis | 253d1f4 | 2004-05-07 19:14:14 +0000 | [diff] [blame] | 3084 | OpenUNIX/8.0.0| UnixWare/7.1.[0-4]) |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 3085 | define_xopen_source=no;; |
| 3086 | # 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] | 3087 | # 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] | 3088 | SCO_SV/3.2) |
Martin v. Löwis | 53e73c3 | 2003-05-05 05:13:18 +0000 | [diff] [blame] | 3089 | define_xopen_source=no;; |
Martin v. Löwis | b37509b | 2008-11-04 20:45:29 +0000 | [diff] [blame] | 3090 | # On FreeBSD 4, the math functions C89 does not cover are never defined |
| 3091 | # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them. |
| 3092 | FreeBSD/4.*) |
| 3093 | define_xopen_source=no;; |
| 3094 | # On MacOS X 10.2, a bug in ncurses.h means that it craps out if |
| 3095 | # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which |
| 3096 | # identifies itself as Darwin/7.* |
| 3097 | # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE |
| 3098 | # disables platform specific features beyond repair. |
| 3099 | # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE |
| 3100 | # has no effect, don't bother defining them |
| 3101 | Darwin/[6789].*) |
Anthony Baxter | 6169c6b | 2003-10-04 07:46:23 +0000 | [diff] [blame] | 3102 | define_xopen_source=no;; |
Ronald Oussoren | 92fb941 | 2010-03-09 06:40:19 +0000 | [diff] [blame] | 3103 | Darwin/1[0-9].*) |
Ronald Oussoren | b8f11a6 | 2010-03-08 07:02:03 +0000 | [diff] [blame] | 3104 | define_xopen_source=no;; |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 3105 | # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but |
| 3106 | # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined |
| 3107 | # 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] | 3108 | AIX/4) |
| 3109 | define_xopen_source=no;; |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 3110 | AIX/5) |
| 3111 | if test `uname -r` -eq 1; then |
| 3112 | define_xopen_source=no |
| 3113 | fi |
| 3114 | ;; |
Benjamin Peterson | de9c869 | 2008-07-01 18:23:09 +0000 | [diff] [blame] | 3115 | # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from |
| 3116 | # defining NI_NUMERICHOST. |
| 3117 | QNX/6.3.2) |
| 3118 | define_xopen_source=no |
| 3119 | ;; |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 3120 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3121 | esac |
| 3122 | |
| 3123 | if test $define_xopen_source = yes |
| 3124 | then |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3125 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3126 | $as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3127 | |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3128 | |
| 3129 | # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires |
| 3130 | # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else |
| 3131 | # several APIs are not declared. Since this is also needed in some |
| 3132 | # cases for HP-UX, we define it globally. |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3133 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3134 | $as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3135 | |
| 3136 | |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 3137 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3138 | $as_echo "#define _POSIX_C_SOURCE 200112L" >>confdefs.h |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3139 | |
| 3140 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3141 | fi |
| 3142 | |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3143 | # |
| 3144 | # SGI compilers allow the specification of the both the ABI and the |
| 3145 | # ISA on the command line. Depending on the values of these switches, |
| 3146 | # different and often incompatable code will be generated. |
| 3147 | # |
| 3148 | # The SGI_ABI variable can be used to modify the CC and LDFLAGS and |
| 3149 | # thus supply support for various ABI/ISA combinations. The MACHDEP |
| 3150 | # variable is also adjusted. |
| 3151 | # |
| 3152 | |
| 3153 | if test ! -z "$SGI_ABI" |
| 3154 | then |
| 3155 | CC="cc $SGI_ABI" |
| 3156 | LDFLAGS="$SGI_ABI $LDFLAGS" |
| 3157 | MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'` |
| 3158 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACHDEP" >&5 |
| 3160 | $as_echo "$MACHDEP" >&6; } |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3161 | |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3162 | # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET, |
| 3163 | # it may influence the way we can build extensions, so distutils |
| 3164 | # needs to check it |
| 3165 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3166 | |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3167 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET= |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3168 | EXPORT_MACOSX_DEPLOYMENT_TARGET='#' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3169 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3170 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking machine type as reported by uname -m" >&5 |
| 3171 | $as_echo_n "checking machine type as reported by uname -m... " >&6; } |
Mark Dickinson | b0e2b4c | 2008-04-26 20:48:56 +0000 | [diff] [blame] | 3172 | ac_sys_machine=`uname -m` |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sys_machine" >&5 |
| 3174 | $as_echo "$ac_sys_machine" >&6; } |
Mark Dickinson | b0e2b4c | 2008-04-26 20:48:56 +0000 | [diff] [blame] | 3175 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3176 | # checks for alternative programs |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3177 | |
| 3178 | # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just |
| 3179 | # for debug/optimization stuff. BASECFLAGS is for flags that are required |
| 3180 | # just to get things to compile and link. Users are free to override OPT |
| 3181 | # when running configure or make. The build should not break if they do. |
| 3182 | # BASECFLAGS should generally not be messed with, however. |
| 3183 | |
| 3184 | # XXX shouldn't some/most/all of this code be merged with the stuff later |
| 3185 | # on that fiddles with OPT and BASECFLAGS? |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3186 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --without-gcc" >&5 |
| 3187 | $as_echo_n "checking for --without-gcc... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3188 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3189 | # Check whether --with-gcc was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3190 | if test "${with_gcc+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3191 | withval=$with_gcc; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3192 | case $withval in |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3193 | no) CC=${CC:-cc} |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3194 | without_gcc=yes;; |
| 3195 | yes) CC=gcc |
| 3196 | without_gcc=no;; |
| 3197 | *) CC=$withval |
| 3198 | without_gcc=$withval;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3199 | esac |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3200 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3201 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3202 | case $ac_sys_system in |
Antoine Pitrou | f6350d2 | 2010-09-21 15:19:14 +0000 | [diff] [blame] | 3203 | AIX*) CC=${CC:-xlc_r} |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 3204 | without_gcc=;; |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3205 | *) without_gcc=no;; |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 3206 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3207 | fi |
| 3208 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $without_gcc" >&5 |
| 3210 | $as_echo "$without_gcc" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3211 | |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 3212 | # If the user switches compilers, we can't believe the cache |
| 3213 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" |
| 3214 | then |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 3215 | as_fn_error $? "cached CC is different -- throw away $cache_file |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3216 | (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] | 3217 | fi |
| 3218 | |
Jeffrey Yasskin | d4fcdb1 | 2010-07-09 16:30:58 +0000 | [diff] [blame] | 3219 | # Don't let AC_PROG_CC set the default CFLAGS. It normally sets -g -O2 |
| 3220 | # when the compiler supports them, but we don't always want -O2, and |
| 3221 | # we set -g later. |
| 3222 | if test -z "$CFLAGS"; then |
| 3223 | CFLAGS= |
| 3224 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3225 | ac_ext=c |
| 3226 | ac_cpp='$CPP $CPPFLAGS' |
| 3227 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3228 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3229 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3230 | if test -n "$ac_tool_prefix"; then |
| 3231 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 3232 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3233 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3234 | $as_echo_n "checking for $ac_word... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 3235 | if ${ac_cv_prog_CC+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3236 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3237 | else |
| 3238 | if test -n "$CC"; then |
| 3239 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3240 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3241 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3242 | for as_dir in $PATH |
| 3243 | do |
| 3244 | IFS=$as_save_IFS |
| 3245 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3246 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 3247 | 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] | 3248 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3249 | $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] | 3250 | break 2 |
| 3251 | fi |
| 3252 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3253 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3254 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3255 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3256 | fi |
| 3257 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3258 | CC=$ac_cv_prog_CC |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3259 | if test -n "$CC"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3260 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3261 | $as_echo "$CC" >&6; } |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3262 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3264 | $as_echo "no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3265 | fi |
| 3266 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3267 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3268 | fi |
| 3269 | if test -z "$ac_cv_prog_CC"; then |
| 3270 | ac_ct_CC=$CC |
| 3271 | # Extract the first word of "gcc", so it can be a program name with args. |
| 3272 | set dummy gcc; ac_word=$2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3273 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3274 | $as_echo_n "checking for $ac_word... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 3275 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3276 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3277 | else |
| 3278 | if test -n "$ac_ct_CC"; then |
| 3279 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3280 | else |
| 3281 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3282 | for as_dir in $PATH |
| 3283 | do |
| 3284 | IFS=$as_save_IFS |
| 3285 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3286 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 3287 | 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] | 3288 | ac_cv_prog_ac_ct_CC="gcc" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3289 | $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] | 3290 | break 2 |
| 3291 | fi |
| 3292 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3293 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3294 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3295 | |
| 3296 | fi |
| 3297 | fi |
| 3298 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3299 | if test -n "$ac_ct_CC"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3301 | $as_echo "$ac_ct_CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3302 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3304 | $as_echo "no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3305 | fi |
| 3306 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3307 | if test "x$ac_ct_CC" = x; then |
| 3308 | CC="" |
| 3309 | else |
| 3310 | case $cross_compiling:$ac_tool_warned in |
| 3311 | yes:) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3312 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3313 | $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] | 3314 | ac_tool_warned=yes ;; |
| 3315 | esac |
| 3316 | CC=$ac_ct_CC |
| 3317 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3318 | else |
| 3319 | CC="$ac_cv_prog_CC" |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3320 | fi |
| 3321 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3322 | if test -z "$CC"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3323 | if test -n "$ac_tool_prefix"; then |
| 3324 | # 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] | 3325 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3326 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3327 | $as_echo_n "checking for $ac_word... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 3328 | if ${ac_cv_prog_CC+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3329 | $as_echo_n "(cached) " >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3330 | else |
| 3331 | if test -n "$CC"; then |
| 3332 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3333 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3334 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3335 | for as_dir in $PATH |
| 3336 | do |
| 3337 | IFS=$as_save_IFS |
| 3338 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3339 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 3340 | 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] | 3341 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3342 | $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] | 3343 | break 2 |
| 3344 | fi |
| 3345 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3346 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3347 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3348 | |
| 3349 | fi |
| 3350 | fi |
| 3351 | CC=$ac_cv_prog_CC |
| 3352 | if test -n "$CC"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3354 | $as_echo "$CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3355 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3357 | $as_echo "no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3358 | fi |
| 3359 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3360 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3361 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3362 | fi |
| 3363 | if test -z "$CC"; then |
| 3364 | # Extract the first word of "cc", so it can be a program name with args. |
| 3365 | set dummy cc; ac_word=$2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3366 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3367 | $as_echo_n "checking for $ac_word... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 3368 | if ${ac_cv_prog_CC+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3369 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3370 | else |
| 3371 | if test -n "$CC"; then |
| 3372 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3373 | else |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3374 | ac_prog_rejected=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3375 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3376 | for as_dir in $PATH |
| 3377 | do |
| 3378 | IFS=$as_save_IFS |
| 3379 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3380 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 3381 | 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] | 3382 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 3383 | ac_prog_rejected=yes |
| 3384 | continue |
| 3385 | fi |
| 3386 | ac_cv_prog_CC="cc" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3387 | $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] | 3388 | break 2 |
| 3389 | fi |
| 3390 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3391 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3392 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3393 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3394 | if test $ac_prog_rejected = yes; then |
| 3395 | # We found a bogon in the path, so make sure we never use it. |
| 3396 | set dummy $ac_cv_prog_CC |
| 3397 | shift |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3398 | if test $# != 0; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3399 | # We chose a different compiler from the bogus one. |
| 3400 | # However, it has the same basename, so the bogon will be chosen |
| 3401 | # first if we set CC to just the basename; use the full file name. |
| 3402 | shift |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3403 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3404 | fi |
| 3405 | fi |
| 3406 | fi |
| 3407 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3408 | CC=$ac_cv_prog_CC |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3409 | if test -n "$CC"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3410 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3411 | $as_echo "$CC" >&6; } |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3412 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3414 | $as_echo "no" >&6; } |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3415 | fi |
| 3416 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3417 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3418 | fi |
| 3419 | if test -z "$CC"; then |
| 3420 | if test -n "$ac_tool_prefix"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3421 | for ac_prog in cl.exe |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3422 | do |
| 3423 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3424 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3425 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3426 | $as_echo_n "checking for $ac_word... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 3427 | if ${ac_cv_prog_CC+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3428 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3429 | else |
| 3430 | if test -n "$CC"; then |
| 3431 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3432 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3433 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3434 | for as_dir in $PATH |
| 3435 | do |
| 3436 | IFS=$as_save_IFS |
| 3437 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3438 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 3439 | 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] | 3440 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3441 | $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] | 3442 | break 2 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3443 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3444 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3445 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3446 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3447 | |
| 3448 | fi |
| 3449 | fi |
| 3450 | CC=$ac_cv_prog_CC |
| 3451 | if test -n "$CC"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3453 | $as_echo "$CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3454 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3456 | $as_echo "no" >&6; } |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3457 | fi |
| 3458 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3459 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3460 | test -n "$CC" && break |
| 3461 | done |
| 3462 | fi |
| 3463 | if test -z "$CC"; then |
| 3464 | ac_ct_CC=$CC |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3465 | for ac_prog in cl.exe |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3466 | do |
| 3467 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3468 | set dummy $ac_prog; ac_word=$2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3469 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3470 | $as_echo_n "checking for $ac_word... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 3471 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3472 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3473 | else |
| 3474 | if test -n "$ac_ct_CC"; then |
| 3475 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3476 | else |
| 3477 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3478 | for as_dir in $PATH |
| 3479 | do |
| 3480 | IFS=$as_save_IFS |
| 3481 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3482 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 3483 | 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] | 3484 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3485 | $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] | 3486 | break 2 |
| 3487 | fi |
| 3488 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3489 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3490 | IFS=$as_save_IFS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3491 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3492 | fi |
| 3493 | fi |
| 3494 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3495 | if test -n "$ac_ct_CC"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3497 | $as_echo "$ac_ct_CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3498 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3499 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3500 | $as_echo "no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3501 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3502 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3503 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3504 | test -n "$ac_ct_CC" && break |
| 3505 | done |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3506 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3507 | if test "x$ac_ct_CC" = x; then |
| 3508 | CC="" |
| 3509 | else |
| 3510 | case $cross_compiling:$ac_tool_warned in |
| 3511 | yes:) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3512 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3513 | $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] | 3514 | ac_tool_warned=yes ;; |
| 3515 | esac |
| 3516 | CC=$ac_ct_CC |
| 3517 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3518 | fi |
| 3519 | |
| 3520 | fi |
| 3521 | |
| 3522 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3523 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3524 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 3525 | as_fn_error $? "no acceptable C compiler found in \$PATH |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 3526 | See \`config.log' for more details" "$LINENO" 5; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3527 | |
| 3528 | # Provide some information about the compiler. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3529 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 3530 | set X $ac_compile |
| 3531 | ac_compiler=$2 |
| 3532 | for ac_option in --version -v -V -qversion; do |
| 3533 | { { ac_try="$ac_compiler $ac_option >&5" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3534 | case "(($ac_try" in |
| 3535 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3536 | *) ac_try_echo=$ac_try;; |
| 3537 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3538 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3539 | $as_echo "$ac_try_echo"; } >&5 |
| 3540 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3541 | ac_status=$? |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3542 | if test -s conftest.err; then |
| 3543 | sed '10a\ |
| 3544 | ... rest of stderr output deleted ... |
| 3545 | 10q' conftest.err >conftest.er1 |
| 3546 | cat conftest.er1 >&5 |
| 3547 | fi |
| 3548 | rm -f conftest.er1 conftest.err |
| 3549 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3550 | test $ac_status = 0; } |
| 3551 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3552 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3553 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3554 | /* end confdefs.h. */ |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3555 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3556 | int |
| 3557 | main () |
| 3558 | { |
| 3559 | |
| 3560 | ; |
| 3561 | return 0; |
| 3562 | } |
| 3563 | _ACEOF |
| 3564 | ac_clean_files_save=$ac_clean_files |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3565 | 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] | 3566 | # Try to create an executable without -o first, disregard a.out. |
| 3567 | # It will help us diagnose broken compilers, and finding out an intuition |
| 3568 | # of exeext. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3569 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 3570 | $as_echo_n "checking whether the C compiler works... " >&6; } |
| 3571 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 3572 | |
| 3573 | # The possible output files: |
| 3574 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 3575 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3576 | ac_rmfiles= |
| 3577 | for ac_file in $ac_files |
| 3578 | do |
| 3579 | case $ac_file in |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3580 | *.$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] | 3581 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 3582 | esac |
| 3583 | done |
| 3584 | rm -f $ac_rmfiles |
| 3585 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3586 | if { { ac_try="$ac_link_default" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3587 | case "(($ac_try" in |
| 3588 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3589 | *) ac_try_echo=$ac_try;; |
| 3590 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3591 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3592 | $as_echo "$ac_try_echo"; } >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3593 | (eval "$ac_link_default") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3594 | ac_status=$? |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3595 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3596 | test $ac_status = 0; }; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3597 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 3598 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 3599 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 3600 | # so that the user can short-circuit this test for compilers unknown to |
| 3601 | # Autoconf. |
| 3602 | for ac_file in $ac_files '' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3603 | do |
| 3604 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3605 | case $ac_file in |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3606 | *.$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] | 3607 | ;; |
| 3608 | [ab].out ) |
| 3609 | # We found the default executable, but exeext='' is most |
| 3610 | # certainly right. |
| 3611 | break;; |
| 3612 | *.* ) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3613 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3614 | then :; else |
| 3615 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3616 | fi |
| 3617 | # We set ac_cv_exeext here because the later test for it is not |
| 3618 | # safe: cross compilers may not add the suffix if given an `-o' |
| 3619 | # argument, so we may need to know it at that point already. |
| 3620 | # Even if this section looks crufty: it has the advantage of |
| 3621 | # actually working. |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 3622 | break;; |
| 3623 | * ) |
| 3624 | break;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3625 | esac |
| 3626 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3627 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 3628 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3629 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3630 | ac_file='' |
| 3631 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3632 | if test -z "$ac_file"; then : |
| 3633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3634 | $as_echo "no" >&6; } |
| 3635 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3636 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3637 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3638 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3639 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 3640 | as_fn_error 77 "C compiler cannot create executables |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 3641 | See \`config.log' for more details" "$LINENO" 5; } |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3642 | else |
| 3643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3644 | $as_echo "yes" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3645 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3646 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 3647 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
| 3648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 3649 | $as_echo "$ac_file" >&6; } |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 3650 | ac_exeext=$ac_cv_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 3651 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3652 | 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] | 3653 | ac_clean_files=$ac_clean_files_save |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3654 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
| 3655 | $as_echo_n "checking for suffix of executables... " >&6; } |
| 3656 | if { { ac_try="$ac_link" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3657 | case "(($ac_try" in |
| 3658 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3659 | *) ac_try_echo=$ac_try;; |
| 3660 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3661 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3662 | $as_echo "$ac_try_echo"; } >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3663 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3664 | ac_status=$? |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3665 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3666 | test $ac_status = 0; }; then : |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 3667 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 3668 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 3669 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 3670 | # `rm'. |
| 3671 | for ac_file in conftest.exe conftest conftest.*; do |
| 3672 | test -f "$ac_file" || continue |
| 3673 | case $ac_file in |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3674 | *.$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] | 3675 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3676 | break;; |
| 3677 | * ) break;; |
| 3678 | esac |
| 3679 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3680 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3681 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3682 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 3683 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 3684 | See \`config.log' for more details" "$LINENO" 5; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3685 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3686 | rm -f conftest conftest$ac_cv_exeext |
| 3687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
| 3688 | $as_echo "$ac_cv_exeext" >&6; } |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 3689 | |
| 3690 | rm -f conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3691 | EXEEXT=$ac_cv_exeext |
| 3692 | ac_exeext=$EXEEXT |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3693 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3694 | /* end confdefs.h. */ |
| 3695 | #include <stdio.h> |
| 3696 | int |
| 3697 | main () |
| 3698 | { |
| 3699 | FILE *f = fopen ("conftest.out", "w"); |
| 3700 | return ferror (f) || fclose (f) != 0; |
| 3701 | |
| 3702 | ; |
| 3703 | return 0; |
| 3704 | } |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 3705 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3706 | ac_clean_files="$ac_clean_files conftest.out" |
| 3707 | # Check that the compiler produces executables we can run. If not, either |
| 3708 | # the compiler is broken, or we cross compile. |
| 3709 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 3710 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 3711 | if test "$cross_compiling" != yes; then |
| 3712 | { { ac_try="$ac_link" |
| 3713 | case "(($ac_try" in |
| 3714 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3715 | *) ac_try_echo=$ac_try;; |
| 3716 | esac |
| 3717 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3718 | $as_echo "$ac_try_echo"; } >&5 |
| 3719 | (eval "$ac_link") 2>&5 |
| 3720 | ac_status=$? |
| 3721 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3722 | test $ac_status = 0; } |
| 3723 | if { ac_try='./conftest$ac_cv_exeext' |
| 3724 | { { case "(($ac_try" in |
| 3725 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3726 | *) ac_try_echo=$ac_try;; |
| 3727 | esac |
| 3728 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3729 | $as_echo "$ac_try_echo"; } >&5 |
| 3730 | (eval "$ac_try") 2>&5 |
| 3731 | ac_status=$? |
| 3732 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3733 | test $ac_status = 0; }; }; then |
| 3734 | cross_compiling=no |
| 3735 | else |
| 3736 | if test "$cross_compiling" = maybe; then |
| 3737 | cross_compiling=yes |
| 3738 | else |
| 3739 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3740 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 3741 | as_fn_error $? "cannot run C compiled programs. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3742 | If you meant to cross compile, use \`--host'. |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 3743 | See \`config.log' for more details" "$LINENO" 5; } |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3744 | fi |
| 3745 | fi |
| 3746 | fi |
| 3747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 3748 | $as_echo "$cross_compiling" >&6; } |
| 3749 | |
| 3750 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
| 3751 | ac_clean_files=$ac_clean_files_save |
| 3752 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
| 3753 | $as_echo_n "checking for suffix of object files... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 3754 | if ${ac_cv_objext+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3755 | $as_echo_n "(cached) " >&6 |
| 3756 | else |
| 3757 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 3758 | /* end confdefs.h. */ |
| 3759 | |
| 3760 | int |
| 3761 | main () |
| 3762 | { |
| 3763 | |
| 3764 | ; |
| 3765 | return 0; |
| 3766 | } |
| 3767 | _ACEOF |
| 3768 | rm -f conftest.o conftest.obj |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3769 | if { { ac_try="$ac_compile" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3770 | case "(($ac_try" in |
| 3771 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3772 | *) ac_try_echo=$ac_try;; |
| 3773 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3774 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3775 | $as_echo "$ac_try_echo"; } >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3776 | (eval "$ac_compile") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3777 | ac_status=$? |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3778 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3779 | test $ac_status = 0; }; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3780 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 3781 | test -f "$ac_file" || continue; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3782 | case $ac_file in |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3783 | *.$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] | 3784 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 3785 | break;; |
| 3786 | esac |
| 3787 | done |
| 3788 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3789 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3790 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3791 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3792 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3793 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 3794 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 3795 | See \`config.log' for more details" "$LINENO" 5; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3796 | fi |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 3797 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3798 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
| 3800 | $as_echo "$ac_cv_objext" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3801 | OBJEXT=$ac_cv_objext |
| 3802 | ac_objext=$OBJEXT |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3803 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
| 3804 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 3805 | if ${ac_cv_c_compiler_gnu+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3806 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3807 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3808 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3809 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3810 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3811 | int |
| 3812 | main () |
| 3813 | { |
| 3814 | #ifndef __GNUC__ |
| 3815 | choke me |
| 3816 | #endif |
| 3817 | |
| 3818 | ; |
| 3819 | return 0; |
| 3820 | } |
| 3821 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3822 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3823 | ac_compiler_gnu=yes |
| 3824 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3825 | ac_compiler_gnu=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3826 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3827 | 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] | 3828 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 3829 | |
| 3830 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 3832 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 3833 | if test $ac_compiler_gnu = yes; then |
| 3834 | GCC=yes |
| 3835 | else |
| 3836 | GCC= |
| 3837 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3838 | ac_test_CFLAGS=${CFLAGS+set} |
| 3839 | ac_save_CFLAGS=$CFLAGS |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3840 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 3841 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 3842 | if ${ac_cv_prog_cc_g+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3843 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3844 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3845 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3846 | ac_c_werror_flag=yes |
| 3847 | ac_cv_prog_cc_g=no |
| 3848 | CFLAGS="-g" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3849 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3850 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3851 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3852 | int |
| 3853 | main () |
| 3854 | { |
| 3855 | |
| 3856 | ; |
| 3857 | return 0; |
| 3858 | } |
| 3859 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3860 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3861 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3862 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3863 | CFLAGS="" |
| 3864 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3865 | /* end confdefs.h. */ |
| 3866 | |
| 3867 | int |
| 3868 | main () |
| 3869 | { |
| 3870 | |
| 3871 | ; |
| 3872 | return 0; |
| 3873 | } |
| 3874 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3875 | if ac_fn_c_try_compile "$LINENO"; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3876 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3877 | else |
| 3878 | ac_c_werror_flag=$ac_save_c_werror_flag |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3879 | CFLAGS="-g" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3880 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3881 | /* end confdefs.h. */ |
| 3882 | |
| 3883 | int |
| 3884 | main () |
| 3885 | { |
| 3886 | |
| 3887 | ; |
| 3888 | return 0; |
| 3889 | } |
| 3890 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3891 | if ac_fn_c_try_compile "$LINENO"; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3892 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3893 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3894 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3895 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3896 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3897 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3898 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3899 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3900 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 3902 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3903 | if test "$ac_test_CFLAGS" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3904 | CFLAGS=$ac_save_CFLAGS |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3905 | elif test $ac_cv_prog_cc_g = yes; then |
| 3906 | if test "$GCC" = yes; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3907 | CFLAGS="-g -O2" |
| 3908 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3909 | CFLAGS="-g" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3910 | fi |
| 3911 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3912 | if test "$GCC" = yes; then |
| 3913 | CFLAGS="-O2" |
| 3914 | else |
| 3915 | CFLAGS= |
| 3916 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3917 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3918 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
| 3919 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 3920 | if ${ac_cv_prog_cc_c89+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3921 | $as_echo_n "(cached) " >&6 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3922 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3923 | ac_cv_prog_cc_c89=no |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3924 | ac_save_CC=$CC |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3925 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3926 | /* end confdefs.h. */ |
| 3927 | #include <stdarg.h> |
| 3928 | #include <stdio.h> |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 3929 | struct stat; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3930 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3931 | struct buf { int x; }; |
| 3932 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3933 | static char *e (p, i) |
| 3934 | char **p; |
| 3935 | int i; |
| 3936 | { |
| 3937 | return p[i]; |
| 3938 | } |
| 3939 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3940 | { |
| 3941 | char *s; |
| 3942 | va_list v; |
| 3943 | va_start (v,p); |
| 3944 | s = g (p, va_arg (v,int)); |
| 3945 | va_end (v); |
| 3946 | return s; |
| 3947 | } |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3948 | |
| 3949 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3950 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3951 | These don't provoke an error unfortunately, instead are silently treated |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3952 | 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] | 3953 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3954 | 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] | 3955 | that's true only with -std. */ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3956 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3957 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3958 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3959 | inside strings and character constants. */ |
| 3960 | #define FOO(x) 'x' |
| 3961 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3962 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3963 | int test (int i, double x); |
| 3964 | struct s1 {int (*f) (int a);}; |
| 3965 | struct s2 {int (*f) (double a);}; |
| 3966 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3967 | int argc; |
| 3968 | char **argv; |
| 3969 | int |
| 3970 | main () |
| 3971 | { |
| 3972 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3973 | ; |
| 3974 | return 0; |
| 3975 | } |
| 3976 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3977 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3978 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3979 | do |
| 3980 | CC="$ac_save_CC $ac_arg" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3981 | if ac_fn_c_try_compile "$LINENO"; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3982 | ac_cv_prog_cc_c89=$ac_arg |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3983 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3984 | rm -f core conftest.err conftest.$ac_objext |
| 3985 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3986 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3987 | rm -f conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3988 | CC=$ac_save_CC |
| 3989 | |
| 3990 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3991 | # AC_CACHE_VAL |
| 3992 | case "x$ac_cv_prog_cc_c89" in |
| 3993 | x) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 3995 | $as_echo "none needed" >&6; } ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3996 | xno) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 3998 | $as_echo "unsupported" >&6; } ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3999 | *) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4000 | CC="$CC $ac_cv_prog_cc_c89" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 4002 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4003 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4004 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4005 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4006 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4007 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4008 | ac_ext=c |
| 4009 | ac_cpp='$CPP $CPPFLAGS' |
| 4010 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4011 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4012 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4013 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 4014 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4015 | |
| 4016 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4017 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-cxx-main=<compiler>" >&5 |
| 4018 | $as_echo_n "checking for --with-cxx-main=<compiler>... " >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4019 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4020 | # Check whether --with-cxx_main was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4021 | if test "${with_cxx_main+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4022 | withval=$with_cxx_main; |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4023 | |
| 4024 | case $withval in |
| 4025 | no) with_cxx_main=no |
| 4026 | MAINCC='$(CC)';; |
| 4027 | yes) with_cxx_main=yes |
| 4028 | MAINCC='$(CXX)';; |
| 4029 | *) with_cxx_main=yes |
| 4030 | MAINCC=$withval |
| 4031 | if test -z "$CXX" |
| 4032 | then |
| 4033 | CXX=$withval |
| 4034 | fi;; |
| 4035 | esac |
| 4036 | else |
| 4037 | |
| 4038 | with_cxx_main=no |
| 4039 | MAINCC='$(CC)' |
| 4040 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4041 | fi |
| 4042 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_cxx_main" >&5 |
| 4044 | $as_echo "$with_cxx_main" >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4045 | |
| 4046 | preset_cxx="$CXX" |
| 4047 | if test -z "$CXX" |
| 4048 | then |
| 4049 | case "$CC" in |
| 4050 | gcc) # Extract the first word of "g++", so it can be a program name with args. |
| 4051 | set dummy g++; ac_word=$2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4052 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4053 | $as_echo_n "checking for $ac_word... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 4054 | if ${ac_cv_path_CXX+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4055 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4056 | else |
| 4057 | case $CXX in |
| 4058 | [\\/]* | ?:[\\/]*) |
| 4059 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. |
| 4060 | ;; |
| 4061 | *) |
| 4062 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4063 | for as_dir in notfound |
| 4064 | do |
| 4065 | IFS=$as_save_IFS |
| 4066 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4067 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 4068 | 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] | 4069 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4070 | $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] | 4071 | break 2 |
| 4072 | fi |
| 4073 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4074 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4075 | IFS=$as_save_IFS |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4076 | |
| 4077 | test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="g++" |
| 4078 | ;; |
| 4079 | esac |
| 4080 | fi |
| 4081 | CXX=$ac_cv_path_CXX |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4082 | if test -n "$CXX"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
| 4084 | $as_echo "$CXX" >&6; } |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4085 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4087 | $as_echo "no" >&6; } |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4088 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4089 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4090 | ;; |
| 4091 | cc) # Extract the first word of "c++", so it can be a program name with args. |
| 4092 | set dummy c++; ac_word=$2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4093 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4094 | $as_echo_n "checking for $ac_word... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 4095 | if ${ac_cv_path_CXX+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4096 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4097 | else |
| 4098 | case $CXX in |
| 4099 | [\\/]* | ?:[\\/]*) |
| 4100 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. |
| 4101 | ;; |
| 4102 | *) |
| 4103 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4104 | for as_dir in notfound |
| 4105 | do |
| 4106 | IFS=$as_save_IFS |
| 4107 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4108 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 4109 | 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] | 4110 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4111 | $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] | 4112 | break 2 |
| 4113 | fi |
| 4114 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4115 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4116 | IFS=$as_save_IFS |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4117 | |
| 4118 | test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="c++" |
| 4119 | ;; |
| 4120 | esac |
| 4121 | fi |
| 4122 | CXX=$ac_cv_path_CXX |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4123 | if test -n "$CXX"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4124 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
| 4125 | $as_echo "$CXX" >&6; } |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4126 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4128 | $as_echo "no" >&6; } |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4129 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4130 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4131 | ;; |
| 4132 | esac |
| 4133 | if test "$CXX" = "notfound" |
| 4134 | then |
| 4135 | CXX="" |
| 4136 | fi |
| 4137 | fi |
| 4138 | if test -z "$CXX" |
| 4139 | then |
| 4140 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
| 4141 | do |
| 4142 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4143 | set dummy $ac_prog; ac_word=$2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4144 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4145 | $as_echo_n "checking for $ac_word... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 4146 | if ${ac_cv_prog_CXX+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4147 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4148 | else |
| 4149 | if test -n "$CXX"; then |
| 4150 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 4151 | else |
| 4152 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4153 | for as_dir in $PATH |
| 4154 | do |
| 4155 | IFS=$as_save_IFS |
| 4156 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4157 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 4158 | 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] | 4159 | ac_cv_prog_CXX="$ac_prog" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4160 | $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] | 4161 | break 2 |
| 4162 | fi |
| 4163 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4164 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4165 | IFS=$as_save_IFS |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4166 | |
| 4167 | fi |
| 4168 | fi |
| 4169 | CXX=$ac_cv_prog_CXX |
| 4170 | if test -n "$CXX"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
| 4172 | $as_echo "$CXX" >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4173 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4175 | $as_echo "no" >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4176 | fi |
| 4177 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4178 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4179 | test -n "$CXX" && break |
| 4180 | done |
| 4181 | test -n "$CXX" || CXX="notfound" |
| 4182 | |
| 4183 | if test "$CXX" = "notfound" |
| 4184 | then |
| 4185 | CXX="" |
| 4186 | fi |
| 4187 | fi |
| 4188 | if test "$preset_cxx" != "$CXX" |
| 4189 | then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4190 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4191 | |
| 4192 | By default, distutils will build C++ extension modules with \"$CXX\". |
| 4193 | If this is not intended, then set CXX on the configure command line. |
| 4194 | " >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4195 | $as_echo "$as_me: WARNING: |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4196 | |
| 4197 | By default, distutils will build C++ extension modules with \"$CXX\". |
| 4198 | If this is not intended, then set CXX on the configure command line. |
| 4199 | " >&2;} |
| 4200 | fi |
| 4201 | |
| 4202 | |
Martin v. Löwis | 48e14d3 | 2011-05-09 07:37:45 +0200 | [diff] [blame] | 4203 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wl,--no-as-needed" >&5 |
| 4204 | $as_echo_n "checking for -Wl,--no-as-needed... " >&6; } |
| 4205 | save_LDFLAGS="$LDFLAGS" |
| 4206 | LDFLAGS="$LDFLAGS -Wl,--no-as-needed" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4207 | |
Martin v. Löwis | 48e14d3 | 2011-05-09 07:37:45 +0200 | [diff] [blame] | 4208 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4209 | /* end confdefs.h. */ |
| 4210 | |
| 4211 | int |
| 4212 | main () |
| 4213 | { |
| 4214 | |
| 4215 | ; |
| 4216 | return 0; |
| 4217 | } |
| 4218 | _ACEOF |
| 4219 | if ac_fn_c_try_link "$LINENO"; then : |
| 4220 | NO_AS_NEEDED="-Wl,--no-as-needed" |
| 4221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 4222 | $as_echo "yes" >&6; } |
| 4223 | else |
| 4224 | NO_AS_NEEDED="" |
| 4225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4226 | $as_echo "no" >&6; } |
| 4227 | fi |
| 4228 | rm -f core conftest.err conftest.$ac_objext \ |
| 4229 | conftest$ac_exeext conftest.$ac_ext |
| 4230 | LDFLAGS="$save_LDFLAGS" |
| 4231 | |
| 4232 | |
| 4233 | |
| 4234 | # checks for UNIX variants that set C preprocessor variables |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4235 | ac_ext=c |
| 4236 | ac_cpp='$CPP $CPPFLAGS' |
| 4237 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4238 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4239 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4240 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
| 4241 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 4242 | # On Suns, sometimes $CPP names a directory. |
| 4243 | if test -n "$CPP" && test -d "$CPP"; then |
| 4244 | CPP= |
| 4245 | fi |
| 4246 | if test -z "$CPP"; then |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 4247 | if ${ac_cv_prog_CPP+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4248 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 4249 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4250 | # Double quotes because CPP needs to be expanded |
| 4251 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 4252 | do |
| 4253 | ac_preproc_ok=false |
| 4254 | for ac_c_preproc_warn_flag in '' yes |
| 4255 | do |
| 4256 | # Use a header file that comes with gcc, so configuring glibc |
| 4257 | # with a fresh cross-compiler works. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4258 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4259 | # <limits.h> exists even on freestanding compilers. |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 4260 | # On the NeXT, cc -E runs the code through the compiler's parser, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4261 | # not just through cpp. "Syntax error" is here to catch this case. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4262 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4263 | /* end confdefs.h. */ |
| 4264 | #ifdef __STDC__ |
| 4265 | # include <limits.h> |
| 4266 | #else |
| 4267 | # include <assert.h> |
| 4268 | #endif |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4269 | Syntax error |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4270 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4271 | if ac_fn_c_try_cpp "$LINENO"; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4272 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4273 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4274 | # Broken: fails on valid input. |
| 4275 | continue |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 4276 | fi |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 4277 | rm -f conftest.err conftest.i conftest.$ac_ext |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 4278 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4279 | # OK, works on sane cases. Now check whether nonexistent headers |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4280 | # can be detected and how. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4281 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4282 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4283 | #include <ac_nonexistent.h> |
| 4284 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4285 | if ac_fn_c_try_cpp "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4286 | # Broken: success on invalid input. |
| 4287 | continue |
| 4288 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4289 | # Passes both tests. |
| 4290 | ac_preproc_ok=: |
| 4291 | break |
| 4292 | fi |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 4293 | rm -f conftest.err conftest.i conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4294 | |
| 4295 | done |
| 4296 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 4297 | rm -f conftest.i conftest.err conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4298 | if $ac_preproc_ok; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4299 | break |
| 4300 | fi |
| 4301 | |
| 4302 | done |
| 4303 | ac_cv_prog_CPP=$CPP |
| 4304 | |
| 4305 | fi |
| 4306 | CPP=$ac_cv_prog_CPP |
| 4307 | else |
| 4308 | ac_cv_prog_CPP=$CPP |
| 4309 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
| 4311 | $as_echo "$CPP" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4312 | ac_preproc_ok=false |
| 4313 | for ac_c_preproc_warn_flag in '' yes |
| 4314 | do |
| 4315 | # Use a header file that comes with gcc, so configuring glibc |
| 4316 | # with a fresh cross-compiler works. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4317 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4318 | # <limits.h> exists even on freestanding compilers. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4319 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4320 | # not just through cpp. "Syntax error" is here to catch this case. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4321 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4322 | /* end confdefs.h. */ |
| 4323 | #ifdef __STDC__ |
| 4324 | # include <limits.h> |
| 4325 | #else |
| 4326 | # include <assert.h> |
| 4327 | #endif |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4328 | Syntax error |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4329 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4330 | if ac_fn_c_try_cpp "$LINENO"; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4331 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4332 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4333 | # Broken: fails on valid input. |
| 4334 | continue |
| 4335 | fi |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 4336 | rm -f conftest.err conftest.i conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4337 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4338 | # OK, works on sane cases. Now check whether nonexistent headers |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4339 | # can be detected and how. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4340 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4341 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4342 | #include <ac_nonexistent.h> |
| 4343 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4344 | if ac_fn_c_try_cpp "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4345 | # Broken: success on invalid input. |
| 4346 | continue |
| 4347 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4348 | # Passes both tests. |
| 4349 | ac_preproc_ok=: |
| 4350 | break |
| 4351 | fi |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 4352 | rm -f conftest.err conftest.i conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4353 | |
| 4354 | done |
| 4355 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 4356 | rm -f conftest.i conftest.err conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4357 | if $ac_preproc_ok; then : |
| 4358 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4359 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4360 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4361 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 4362 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 4363 | See \`config.log' for more details" "$LINENO" 5; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4364 | fi |
| 4365 | |
| 4366 | ac_ext=c |
| 4367 | ac_cpp='$CPP $CPPFLAGS' |
| 4368 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4369 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4370 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4371 | |
| 4372 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4373 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
| 4374 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 4375 | if ${ac_cv_path_GREP+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4376 | $as_echo_n "(cached) " >&6 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4377 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4378 | if test -z "$GREP"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4379 | ac_path_GREP_found=false |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4380 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4381 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4382 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4383 | do |
| 4384 | IFS=$as_save_IFS |
| 4385 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4386 | for ac_prog in grep ggrep; do |
| 4387 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4388 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 4389 | as_fn_executable_p "$ac_path_GREP" || continue |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4390 | # Check for GNU ac_path_GREP and select it if it is found. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4391 | # Check for GNU $ac_path_GREP |
| 4392 | case `"$ac_path_GREP" --version 2>&1` in |
| 4393 | *GNU*) |
| 4394 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 4395 | *) |
| 4396 | ac_count=0 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4397 | $as_echo_n 0123456789 >"conftest.in" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4398 | while : |
| 4399 | do |
| 4400 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4401 | mv "conftest.tmp" "conftest.in" |
| 4402 | cp "conftest.in" "conftest.nl" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4403 | $as_echo 'GREP' >> "conftest.nl" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4404 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4405 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4406 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4407 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 4408 | # Best one so far, save it but keep looking for a better one |
| 4409 | ac_cv_path_GREP="$ac_path_GREP" |
| 4410 | ac_path_GREP_max=$ac_count |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4411 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4412 | # 10*(2^10) chars as input seems more than enough |
| 4413 | test $ac_count -gt 10 && break |
| 4414 | done |
| 4415 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4416 | esac |
| 4417 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4418 | $ac_path_GREP_found && break 3 |
| 4419 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4420 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4421 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4422 | IFS=$as_save_IFS |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4423 | if test -z "$ac_cv_path_GREP"; then |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 4424 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4425 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4426 | else |
| 4427 | ac_cv_path_GREP=$GREP |
| 4428 | fi |
| 4429 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4430 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
| 4432 | $as_echo "$ac_cv_path_GREP" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4433 | GREP="$ac_cv_path_GREP" |
| 4434 | |
| 4435 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4436 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
| 4437 | $as_echo_n "checking for egrep... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 4438 | if ${ac_cv_path_EGREP+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4439 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4440 | else |
| 4441 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 4442 | then ac_cv_path_EGREP="$GREP -E" |
| 4443 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4444 | if test -z "$EGREP"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4445 | ac_path_EGREP_found=false |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4446 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4447 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4448 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4449 | do |
| 4450 | IFS=$as_save_IFS |
| 4451 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4452 | for ac_prog in egrep; do |
| 4453 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4454 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 4455 | as_fn_executable_p "$ac_path_EGREP" || continue |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4456 | # 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] | 4457 | # Check for GNU $ac_path_EGREP |
| 4458 | case `"$ac_path_EGREP" --version 2>&1` in |
| 4459 | *GNU*) |
| 4460 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 4461 | *) |
| 4462 | ac_count=0 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4463 | $as_echo_n 0123456789 >"conftest.in" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4464 | while : |
| 4465 | do |
| 4466 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4467 | mv "conftest.tmp" "conftest.in" |
| 4468 | cp "conftest.in" "conftest.nl" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4469 | $as_echo 'EGREP' >> "conftest.nl" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4470 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4471 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4472 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4473 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 4474 | # Best one so far, save it but keep looking for a better one |
| 4475 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 4476 | ac_path_EGREP_max=$ac_count |
| 4477 | fi |
| 4478 | # 10*(2^10) chars as input seems more than enough |
| 4479 | test $ac_count -gt 10 && break |
| 4480 | done |
| 4481 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4482 | esac |
| 4483 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4484 | $ac_path_EGREP_found && break 3 |
| 4485 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4486 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4487 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4488 | IFS=$as_save_IFS |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4489 | if test -z "$ac_cv_path_EGREP"; then |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 4490 | 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] | 4491 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4492 | else |
| 4493 | ac_cv_path_EGREP=$EGREP |
| 4494 | fi |
| 4495 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4496 | fi |
| 4497 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
| 4499 | $as_echo "$ac_cv_path_EGREP" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4500 | EGREP="$ac_cv_path_EGREP" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4501 | |
| 4502 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4503 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 4504 | $as_echo_n "checking for ANSI C header files... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 4505 | if ${ac_cv_header_stdc+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4506 | $as_echo_n "(cached) " >&6 |
| 4507 | else |
| 4508 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 4509 | /* end confdefs.h. */ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4510 | #include <stdlib.h> |
| 4511 | #include <stdarg.h> |
| 4512 | #include <string.h> |
| 4513 | #include <float.h> |
| 4514 | |
| 4515 | int |
| 4516 | main () |
| 4517 | { |
| 4518 | |
| 4519 | ; |
| 4520 | return 0; |
| 4521 | } |
| 4522 | _ACEOF |
| 4523 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4524 | ac_cv_header_stdc=yes |
| 4525 | else |
| 4526 | ac_cv_header_stdc=no |
| 4527 | fi |
| 4528 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4529 | |
| 4530 | if test $ac_cv_header_stdc = yes; then |
| 4531 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 4532 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4533 | /* end confdefs.h. */ |
| 4534 | #include <string.h> |
Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 4535 | |
Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 4536 | _ACEOF |
Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 4537 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4538 | $EGREP "memchr" >/dev/null 2>&1; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4539 | |
Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 4540 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4541 | ac_cv_header_stdc=no |
Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 4542 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 4543 | rm -f conftest* |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4544 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4545 | fi |
| 4546 | |
| 4547 | if test $ac_cv_header_stdc = yes; then |
| 4548 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 4549 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4550 | /* end confdefs.h. */ |
| 4551 | #include <stdlib.h> |
| 4552 | |
| 4553 | _ACEOF |
| 4554 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4555 | $EGREP "free" >/dev/null 2>&1; then : |
| 4556 | |
| 4557 | else |
| 4558 | ac_cv_header_stdc=no |
| 4559 | fi |
| 4560 | rm -f conftest* |
| 4561 | |
| 4562 | fi |
| 4563 | |
| 4564 | if test $ac_cv_header_stdc = yes; then |
| 4565 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 4566 | if test "$cross_compiling" = yes; then : |
| 4567 | : |
| 4568 | else |
| 4569 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4570 | /* end confdefs.h. */ |
| 4571 | #include <ctype.h> |
| 4572 | #include <stdlib.h> |
| 4573 | #if ((' ' & 0x0FF) == 0x020) |
| 4574 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4575 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4576 | #else |
| 4577 | # define ISLOWER(c) \ |
| 4578 | (('a' <= (c) && (c) <= 'i') \ |
| 4579 | || ('j' <= (c) && (c) <= 'r') \ |
| 4580 | || ('s' <= (c) && (c) <= 'z')) |
| 4581 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 4582 | #endif |
| 4583 | |
| 4584 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4585 | int |
| 4586 | main () |
| 4587 | { |
| 4588 | int i; |
| 4589 | for (i = 0; i < 256; i++) |
| 4590 | if (XOR (islower (i), ISLOWER (i)) |
| 4591 | || toupper (i) != TOUPPER (i)) |
| 4592 | return 2; |
| 4593 | return 0; |
| 4594 | } |
| 4595 | _ACEOF |
| 4596 | if ac_fn_c_try_run "$LINENO"; then : |
| 4597 | |
| 4598 | else |
| 4599 | ac_cv_header_stdc=no |
| 4600 | fi |
| 4601 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 4602 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 4603 | fi |
| 4604 | |
| 4605 | fi |
| 4606 | fi |
| 4607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| 4608 | $as_echo "$ac_cv_header_stdc" >&6; } |
| 4609 | if test $ac_cv_header_stdc = yes; then |
| 4610 | |
| 4611 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
| 4612 | |
| 4613 | fi |
| 4614 | |
| 4615 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 4616 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 4617 | inttypes.h stdint.h unistd.h |
| 4618 | do : |
| 4619 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4620 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 4621 | " |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 4622 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4623 | cat >>confdefs.h <<_ACEOF |
| 4624 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4625 | _ACEOF |
| 4626 | |
| 4627 | fi |
| 4628 | |
| 4629 | done |
| 4630 | |
| 4631 | |
| 4632 | |
| 4633 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 4634 | if test "x$ac_cv_header_minix_config_h" = xyes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4635 | MINIX=yes |
| 4636 | else |
| 4637 | MINIX= |
| 4638 | fi |
| 4639 | |
| 4640 | |
| 4641 | if test "$MINIX" = yes; then |
| 4642 | |
| 4643 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h |
| 4644 | |
| 4645 | |
| 4646 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h |
| 4647 | |
| 4648 | |
| 4649 | $as_echo "#define _MINIX 1" >>confdefs.h |
| 4650 | |
| 4651 | fi |
| 4652 | |
| 4653 | |
| 4654 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 |
| 4655 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 4656 | if ${ac_cv_safe_to_define___extensions__+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4657 | $as_echo_n "(cached) " >&6 |
| 4658 | else |
| 4659 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4660 | /* end confdefs.h. */ |
| 4661 | |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 4662 | # define __EXTENSIONS__ 1 |
| 4663 | $ac_includes_default |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4664 | int |
| 4665 | main () |
| 4666 | { |
| 4667 | |
| 4668 | ; |
| 4669 | return 0; |
| 4670 | } |
| 4671 | _ACEOF |
| 4672 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4673 | ac_cv_safe_to_define___extensions__=yes |
| 4674 | else |
| 4675 | ac_cv_safe_to_define___extensions__=no |
| 4676 | fi |
| 4677 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4678 | fi |
| 4679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
| 4680 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } |
| 4681 | test $ac_cv_safe_to_define___extensions__ = yes && |
| 4682 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h |
| 4683 | |
| 4684 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
| 4685 | |
| 4686 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
| 4687 | |
| 4688 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
| 4689 | |
| 4690 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h |
| 4691 | |
| 4692 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4693 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4694 | # Check for unsupported systems |
| 4695 | case $ac_sys_system/$ac_sys_release in |
| 4696 | atheos*|Linux*/1*) |
| 4697 | echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported. |
| 4698 | echo See README for details. |
| 4699 | exit 1;; |
| 4700 | esac |
| 4701 | |
| 4702 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4703 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-suffix" >&5 |
| 4704 | $as_echo_n "checking for --with-suffix... " >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4705 | |
| 4706 | # Check whether --with-suffix was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4707 | if test "${with_suffix+set}" = set; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4708 | withval=$with_suffix; |
| 4709 | case $withval in |
| 4710 | no) EXEEXT=;; |
| 4711 | yes) EXEEXT=.exe;; |
| 4712 | *) EXEEXT=$withval;; |
| 4713 | esac |
| 4714 | fi |
| 4715 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXEEXT" >&5 |
| 4717 | $as_echo "$EXEEXT" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4718 | |
| 4719 | # Test whether we're running on a non-case-sensitive system, in which |
| 4720 | # case we give a warning if no ext is given |
| 4721 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4722 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for case-insensitive build directory" >&5 |
| 4723 | $as_echo_n "checking for case-insensitive build directory... " >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4724 | if test ! -d CaseSensitiveTestDir; then |
| 4725 | mkdir CaseSensitiveTestDir |
| 4726 | fi |
| 4727 | |
| 4728 | if test -d casesensitivetestdir |
| 4729 | then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 4731 | $as_echo "yes" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4732 | BUILDEXEEXT=.exe |
| 4733 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4735 | $as_echo "no" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4736 | BUILDEXEEXT=$EXEEXT |
| 4737 | fi |
| 4738 | rmdir CaseSensitiveTestDir |
| 4739 | |
| 4740 | case $MACHDEP in |
| 4741 | bsdos*) |
| 4742 | case $CC in |
| 4743 | gcc) CC="$CC -D_HAVE_BSDI";; |
| 4744 | esac;; |
| 4745 | esac |
| 4746 | |
| 4747 | case $ac_sys_system in |
| 4748 | hp*|HP*) |
| 4749 | case $CC in |
| 4750 | cc|*/cc) CC="$CC -Ae";; |
| 4751 | esac;; |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4752 | esac |
| 4753 | |
doko@python.org | 3e6e2ac | 2013-01-25 13:12:29 +0100 | [diff] [blame] | 4754 | MULTIARCH=$($CC --print-multiarch 2>/dev/null) |
| 4755 | |
| 4756 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4757 | |
| 4758 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4759 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY" >&5 |
| 4760 | $as_echo_n "checking LIBRARY... " >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4761 | if test -z "$LIBRARY" |
| 4762 | then |
Barry Warsaw | f040d7d | 2010-10-18 17:09:07 +0000 | [diff] [blame] | 4763 | LIBRARY='libpython$(VERSION)$(ABIFLAGS).a' |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4764 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBRARY" >&5 |
| 4766 | $as_echo "$LIBRARY" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4767 | |
| 4768 | # LDLIBRARY is the name of the library to link against (as opposed to the |
| 4769 | # name of the library into which to insert object files). BLDLIBRARY is also |
| 4770 | # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY |
| 4771 | # is blank as the main program is not linked directly against LDLIBRARY. |
| 4772 | # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On |
| 4773 | # systems without shared libraries, LDLIBRARY is the same as LIBRARY |
| 4774 | # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, |
| 4775 | # DLLLIBRARY is the shared (i.e., DLL) library. |
| 4776 | # |
| 4777 | # RUNSHARED is used to run shared python without installed libraries |
| 4778 | # |
| 4779 | # INSTSONAME is the name of the shared library that will be use to install |
| 4780 | # on the system - some systems like version suffix, others don't |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 4781 | # |
| 4782 | # LDVERSION is the shared library version number, normally the Python version |
| 4783 | # with the ABI build flags appended. |
| 4784 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4785 | |
| 4786 | |
| 4787 | |
| 4788 | |
| 4789 | |
| 4790 | |
Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 +0000 | [diff] [blame] | 4791 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4792 | LDLIBRARY="$LIBRARY" |
| 4793 | BLDLIBRARY='$(LDLIBRARY)' |
| 4794 | INSTSONAME='$(LDLIBRARY)' |
| 4795 | DLLLIBRARY='' |
| 4796 | LDLIBRARYDIR='' |
| 4797 | RUNSHARED='' |
Barry Warsaw | 14d98ac | 2010-11-24 19:43:47 +0000 | [diff] [blame] | 4798 | LDVERSION="$VERSION" |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4799 | |
| 4800 | # LINKCC is the command that links the python executable -- default is $(CC). |
| 4801 | # If CXX is set, and if it is needed to link a main function that was |
| 4802 | # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: |
| 4803 | # python might then depend on the C++ runtime |
| 4804 | # This is altered for AIX in order to build the export list before |
| 4805 | # linking. |
| 4806 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4807 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKCC" >&5 |
| 4808 | $as_echo_n "checking LINKCC... " >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4809 | if test -z "$LINKCC" |
| 4810 | then |
| 4811 | LINKCC='$(PURIFY) $(MAINCC)' |
| 4812 | case $ac_sys_system in |
| 4813 | AIX*) |
| 4814 | exp_extra="\"\"" |
| 4815 | if test $ac_sys_release -ge 5 -o \ |
| 4816 | $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then |
| 4817 | exp_extra="." |
| 4818 | fi |
| 4819 | LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";; |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4820 | QNX*) |
| 4821 | # qcc must be used because the other compilers do not |
| 4822 | # support -N. |
| 4823 | LINKCC=qcc;; |
| 4824 | esac |
| 4825 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKCC" >&5 |
| 4827 | $as_echo "$LINKCC" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4828 | |
| 4829 | # GNULD is set to "yes" if the GNU linker is used. If this goes wrong |
| 4830 | # make sure we default having it set to "no": this is used by |
| 4831 | # distutils.unixccompiler to know if it should add --enable-new-dtags |
| 4832 | # to linker command lines, and failing to detect GNU ld simply results |
| 4833 | # in the same bahaviour as before. |
| 4834 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4835 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
| 4836 | $as_echo_n "checking for GNU ld... " >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4837 | ac_prog=ld |
| 4838 | if test "$GCC" = yes; then |
| 4839 | ac_prog=`$CC -print-prog-name=ld` |
| 4840 | fi |
| 4841 | case `"$ac_prog" -V 2>&1 < /dev/null` in |
| 4842 | *GNU*) |
| 4843 | GNULD=yes;; |
| 4844 | *) |
| 4845 | GNULD=no;; |
| 4846 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNULD" >&5 |
| 4848 | $as_echo "$GNULD" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4849 | |
Daniel Stutzbach | a606faa | 2010-08-31 19:51:07 +0000 | [diff] [blame] | 4850 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
| 4851 | $as_echo_n "checking for inline... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 4852 | if ${ac_cv_c_inline+:} false; then : |
Daniel Stutzbach | a606faa | 2010-08-31 19:51:07 +0000 | [diff] [blame] | 4853 | $as_echo_n "(cached) " >&6 |
| 4854 | else |
| 4855 | ac_cv_c_inline=no |
| 4856 | for ac_kw in inline __inline__ __inline; do |
| 4857 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4858 | /* end confdefs.h. */ |
| 4859 | #ifndef __cplusplus |
| 4860 | typedef int foo_t; |
| 4861 | static $ac_kw foo_t static_foo () {return 0; } |
| 4862 | $ac_kw foo_t foo () {return 0; } |
| 4863 | #endif |
| 4864 | |
| 4865 | _ACEOF |
| 4866 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4867 | ac_cv_c_inline=$ac_kw |
| 4868 | fi |
| 4869 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4870 | test "$ac_cv_c_inline" != no && break |
| 4871 | done |
| 4872 | |
| 4873 | fi |
| 4874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 |
| 4875 | $as_echo "$ac_cv_c_inline" >&6; } |
| 4876 | |
| 4877 | case $ac_cv_c_inline in |
| 4878 | inline | yes) ;; |
| 4879 | *) |
| 4880 | case $ac_cv_c_inline in |
| 4881 | no) ac_val=;; |
| 4882 | *) ac_val=$ac_cv_c_inline;; |
| 4883 | esac |
| 4884 | cat >>confdefs.h <<_ACEOF |
| 4885 | #ifndef __cplusplus |
| 4886 | #define inline $ac_val |
| 4887 | #endif |
| 4888 | _ACEOF |
| 4889 | ;; |
| 4890 | esac |
| 4891 | |
| 4892 | if test "$ac_cv_c_inline" != no ; then |
Benjamin Peterson | d7f73e9 | 2010-09-05 00:09:07 +0000 | [diff] [blame] | 4893 | |
| 4894 | $as_echo "#define USE_INLINE 1" >>confdefs.h |
Daniel Stutzbach | a606faa | 2010-08-31 19:51:07 +0000 | [diff] [blame] | 4895 | |
| 4896 | |
| 4897 | fi |
| 4898 | |
| 4899 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4900 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-shared" >&5 |
| 4901 | $as_echo_n "checking for --enable-shared... " >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4902 | # Check whether --enable-shared was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4903 | if test "${enable_shared+set}" = set; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4904 | enableval=$enable_shared; |
| 4905 | fi |
| 4906 | |
| 4907 | |
| 4908 | if test -z "$enable_shared" |
| 4909 | then |
| 4910 | case $ac_sys_system in |
Antoine Pitrou | 6103ab1 | 2009-10-24 20:11:21 +0000 | [diff] [blame] | 4911 | CYGWIN*) |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4912 | enable_shared="yes";; |
| 4913 | *) |
| 4914 | enable_shared="no";; |
| 4915 | esac |
| 4916 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
| 4918 | $as_echo "$enable_shared" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4919 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4920 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-profiling" >&5 |
| 4921 | $as_echo_n "checking for --enable-profiling... " >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4922 | # Check whether --enable-profiling was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4923 | if test "${enable_profiling+set}" = set; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4924 | enableval=$enable_profiling; ac_save_cc="$CC" |
| 4925 | CC="$CC -pg" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4926 | if test "$cross_compiling" = yes; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4927 | ac_enable_profiling="no" |
| 4928 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4929 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4930 | /* end confdefs.h. */ |
| 4931 | int main() { return 0; } |
| 4932 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4933 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4934 | ac_enable_profiling="yes" |
| 4935 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4936 | ac_enable_profiling="no" |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4937 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4938 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 4939 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4940 | fi |
| 4941 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4942 | CC="$ac_save_cc" |
| 4943 | fi |
| 4944 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_profiling" >&5 |
| 4946 | $as_echo "$ac_enable_profiling" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4947 | |
| 4948 | case "$ac_enable_profiling" in |
| 4949 | "yes") |
| 4950 | BASECFLAGS="-pg $BASECFLAGS" |
| 4951 | LDFLAGS="-pg $LDFLAGS" |
| 4952 | ;; |
| 4953 | esac |
| 4954 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4955 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDLIBRARY" >&5 |
| 4956 | $as_echo_n "checking LDLIBRARY... " >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4957 | |
| 4958 | # MacOSX framework builds need more magic. LDLIBRARY is the dynamic |
| 4959 | # library that we build, but we do not want to link against it (we |
| 4960 | # will find it with a -framework option). For this reason there is an |
| 4961 | # extra variable BLDLIBRARY against which Python and the extension |
| 4962 | # modules are linked, BLDLIBRARY. This is normally the same as |
| 4963 | # LDLIBRARY, but empty for MacOSX framework builds. |
| 4964 | if test "$enable_framework" |
| 4965 | then |
| 4966 | LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 4967 | RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH" |
| 4968 | BLDLIBRARY='' |
| 4969 | else |
| 4970 | BLDLIBRARY='$(LDLIBRARY)' |
| 4971 | fi |
| 4972 | |
| 4973 | # Other platforms follow |
| 4974 | if test $enable_shared = "yes"; then |
| 4975 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4976 | $as_echo "#define Py_ENABLE_SHARED 1" >>confdefs.h |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4977 | |
| 4978 | case $ac_sys_system in |
| 4979 | CYGWIN*) |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 4980 | LDLIBRARY='libpython$(LDVERSION).dll.a' |
| 4981 | DLLLIBRARY='libpython$(LDVERSION).dll' |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4982 | ;; |
| 4983 | SunOS*) |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 4984 | LDLIBRARY='libpython$(LDVERSION).so' |
| 4985 | BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(LDVERSION)' |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4986 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
| 4987 | INSTSONAME="$LDLIBRARY".$SOVERSION |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 4988 | if test "$with_pydebug" != yes |
Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 +0000 | [diff] [blame] | 4989 | then |
| 4990 | PY3LIBRARY=libpython3.so |
| 4991 | fi |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4992 | ;; |
Charles-François Natali | 749400a | 2011-07-24 22:41:18 +0200 | [diff] [blame] | 4993 | Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*|OpenBSD*) |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 4994 | LDLIBRARY='libpython$(LDVERSION).so' |
| 4995 | BLDLIBRARY='-L. -lpython$(LDVERSION)' |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4996 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
| 4997 | case $ac_sys_system in |
| 4998 | FreeBSD*) |
| 4999 | SOVERSION=`echo $SOVERSION|cut -d "." -f 1` |
| 5000 | ;; |
| 5001 | esac |
| 5002 | INSTSONAME="$LDLIBRARY".$SOVERSION |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 5003 | if test "$with_pydebug" != yes |
Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 +0000 | [diff] [blame] | 5004 | then |
| 5005 | PY3LIBRARY=libpython3.so |
| 5006 | fi |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5007 | ;; |
| 5008 | hp*|HP*) |
| 5009 | case `uname -m` in |
| 5010 | ia64) |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5011 | LDLIBRARY='libpython$(LDVERSION).so' |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5012 | ;; |
| 5013 | *) |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5014 | LDLIBRARY='libpython$(LDVERSION).sl' |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5015 | ;; |
| 5016 | esac |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5017 | BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(LDVERSION)' |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5018 | RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH} |
| 5019 | ;; |
| 5020 | OSF*) |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5021 | LDLIBRARY='libpython$(LDVERSION).so' |
| 5022 | BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(LDVERSION)' |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5023 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
| 5024 | ;; |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5025 | Darwin*) |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5026 | LDLIBRARY='libpython$(LDVERSION).dylib' |
| 5027 | BLDLIBRARY='-L. -lpython$(LDVERSION)' |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5028 | RUNSHARED='DYLD_LIBRARY_PATH=`pwd`:${DYLD_LIBRARY_PATH}' |
| 5029 | ;; |
Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 5030 | AIX*) |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5031 | LDLIBRARY='libpython$(LDVERSION).so' |
Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 5032 | RUNSHARED=LIBPATH=`pwd`:${LIBPATH} |
| 5033 | ;; |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5034 | |
| 5035 | esac |
| 5036 | else # shared is disabled |
| 5037 | case $ac_sys_system in |
| 5038 | CYGWIN*) |
| 5039 | BLDLIBRARY='$(LIBRARY)' |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5040 | LDLIBRARY='libpython$(LDVERSION).dll.a' |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5041 | ;; |
| 5042 | esac |
| 5043 | fi |
| 5044 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDLIBRARY" >&5 |
| 5046 | $as_echo "$LDLIBRARY" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5047 | |
| 5048 | if test -n "$ac_tool_prefix"; then |
| 5049 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 5050 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5051 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5052 | $as_echo_n "checking for $ac_word... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 5053 | if ${ac_cv_prog_RANLIB+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5054 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5055 | else |
| 5056 | if test -n "$RANLIB"; then |
| 5057 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 5058 | else |
| 5059 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5060 | for as_dir in $PATH |
| 5061 | do |
| 5062 | IFS=$as_save_IFS |
| 5063 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5064 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 5065 | 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] | 5066 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5067 | $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] | 5068 | break 2 |
| 5069 | fi |
| 5070 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5071 | done |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5072 | IFS=$as_save_IFS |
| 5073 | |
| 5074 | fi |
| 5075 | fi |
| 5076 | RANLIB=$ac_cv_prog_RANLIB |
| 5077 | if test -n "$RANLIB"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
| 5079 | $as_echo "$RANLIB" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5080 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5081 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5082 | $as_echo "no" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5083 | fi |
| 5084 | |
| 5085 | |
| 5086 | fi |
| 5087 | if test -z "$ac_cv_prog_RANLIB"; then |
| 5088 | ac_ct_RANLIB=$RANLIB |
| 5089 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 5090 | set dummy ranlib; ac_word=$2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5091 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5092 | $as_echo_n "checking for $ac_word... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 5093 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5094 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5095 | else |
| 5096 | if test -n "$ac_ct_RANLIB"; then |
| 5097 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 5098 | else |
| 5099 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5100 | for as_dir in $PATH |
| 5101 | do |
| 5102 | IFS=$as_save_IFS |
| 5103 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5104 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 5105 | 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] | 5106 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5107 | $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] | 5108 | break 2 |
| 5109 | fi |
| 5110 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5111 | done |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5112 | IFS=$as_save_IFS |
| 5113 | |
| 5114 | fi |
| 5115 | fi |
| 5116 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 5117 | if test -n "$ac_ct_RANLIB"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
| 5119 | $as_echo "$ac_ct_RANLIB" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5120 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5122 | $as_echo "no" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5123 | fi |
| 5124 | |
| 5125 | if test "x$ac_ct_RANLIB" = x; then |
| 5126 | RANLIB=":" |
| 5127 | else |
| 5128 | case $cross_compiling:$ac_tool_warned in |
| 5129 | yes:) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5130 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5131 | $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] | 5132 | ac_tool_warned=yes ;; |
| 5133 | esac |
| 5134 | RANLIB=$ac_ct_RANLIB |
| 5135 | fi |
| 5136 | else |
| 5137 | RANLIB="$ac_cv_prog_RANLIB" |
| 5138 | fi |
| 5139 | |
| 5140 | |
| 5141 | for ac_prog in ar aal |
| 5142 | do |
| 5143 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5144 | set dummy $ac_prog; ac_word=$2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5145 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5146 | $as_echo_n "checking for $ac_word... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 5147 | if ${ac_cv_prog_AR+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5148 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5149 | else |
| 5150 | if test -n "$AR"; then |
| 5151 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 5152 | else |
| 5153 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5154 | for as_dir in $PATH |
| 5155 | do |
| 5156 | IFS=$as_save_IFS |
| 5157 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5158 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 5159 | 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] | 5160 | ac_cv_prog_AR="$ac_prog" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5161 | $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] | 5162 | break 2 |
| 5163 | fi |
| 5164 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5165 | done |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5166 | IFS=$as_save_IFS |
| 5167 | |
| 5168 | fi |
| 5169 | fi |
| 5170 | AR=$ac_cv_prog_AR |
| 5171 | if test -n "$AR"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
| 5173 | $as_echo "$AR" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5174 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5175 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5176 | $as_echo "no" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5177 | fi |
| 5178 | |
| 5179 | |
| 5180 | test -n "$AR" && break |
| 5181 | done |
| 5182 | test -n "$AR" || AR="ar" |
| 5183 | |
| 5184 | |
| 5185 | # tweak ARFLAGS only if the user didn't set it on the command line |
| 5186 | |
| 5187 | if test -z "$ARFLAGS" |
| 5188 | then |
| 5189 | ARFLAGS="rc" |
| 5190 | fi |
| 5191 | |
| 5192 | |
| 5193 | # Extract the first word of "svnversion", so it can be a program name with args. |
| 5194 | set dummy svnversion; ac_word=$2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5195 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5196 | $as_echo_n "checking for $ac_word... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 5197 | if ${ac_cv_prog_SVNVERSION+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5198 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5199 | else |
| 5200 | if test -n "$SVNVERSION"; then |
| 5201 | ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test. |
| 5202 | else |
| 5203 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5204 | for as_dir in $PATH |
| 5205 | do |
| 5206 | IFS=$as_save_IFS |
| 5207 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5208 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 5209 | 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] | 5210 | ac_cv_prog_SVNVERSION="found" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5211 | $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] | 5212 | break 2 |
| 5213 | fi |
| 5214 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5215 | done |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5216 | IFS=$as_save_IFS |
| 5217 | |
| 5218 | test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION="not-found" |
| 5219 | fi |
| 5220 | fi |
| 5221 | SVNVERSION=$ac_cv_prog_SVNVERSION |
| 5222 | if test -n "$SVNVERSION"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVNVERSION" >&5 |
| 5224 | $as_echo "$SVNVERSION" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5225 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5226 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5227 | $as_echo "no" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5228 | fi |
| 5229 | |
| 5230 | |
| 5231 | if test $SVNVERSION = found |
| 5232 | then |
| 5233 | SVNVERSION="svnversion \$(srcdir)" |
| 5234 | else |
| 5235 | SVNVERSION="echo Unversioned directory" |
| 5236 | fi |
| 5237 | |
Trent Nelson | 9effe69 | 2012-10-16 08:41:32 -0400 | [diff] [blame] | 5238 | |
Trent Nelson | 739fc54 | 2012-10-17 04:45:30 -0400 | [diff] [blame] | 5239 | if test "$abs_srcdir" != "$abs_builddir"; then |
Trent Nelson | 9effe69 | 2012-10-16 08:41:32 -0400 | [diff] [blame] | 5240 | # If we're building out-of-tree, we need to make sure the following |
| 5241 | # resources get picked up before their $srcdir counterparts. |
| 5242 | # Objects/ -> typeslots.inc |
| 5243 | # Include/ -> Python-ast.h, graminit.h |
| 5244 | # Python/ -> importlib.h |
| 5245 | # (A side effect of this is that these resources will automatically be |
| 5246 | # regenerated when building out-of-tree, regardless of whether or not |
| 5247 | # the $srcdir counterpart is up-to-date. This is an acceptable trade |
| 5248 | # off.) |
| 5249 | BASECPPFLAGS="-IObjects -IInclude -IPython" |
| 5250 | else |
| 5251 | BASECPPFLAGS="" |
| 5252 | fi |
| 5253 | |
Georg Brandl | 1ca2e79 | 2011-03-05 20:51:24 +0100 | [diff] [blame] | 5254 | |
| 5255 | |
| 5256 | |
Georg Brandl | 187c111 | 2011-07-03 09:23:20 +0200 | [diff] [blame] | 5257 | |
Antoine Pitrou | 5cd3e30 | 2011-07-27 01:16:18 +0200 | [diff] [blame] | 5258 | if test -e $srcdir/.hg/dirstate |
Georg Brandl | 187c111 | 2011-07-03 09:23:20 +0200 | [diff] [blame] | 5259 | then |
Georg Brandl | 1ca2e79 | 2011-03-05 20:51:24 +0100 | [diff] [blame] | 5260 | # Extract the first word of "hg", so it can be a program name with args. |
| 5261 | set dummy hg; ac_word=$2 |
| 5262 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5263 | $as_echo_n "checking for $ac_word... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 5264 | if ${ac_cv_prog_HAS_HG+:} false; then : |
Georg Brandl | 1ca2e79 | 2011-03-05 20:51:24 +0100 | [diff] [blame] | 5265 | $as_echo_n "(cached) " >&6 |
| 5266 | else |
| 5267 | if test -n "$HAS_HG"; then |
| 5268 | ac_cv_prog_HAS_HG="$HAS_HG" # Let the user override the test. |
| 5269 | else |
| 5270 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5271 | for as_dir in $PATH |
| 5272 | do |
| 5273 | IFS=$as_save_IFS |
| 5274 | test -z "$as_dir" && as_dir=. |
| 5275 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 5276 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Georg Brandl | 1ca2e79 | 2011-03-05 20:51:24 +0100 | [diff] [blame] | 5277 | ac_cv_prog_HAS_HG="found" |
| 5278 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5279 | break 2 |
| 5280 | fi |
| 5281 | done |
| 5282 | done |
| 5283 | IFS=$as_save_IFS |
| 5284 | |
| 5285 | test -z "$ac_cv_prog_HAS_HG" && ac_cv_prog_HAS_HG="not-found" |
| 5286 | fi |
| 5287 | fi |
| 5288 | HAS_HG=$ac_cv_prog_HAS_HG |
| 5289 | if test -n "$HAS_HG"; then |
| 5290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAS_HG" >&5 |
| 5291 | $as_echo "$HAS_HG" >&6; } |
| 5292 | else |
| 5293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5294 | $as_echo "no" >&6; } |
| 5295 | fi |
| 5296 | |
| 5297 | |
Georg Brandl | 187c111 | 2011-07-03 09:23:20 +0200 | [diff] [blame] | 5298 | else |
| 5299 | HAS_HG=no-repository |
| 5300 | fi |
Georg Brandl | 1ca2e79 | 2011-03-05 20:51:24 +0100 | [diff] [blame] | 5301 | if test $HAS_HG = found |
| 5302 | then |
| 5303 | HGVERSION="hg id -i \$(srcdir)" |
| 5304 | HGTAG="hg id -t \$(srcdir)" |
| 5305 | HGBRANCH="hg id -b \$(srcdir)" |
| 5306 | else |
| 5307 | HGVERSION="" |
| 5308 | HGTAG="" |
| 5309 | HGBRANCH="" |
| 5310 | fi |
| 5311 | |
Georg Brandl | 187c111 | 2011-07-03 09:23:20 +0200 | [diff] [blame] | 5312 | |
Matthias Klose | c4c4842 | 2012-10-21 23:05:35 +0200 | [diff] [blame] | 5313 | for ac_prog in python$PACKAGE_VERSION python3 python |
| 5314 | do |
| 5315 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5316 | set dummy $ac_prog; ac_word=$2 |
Georg Brandl | 187c111 | 2011-07-03 09:23:20 +0200 | [diff] [blame] | 5317 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5318 | $as_echo_n "checking for $ac_word... " >&6; } |
Matthias Klose | c4c4842 | 2012-10-21 23:05:35 +0200 | [diff] [blame] | 5319 | if ${ac_cv_prog_PYTHON+:} false; then : |
Georg Brandl | 187c111 | 2011-07-03 09:23:20 +0200 | [diff] [blame] | 5320 | $as_echo_n "(cached) " >&6 |
| 5321 | else |
Matthias Klose | c4c4842 | 2012-10-21 23:05:35 +0200 | [diff] [blame] | 5322 | if test -n "$PYTHON"; then |
| 5323 | ac_cv_prog_PYTHON="$PYTHON" # Let the user override the test. |
Georg Brandl | 187c111 | 2011-07-03 09:23:20 +0200 | [diff] [blame] | 5324 | else |
| 5325 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5326 | for as_dir in $PATH |
| 5327 | do |
| 5328 | IFS=$as_save_IFS |
| 5329 | test -z "$as_dir" && as_dir=. |
| 5330 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 5331 | 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] | 5332 | ac_cv_prog_PYTHON="$ac_prog" |
Georg Brandl | 187c111 | 2011-07-03 09:23:20 +0200 | [diff] [blame] | 5333 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5334 | break 2 |
| 5335 | fi |
| 5336 | done |
| 5337 | done |
| 5338 | IFS=$as_save_IFS |
| 5339 | |
Georg Brandl | 187c111 | 2011-07-03 09:23:20 +0200 | [diff] [blame] | 5340 | fi |
| 5341 | fi |
Matthias Klose | c4c4842 | 2012-10-21 23:05:35 +0200 | [diff] [blame] | 5342 | PYTHON=$ac_cv_prog_PYTHON |
| 5343 | if test -n "$PYTHON"; then |
| 5344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 |
| 5345 | $as_echo "$PYTHON" >&6; } |
Georg Brandl | 187c111 | 2011-07-03 09:23:20 +0200 | [diff] [blame] | 5346 | else |
| 5347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5348 | $as_echo "no" >&6; } |
| 5349 | fi |
| 5350 | |
| 5351 | |
Matthias Klose | c4c4842 | 2012-10-21 23:05:35 +0200 | [diff] [blame] | 5352 | test -n "$PYTHON" && break |
| 5353 | done |
| 5354 | test -n "$PYTHON" || PYTHON="not-found" |
| 5355 | |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 5356 | if test "$PYTHON" = not-found; then |
Matthias Klose | c4c4842 | 2012-10-21 23:05:35 +0200 | [diff] [blame] | 5357 | ASDLGEN="@echo python: $PYTHON! cannot run \$(srcdir)/Parser/asdl_c.py #" |
| 5358 | else |
| 5359 | ASDLGEN="$PYTHON" |
Georg Brandl | 187c111 | 2011-07-03 09:23:20 +0200 | [diff] [blame] | 5360 | fi |
| 5361 | |
| 5362 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5363 | case $MACHDEP in |
| 5364 | bsdos*|hp*|HP*) |
| 5365 | # install -d does not work on BSDI or HP-UX |
| 5366 | if test -z "$INSTALL" |
| 5367 | then |
| 5368 | INSTALL="${srcdir}/install-sh -c" |
| 5369 | fi |
| 5370 | esac |
| 5371 | ac_aux_dir= |
| 5372 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 5373 | if test -f "$ac_dir/install-sh"; then |
| 5374 | ac_aux_dir=$ac_dir |
| 5375 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 5376 | break |
| 5377 | elif test -f "$ac_dir/install.sh"; then |
| 5378 | ac_aux_dir=$ac_dir |
| 5379 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 5380 | break |
| 5381 | elif test -f "$ac_dir/shtool"; then |
| 5382 | ac_aux_dir=$ac_dir |
| 5383 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 5384 | break |
| 5385 | fi |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5386 | done |
| 5387 | if test -z "$ac_aux_dir"; then |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 5388 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5389 | fi |
| 5390 | |
| 5391 | # These three variables are undocumented and unsupported, |
| 5392 | # and are intended to be withdrawn in a future Autoconf release. |
| 5393 | # They can cause serious problems if a builder's source tree is in a directory |
| 5394 | # whose full name contains unusual characters. |
| 5395 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 5396 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 5397 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 5398 | |
| 5399 | |
| 5400 | # Find a good install program. We prefer a C program (faster), |
| 5401 | # so one script is as good as another. But avoid the broken or |
| 5402 | # incompatible versions: |
| 5403 | # SysV /etc/install, /usr/sbin/install |
| 5404 | # SunOS /usr/etc/install |
| 5405 | # IRIX /sbin/install |
| 5406 | # AIX /bin/install |
| 5407 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 5408 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 5409 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 5410 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 5411 | # OS/2's system install, which has a completely different semantic |
| 5412 | # ./install, which can be erroneously created by make from ./install.sh. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5413 | # Reject install programs that cannot install multiple files. |
| 5414 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
| 5415 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5416 | if test -z "$INSTALL"; then |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 5417 | if ${ac_cv_path_install+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5418 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5419 | else |
| 5420 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5421 | for as_dir in $PATH |
| 5422 | do |
| 5423 | IFS=$as_save_IFS |
| 5424 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5425 | # Account for people who put trailing slashes in PATH elements. |
| 5426 | case $as_dir/ in #(( |
| 5427 | ./ | .// | /[cC]/* | \ |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5428 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5429 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5430 | /usr/ucb/* ) ;; |
| 5431 | *) |
| 5432 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 5433 | # Don't use installbsd from OSF since it installs stuff as root |
| 5434 | # by default. |
| 5435 | for ac_prog in ginstall scoinst install; do |
| 5436 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 5437 | 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] | 5438 | if test $ac_prog = install && |
| 5439 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 5440 | # AIX install. It has an incompatible calling convention. |
| 5441 | : |
| 5442 | elif test $ac_prog = install && |
| 5443 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 5444 | # program-specific install script used by HP pwplus--don't use. |
| 5445 | : |
| 5446 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5447 | rm -rf conftest.one conftest.two conftest.dir |
| 5448 | echo one > conftest.one |
| 5449 | echo two > conftest.two |
| 5450 | mkdir conftest.dir |
| 5451 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 5452 | test -s conftest.one && test -s conftest.two && |
| 5453 | test -s conftest.dir/conftest.one && |
| 5454 | test -s conftest.dir/conftest.two |
| 5455 | then |
| 5456 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 5457 | break 3 |
| 5458 | fi |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5459 | fi |
| 5460 | fi |
| 5461 | done |
| 5462 | done |
| 5463 | ;; |
| 5464 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5465 | |
| 5466 | done |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5467 | IFS=$as_save_IFS |
| 5468 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5469 | rm -rf conftest.one conftest.two conftest.dir |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5470 | |
| 5471 | fi |
| 5472 | if test "${ac_cv_path_install+set}" = set; then |
| 5473 | INSTALL=$ac_cv_path_install |
| 5474 | else |
| 5475 | # As a last resort, use the slow shell script. Don't cache a |
| 5476 | # value for INSTALL within a source directory, because that will |
| 5477 | # break other packages using the cache if that directory is |
| 5478 | # removed, or if the value is a relative name. |
| 5479 | INSTALL=$ac_install_sh |
| 5480 | fi |
| 5481 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
| 5483 | $as_echo "$INSTALL" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5484 | |
| 5485 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 5486 | # It thinks the first close brace ends the variable substitution. |
| 5487 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 5488 | |
| 5489 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 5490 | |
| 5491 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 5492 | |
Trent Nelson | a45afca | 2012-08-30 14:32:02 +0000 | [diff] [blame] | 5493 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
| 5494 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
| 5495 | if test -z "$MKDIR_P"; then |
| 5496 | if ${ac_cv_path_mkdir+:} false; then : |
| 5497 | $as_echo_n "(cached) " >&6 |
| 5498 | else |
| 5499 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5500 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
| 5501 | do |
| 5502 | IFS=$as_save_IFS |
| 5503 | test -z "$as_dir" && as_dir=. |
| 5504 | for ac_prog in mkdir gmkdir; do |
| 5505 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 5506 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
Trent Nelson | a45afca | 2012-08-30 14:32:02 +0000 | [diff] [blame] | 5507 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
| 5508 | 'mkdir (GNU coreutils) '* | \ |
| 5509 | 'mkdir (coreutils) '* | \ |
| 5510 | 'mkdir (fileutils) '4.1*) |
| 5511 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
| 5512 | break 3;; |
| 5513 | esac |
| 5514 | done |
| 5515 | done |
| 5516 | done |
| 5517 | IFS=$as_save_IFS |
| 5518 | |
| 5519 | fi |
| 5520 | |
| 5521 | test -d ./--version && rmdir ./--version |
| 5522 | if test "${ac_cv_path_mkdir+set}" = set; then |
| 5523 | MKDIR_P="$ac_cv_path_mkdir -p" |
| 5524 | else |
| 5525 | # As a last resort, use the slow shell script. Don't cache a |
| 5526 | # value for MKDIR_P within a source directory, because that will |
| 5527 | # break other packages using the cache if that directory is |
| 5528 | # removed, or if the value is a relative name. |
| 5529 | MKDIR_P="$ac_install_sh -d" |
| 5530 | fi |
| 5531 | fi |
| 5532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
| 5533 | $as_echo "$MKDIR_P" >&6; } |
| 5534 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5535 | |
| 5536 | # Not every filesystem supports hard links |
| 5537 | |
| 5538 | if test -z "$LN" ; then |
| 5539 | case $ac_sys_system in |
| 5540 | CYGWIN*) LN="ln -s";; |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5541 | *) LN=ln;; |
| 5542 | esac |
| 5543 | fi |
| 5544 | |
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 5545 | # For calculating the .so ABI tag. |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5546 | |
| 5547 | ABIFLAGS="" |
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 5548 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5549 | # Check for --with-pydebug |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5550 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pydebug" >&5 |
| 5551 | $as_echo_n "checking for --with-pydebug... " >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5552 | |
| 5553 | # Check whether --with-pydebug was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5554 | if test "${with_pydebug+set}" = set; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5555 | withval=$with_pydebug; |
| 5556 | if test "$withval" != no |
| 5557 | then |
| 5558 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5559 | $as_echo "#define Py_DEBUG 1" >>confdefs.h |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5560 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5562 | $as_echo "yes" >&6; }; |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5563 | Py_DEBUG='true' |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5564 | ABIFLAGS="${ABIFLAGS}d" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5565 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5566 | $as_echo "no" >&6; }; Py_DEBUG='false' |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5567 | fi |
| 5568 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5570 | $as_echo "no" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5571 | fi |
| 5572 | |
| 5573 | |
| 5574 | # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be |
| 5575 | # merged with this chunk of code? |
| 5576 | |
| 5577 | # Optimizer/debugger flags |
| 5578 | # ------------------------ |
| 5579 | # (The following bit of code is complicated enough - please keep things |
| 5580 | # indented properly. Just pretend you're editing Python code. ;-) |
| 5581 | |
| 5582 | # There are two parallel sets of case statements below, one that checks to |
| 5583 | # see if OPT was set and one that does BASECFLAGS setting based upon |
| 5584 | # compiler and platform. BASECFLAGS tweaks need to be made even if the |
| 5585 | # user set OPT. |
| 5586 | |
| 5587 | # tweak OPT based on compiler and platform, only if the user didn't set |
| 5588 | # it on the command line |
| 5589 | |
Benjamin Peterson | 65b4ec5 | 2010-03-23 21:02:34 +0000 | [diff] [blame] | 5590 | if test "${OPT-unset}" = "unset" |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5591 | then |
| 5592 | case $GCC in |
| 5593 | yes) |
| 5594 | if test "$CC" != 'g++' ; then |
| 5595 | STRICT_PROTO="-Wstrict-prototypes" |
| 5596 | fi |
| 5597 | # For gcc 4.x we need to use -fwrapv so lets check if its supported |
| 5598 | if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then |
| 5599 | WRAP="-fwrapv" |
| 5600 | fi |
Stefan Krah | 962055d | 2011-09-14 15:14:08 +0200 | [diff] [blame] | 5601 | |
| 5602 | # Clang also needs -fwrapv |
Stefan Krah | af04ff2 | 2011-12-08 22:20:31 +0100 | [diff] [blame] | 5603 | case $CC in |
| 5604 | *clang*) WRAP="-fwrapv" |
| 5605 | ;; |
| 5606 | esac |
Stefan Krah | 962055d | 2011-09-14 15:14:08 +0200 | [diff] [blame] | 5607 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5608 | case $ac_cv_prog_cc_g in |
| 5609 | yes) |
| 5610 | if test "$Py_DEBUG" = 'true' ; then |
| 5611 | # Optimization messes up debuggers, so turn it off for |
| 5612 | # debug builds. |
Mark Dickinson | b2153e9 | 2010-05-05 22:31:36 +0000 | [diff] [blame] | 5613 | OPT="-g -O0 -Wall $STRICT_PROTO" |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5614 | else |
| 5615 | OPT="-g $WRAP -O3 -Wall $STRICT_PROTO" |
| 5616 | fi |
| 5617 | ;; |
| 5618 | *) |
| 5619 | OPT="-O3 -Wall $STRICT_PROTO" |
| 5620 | ;; |
| 5621 | esac |
| 5622 | case $ac_sys_system in |
| 5623 | SCO_SV*) OPT="$OPT -m486 -DSCO5" |
| 5624 | ;; |
| 5625 | esac |
| 5626 | ;; |
| 5627 | |
| 5628 | *) |
| 5629 | OPT="-O" |
| 5630 | ;; |
| 5631 | esac |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5632 | fi |
| 5633 | |
| 5634 | |
| 5635 | |
| 5636 | # The -arch flags for universal builds on OSX |
| 5637 | UNIVERSAL_ARCH_FLAGS= |
| 5638 | |
| 5639 | |
| 5640 | # tweak BASECFLAGS based on compiler and platform |
| 5641 | case $GCC in |
| 5642 | yes) |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 5643 | # Python doesn't violate C99 aliasing rules, but older versions of |
| 5644 | # GCC produce warnings for legal Python code. Enable |
| 5645 | # -fno-strict-aliasing on versions of GCC that support but produce |
| 5646 | # warnings. See Issue3326 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5647 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts and needs -fno-strict-aliasing" >&5 |
| 5648 | $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] | 5649 | ac_save_cc="$CC" |
| 5650 | CC="$CC -fno-strict-aliasing" |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 5651 | save_CFLAGS="$CFLAGS" |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 5652 | if ${ac_cv_no_strict_aliasing+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5653 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 5654 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5655 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5656 | /* end confdefs.h. */ |
Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 +0000 | [diff] [blame] | 5657 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 5658 | |
Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 +0000 | [diff] [blame] | 5659 | int |
| 5660 | main () |
| 5661 | { |
Mark Dickinson | 8c2b6f1 | 2010-05-11 09:23:07 +0000 | [diff] [blame] | 5662 | |
Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 +0000 | [diff] [blame] | 5663 | ; |
| 5664 | return 0; |
| 5665 | } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 5666 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5667 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5668 | if ac_fn_c_try_compile "$LINENO"; then : |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 5669 | |
| 5670 | CC="$ac_save_cc -fstrict-aliasing" |
| 5671 | CFLAGS="$CFLAGS -Werror -Wstrict-aliasing" |
| 5672 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 5673 | /* end confdefs.h. */ |
| 5674 | |
Mark Dickinson | 8c2b6f1 | 2010-05-11 09:23:07 +0000 | [diff] [blame] | 5675 | void f(int **x) {} |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 5676 | int |
| 5677 | main () |
| 5678 | { |
Mark Dickinson | 8c2b6f1 | 2010-05-11 09:23:07 +0000 | [diff] [blame] | 5679 | double *x; f((int **) &x); |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 5680 | ; |
| 5681 | return 0; |
| 5682 | } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 5683 | |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 5684 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5685 | if ac_fn_c_try_compile "$LINENO"; then : |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 5686 | |
| 5687 | ac_cv_no_strict_aliasing=no |
| 5688 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5689 | else |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 5690 | |
| 5691 | ac_cv_no_strict_aliasing=yes |
| 5692 | |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 5693 | fi |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 5694 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 5695 | |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 5696 | else |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 5697 | |
| 5698 | ac_cv_no_strict_aliasing=no |
| 5699 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5700 | fi |
Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 +0000 | [diff] [blame] | 5701 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 5702 | fi |
| 5703 | |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 5704 | CFLAGS="$save_CFLAGS" |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5705 | CC="$ac_save_cc" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_no_strict_aliasing" >&5 |
| 5707 | $as_echo "$ac_cv_no_strict_aliasing" >&6; } |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 5708 | if test $ac_cv_no_strict_aliasing = yes |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5709 | then |
| 5710 | BASECFLAGS="$BASECFLAGS -fno-strict-aliasing" |
| 5711 | fi |
| 5712 | |
| 5713 | # if using gcc on alpha, use -mieee to get (near) full IEEE 754 |
| 5714 | # support. Without this, treatment of subnormals doesn't follow |
| 5715 | # the standard. |
| 5716 | case $ac_sys_machine in |
| 5717 | alpha*) |
| 5718 | BASECFLAGS="$BASECFLAGS -mieee" |
| 5719 | ;; |
| 5720 | esac |
| 5721 | |
| 5722 | case $ac_sys_system in |
| 5723 | SCO_SV*) |
| 5724 | BASECFLAGS="$BASECFLAGS -m486 -DSCO5" |
| 5725 | ;; |
| 5726 | # is there any other compiler on Darwin besides gcc? |
| 5727 | Darwin*) |
| 5728 | # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd |
| 5729 | # used to be here, but non-Apple gcc doesn't accept them. |
Ronald Oussoren | 666028b | 2010-04-18 19:07:43 +0000 | [diff] [blame] | 5730 | if test "${CC}" = gcc |
| 5731 | then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5732 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which compiler should be used" >&5 |
| 5733 | $as_echo_n "checking which compiler should be used... " >&6; } |
Ronald Oussoren | 666028b | 2010-04-18 19:07:43 +0000 | [diff] [blame] | 5734 | case "${UNIVERSALSDK}" in |
| 5735 | */MacOSX10.4u.sdk) |
| 5736 | # Build using 10.4 SDK, force usage of gcc when the |
| 5737 | # compiler is gcc, otherwise the user will get very |
| 5738 | # confusing error messages when building on OSX 10.6 |
| 5739 | CC=gcc-4.0 |
| 5740 | CPP=cpp-4.0 |
| 5741 | ;; |
| 5742 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 5744 | $as_echo "$CC" >&6; } |
Ronald Oussoren | 666028b | 2010-04-18 19:07:43 +0000 | [diff] [blame] | 5745 | fi |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5746 | |
| 5747 | |
| 5748 | if test "${enable_universalsdk}"; then |
| 5749 | UNIVERSAL_ARCH_FLAGS="" |
| 5750 | if test "$UNIVERSAL_ARCHS" = "32-bit" ; then |
| 5751 | UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386" |
| 5752 | ARCH_RUN_32BIT="" |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 5753 | LIPO_32BIT_FLAGS="" |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5754 | elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then |
| 5755 | UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64" |
Ronald Oussoren | 6f6c562 | 2009-12-24 14:03:19 +0000 | [diff] [blame] | 5756 | LIPO_32BIT_FLAGS="" |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 5757 | ARCH_RUN_32BIT="true" |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5758 | |
| 5759 | elif test "$UNIVERSAL_ARCHS" = "all" ; then |
| 5760 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64" |
Ronald Oussoren | 6f6c562 | 2009-12-24 14:03:19 +0000 | [diff] [blame] | 5761 | LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" |
Ronald Oussoren | 564f7f2 | 2010-02-11 13:23:08 +0000 | [diff] [blame] | 5762 | ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5763 | |
Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 5764 | elif test "$UNIVERSAL_ARCHS" = "intel" ; then |
| 5765 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64" |
Ronald Oussoren | 6f6c562 | 2009-12-24 14:03:19 +0000 | [diff] [blame] | 5766 | LIPO_32BIT_FLAGS="-extract i386" |
Ronald Oussoren | 564f7f2 | 2010-02-11 13:23:08 +0000 | [diff] [blame] | 5767 | ARCH_RUN_32BIT="/usr/bin/arch -i386" |
Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 5768 | |
| 5769 | elif test "$UNIVERSAL_ARCHS" = "3-way" ; then |
| 5770 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64" |
Ronald Oussoren | 6f6c562 | 2009-12-24 14:03:19 +0000 | [diff] [blame] | 5771 | LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" |
Ronald Oussoren | 564f7f2 | 2010-02-11 13:23:08 +0000 | [diff] [blame] | 5772 | ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" |
Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 5773 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5774 | else |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 5775 | as_fn_error $? "proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" "$LINENO" 5 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5776 | |
| 5777 | fi |
| 5778 | |
| 5779 | |
Ronald Oussoren | 666028b | 2010-04-18 19:07:43 +0000 | [diff] [blame] | 5780 | CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}" |
| 5781 | if test "${UNIVERSALSDK}" != "/" |
| 5782 | then |
| 5783 | CFLAGS="-isysroot ${UNIVERSALSDK} ${CFLAGS}" |
| 5784 | LDFLAGS="-isysroot ${UNIVERSALSDK} ${LDFLAGS}" |
Ronald Oussoren | 712979d | 2010-04-20 19:51:33 +0000 | [diff] [blame] | 5785 | CPPFLAGS="-isysroot ${UNIVERSALSDK} ${CPPFLAGS}" |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5786 | fi |
| 5787 | fi |
| 5788 | |
| 5789 | # Calculate the right deployment target for this build. |
| 5790 | # |
| 5791 | cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'` |
| 5792 | if test ${cur_target} '>' 10.2; then |
| 5793 | cur_target=10.3 |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 5794 | if test ${enable_universalsdk}; then |
| 5795 | if test "${UNIVERSAL_ARCHS}" = "all"; then |
| 5796 | # Ensure that the default platform for a |
| 5797 | # 4-way universal build is OSX 10.5, |
| 5798 | # that's the first OS release where |
| 5799 | # 4-way builds make sense. |
| 5800 | cur_target='10.5' |
Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 5801 | |
| 5802 | elif test "${UNIVERSAL_ARCHS}" = "3-way"; then |
| 5803 | cur_target='10.5' |
| 5804 | |
| 5805 | elif test "${UNIVERSAL_ARCHS}" = "intel"; then |
| 5806 | cur_target='10.5' |
| 5807 | |
| 5808 | elif test "${UNIVERSAL_ARCHS}" = "64-bit"; then |
| 5809 | cur_target='10.5' |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 5810 | fi |
| 5811 | else |
Ronald Oussoren | e3da75a | 2010-02-11 13:38:58 +0000 | [diff] [blame] | 5812 | if test `/usr/bin/arch` = "i386"; then |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 5813 | # On Intel macs default to a deployment |
| 5814 | # target of 10.4, that's the first OSX |
| 5815 | # release with Intel support. |
| 5816 | cur_target="10.4" |
| 5817 | fi |
| 5818 | fi |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5819 | fi |
| 5820 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}} |
| 5821 | |
| 5822 | # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the |
| 5823 | # environment with a value that is the same as what we'll use |
| 5824 | # in the Makefile to ensure that we'll get the same compiler |
| 5825 | # environment during configure and build time. |
| 5826 | MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET" |
| 5827 | export MACOSX_DEPLOYMENT_TARGET |
| 5828 | EXPORT_MACOSX_DEPLOYMENT_TARGET='' |
| 5829 | |
| 5830 | ;; |
| 5831 | OSF*) |
| 5832 | BASECFLAGS="$BASECFLAGS -mieee" |
| 5833 | ;; |
| 5834 | esac |
| 5835 | ;; |
| 5836 | |
| 5837 | *) |
| 5838 | case $ac_sys_system in |
| 5839 | OpenUNIX*|UnixWare*) |
| 5840 | BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca " |
| 5841 | ;; |
| 5842 | OSF*) |
| 5843 | BASECFLAGS="$BASECFLAGS -ieee -std" |
| 5844 | ;; |
| 5845 | SCO_SV*) |
| 5846 | BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5" |
| 5847 | ;; |
| 5848 | esac |
| 5849 | ;; |
| 5850 | esac |
| 5851 | |
| 5852 | if test "$Py_DEBUG" = 'true'; then |
| 5853 | : |
| 5854 | else |
| 5855 | OPT="-DNDEBUG $OPT" |
| 5856 | fi |
| 5857 | |
| 5858 | if test "$ac_arch_flags" |
| 5859 | then |
| 5860 | BASECFLAGS="$BASECFLAGS $ac_arch_flags" |
| 5861 | fi |
| 5862 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5863 | # Check whether GCC supports PyArg_ParseTuple format |
| 5864 | if test "$GCC" = "yes" |
| 5865 | then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5866 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc supports ParseTuple __format__" >&5 |
| 5867 | $as_echo_n "checking whether gcc supports ParseTuple __format__... " >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5868 | save_CFLAGS=$CFLAGS |
| 5869 | CFLAGS="$CFLAGS -Werror" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5870 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5871 | /* end confdefs.h. */ |
| 5872 | |
| 5873 | void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2))); |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5874 | int |
| 5875 | main () |
| 5876 | { |
| 5877 | |
| 5878 | ; |
| 5879 | return 0; |
| 5880 | } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 5881 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5882 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5883 | if ac_fn_c_try_compile "$LINENO"; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5884 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 5885 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5886 | $as_echo "#define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1" >>confdefs.h |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5887 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 5888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5889 | $as_echo "yes" >&6; } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 5890 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5891 | else |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 5892 | |
| 5893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5894 | $as_echo "no" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5895 | |
| 5896 | fi |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5897 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5898 | CFLAGS=$save_CFLAGS |
| 5899 | fi |
| 5900 | |
| 5901 | # On some compilers, pthreads are available without further options |
| 5902 | # (e.g. MacOS X). On some of these systems, the compiler will not |
| 5903 | # complain if unaccepted options are passed (e.g. gcc on Mac OS X). |
| 5904 | # So we have to see first whether pthreads are available without |
| 5905 | # options before we can check whether -Kpthread improves anything. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5906 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads are available without options" >&5 |
| 5907 | $as_echo_n "checking whether pthreads are available without options... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 5908 | if ${ac_cv_pthread_is_default+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5909 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5910 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5911 | if test "$cross_compiling" = yes; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5912 | ac_cv_pthread_is_default=no |
| 5913 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5914 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5915 | /* end confdefs.h. */ |
| 5916 | |
| 5917 | #include <pthread.h> |
| 5918 | |
| 5919 | void* routine(void* p){return NULL;} |
| 5920 | |
| 5921 | int main(){ |
| 5922 | pthread_t p; |
| 5923 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 5924 | return 1; |
| 5925 | (void)pthread_detach(p); |
| 5926 | return 0; |
| 5927 | } |
| 5928 | |
| 5929 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5930 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5931 | |
| 5932 | ac_cv_pthread_is_default=yes |
| 5933 | ac_cv_kthread=no |
| 5934 | ac_cv_pthread=no |
| 5935 | |
| 5936 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5937 | ac_cv_pthread_is_default=no |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5938 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5939 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 5940 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5941 | fi |
| 5942 | |
| 5943 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5944 | fi |
| 5945 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_is_default" >&5 |
| 5947 | $as_echo "$ac_cv_pthread_is_default" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5948 | |
| 5949 | |
| 5950 | if test $ac_cv_pthread_is_default = yes |
| 5951 | then |
| 5952 | ac_cv_kpthread=no |
| 5953 | else |
| 5954 | # -Kpthread, if available, provides the right #defines |
| 5955 | # and linker options to make pthread_create available |
| 5956 | # Some compilers won't report that they do not support -Kpthread, |
| 5957 | # so we need to run a program to see whether it really made the |
| 5958 | # function available. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5959 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kpthread" >&5 |
| 5960 | $as_echo_n "checking whether $CC accepts -Kpthread... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 5961 | if ${ac_cv_kpthread+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5962 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5963 | else |
| 5964 | ac_save_cc="$CC" |
| 5965 | CC="$CC -Kpthread" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5966 | if test "$cross_compiling" = yes; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5967 | ac_cv_kpthread=no |
| 5968 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5969 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5970 | /* end confdefs.h. */ |
| 5971 | |
| 5972 | #include <pthread.h> |
| 5973 | |
| 5974 | void* routine(void* p){return NULL;} |
| 5975 | |
| 5976 | int main(){ |
| 5977 | pthread_t p; |
| 5978 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 5979 | return 1; |
| 5980 | (void)pthread_detach(p); |
| 5981 | return 0; |
| 5982 | } |
| 5983 | |
| 5984 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5985 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5986 | ac_cv_kpthread=yes |
| 5987 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5988 | ac_cv_kpthread=no |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5989 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5990 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 5991 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5992 | fi |
| 5993 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5994 | CC="$ac_save_cc" |
| 5995 | fi |
| 5996 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kpthread" >&5 |
| 5998 | $as_echo "$ac_cv_kpthread" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5999 | fi |
| 6000 | |
| 6001 | if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no |
| 6002 | then |
| 6003 | # -Kthread, if available, provides the right #defines |
| 6004 | # and linker options to make pthread_create available |
| 6005 | # Some compilers won't report that they do not support -Kthread, |
| 6006 | # so we need to run a program to see whether it really made the |
| 6007 | # function available. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6008 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kthread" >&5 |
| 6009 | $as_echo_n "checking whether $CC accepts -Kthread... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 6010 | if ${ac_cv_kthread+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6011 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6012 | else |
| 6013 | ac_save_cc="$CC" |
| 6014 | CC="$CC -Kthread" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6015 | if test "$cross_compiling" = yes; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6016 | ac_cv_kthread=no |
| 6017 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6018 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6019 | /* end confdefs.h. */ |
| 6020 | |
| 6021 | #include <pthread.h> |
| 6022 | |
| 6023 | void* routine(void* p){return NULL;} |
| 6024 | |
| 6025 | int main(){ |
| 6026 | pthread_t p; |
| 6027 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 6028 | return 1; |
| 6029 | (void)pthread_detach(p); |
| 6030 | return 0; |
| 6031 | } |
| 6032 | |
| 6033 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6034 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6035 | ac_cv_kthread=yes |
| 6036 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6037 | ac_cv_kthread=no |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6038 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6039 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 6040 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6041 | fi |
| 6042 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6043 | CC="$ac_save_cc" |
| 6044 | fi |
| 6045 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6046 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kthread" >&5 |
| 6047 | $as_echo "$ac_cv_kthread" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6048 | fi |
| 6049 | |
| 6050 | if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no |
| 6051 | then |
| 6052 | # -pthread, if available, provides the right #defines |
| 6053 | # and linker options to make pthread_create available |
| 6054 | # Some compilers won't report that they do not support -pthread, |
| 6055 | # so we need to run a program to see whether it really made the |
| 6056 | # function available. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6057 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -pthread" >&5 |
| 6058 | $as_echo_n "checking whether $CC accepts -pthread... " >&6; } |
doko@python.org | 7981f20 | 2013-01-25 15:33:25 +0100 | [diff] [blame] | 6059 | if ${ac_cv_pthread+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6060 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6061 | else |
| 6062 | ac_save_cc="$CC" |
| 6063 | CC="$CC -pthread" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6064 | if test "$cross_compiling" = yes; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6065 | ac_cv_pthread=no |
| 6066 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6067 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6068 | /* end confdefs.h. */ |
| 6069 | |
| 6070 | #include <pthread.h> |
| 6071 | |
| 6072 | void* routine(void* p){return NULL;} |
| 6073 | |
| 6074 | int main(){ |
| 6075 | pthread_t p; |
| 6076 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 6077 | return 1; |
| 6078 | (void)pthread_detach(p); |
| 6079 | return 0; |
| 6080 | } |
| 6081 | |
| 6082 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6083 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6084 | ac_cv_pthread=yes |
| 6085 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6086 | ac_cv_pthread=no |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6087 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6088 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 6089 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6090 | fi |
| 6091 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6092 | CC="$ac_save_cc" |
| 6093 | fi |
| 6094 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread" >&5 |
| 6096 | $as_echo "$ac_cv_pthread" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6097 | fi |
| 6098 | |
| 6099 | # If we have set a CC compiler flag for thread support then |
| 6100 | # check if it works for CXX, too. |
| 6101 | ac_cv_cxx_thread=no |
| 6102 | if test ! -z "$CXX" |
| 6103 | then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6104 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX also accepts flags for thread support" >&5 |
| 6105 | $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] | 6106 | ac_save_cxx="$CXX" |
| 6107 | |
| 6108 | if test "$ac_cv_kpthread" = "yes" |
| 6109 | then |
| 6110 | CXX="$CXX -Kpthread" |
| 6111 | ac_cv_cxx_thread=yes |
| 6112 | elif test "$ac_cv_kthread" = "yes" |
| 6113 | then |
| 6114 | CXX="$CXX -Kthread" |
| 6115 | ac_cv_cxx_thread=yes |
| 6116 | elif test "$ac_cv_pthread" = "yes" |
| 6117 | then |
| 6118 | CXX="$CXX -pthread" |
| 6119 | ac_cv_cxx_thread=yes |
| 6120 | fi |
| 6121 | |
| 6122 | if test $ac_cv_cxx_thread = yes |
| 6123 | then |
| 6124 | echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext |
| 6125 | $CXX -c conftest.$ac_ext 2>&5 |
| 6126 | if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ |
| 6127 | && test -s conftest$ac_exeext && ./conftest$ac_exeext |
| 6128 | then |
| 6129 | ac_cv_cxx_thread=yes |
| 6130 | else |
| 6131 | ac_cv_cxx_thread=no |
| 6132 | fi |
| 6133 | rm -fr conftest* |
| 6134 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_thread" >&5 |
| 6136 | $as_echo "$ac_cv_cxx_thread" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6137 | fi |
| 6138 | CXX="$ac_save_cxx" |
| 6139 | |
| 6140 | |
| 6141 | # checks for header files |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6142 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 6143 | $as_echo_n "checking for ANSI C header files... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 6144 | if ${ac_cv_header_stdc+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6145 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6146 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6147 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6148 | /* end confdefs.h. */ |
| 6149 | #include <stdlib.h> |
| 6150 | #include <stdarg.h> |
| 6151 | #include <string.h> |
| 6152 | #include <float.h> |
| 6153 | |
| 6154 | int |
| 6155 | main () |
| 6156 | { |
| 6157 | |
| 6158 | ; |
| 6159 | return 0; |
| 6160 | } |
| 6161 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6162 | if ac_fn_c_try_compile "$LINENO"; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6163 | ac_cv_header_stdc=yes |
| 6164 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6165 | ac_cv_header_stdc=no |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6166 | fi |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6167 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6168 | |
| 6169 | if test $ac_cv_header_stdc = yes; then |
| 6170 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6171 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6172 | /* end confdefs.h. */ |
| 6173 | #include <string.h> |
| 6174 | |
| 6175 | _ACEOF |
| 6176 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6177 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 6178 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6179 | else |
| 6180 | ac_cv_header_stdc=no |
| 6181 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 6182 | rm -f conftest* |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6183 | |
| 6184 | fi |
| 6185 | |
| 6186 | if test $ac_cv_header_stdc = yes; then |
| 6187 | # 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] | 6188 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6189 | /* end confdefs.h. */ |
| 6190 | #include <stdlib.h> |
| 6191 | |
| 6192 | _ACEOF |
| 6193 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6194 | $EGREP "free" >/dev/null 2>&1; then : |
| 6195 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6196 | else |
| 6197 | ac_cv_header_stdc=no |
| 6198 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 6199 | rm -f conftest* |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6200 | |
| 6201 | fi |
| 6202 | |
| 6203 | if test $ac_cv_header_stdc = yes; then |
| 6204 | # /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] | 6205 | if test "$cross_compiling" = yes; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6206 | : |
| 6207 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6208 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6209 | /* end confdefs.h. */ |
| 6210 | #include <ctype.h> |
| 6211 | #include <stdlib.h> |
| 6212 | #if ((' ' & 0x0FF) == 0x020) |
| 6213 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 6214 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 6215 | #else |
| 6216 | # define ISLOWER(c) \ |
| 6217 | (('a' <= (c) && (c) <= 'i') \ |
| 6218 | || ('j' <= (c) && (c) <= 'r') \ |
| 6219 | || ('s' <= (c) && (c) <= 'z')) |
| 6220 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 6221 | #endif |
| 6222 | |
| 6223 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 6224 | int |
| 6225 | main () |
| 6226 | { |
| 6227 | int i; |
| 6228 | for (i = 0; i < 256; i++) |
| 6229 | if (XOR (islower (i), ISLOWER (i)) |
| 6230 | || toupper (i) != TOUPPER (i)) |
| 6231 | return 2; |
| 6232 | return 0; |
| 6233 | } |
| 6234 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6235 | if ac_fn_c_try_run "$LINENO"; then : |
| 6236 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6237 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6238 | ac_cv_header_stdc=no |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6239 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6240 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 6241 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6242 | fi |
| 6243 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6244 | fi |
| 6245 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| 6247 | $as_echo "$ac_cv_header_stdc" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6248 | if test $ac_cv_header_stdc = yes; then |
| 6249 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6250 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6251 | |
| 6252 | fi |
| 6253 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 6254 | for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \ |
| 6255 | fcntl.h grp.h \ |
Christian Heimes | bbe741d | 2008-03-28 10:53:29 +0000 | [diff] [blame] | 6256 | ieeefp.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \ |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 6257 | shadow.h signal.h stdint.h stropts.h termios.h thread.h \ |
Martin v. Löwis | 14e73b1 | 2003-01-01 09:51:12 +0000 | [diff] [blame] | 6258 | unistd.h utime.h \ |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 6259 | sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \ |
| 6260 | sys/lock.h sys/mkdev.h sys/modem.h \ |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 6261 | sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \ |
Gregory P. Smith | 8facece | 2012-01-21 14:01:08 -0800 | [diff] [blame] | 6262 | sys/syscall.h sys/termio.h sys/time.h \ |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 6263 | sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \ |
Hye-Shik Chang | 8126860 | 2004-02-02 06:05:24 +0000 | [diff] [blame] | 6264 | sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \ |
Ronald Oussoren | 755740f | 2010-02-07 19:56:39 +0000 | [diff] [blame] | 6265 | bluetooth/bluetooth.h linux/tipc.h spawn.h util.h |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6266 | do : |
| 6267 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6268 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 6269 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6270 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6271 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6272 | _ACEOF |
| 6273 | |
| 6274 | fi |
| 6275 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6276 | done |
| 6277 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6278 | ac_header_dirent=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6279 | 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] | 6280 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 6281 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 |
| 6282 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 6283 | if eval \${$as_ac_Header+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6284 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6285 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6286 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6287 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6288 | #include <sys/types.h> |
| 6289 | #include <$ac_hdr> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6290 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6291 | int |
| 6292 | main () |
| 6293 | { |
| 6294 | if ((DIR *) 0) |
| 6295 | return 0; |
| 6296 | ; |
| 6297 | return 0; |
| 6298 | } |
| 6299 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6300 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6301 | eval "$as_ac_Header=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6302 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6303 | eval "$as_ac_Header=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6304 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6305 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6306 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6307 | eval ac_res=\$$as_ac_Header |
| 6308 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 6309 | $as_echo "$ac_res" >&6; } |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 6310 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6311 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6312 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6313 | _ACEOF |
| 6314 | |
| 6315 | ac_header_dirent=$ac_hdr; break |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6316 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6317 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6318 | done |
| 6319 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 6320 | if test $ac_header_dirent = dirent.h; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6321 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
| 6322 | $as_echo_n "checking for library containing opendir... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 6323 | if ${ac_cv_search_opendir+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6324 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6325 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6326 | ac_func_search_save_LIBS=$LIBS |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6327 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6328 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6329 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6330 | /* Override any GCC internal prototype to avoid an error. |
| 6331 | Use char because int might match the return type of a GCC |
| 6332 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6333 | #ifdef __cplusplus |
| 6334 | extern "C" |
| 6335 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6336 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6337 | int |
| 6338 | main () |
| 6339 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6340 | return opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6341 | ; |
| 6342 | return 0; |
| 6343 | } |
| 6344 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6345 | for ac_lib in '' dir; do |
| 6346 | if test -z "$ac_lib"; then |
| 6347 | ac_res="none required" |
| 6348 | else |
| 6349 | ac_res=-l$ac_lib |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 6350 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6351 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6352 | if ac_fn_c_try_link "$LINENO"; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6353 | ac_cv_search_opendir=$ac_res |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6354 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6355 | rm -f core conftest.err conftest.$ac_objext \ |
| 6356 | conftest$ac_exeext |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 6357 | if ${ac_cv_search_opendir+:} false; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6358 | break |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 6359 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6360 | done |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 6361 | if ${ac_cv_search_opendir+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6362 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6363 | else |
| 6364 | ac_cv_search_opendir=no |
| 6365 | fi |
| 6366 | rm conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6367 | LIBS=$ac_func_search_save_LIBS |
| 6368 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6369 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
| 6370 | $as_echo "$ac_cv_search_opendir" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6371 | ac_res=$ac_cv_search_opendir |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6372 | if test "$ac_res" != no; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6373 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6374 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6375 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6376 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6377 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6378 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
| 6379 | $as_echo_n "checking for library containing opendir... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 6380 | if ${ac_cv_search_opendir+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6381 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6382 | else |
| 6383 | ac_func_search_save_LIBS=$LIBS |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6384 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6385 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6386 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6387 | /* Override any GCC internal prototype to avoid an error. |
| 6388 | Use char because int might match the return type of a GCC |
| 6389 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6390 | #ifdef __cplusplus |
| 6391 | extern "C" |
| 6392 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6393 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6394 | int |
| 6395 | main () |
| 6396 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6397 | return opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6398 | ; |
| 6399 | return 0; |
| 6400 | } |
| 6401 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6402 | for ac_lib in '' x; do |
| 6403 | if test -z "$ac_lib"; then |
| 6404 | ac_res="none required" |
| 6405 | else |
| 6406 | ac_res=-l$ac_lib |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 6407 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6408 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6409 | if ac_fn_c_try_link "$LINENO"; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6410 | ac_cv_search_opendir=$ac_res |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6411 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6412 | rm -f core conftest.err conftest.$ac_objext \ |
| 6413 | conftest$ac_exeext |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 6414 | if ${ac_cv_search_opendir+:} false; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6415 | break |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 6416 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6417 | done |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 6418 | if ${ac_cv_search_opendir+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6419 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6420 | else |
| 6421 | ac_cv_search_opendir=no |
| 6422 | fi |
| 6423 | rm conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6424 | LIBS=$ac_func_search_save_LIBS |
| 6425 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
| 6427 | $as_echo "$ac_cv_search_opendir" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6428 | ac_res=$ac_cv_search_opendir |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6429 | if test "$ac_res" != no; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6430 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6431 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6432 | fi |
| 6433 | |
| 6434 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6435 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6436 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5 |
| 6437 | $as_echo_n "checking whether sys/types.h defines makedev... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 6438 | if ${ac_cv_header_sys_types_h_makedev+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6439 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6440 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6441 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6442 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6443 | #include <sys/types.h> |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6444 | int |
| 6445 | main () |
| 6446 | { |
| 6447 | return makedev(0, 0); |
| 6448 | ; |
| 6449 | return 0; |
| 6450 | } |
| 6451 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6452 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6453 | ac_cv_header_sys_types_h_makedev=yes |
| 6454 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6455 | ac_cv_header_sys_types_h_makedev=no |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6456 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6457 | rm -f core conftest.err conftest.$ac_objext \ |
| 6458 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6459 | |
| 6460 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6461 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5 |
| 6462 | $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6463 | |
| 6464 | if test $ac_cv_header_sys_types_h_makedev = no; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6465 | ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default" |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 6466 | if test "x$ac_cv_header_sys_mkdev_h" = xyes; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6467 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6468 | $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6469 | |
| 6470 | fi |
| 6471 | |
| 6472 | |
| 6473 | |
| 6474 | if test $ac_cv_header_sys_mkdev_h = no; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6475 | ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default" |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 6476 | if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6477 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6478 | $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6479 | |
| 6480 | fi |
| 6481 | |
| 6482 | |
| 6483 | fi |
| 6484 | fi |
| 6485 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6486 | |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6487 | # On Solaris, term.h requires curses.h |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6488 | for ac_header in term.h |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6489 | do : |
| 6490 | ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" " |
Martin v. Löwis | 5d52e78 | 2004-09-18 10:07:03 +0000 | [diff] [blame] | 6491 | #ifdef HAVE_CURSES_H |
| 6492 | #include <curses.h> |
| 6493 | #endif |
| 6494 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6495 | " |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 6496 | if test "x$ac_cv_header_term_h" = xyes; then : |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6497 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6498 | #define HAVE_TERM_H 1 |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6499 | _ACEOF |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6500 | |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6501 | fi |
| 6502 | |
| 6503 | done |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6504 | |
| 6505 | |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6506 | # On Linux, netlink.h requires asm/types.h |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6507 | for ac_header in linux/netlink.h |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6508 | do : |
| 6509 | 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] | 6510 | #ifdef HAVE_ASM_TYPES_H |
| 6511 | #include <asm/types.h> |
| 6512 | #endif |
| 6513 | #ifdef HAVE_SYS_SOCKET_H |
| 6514 | #include <sys/socket.h> |
| 6515 | #endif |
| 6516 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6517 | " |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 6518 | 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] | 6519 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6520 | #define HAVE_LINUX_NETLINK_H 1 |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6521 | _ACEOF |
| 6522 | |
| 6523 | fi |
| 6524 | |
| 6525 | done |
| 6526 | |
| 6527 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6528 | # checks for typedefs |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6529 | was_it_defined=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6530 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t in time.h" >&5 |
| 6531 | $as_echo_n "checking for clock_t in time.h... " >&6; } |
| 6532 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6533 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6534 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6535 | |
| 6536 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6537 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6538 | $EGREP "clock_t" >/dev/null 2>&1; then : |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6539 | was_it_defined=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6540 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6541 | |
| 6542 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6543 | $as_echo "#define clock_t long" >>confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6544 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 6545 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6546 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 6547 | rm -f conftest* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6548 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5 |
| 6550 | $as_echo "$was_it_defined" >&6; } |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6551 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6552 | # Check whether using makedev requires defining _OSF_SOURCE |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6553 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for makedev" >&5 |
| 6554 | $as_echo_n "checking for makedev... " >&6; } |
| 6555 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6556 | /* end confdefs.h. */ |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6557 | |
Jesus Cea | 740f53a | 2010-04-28 11:35:30 +0000 | [diff] [blame] | 6558 | #if defined(MAJOR_IN_MKDEV) |
| 6559 | #include <sys/mkdev.h> |
| 6560 | #elif defined(MAJOR_IN_SYSMACROS) |
| 6561 | #include <sys/sysmacros.h> |
| 6562 | #else |
| 6563 | #include <sys/types.h> |
| 6564 | #endif |
| 6565 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6566 | int |
| 6567 | main () |
| 6568 | { |
Jesus Cea | 740f53a | 2010-04-28 11:35:30 +0000 | [diff] [blame] | 6569 | |
| 6570 | makedev(0, 0) |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6571 | ; |
| 6572 | return 0; |
| 6573 | } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6574 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6575 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6576 | if ac_fn_c_try_link "$LINENO"; then : |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6577 | ac_cv_has_makedev=yes |
| 6578 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6579 | ac_cv_has_makedev=no |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6580 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6581 | rm -f core conftest.err conftest.$ac_objext \ |
| 6582 | conftest$ac_exeext conftest.$ac_ext |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6583 | if test "$ac_cv_has_makedev" = "no"; then |
| 6584 | # we didn't link, try if _OSF_SOURCE will allow us to link |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6585 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6586 | /* end confdefs.h. */ |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6587 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 6588 | #define _OSF_SOURCE 1 |
| 6589 | #include <sys/types.h> |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6590 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6591 | int |
| 6592 | main () |
| 6593 | { |
| 6594 | makedev(0, 0) |
| 6595 | ; |
| 6596 | return 0; |
| 6597 | } |
| 6598 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6599 | if ac_fn_c_try_link "$LINENO"; then : |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6600 | ac_cv_has_makedev=yes |
| 6601 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6602 | ac_cv_has_makedev=no |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6603 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6604 | rm -f core conftest.err conftest.$ac_objext \ |
| 6605 | conftest$ac_exeext conftest.$ac_ext |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6606 | if test "$ac_cv_has_makedev" = "yes"; then |
| 6607 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6608 | $as_echo "#define _OSF_SOURCE 1" >>confdefs.h |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6609 | |
| 6610 | fi |
| 6611 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_makedev" >&5 |
| 6613 | $as_echo "$ac_cv_has_makedev" >&6; } |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6614 | if test "$ac_cv_has_makedev" = "yes"; then |
| 6615 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6616 | $as_echo "#define HAVE_MAKEDEV 1" >>confdefs.h |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6617 | |
| 6618 | fi |
| 6619 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6620 | # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in |
| 6621 | # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are |
| 6622 | # defined, but the compiler does not support pragma redefine_extname, |
| 6623 | # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit |
| 6624 | # structures (such as rlimit64) without declaring them. As a |
| 6625 | # work-around, disable LFS on such configurations |
| 6626 | |
| 6627 | use_lfs=yes |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6628 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking Solaris LFS bug" >&5 |
| 6629 | $as_echo_n "checking Solaris LFS bug... " >&6; } |
| 6630 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6631 | /* end confdefs.h. */ |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6632 | |
| 6633 | #define _LARGEFILE_SOURCE 1 |
| 6634 | #define _FILE_OFFSET_BITS 64 |
| 6635 | #include <sys/resource.h> |
| 6636 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6637 | int |
| 6638 | main () |
| 6639 | { |
| 6640 | struct rlimit foo; |
| 6641 | ; |
| 6642 | return 0; |
| 6643 | } |
| 6644 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6645 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6646 | sol_lfs_bug=no |
| 6647 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6648 | sol_lfs_bug=yes |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6649 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6650 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sol_lfs_bug" >&5 |
| 6652 | $as_echo "$sol_lfs_bug" >&6; } |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6653 | if test "$sol_lfs_bug" = "yes"; then |
| 6654 | use_lfs=no |
| 6655 | fi |
| 6656 | |
| 6657 | if test "$use_lfs" = "yes"; then |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6658 | # Two defines needed to enable largefile support on various platforms |
| 6659 | # These may affect some typedefs |
Georg Brandl | 216e404 | 2011-02-19 08:58:23 +0000 | [diff] [blame] | 6660 | case $ac_sys_system/$ac_sys_release in |
| 6661 | AIX*) |
| 6662 | |
| 6663 | $as_echo "#define _LARGE_FILES 1" >>confdefs.h |
| 6664 | |
| 6665 | ;; |
| 6666 | esac |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6667 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6668 | $as_echo "#define _LARGEFILE_SOURCE 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6669 | |
| 6670 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6671 | $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6672 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6673 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6674 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 6675 | # Add some code to confdefs.h so that the test for off_t works on SCO |
| 6676 | cat >> confdefs.h <<\EOF |
| 6677 | #if defined(SCO_DS) |
| 6678 | #undef _OFF_T |
| 6679 | #endif |
| 6680 | EOF |
| 6681 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6682 | # Type availability checks |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6683 | ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 6684 | if test "x$ac_cv_type_mode_t" = xyes; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6685 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6686 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6687 | |
| 6688 | cat >>confdefs.h <<_ACEOF |
| 6689 | #define mode_t int |
| 6690 | _ACEOF |
| 6691 | |
| 6692 | fi |
| 6693 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6694 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 6695 | if test "x$ac_cv_type_off_t" = xyes; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6696 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6697 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6698 | |
| 6699 | cat >>confdefs.h <<_ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6700 | #define off_t long int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6701 | _ACEOF |
| 6702 | |
| 6703 | fi |
| 6704 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6705 | ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 6706 | if test "x$ac_cv_type_pid_t" = xyes; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6707 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6708 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6709 | |
| 6710 | cat >>confdefs.h <<_ACEOF |
| 6711 | #define pid_t int |
| 6712 | _ACEOF |
| 6713 | |
| 6714 | fi |
| 6715 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6716 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6717 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | bada4c3 | 2010-04-25 21:18:48 +0000 | [diff] [blame] | 6718 | #define RETSIGTYPE void |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6719 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6720 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6721 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 6722 | if test "x$ac_cv_type_size_t" = xyes; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6723 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6724 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6725 | |
| 6726 | cat >>confdefs.h <<_ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6727 | #define size_t unsigned int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6728 | _ACEOF |
| 6729 | |
| 6730 | fi |
| 6731 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6732 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 |
| 6733 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 6734 | if ${ac_cv_type_uid_t+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6735 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6736 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6737 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6738 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6739 | #include <sys/types.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6740 | |
| 6741 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6742 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6743 | $EGREP "uid_t" >/dev/null 2>&1; then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6744 | ac_cv_type_uid_t=yes |
| 6745 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6746 | ac_cv_type_uid_t=no |
| 6747 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 6748 | rm -f conftest* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6749 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6750 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 |
| 6752 | $as_echo "$ac_cv_type_uid_t" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6753 | if test $ac_cv_type_uid_t = no; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6754 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6755 | $as_echo "#define uid_t int" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6756 | |
| 6757 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6758 | $as_echo "#define gid_t int" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6759 | |
| 6760 | fi |
| 6761 | |
Mark Dickinson | ce31f66 | 2012-12-02 13:20:22 +0000 | [diff] [blame] | 6762 | |
| 6763 | # There are two separate checks for each of the exact-width integer types we |
| 6764 | # need. First we check whether the type is available using the usual |
| 6765 | # AC_CHECK_TYPE macro with the default includes (which includes <inttypes.h> |
| 6766 | # and <stdint.h> where available). We then also use the special type checks of |
| 6767 | # the form AC_TYPE_UINT32_T, which in the case that uint32_t is not available |
| 6768 | # directly, #define's uint32_t to be a suitable type. |
| 6769 | |
| 6770 | ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default" |
| 6771 | if test "x$ac_cv_type_uint32_t" = xyes; then : |
| 6772 | |
| 6773 | $as_echo "#define HAVE_UINT32_T 1" >>confdefs.h |
| 6774 | |
| 6775 | fi |
| 6776 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6777 | ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" |
| 6778 | case $ac_cv_c_uint32_t in #( |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 6779 | no|yes) ;; #( |
| 6780 | *) |
| 6781 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6782 | $as_echo "#define _UINT32_T 1" >>confdefs.h |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 6783 | |
| 6784 | |
| 6785 | cat >>confdefs.h <<_ACEOF |
| 6786 | #define uint32_t $ac_cv_c_uint32_t |
| 6787 | _ACEOF |
| 6788 | ;; |
| 6789 | esac |
| 6790 | |
Mark Dickinson | ce31f66 | 2012-12-02 13:20:22 +0000 | [diff] [blame] | 6791 | |
| 6792 | ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default" |
| 6793 | if test "x$ac_cv_type_uint64_t" = xyes; then : |
| 6794 | |
| 6795 | $as_echo "#define HAVE_UINT64_T 1" >>confdefs.h |
| 6796 | |
| 6797 | fi |
| 6798 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6799 | ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t" |
| 6800 | case $ac_cv_c_uint64_t in #( |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 6801 | no|yes) ;; #( |
| 6802 | *) |
| 6803 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6804 | $as_echo "#define _UINT64_T 1" >>confdefs.h |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 6805 | |
| 6806 | |
| 6807 | cat >>confdefs.h <<_ACEOF |
| 6808 | #define uint64_t $ac_cv_c_uint64_t |
| 6809 | _ACEOF |
| 6810 | ;; |
| 6811 | esac |
| 6812 | |
Mark Dickinson | ce31f66 | 2012-12-02 13:20:22 +0000 | [diff] [blame] | 6813 | |
| 6814 | ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default" |
| 6815 | if test "x$ac_cv_type_int32_t" = xyes; then : |
| 6816 | |
| 6817 | $as_echo "#define HAVE_INT32_T 1" >>confdefs.h |
| 6818 | |
| 6819 | fi |
| 6820 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6821 | ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" |
| 6822 | case $ac_cv_c_int32_t in #( |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 6823 | no|yes) ;; #( |
| 6824 | *) |
| 6825 | |
| 6826 | cat >>confdefs.h <<_ACEOF |
| 6827 | #define int32_t $ac_cv_c_int32_t |
| 6828 | _ACEOF |
| 6829 | ;; |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 6830 | esac |
| 6831 | |
Mark Dickinson | ce31f66 | 2012-12-02 13:20:22 +0000 | [diff] [blame] | 6832 | |
| 6833 | ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default" |
| 6834 | if test "x$ac_cv_type_int64_t" = xyes; then : |
| 6835 | |
| 6836 | $as_echo "#define HAVE_INT64_T 1" >>confdefs.h |
| 6837 | |
| 6838 | fi |
| 6839 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6840 | ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t" |
| 6841 | case $ac_cv_c_int64_t in #( |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 6842 | no|yes) ;; #( |
| 6843 | *) |
| 6844 | |
| 6845 | cat >>confdefs.h <<_ACEOF |
| 6846 | #define int64_t $ac_cv_c_int64_t |
| 6847 | _ACEOF |
| 6848 | ;; |
Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 6849 | esac |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6850 | |
Mark Dickinson | ce31f66 | 2012-12-02 13:20:22 +0000 | [diff] [blame] | 6851 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6852 | ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 6853 | if test "x$ac_cv_type_ssize_t" = xyes; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6854 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6855 | $as_echo "#define HAVE_SSIZE_T 1" >>confdefs.h |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6856 | |
| 6857 | fi |
| 6858 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 6859 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6860 | # Sizes of various common basic types |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 6861 | # ANSI C requires sizeof(char) == 1, so no need to check it |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6862 | # The cast to long int works around a bug in the HP C Compiler |
| 6863 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6864 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6865 | # This bug is HP SR number 8606223364. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6866 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 |
| 6867 | $as_echo_n "checking size of int... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 6868 | if ${ac_cv_sizeof_int+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6869 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6870 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6871 | 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] | 6872 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6873 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6874 | if test "$ac_cv_type_int" = yes; then |
| 6875 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 6876 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 6877 | as_fn_error 77 "cannot compute sizeof (int) |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 6878 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6879 | else |
| 6880 | ac_cv_sizeof_int=0 |
| 6881 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6882 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6883 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6884 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 |
| 6886 | $as_echo "$ac_cv_sizeof_int" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6887 | |
| 6888 | |
| 6889 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6890 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6891 | #define SIZEOF_INT $ac_cv_sizeof_int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6892 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6893 | |
| 6894 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6895 | # The cast to long int works around a bug in the HP C Compiler |
| 6896 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6897 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6898 | # This bug is HP SR number 8606223364. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6899 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 |
| 6900 | $as_echo_n "checking size of long... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 6901 | if ${ac_cv_sizeof_long+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6902 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6903 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6904 | 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] | 6905 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6906 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6907 | if test "$ac_cv_type_long" = yes; then |
| 6908 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 6909 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 6910 | as_fn_error 77 "cannot compute sizeof (long) |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 6911 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6912 | else |
| 6913 | ac_cv_sizeof_long=0 |
| 6914 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6915 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6916 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6917 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 |
| 6919 | $as_echo "$ac_cv_sizeof_long" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6920 | |
| 6921 | |
| 6922 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6923 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6924 | #define SIZEOF_LONG $ac_cv_sizeof_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6925 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6926 | |
| 6927 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6928 | # The cast to long int works around a bug in the HP C Compiler |
| 6929 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6930 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6931 | # This bug is HP SR number 8606223364. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6932 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 |
| 6933 | $as_echo_n "checking size of void *... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 6934 | if ${ac_cv_sizeof_void_p+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6935 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6936 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6937 | 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] | 6938 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6939 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6940 | if test "$ac_cv_type_void_p" = yes; then |
| 6941 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 6942 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 6943 | as_fn_error 77 "cannot compute sizeof (void *) |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 6944 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6945 | else |
| 6946 | ac_cv_sizeof_void_p=0 |
| 6947 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6948 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6949 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6950 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 |
| 6952 | $as_echo "$ac_cv_sizeof_void_p" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6953 | |
| 6954 | |
| 6955 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6956 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6957 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6958 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6959 | |
| 6960 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6961 | # The cast to long int works around a bug in the HP C Compiler |
| 6962 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6963 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6964 | # This bug is HP SR number 8606223364. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6965 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 |
| 6966 | $as_echo_n "checking size of short... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 6967 | if ${ac_cv_sizeof_short+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6968 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6969 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6970 | 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] | 6971 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6972 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6973 | if test "$ac_cv_type_short" = yes; then |
| 6974 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 6975 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 6976 | as_fn_error 77 "cannot compute sizeof (short) |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 6977 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6978 | else |
| 6979 | ac_cv_sizeof_short=0 |
| 6980 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6981 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6982 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6983 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 |
| 6985 | $as_echo "$ac_cv_sizeof_short" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6986 | |
| 6987 | |
| 6988 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6989 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6990 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6991 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6992 | |
| 6993 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6994 | # The cast to long int works around a bug in the HP C Compiler |
| 6995 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6996 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6997 | # This bug is HP SR number 8606223364. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6998 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5 |
| 6999 | $as_echo_n "checking size of float... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 7000 | if ${ac_cv_sizeof_float+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7001 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7002 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7003 | 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] | 7004 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7005 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7006 | if test "$ac_cv_type_float" = yes; then |
| 7007 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 7008 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 7009 | as_fn_error 77 "cannot compute sizeof (float) |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 7010 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7011 | else |
| 7012 | ac_cv_sizeof_float=0 |
| 7013 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7014 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7015 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7016 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5 |
| 7018 | $as_echo "$ac_cv_sizeof_float" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7019 | |
| 7020 | |
| 7021 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7022 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7023 | #define SIZEOF_FLOAT $ac_cv_sizeof_float |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7024 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7025 | |
| 7026 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7027 | # The cast to long int works around a bug in the HP C Compiler |
| 7028 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7029 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7030 | # This bug is HP SR number 8606223364. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7031 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5 |
| 7032 | $as_echo_n "checking size of double... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 7033 | if ${ac_cv_sizeof_double+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7034 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7035 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7036 | 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] | 7037 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7038 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7039 | if test "$ac_cv_type_double" = yes; then |
| 7040 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 7041 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 7042 | as_fn_error 77 "cannot compute sizeof (double) |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 7043 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7044 | else |
| 7045 | ac_cv_sizeof_double=0 |
| 7046 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7047 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7048 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7049 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5 |
| 7051 | $as_echo "$ac_cv_sizeof_double" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7052 | |
| 7053 | |
| 7054 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7055 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7056 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7057 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7058 | |
| 7059 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7060 | # The cast to long int works around a bug in the HP C Compiler |
| 7061 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7062 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7063 | # This bug is HP SR number 8606223364. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7064 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of fpos_t" >&5 |
| 7065 | $as_echo_n "checking size of fpos_t... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 7066 | if ${ac_cv_sizeof_fpos_t+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7067 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7068 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7069 | 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] | 7070 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7071 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7072 | if test "$ac_cv_type_fpos_t" = yes; then |
| 7073 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 7074 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 7075 | as_fn_error 77 "cannot compute sizeof (fpos_t) |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 7076 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7077 | else |
| 7078 | ac_cv_sizeof_fpos_t=0 |
| 7079 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7080 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7081 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7082 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_fpos_t" >&5 |
| 7084 | $as_echo "$ac_cv_sizeof_fpos_t" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7085 | |
| 7086 | |
| 7087 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7088 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7089 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7090 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7091 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7092 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7093 | # The cast to long int works around a bug in the HP C Compiler |
| 7094 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7095 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7096 | # This bug is HP SR number 8606223364. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7097 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 |
| 7098 | $as_echo_n "checking size of size_t... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 7099 | if ${ac_cv_sizeof_size_t+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7100 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7101 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7102 | 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] | 7103 | |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7104 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7105 | if test "$ac_cv_type_size_t" = yes; then |
| 7106 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 7107 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 7108 | as_fn_error 77 "cannot compute sizeof (size_t) |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 7109 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7110 | else |
| 7111 | ac_cv_sizeof_size_t=0 |
| 7112 | fi |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7113 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7114 | |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7115 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 |
| 7117 | $as_echo "$ac_cv_sizeof_size_t" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7118 | |
| 7119 | |
| 7120 | |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7121 | cat >>confdefs.h <<_ACEOF |
| 7122 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t |
| 7123 | _ACEOF |
| 7124 | |
| 7125 | |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 7126 | # The cast to long int works around a bug in the HP C Compiler |
| 7127 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7128 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7129 | # This bug is HP SR number 8606223364. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7130 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pid_t" >&5 |
| 7131 | $as_echo_n "checking size of pid_t... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 7132 | if ${ac_cv_sizeof_pid_t+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7133 | $as_echo_n "(cached) " >&6 |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 7134 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7135 | 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] | 7136 | |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 7137 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7138 | if test "$ac_cv_type_pid_t" = yes; then |
| 7139 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 7140 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 7141 | as_fn_error 77 "cannot compute sizeof (pid_t) |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 7142 | See \`config.log' for more details" "$LINENO" 5; } |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 7143 | else |
| 7144 | ac_cv_sizeof_pid_t=0 |
| 7145 | fi |
| 7146 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7147 | |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 7148 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pid_t" >&5 |
| 7150 | $as_echo "$ac_cv_sizeof_pid_t" >&6; } |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 7151 | |
| 7152 | |
| 7153 | |
| 7154 | cat >>confdefs.h <<_ACEOF |
| 7155 | #define SIZEOF_PID_T $ac_cv_sizeof_pid_t |
| 7156 | _ACEOF |
| 7157 | |
| 7158 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7159 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7160 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support" >&5 |
| 7161 | $as_echo_n "checking for long long support... " >&6; } |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7162 | have_long_long=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7163 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7164 | /* end confdefs.h. */ |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7165 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7166 | int |
| 7167 | main () |
| 7168 | { |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7169 | long long x; x = (long long)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7170 | ; |
| 7171 | return 0; |
| 7172 | } |
| 7173 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7174 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7175 | |
| 7176 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7177 | $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7178 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 7179 | have_long_long=yes |
| 7180 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7181 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7182 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_long_long" >&5 |
| 7184 | $as_echo "$have_long_long" >&6; } |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 7185 | if test "$have_long_long" = yes ; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7186 | # The cast to long int works around a bug in the HP C Compiler |
| 7187 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7188 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7189 | # This bug is HP SR number 8606223364. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7190 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 |
| 7191 | $as_echo_n "checking size of long long... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 7192 | if ${ac_cv_sizeof_long_long+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7193 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7194 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7195 | 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] | 7196 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7197 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7198 | if test "$ac_cv_type_long_long" = yes; then |
| 7199 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 7200 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 7201 | as_fn_error 77 "cannot compute sizeof (long long) |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 7202 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7203 | else |
| 7204 | ac_cv_sizeof_long_long=0 |
| 7205 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7206 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7207 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7208 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 |
| 7210 | $as_echo "$ac_cv_sizeof_long_long" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7211 | |
| 7212 | |
| 7213 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7214 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7215 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7216 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7217 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7218 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7219 | fi |
| 7220 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7221 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support" >&5 |
| 7222 | $as_echo_n "checking for long double support... " >&6; } |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 7223 | have_long_double=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7224 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 7225 | /* end confdefs.h. */ |
| 7226 | |
| 7227 | int |
| 7228 | main () |
| 7229 | { |
| 7230 | long double x; x = (long double)0; |
| 7231 | ; |
| 7232 | return 0; |
| 7233 | } |
| 7234 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7235 | if ac_fn_c_try_compile "$LINENO"; then : |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 7236 | |
| 7237 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7238 | $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 7239 | |
| 7240 | have_long_double=yes |
| 7241 | |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 7242 | fi |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 7243 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_long_double" >&5 |
| 7245 | $as_echo "$have_long_double" >&6; } |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 7246 | if test "$have_long_double" = yes ; then |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 7247 | # The cast to long int works around a bug in the HP C Compiler |
| 7248 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7249 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7250 | # This bug is HP SR number 8606223364. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7251 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5 |
| 7252 | $as_echo_n "checking size of long double... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 7253 | if ${ac_cv_sizeof_long_double+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7254 | $as_echo_n "(cached) " >&6 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 7255 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7256 | 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] | 7257 | |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 7258 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7259 | if test "$ac_cv_type_long_double" = yes; then |
| 7260 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 7261 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 7262 | as_fn_error 77 "cannot compute sizeof (long double) |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 7263 | See \`config.log' for more details" "$LINENO" 5; } |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 7264 | else |
| 7265 | ac_cv_sizeof_long_double=0 |
| 7266 | fi |
| 7267 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7268 | |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 7269 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7270 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5 |
| 7271 | $as_echo "$ac_cv_sizeof_long_double" >&6; } |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 7272 | |
| 7273 | |
| 7274 | |
| 7275 | cat >>confdefs.h <<_ACEOF |
| 7276 | #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double |
| 7277 | _ACEOF |
| 7278 | |
| 7279 | |
| 7280 | fi |
| 7281 | |
| 7282 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7283 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Bool support" >&5 |
| 7284 | $as_echo_n "checking for _Bool support... " >&6; } |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 7285 | have_c99_bool=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7286 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 7287 | /* end confdefs.h. */ |
| 7288 | |
| 7289 | int |
| 7290 | main () |
| 7291 | { |
| 7292 | _Bool x; x = (_Bool)0; |
| 7293 | ; |
| 7294 | return 0; |
| 7295 | } |
| 7296 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7297 | if ac_fn_c_try_compile "$LINENO"; then : |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 7298 | |
| 7299 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7300 | $as_echo "#define HAVE_C99_BOOL 1" >>confdefs.h |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 7301 | |
| 7302 | have_c99_bool=yes |
| 7303 | |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 7304 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7305 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_c99_bool" >&5 |
| 7307 | $as_echo "$have_c99_bool" >&6; } |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 7308 | if test "$have_c99_bool" = yes ; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7309 | # The cast to long int works around a bug in the HP C Compiler |
| 7310 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7311 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7312 | # This bug is HP SR number 8606223364. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7313 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of _Bool" >&5 |
| 7314 | $as_echo_n "checking size of _Bool... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 7315 | if ${ac_cv_sizeof__Bool+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7316 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 7317 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7318 | 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] | 7319 | |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 7320 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7321 | if test "$ac_cv_type__Bool" = yes; then |
| 7322 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 7323 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 7324 | as_fn_error 77 "cannot compute sizeof (_Bool) |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 7325 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7326 | else |
| 7327 | ac_cv_sizeof__Bool=0 |
| 7328 | fi |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 7329 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7330 | |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 7331 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof__Bool" >&5 |
| 7333 | $as_echo "$ac_cv_sizeof__Bool" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7334 | |
| 7335 | |
| 7336 | |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 7337 | cat >>confdefs.h <<_ACEOF |
| 7338 | #define SIZEOF__BOOL $ac_cv_sizeof__Bool |
| 7339 | _ACEOF |
| 7340 | |
| 7341 | |
| 7342 | fi |
| 7343 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7344 | 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] | 7345 | #include <stdint.h> |
| 7346 | #endif |
Antoine Pitrou | 1bf29b7 | 2010-10-10 08:10:16 +0000 | [diff] [blame] | 7347 | #ifdef HAVE_INTTYPES_H |
| 7348 | #include <inttypes.h> |
| 7349 | #endif |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7350 | " |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 7351 | if test "x$ac_cv_type_uintptr_t" = xyes; then : |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 7352 | |
| 7353 | cat >>confdefs.h <<_ACEOF |
| 7354 | #define HAVE_UINTPTR_T 1 |
| 7355 | _ACEOF |
| 7356 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7357 | # The cast to long int works around a bug in the HP C Compiler |
| 7358 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7359 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7360 | # This bug is HP SR number 8606223364. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7361 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uintptr_t" >&5 |
| 7362 | $as_echo_n "checking size of uintptr_t... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 7363 | if ${ac_cv_sizeof_uintptr_t+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7364 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7365 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7366 | 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] | 7367 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7368 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7369 | if test "$ac_cv_type_uintptr_t" = yes; then |
| 7370 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 7371 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 7372 | as_fn_error 77 "cannot compute sizeof (uintptr_t) |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 7373 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7374 | else |
| 7375 | ac_cv_sizeof_uintptr_t=0 |
| 7376 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7377 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7378 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7379 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uintptr_t" >&5 |
| 7381 | $as_echo "$ac_cv_sizeof_uintptr_t" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7382 | |
| 7383 | |
| 7384 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7385 | cat >>confdefs.h <<_ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 7386 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7387 | _ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 7388 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7389 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 7390 | fi |
| 7391 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 7392 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7393 | # The cast to long int works around a bug in the HP C Compiler |
| 7394 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7395 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7396 | # This bug is HP SR number 8606223364. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 |
| 7398 | $as_echo_n "checking size of off_t... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 7399 | if ${ac_cv_sizeof_off_t+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7400 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7401 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7402 | 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] | 7403 | #ifdef HAVE_SYS_TYPES_H |
| 7404 | #include <sys/types.h> |
| 7405 | #endif |
| 7406 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7407 | "; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7408 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7409 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7410 | if test "$ac_cv_type_off_t" = yes; then |
| 7411 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 7412 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 7413 | as_fn_error 77 "cannot compute sizeof (off_t) |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 7414 | See \`config.log' for more details" "$LINENO" 5; } |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7415 | else |
| 7416 | ac_cv_sizeof_off_t=0 |
| 7417 | fi |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7418 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7419 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7420 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 |
| 7422 | $as_echo "$ac_cv_sizeof_off_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7423 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7424 | |
| 7425 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7426 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7427 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7428 | _ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7429 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7430 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7431 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7432 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable large file support" >&5 |
| 7433 | $as_echo_n "checking whether to enable large file support... " >&6; } |
Mark Dickinson | 2df5d28 | 2009-12-31 21:22:50 +0000 | [diff] [blame] | 7434 | if test "$have_long_long" = yes |
| 7435 | then |
| 7436 | 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] | 7437 | "$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] | 7438 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7439 | $as_echo "#define HAVE_LARGEFILE_SUPPORT 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7440 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 7442 | $as_echo "yes" >&6; } |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7443 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7445 | $as_echo "no" >&6; } |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7446 | fi |
Mark Dickinson | 2df5d28 | 2009-12-31 21:22:50 +0000 | [diff] [blame] | 7447 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7449 | $as_echo "no" >&6; } |
Mark Dickinson | 2df5d28 | 2009-12-31 21:22:50 +0000 | [diff] [blame] | 7450 | fi |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7451 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7452 | # The cast to long int works around a bug in the HP C Compiler |
| 7453 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7454 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7455 | # This bug is HP SR number 8606223364. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7456 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 |
| 7457 | $as_echo_n "checking size of time_t... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 7458 | if ${ac_cv_sizeof_time_t+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7459 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7460 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7461 | 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] | 7462 | #ifdef HAVE_SYS_TYPES_H |
| 7463 | #include <sys/types.h> |
| 7464 | #endif |
| 7465 | #ifdef HAVE_TIME_H |
| 7466 | #include <time.h> |
| 7467 | #endif |
| 7468 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7469 | "; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7470 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7471 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7472 | if test "$ac_cv_type_time_t" = yes; then |
| 7473 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 7474 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 7475 | as_fn_error 77 "cannot compute sizeof (time_t) |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 7476 | See \`config.log' for more details" "$LINENO" 5; } |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7477 | else |
| 7478 | ac_cv_sizeof_time_t=0 |
| 7479 | fi |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7480 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7481 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7482 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 |
| 7484 | $as_echo "$ac_cv_sizeof_time_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7485 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7486 | |
| 7487 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7488 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7489 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7490 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7491 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7492 | |
| 7493 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7494 | # if have pthread_t then define SIZEOF_PTHREAD_T |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 7495 | ac_save_cc="$CC" |
| 7496 | if test "$ac_cv_kpthread" = "yes" |
| 7497 | then CC="$CC -Kpthread" |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 7498 | elif test "$ac_cv_kthread" = "yes" |
| 7499 | then CC="$CC -Kthread" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 7500 | elif test "$ac_cv_pthread" = "yes" |
| 7501 | then CC="$CC -pthread" |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 7502 | fi |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7503 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7504 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_t" >&5 |
| 7505 | $as_echo_n "checking for pthread_t... " >&6; } |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7506 | have_pthread_t=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7507 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7508 | /* end confdefs.h. */ |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 7509 | |
| 7510 | #include <pthread.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7511 | int |
| 7512 | main () |
| 7513 | { |
Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 7514 | pthread_t x; x = *(pthread_t*)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7515 | ; |
| 7516 | return 0; |
| 7517 | } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 7518 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7519 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7520 | if ac_fn_c_try_compile "$LINENO"; then : |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7521 | have_pthread_t=yes |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7522 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7523 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_t" >&5 |
| 7525 | $as_echo "$have_pthread_t" >&6; } |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7526 | if test "$have_pthread_t" = yes ; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7527 | # 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] | 7528 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7529 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7530 | # This bug is HP SR number 8606223364. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7531 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5 |
| 7532 | $as_echo_n "checking size of pthread_t... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 7533 | if ${ac_cv_sizeof_pthread_t+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7534 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7535 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7536 | 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] | 7537 | #ifdef HAVE_PTHREAD_H |
| 7538 | #include <pthread.h> |
| 7539 | #endif |
| 7540 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7541 | "; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7542 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7543 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7544 | if test "$ac_cv_type_pthread_t" = yes; then |
| 7545 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 7546 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 7547 | as_fn_error 77 "cannot compute sizeof (pthread_t) |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 7548 | See \`config.log' for more details" "$LINENO" 5; } |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7549 | else |
| 7550 | ac_cv_sizeof_pthread_t=0 |
| 7551 | fi |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7552 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7553 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7554 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5 |
| 7556 | $as_echo "$ac_cv_sizeof_pthread_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7557 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7558 | |
| 7559 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7560 | cat >>confdefs.h <<_ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7561 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7562 | _ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7563 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7564 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7565 | fi |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 7566 | CC="$ac_save_cc" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7567 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7568 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7569 | case $ac_sys_system/$ac_sys_release in |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 7570 | Darwin/[01567]\..*) |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 7571 | OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000" |
| 7572 | ;; |
| 7573 | Darwin/*) |
| 7574 | OTHER_LIBTOOL_OPT="" |
| 7575 | ;; |
| 7576 | esac |
| 7577 | |
| 7578 | |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 7579 | ARCH_RUN_32BIT="" |
| 7580 | |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 7581 | case $ac_sys_system/$ac_sys_release in |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 7582 | Darwin/[01567]\..*) |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7583 | LIBTOOL_CRUFT="-framework System -lcc_dynamic" |
| 7584 | if test "${enable_universalsdk}"; then |
| 7585 | : |
| 7586 | else |
Ronald Oussoren | e3da75a | 2010-02-11 13:38:58 +0000 | [diff] [blame] | 7587 | LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `/usr/bin/arch`" |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7588 | fi |
Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 7589 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 7590 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 7591 | Darwin/*) |
Ronald Oussoren | 9812a6c | 2010-02-07 11:53:18 +0000 | [diff] [blame] | 7592 | gcc_version=`gcc -dumpversion` |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 7593 | if test ${gcc_version} '<' 4.0 |
| 7594 | then |
| 7595 | LIBTOOL_CRUFT="-lcc_dynamic" |
| 7596 | else |
| 7597 | LIBTOOL_CRUFT="" |
| 7598 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7599 | if test "$cross_compiling" = yes; then : |
Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 7600 | ac_osx_32bit=yes |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 7601 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7602 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 7603 | /* end confdefs.h. */ |
Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 7604 | |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 7605 | #include <unistd.h> |
| 7606 | int main(int argc, char*argv[]) |
| 7607 | { |
| 7608 | if (sizeof(long) == 4) { |
| 7609 | return 0; |
| 7610 | } else { |
| 7611 | return 1; |
| 7612 | } |
Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 7613 | } |
| 7614 | |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 7615 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7616 | if ac_fn_c_try_run "$LINENO"; then : |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 7617 | ac_osx_32bit=yes |
| 7618 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7619 | ac_osx_32bit=no |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 7620 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7621 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7622 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 7623 | fi |
| 7624 | |
| 7625 | |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 7626 | if test "${ac_osx_32bit}" = "yes"; then |
Ronald Oussoren | e3da75a | 2010-02-11 13:38:58 +0000 | [diff] [blame] | 7627 | case `/usr/bin/arch` in |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 7628 | i386) |
| 7629 | MACOSX_DEFAULT_ARCH="i386" |
| 7630 | ;; |
| 7631 | ppc) |
| 7632 | MACOSX_DEFAULT_ARCH="ppc" |
| 7633 | ;; |
| 7634 | *) |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 7635 | as_fn_error $? "Unexpected output of 'arch' on OSX" "$LINENO" 5 |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 7636 | ;; |
| 7637 | esac |
| 7638 | else |
Ronald Oussoren | e3da75a | 2010-02-11 13:38:58 +0000 | [diff] [blame] | 7639 | case `/usr/bin/arch` in |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 7640 | i386) |
| 7641 | MACOSX_DEFAULT_ARCH="x86_64" |
| 7642 | ;; |
| 7643 | ppc) |
| 7644 | MACOSX_DEFAULT_ARCH="ppc64" |
| 7645 | ;; |
| 7646 | *) |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 7647 | as_fn_error $? "Unexpected output of 'arch' on OSX" "$LINENO" 5 |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 7648 | ;; |
| 7649 | esac |
| 7650 | |
| 7651 | #ARCH_RUN_32BIT="true" |
| 7652 | fi |
| 7653 | |
| 7654 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}" |
Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 7655 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7656 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7657 | esac |
| 7658 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7659 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-framework" >&5 |
| 7660 | $as_echo_n "checking for --enable-framework... " >&6; } |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7661 | if test "$enable_framework" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7662 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 7663 | BASECFLAGS="$BASECFLAGS -fno-common -dynamic" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7664 | # -F. is needed to allow linking to the framework while |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7665 | # in the build location. |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7666 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7667 | $as_echo "#define WITH_NEXT_FRAMEWORK 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7668 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 7670 | $as_echo "yes" >&6; } |
Ronald Oussoren | 99aab65 | 2009-06-08 21:22:57 +0000 | [diff] [blame] | 7671 | if test $enable_shared = "yes" |
| 7672 | then |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 7673 | 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] | 7674 | fi |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7675 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7677 | $as_echo "no" >&6; } |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7678 | fi |
| 7679 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7680 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dyld" >&5 |
| 7681 | $as_echo_n "checking for dyld... " >&6; } |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 7682 | case $ac_sys_system/$ac_sys_release in |
| 7683 | Darwin/*) |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7684 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7685 | $as_echo "#define WITH_DYLD 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7686 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: always on for Darwin" >&5 |
| 7688 | $as_echo "always on for Darwin" >&6; } |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 7689 | ;; |
| 7690 | *) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7691 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7692 | $as_echo "no" >&6; } |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7693 | ;; |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 7694 | esac |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7695 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7696 | # Set info about shared libraries. |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7697 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7698 | |
| 7699 | |
| 7700 | |
| 7701 | |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 7702 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7703 | |
Georg Brandl | b1441c7 | 2009-01-03 22:33:39 +0000 | [diff] [blame] | 7704 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7705 | cat >>confdefs.h <<_ACEOF |
| 7706 | #define SHLIB_EXT "$SO" |
| 7707 | _ACEOF |
| 7708 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7709 | # LDSHARED is the ld *command* used to create shared library |
Martin v. Löwis | 12af048 | 2004-01-31 12:34:17 +0000 | [diff] [blame] | 7710 | # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7711 | # (Shared libraries in this instance are shared modules to be loaded into |
| 7712 | # Python, as opposed to building Python itself as a shared library.) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7713 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDSHARED" >&5 |
| 7714 | $as_echo_n "checking LDSHARED... " >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7715 | if test -z "$LDSHARED" |
| 7716 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7717 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 7718 | AIX*) |
Georg Brandl | 9a829be | 2011-02-15 15:44:51 +0000 | [diff] [blame] | 7719 | 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] | 7720 | LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 7721 | ;; |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 7722 | IRIX/5*) LDSHARED="ld -shared";; |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 7723 | IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7724 | SunOS/5*) |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 7725 | if test "$GCC" = "yes" ; then |
| 7726 | LDSHARED='$(CC) -shared' |
| 7727 | LDCXXSHARED='$(CXX) -shared' |
| 7728 | else |
| 7729 | LDSHARED='$(CC) -G' |
| 7730 | LDCXXSHARED='$(CXX) -G' |
Greg Ward | 57c9a663 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 7731 | fi ;; |
Thomas Heller | f44b9a1 | 2008-04-04 10:18:23 +0000 | [diff] [blame] | 7732 | hp*|HP*) |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 7733 | if test "$GCC" = "yes" ; then |
| 7734 | LDSHARED='$(CC) -shared' |
| 7735 | LDCXXSHARED='$(CXX) -shared' |
| 7736 | else |
| 7737 | LDSHARED='ld -b' |
Thomas Heller | f44b9a1 | 2008-04-04 10:18:23 +0000 | [diff] [blame] | 7738 | fi ;; |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 7739 | OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";; |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 7740 | Darwin/1.3*) |
Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 7741 | LDSHARED='$(CC) -bundle' |
| 7742 | LDCXXSHARED='$(CXX) -bundle' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 7743 | if test "$enable_framework" ; then |
| 7744 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 7745 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 7746 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 7747 | LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 7748 | else |
| 7749 | # No framework. Ignore undefined symbols, assuming they come from Python |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 7750 | LDSHARED="$LDSHARED -undefined suppress" |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 7751 | LDCXXSHARED="$LDCXXSHARED -undefined suppress" |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 7752 | fi ;; |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 7753 | Darwin/1.4*|Darwin/5.*|Darwin/6.*) |
Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 7754 | LDSHARED='$(CC) -bundle' |
| 7755 | LDCXXSHARED='$(CXX) -bundle' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7756 | if test "$enable_framework" ; then |
| 7757 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 7758 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 7759 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 7760 | LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7761 | else |
Michael W. Hudson | 594bc80 | 2002-03-07 09:59:15 +0000 | [diff] [blame] | 7762 | # No framework, use the Python app as bundle-loader |
| 7763 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
Jack Jansen | c28fc37 | 2003-02-25 13:14:43 +0000 | [diff] [blame] | 7764 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 7765 | LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7766 | fi ;; |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 7767 | Darwin/*) |
| 7768 | # Use -undefined dynamic_lookup whenever possible (10.3 and later). |
| 7769 | # This allows an extension to be used in any Python |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 7770 | |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 7771 | if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2 |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 7772 | then |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7773 | if test "${enable_universalsdk}"; then |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 7774 | LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}" |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7775 | fi |
Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 7776 | LDSHARED='$(CC) -bundle -undefined dynamic_lookup' |
| 7777 | LDCXXSHARED='$(CXX) -bundle -undefined dynamic_lookup' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 7778 | BLDSHARED="$LDSHARED" |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 7779 | else |
Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 7780 | LDSHARED='$(CC) -bundle' |
| 7781 | LDCXXSHARED='$(CXX) -bundle' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 7782 | if test "$enable_framework" ; then |
| 7783 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 7784 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 7785 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 7786 | LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 7787 | else |
| 7788 | # No framework, use the Python app as bundle-loader |
| 7789 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
| 7790 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 7791 | LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 7792 | fi |
| 7793 | fi |
| 7794 | ;; |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 7795 | Linux*|GNU*|QNX*) |
| 7796 | LDSHARED='$(CC) -shared' |
| 7797 | LDCXXSHARED='$(CXX) -shared';; |
| 7798 | BSD/OS*/4*) |
| 7799 | LDSHARED="gcc -shared" |
| 7800 | LDCXXSHARED="g++ -shared";; |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 7801 | FreeBSD*) |
Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 7802 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 7803 | then |
Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 7804 | LDSHARED='$(CC) -shared' |
| 7805 | LDCXXSHARED='$(CXX) -shared' |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 7806 | else |
Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 7807 | LDSHARED="ld -Bshareable" |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 7808 | fi;; |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 7809 | OpenBSD*) |
| 7810 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 7811 | then |
Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 7812 | LDSHARED='$(CC) -shared $(CCSHARED)' |
| 7813 | LDCXXSHARED='$(CXX) -shared $(CCSHARED)' |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 7814 | else |
| 7815 | case `uname -r` in |
| 7816 | [01].* | 2.[0-7] | 2.[0-7].*) |
| 7817 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 7818 | ;; |
| 7819 | *) |
Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 7820 | LDSHARED='$(CC) -shared $(CCSHARED)' |
| 7821 | LDCXXSHARED='$(CXX) -shared $(CCSHARED)' |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 7822 | ;; |
| 7823 | esac |
| 7824 | fi;; |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 7825 | NetBSD*|DragonFly*) |
Antoine Pitrou | ece919e | 2011-01-02 20:45:21 +0000 | [diff] [blame] | 7826 | LDSHARED='$(CC) -shared' |
| 7827 | LDCXXSHARED='$(CXX) -shared';; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 7828 | OpenUNIX*|UnixWare*) |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 7829 | if test "$GCC" = "yes" ; then |
| 7830 | LDSHARED='$(CC) -shared' |
| 7831 | LDCXXSHARED='$(CXX) -shared' |
| 7832 | else |
| 7833 | LDSHARED='$(CC) -G' |
| 7834 | LDCXXSHARED='$(CXX) -G' |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 7835 | fi;; |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 7836 | SCO_SV*) |
| 7837 | LDSHARED='$(CC) -Wl,-G,-Bexport' |
| 7838 | LDCXXSHARED='$(CXX) -Wl,-G,-Bexport';; |
| 7839 | CYGWIN*) |
| 7840 | LDSHARED="gcc -shared -Wl,--enable-auto-image-base" |
| 7841 | LDCXXSHARED="g++ -shared -Wl,--enable-auto-image-base";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7842 | *) LDSHARED="ld";; |
| 7843 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7844 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDSHARED" >&5 |
| 7846 | $as_echo "$LDSHARED" >&6; } |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 7847 | LDCXXSHARED=${LDCXXSHARED-$LDSHARED} |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 7848 | BLDSHARED=${BLDSHARED-$LDSHARED} |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7849 | # 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] | 7850 | # library (module) -- this is only needed for a few systems |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7851 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CCSHARED" >&5 |
| 7852 | $as_echo_n "checking CCSHARED... " >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7853 | if test -z "$CCSHARED" |
| 7854 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 7855 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 7856 | SunOS*) if test "$GCC" = yes; |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 7857 | then CCSHARED="-fPIC"; |
| 7858 | elif test `uname -p` = sparc; |
| 7859 | then CCSHARED="-xcode=pic32"; |
| 7860 | else CCSHARED="-Kpic"; |
| 7861 | fi;; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 7862 | hp*|HP*) if test "$GCC" = yes; |
Martin v. Löwis | 703ad70 | 2001-09-05 08:36:52 +0000 | [diff] [blame] | 7863 | then CCSHARED="-fPIC"; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 7864 | else CCSHARED="+z"; |
| 7865 | fi;; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 7866 | Linux*|GNU*) CCSHARED="-fPIC";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 7867 | BSD/OS*/4*) CCSHARED="-fpic";; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 7868 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 7869 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 7870 | if test "$GCC" = "yes" |
| 7871 | then CCSHARED="-fPIC" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 7872 | else CCSHARED="-KPIC" |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 7873 | fi;; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 7874 | SCO_SV*) |
| 7875 | if test "$GCC" = "yes" |
| 7876 | then CCSHARED="-fPIC" |
| 7877 | else CCSHARED="-Kpic -belf" |
| 7878 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 7879 | IRIX*/6*) case $CC in |
| 7880 | *gcc*) CCSHARED="-shared";; |
Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 7881 | *) CCSHARED="";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 7882 | esac;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7883 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7884 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCSHARED" >&5 |
| 7886 | $as_echo "$CCSHARED" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7887 | # LINKFORSHARED are the flags passed to the $(CC) command that links |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7888 | # the python executable -- this is only needed for a few systems |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7889 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKFORSHARED" >&5 |
| 7890 | $as_echo_n "checking LINKFORSHARED... " >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7891 | if test -z "$LINKFORSHARED" |
| 7892 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 7893 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 7894 | AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7895 | hp*|HP*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 7896 | LINKFORSHARED="-Wl,-E -Wl,+s";; |
| 7897 | # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 7898 | BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 7899 | Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7900 | # -u libsys_s pulls in all symbols in libsys |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7901 | Darwin/*) |
Benjamin Peterson | 9c80cac | 2009-05-23 16:34:23 +0000 | [diff] [blame] | 7902 | LINKFORSHARED="$extra_undefs -framework CoreFoundation" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7903 | if test "$enable_framework" |
| 7904 | then |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 7905 | LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7906 | fi |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 7907 | LINKFORSHARED="$LINKFORSHARED";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 7908 | OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 7909 | SCO_SV*) LINKFORSHARED="-Wl,-Bexport";; |
Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 7910 | ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 7911 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 7912 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 7913 | then |
| 7914 | LINKFORSHARED="-Wl,--export-dynamic" |
| 7915 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 7916 | SunOS/5*) case $CC in |
| 7917 | *gcc*) |
Martin v. Löwis | a454857 | 2002-04-18 14:51:36 +0000 | [diff] [blame] | 7918 | if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null |
Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 7919 | then |
| 7920 | LINKFORSHARED="-Xlinker --export-dynamic" |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 7921 | fi;; |
| 7922 | esac;; |
Jason Tishler | 3076559 | 2003-09-04 11:04:06 +0000 | [diff] [blame] | 7923 | CYGWIN*) |
| 7924 | if test $enable_shared = "no" |
| 7925 | then |
| 7926 | LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)' |
| 7927 | fi;; |
Benjamin Peterson | de9c869 | 2008-07-01 18:23:09 +0000 | [diff] [blame] | 7928 | QNX*) |
| 7929 | # -Wl,-E causes the symbols to be added to the dynamic |
| 7930 | # symbol table so that they can be found when a module |
| 7931 | # is loaded. -N 2048K causes the stack size to be set |
| 7932 | # to 2048 kilobytes so that the stack doesn't overflow |
| 7933 | # when running test_compile.py. |
| 7934 | LINKFORSHARED='-Wl,-E -N 2048K';; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7935 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7936 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKFORSHARED" >&5 |
| 7938 | $as_echo "$LINKFORSHARED" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7939 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7940 | |
Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 7941 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7942 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGSFORSHARED" >&5 |
| 7943 | $as_echo_n "checking CFLAGSFORSHARED... " >&6; } |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 7944 | if test ! "$LIBRARY" = "$LDLIBRARY" |
| 7945 | then |
Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 +0000 | [diff] [blame] | 7946 | case $ac_sys_system in |
| 7947 | CYGWIN*) |
| 7948 | # Cygwin needs CCSHARED when building extension DLLs |
| 7949 | # but not when building the interpreter DLL. |
| 7950 | CFLAGSFORSHARED='';; |
| 7951 | *) |
| 7952 | CFLAGSFORSHARED='$(CCSHARED)' |
| 7953 | esac |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 7954 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLAGSFORSHARED" >&5 |
| 7956 | $as_echo "$CFLAGSFORSHARED" >&6; } |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 7957 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 7958 | # SHLIBS are libraries (except -lc and -lm) to link to the python shared |
| 7959 | # library (with --enable-shared). |
| 7960 | # 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] | 7961 | # symbols, this must be set to $(LIBS) (expanded by make). We do this even |
| 7962 | # if it is not required, since it creates a dependency of the shared library |
| 7963 | # to LIBS. This, in turn, means that applications linking the shared libpython |
| 7964 | # don't need to link LIBS explicitly. The default should be only changed |
| 7965 | # on systems where this approach causes problems. |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 7966 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7967 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking SHLIBS" >&5 |
| 7968 | $as_echo_n "checking SHLIBS... " >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 7969 | case "$ac_sys_system" in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 7970 | *) |
Martin v. Löwis | d6359c5 | 2002-08-04 12:38:50 +0000 | [diff] [blame] | 7971 | SHLIBS='$(LIBS)';; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 7972 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIBS" >&5 |
| 7974 | $as_echo "$SHLIBS" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 7975 | |
| 7976 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7977 | # checks for libraries |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7978 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| 7979 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 7980 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7981 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7982 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7983 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7984 | LIBS="-ldl $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7985 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7986 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7987 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7988 | /* Override any GCC internal prototype to avoid an error. |
| 7989 | Use char because int might match the return type of a GCC |
| 7990 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7991 | #ifdef __cplusplus |
| 7992 | extern "C" |
| 7993 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7994 | char dlopen (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7995 | int |
| 7996 | main () |
| 7997 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7998 | return dlopen (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7999 | ; |
| 8000 | return 0; |
| 8001 | } |
| 8002 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8003 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8004 | ac_cv_lib_dl_dlopen=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8005 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8006 | ac_cv_lib_dl_dlopen=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8007 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8008 | rm -f core conftest.err conftest.$ac_objext \ |
| 8009 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8010 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8011 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8012 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| 8013 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 8014 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8015 | cat >>confdefs.h <<_ACEOF |
| 8016 | #define HAVE_LIBDL 1 |
| 8017 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8018 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8019 | LIBS="-ldl $LIBS" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 8020 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8021 | fi |
| 8022 | # Dynamic linking for SunOS/Solaris and SYSV |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8023 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
| 8024 | $as_echo_n "checking for shl_load in -ldld... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 8025 | if ${ac_cv_lib_dld_shl_load+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8026 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8027 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8028 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8029 | LIBS="-ldld $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8030 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8031 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8032 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8033 | /* Override any GCC internal prototype to avoid an error. |
| 8034 | Use char because int might match the return type of a GCC |
| 8035 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8036 | #ifdef __cplusplus |
| 8037 | extern "C" |
| 8038 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8039 | char shl_load (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8040 | int |
| 8041 | main () |
| 8042 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8043 | return shl_load (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8044 | ; |
| 8045 | return 0; |
| 8046 | } |
| 8047 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8048 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8049 | ac_cv_lib_dld_shl_load=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8050 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8051 | ac_cv_lib_dld_shl_load=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8052 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8053 | rm -f core conftest.err conftest.$ac_objext \ |
| 8054 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8055 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8056 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
| 8058 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 8059 | 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] | 8060 | cat >>confdefs.h <<_ACEOF |
| 8061 | #define HAVE_LIBDLD 1 |
| 8062 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8063 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8064 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8065 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8066 | fi |
| 8067 | # Dynamic linking for HP-UX |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 8068 | |
Georg Brandl | b1441c7 | 2009-01-03 22:33:39 +0000 | [diff] [blame] | 8069 | # only check for sem_init if thread support is requested |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 8070 | if test "$with_threads" = "yes" -o -z "$with_threads"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8071 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5 |
| 8072 | $as_echo_n "checking for library containing sem_init... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 8073 | if ${ac_cv_search_sem_init+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8074 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 8075 | else |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 8076 | ac_func_search_save_LIBS=$LIBS |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8077 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8078 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8079 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8080 | /* Override any GCC internal prototype to avoid an error. |
| 8081 | Use char because int might match the return type of a GCC |
| 8082 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8083 | #ifdef __cplusplus |
| 8084 | extern "C" |
| 8085 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8086 | char sem_init (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8087 | int |
| 8088 | main () |
| 8089 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8090 | return sem_init (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8091 | ; |
| 8092 | return 0; |
| 8093 | } |
| 8094 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8095 | for ac_lib in '' pthread rt posix4; do |
| 8096 | if test -z "$ac_lib"; then |
| 8097 | ac_res="none required" |
| 8098 | else |
| 8099 | ac_res=-l$ac_lib |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 8100 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8101 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8102 | if ac_fn_c_try_link "$LINENO"; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8103 | ac_cv_search_sem_init=$ac_res |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8104 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8105 | rm -f core conftest.err conftest.$ac_objext \ |
| 8106 | conftest$ac_exeext |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 8107 | if ${ac_cv_search_sem_init+:} false; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8108 | break |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 8109 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8110 | done |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 8111 | if ${ac_cv_search_sem_init+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8112 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8113 | else |
| 8114 | ac_cv_search_sem_init=no |
| 8115 | fi |
| 8116 | rm conftest.$ac_ext |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 8117 | LIBS=$ac_func_search_save_LIBS |
| 8118 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5 |
| 8120 | $as_echo "$ac_cv_search_sem_init" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8121 | ac_res=$ac_cv_search_sem_init |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8122 | if test "$ac_res" != no; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8123 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 8124 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 8125 | fi |
Martin v. Löwis | d3545ec | 2003-05-03 11:25:43 +0000 | [diff] [blame] | 8126 | # 'Real Time' functions on Solaris |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 8127 | # posix4 on Solaris 2.6 |
| 8128 | # pthread (first!) on Linux |
| 8129 | fi |
| 8130 | |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8131 | # check if we need libintl for locale functions |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8132 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for textdomain in -lintl" >&5 |
| 8133 | $as_echo_n "checking for textdomain in -lintl... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 8134 | if ${ac_cv_lib_intl_textdomain+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8135 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8136 | else |
| 8137 | ac_check_lib_save_LIBS=$LIBS |
| 8138 | LIBS="-lintl $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8139 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8140 | /* end confdefs.h. */ |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8141 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8142 | /* Override any GCC internal prototype to avoid an error. |
| 8143 | Use char because int might match the return type of a GCC |
| 8144 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8145 | #ifdef __cplusplus |
| 8146 | extern "C" |
| 8147 | #endif |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8148 | char textdomain (); |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8149 | int |
| 8150 | main () |
| 8151 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8152 | return textdomain (); |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8153 | ; |
| 8154 | return 0; |
| 8155 | } |
| 8156 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8157 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8158 | ac_cv_lib_intl_textdomain=yes |
| 8159 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8160 | ac_cv_lib_intl_textdomain=no |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8161 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8162 | rm -f core conftest.err conftest.$ac_objext \ |
| 8163 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8164 | LIBS=$ac_check_lib_save_LIBS |
| 8165 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_textdomain" >&5 |
| 8167 | $as_echo "$ac_cv_lib_intl_textdomain" >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 8168 | if test "x$ac_cv_lib_intl_textdomain" = xyes; then : |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8169 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8170 | $as_echo "#define WITH_LIBINTL 1" >>confdefs.h |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8171 | |
Brett Cannon | c6d936e | 2009-06-07 20:09:53 +0000 | [diff] [blame] | 8172 | LIBS="-lintl $LIBS" |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8173 | fi |
| 8174 | |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 8175 | |
| 8176 | # checks for system dependent C++ extensions support |
| 8177 | case "$ac_sys_system" in |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8178 | AIX*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for genuine AIX C++ extensions support" >&5 |
| 8179 | $as_echo_n "checking for genuine AIX C++ extensions support... " >&6; } |
| 8180 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8181 | /* end confdefs.h. */ |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8182 | |
Georg Brandl | 59e87bd | 2011-02-15 19:48:59 +0000 | [diff] [blame] | 8183 | #include <load.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8184 | int |
| 8185 | main () |
| 8186 | { |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 8187 | loadAndInit("", 0, "") |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8188 | ; |
| 8189 | return 0; |
| 8190 | } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8191 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8192 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8193 | if ac_fn_c_try_link "$LINENO"; then : |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 8194 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8195 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8196 | $as_echo "#define AIX_GENUINE_CPLUSPLUS 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8197 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8199 | $as_echo "yes" >&6; } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8200 | |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 8201 | else |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8202 | |
| 8203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8204 | $as_echo "no" >&6; } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8205 | |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 8206 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8207 | rm -f core conftest.err conftest.$ac_objext \ |
| 8208 | conftest$ac_exeext conftest.$ac_ext;; |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 8209 | *) ;; |
| 8210 | esac |
| 8211 | |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 8212 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8213 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_open in -lnsl" >&5 |
| 8214 | $as_echo_n "checking for t_open in -lnsl... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 8215 | if ${ac_cv_lib_nsl_t_open+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8216 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 8217 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8218 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8219 | LIBS="-lnsl $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8220 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8221 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8222 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8223 | /* Override any GCC internal prototype to avoid an error. |
| 8224 | Use char because int might match the return type of a GCC |
| 8225 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8226 | #ifdef __cplusplus |
| 8227 | extern "C" |
| 8228 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8229 | char t_open (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8230 | int |
| 8231 | main () |
| 8232 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8233 | return t_open (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8234 | ; |
| 8235 | return 0; |
| 8236 | } |
| 8237 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8238 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8239 | ac_cv_lib_nsl_t_open=yes |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 8240 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8241 | ac_cv_lib_nsl_t_open=no |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 8242 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8243 | rm -f core conftest.err conftest.$ac_objext \ |
| 8244 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8245 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 8246 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_t_open" >&5 |
| 8248 | $as_echo "$ac_cv_lib_nsl_t_open" >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 8249 | if test "x$ac_cv_lib_nsl_t_open" = xyes; then : |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 8250 | LIBS="-lnsl $LIBS" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 8251 | fi |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 8252 | # SVR4 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8253 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 |
| 8254 | $as_echo_n "checking for socket in -lsocket... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 8255 | if ${ac_cv_lib_socket_socket+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8256 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8257 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8258 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8259 | LIBS="-lsocket $LIBS $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8260 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8261 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8262 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8263 | /* Override any GCC internal prototype to avoid an error. |
| 8264 | Use char because int might match the return type of a GCC |
| 8265 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8266 | #ifdef __cplusplus |
| 8267 | extern "C" |
| 8268 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8269 | char socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8270 | int |
| 8271 | main () |
| 8272 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8273 | return socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8274 | ; |
| 8275 | return 0; |
| 8276 | } |
| 8277 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8278 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8279 | ac_cv_lib_socket_socket=yes |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8280 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8281 | ac_cv_lib_socket_socket=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8282 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8283 | rm -f core conftest.err conftest.$ac_objext \ |
| 8284 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8285 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8286 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 |
| 8288 | $as_echo "$ac_cv_lib_socket_socket" >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 8289 | if test "x$ac_cv_lib_socket_socket" = xyes; then : |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8290 | LIBS="-lsocket $LIBS" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8291 | fi |
| 8292 | # SVR4 sockets |
Skip Montanaro | b9949db | 2004-01-17 04:04:13 +0000 | [diff] [blame] | 8293 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8294 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libs" >&5 |
| 8295 | $as_echo_n "checking for --with-libs... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8296 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8297 | # Check whether --with-libs was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8298 | if test "${with_libs+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8299 | withval=$with_libs; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 |
| 8301 | $as_echo "$withval" >&6; } |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 8302 | LIBS="$withval $LIBS" |
| 8303 | |
| 8304 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8306 | $as_echo "no" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8307 | fi |
| 8308 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 8309 | |
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 8310 | if test -n "$ac_tool_prefix"; then |
Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 8311 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 8312 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8313 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8314 | $as_echo_n "checking for $ac_word... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 8315 | if ${ac_cv_path_PKG_CONFIG+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8316 | $as_echo_n "(cached) " >&6 |
Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 8317 | else |
| 8318 | case $PKG_CONFIG in |
| 8319 | [\\/]* | ?:[\\/]*) |
| 8320 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 8321 | ;; |
| 8322 | *) |
| 8323 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8324 | for as_dir in $PATH |
| 8325 | do |
| 8326 | IFS=$as_save_IFS |
| 8327 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8328 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 8329 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 8330 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8331 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 8332 | break 2 |
| 8333 | fi |
| 8334 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8335 | done |
Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 8336 | IFS=$as_save_IFS |
| 8337 | |
| 8338 | ;; |
| 8339 | esac |
| 8340 | fi |
| 8341 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 8342 | if test -n "$PKG_CONFIG"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
| 8344 | $as_echo "$PKG_CONFIG" >&6; } |
Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 8345 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8347 | $as_echo "no" >&6; } |
Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 8348 | fi |
| 8349 | |
| 8350 | |
| 8351 | fi |
| 8352 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 8353 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 8354 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 8355 | set dummy pkg-config; ac_word=$2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8356 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8357 | $as_echo_n "checking for $ac_word... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 8358 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8359 | $as_echo_n "(cached) " >&6 |
Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 8360 | else |
| 8361 | case $ac_pt_PKG_CONFIG in |
| 8362 | [\\/]* | ?:[\\/]*) |
| 8363 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 8364 | ;; |
| 8365 | *) |
| 8366 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8367 | for as_dir in $PATH |
| 8368 | do |
| 8369 | IFS=$as_save_IFS |
| 8370 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8371 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 8372 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 8373 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8374 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 8375 | break 2 |
| 8376 | fi |
| 8377 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8378 | done |
Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 8379 | IFS=$as_save_IFS |
| 8380 | |
| 8381 | ;; |
| 8382 | esac |
| 8383 | fi |
| 8384 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 8385 | if test -n "$ac_pt_PKG_CONFIG"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
| 8387 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } |
Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 8388 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8389 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8390 | $as_echo "no" >&6; } |
Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 8391 | fi |
| 8392 | |
| 8393 | if test "x$ac_pt_PKG_CONFIG" = x; then |
| 8394 | PKG_CONFIG="" |
| 8395 | else |
| 8396 | case $cross_compiling:$ac_tool_warned in |
| 8397 | yes:) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8398 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 8399 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 8400 | ac_tool_warned=yes ;; |
| 8401 | esac |
| 8402 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 8403 | fi |
| 8404 | else |
| 8405 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 8406 | fi |
| 8407 | |
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 8408 | |
| 8409 | # Check for use of the system expat library |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8410 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-expat" >&5 |
| 8411 | $as_echo_n "checking for --with-system-expat... " >&6; } |
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 8412 | |
| 8413 | # Check whether --with-system_expat was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8414 | if test "${with_system_expat+set}" = set; then : |
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 8415 | withval=$with_system_expat; |
Benjamin Peterson | 7926325 | 2010-10-31 16:50:44 +0000 | [diff] [blame] | 8416 | else |
| 8417 | with_system_expat="no" |
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 8418 | fi |
| 8419 | |
| 8420 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_expat" >&5 |
| 8422 | $as_echo "$with_system_expat" >&6; } |
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 8423 | |
| 8424 | # Check for use of the system libffi library |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8425 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-ffi" >&5 |
| 8426 | $as_echo_n "checking for --with-system-ffi... " >&6; } |
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 8427 | |
| 8428 | # Check whether --with-system_ffi was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8429 | if test "${with_system_ffi+set}" = set; then : |
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 8430 | withval=$with_system_ffi; |
Benjamin Peterson | 7926325 | 2010-10-31 16:50:44 +0000 | [diff] [blame] | 8431 | else |
| 8432 | with_system_ffi="no" |
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 8433 | fi |
| 8434 | |
| 8435 | |
| 8436 | if test "$with_system_ffi" = "yes" && test -n "$PKG_CONFIG"; then |
Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 8437 | LIBFFI_INCLUDEDIR="`"$PKG_CONFIG" libffi --cflags-only-I 2>/dev/null | sed -e 's/^-I//;s/ *$//'`" |
| 8438 | else |
| 8439 | LIBFFI_INCLUDEDIR="" |
| 8440 | fi |
| 8441 | |
| 8442 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_ffi" >&5 |
| 8444 | $as_echo "$with_system_ffi" >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 8445 | |
Benjamin Peterson | 076ed00 | 2010-10-31 17:11:02 +0000 | [diff] [blame] | 8446 | # Check for support for loadable sqlite extensions |
| 8447 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-loadable-sqlite-extensions" >&5 |
| 8448 | $as_echo_n "checking for --enable-loadable-sqlite-extensions... " >&6; } |
| 8449 | # Check whether --enable-loadable-sqlite-extensions was given. |
| 8450 | if test "${enable_loadable_sqlite_extensions+set}" = set; then : |
| 8451 | enableval=$enable_loadable_sqlite_extensions; |
| 8452 | else |
| 8453 | enable_loadable_sqlite_extensions="no" |
| 8454 | fi |
| 8455 | |
| 8456 | |
| 8457 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_loadable_sqlite_extensions" >&5 |
| 8458 | $as_echo "$enable_loadable_sqlite_extensions" >&6; } |
| 8459 | |
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 8460 | # Check for --with-dbmliborder |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8461 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dbmliborder" >&5 |
| 8462 | $as_echo_n "checking for --with-dbmliborder... " >&6; } |
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 8463 | |
| 8464 | # Check whether --with-dbmliborder was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8465 | if test "${with_dbmliborder+set}" = set; then : |
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 8466 | withval=$with_dbmliborder; |
| 8467 | if test x$with_dbmliborder = xyes |
| 8468 | then |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 8469 | as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5 |
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 8470 | else |
| 8471 | for db in `echo $with_dbmliborder | sed 's/:/ /g'`; do |
| 8472 | if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb |
| 8473 | then |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 8474 | as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5 |
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 8475 | fi |
| 8476 | done |
| 8477 | fi |
| 8478 | fi |
| 8479 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_dbmliborder" >&5 |
| 8481 | $as_echo "$with_dbmliborder" >&6; } |
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 8482 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 8483 | # Determine if signalmodule should be used. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 8484 | |
| 8485 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8486 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-signal-module" >&5 |
| 8487 | $as_echo_n "checking for --with-signal-module... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8488 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8489 | # Check whether --with-signal-module was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8490 | if test "${with_signal_module+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8491 | withval=$with_signal_module; |
| 8492 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 8493 | |
| 8494 | |
| 8495 | if test -z "$with_signal_module" |
| 8496 | then with_signal_module="yes" |
| 8497 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_signal_module" >&5 |
| 8499 | $as_echo "$with_signal_module" >&6; } |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 8500 | |
| 8501 | if test "${with_signal_module}" = "yes"; then |
| 8502 | USE_SIGNAL_MODULE="" |
| 8503 | SIGNAL_OBJS="" |
| 8504 | else |
| 8505 | USE_SIGNAL_MODULE="#" |
| 8506 | SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o" |
| 8507 | fi |
| 8508 | |
Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 8509 | # This is used to generate Setup.config |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 8510 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 8511 | USE_THREAD_MODULE="" |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 8512 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8513 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dec-threads" >&5 |
| 8514 | $as_echo_n "checking for --with-dec-threads... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8515 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 8516 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8517 | # Check whether --with-dec-threads was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8518 | if test "${with_dec_threads+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8519 | withval=$with_dec_threads; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 |
| 8521 | $as_echo "$withval" >&6; } |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 8522 | LDLAST=-threads |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 8523 | if test "${with_thread+set}" != set; then |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 8524 | with_thread="$withval"; |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 8525 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 8526 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8528 | $as_echo "no" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8529 | fi |
| 8530 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8531 | |
| 8532 | # Templates for things AC_DEFINEd more than once. |
| 8533 | # For a single AC_DEFINE, no template is needed. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 8534 | |
| 8535 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8536 | |
| 8537 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8538 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-threads" >&5 |
| 8539 | $as_echo_n "checking for --with-threads... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8540 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8541 | # Check whether --with-threads was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8542 | if test "${with_threads+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8543 | withval=$with_threads; |
| 8544 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 8545 | |
| 8546 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 8547 | # --with-thread is deprecated, but check for it anyway |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8548 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8549 | # Check whether --with-thread was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8550 | if test "${with_thread+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8551 | withval=$with_thread; with_threads=$with_thread |
| 8552 | fi |
| 8553 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 8554 | |
| 8555 | if test -z "$with_threads" |
| 8556 | then with_threads="yes" |
| 8557 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_threads" >&5 |
| 8559 | $as_echo "$with_threads" >&6; } |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 8560 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8561 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 8562 | if test "$with_threads" = "no" |
| 8563 | then |
| 8564 | USE_THREAD_MODULE="#" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 8565 | elif test "$ac_cv_pthread_is_default" = yes |
| 8566 | then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8567 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 8568 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 8569 | # Defining _REENTRANT on system with POSIX threads should not hurt. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8570 | $as_echo "#define _REENTRANT 1" >>confdefs.h |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 8571 | |
| 8572 | posix_threads=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8573 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8574 | elif test "$ac_cv_kpthread" = "yes" |
| 8575 | then |
| 8576 | CC="$CC -Kpthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 8577 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 8578 | CXX="$CXX -Kpthread" |
| 8579 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8580 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 8581 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 8582 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8583 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 8584 | elif test "$ac_cv_kthread" = "yes" |
| 8585 | then |
| 8586 | CC="$CC -Kthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 8587 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 8588 | CXX="$CXX -Kthread" |
| 8589 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8590 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 8591 | |
| 8592 | posix_threads=yes |
| 8593 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8594 | elif test "$ac_cv_pthread" = "yes" |
| 8595 | then |
| 8596 | CC="$CC -pthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 8597 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 8598 | CXX="$CXX -pthread" |
| 8599 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8600 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8601 | |
| 8602 | posix_threads=yes |
| 8603 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8604 | else |
| 8605 | if test ! -z "$with_threads" -a -d "$with_threads" |
| 8606 | then LDFLAGS="$LDFLAGS -L$with_threads" |
| 8607 | fi |
| 8608 | if test ! -z "$withval" -a -d "$withval" |
| 8609 | then LDFLAGS="$LDFLAGS -L$withval" |
| 8610 | fi |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8611 | |
| 8612 | # According to the POSIX spec, a pthreads implementation must |
Matthias Klose | a2542be | 2004-08-16 11:35:51 +0000 | [diff] [blame] | 8613 | # define _POSIX_THREADS in unistd.h. Some apparently don't |
| 8614 | # (e.g. gnu pth with pthread emulation) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8615 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _POSIX_THREADS in unistd.h" >&5 |
| 8616 | $as_echo_n "checking for _POSIX_THREADS in unistd.h... " >&6; } |
| 8617 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8618 | /* end confdefs.h. */ |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 8619 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8620 | #include <unistd.h> |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 8621 | #ifdef _POSIX_THREADS |
| 8622 | yes |
| 8623 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8624 | |
| 8625 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8626 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8627 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8628 | unistd_defines_pthreads=yes |
| 8629 | else |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8630 | unistd_defines_pthreads=no |
| 8631 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 8632 | rm -f conftest* |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8633 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8634 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unistd_defines_pthreads" >&5 |
| 8635 | $as_echo "$unistd_defines_pthreads" >&6; } |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8636 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8637 | $as_echo "#define _REENTRANT 1" >>confdefs.h |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 8638 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8639 | ac_fn_c_check_header_mongrel "$LINENO" "cthreads.h" "ac_cv_header_cthreads_h" "$ac_includes_default" |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 8640 | if test "x$ac_cv_header_cthreads_h" = xyes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8641 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8642 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8643 | $as_echo "#define C_THREADS 1" >>confdefs.h |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 8644 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8645 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8646 | $as_echo "#define HURD_C_THREADS 1" >>confdefs.h |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8647 | |
| 8648 | LIBS="$LIBS -lthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8649 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8650 | else |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8651 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8652 | ac_fn_c_check_header_mongrel "$LINENO" "mach/cthreads.h" "ac_cv_header_mach_cthreads_h" "$ac_includes_default" |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 8653 | if test "x$ac_cv_header_mach_cthreads_h" = xyes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8654 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8655 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8656 | $as_echo "#define C_THREADS 1" >>confdefs.h |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8657 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8658 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8659 | $as_echo "#define MACH_C_THREADS 1" >>confdefs.h |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8660 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8661 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 8662 | else |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 8663 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 8664 | # Just looking for pthread_create in libpthread is not enough: |
| 8665 | # on HP/UX, pthread.h renames pthread_create to a different symbol name. |
| 8666 | # So we really have to include pthread.h, and then link. |
| 8667 | _libs=$LIBS |
| 8668 | LIBS="$LIBS -lpthread" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8669 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 |
| 8670 | $as_echo_n "checking for pthread_create in -lpthread... " >&6; } |
| 8671 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8672 | /* end confdefs.h. */ |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 8673 | #include <pthread.h> |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 8674 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 8675 | void * start_routine (void *arg) { exit (0); } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8676 | int |
| 8677 | main () |
| 8678 | { |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 8679 | |
| 8680 | pthread_create (NULL, NULL, start_routine, NULL) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8681 | ; |
| 8682 | return 0; |
| 8683 | } |
| 8684 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8685 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8686 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 8688 | $as_echo "yes" >&6; } |
| 8689 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 8690 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8691 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8692 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 8693 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8694 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 8695 | LIBS=$_libs |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8696 | ac_fn_c_check_func "$LINENO" "pthread_detach" "ac_cv_func_pthread_detach" |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 8697 | if test "x$ac_cv_func_pthread_detach" = xyes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8698 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8699 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8700 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8701 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8702 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8703 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8704 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5 |
| 8705 | $as_echo_n "checking for pthread_create in -lpthreads... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 8706 | if ${ac_cv_lib_pthreads_pthread_create+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8707 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8708 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8709 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8710 | LIBS="-lpthreads $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8711 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8712 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8713 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8714 | /* Override any GCC internal prototype to avoid an error. |
| 8715 | Use char because int might match the return type of a GCC |
| 8716 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8717 | #ifdef __cplusplus |
| 8718 | extern "C" |
| 8719 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8720 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8721 | int |
| 8722 | main () |
| 8723 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8724 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8725 | ; |
| 8726 | return 0; |
| 8727 | } |
| 8728 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8729 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8730 | ac_cv_lib_pthreads_pthread_create=yes |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 8731 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8732 | ac_cv_lib_pthreads_pthread_create=no |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 8733 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8734 | rm -f core conftest.err conftest.$ac_objext \ |
| 8735 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8736 | LIBS=$ac_check_lib_save_LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 8737 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5 |
| 8739 | $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 8740 | if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8741 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 8742 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 8743 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8744 | LIBS="$LIBS -lpthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8745 | THREADOBJ="Python/thread.o" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 8746 | else |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 8747 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8748 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5 |
| 8749 | $as_echo_n "checking for pthread_create in -lc_r... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 8750 | if ${ac_cv_lib_c_r_pthread_create+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8751 | $as_echo_n "(cached) " >&6 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 8752 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8753 | ac_check_lib_save_LIBS=$LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 8754 | LIBS="-lc_r $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8755 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8756 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8757 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8758 | /* Override any GCC internal prototype to avoid an error. |
| 8759 | Use char because int might match the return type of a GCC |
| 8760 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8761 | #ifdef __cplusplus |
| 8762 | extern "C" |
| 8763 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8764 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8765 | int |
| 8766 | main () |
| 8767 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8768 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8769 | ; |
| 8770 | return 0; |
| 8771 | } |
| 8772 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8773 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8774 | ac_cv_lib_c_r_pthread_create=yes |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 8775 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8776 | ac_cv_lib_c_r_pthread_create=no |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 8777 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8778 | rm -f core conftest.err conftest.$ac_objext \ |
| 8779 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8780 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 8781 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5 |
| 8783 | $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 8784 | if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8785 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 8786 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 8787 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8788 | LIBS="$LIBS -lc_r" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8789 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 8790 | else |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 8791 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8792 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __pthread_create_system in -lpthread" >&5 |
| 8793 | $as_echo_n "checking for __pthread_create_system in -lpthread... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 8794 | if ${ac_cv_lib_pthread___pthread_create_system+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8795 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 8796 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8797 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 8798 | LIBS="-lpthread $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8799 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8800 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8801 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8802 | /* Override any GCC internal prototype to avoid an error. |
| 8803 | Use char because int might match the return type of a GCC |
| 8804 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8805 | #ifdef __cplusplus |
| 8806 | extern "C" |
| 8807 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8808 | char __pthread_create_system (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8809 | int |
| 8810 | main () |
| 8811 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8812 | return __pthread_create_system (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8813 | ; |
| 8814 | return 0; |
| 8815 | } |
| 8816 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8817 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8818 | ac_cv_lib_pthread___pthread_create_system=yes |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 8819 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8820 | ac_cv_lib_pthread___pthread_create_system=no |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 8821 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8822 | rm -f core conftest.err conftest.$ac_objext \ |
| 8823 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8824 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 8825 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_create_system" >&5 |
| 8827 | $as_echo "$ac_cv_lib_pthread___pthread_create_system" >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 8828 | if test "x$ac_cv_lib_pthread___pthread_create_system" = xyes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8829 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 8830 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 8831 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8832 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8833 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 8834 | else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 8835 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8836 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lcma" >&5 |
| 8837 | $as_echo_n "checking for pthread_create in -lcma... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 8838 | if ${ac_cv_lib_cma_pthread_create+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8839 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 8840 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8841 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 8842 | LIBS="-lcma $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8843 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8844 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8845 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8846 | /* Override any GCC internal prototype to avoid an error. |
| 8847 | Use char because int might match the return type of a GCC |
| 8848 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8849 | #ifdef __cplusplus |
| 8850 | extern "C" |
| 8851 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8852 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8853 | int |
| 8854 | main () |
| 8855 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8856 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8857 | ; |
| 8858 | return 0; |
| 8859 | } |
| 8860 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8861 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8862 | ac_cv_lib_cma_pthread_create=yes |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 8863 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8864 | ac_cv_lib_cma_pthread_create=no |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 8865 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8866 | rm -f core conftest.err conftest.$ac_objext \ |
| 8867 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8868 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 8869 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cma_pthread_create" >&5 |
| 8871 | $as_echo "$ac_cv_lib_cma_pthread_create" >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 8872 | if test "x$ac_cv_lib_cma_pthread_create" = xyes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8873 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 8874 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 8875 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8876 | LIBS="$LIBS -lcma" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8877 | THREADOBJ="Python/thread.o" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 8878 | else |
Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 8879 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8880 | USE_THREAD_MODULE="#" |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 8881 | fi |
| 8882 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8883 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 8884 | fi |
| 8885 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 8886 | fi |
| 8887 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 8888 | fi |
| 8889 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 8890 | fi |
| 8891 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 8892 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8893 | rm -f core conftest.err conftest.$ac_objext \ |
| 8894 | conftest$ac_exeext conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8895 | fi |
| 8896 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8897 | |
| 8898 | fi |
| 8899 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8900 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8901 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8902 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usconfig in -lmpc" >&5 |
| 8903 | $as_echo_n "checking for usconfig in -lmpc... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 8904 | if ${ac_cv_lib_mpc_usconfig+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8905 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8906 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8907 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8908 | LIBS="-lmpc $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8909 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8910 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8911 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8912 | /* Override any GCC internal prototype to avoid an error. |
| 8913 | Use char because int might match the return type of a GCC |
| 8914 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8915 | #ifdef __cplusplus |
| 8916 | extern "C" |
| 8917 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8918 | char usconfig (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8919 | int |
| 8920 | main () |
| 8921 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8922 | return usconfig (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8923 | ; |
| 8924 | return 0; |
| 8925 | } |
| 8926 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8927 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8928 | ac_cv_lib_mpc_usconfig=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8929 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8930 | ac_cv_lib_mpc_usconfig=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8931 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8932 | rm -f core conftest.err conftest.$ac_objext \ |
| 8933 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8934 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8935 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpc_usconfig" >&5 |
| 8937 | $as_echo "$ac_cv_lib_mpc_usconfig" >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 8938 | if test "x$ac_cv_lib_mpc_usconfig" = xyes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8939 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8940 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8941 | LIBS="$LIBS -lmpc" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8942 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8943 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8944 | fi |
| 8945 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 8946 | |
Neal Norwitz | a978ab0 | 2002-11-02 16:58:05 +0000 | [diff] [blame] | 8947 | if test "$posix_threads" != "yes"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8948 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5 |
| 8949 | $as_echo_n "checking for thr_create in -lthread... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 8950 | if ${ac_cv_lib_thread_thr_create+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8951 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8952 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8953 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8954 | LIBS="-lthread $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8955 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8956 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8957 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8958 | /* Override any GCC internal prototype to avoid an error. |
| 8959 | Use char because int might match the return type of a GCC |
| 8960 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8961 | #ifdef __cplusplus |
| 8962 | extern "C" |
| 8963 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8964 | char thr_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8965 | int |
| 8966 | main () |
| 8967 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8968 | return thr_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8969 | ; |
| 8970 | return 0; |
| 8971 | } |
| 8972 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8973 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8974 | ac_cv_lib_thread_thr_create=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8975 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8976 | ac_cv_lib_thread_thr_create=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8977 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8978 | rm -f core conftest.err conftest.$ac_objext \ |
| 8979 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8980 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8981 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5 |
| 8983 | $as_echo "$ac_cv_lib_thread_thr_create" >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 8984 | if test "x$ac_cv_lib_thread_thr_create" = xyes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8985 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8986 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 8987 | LIBS="$LIBS -lthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8988 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 8989 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8990 | fi |
| 8991 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 8992 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8993 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8994 | if test "$USE_THREAD_MODULE" != "#" |
| 8995 | then |
| 8996 | # If the above checks didn't disable threads, (at least) OSF1 |
| 8997 | # needs this '-threads' argument during linking. |
| 8998 | case $ac_sys_system in |
| 8999 | OSF1) LDLAST=-threads;; |
| 9000 | esac |
Jeremy Hylton | 1a2ca86 | 2000-10-16 16:59:12 +0000 | [diff] [blame] | 9001 | fi |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9002 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 9003 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9004 | if test "$posix_threads" = "yes"; then |
| 9005 | if test "$unistd_defines_pthreads" = "no"; then |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 9006 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9007 | $as_echo "#define _POSIX_THREADS 1" >>confdefs.h |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9008 | |
| 9009 | fi |
| 9010 | |
| 9011 | # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8. |
| 9012 | case $ac_sys_system/$ac_sys_release in |
Charles-François Natali | 996f606 | 2011-07-21 19:45:31 +0200 | [diff] [blame] | 9013 | SunOS/5.6) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9014 | $as_echo "#define HAVE_PTHREAD_DESTRUCTOR 1" >>confdefs.h |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 9015 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9016 | ;; |
| 9017 | SunOS/5.8) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9018 | $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9019 | |
| 9020 | ;; |
Charles-François Natali | 996f606 | 2011-07-21 19:45:31 +0200 | [diff] [blame] | 9021 | AIX/*) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9022 | $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h |
Christian Heimes | 7b3ce6a | 2008-01-31 14:31:45 +0000 | [diff] [blame] | 9023 | |
| 9024 | ;; |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9025 | esac |
| 9026 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9027 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 |
| 9028 | $as_echo_n "checking if PTHREAD_SCOPE_SYSTEM is supported... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 9029 | if ${ac_cv_pthread_system_supported+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9030 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9031 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9032 | if test "$cross_compiling" = yes; then : |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9033 | ac_cv_pthread_system_supported=no |
| 9034 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9035 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9036 | /* end confdefs.h. */ |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9037 | #include <pthread.h> |
| 9038 | void *foo(void *parm) { |
| 9039 | return NULL; |
| 9040 | } |
| 9041 | main() { |
| 9042 | pthread_attr_t attr; |
| 9043 | pthread_t id; |
| 9044 | if (pthread_attr_init(&attr)) exit(-1); |
| 9045 | if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1); |
| 9046 | if (pthread_create(&id, &attr, foo, NULL)) exit(-1); |
| 9047 | exit(0); |
| 9048 | } |
| 9049 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9050 | if ac_fn_c_try_run "$LINENO"; then : |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9051 | ac_cv_pthread_system_supported=yes |
| 9052 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9053 | ac_cv_pthread_system_supported=no |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9054 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9055 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 9056 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9057 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 9058 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9059 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9060 | fi |
| 9061 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_system_supported" >&5 |
| 9063 | $as_echo "$ac_cv_pthread_system_supported" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9064 | if test "$ac_cv_pthread_system_supported" = "yes"; then |
| 9065 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9066 | $as_echo "#define PTHREAD_SYSTEM_SCHED_SUPPORTED 1" >>confdefs.h |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9067 | |
| 9068 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9069 | for ac_func in pthread_sigmask |
| 9070 | do : |
| 9071 | ac_fn_c_check_func "$LINENO" "pthread_sigmask" "ac_cv_func_pthread_sigmask" |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 9072 | if test "x$ac_cv_func_pthread_sigmask" = xyes; then : |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9073 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9074 | #define HAVE_PTHREAD_SIGMASK 1 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9075 | _ACEOF |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 9076 | case $ac_sys_system in |
| 9077 | CYGWIN*) |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9078 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9079 | $as_echo "#define HAVE_BROKEN_PTHREAD_SIGMASK 1" >>confdefs.h |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 9080 | |
| 9081 | ;; |
| 9082 | esac |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9083 | fi |
| 9084 | done |
| 9085 | |
| 9086 | fi |
| 9087 | |
| 9088 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9089 | # Check for enable-ipv6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9090 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9091 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-ipv6 is specified" >&5 |
| 9092 | $as_echo_n "checking if --enable-ipv6 is specified... " >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9093 | # Check whether --enable-ipv6 was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9094 | if test "${enable_ipv6+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9095 | enableval=$enable_ipv6; case "$enableval" in |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9096 | no) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9098 | $as_echo "no" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9099 | ipv6=no |
| 9100 | ;; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9101 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 9102 | $as_echo "yes" >&6; } |
| 9103 | $as_echo "#define ENABLE_IPV6 1" >>confdefs.h |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9104 | |
| 9105 | ipv6=yes |
| 9106 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9107 | esac |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9108 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9109 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9110 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9111 | /* end confdefs.h. */ |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9112 | /* AF_INET6 available check */ |
| 9113 | #include <sys/types.h> |
| 9114 | #include <sys/socket.h> |
Charles-François Natali | f6fd794 | 2013-01-08 19:49:42 +0100 | [diff] [blame] | 9115 | int |
| 9116 | main () |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9117 | { |
Charles-François Natali | f6fd794 | 2013-01-08 19:49:42 +0100 | [diff] [blame] | 9118 | int domain = AF_INET6; |
| 9119 | ; |
| 9120 | return 0; |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9121 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9122 | _ACEOF |
Charles-François Natali | f6fd794 | 2013-01-08 19:49:42 +0100 | [diff] [blame] | 9123 | if ac_fn_c_try_compile "$LINENO"; then : |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9124 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 9126 | $as_echo "yes" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9127 | ipv6=yes |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9128 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9129 | else |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9130 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9132 | $as_echo "no" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9133 | ipv6=no |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9134 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9135 | fi |
Charles-François Natali | f6fd794 | 2013-01-08 19:49:42 +0100 | [diff] [blame] | 9136 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9137 | |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 9138 | if test "$ipv6" = "yes"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9139 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RFC2553 API is available" >&5 |
| 9140 | $as_echo_n "checking if RFC2553 API is available... " >&6; } |
| 9141 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9142 | /* end confdefs.h. */ |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9143 | |
| 9144 | #include <sys/types.h> |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 9145 | #include <netinet/in.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9146 | int |
| 9147 | main () |
| 9148 | { |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 9149 | struct sockaddr_in6 x; |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9150 | x.sin6_scope_id; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9151 | ; |
| 9152 | return 0; |
| 9153 | } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9154 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9155 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9156 | if ac_fn_c_try_compile "$LINENO"; then : |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9157 | |
| 9158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9159 | $as_echo "yes" >&6; } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9160 | ipv6=yes |
| 9161 | |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 9162 | else |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9163 | |
| 9164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9165 | $as_echo "no" >&6; } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9166 | ipv6=no |
| 9167 | |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 9168 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9169 | 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] | 9170 | fi |
| 9171 | |
| 9172 | if test "$ipv6" = "yes"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9173 | $as_echo "#define ENABLE_IPV6 1" >>confdefs.h |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 9174 | |
| 9175 | fi |
| 9176 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9177 | fi |
| 9178 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9179 | |
| 9180 | ipv6type=unknown |
| 9181 | ipv6lib=none |
| 9182 | ipv6trylibc=no |
| 9183 | |
| 9184 | if test "$ipv6" = "yes"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9185 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking ipv6 stack type" >&5 |
| 9186 | $as_echo_n "checking ipv6 stack type... " >&6; } |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 9187 | for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; |
| 9188 | do |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9189 | case $i in |
| 9190 | inria) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9191 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9192 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9193 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9194 | #include <netinet/in.h> |
| 9195 | #ifdef IPV6_INRIA_VERSION |
| 9196 | yes |
| 9197 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9198 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9199 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9200 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 9201 | ipv6type=$i |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9202 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 9203 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9204 | |
| 9205 | ;; |
| 9206 | kame) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9207 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9208 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9209 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9210 | #include <netinet/in.h> |
| 9211 | #ifdef __KAME__ |
| 9212 | yes |
| 9213 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9214 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9215 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9216 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9217 | ipv6type=$i; |
| 9218 | ipv6lib=inet6 |
| 9219 | ipv6libdir=/usr/local/v6/lib |
| 9220 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9221 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 9222 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9223 | |
| 9224 | ;; |
| 9225 | linux-glibc) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9226 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9227 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9228 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9229 | #include <features.h> |
| 9230 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) |
| 9231 | yes |
| 9232 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9233 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9234 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9235 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9236 | ipv6type=$i; |
| 9237 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9238 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 9239 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9240 | |
| 9241 | ;; |
| 9242 | linux-inet6) |
| 9243 | if test -d /usr/inet6; then |
| 9244 | ipv6type=$i |
| 9245 | ipv6lib=inet6 |
| 9246 | ipv6libdir=/usr/inet6/lib |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 9247 | BASECFLAGS="-I/usr/inet6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9248 | fi |
| 9249 | ;; |
| 9250 | solaris) |
| 9251 | if test -f /etc/netconfig; then |
Antoine Pitrou | f3fcd9f | 2011-01-03 18:53:50 +0000 | [diff] [blame] | 9252 | if $GREP -q tcp6 /etc/netconfig; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9253 | ipv6type=$i |
| 9254 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9255 | fi |
| 9256 | fi |
| 9257 | ;; |
| 9258 | toshiba) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9259 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9260 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9261 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9262 | #include <sys/param.h> |
| 9263 | #ifdef _TOSHIBA_INET6 |
| 9264 | yes |
| 9265 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9266 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9267 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9268 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9269 | ipv6type=$i; |
| 9270 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 9271 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9272 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 9273 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9274 | |
| 9275 | ;; |
| 9276 | v6d) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9277 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9278 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9279 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9280 | #include </usr/local/v6/include/sys/v6config.h> |
| 9281 | #ifdef __V6D__ |
| 9282 | yes |
| 9283 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9284 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9285 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9286 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9287 | ipv6type=$i; |
| 9288 | ipv6lib=v6; |
| 9289 | ipv6libdir=/usr/local/v6/lib; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 9290 | BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9291 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 9292 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9293 | |
| 9294 | ;; |
| 9295 | zeta) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9296 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9297 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9298 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9299 | #include <sys/param.h> |
| 9300 | #ifdef _ZETA_MINAMI_INET6 |
| 9301 | yes |
| 9302 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9303 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9304 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9305 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9306 | ipv6type=$i; |
| 9307 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 9308 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9309 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 9310 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9311 | |
| 9312 | ;; |
| 9313 | esac |
| 9314 | if test "$ipv6type" != "unknown"; then |
| 9315 | break |
| 9316 | fi |
| 9317 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6type" >&5 |
| 9319 | $as_echo "$ipv6type" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9320 | fi |
| 9321 | |
| 9322 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then |
| 9323 | if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then |
| 9324 | LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" |
| 9325 | echo "using lib$ipv6lib" |
| 9326 | else |
| 9327 | if test $ipv6trylibc = "yes"; then |
| 9328 | echo "using libc" |
| 9329 | else |
| 9330 | echo 'Fatal: no $ipv6lib library found. cannot continue.' |
| 9331 | echo "You need to fetch lib$ipv6lib.a from appropriate" |
| 9332 | echo 'ipv6 kit and compile beforehand.' |
| 9333 | exit 1 |
| 9334 | fi |
| 9335 | fi |
| 9336 | fi |
| 9337 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9338 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSX 10.5 SDK or later" >&5 |
| 9339 | $as_echo_n "checking for OSX 10.5 SDK or later... " >&6; } |
| 9340 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 9341 | /* end confdefs.h. */ |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9342 | |
| 9343 | #include <Carbon/Carbon.h> |
Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 9344 | int |
| 9345 | main () |
| 9346 | { |
| 9347 | FSIORefNum fRef = 0 |
| 9348 | ; |
| 9349 | return 0; |
| 9350 | } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9351 | |
Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 9352 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9353 | if ac_fn_c_try_compile "$LINENO"; then : |
Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 9354 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9355 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9356 | $as_echo "#define HAVE_OSX105_SDK 1" >>confdefs.h |
Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 9357 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 9359 | $as_echo "yes" >&6; } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9360 | |
Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 9361 | else |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9362 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9363 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9364 | $as_echo "no" >&6; } |
Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 9365 | |
| 9366 | fi |
Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 9367 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9368 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 9369 | # Check for --with-doc-strings |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9370 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-doc-strings" >&5 |
| 9371 | $as_echo_n "checking for --with-doc-strings... " >&6; } |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 9372 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9373 | # Check whether --with-doc-strings was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9374 | if test "${with_doc_strings+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9375 | withval=$with_doc_strings; |
| 9376 | fi |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 9377 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 9378 | |
| 9379 | if test -z "$with_doc_strings" |
| 9380 | then with_doc_strings="yes" |
| 9381 | fi |
| 9382 | if test "$with_doc_strings" != "no" |
| 9383 | then |
| 9384 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9385 | $as_echo "#define WITH_DOC_STRINGS 1" >>confdefs.h |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 9386 | |
| 9387 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_doc_strings" >&5 |
| 9389 | $as_echo "$with_doc_strings" >&6; } |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 9390 | |
Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 9391 | # Check if eval loop should use timestamp counter profiling |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9392 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tsc" >&5 |
| 9393 | $as_echo_n "checking for --with-tsc... " >&6; } |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 9394 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9395 | # Check whether --with-tsc was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9396 | if test "${with_tsc+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9397 | withval=$with_tsc; |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 9398 | if test "$withval" != no |
| 9399 | then |
| 9400 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9401 | $as_echo "#define WITH_TSC 1" >>confdefs.h |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 9402 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 9404 | $as_echo "yes" >&6; } |
| 9405 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9406 | $as_echo "no" >&6; } |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 9407 | fi |
| 9408 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9410 | $as_echo "no" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9411 | fi |
| 9412 | |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 9413 | |
| 9414 | # Check for Python-specific malloc support |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9415 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pymalloc" >&5 |
| 9416 | $as_echo_n "checking for --with-pymalloc... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9417 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9418 | # Check whether --with-pymalloc was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9419 | if test "${with_pymalloc+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9420 | withval=$with_pymalloc; |
| 9421 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9422 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 9423 | |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 9424 | if test -z "$with_pymalloc" |
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 9425 | then |
| 9426 | with_pymalloc="yes" |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 9427 | ABIFLAGS="${ABIFLAGS}m" |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 9428 | fi |
| 9429 | if test "$with_pymalloc" != "no" |
| 9430 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9431 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9432 | $as_echo "#define WITH_PYMALLOC 1" >>confdefs.h |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 9433 | |
| 9434 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pymalloc" >&5 |
| 9436 | $as_echo "$with_pymalloc" >&6; } |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 9437 | |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 9438 | # Check for Valgrind support |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9439 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-valgrind" >&5 |
| 9440 | $as_echo_n "checking for --with-valgrind... " >&6; } |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 9441 | |
| 9442 | # Check whether --with-valgrind was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9443 | if test "${with_valgrind+set}" = set; then : |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 9444 | withval=$with_valgrind; |
| 9445 | else |
| 9446 | with_valgrind=no |
| 9447 | fi |
| 9448 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_valgrind" >&5 |
| 9450 | $as_echo "$with_valgrind" >&6; } |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 9451 | if test "$with_valgrind" != no; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9452 | ac_fn_c_check_header_mongrel "$LINENO" "valgrind/valgrind.h" "ac_cv_header_valgrind_valgrind_h" "$ac_includes_default" |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 9453 | if test "x$ac_cv_header_valgrind_valgrind_h" = xyes; then : |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 9454 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9455 | $as_echo "#define WITH_VALGRIND 1" >>confdefs.h |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 9456 | |
| 9457 | else |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 9458 | as_fn_error $? "Valgrind support requested but headers not available" "$LINENO" 5 |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 9459 | |
| 9460 | fi |
| 9461 | |
| 9462 | |
Jeffrey Yasskin | 3937083 | 2010-05-03 19:29:34 +0000 | [diff] [blame] | 9463 | OPT="-DDYNAMIC_ANNOTATIONS_ENABLED=1 $OPT" |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 9464 | fi |
| 9465 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9466 | # -I${DLINCLDIR} is added to the compile rule for importdl.o |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 9467 | |
Guido van Rossum | 98935bf | 2001-09-05 19:13:16 +0000 | [diff] [blame] | 9468 | DLINCLDIR=. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 9469 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9470 | # the dlopen() function means we might want to use dynload_shlib.o. some |
| 9471 | # 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] | 9472 | for ac_func in dlopen |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9473 | do : |
| 9474 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 9475 | if test "x$ac_cv_func_dlopen" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9476 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9477 | #define HAVE_DLOPEN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9478 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9479 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9480 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 9481 | done |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9482 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9483 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9484 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic |
| 9485 | # loading of modules. |
| 9486 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9487 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking DYNLOADFILE" >&5 |
| 9488 | $as_echo_n "checking DYNLOADFILE... " >&6; } |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9489 | if test -z "$DYNLOADFILE" |
| 9490 | then |
| 9491 | case $ac_sys_system/$ac_sys_release in |
Martin v. Löwis | c19c5a6 | 2003-11-18 20:00:44 +0000 | [diff] [blame] | 9492 | AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c |
| 9493 | if test "$ac_cv_func_dlopen" = yes |
| 9494 | then DYNLOADFILE="dynload_shlib.o" |
| 9495 | else DYNLOADFILE="dynload_aix.o" |
| 9496 | fi |
| 9497 | ;; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9498 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 9499 | # Use dynload_next.c only on 10.2 and below, which don't have native dlopen() |
| 9500 | Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9501 | *) |
| 9502 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub |
| 9503 | # out any dynamic loading |
| 9504 | if test "$ac_cv_func_dlopen" = yes |
| 9505 | then DYNLOADFILE="dynload_shlib.o" |
| 9506 | else DYNLOADFILE="dynload_stub.o" |
| 9507 | fi |
| 9508 | ;; |
| 9509 | esac |
| 9510 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DYNLOADFILE" >&5 |
| 9512 | $as_echo "$DYNLOADFILE" >&6; } |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9513 | if test "$DYNLOADFILE" != "dynload_stub.o" |
| 9514 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9515 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9516 | $as_echo "#define HAVE_DYNAMIC_LOADING 1" >>confdefs.h |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9517 | |
| 9518 | fi |
| 9519 | |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 9520 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python |
| 9521 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9522 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9523 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP_OBJS" >&5 |
| 9524 | $as_echo_n "checking MACHDEP_OBJS... " >&6; } |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 9525 | if test -z "$MACHDEP_OBJS" |
| 9526 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9527 | MACHDEP_OBJS=$extra_machdep_objs |
| 9528 | else |
| 9529 | MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 9530 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: MACHDEP_OBJS" >&5 |
| 9532 | $as_echo "MACHDEP_OBJS" >&6; } |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 9533 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9534 | # checks for library functions |
Antoine Pitrou | b1c5496 | 2010-10-14 15:05:38 +0000 | [diff] [blame] | 9535 | for ac_func in alarm accept4 setitimer getitimer bind_textdomain_codeset chown \ |
Gregory P. Smith | df300d5 | 2012-01-21 18:20:15 -0800 | [diff] [blame] | 9536 | clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \ |
Martin v. Löwis | 438b534 | 2002-12-27 10:16:42 +0000 | [diff] [blame] | 9537 | gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \ |
Martin v. Löwis | 7aed61a | 2009-11-27 14:09:49 +0000 | [diff] [blame] | 9538 | getpriority getresuid getresgid getpwent getspnam getspent getsid getwd \ |
Antoine Pitrou | b7572f0 | 2009-12-02 20:46:48 +0000 | [diff] [blame] | 9539 | initgroups kill killpg lchmod lchown lstat mbrtowc mkfifo mknod mktime \ |
Martin v. Löwis | a5f0907 | 2002-10-11 05:37:59 +0000 | [diff] [blame] | 9540 | mremap nice pathconf pause plock poll pthread_init \ |
Guido van Rossum | 162e38c | 2003-02-19 15:25:10 +0000 | [diff] [blame] | 9541 | putenv readlink realpath \ |
Benjamin Peterson | 965ce87 | 2009-04-05 21:24:58 +0000 | [diff] [blame] | 9542 | select sem_open sem_timedwait sem_getvalue sem_unlink setegid seteuid \ |
| 9543 | setgid \ |
Martin v. Löwis | 7aed61a | 2009-11-27 14:09:49 +0000 | [diff] [blame] | 9544 | setlocale setregid setreuid setresuid setresgid setsid setpgid setpgrp setuid setvbuf \ |
Jean-Paul Calderone | 6ed7ac4 | 2010-06-19 19:58:37 +0000 | [diff] [blame] | 9545 | sigaction siginterrupt sigrelse snprintf strftime strlcpy \ |
Michael W. Hudson | 34f20ea | 2002-05-27 15:08:24 +0000 | [diff] [blame] | 9546 | sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ |
Martin v. Löwis | 113a085 | 2009-05-29 17:25:39 +0000 | [diff] [blame] | 9547 | truncate uname unsetenv utimes waitpid wait3 wait4 \ |
| 9548 | wcscoll wcsftime wcsxfrm _getpty |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9549 | do : |
| 9550 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 9551 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 9552 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9553 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9554 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9555 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 9556 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 9557 | fi |
| 9558 | done |
| 9559 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9560 | |
Gregory P. Smith | df300d5 | 2012-01-21 18:20:15 -0800 | [diff] [blame] | 9561 | ac_fn_c_check_decl "$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h> |
| 9562 | #include <dirent.h> |
| 9563 | " |
| 9564 | if test "x$ac_cv_have_decl_dirfd" = xyes; then : |
| 9565 | |
| 9566 | $as_echo "#define HAVE_DIRFD 1" >>confdefs.h |
| 9567 | |
| 9568 | fi |
| 9569 | |
| 9570 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9571 | # For some functions, having a definition is not sufficient, since |
| 9572 | # we want to take their address. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9573 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chroot" >&5 |
| 9574 | $as_echo_n "checking for chroot... " >&6; } |
| 9575 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9576 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9577 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9578 | int |
| 9579 | main () |
| 9580 | { |
| 9581 | void *x=chroot |
| 9582 | ; |
| 9583 | return 0; |
| 9584 | } |
| 9585 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9586 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9587 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9588 | $as_echo "#define HAVE_CHROOT 1" >>confdefs.h |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9589 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9591 | $as_echo "yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9592 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9594 | $as_echo "no" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9595 | |
| 9596 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9597 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9598 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for link" >&5 |
| 9599 | $as_echo_n "checking for link... " >&6; } |
| 9600 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9601 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9602 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9603 | int |
| 9604 | main () |
| 9605 | { |
| 9606 | void *x=link |
| 9607 | ; |
| 9608 | return 0; |
| 9609 | } |
| 9610 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9611 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9612 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9613 | $as_echo "#define HAVE_LINK 1" >>confdefs.h |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9614 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9616 | $as_echo "yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9617 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9619 | $as_echo "no" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9620 | |
| 9621 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9622 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9623 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for symlink" >&5 |
| 9624 | $as_echo_n "checking for symlink... " >&6; } |
| 9625 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9626 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9627 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9628 | int |
| 9629 | main () |
| 9630 | { |
| 9631 | void *x=symlink |
| 9632 | ; |
| 9633 | return 0; |
| 9634 | } |
| 9635 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9636 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9637 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9638 | $as_echo "#define HAVE_SYMLINK 1" >>confdefs.h |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9639 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9641 | $as_echo "yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9642 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9644 | $as_echo "no" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9645 | |
| 9646 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9647 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9648 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fchdir" >&5 |
| 9649 | $as_echo_n "checking for fchdir... " >&6; } |
| 9650 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9651 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9652 | #include <unistd.h> |
| 9653 | int |
| 9654 | main () |
| 9655 | { |
| 9656 | void *x=fchdir |
| 9657 | ; |
| 9658 | return 0; |
| 9659 | } |
| 9660 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9661 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9662 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9663 | $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9664 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9666 | $as_echo "yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9667 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9669 | $as_echo "no" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9670 | |
| 9671 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9672 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9673 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fsync" >&5 |
| 9674 | $as_echo_n "checking for fsync... " >&6; } |
| 9675 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9676 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9677 | #include <unistd.h> |
| 9678 | int |
| 9679 | main () |
| 9680 | { |
| 9681 | void *x=fsync |
| 9682 | ; |
| 9683 | return 0; |
| 9684 | } |
| 9685 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9686 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9687 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9688 | $as_echo "#define HAVE_FSYNC 1" >>confdefs.h |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9689 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9691 | $as_echo "yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9692 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9694 | $as_echo "no" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9695 | |
| 9696 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9697 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9698 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fdatasync" >&5 |
| 9699 | $as_echo_n "checking for fdatasync... " >&6; } |
| 9700 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9701 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9702 | #include <unistd.h> |
| 9703 | int |
| 9704 | main () |
| 9705 | { |
| 9706 | void *x=fdatasync |
| 9707 | ; |
| 9708 | return 0; |
| 9709 | } |
| 9710 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9711 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9712 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9713 | $as_echo "#define HAVE_FDATASYNC 1" >>confdefs.h |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9714 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9716 | $as_echo "yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9717 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9719 | $as_echo "no" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9720 | |
| 9721 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9722 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9723 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll" >&5 |
| 9724 | $as_echo_n "checking for epoll... " >&6; } |
| 9725 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 9726 | /* end confdefs.h. */ |
| 9727 | #include <sys/epoll.h> |
| 9728 | int |
| 9729 | main () |
| 9730 | { |
| 9731 | void *x=epoll_create |
| 9732 | ; |
| 9733 | return 0; |
| 9734 | } |
| 9735 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9736 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9737 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9738 | $as_echo "#define HAVE_EPOLL 1" >>confdefs.h |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 9739 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9741 | $as_echo "yes" >&6; } |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 9742 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9744 | $as_echo "no" >&6; } |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 9745 | |
| 9746 | fi |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 9747 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9748 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kqueue" >&5 |
| 9749 | $as_echo_n "checking for kqueue... " >&6; } |
| 9750 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 9751 | /* end confdefs.h. */ |
| 9752 | |
| 9753 | #include <sys/types.h> |
| 9754 | #include <sys/event.h> |
| 9755 | |
| 9756 | int |
| 9757 | main () |
| 9758 | { |
| 9759 | int x=kqueue() |
| 9760 | ; |
| 9761 | return 0; |
| 9762 | } |
| 9763 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9764 | if ac_fn_c_try_compile "$LINENO"; then : |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 9765 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9766 | $as_echo "#define HAVE_KQUEUE 1" >>confdefs.h |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 9767 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9769 | $as_echo "yes" >&6; } |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 9770 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9772 | $as_echo "no" >&6; } |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 9773 | |
| 9774 | fi |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 9775 | 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] | 9776 | # On some systems (eg. FreeBSD 5), we would find a definition of the |
| 9777 | # functions ctermid_r, setgroups in the library, but no prototype |
| 9778 | # (e.g. because we use _XOPEN_SOURCE). See whether we can take their |
| 9779 | # address to avoid compiler warnings and potential miscompilations |
| 9780 | # because of the missing prototypes. |
| 9781 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9782 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctermid_r" >&5 |
| 9783 | $as_echo_n "checking for ctermid_r... " >&6; } |
| 9784 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9785 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 9786 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 9787 | #include <stdio.h> |
| 9788 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 9789 | int |
| 9790 | main () |
| 9791 | { |
| 9792 | void* p = ctermid_r |
| 9793 | ; |
| 9794 | return 0; |
| 9795 | } |
| 9796 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9797 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 9798 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9799 | $as_echo "#define HAVE_CTERMID_R 1" >>confdefs.h |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 9800 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9802 | $as_echo "yes" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 9803 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9805 | $as_echo "no" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 9806 | |
| 9807 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9808 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9809 | |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 9810 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock declaration" >&5 |
| 9811 | $as_echo_n "checking for flock declaration... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 9812 | if ${ac_cv_flock_decl+:} false; then : |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 9813 | $as_echo_n "(cached) " >&6 |
| 9814 | else |
| 9815 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9816 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9817 | #include <sys/file.h> |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9818 | int |
| 9819 | main () |
| 9820 | { |
| 9821 | void* p = flock |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 9822 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9823 | ; |
| 9824 | return 0; |
| 9825 | } |
| 9826 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9827 | if ac_fn_c_try_compile "$LINENO"; then : |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 9828 | ac_cv_flock_decl=yes |
| 9829 | else |
| 9830 | ac_cv_flock_decl=no |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9831 | |
| 9832 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9833 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 9834 | |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 9835 | fi |
| 9836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flock_decl" >&5 |
| 9837 | $as_echo "$ac_cv_flock_decl" >&6; } |
| 9838 | if test "x${ac_cv_flock_decl}" = xyes; then |
| 9839 | for ac_func in flock |
| 9840 | do : |
| 9841 | ac_fn_c_check_func "$LINENO" "flock" "ac_cv_func_flock" |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 9842 | if test "x$ac_cv_func_flock" = xyes; then : |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 9843 | cat >>confdefs.h <<_ACEOF |
| 9844 | #define HAVE_FLOCK 1 |
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 9845 | _ACEOF |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 9846 | |
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 9847 | else |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 9848 | { $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] | 9849 | $as_echo_n "checking for flock in -lbsd... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 9850 | if ${ac_cv_lib_bsd_flock+:} false; then : |
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 9851 | $as_echo_n "(cached) " >&6 |
| 9852 | else |
| 9853 | ac_check_lib_save_LIBS=$LIBS |
| 9854 | LIBS="-lbsd $LIBS" |
| 9855 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9856 | /* end confdefs.h. */ |
| 9857 | |
| 9858 | /* Override any GCC internal prototype to avoid an error. |
| 9859 | Use char because int might match the return type of a GCC |
| 9860 | builtin and then its argument prototype would still apply. */ |
| 9861 | #ifdef __cplusplus |
| 9862 | extern "C" |
| 9863 | #endif |
| 9864 | char flock (); |
| 9865 | int |
| 9866 | main () |
| 9867 | { |
| 9868 | return flock (); |
| 9869 | ; |
| 9870 | return 0; |
| 9871 | } |
| 9872 | _ACEOF |
| 9873 | if ac_fn_c_try_link "$LINENO"; then : |
| 9874 | ac_cv_lib_bsd_flock=yes |
| 9875 | else |
| 9876 | ac_cv_lib_bsd_flock=no |
| 9877 | fi |
| 9878 | rm -f core conftest.err conftest.$ac_objext \ |
| 9879 | conftest$ac_exeext conftest.$ac_ext |
| 9880 | LIBS=$ac_check_lib_save_LIBS |
| 9881 | fi |
| 9882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_flock" >&5 |
| 9883 | $as_echo "$ac_cv_lib_bsd_flock" >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 9884 | if test "x$ac_cv_lib_bsd_flock" = xyes; then : |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 9885 | $as_echo "#define HAVE_FLOCK 1" >>confdefs.h |
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 9886 | |
| 9887 | |
| 9888 | $as_echo "#define FLOCK_NEEDS_LIBBSD 1" >>confdefs.h |
| 9889 | |
| 9890 | |
| 9891 | fi |
| 9892 | |
| 9893 | |
| 9894 | fi |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 9895 | done |
| 9896 | |
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 9897 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9898 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9899 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize" >&5 |
| 9900 | $as_echo_n "checking for getpagesize... " >&6; } |
| 9901 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9902 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9903 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9904 | #include <unistd.h> |
| 9905 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9906 | int |
| 9907 | main () |
| 9908 | { |
| 9909 | void* p = getpagesize |
| 9910 | ; |
| 9911 | return 0; |
| 9912 | } |
| 9913 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9914 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9915 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9916 | $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9917 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9919 | $as_echo "yes" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9920 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9922 | $as_echo "no" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9923 | |
| 9924 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9925 | 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] | 9926 | |
Charles-François Natali | 6613c18 | 2011-11-27 12:41:06 +0100 | [diff] [blame] | 9927 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken unsetenv" >&5 |
| 9928 | $as_echo_n "checking for broken unsetenv... " >&6; } |
| 9929 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9930 | /* end confdefs.h. */ |
| 9931 | |
| 9932 | #include <stdlib.h> |
| 9933 | |
| 9934 | int |
| 9935 | main () |
| 9936 | { |
| 9937 | int res = unsetenv("DUMMY") |
| 9938 | ; |
| 9939 | return 0; |
| 9940 | } |
| 9941 | _ACEOF |
| 9942 | if ac_fn_c_try_compile "$LINENO"; then : |
| 9943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9944 | $as_echo "no" >&6; } |
| 9945 | else |
| 9946 | |
| 9947 | $as_echo "#define HAVE_BROKEN_UNSETENV 1" >>confdefs.h |
| 9948 | |
| 9949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 9950 | $as_echo "yes" >&6; } |
| 9951 | |
| 9952 | fi |
| 9953 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9954 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9955 | for ac_prog in true |
| 9956 | do |
| 9957 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 9958 | set dummy $ac_prog; ac_word=$2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9959 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9960 | $as_echo_n "checking for $ac_word... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 9961 | if ${ac_cv_prog_TRUE+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9962 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9963 | else |
| 9964 | if test -n "$TRUE"; then |
| 9965 | ac_cv_prog_TRUE="$TRUE" # Let the user override the test. |
| 9966 | else |
| 9967 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9968 | for as_dir in $PATH |
| 9969 | do |
| 9970 | IFS=$as_save_IFS |
| 9971 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9972 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 9973 | 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] | 9974 | ac_cv_prog_TRUE="$ac_prog" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9975 | $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] | 9976 | break 2 |
| 9977 | fi |
| 9978 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9979 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9980 | IFS=$as_save_IFS |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9981 | |
| 9982 | fi |
| 9983 | fi |
| 9984 | TRUE=$ac_cv_prog_TRUE |
| 9985 | if test -n "$TRUE"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUE" >&5 |
| 9987 | $as_echo "$TRUE" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9988 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9990 | $as_echo "no" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9991 | fi |
| 9992 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9993 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9994 | test -n "$TRUE" && break |
| 9995 | done |
| 9996 | test -n "$TRUE" || TRUE="/bin/true" |
| 9997 | |
| 9998 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9999 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lc" >&5 |
| 10000 | $as_echo_n "checking for inet_aton in -lc... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 10001 | if ${ac_cv_lib_c_inet_aton+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10002 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10003 | else |
| 10004 | ac_check_lib_save_LIBS=$LIBS |
| 10005 | LIBS="-lc $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10006 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10007 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10008 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10009 | /* Override any GCC internal prototype to avoid an error. |
| 10010 | Use char because int might match the return type of a GCC |
| 10011 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10012 | #ifdef __cplusplus |
| 10013 | extern "C" |
| 10014 | #endif |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10015 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10016 | int |
| 10017 | main () |
| 10018 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10019 | return inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10020 | ; |
| 10021 | return 0; |
| 10022 | } |
| 10023 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10024 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10025 | ac_cv_lib_c_inet_aton=yes |
| 10026 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10027 | ac_cv_lib_c_inet_aton=no |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10028 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10029 | rm -f core conftest.err conftest.$ac_objext \ |
| 10030 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10031 | LIBS=$ac_check_lib_save_LIBS |
| 10032 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_inet_aton" >&5 |
| 10034 | $as_echo "$ac_cv_lib_c_inet_aton" >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 10035 | 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] | 10036 | $ac_cv_prog_TRUE |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10037 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10038 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5 |
| 10039 | $as_echo_n "checking for inet_aton in -lresolv... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 10040 | if ${ac_cv_lib_resolv_inet_aton+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10041 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10042 | else |
| 10043 | ac_check_lib_save_LIBS=$LIBS |
| 10044 | LIBS="-lresolv $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10045 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10046 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10047 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10048 | /* Override any GCC internal prototype to avoid an error. |
| 10049 | Use char because int might match the return type of a GCC |
| 10050 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10051 | #ifdef __cplusplus |
| 10052 | extern "C" |
| 10053 | #endif |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10054 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10055 | int |
| 10056 | main () |
| 10057 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10058 | return inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10059 | ; |
| 10060 | return 0; |
| 10061 | } |
| 10062 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10063 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10064 | ac_cv_lib_resolv_inet_aton=yes |
| 10065 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10066 | ac_cv_lib_resolv_inet_aton=no |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10067 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10068 | rm -f core conftest.err conftest.$ac_objext \ |
| 10069 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10070 | LIBS=$ac_check_lib_save_LIBS |
| 10071 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5 |
| 10073 | $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 10074 | 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] | 10075 | cat >>confdefs.h <<_ACEOF |
| 10076 | #define HAVE_LIBRESOLV 1 |
| 10077 | _ACEOF |
| 10078 | |
| 10079 | LIBS="-lresolv $LIBS" |
| 10080 | |
| 10081 | fi |
| 10082 | |
| 10083 | |
| 10084 | fi |
| 10085 | |
| 10086 | |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 10087 | # On Tru64, chflags seems to be present, but calling it will |
| 10088 | # exit Python |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10089 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chflags" >&5 |
| 10090 | $as_echo_n "checking for chflags... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 10091 | if ${ac_cv_have_chflags+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10092 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10093 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10094 | if test "$cross_compiling" = yes; then : |
Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 10095 | ac_cv_have_chflags=cross |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 10096 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10097 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 10098 | /* end confdefs.h. */ |
Ned Deily | 3eb67d5 | 2011-06-28 00:00:28 -0700 | [diff] [blame] | 10099 | |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 10100 | #include <sys/stat.h> |
| 10101 | #include <unistd.h> |
| 10102 | int main(int argc, char*argv[]) |
| 10103 | { |
| 10104 | if(chflags(argv[0], 0) != 0) |
| 10105 | return 1; |
| 10106 | return 0; |
| 10107 | } |
Ned Deily | 3eb67d5 | 2011-06-28 00:00:28 -0700 | [diff] [blame] | 10108 | |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 10109 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10110 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10111 | ac_cv_have_chflags=yes |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10112 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10113 | ac_cv_have_chflags=no |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10114 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10115 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 10116 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 10117 | fi |
| 10118 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10119 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10120 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_chflags" >&5 |
| 10122 | $as_echo "$ac_cv_have_chflags" >&6; } |
Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 10123 | if test "$ac_cv_have_chflags" = cross ; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10124 | ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags" |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 10125 | if test "x$ac_cv_func_chflags" = xyes; then : |
Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 10126 | ac_cv_have_chflags="yes" |
| 10127 | else |
| 10128 | ac_cv_have_chflags="no" |
| 10129 | fi |
| 10130 | |
| 10131 | fi |
| 10132 | if test "$ac_cv_have_chflags" = yes ; then |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10133 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10134 | $as_echo "#define HAVE_CHFLAGS 1" >>confdefs.h |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10135 | |
| 10136 | fi |
| 10137 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10138 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lchflags" >&5 |
| 10139 | $as_echo_n "checking for lchflags... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 10140 | if ${ac_cv_have_lchflags+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10141 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10142 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10143 | if test "$cross_compiling" = yes; then : |
Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 10144 | ac_cv_have_lchflags=cross |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 10145 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10146 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 10147 | /* end confdefs.h. */ |
Ned Deily | 3eb67d5 | 2011-06-28 00:00:28 -0700 | [diff] [blame] | 10148 | |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 10149 | #include <sys/stat.h> |
| 10150 | #include <unistd.h> |
| 10151 | int main(int argc, char*argv[]) |
| 10152 | { |
| 10153 | if(lchflags(argv[0], 0) != 0) |
| 10154 | return 1; |
| 10155 | return 0; |
| 10156 | } |
Ned Deily | 3eb67d5 | 2011-06-28 00:00:28 -0700 | [diff] [blame] | 10157 | |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 10158 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10159 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10160 | ac_cv_have_lchflags=yes |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10161 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10162 | ac_cv_have_lchflags=no |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 10163 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10164 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 10165 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10166 | fi |
| 10167 | |
| 10168 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10169 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_lchflags" >&5 |
| 10171 | $as_echo "$ac_cv_have_lchflags" >&6; } |
Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 10172 | if test "$ac_cv_have_lchflags" = cross ; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10173 | ac_fn_c_check_func "$LINENO" "lchflags" "ac_cv_func_lchflags" |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 10174 | if test "x$ac_cv_func_lchflags" = xyes; then : |
Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 10175 | ac_cv_have_lchflags="yes" |
| 10176 | else |
| 10177 | ac_cv_have_lchflags="no" |
| 10178 | fi |
| 10179 | |
| 10180 | fi |
| 10181 | if test "$ac_cv_have_lchflags" = yes ; then |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10182 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10183 | $as_echo "#define HAVE_LCHFLAGS 1" >>confdefs.h |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10184 | |
| 10185 | fi |
| 10186 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 10187 | case $ac_sys_system/$ac_sys_release in |
| 10188 | Darwin/*) |
| 10189 | _CUR_CFLAGS="${CFLAGS}" |
| 10190 | _CUR_LDFLAGS="${LDFLAGS}" |
| 10191 | CFLAGS="${CFLAGS} -Wl,-search_paths_first" |
| 10192 | LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib" |
| 10193 | ;; |
| 10194 | esac |
| 10195 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10196 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5 |
| 10197 | $as_echo_n "checking for inflateCopy in -lz... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 10198 | if ${ac_cv_lib_z_inflateCopy+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10199 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 10200 | else |
| 10201 | ac_check_lib_save_LIBS=$LIBS |
| 10202 | LIBS="-lz $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10203 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 10204 | /* end confdefs.h. */ |
| 10205 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10206 | /* Override any GCC internal prototype to avoid an error. |
| 10207 | Use char because int might match the return type of a GCC |
| 10208 | builtin and then its argument prototype would still apply. */ |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 10209 | #ifdef __cplusplus |
| 10210 | extern "C" |
| 10211 | #endif |
| 10212 | char inflateCopy (); |
| 10213 | int |
| 10214 | main () |
| 10215 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10216 | return inflateCopy (); |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 10217 | ; |
| 10218 | return 0; |
| 10219 | } |
| 10220 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10221 | if ac_fn_c_try_link "$LINENO"; then : |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 10222 | ac_cv_lib_z_inflateCopy=yes |
| 10223 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10224 | ac_cv_lib_z_inflateCopy=no |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 10225 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10226 | rm -f core conftest.err conftest.$ac_objext \ |
| 10227 | conftest$ac_exeext conftest.$ac_ext |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 10228 | LIBS=$ac_check_lib_save_LIBS |
| 10229 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5 |
| 10231 | $as_echo "$ac_cv_lib_z_inflateCopy" >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 10232 | if test "x$ac_cv_lib_z_inflateCopy" = xyes; then : |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 10233 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10234 | $as_echo "#define HAVE_ZLIB_COPY 1" >>confdefs.h |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 10235 | |
| 10236 | fi |
| 10237 | |
| 10238 | |
| 10239 | case $ac_sys_system/$ac_sys_release in |
| 10240 | Darwin/*) |
| 10241 | CFLAGS="${_CUR_CFLAGS}" |
| 10242 | LDFLAGS="${_CUR_LDFLAGS}" |
| 10243 | ;; |
| 10244 | esac |
| 10245 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10246 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hstrerror" >&5 |
| 10247 | $as_echo_n "checking for hstrerror... " >&6; } |
| 10248 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10249 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10250 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10251 | #include <netdb.h> |
| 10252 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10253 | int |
| 10254 | main () |
| 10255 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10256 | void* p = hstrerror; hstrerror(0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10257 | ; |
| 10258 | return 0; |
| 10259 | } |
| 10260 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10261 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10262 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10263 | $as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10264 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10266 | $as_echo "yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10267 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10268 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10269 | $as_echo "no" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10270 | |
| 10271 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10272 | rm -f core conftest.err conftest.$ac_objext \ |
| 10273 | conftest$ac_exeext conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10274 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10275 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton" >&5 |
| 10276 | $as_echo_n "checking for inet_aton... " >&6; } |
| 10277 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10278 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10279 | |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 10280 | #include <sys/types.h> |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10281 | #include <sys/socket.h> |
| 10282 | #include <netinet/in.h> |
| 10283 | #include <arpa/inet.h> |
| 10284 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10285 | int |
| 10286 | main () |
| 10287 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10288 | void* p = inet_aton;inet_aton(0,0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10289 | ; |
| 10290 | return 0; |
| 10291 | } |
| 10292 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10293 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10294 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10295 | $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10296 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10298 | $as_echo "yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10299 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10301 | $as_echo "no" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10302 | |
| 10303 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10304 | rm -f core conftest.err conftest.$ac_objext \ |
| 10305 | conftest$ac_exeext conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10306 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10307 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_pton" >&5 |
| 10308 | $as_echo_n "checking for inet_pton... " >&6; } |
| 10309 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10310 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10311 | |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 10312 | #include <sys/types.h> |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10313 | #include <sys/socket.h> |
| 10314 | #include <netinet/in.h> |
| 10315 | #include <arpa/inet.h> |
| 10316 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10317 | int |
| 10318 | main () |
| 10319 | { |
| 10320 | void* p = inet_pton |
| 10321 | ; |
| 10322 | return 0; |
| 10323 | } |
| 10324 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10325 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10326 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10327 | $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10328 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10330 | $as_echo "yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10331 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10333 | $as_echo "no" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10334 | |
| 10335 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10336 | 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] | 10337 | |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 10338 | # 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] | 10339 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setgroups" >&5 |
| 10340 | $as_echo_n "checking for setgroups... " >&6; } |
| 10341 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10342 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10343 | |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 10344 | #include <unistd.h> |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 10345 | #ifdef HAVE_GRP_H |
| 10346 | #include <grp.h> |
| 10347 | #endif |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10348 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10349 | int |
| 10350 | main () |
| 10351 | { |
| 10352 | void* p = setgroups |
| 10353 | ; |
| 10354 | return 0; |
| 10355 | } |
| 10356 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10357 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10358 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10359 | $as_echo "#define HAVE_SETGROUPS 1" >>confdefs.h |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10360 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10362 | $as_echo "yes" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10363 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10364 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10365 | $as_echo "no" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10366 | |
| 10367 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10368 | 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] | 10369 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10370 | # check for openpty and forkpty |
| 10371 | |
| 10372 | for ac_func in openpty |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10373 | do : |
| 10374 | ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty" |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 10375 | if test "x$ac_cv_func_openpty" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10376 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10377 | #define HAVE_OPENPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10378 | _ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10379 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10380 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10381 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5 |
| 10382 | $as_echo_n "checking for openpty in -lutil... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 10383 | if ${ac_cv_lib_util_openpty+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10384 | $as_echo_n "(cached) " >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10385 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10386 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10387 | LIBS="-lutil $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10388 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10389 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10390 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10391 | /* Override any GCC internal prototype to avoid an error. |
| 10392 | Use char because int might match the return type of a GCC |
| 10393 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10394 | #ifdef __cplusplus |
| 10395 | extern "C" |
| 10396 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10397 | char openpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10398 | int |
| 10399 | main () |
| 10400 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10401 | return openpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10402 | ; |
| 10403 | return 0; |
| 10404 | } |
| 10405 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10406 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10407 | ac_cv_lib_util_openpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10408 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10409 | ac_cv_lib_util_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10410 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10411 | rm -f core conftest.err conftest.$ac_objext \ |
| 10412 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10413 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10414 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5 |
| 10416 | $as_echo "$ac_cv_lib_util_openpty" >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 10417 | if test "x$ac_cv_lib_util_openpty" = xyes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10418 | $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10419 | LIBS="$LIBS -lutil" |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10420 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10421 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lbsd" >&5 |
| 10422 | $as_echo_n "checking for openpty in -lbsd... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 10423 | if ${ac_cv_lib_bsd_openpty+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10424 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10425 | else |
| 10426 | ac_check_lib_save_LIBS=$LIBS |
| 10427 | LIBS="-lbsd $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10428 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10429 | /* end confdefs.h. */ |
| 10430 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10431 | /* Override any GCC internal prototype to avoid an error. |
| 10432 | Use char because int might match the return type of a GCC |
| 10433 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10434 | #ifdef __cplusplus |
| 10435 | extern "C" |
| 10436 | #endif |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10437 | char openpty (); |
| 10438 | int |
| 10439 | main () |
| 10440 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10441 | return openpty (); |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10442 | ; |
| 10443 | return 0; |
| 10444 | } |
| 10445 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10446 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10447 | ac_cv_lib_bsd_openpty=yes |
| 10448 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10449 | ac_cv_lib_bsd_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10450 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10451 | rm -f core conftest.err conftest.$ac_objext \ |
| 10452 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10453 | LIBS=$ac_check_lib_save_LIBS |
| 10454 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_openpty" >&5 |
| 10456 | $as_echo "$ac_cv_lib_bsd_openpty" >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 10457 | if test "x$ac_cv_lib_bsd_openpty" = xyes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10458 | $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10459 | LIBS="$LIBS -lbsd" |
| 10460 | fi |
| 10461 | |
| 10462 | |
| 10463 | fi |
| 10464 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10465 | |
| 10466 | fi |
| 10467 | done |
| 10468 | |
| 10469 | for ac_func in forkpty |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10470 | do : |
| 10471 | ac_fn_c_check_func "$LINENO" "forkpty" "ac_cv_func_forkpty" |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 10472 | if test "x$ac_cv_func_forkpty" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10473 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10474 | #define HAVE_FORKPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10475 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10476 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10477 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10478 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lutil" >&5 |
| 10479 | $as_echo_n "checking for forkpty in -lutil... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 10480 | if ${ac_cv_lib_util_forkpty+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10481 | $as_echo_n "(cached) " >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10482 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10483 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10484 | LIBS="-lutil $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10485 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10486 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10487 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10488 | /* Override any GCC internal prototype to avoid an error. |
| 10489 | Use char because int might match the return type of a GCC |
| 10490 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10491 | #ifdef __cplusplus |
| 10492 | extern "C" |
| 10493 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10494 | char forkpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10495 | int |
| 10496 | main () |
| 10497 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10498 | return forkpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10499 | ; |
| 10500 | return 0; |
| 10501 | } |
| 10502 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10503 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10504 | ac_cv_lib_util_forkpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10505 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10506 | ac_cv_lib_util_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10507 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10508 | rm -f core conftest.err conftest.$ac_objext \ |
| 10509 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10510 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10511 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_forkpty" >&5 |
| 10513 | $as_echo "$ac_cv_lib_util_forkpty" >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 10514 | if test "x$ac_cv_lib_util_forkpty" = xyes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10515 | $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10516 | LIBS="$LIBS -lutil" |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10517 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10518 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lbsd" >&5 |
| 10519 | $as_echo_n "checking for forkpty in -lbsd... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 10520 | if ${ac_cv_lib_bsd_forkpty+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10521 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10522 | else |
| 10523 | ac_check_lib_save_LIBS=$LIBS |
| 10524 | LIBS="-lbsd $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10525 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10526 | /* end confdefs.h. */ |
| 10527 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10528 | /* Override any GCC internal prototype to avoid an error. |
| 10529 | Use char because int might match the return type of a GCC |
| 10530 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10531 | #ifdef __cplusplus |
| 10532 | extern "C" |
| 10533 | #endif |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10534 | char forkpty (); |
| 10535 | int |
| 10536 | main () |
| 10537 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10538 | return forkpty (); |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10539 | ; |
| 10540 | return 0; |
| 10541 | } |
| 10542 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10543 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10544 | ac_cv_lib_bsd_forkpty=yes |
| 10545 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10546 | ac_cv_lib_bsd_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10547 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10548 | rm -f core conftest.err conftest.$ac_objext \ |
| 10549 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10550 | LIBS=$ac_check_lib_save_LIBS |
| 10551 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10552 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_forkpty" >&5 |
| 10553 | $as_echo "$ac_cv_lib_bsd_forkpty" >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 10554 | if test "x$ac_cv_lib_bsd_forkpty" = xyes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10555 | $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10556 | LIBS="$LIBS -lbsd" |
| 10557 | fi |
| 10558 | |
| 10559 | |
| 10560 | fi |
| 10561 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10562 | |
| 10563 | fi |
| 10564 | done |
| 10565 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 10566 | |
Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 10567 | # Stuff for expat. |
Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 10568 | for ac_func in memmove |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10569 | do : |
| 10570 | ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove" |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 10571 | if test "x$ac_cv_func_memmove" = xyes; then : |
Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 10572 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10573 | #define HAVE_MEMMOVE 1 |
Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 10574 | _ACEOF |
| 10575 | |
| 10576 | fi |
| 10577 | done |
| 10578 | |
| 10579 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10580 | # check for long file support functions |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10581 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10582 | do : |
| 10583 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 10584 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 10585 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10586 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10587 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10588 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10589 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10590 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10591 | done |
| 10592 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10593 | |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 10594 | ac_fn_c_check_func "$LINENO" "dup2" "ac_cv_func_dup2" |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 10595 | if test "x$ac_cv_func_dup2" = xyes; then : |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 10596 | $as_echo "#define HAVE_DUP2 1" >>confdefs.h |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 10597 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 10598 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10599 | case " $LIBOBJS " in |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 10600 | *" dup2.$ac_objext "* ) ;; |
| 10601 | *) LIBOBJS="$LIBOBJS dup2.$ac_objext" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10602 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10603 | esac |
| 10604 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 10605 | fi |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 10606 | |
| 10607 | ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd" |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 10608 | if test "x$ac_cv_func_getcwd" = xyes; then : |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 10609 | $as_echo "#define HAVE_GETCWD 1" >>confdefs.h |
| 10610 | |
| 10611 | else |
| 10612 | case " $LIBOBJS " in |
| 10613 | *" getcwd.$ac_objext "* ) ;; |
| 10614 | *) LIBOBJS="$LIBOBJS getcwd.$ac_objext" |
| 10615 | ;; |
| 10616 | esac |
| 10617 | |
| 10618 | fi |
| 10619 | |
| 10620 | ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup" |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 10621 | if test "x$ac_cv_func_strdup" = xyes; then : |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 10622 | $as_echo "#define HAVE_STRDUP 1" >>confdefs.h |
| 10623 | |
| 10624 | else |
| 10625 | case " $LIBOBJS " in |
| 10626 | *" strdup.$ac_objext "* ) ;; |
| 10627 | *) LIBOBJS="$LIBOBJS strdup.$ac_objext" |
| 10628 | ;; |
| 10629 | esac |
| 10630 | |
| 10631 | fi |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 10632 | |
| 10633 | |
| 10634 | for ac_func in getpgrp |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10635 | do : |
| 10636 | ac_fn_c_check_func "$LINENO" "getpgrp" "ac_cv_func_getpgrp" |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 10637 | if test "x$ac_cv_func_getpgrp" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10638 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10639 | #define HAVE_GETPGRP 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10640 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10641 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10642 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10643 | #include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10644 | int |
| 10645 | main () |
| 10646 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10647 | getpgrp(0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10648 | ; |
| 10649 | return 0; |
| 10650 | } |
| 10651 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10652 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10653 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10654 | $as_echo "#define GETPGRP_HAVE_ARG 1" >>confdefs.h |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10655 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10656 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10657 | 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] | 10658 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10659 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 10660 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10661 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 10662 | for ac_func in setpgrp |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10663 | do : |
| 10664 | ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp" |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 10665 | if test "x$ac_cv_func_setpgrp" = xyes; then : |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 10666 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10667 | #define HAVE_SETPGRP 1 |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 10668 | _ACEOF |
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. */ |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 10671 | #include <unistd.h> |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 10672 | int |
| 10673 | main () |
| 10674 | { |
| 10675 | setpgrp(0,0); |
| 10676 | ; |
| 10677 | return 0; |
| 10678 | } |
| 10679 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10680 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10681 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10682 | $as_echo "#define SETPGRP_HAVE_ARG 1" >>confdefs.h |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10683 | |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 10684 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10685 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 10686 | |
| 10687 | fi |
| 10688 | done |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 10689 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 10690 | for ac_func in gettimeofday |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10691 | do : |
| 10692 | ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 10693 | if test "x$ac_cv_func_gettimeofday" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10694 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10695 | #define HAVE_GETTIMEOFDAY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10696 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10697 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10698 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10699 | #include <sys/time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10700 | int |
| 10701 | main () |
| 10702 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10703 | gettimeofday((struct timeval*)0,(struct timezone*)0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10704 | ; |
| 10705 | return 0; |
| 10706 | } |
| 10707 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10708 | if ac_fn_c_try_compile "$LINENO"; then : |
| 10709 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10710 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10711 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10712 | $as_echo "#define GETTIMEOFDAY_NO_TZ 1" >>confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10713 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10714 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10715 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10716 | 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] | 10717 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10718 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 10719 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10720 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10721 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10722 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for major" >&5 |
| 10723 | $as_echo_n "checking for major... " >&6; } |
| 10724 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10725 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 10726 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 10727 | #if defined(MAJOR_IN_MKDEV) |
| 10728 | #include <sys/mkdev.h> |
| 10729 | #elif defined(MAJOR_IN_SYSMACROS) |
| 10730 | #include <sys/sysmacros.h> |
| 10731 | #else |
| 10732 | #include <sys/types.h> |
| 10733 | #endif |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 10734 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 10735 | int |
| 10736 | main () |
| 10737 | { |
| 10738 | |
| 10739 | makedev(major(0),minor(0)); |
| 10740 | |
| 10741 | ; |
| 10742 | return 0; |
| 10743 | } |
| 10744 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10745 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 10746 | |
| 10747 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10748 | $as_echo "#define HAVE_DEVICE_MACROS 1" >>confdefs.h |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 10749 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 10751 | $as_echo "yes" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 10752 | |
| 10753 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10754 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10756 | $as_echo "no" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 10757 | |
| 10758 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10759 | rm -f core conftest.err conftest.$ac_objext \ |
| 10760 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10761 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 10762 | # 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] | 10763 | # for [no]getaddrinfo in netdb.h. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10764 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5 |
| 10765 | $as_echo_n "checking for getaddrinfo... " >&6; } |
| 10766 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10767 | /* end confdefs.h. */ |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 10768 | |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 10769 | #include <sys/types.h> |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 10770 | #include <sys/socket.h> |
| 10771 | #include <netdb.h> |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 10772 | #include <stdio.h> |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10773 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10774 | int |
| 10775 | main () |
| 10776 | { |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 10777 | getaddrinfo(NULL, NULL, NULL, NULL); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10778 | ; |
| 10779 | return 0; |
| 10780 | } |
| 10781 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10782 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10783 | have_getaddrinfo=yes |
| 10784 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10785 | have_getaddrinfo=no |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10786 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10787 | rm -f core conftest.err conftest.$ac_objext \ |
| 10788 | conftest$ac_exeext conftest.$ac_ext |
| 10789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getaddrinfo" >&5 |
| 10790 | $as_echo "$have_getaddrinfo" >&6; } |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10791 | if test $have_getaddrinfo = yes |
| 10792 | then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10793 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking getaddrinfo bug" >&5 |
| 10794 | $as_echo_n "checking getaddrinfo bug... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 10795 | if ${ac_cv_buggy_getaddrinfo+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10796 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10797 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10798 | if test "$cross_compiling" = yes; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10799 | ac_cv_buggy_getaddrinfo=yes |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10800 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10801 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10802 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10803 | |
| 10804 | #include <sys/types.h> |
| 10805 | #include <netdb.h> |
| 10806 | #include <string.h> |
| 10807 | #include <sys/socket.h> |
| 10808 | #include <netinet/in.h> |
| 10809 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10810 | int main() |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10811 | { |
| 10812 | int passive, gaierr, inet4 = 0, inet6 = 0; |
| 10813 | struct addrinfo hints, *ai, *aitop; |
| 10814 | char straddr[INET6_ADDRSTRLEN], strport[16]; |
| 10815 | |
| 10816 | for (passive = 0; passive <= 1; passive++) { |
| 10817 | memset(&hints, 0, sizeof(hints)); |
| 10818 | hints.ai_family = AF_UNSPEC; |
| 10819 | hints.ai_flags = passive ? AI_PASSIVE : 0; |
| 10820 | hints.ai_socktype = SOCK_STREAM; |
Hye-Shik Chang | 54f9439 | 2004-04-14 07:55:31 +0000 | [diff] [blame] | 10821 | hints.ai_protocol = IPPROTO_TCP; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10822 | if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { |
| 10823 | (void)gai_strerror(gaierr); |
| 10824 | goto bad; |
| 10825 | } |
| 10826 | for (ai = aitop; ai; ai = ai->ai_next) { |
| 10827 | if (ai->ai_addr == NULL || |
| 10828 | ai->ai_addrlen == 0 || |
| 10829 | getnameinfo(ai->ai_addr, ai->ai_addrlen, |
| 10830 | straddr, sizeof(straddr), strport, sizeof(strport), |
| 10831 | NI_NUMERICHOST|NI_NUMERICSERV) != 0) { |
| 10832 | goto bad; |
| 10833 | } |
| 10834 | switch (ai->ai_family) { |
| 10835 | case AF_INET: |
| 10836 | if (strcmp(strport, "54321") != 0) { |
| 10837 | goto bad; |
| 10838 | } |
| 10839 | if (passive) { |
| 10840 | if (strcmp(straddr, "0.0.0.0") != 0) { |
| 10841 | goto bad; |
| 10842 | } |
| 10843 | } else { |
| 10844 | if (strcmp(straddr, "127.0.0.1") != 0) { |
| 10845 | goto bad; |
| 10846 | } |
| 10847 | } |
| 10848 | inet4++; |
| 10849 | break; |
| 10850 | case AF_INET6: |
| 10851 | if (strcmp(strport, "54321") != 0) { |
| 10852 | goto bad; |
| 10853 | } |
| 10854 | if (passive) { |
| 10855 | if (strcmp(straddr, "::") != 0) { |
| 10856 | goto bad; |
| 10857 | } |
| 10858 | } else { |
| 10859 | if (strcmp(straddr, "::1") != 0) { |
| 10860 | goto bad; |
| 10861 | } |
| 10862 | } |
| 10863 | inet6++; |
| 10864 | break; |
| 10865 | case AF_UNSPEC: |
| 10866 | goto bad; |
| 10867 | break; |
| 10868 | default: |
| 10869 | /* another family support? */ |
| 10870 | break; |
| 10871 | } |
| 10872 | } |
| 10873 | } |
| 10874 | |
| 10875 | if (!(inet4 == 0 || inet4 == 2)) |
| 10876 | goto bad; |
| 10877 | if (!(inet6 == 0 || inet6 == 2)) |
| 10878 | goto bad; |
| 10879 | |
| 10880 | if (aitop) |
| 10881 | freeaddrinfo(aitop); |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10882 | return 0; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10883 | |
| 10884 | bad: |
| 10885 | if (aitop) |
| 10886 | freeaddrinfo(aitop); |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10887 | return 1; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10888 | } |
| 10889 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10890 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10891 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10892 | ac_cv_buggy_getaddrinfo=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10893 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10894 | ac_cv_buggy_getaddrinfo=yes |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10895 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10896 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 10897 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10898 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10899 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10900 | fi |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10901 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 10902 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10903 | |
Benjamin Peterson | d4694ed | 2010-11-01 01:44:30 +0000 | [diff] [blame] | 10904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_buggy_getaddrinfo" >&5 |
| 10905 | $as_echo "$ac_cv_buggy_getaddrinfo" >&6; } |
| 10906 | |
Mark Dickinson | 2df5d28 | 2009-12-31 21:22:50 +0000 | [diff] [blame] | 10907 | if test $have_getaddrinfo = no -o "$ac_cv_buggy_getaddrinfo" = yes |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10908 | then |
| 10909 | if test $ipv6 = yes |
| 10910 | then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10911 | echo 'Fatal: You must get working getaddrinfo() function.' |
| 10912 | echo ' or you can specify "--disable-ipv6"'. |
| 10913 | exit 1 |
| 10914 | fi |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 10915 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10916 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10917 | $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 10918 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10919 | fi |
Benjamin Peterson | d4694ed | 2010-11-01 01:44:30 +0000 | [diff] [blame] | 10920 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 10921 | for ac_func in getnameinfo |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10922 | do : |
| 10923 | ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo" |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 10924 | if test "x$ac_cv_func_getnameinfo" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10925 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10926 | #define HAVE_GETNAMEINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10927 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10928 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10929 | fi |
| 10930 | done |
| 10931 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10932 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10933 | # checks for structures |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10934 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 |
| 10935 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 10936 | if ${ac_cv_header_time+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10937 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10938 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10939 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10940 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10941 | #include <sys/types.h> |
| 10942 | #include <sys/time.h> |
| 10943 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10944 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10945 | int |
| 10946 | main () |
| 10947 | { |
| 10948 | if ((struct tm *) 0) |
| 10949 | return 0; |
| 10950 | ; |
| 10951 | return 0; |
| 10952 | } |
| 10953 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10954 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10955 | ac_cv_header_time=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10956 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10957 | ac_cv_header_time=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10958 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10959 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10960 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 |
| 10962 | $as_echo "$ac_cv_header_time" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10963 | if test $ac_cv_header_time = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10964 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10965 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10966 | |
| 10967 | fi |
| 10968 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10969 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 10970 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 10971 | if ${ac_cv_struct_tm+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10972 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10973 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10974 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10975 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10976 | #include <sys/types.h> |
| 10977 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10978 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10979 | int |
| 10980 | main () |
| 10981 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10982 | struct tm tm; |
| 10983 | int *p = &tm.tm_sec; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10984 | return !p; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10985 | ; |
| 10986 | return 0; |
| 10987 | } |
| 10988 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10989 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10990 | ac_cv_struct_tm=time.h |
| 10991 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10992 | ac_cv_struct_tm=sys/time.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10993 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10994 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10995 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 |
| 10997 | $as_echo "$ac_cv_struct_tm" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10998 | if test $ac_cv_struct_tm = sys/time.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10999 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11000 | $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11001 | |
| 11002 | fi |
| 11003 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11004 | 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] | 11005 | #include <$ac_cv_struct_tm> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11006 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11007 | " |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 11008 | 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] | 11009 | |
| 11010 | cat >>confdefs.h <<_ACEOF |
| 11011 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 11012 | _ACEOF |
| 11013 | |
| 11014 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11015 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11016 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11017 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 11018 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11019 | $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11020 | |
| 11021 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11022 | ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> |
| 11023 | " |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 11024 | if test "x$ac_cv_have_decl_tzname" = xyes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11025 | ac_have_decl=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11026 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11027 | ac_have_decl=0 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11028 | fi |
| 11029 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11030 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11031 | #define HAVE_DECL_TZNAME $ac_have_decl |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11032 | _ACEOF |
| 11033 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11034 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 |
| 11035 | $as_echo_n "checking for tzname... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 11036 | if ${ac_cv_var_tzname+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11037 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11038 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11039 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11040 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11041 | #include <time.h> |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11042 | #if !HAVE_DECL_TZNAME |
| 11043 | extern char *tzname[]; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11044 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11045 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11046 | int |
| 11047 | main () |
| 11048 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11049 | return tzname[0][0]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11050 | ; |
| 11051 | return 0; |
| 11052 | } |
| 11053 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11054 | if ac_fn_c_try_link "$LINENO"; then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11055 | ac_cv_var_tzname=yes |
| 11056 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11057 | ac_cv_var_tzname=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11058 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11059 | rm -f core conftest.err conftest.$ac_objext \ |
| 11060 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11061 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 |
| 11063 | $as_echo "$ac_cv_var_tzname" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11064 | if test $ac_cv_var_tzname = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11065 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11066 | $as_echo "#define HAVE_TZNAME 1" >>confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11067 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11068 | fi |
| 11069 | fi |
| 11070 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11071 | ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 11072 | 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] | 11073 | |
| 11074 | cat >>confdefs.h <<_ACEOF |
| 11075 | #define HAVE_STRUCT_STAT_ST_RDEV 1 |
| 11076 | _ACEOF |
| 11077 | |
| 11078 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 11079 | fi |
| 11080 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11081 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default" |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 11082 | if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then : |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 11083 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11084 | cat >>confdefs.h <<_ACEOF |
| 11085 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 |
| 11086 | _ACEOF |
| 11087 | |
| 11088 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 11089 | fi |
| 11090 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11091 | ac_fn_c_check_member "$LINENO" "struct stat" "st_flags" "ac_cv_member_struct_stat_st_flags" "$ac_includes_default" |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 11092 | 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] | 11093 | |
| 11094 | cat >>confdefs.h <<_ACEOF |
| 11095 | #define HAVE_STRUCT_STAT_ST_FLAGS 1 |
| 11096 | _ACEOF |
| 11097 | |
| 11098 | |
| 11099 | fi |
| 11100 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11101 | ac_fn_c_check_member "$LINENO" "struct stat" "st_gen" "ac_cv_member_struct_stat_st_gen" "$ac_includes_default" |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 11102 | 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] | 11103 | |
| 11104 | cat >>confdefs.h <<_ACEOF |
| 11105 | #define HAVE_STRUCT_STAT_ST_GEN 1 |
| 11106 | _ACEOF |
| 11107 | |
| 11108 | |
| 11109 | fi |
| 11110 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11111 | ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "$ac_includes_default" |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 11112 | 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] | 11113 | |
| 11114 | cat >>confdefs.h <<_ACEOF |
| 11115 | #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1 |
| 11116 | _ACEOF |
| 11117 | |
| 11118 | |
| 11119 | fi |
| 11120 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11121 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default" |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 11122 | if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then : |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 11123 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11124 | cat >>confdefs.h <<_ACEOF |
| 11125 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 |
| 11126 | _ACEOF |
| 11127 | |
| 11128 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11129 | $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 11130 | |
| 11131 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11132 | case " $LIBOBJS " in |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11133 | *" fileblocks.$ac_objext "* ) ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11134 | *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" |
| 11135 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11136 | esac |
| 11137 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 11138 | fi |
| 11139 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11140 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11141 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11142 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for time.h that defines altzone" >&5 |
| 11143 | $as_echo_n "checking for time.h that defines altzone... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 11144 | if ${ac_cv_header_time_altzone+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11145 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11146 | else |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11147 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11148 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11149 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11150 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11151 | int |
| 11152 | main () |
| 11153 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11154 | return altzone; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11155 | ; |
| 11156 | return 0; |
| 11157 | } |
| 11158 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11159 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11160 | ac_cv_header_time_altzone=yes |
| 11161 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11162 | ac_cv_header_time_altzone=no |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11163 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11164 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11165 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11166 | fi |
| 11167 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time_altzone" >&5 |
| 11169 | $as_echo "$ac_cv_header_time_altzone" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11170 | if test $ac_cv_header_time_altzone = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11171 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11172 | $as_echo "#define HAVE_ALTZONE 1" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11173 | |
| 11174 | fi |
| 11175 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11176 | was_it_defined=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11177 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be included" >&5 |
| 11178 | $as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; } |
| 11179 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11180 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11181 | |
| 11182 | #include <sys/types.h> |
| 11183 | #include <sys/select.h> |
| 11184 | #include <sys/time.h> |
| 11185 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11186 | int |
| 11187 | main () |
| 11188 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11189 | ; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11190 | ; |
| 11191 | return 0; |
| 11192 | } |
| 11193 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11194 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11195 | |
| 11196 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11197 | $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] | 11198 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 11199 | was_it_defined=yes |
| 11200 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11201 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11202 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5 |
| 11204 | $as_echo "$was_it_defined" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11205 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11206 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for addrinfo" >&5 |
| 11207 | $as_echo_n "checking for addrinfo... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 11208 | if ${ac_cv_struct_addrinfo+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11209 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11210 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11211 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11212 | /* end confdefs.h. */ |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11213 | #include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11214 | int |
| 11215 | main () |
| 11216 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11217 | struct addrinfo a |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11218 | ; |
| 11219 | return 0; |
| 11220 | } |
| 11221 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11222 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11223 | ac_cv_struct_addrinfo=yes |
| 11224 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11225 | ac_cv_struct_addrinfo=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11226 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11227 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11228 | fi |
| 11229 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_addrinfo" >&5 |
| 11231 | $as_echo "$ac_cv_struct_addrinfo" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11232 | if test $ac_cv_struct_addrinfo = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11233 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11234 | $as_echo "#define HAVE_ADDRINFO 1" >>confdefs.h |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11235 | |
| 11236 | fi |
| 11237 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11238 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage" >&5 |
| 11239 | $as_echo_n "checking for sockaddr_storage... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 11240 | if ${ac_cv_struct_sockaddr_storage+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11241 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11242 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11243 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11244 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11245 | |
| 11246 | # include <sys/types.h> |
| 11247 | # include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11248 | int |
| 11249 | main () |
| 11250 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11251 | struct sockaddr_storage s |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11252 | ; |
| 11253 | return 0; |
| 11254 | } |
| 11255 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11256 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11257 | ac_cv_struct_sockaddr_storage=yes |
| 11258 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11259 | ac_cv_struct_sockaddr_storage=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11260 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11261 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11262 | fi |
| 11263 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_storage" >&5 |
| 11265 | $as_echo "$ac_cv_struct_sockaddr_storage" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11266 | if test $ac_cv_struct_sockaddr_storage = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11267 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11268 | $as_echo "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11269 | |
| 11270 | fi |
| 11271 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11272 | # checks for compiler characteristics |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11273 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11274 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5 |
| 11275 | $as_echo_n "checking whether char is unsigned... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 11276 | if ${ac_cv_c_char_unsigned+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11277 | $as_echo_n "(cached) " >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 11278 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11279 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11280 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11281 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11282 | int |
| 11283 | main () |
| 11284 | { |
| 11285 | static int test_array [1 - 2 * !(((char) -1) < 0)]; |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 11286 | test_array [0] = 0; |
| 11287 | return test_array [0]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11288 | |
| 11289 | ; |
| 11290 | return 0; |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11291 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11292 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11293 | if ac_fn_c_try_compile "$LINENO"; then : |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11294 | ac_cv_c_char_unsigned=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11295 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11296 | ac_cv_c_char_unsigned=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11297 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11298 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11299 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5 |
| 11301 | $as_echo "$ac_cv_c_char_unsigned" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11302 | if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11303 | $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11304 | |
| 11305 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11306 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11307 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
| 11308 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 11309 | if ${ac_cv_c_const+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11310 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11311 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11312 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11313 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11314 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11315 | int |
| 11316 | main () |
| 11317 | { |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 11318 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11319 | #ifndef __cplusplus |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 11320 | /* Ultrix mips cc rejects this sort of thing. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11321 | typedef int charset[2]; |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 11322 | const charset cs = { 0, 0 }; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11323 | /* SunOS 4.1.1 cc rejects this. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11324 | char const *const *pcpcc; |
| 11325 | char **ppc; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11326 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 11327 | struct point {int x, y;}; |
| 11328 | static struct point const zero = {0,0}; |
| 11329 | /* AIX XL C 1.02.0.0 rejects this. |
| 11330 | It does not let you subtract one const X* pointer from another in |
| 11331 | an arm of an if-expression whose if-part is not a constant |
| 11332 | expression */ |
| 11333 | const char *g = "string"; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11334 | pcpcc = &g + (g ? g-g : 0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11335 | /* HPUX 7.0 cc rejects these. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11336 | ++pcpcc; |
| 11337 | ppc = (char**) pcpcc; |
| 11338 | pcpcc = (char const *const *) ppc; |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 11339 | { /* SCO 3.2v4 cc rejects this sort of thing. */ |
| 11340 | char tx; |
| 11341 | char *t = &tx; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11342 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11343 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11344 | *t++ = 0; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11345 | if (s) return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11346 | } |
| 11347 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 11348 | int x[] = {25, 17}; |
| 11349 | const int *foo = &x[0]; |
| 11350 | ++foo; |
| 11351 | } |
| 11352 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 11353 | typedef const int *iptr; |
| 11354 | iptr p = 0; |
| 11355 | ++p; |
| 11356 | } |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 11357 | { /* 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] | 11358 | "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] | 11359 | struct s { int j; const int *ap[3]; } bx; |
| 11360 | struct s *b = &bx; b->j = 5; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11361 | } |
| 11362 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 11363 | const int foo = 10; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11364 | if (!foo) return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11365 | } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11366 | return !cs[0] && !zero.x; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11367 | #endif |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11368 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11369 | ; |
| 11370 | return 0; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11371 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11372 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11373 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11374 | ac_cv_c_const=yes |
| 11375 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11376 | ac_cv_c_const=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11377 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11378 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11379 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
| 11381 | $as_echo "$ac_cv_c_const" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11382 | if test $ac_cv_c_const = no; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11383 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11384 | $as_echo "#define const /**/" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11385 | |
| 11386 | fi |
| 11387 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11388 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11389 | works=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11390 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 |
| 11391 | $as_echo_n "checking for working volatile... " >&6; } |
| 11392 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11393 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11394 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11395 | int |
| 11396 | main () |
| 11397 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11398 | volatile int x; x = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11399 | ; |
| 11400 | return 0; |
| 11401 | } |
| 11402 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11403 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11404 | works=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11405 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11406 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11407 | $as_echo "#define volatile /**/" >>confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11408 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 11409 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11410 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11411 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 |
| 11413 | $as_echo "$works" >&6; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11414 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11415 | works=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11416 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working signed char" >&5 |
| 11417 | $as_echo_n "checking for working signed char... " >&6; } |
| 11418 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11419 | /* end confdefs.h. */ |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 11420 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11421 | int |
| 11422 | main () |
| 11423 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11424 | signed char c; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11425 | ; |
| 11426 | return 0; |
| 11427 | } |
| 11428 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11429 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11430 | works=yes |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 11431 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11432 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11433 | $as_echo "#define signed /**/" >>confdefs.h |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11434 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 11435 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11436 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11437 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 |
| 11439 | $as_echo "$works" >&6; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11440 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11441 | have_prototypes=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11442 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prototypes" >&5 |
| 11443 | $as_echo_n "checking for prototypes... " >&6; } |
| 11444 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11445 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11446 | int foo(int x) { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11447 | int |
| 11448 | main () |
| 11449 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11450 | return foo(10); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11451 | ; |
| 11452 | return 0; |
| 11453 | } |
| 11454 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11455 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11456 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11457 | $as_echo "#define HAVE_PROTOTYPES 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11458 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11459 | have_prototypes=yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11460 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11461 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11462 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_prototypes" >&5 |
| 11463 | $as_echo "$have_prototypes" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11464 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11465 | works=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11466 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for variable length prototypes and stdarg.h" >&5 |
| 11467 | $as_echo_n "checking for variable length prototypes and stdarg.h... " >&6; } |
| 11468 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11469 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11470 | |
| 11471 | #include <stdarg.h> |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 11472 | int foo(int x, ...) { |
| 11473 | va_list va; |
| 11474 | va_start(va, x); |
| 11475 | va_arg(va, int); |
| 11476 | va_arg(va, char *); |
| 11477 | va_arg(va, double); |
| 11478 | return 0; |
| 11479 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11480 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11481 | int |
| 11482 | main () |
| 11483 | { |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 11484 | return foo(10, "", 3.14); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11485 | ; |
| 11486 | return 0; |
| 11487 | } |
| 11488 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11489 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11490 | |
| 11491 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11492 | $as_echo "#define HAVE_STDARG_PROTOTYPES 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11493 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 11494 | works=yes |
| 11495 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11496 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11497 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 |
| 11499 | $as_echo "$works" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11500 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 11501 | # check for socketpair |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11502 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socketpair" >&5 |
| 11503 | $as_echo_n "checking for socketpair... " >&6; } |
| 11504 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 11505 | /* end confdefs.h. */ |
| 11506 | |
| 11507 | #include <sys/types.h> |
| 11508 | #include <sys/socket.h> |
| 11509 | |
| 11510 | int |
| 11511 | main () |
| 11512 | { |
| 11513 | void *x=socketpair |
| 11514 | ; |
| 11515 | return 0; |
| 11516 | } |
| 11517 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11518 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 11519 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11520 | $as_echo "#define HAVE_SOCKETPAIR 1" >>confdefs.h |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 11521 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11523 | $as_echo "yes" >&6; } |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 11524 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11526 | $as_echo "no" >&6; } |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 11527 | |
| 11528 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11529 | 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] | 11530 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11531 | # check if sockaddr has sa_len member |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11532 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr has sa_len member" >&5 |
| 11533 | $as_echo_n "checking if sockaddr has sa_len member... " >&6; } |
| 11534 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11535 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11536 | #include <sys/types.h> |
| 11537 | #include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11538 | int |
| 11539 | main () |
| 11540 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11541 | struct sockaddr x; |
| 11542 | x.sa_len = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11543 | ; |
| 11544 | return 0; |
| 11545 | } |
| 11546 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11547 | if ac_fn_c_try_compile "$LINENO"; then : |
| 11548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11549 | $as_echo "yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11550 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11551 | $as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11552 | |
| 11553 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11555 | $as_echo "no" >&6; } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11556 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11557 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11558 | 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] | 11559 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11560 | va_list_is_array=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11561 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether va_list is an array" >&5 |
| 11562 | $as_echo_n "checking whether va_list is an array... " >&6; } |
| 11563 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11564 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11565 | |
| 11566 | #ifdef HAVE_STDARG_PROTOTYPES |
| 11567 | #include <stdarg.h> |
| 11568 | #else |
| 11569 | #include <varargs.h> |
| 11570 | #endif |
| 11571 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11572 | int |
| 11573 | main () |
| 11574 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11575 | va_list list1, list2; list1 = list2; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11576 | ; |
| 11577 | return 0; |
| 11578 | } |
| 11579 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11580 | if ac_fn_c_try_compile "$LINENO"; then : |
| 11581 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11582 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11583 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11584 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11585 | $as_echo "#define VA_LIST_IS_ARRAY 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11586 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11587 | va_list_is_array=yes |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 11588 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11589 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11590 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $va_list_is_array" >&5 |
| 11592 | $as_echo "$va_list_is_array" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11593 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11594 | # 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] | 11595 | |
| 11596 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11597 | ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r" |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 11598 | if test "x$ac_cv_func_gethostbyname_r" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11599 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11600 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 11601 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11602 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 6 args" >&5 |
| 11603 | $as_echo_n "checking gethostbyname_r with 6 args... " >&6; } |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11604 | OLD_CFLAGS=$CFLAGS |
| 11605 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11606 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11607 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11608 | |
| 11609 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11610 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11611 | int |
| 11612 | main () |
| 11613 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11614 | |
| 11615 | char *name; |
| 11616 | struct hostent *he, *res; |
| 11617 | char buffer[2048]; |
| 11618 | int buflen = 2048; |
| 11619 | int h_errnop; |
| 11620 | |
| 11621 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11622 | |
| 11623 | ; |
| 11624 | return 0; |
| 11625 | } |
| 11626 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11627 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11628 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11629 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 11630 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11631 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11632 | $as_echo "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11633 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11634 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11635 | $as_echo "yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11636 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11637 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11638 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11640 | $as_echo "no" >&6; } |
| 11641 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 5 args" >&5 |
| 11642 | $as_echo_n "checking gethostbyname_r with 5 args... " >&6; } |
| 11643 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11644 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11645 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11646 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11647 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11648 | int |
| 11649 | main () |
| 11650 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11651 | |
| 11652 | char *name; |
| 11653 | struct hostent *he; |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11654 | char buffer[2048]; |
| 11655 | int buflen = 2048; |
| 11656 | int h_errnop; |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11657 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11658 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11659 | |
| 11660 | ; |
| 11661 | return 0; |
| 11662 | } |
| 11663 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11664 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11665 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11666 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 11667 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11668 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11669 | $as_echo "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11670 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11672 | $as_echo "yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11673 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11674 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11675 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11677 | $as_echo "no" >&6; } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11678 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 3 args" >&5 |
| 11679 | $as_echo_n "checking gethostbyname_r with 3 args... " >&6; } |
| 11680 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11681 | /* end confdefs.h. */ |
| 11682 | |
| 11683 | # include <netdb.h> |
| 11684 | |
| 11685 | int |
| 11686 | main () |
| 11687 | { |
| 11688 | |
| 11689 | char *name; |
| 11690 | struct hostent *he; |
| 11691 | struct hostent_data data; |
| 11692 | |
| 11693 | (void) gethostbyname_r(name, he, &data); |
| 11694 | |
| 11695 | ; |
| 11696 | return 0; |
| 11697 | } |
| 11698 | _ACEOF |
| 11699 | if ac_fn_c_try_compile "$LINENO"; then : |
| 11700 | |
| 11701 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h |
| 11702 | |
| 11703 | |
| 11704 | $as_echo "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h |
| 11705 | |
| 11706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11707 | $as_echo "yes" >&6; } |
| 11708 | |
| 11709 | else |
| 11710 | |
| 11711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11712 | $as_echo "no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11713 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11714 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11715 | 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] | 11716 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11717 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11718 | 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] | 11719 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11720 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11721 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11722 | CFLAGS=$OLD_CFLAGS |
| 11723 | |
| 11724 | else |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11725 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11726 | for ac_func in gethostbyname |
| 11727 | do : |
| 11728 | ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 11729 | if test "x$ac_cv_func_gethostbyname" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11730 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11731 | #define HAVE_GETHOSTBYNAME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11732 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11733 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11734 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11735 | done |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11736 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11737 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11738 | fi |
| 11739 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11740 | |
| 11741 | |
| 11742 | |
| 11743 | |
| 11744 | |
| 11745 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11746 | # checks for system services |
| 11747 | # (none yet) |
| 11748 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11749 | # Linux requires this for correct f.p. operations |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11750 | ac_fn_c_check_func "$LINENO" "__fpu_control" "ac_cv_func___fpu_control" |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 11751 | if test "x$ac_cv_func___fpu_control" = xyes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11752 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 11753 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11754 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __fpu_control in -lieee" >&5 |
| 11755 | $as_echo_n "checking for __fpu_control in -lieee... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 11756 | if ${ac_cv_lib_ieee___fpu_control+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11757 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11758 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11759 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11760 | LIBS="-lieee $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11761 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11762 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11763 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11764 | /* Override any GCC internal prototype to avoid an error. |
| 11765 | Use char because int might match the return type of a GCC |
| 11766 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11767 | #ifdef __cplusplus |
| 11768 | extern "C" |
| 11769 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11770 | char __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11771 | int |
| 11772 | main () |
| 11773 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11774 | return __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11775 | ; |
| 11776 | return 0; |
| 11777 | } |
| 11778 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11779 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11780 | ac_cv_lib_ieee___fpu_control=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11781 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11782 | ac_cv_lib_ieee___fpu_control=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11783 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11784 | rm -f core conftest.err conftest.$ac_objext \ |
| 11785 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11786 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11787 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ieee___fpu_control" >&5 |
| 11789 | $as_echo "$ac_cv_lib_ieee___fpu_control" >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 11790 | 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] | 11791 | cat >>confdefs.h <<_ACEOF |
| 11792 | #define HAVE_LIBIEEE 1 |
| 11793 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11794 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11795 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11796 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11797 | fi |
| 11798 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11799 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 11800 | fi |
| 11801 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11802 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11803 | # Check for --with-fpectl |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11804 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-fpectl" >&5 |
| 11805 | $as_echo_n "checking for --with-fpectl... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11806 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11807 | # Check whether --with-fpectl was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11808 | if test "${with_fpectl+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11809 | withval=$with_fpectl; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11810 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11811 | then |
| 11812 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11813 | $as_echo "#define WANT_SIGFPE_HANDLER 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11814 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11816 | $as_echo "yes" >&6; } |
| 11817 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11818 | $as_echo "no" >&6; } |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11819 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 11820 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11822 | $as_echo "no" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11823 | fi |
| 11824 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11825 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11826 | # check for --with-libm=... |
| 11827 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 11828 | case $ac_sys_system in |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 11829 | Darwin) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 11830 | *) LIBM=-lm |
| 11831 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11832 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libm=STRING" >&5 |
| 11833 | $as_echo_n "checking for --with-libm=STRING... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11834 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11835 | # Check whether --with-libm was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11836 | if test "${with_libm+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11837 | withval=$with_libm; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11838 | if test "$withval" = no |
| 11839 | then LIBM= |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBM empty" >&5 |
| 11841 | $as_echo "force LIBM empty" >&6; } |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11842 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11843 | then LIBM=$withval |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBM=\"$withval\"" >&5 |
| 11845 | $as_echo "set LIBM=\"$withval\"" >&6; } |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 11846 | 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] | 11847 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11848 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBM=\"$LIBM\"" >&5 |
| 11850 | $as_echo "default LIBM=\"$LIBM\"" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11851 | fi |
| 11852 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11853 | |
| 11854 | # check for --with-libc=... |
| 11855 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11856 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libc=STRING" >&5 |
| 11857 | $as_echo_n "checking for --with-libc=STRING... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11858 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11859 | # Check whether --with-libc was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11860 | if test "${with_libc+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11861 | withval=$with_libc; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11862 | if test "$withval" = no |
| 11863 | then LIBC= |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBC empty" >&5 |
| 11865 | $as_echo "force LIBC empty" >&6; } |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11866 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11867 | then LIBC=$withval |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11868 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBC=\"$withval\"" >&5 |
| 11869 | $as_echo "set LIBC=\"$withval\"" >&6; } |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 11870 | 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] | 11871 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11872 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBC=\"$LIBC\"" >&5 |
| 11874 | $as_echo "default LIBC=\"$LIBC\"" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11875 | fi |
| 11876 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11877 | |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11878 | # ************************************************** |
| 11879 | # * Check for various properties of floating point * |
| 11880 | # ************************************************** |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 11881 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11882 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are little-endian IEEE 754 binary64" >&5 |
| 11883 | $as_echo_n "checking whether C doubles are little-endian IEEE 754 binary64... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 11884 | if ${ac_cv_little_endian_double+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11885 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11886 | else |
| 11887 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11888 | if test "$cross_compiling" = yes; then : |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11889 | ac_cv_little_endian_double=no |
| 11890 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11891 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11892 | /* end confdefs.h. */ |
| 11893 | |
| 11894 | #include <string.h> |
| 11895 | int main() { |
| 11896 | double x = 9006104071832581.0; |
| 11897 | if (memcmp(&x, "\x05\x04\x03\x02\x01\xff\x3f\x43", 8) == 0) |
| 11898 | return 0; |
| 11899 | else |
| 11900 | return 1; |
| 11901 | } |
| 11902 | |
| 11903 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11904 | if ac_fn_c_try_run "$LINENO"; then : |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11905 | ac_cv_little_endian_double=yes |
| 11906 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11907 | ac_cv_little_endian_double=no |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11908 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11909 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 11910 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11911 | fi |
| 11912 | |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11913 | fi |
| 11914 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_little_endian_double" >&5 |
| 11916 | $as_echo "$ac_cv_little_endian_double" >&6; } |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11917 | if test "$ac_cv_little_endian_double" = yes |
| 11918 | then |
| 11919 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11920 | $as_echo "#define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1" >>confdefs.h |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11921 | |
| 11922 | fi |
| 11923 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11924 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are big-endian IEEE 754 binary64" >&5 |
| 11925 | $as_echo_n "checking whether C doubles are big-endian IEEE 754 binary64... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 11926 | if ${ac_cv_big_endian_double+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11927 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11928 | else |
| 11929 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11930 | if test "$cross_compiling" = yes; then : |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11931 | ac_cv_big_endian_double=no |
| 11932 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11933 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11934 | /* end confdefs.h. */ |
| 11935 | |
| 11936 | #include <string.h> |
| 11937 | int main() { |
| 11938 | double x = 9006104071832581.0; |
| 11939 | if (memcmp(&x, "\x43\x3f\xff\x01\x02\x03\x04\x05", 8) == 0) |
| 11940 | return 0; |
| 11941 | else |
| 11942 | return 1; |
| 11943 | } |
| 11944 | |
| 11945 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11946 | if ac_fn_c_try_run "$LINENO"; then : |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11947 | ac_cv_big_endian_double=yes |
| 11948 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11949 | ac_cv_big_endian_double=no |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11950 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11951 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 11952 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11953 | fi |
| 11954 | |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11955 | fi |
| 11956 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_big_endian_double" >&5 |
| 11958 | $as_echo "$ac_cv_big_endian_double" >&6; } |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11959 | if test "$ac_cv_big_endian_double" = yes |
| 11960 | then |
| 11961 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11962 | $as_echo "#define DOUBLE_IS_BIG_ENDIAN_IEEE754 1" >>confdefs.h |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11963 | |
| 11964 | fi |
| 11965 | |
| 11966 | # Some ARM platforms use a mixed-endian representation for doubles. |
| 11967 | # While Python doesn't currently have full support for these platforms |
| 11968 | # (see e.g., issue 1762561), we can at least make sure that float <-> string |
| 11969 | # conversions work. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are ARM mixed-endian IEEE 754 binary64" >&5 |
| 11971 | $as_echo_n "checking whether C doubles are ARM mixed-endian IEEE 754 binary64... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 11972 | if ${ac_cv_mixed_endian_double+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11973 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11974 | else |
| 11975 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11976 | if test "$cross_compiling" = yes; then : |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11977 | ac_cv_mixed_endian_double=no |
| 11978 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11979 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11980 | /* end confdefs.h. */ |
| 11981 | |
| 11982 | #include <string.h> |
| 11983 | int main() { |
| 11984 | double x = 9006104071832581.0; |
| 11985 | if (memcmp(&x, "\x01\xff\x3f\x43\x05\x04\x03\x02", 8) == 0) |
| 11986 | return 0; |
| 11987 | else |
| 11988 | return 1; |
| 11989 | } |
| 11990 | |
| 11991 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11992 | if ac_fn_c_try_run "$LINENO"; then : |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11993 | ac_cv_mixed_endian_double=yes |
| 11994 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11995 | ac_cv_mixed_endian_double=no |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11996 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11997 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 11998 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11999 | fi |
| 12000 | |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 12001 | fi |
| 12002 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mixed_endian_double" >&5 |
| 12004 | $as_echo "$ac_cv_mixed_endian_double" >&6; } |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 12005 | if test "$ac_cv_mixed_endian_double" = yes |
| 12006 | then |
| 12007 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12008 | $as_echo "#define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1" >>confdefs.h |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 12009 | |
| 12010 | fi |
| 12011 | |
Mark Dickinson | 7abf8d4 | 2009-04-18 20:17:52 +0000 | [diff] [blame] | 12012 | # The short float repr introduced in Python 3.1 requires the |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 12013 | # correctly-rounded string <-> double conversion functions from |
Mark Dickinson | 7abf8d4 | 2009-04-18 20:17:52 +0000 | [diff] [blame] | 12014 | # 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] | 12015 | # 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] | 12016 | # 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] | 12017 | # using inline assembler to get and set the x87 FPU control word. |
Mark Dickinson | f4243f6 | 2009-11-15 13:47:27 +0000 | [diff] [blame] | 12018 | |
| 12019 | # This inline assembler syntax may also work for suncc and icc, |
| 12020 | # so we try it on all platforms. |
| 12021 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12022 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set x87 control word" >&5 |
| 12023 | $as_echo_n "checking whether we can use gcc inline assembler to get and set x87 control word... " >&6; } |
| 12024 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 12025 | /* end confdefs.h. */ |
| 12026 | |
| 12027 | int |
| 12028 | main () |
| 12029 | { |
| 12030 | |
Mark Dickinson | f4243f6 | 2009-11-15 13:47:27 +0000 | [diff] [blame] | 12031 | unsigned short cw; |
| 12032 | __asm__ __volatile__ ("fnstcw %0" : "=m" (cw)); |
| 12033 | __asm__ __volatile__ ("fldcw %0" : : "m" (cw)); |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 12034 | |
| 12035 | ; |
| 12036 | return 0; |
| 12037 | } |
| 12038 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12039 | if ac_fn_c_try_compile "$LINENO"; then : |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 12040 | have_gcc_asm_for_x87=yes |
| 12041 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12042 | have_gcc_asm_for_x87=no |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 12043 | fi |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 12044 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_x87" >&5 |
| 12046 | $as_echo "$have_gcc_asm_for_x87" >&6; } |
Mark Dickinson | f4243f6 | 2009-11-15 13:47:27 +0000 | [diff] [blame] | 12047 | if test "$have_gcc_asm_for_x87" = yes |
| 12048 | then |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 12049 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12050 | $as_echo "#define HAVE_GCC_ASM_FOR_X87 1" >>confdefs.h |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 12051 | |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 12052 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12053 | |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 12054 | # Detect whether system arithmetic is subject to x87-style double |
| 12055 | # rounding issues. The result of this test has little meaning on non |
| 12056 | # IEEE 754 platforms. On IEEE 754, test should return 1 if rounding |
| 12057 | # mode is round-to-nearest and double rounding issues are present, and |
| 12058 | # 0 otherwise. See http://bugs.python.org/issue2937 for more info. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12059 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x87-style double rounding" >&5 |
| 12060 | $as_echo_n "checking for x87-style double rounding... " >&6; } |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 12061 | # $BASECFLAGS may affect the result |
| 12062 | ac_save_cc="$CC" |
| 12063 | CC="$CC $BASECFLAGS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12064 | if test "$cross_compiling" = yes; then : |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 12065 | ac_cv_x87_double_rounding=no |
| 12066 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12067 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 12068 | /* end confdefs.h. */ |
| 12069 | |
| 12070 | #include <stdlib.h> |
| 12071 | #include <math.h> |
| 12072 | int main() { |
| 12073 | volatile double x, y, z; |
| 12074 | /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */ |
| 12075 | x = 0.99999999999999989; /* 1-2**-53 */ |
| 12076 | y = 1./x; |
| 12077 | if (y != 1.) |
| 12078 | exit(0); |
| 12079 | /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */ |
| 12080 | x = 1e16; |
| 12081 | y = 2.99999; |
| 12082 | z = x + y; |
| 12083 | if (z != 1e16+4.) |
| 12084 | exit(0); |
| 12085 | /* both tests show evidence of double rounding */ |
| 12086 | exit(1); |
| 12087 | } |
| 12088 | |
| 12089 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12090 | if ac_fn_c_try_run "$LINENO"; then : |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 12091 | ac_cv_x87_double_rounding=no |
| 12092 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12093 | ac_cv_x87_double_rounding=yes |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 12094 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12095 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 12096 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 12097 | fi |
| 12098 | |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 12099 | CC="$ac_save_cc" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_x87_double_rounding" >&5 |
| 12101 | $as_echo "$ac_cv_x87_double_rounding" >&6; } |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 12102 | if test "$ac_cv_x87_double_rounding" = yes |
| 12103 | then |
| 12104 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12105 | $as_echo "#define X87_DOUBLE_ROUNDING 1" >>confdefs.h |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 12106 | |
| 12107 | fi |
| 12108 | |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 12109 | # ************************************ |
| 12110 | # * Check for mathematical functions * |
| 12111 | # ************************************ |
| 12112 | |
| 12113 | LIBS_SAVE=$LIBS |
| 12114 | LIBS="$LIBS $LIBM" |
| 12115 | |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 12116 | for ac_func in acosh asinh atanh copysign erf erfc expm1 finite gamma |
| 12117 | do : |
| 12118 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12119 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 12120 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 12121 | cat >>confdefs.h <<_ACEOF |
| 12122 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12123 | _ACEOF |
| 12124 | |
| 12125 | fi |
| 12126 | done |
| 12127 | |
| 12128 | for ac_func in hypot lgamma log1p round tgamma |
| 12129 | do : |
| 12130 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12131 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 12132 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 12133 | cat >>confdefs.h <<_ACEOF |
| 12134 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12135 | _ACEOF |
| 12136 | |
| 12137 | fi |
| 12138 | done |
| 12139 | |
| 12140 | ac_fn_c_check_decl "$LINENO" "isinf" "ac_cv_have_decl_isinf" "#include <math.h> |
| 12141 | " |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 12142 | if test "x$ac_cv_have_decl_isinf" = xyes; then : |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 12143 | ac_have_decl=1 |
| 12144 | else |
| 12145 | ac_have_decl=0 |
| 12146 | fi |
| 12147 | |
| 12148 | cat >>confdefs.h <<_ACEOF |
| 12149 | #define HAVE_DECL_ISINF $ac_have_decl |
| 12150 | _ACEOF |
| 12151 | ac_fn_c_check_decl "$LINENO" "isnan" "ac_cv_have_decl_isnan" "#include <math.h> |
| 12152 | " |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 12153 | if test "x$ac_cv_have_decl_isnan" = xyes; then : |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 12154 | ac_have_decl=1 |
| 12155 | else |
| 12156 | ac_have_decl=0 |
| 12157 | fi |
| 12158 | |
| 12159 | cat >>confdefs.h <<_ACEOF |
| 12160 | #define HAVE_DECL_ISNAN $ac_have_decl |
| 12161 | _ACEOF |
| 12162 | ac_fn_c_check_decl "$LINENO" "isfinite" "ac_cv_have_decl_isfinite" "#include <math.h> |
| 12163 | " |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 12164 | if test "x$ac_cv_have_decl_isfinite" = xyes; then : |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 12165 | ac_have_decl=1 |
| 12166 | else |
| 12167 | ac_have_decl=0 |
| 12168 | fi |
| 12169 | |
| 12170 | cat >>confdefs.h <<_ACEOF |
| 12171 | #define HAVE_DECL_ISFINITE $ac_have_decl |
| 12172 | _ACEOF |
| 12173 | |
| 12174 | |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 12175 | # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of |
| 12176 | # -0. on some architectures. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12177 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tanh preserves the sign of zero" >&5 |
| 12178 | $as_echo_n "checking whether tanh preserves the sign of zero... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 12179 | if ${ac_cv_tanh_preserves_zero_sign+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12180 | $as_echo_n "(cached) " >&6 |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 12181 | else |
| 12182 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12183 | if test "$cross_compiling" = yes; then : |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 12184 | ac_cv_tanh_preserves_zero_sign=no |
| 12185 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12186 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 12187 | /* end confdefs.h. */ |
| 12188 | |
| 12189 | #include <math.h> |
| 12190 | #include <stdlib.h> |
| 12191 | int main() { |
| 12192 | /* return 0 if either negative zeros don't exist |
| 12193 | on this platform or if negative zeros exist |
| 12194 | and tanh(-0.) == -0. */ |
| 12195 | if (atan2(0., -1.) == atan2(-0., -1.) || |
| 12196 | atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0); |
| 12197 | else exit(1); |
| 12198 | } |
| 12199 | |
| 12200 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12201 | if ac_fn_c_try_run "$LINENO"; then : |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 12202 | ac_cv_tanh_preserves_zero_sign=yes |
| 12203 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12204 | ac_cv_tanh_preserves_zero_sign=no |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 12205 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12206 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 12207 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 12208 | fi |
| 12209 | |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 12210 | fi |
| 12211 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tanh_preserves_zero_sign" >&5 |
| 12213 | $as_echo "$ac_cv_tanh_preserves_zero_sign" >&6; } |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 12214 | if test "$ac_cv_tanh_preserves_zero_sign" = yes |
| 12215 | then |
| 12216 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12217 | $as_echo "#define TANH_PRESERVES_ZERO_SIGN 1" >>confdefs.h |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 12218 | |
| 12219 | fi |
| 12220 | |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 12221 | if test "$ac_cv_func_log1p" = yes |
| 12222 | then |
| 12223 | # On some versions of AIX, log1p(-0.) returns 0. instead of |
| 12224 | # -0. See issue #9920. |
| 12225 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether log1p drops the sign of negative zero" >&5 |
| 12226 | $as_echo_n "checking whether log1p drops the sign of negative zero... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 12227 | if ${ac_cv_log1p_drops_zero_sign+:} false; then : |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 12228 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 12229 | else |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 12230 | |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 12231 | if test "$cross_compiling" = yes; then : |
| 12232 | ac_cv_log1p_drops_zero_sign=no |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 12233 | else |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 12234 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12235 | /* end confdefs.h. */ |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 12236 | |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 12237 | #include <math.h> |
| 12238 | #include <stdlib.h> |
| 12239 | int main() { |
| 12240 | /* Fail if the signs of log1p(-0.) and -0. can be |
| 12241 | distinguished. */ |
| 12242 | if (atan2(log1p(-0.), -1.) == atan2(-0., -1.)) |
| 12243 | return 0; |
| 12244 | else |
| 12245 | return 1; |
| 12246 | } |
| 12247 | |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 12248 | _ACEOF |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 12249 | if ac_fn_c_try_run "$LINENO"; then : |
| 12250 | ac_cv_log1p_drops_zero_sign=no |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 12251 | else |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 12252 | ac_cv_log1p_drops_zero_sign=yes |
| 12253 | fi |
| 12254 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 12255 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 12256 | fi |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 12257 | |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 12258 | fi |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 12259 | |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 12260 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_log1p_drops_zero_sign" >&5 |
| 12261 | $as_echo "$ac_cv_log1p_drops_zero_sign" >&6; } |
| 12262 | fi |
| 12263 | if test "$ac_cv_log1p_drops_zero_sign" = yes |
| 12264 | then |
| 12265 | |
| 12266 | $as_echo "#define LOG1P_DROPS_ZERO_SIGN 1" >>confdefs.h |
| 12267 | |
| 12268 | fi |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 12269 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 12270 | LIBS=$LIBS_SAVE |
| 12271 | |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 12272 | # For multiprocessing module, check that sem_open |
| 12273 | # actually works. For FreeBSD versions <= 7.2, |
| 12274 | # the kernel module that provides POSIX semaphores |
| 12275 | # isn't loaded by default, so an attempt to call |
| 12276 | # sem_open results in a 'Signal 12' error. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12277 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX semaphores are enabled" >&5 |
| 12278 | $as_echo_n "checking whether POSIX semaphores are enabled... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 12279 | if ${ac_cv_posix_semaphores_enabled+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12280 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 12281 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12282 | if test "$cross_compiling" = yes; then : |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 12283 | ac_cv_posix_semaphores_enabled=yes |
| 12284 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12285 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 12286 | /* end confdefs.h. */ |
| 12287 | |
| 12288 | #include <unistd.h> |
| 12289 | #include <fcntl.h> |
| 12290 | #include <stdio.h> |
| 12291 | #include <semaphore.h> |
| 12292 | #include <sys/stat.h> |
| 12293 | |
| 12294 | int main(void) { |
| 12295 | sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0); |
| 12296 | if (a == SEM_FAILED) { |
| 12297 | perror("sem_open"); |
| 12298 | return 1; |
| 12299 | } |
| 12300 | sem_close(a); |
Mark Dickinson | ba79b35 | 2009-12-13 21:10:57 +0000 | [diff] [blame] | 12301 | sem_unlink("/autoconf"); |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 12302 | return 0; |
| 12303 | } |
| 12304 | |
| 12305 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12306 | if ac_fn_c_try_run "$LINENO"; then : |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 12307 | ac_cv_posix_semaphores_enabled=yes |
| 12308 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12309 | ac_cv_posix_semaphores_enabled=no |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 12310 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12311 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 12312 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 12313 | fi |
| 12314 | |
| 12315 | |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 12316 | fi |
| 12317 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_semaphores_enabled" >&5 |
| 12319 | $as_echo "$ac_cv_posix_semaphores_enabled" >&6; } |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 12320 | if test $ac_cv_posix_semaphores_enabled = no |
| 12321 | then |
| 12322 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12323 | $as_echo "#define POSIX_SEMAPHORES_NOT_ENABLED 1" >>confdefs.h |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 12324 | |
| 12325 | fi |
| 12326 | |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 12327 | # Multiprocessing check for broken sem_getvalue |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12328 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken sem_getvalue" >&5 |
| 12329 | $as_echo_n "checking for broken sem_getvalue... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 12330 | if ${ac_cv_broken_sem_getvalue+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12331 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12332 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12333 | if test "$cross_compiling" = yes; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12334 | ac_cv_broken_sem_getvalue=yes |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 12335 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12336 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 12337 | /* end confdefs.h. */ |
| 12338 | |
| 12339 | #include <unistd.h> |
| 12340 | #include <fcntl.h> |
| 12341 | #include <stdio.h> |
| 12342 | #include <semaphore.h> |
| 12343 | #include <sys/stat.h> |
| 12344 | |
| 12345 | int main(void){ |
Mark Dickinson | ba79b35 | 2009-12-13 21:10:57 +0000 | [diff] [blame] | 12346 | 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] | 12347 | int count; |
| 12348 | int res; |
| 12349 | if(a==SEM_FAILED){ |
| 12350 | perror("sem_open"); |
| 12351 | return 1; |
| 12352 | |
| 12353 | } |
| 12354 | res = sem_getvalue(a, &count); |
| 12355 | sem_close(a); |
Mark Dickinson | ba79b35 | 2009-12-13 21:10:57 +0000 | [diff] [blame] | 12356 | sem_unlink("/autocftw"); |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 12357 | return res==-1 ? 1 : 0; |
| 12358 | } |
| 12359 | |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 12360 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12361 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12362 | ac_cv_broken_sem_getvalue=no |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 12363 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12364 | ac_cv_broken_sem_getvalue=yes |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12365 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12366 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 12367 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 12368 | fi |
| 12369 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12370 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12371 | fi |
| 12372 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_sem_getvalue" >&5 |
| 12374 | $as_echo "$ac_cv_broken_sem_getvalue" >&6; } |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12375 | if test $ac_cv_broken_sem_getvalue = yes |
| 12376 | then |
| 12377 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12378 | $as_echo "#define HAVE_BROKEN_SEM_GETVALUE 1" >>confdefs.h |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12379 | |
| 12380 | fi |
| 12381 | |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 12382 | # determine what size digit to use for Python's longs |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12383 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking digit size for Python's longs" >&5 |
| 12384 | $as_echo_n "checking digit size for Python's longs... " >&6; } |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 12385 | # Check whether --enable-big-digits was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12386 | if test "${enable_big_digits+set}" = set; then : |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 12387 | enableval=$enable_big_digits; case $enable_big_digits in |
| 12388 | yes) |
| 12389 | enable_big_digits=30 ;; |
| 12390 | no) |
| 12391 | enable_big_digits=15 ;; |
| 12392 | 15|30) |
| 12393 | ;; |
| 12394 | *) |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 12395 | 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] | 12396 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_big_digits" >&5 |
| 12398 | $as_echo "$enable_big_digits" >&6; } |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 12399 | |
| 12400 | cat >>confdefs.h <<_ACEOF |
| 12401 | #define PYLONG_BITS_IN_DIGIT $enable_big_digits |
| 12402 | _ACEOF |
| 12403 | |
| 12404 | |
| 12405 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12406 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5 |
| 12407 | $as_echo "no value specified" >&6; } |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 12408 | fi |
| 12409 | |
| 12410 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12411 | # check for wchar.h |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12412 | ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default" |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 12413 | if test "x$ac_cv_header_wchar_h" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12414 | |
| 12415 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12416 | $as_echo "#define HAVE_WCHAR_H 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12417 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 12418 | wchar_h="yes" |
| 12419 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12420 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12421 | wchar_h="no" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12422 | |
| 12423 | fi |
| 12424 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12425 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12426 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12427 | # determine wchar_t size |
| 12428 | if test "$wchar_h" = yes |
| 12429 | then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12430 | # 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] | 12431 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 12432 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 12433 | # This bug is HP SR number 8606223364. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12434 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5 |
| 12435 | $as_echo_n "checking size of wchar_t... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 12436 | if ${ac_cv_sizeof_wchar_t+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12437 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12438 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12439 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" "#include <wchar.h> |
| 12440 | "; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12441 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12442 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12443 | if test "$ac_cv_type_wchar_t" = yes; then |
| 12444 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 12445 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 12446 | as_fn_error 77 "cannot compute sizeof (wchar_t) |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 12447 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12448 | else |
| 12449 | ac_cv_sizeof_wchar_t=0 |
| 12450 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12451 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12452 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12453 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5 |
| 12455 | $as_echo "$ac_cv_sizeof_wchar_t" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12456 | |
| 12457 | |
| 12458 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12459 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12460 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12461 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12462 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12463 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12464 | fi |
| 12465 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12466 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UCS-4 tcl" >&5 |
| 12467 | $as_echo_n "checking for UCS-4 tcl... " >&6; } |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 12468 | have_ucs4_tcl=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12469 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12470 | /* end confdefs.h. */ |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 12471 | |
| 12472 | #include <tcl.h> |
| 12473 | #if TCL_UTF_MAX != 6 |
| 12474 | # error "NOT UCS4_TCL" |
| 12475 | #endif |
| 12476 | int |
| 12477 | main () |
| 12478 | { |
| 12479 | |
| 12480 | ; |
| 12481 | return 0; |
| 12482 | } |
| 12483 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12484 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 12485 | |
| 12486 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12487 | $as_echo "#define HAVE_UCS4_TCL 1" >>confdefs.h |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 12488 | |
| 12489 | have_ucs4_tcl=yes |
| 12490 | |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 12491 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12492 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ucs4_tcl" >&5 |
| 12494 | $as_echo "$have_ucs4_tcl" >&6; } |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 12495 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12496 | # check whether wchar_t is signed or not |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12497 | if test "$wchar_h" = yes |
| 12498 | then |
| 12499 | # check whether wchar_t is signed or not |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12500 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wchar_t is signed" >&5 |
| 12501 | $as_echo_n "checking whether wchar_t is signed... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 12502 | if ${ac_cv_wchar_t_signed+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12503 | $as_echo_n "(cached) " >&6 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12504 | else |
| 12505 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12506 | if test "$cross_compiling" = yes; then : |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12507 | ac_cv_wchar_t_signed=yes |
| 12508 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12509 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12510 | /* end confdefs.h. */ |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12511 | |
| 12512 | #include <wchar.h> |
| 12513 | int main() |
| 12514 | { |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 12515 | /* Success: exit code 0 */ |
| 12516 | exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1); |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12517 | } |
| 12518 | |
| 12519 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12520 | if ac_fn_c_try_run "$LINENO"; then : |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12521 | ac_cv_wchar_t_signed=yes |
| 12522 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12523 | ac_cv_wchar_t_signed=no |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12524 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12525 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 12526 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12527 | fi |
| 12528 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12529 | fi |
| 12530 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_wchar_t_signed" >&5 |
| 12532 | $as_echo "$ac_cv_wchar_t_signed" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12533 | fi |
| 12534 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12535 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking what type to use for str" >&5 |
| 12536 | $as_echo_n "checking what type to use for str... " >&6; } |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 12537 | |
| 12538 | # Check whether --with-wide-unicode was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12539 | if test "${with_wide_unicode+set}" = set; then : |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 12540 | withval=$with_wide_unicode; |
| 12541 | if test "$withval" != no |
| 12542 | then unicode_size="4" |
| 12543 | else unicode_size="2" |
| 12544 | fi |
| 12545 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12546 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12547 | |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 12548 | case "$have_ucs4_tcl" in |
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 12549 | yes) unicode_size="4";; |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 12550 | *) unicode_size="2" ;; |
| 12551 | esac |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12552 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12553 | fi |
| 12554 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 12555 | |
| 12556 | |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 12557 | case "$unicode_size" in |
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 12558 | 4) |
| 12559 | $as_echo "#define Py_UNICODE_SIZE 4" >>confdefs.h |
| 12560 | |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 12561 | ABIFLAGS="${ABIFLAGS}u" |
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 12562 | ;; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12563 | *) $as_echo "#define Py_UNICODE_SIZE 2" >>confdefs.h |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 12564 | ;; |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12565 | esac |
| 12566 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12567 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12568 | |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 12569 | # wchar_t is only usable if it maps to an unsigned type |
| 12570 | if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \ |
Matthias Klose | 7dbeed7 | 2004-12-24 08:22:17 +0000 | [diff] [blame] | 12571 | -a "$ac_cv_wchar_t_signed" = "no" |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 12572 | then |
| 12573 | PY_UNICODE_TYPE="wchar_t" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12574 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12575 | $as_echo "#define HAVE_USABLE_WCHAR_T 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12576 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12577 | $as_echo "#define PY_UNICODE_TYPE wchar_t" >>confdefs.h |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12578 | |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 12579 | elif test "$ac_cv_sizeof_short" = "$unicode_size" |
| 12580 | then |
| 12581 | PY_UNICODE_TYPE="unsigned short" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12582 | $as_echo "#define PY_UNICODE_TYPE unsigned short" >>confdefs.h |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12583 | |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 12584 | elif test "$ac_cv_sizeof_long" = "$unicode_size" |
| 12585 | then |
| 12586 | PY_UNICODE_TYPE="unsigned long" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12587 | $as_echo "#define PY_UNICODE_TYPE unsigned long" >>confdefs.h |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12588 | |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 12589 | else |
| 12590 | PY_UNICODE_TYPE="no type found" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12591 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12592 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PY_UNICODE_TYPE" >&5 |
| 12593 | $as_echo "$PY_UNICODE_TYPE" >&6; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12594 | |
| 12595 | # check for endianness |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12596 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
| 12597 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 12598 | if ${ac_cv_c_bigendian+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12599 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12600 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12601 | ac_cv_c_bigendian=unknown |
| 12602 | # See if we're dealing with a universal compiler. |
| 12603 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12604 | /* end confdefs.h. */ |
| 12605 | #ifndef __APPLE_CC__ |
| 12606 | not a universal capable compiler |
| 12607 | #endif |
| 12608 | typedef int dummy; |
| 12609 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12610 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12611 | if ac_fn_c_try_compile "$LINENO"; then : |
| 12612 | |
| 12613 | # Check for potential -arch flags. It is not universal unless |
| 12614 | # there are at least two -arch flags with different values. |
| 12615 | ac_arch= |
| 12616 | ac_prev= |
| 12617 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do |
| 12618 | if test -n "$ac_prev"; then |
| 12619 | case $ac_word in |
| 12620 | i?86 | x86_64 | ppc | ppc64) |
| 12621 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then |
| 12622 | ac_arch=$ac_word |
| 12623 | else |
| 12624 | ac_cv_c_bigendian=universal |
| 12625 | break |
| 12626 | fi |
| 12627 | ;; |
| 12628 | esac |
| 12629 | ac_prev= |
| 12630 | elif test "x$ac_word" = "x-arch"; then |
| 12631 | ac_prev=arch |
| 12632 | fi |
| 12633 | done |
| 12634 | fi |
| 12635 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12636 | if test $ac_cv_c_bigendian = unknown; then |
| 12637 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 12638 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12639 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12640 | #include <sys/types.h> |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12641 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12642 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12643 | int |
| 12644 | main () |
| 12645 | { |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12646 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
| 12647 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ |
| 12648 | && LITTLE_ENDIAN) |
| 12649 | bogus endian macros |
| 12650 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12651 | |
| 12652 | ; |
| 12653 | return 0; |
| 12654 | } |
| 12655 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12656 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12657 | # It does; now see whether it defined to BIG_ENDIAN or not. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12658 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12659 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12660 | #include <sys/types.h> |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12661 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12662 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12663 | int |
| 12664 | main () |
| 12665 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12666 | #if BYTE_ORDER != BIG_ENDIAN |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12667 | not big endian |
| 12668 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12669 | |
| 12670 | ; |
| 12671 | return 0; |
| 12672 | } |
| 12673 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12674 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12675 | ac_cv_c_bigendian=yes |
| 12676 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12677 | ac_cv_c_bigendian=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12678 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12679 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12680 | fi |
| 12681 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12682 | fi |
| 12683 | if test $ac_cv_c_bigendian = unknown; then |
| 12684 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). |
| 12685 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12686 | /* end confdefs.h. */ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12687 | #include <limits.h> |
| 12688 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12689 | int |
| 12690 | main () |
| 12691 | { |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12692 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
| 12693 | bogus endian macros |
| 12694 | #endif |
| 12695 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12696 | ; |
| 12697 | return 0; |
| 12698 | } |
| 12699 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12700 | if ac_fn_c_try_compile "$LINENO"; then : |
| 12701 | # It does; now see whether it defined to _BIG_ENDIAN or not. |
| 12702 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12703 | /* end confdefs.h. */ |
| 12704 | #include <limits.h> |
| 12705 | |
| 12706 | int |
| 12707 | main () |
| 12708 | { |
| 12709 | #ifndef _BIG_ENDIAN |
| 12710 | not big endian |
| 12711 | #endif |
| 12712 | |
| 12713 | ; |
| 12714 | return 0; |
| 12715 | } |
| 12716 | _ACEOF |
| 12717 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12718 | ac_cv_c_bigendian=yes |
Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 12719 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12720 | ac_cv_c_bigendian=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12721 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12722 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12723 | fi |
| 12724 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12725 | fi |
| 12726 | if test $ac_cv_c_bigendian = unknown; then |
| 12727 | # Compile a test program. |
| 12728 | if test "$cross_compiling" = yes; then : |
| 12729 | # Try to guess by grepping values from an object file. |
| 12730 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12731 | /* end confdefs.h. */ |
| 12732 | short int ascii_mm[] = |
| 12733 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 12734 | short int ascii_ii[] = |
| 12735 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 12736 | int use_ascii (int i) { |
| 12737 | return ascii_mm[i] + ascii_ii[i]; |
| 12738 | } |
| 12739 | short int ebcdic_ii[] = |
| 12740 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 12741 | short int ebcdic_mm[] = |
| 12742 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 12743 | int use_ebcdic (int i) { |
| 12744 | return ebcdic_mm[i] + ebcdic_ii[i]; |
| 12745 | } |
| 12746 | extern int foo; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12747 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12748 | int |
| 12749 | main () |
| 12750 | { |
| 12751 | return use_ascii (foo) == use_ebcdic (foo); |
| 12752 | ; |
| 12753 | return 0; |
| 12754 | } |
| 12755 | _ACEOF |
| 12756 | if ac_fn_c_try_compile "$LINENO"; then : |
| 12757 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then |
| 12758 | ac_cv_c_bigendian=yes |
| 12759 | fi |
| 12760 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 12761 | if test "$ac_cv_c_bigendian" = unknown; then |
| 12762 | ac_cv_c_bigendian=no |
| 12763 | else |
| 12764 | # finding both strings is unlikely to happen, but who knows? |
| 12765 | ac_cv_c_bigendian=unknown |
| 12766 | fi |
| 12767 | fi |
| 12768 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12769 | 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] | 12770 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12771 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12772 | /* end confdefs.h. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12773 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12774 | int |
| 12775 | main () |
| 12776 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12777 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12778 | /* Are we little or big endian? From Harbison&Steele. */ |
| 12779 | union |
| 12780 | { |
| 12781 | long int l; |
| 12782 | char c[sizeof (long int)]; |
| 12783 | } u; |
| 12784 | u.l = 1; |
| 12785 | return u.c[sizeof (long int) - 1] == 1; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12786 | |
| 12787 | ; |
| 12788 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12789 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12790 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12791 | if ac_fn_c_try_run "$LINENO"; then : |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12792 | ac_cv_c_bigendian=no |
| 12793 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12794 | ac_cv_c_bigendian=yes |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12795 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12796 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 12797 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12798 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12799 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12800 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12801 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
| 12803 | $as_echo "$ac_cv_c_bigendian" >&6; } |
| 12804 | case $ac_cv_c_bigendian in #( |
| 12805 | yes) |
| 12806 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h |
| 12807 | ;; #( |
| 12808 | no) |
| 12809 | ;; #( |
| 12810 | universal) |
Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 12811 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12812 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 12813 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12814 | ;; #( |
| 12815 | *) |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 12816 | as_fn_error $? "unknown endianness |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 12817 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12818 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12819 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12820 | |
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 12821 | # ABI version string for Python extension modules. This appears between the |
| 12822 | # periods in shared library file names, e.g. foo.<SOABI>.so. It is calculated |
| 12823 | # from the following attributes which affect the ABI of this Python build (in |
| 12824 | # this order): |
| 12825 | # |
| 12826 | # * The Python implementation (always 'cpython-' for us) |
| 12827 | # * The major and minor version numbers |
| 12828 | # * --with-pydebug (adds a 'd') |
| 12829 | # * --with-pymalloc (adds a 'm') |
| 12830 | # * --with-wide-unicode (adds a 'u') |
| 12831 | # |
| 12832 | # 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] | 12833 | # would get a shared library ABI version tag of 'cpython-32dmu' and shared |
| 12834 | # libraries would be named 'foo.cpython-32dmu.so'. |
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 12835 | |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 12836 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking ABIFLAGS" >&5 |
| 12837 | $as_echo_n "checking ABIFLAGS... " >&6; } |
| 12838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ABIFLAGS" >&5 |
| 12839 | $as_echo "$ABIFLAGS" >&6; } |
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 12840 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking SOABI" >&5 |
| 12841 | $as_echo_n "checking SOABI... " >&6; } |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 12842 | SOABI='cpython-'`echo $VERSION | tr -d .`${ABIFLAGS} |
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 12843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SOABI" >&5 |
| 12844 | $as_echo "$SOABI" >&6; } |
| 12845 | |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 12846 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDVERSION" >&5 |
| 12847 | $as_echo_n "checking LDVERSION... " >&6; } |
| 12848 | LDVERSION='$(VERSION)$(ABIFLAGS)' |
| 12849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDVERSION" >&5 |
| 12850 | $as_echo "$LDVERSION" >&6; } |
| 12851 | |
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 12852 | # SO is the extension of shared libraries `(including the dot!) |
| 12853 | # -- usually .so, .sl on HP-UX, .dll on Cygwin |
| 12854 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking SO" >&5 |
| 12855 | $as_echo_n "checking SO... " >&6; } |
| 12856 | if test -z "$SO" |
| 12857 | then |
| 12858 | case $ac_sys_system in |
| 12859 | hp*|HP*) |
| 12860 | case `uname -m` in |
| 12861 | ia64) SO=.so;; |
| 12862 | *) SO=.sl;; |
| 12863 | esac |
| 12864 | ;; |
| 12865 | CYGWIN*) SO=.dll;; |
Barry Warsaw | 278266f | 2010-10-14 17:38:46 +0000 | [diff] [blame] | 12866 | Linux*|GNU*) |
| 12867 | SO=.${SOABI}.so;; |
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 12868 | *) SO=.so;; |
| 12869 | esac |
| 12870 | else |
| 12871 | # this might also be a termcap variable, see #610332 |
Benjamin Peterson | d7f73e9 | 2010-09-05 00:09:07 +0000 | [diff] [blame] | 12872 | echo |
| 12873 | echo '=====================================================================' |
| 12874 | echo '+ +' |
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 12875 | echo '+ WARNING: You have set SO in your environment. +' |
Benjamin Peterson | d7f73e9 | 2010-09-05 00:09:07 +0000 | [diff] [blame] | 12876 | echo '+ Do you really mean to change the extension for shared libraries? +' |
| 12877 | echo '+ Continuing in 10 seconds to let you to ponder. +' |
| 12878 | echo '+ +' |
| 12879 | echo '=====================================================================' |
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 12880 | sleep 10 |
| 12881 | fi |
| 12882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SO" >&5 |
| 12883 | $as_echo "$SO" >&6; } |
| 12884 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 12885 | # Check whether right shifting a negative integer extends the sign bit |
| 12886 | # or fills with zeros (like the Cray J90, according to Tim Peters). |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12887 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether right shift extends the sign bit" >&5 |
| 12888 | $as_echo_n "checking whether right shift extends the sign bit... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 12889 | if ${ac_cv_rshift_extends_sign+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12890 | $as_echo_n "(cached) " >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 12891 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12892 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12893 | if test "$cross_compiling" = yes; then : |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 12894 | ac_cv_rshift_extends_sign=yes |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 12895 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12896 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12897 | /* end confdefs.h. */ |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 12898 | |
| 12899 | int main() |
| 12900 | { |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 12901 | exit(((-1)>>3 == -1) ? 0 : 1); |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 12902 | } |
| 12903 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12904 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12905 | if ac_fn_c_try_run "$LINENO"; then : |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 12906 | ac_cv_rshift_extends_sign=yes |
| 12907 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12908 | ac_cv_rshift_extends_sign=no |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 12909 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12910 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 12911 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 12912 | fi |
| 12913 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12914 | fi |
| 12915 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rshift_extends_sign" >&5 |
| 12917 | $as_echo "$ac_cv_rshift_extends_sign" >&6; } |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 12918 | if test "$ac_cv_rshift_extends_sign" = no |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 12919 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12920 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12921 | $as_echo "#define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1" >>confdefs.h |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 12922 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 12923 | fi |
| 12924 | |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 12925 | # check for getc_unlocked and related locking functions |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12926 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getc_unlocked() and friends" >&5 |
| 12927 | $as_echo_n "checking for getc_unlocked() and friends... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 12928 | if ${ac_cv_have_getc_unlocked+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12929 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 12930 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12931 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12932 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12933 | /* end confdefs.h. */ |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 12934 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12935 | int |
| 12936 | main () |
| 12937 | { |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 12938 | |
| 12939 | FILE *f = fopen("/dev/null", "r"); |
| 12940 | flockfile(f); |
| 12941 | getc_unlocked(f); |
| 12942 | funlockfile(f); |
| 12943 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12944 | ; |
| 12945 | return 0; |
| 12946 | } |
| 12947 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12948 | if ac_fn_c_try_link "$LINENO"; then : |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 12949 | ac_cv_have_getc_unlocked=yes |
| 12950 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12951 | ac_cv_have_getc_unlocked=no |
| 12952 | fi |
| 12953 | rm -f core conftest.err conftest.$ac_objext \ |
| 12954 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 12955 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12956 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getc_unlocked" >&5 |
| 12958 | $as_echo "$ac_cv_have_getc_unlocked" >&6; } |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 12959 | if test "$ac_cv_have_getc_unlocked" = yes |
| 12960 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12961 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12962 | $as_echo "#define HAVE_GETC_UNLOCKED 1" >>confdefs.h |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 12963 | |
| 12964 | fi |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 12965 | |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 12966 | # check where readline lives |
Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 12967 | # save the value of LIBS so we don't actually link Python with readline |
| 12968 | LIBS_no_readline=$LIBS |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 12969 | |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 12970 | # On some systems we need to link readline to a termcap compatible |
| 12971 | # library. NOTE: Keep the precedence of listed libraries synchronised |
| 12972 | # with setup.py. |
| 12973 | py_cv_lib_readline=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12974 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link readline libs" >&5 |
| 12975 | $as_echo_n "checking how to link readline libs... " >&6; } |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 12976 | for py_libtermcap in "" ncursesw ncurses curses termcap; do |
| 12977 | if test -z "$py_libtermcap"; then |
| 12978 | READLINE_LIBS="-lreadline" |
| 12979 | else |
| 12980 | READLINE_LIBS="-lreadline -l$py_libtermcap" |
| 12981 | fi |
| 12982 | LIBS="$READLINE_LIBS $LIBS_no_readline" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12983 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 12984 | /* end confdefs.h. */ |
| 12985 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12986 | /* Override any GCC internal prototype to avoid an error. |
| 12987 | Use char because int might match the return type of a GCC |
| 12988 | builtin and then its argument prototype would still apply. */ |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 12989 | #ifdef __cplusplus |
| 12990 | extern "C" |
| 12991 | #endif |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 12992 | char readline (); |
| 12993 | int |
| 12994 | main () |
| 12995 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12996 | return readline (); |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 12997 | ; |
| 12998 | return 0; |
| 12999 | } |
| 13000 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13001 | if ac_fn_c_try_link "$LINENO"; then : |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 13002 | py_cv_lib_readline=yes |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 13003 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13004 | rm -f core conftest.err conftest.$ac_objext \ |
| 13005 | conftest$ac_exeext conftest.$ac_ext |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 13006 | if test $py_cv_lib_readline = yes; then |
| 13007 | break |
| 13008 | fi |
| 13009 | done |
| 13010 | # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts |
| 13011 | #AC_SUBST([READLINE_LIBS]) |
Gregory P. Smith | 3856c37 | 2008-09-07 19:24:00 +0000 | [diff] [blame] | 13012 | if test $py_cv_lib_readline = no; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
| 13014 | $as_echo "none" >&6; } |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 13015 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE_LIBS" >&5 |
| 13017 | $as_echo "$READLINE_LIBS" >&6; } |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 13018 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13019 | $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 13020 | |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 13021 | fi |
| 13022 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13023 | # check for readline 2.1 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13024 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_callback_handler_install in -lreadline" >&5 |
| 13025 | $as_echo_n "checking for rl_callback_handler_install in -lreadline... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 13026 | if ${ac_cv_lib_readline_rl_callback_handler_install+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13027 | $as_echo_n "(cached) " >&6 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13028 | else |
| 13029 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 13030 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13031 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13032 | /* end confdefs.h. */ |
| 13033 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13034 | /* Override any GCC internal prototype to avoid an error. |
| 13035 | Use char because int might match the return type of a GCC |
| 13036 | builtin and then its argument prototype would still apply. */ |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13037 | #ifdef __cplusplus |
| 13038 | extern "C" |
| 13039 | #endif |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13040 | char rl_callback_handler_install (); |
| 13041 | int |
| 13042 | main () |
| 13043 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13044 | return rl_callback_handler_install (); |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13045 | ; |
| 13046 | return 0; |
| 13047 | } |
| 13048 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13049 | if ac_fn_c_try_link "$LINENO"; then : |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13050 | ac_cv_lib_readline_rl_callback_handler_install=yes |
| 13051 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13052 | ac_cv_lib_readline_rl_callback_handler_install=no |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13053 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13054 | rm -f core conftest.err conftest.$ac_objext \ |
| 13055 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13056 | LIBS=$ac_check_lib_save_LIBS |
| 13057 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5 |
| 13059 | $as_echo "$ac_cv_lib_readline_rl_callback_handler_install" >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 13060 | 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] | 13061 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13062 | $as_echo "#define HAVE_RL_CALLBACK 1" >>confdefs.h |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13063 | |
| 13064 | fi |
| 13065 | |
| 13066 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 13067 | # check for readline 2.2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13068 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13069 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 13070 | #include <readline/readline.h> |
| 13071 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13072 | if ac_fn_c_try_cpp "$LINENO"; then : |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 13073 | have_readline=yes |
| 13074 | else |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 13075 | have_readline=no |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13076 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 13077 | fi |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 13078 | rm -f conftest.err conftest.i conftest.$ac_ext |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 13079 | if test $have_readline = yes |
| 13080 | then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13081 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13082 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 13083 | #include <readline/readline.h> |
| 13084 | |
| 13085 | _ACEOF |
| 13086 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13087 | $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] | 13088 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13089 | $as_echo "#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1" >>confdefs.h |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 13090 | |
| 13091 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 13092 | rm -f conftest* |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 13093 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13094 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Antoine Pitrou | d513177 | 2009-10-26 19:22:14 +0000 | [diff] [blame] | 13095 | /* end confdefs.h. */ |
| 13096 | #include <readline/readline.h> |
| 13097 | |
| 13098 | _ACEOF |
| 13099 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13100 | $EGREP "extern int rl_completion_suppress_append;" >/dev/null 2>&1; then : |
Antoine Pitrou | d513177 | 2009-10-26 19:22:14 +0000 | [diff] [blame] | 13101 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13102 | $as_echo "#define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1" >>confdefs.h |
Antoine Pitrou | d513177 | 2009-10-26 19:22:14 +0000 | [diff] [blame] | 13103 | |
| 13104 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 13105 | rm -f conftest* |
Antoine Pitrou | d513177 | 2009-10-26 19:22:14 +0000 | [diff] [blame] | 13106 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 13107 | fi |
| 13108 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 13109 | # check for readline 4.0 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13110 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_pre_input_hook in -lreadline" >&5 |
| 13111 | $as_echo_n "checking for rl_pre_input_hook in -lreadline... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 13112 | if ${ac_cv_lib_readline_rl_pre_input_hook+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13113 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 13114 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13115 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 13116 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 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 | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13119 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13120 | /* Override any GCC internal prototype to avoid an error. |
| 13121 | Use char because int might match the return type of a GCC |
| 13122 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13123 | #ifdef __cplusplus |
| 13124 | extern "C" |
| 13125 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13126 | char rl_pre_input_hook (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13127 | int |
| 13128 | main () |
| 13129 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13130 | return rl_pre_input_hook (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13131 | ; |
| 13132 | return 0; |
| 13133 | } |
| 13134 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13135 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13136 | ac_cv_lib_readline_rl_pre_input_hook=yes |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 13137 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13138 | ac_cv_lib_readline_rl_pre_input_hook=no |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 13139 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13140 | rm -f core conftest.err conftest.$ac_objext \ |
| 13141 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13142 | LIBS=$ac_check_lib_save_LIBS |
| 13143 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5 |
| 13145 | $as_echo "$ac_cv_lib_readline_rl_pre_input_hook" >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 13146 | 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] | 13147 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13148 | $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] | 13149 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 13150 | fi |
| 13151 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13152 | |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 13153 | # also in 4.0 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13154 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_display_matches_hook in -lreadline" >&5 |
| 13155 | $as_echo_n "checking for rl_completion_display_matches_hook in -lreadline... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 13156 | if ${ac_cv_lib_readline_rl_completion_display_matches_hook+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13157 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 13158 | else |
| 13159 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 13160 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13161 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 13162 | /* end confdefs.h. */ |
| 13163 | |
| 13164 | /* Override any GCC internal prototype to avoid an error. |
| 13165 | Use char because int might match the return type of a GCC |
| 13166 | builtin and then its argument prototype would still apply. */ |
| 13167 | #ifdef __cplusplus |
| 13168 | extern "C" |
| 13169 | #endif |
| 13170 | char rl_completion_display_matches_hook (); |
| 13171 | int |
| 13172 | main () |
| 13173 | { |
| 13174 | return rl_completion_display_matches_hook (); |
| 13175 | ; |
| 13176 | return 0; |
| 13177 | } |
| 13178 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13179 | if ac_fn_c_try_link "$LINENO"; then : |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 13180 | ac_cv_lib_readline_rl_completion_display_matches_hook=yes |
| 13181 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13182 | ac_cv_lib_readline_rl_completion_display_matches_hook=no |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 13183 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13184 | rm -f core conftest.err conftest.$ac_objext \ |
| 13185 | conftest$ac_exeext conftest.$ac_ext |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 13186 | LIBS=$ac_check_lib_save_LIBS |
| 13187 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5 |
| 13189 | $as_echo "$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 13190 | 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] | 13191 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13192 | $as_echo "#define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1" >>confdefs.h |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 13193 | |
| 13194 | fi |
| 13195 | |
| 13196 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 13197 | # check for readline 4.2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13198 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_matches in -lreadline" >&5 |
| 13199 | $as_echo_n "checking for rl_completion_matches in -lreadline... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 13200 | if ${ac_cv_lib_readline_rl_completion_matches+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13201 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 13202 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13203 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 13204 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13205 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13206 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13207 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13208 | /* Override any GCC internal prototype to avoid an error. |
| 13209 | Use char because int might match the return type of a GCC |
| 13210 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13211 | #ifdef __cplusplus |
| 13212 | extern "C" |
| 13213 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13214 | char rl_completion_matches (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13215 | int |
| 13216 | main () |
| 13217 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13218 | return rl_completion_matches (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13219 | ; |
| 13220 | return 0; |
| 13221 | } |
| 13222 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13223 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13224 | ac_cv_lib_readline_rl_completion_matches=yes |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 13225 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13226 | ac_cv_lib_readline_rl_completion_matches=no |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 13227 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13228 | rm -f core conftest.err conftest.$ac_objext \ |
| 13229 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13230 | LIBS=$ac_check_lib_save_LIBS |
| 13231 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_matches" >&5 |
| 13233 | $as_echo "$ac_cv_lib_readline_rl_completion_matches" >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 13234 | 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] | 13235 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13236 | $as_echo "#define HAVE_RL_COMPLETION_MATCHES 1" >>confdefs.h |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 13237 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 13238 | fi |
| 13239 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 13240 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13241 | # also in readline 4.2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13242 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13243 | /* end confdefs.h. */ |
| 13244 | #include <readline/readline.h> |
| 13245 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13246 | if ac_fn_c_try_cpp "$LINENO"; then : |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13247 | have_readline=yes |
| 13248 | else |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13249 | have_readline=no |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13250 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13251 | fi |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 13252 | rm -f conftest.err conftest.i conftest.$ac_ext |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13253 | if test $have_readline = yes |
| 13254 | then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13255 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13256 | /* end confdefs.h. */ |
| 13257 | #include <readline/readline.h> |
| 13258 | |
| 13259 | _ACEOF |
| 13260 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13261 | $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then : |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13262 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13263 | $as_echo "#define HAVE_RL_CATCH_SIGNAL 1" >>confdefs.h |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13264 | |
| 13265 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 13266 | rm -f conftest* |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13267 | |
| 13268 | fi |
| 13269 | |
Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 13270 | # End of readline checks: restore LIBS |
| 13271 | LIBS=$LIBS_no_readline |
| 13272 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13273 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken nice()" >&5 |
| 13274 | $as_echo_n "checking for broken nice()... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 13275 | if ${ac_cv_broken_nice+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13276 | $as_echo_n "(cached) " >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13277 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13278 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13279 | if test "$cross_compiling" = yes; then : |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 13280 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 13281 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13282 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13283 | /* end confdefs.h. */ |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 13284 | |
| 13285 | int main() |
| 13286 | { |
| 13287 | int val1 = nice(1); |
| 13288 | if (val1 != -1 && val1 == nice(2)) |
| 13289 | exit(0); |
| 13290 | exit(1); |
| 13291 | } |
| 13292 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13293 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13294 | if ac_fn_c_try_run "$LINENO"; then : |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 13295 | ac_cv_broken_nice=yes |
| 13296 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13297 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 13298 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13299 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 13300 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 13301 | fi |
| 13302 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13303 | fi |
| 13304 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_nice" >&5 |
| 13306 | $as_echo "$ac_cv_broken_nice" >&6; } |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 13307 | if test "$ac_cv_broken_nice" = yes |
| 13308 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13309 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13310 | $as_echo "#define HAVE_BROKEN_NICE 1" >>confdefs.h |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 13311 | |
| 13312 | fi |
| 13313 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13314 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken poll()" >&5 |
| 13315 | $as_echo_n "checking for broken poll()... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 13316 | if ${ac_cv_broken_poll+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13317 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13318 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13319 | if test "$cross_compiling" = yes; then : |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13320 | ac_cv_broken_poll=no |
| 13321 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13322 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13323 | /* end confdefs.h. */ |
| 13324 | |
| 13325 | #include <poll.h> |
| 13326 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13327 | int main() |
| 13328 | { |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13329 | struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 }; |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13330 | int poll_test; |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13331 | |
| 13332 | close (42); |
| 13333 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13334 | poll_test = poll(&poll_struct, 1, 0); |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13335 | if (poll_test < 0) |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13336 | return 0; |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13337 | else if (poll_test == 0 && poll_struct.revents != POLLNVAL) |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13338 | return 0; |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13339 | else |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13340 | return 1; |
| 13341 | } |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13342 | |
| 13343 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13344 | if ac_fn_c_try_run "$LINENO"; then : |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13345 | ac_cv_broken_poll=yes |
| 13346 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13347 | ac_cv_broken_poll=no |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13348 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13349 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 13350 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13351 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13352 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13353 | fi |
| 13354 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_poll" >&5 |
| 13356 | $as_echo "$ac_cv_broken_poll" >&6; } |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13357 | if test "$ac_cv_broken_poll" = yes |
| 13358 | then |
| 13359 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13360 | $as_echo "#define HAVE_BROKEN_POLL 1" >>confdefs.h |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13361 | |
| 13362 | fi |
| 13363 | |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13364 | # 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] | 13365 | # (which is not required by ISO C or UNIX spec) and/or if we support |
| 13366 | # tzname[] |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13367 | 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] | 13368 | #include <$ac_cv_struct_tm> |
| 13369 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13370 | " |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 13371 | if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then : |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13372 | |
| 13373 | cat >>confdefs.h <<_ACEOF |
| 13374 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 13375 | _ACEOF |
| 13376 | |
| 13377 | |
| 13378 | fi |
| 13379 | |
| 13380 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 13381 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13382 | $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13383 | |
| 13384 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13385 | ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> |
| 13386 | " |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 13387 | if test "x$ac_cv_have_decl_tzname" = xyes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13388 | ac_have_decl=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13389 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13390 | ac_have_decl=0 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13391 | fi |
| 13392 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13393 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13394 | #define HAVE_DECL_TZNAME $ac_have_decl |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13395 | _ACEOF |
| 13396 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 |
| 13398 | $as_echo_n "checking for tzname... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 13399 | if ${ac_cv_var_tzname+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13400 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13401 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13402 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13403 | /* end confdefs.h. */ |
| 13404 | #include <time.h> |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13405 | #if !HAVE_DECL_TZNAME |
| 13406 | extern char *tzname[]; |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13407 | #endif |
| 13408 | |
| 13409 | int |
| 13410 | main () |
| 13411 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13412 | return tzname[0][0]; |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13413 | ; |
| 13414 | return 0; |
| 13415 | } |
| 13416 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13417 | if ac_fn_c_try_link "$LINENO"; then : |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13418 | ac_cv_var_tzname=yes |
| 13419 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13420 | ac_cv_var_tzname=no |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13421 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13422 | rm -f core conftest.err conftest.$ac_objext \ |
| 13423 | conftest$ac_exeext conftest.$ac_ext |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13424 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 |
| 13426 | $as_echo "$ac_cv_var_tzname" >&6; } |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13427 | if test $ac_cv_var_tzname = yes; then |
| 13428 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13429 | $as_echo "#define HAVE_TZNAME 1" >>confdefs.h |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13430 | |
| 13431 | fi |
| 13432 | fi |
| 13433 | |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13434 | |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 13435 | # check tzset(3) exists and works like we expect it to |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13436 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working tzset()" >&5 |
| 13437 | $as_echo_n "checking for working tzset()... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 13438 | if ${ac_cv_working_tzset+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13439 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13440 | else |
| 13441 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13442 | if test "$cross_compiling" = yes; then : |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13443 | ac_cv_working_tzset=no |
| 13444 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13445 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13446 | /* end confdefs.h. */ |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13447 | |
| 13448 | #include <stdlib.h> |
| 13449 | #include <time.h> |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13450 | #include <string.h> |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13451 | |
| 13452 | #if HAVE_TZNAME |
| 13453 | extern char *tzname[]; |
| 13454 | #endif |
| 13455 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13456 | int main() |
| 13457 | { |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13458 | /* Note that we need to ensure that not only does tzset(3) |
| 13459 | do 'something' with localtime, but it works as documented |
| 13460 | 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] | 13461 | This includes making sure that tzname is set properly if |
| 13462 | tm->tm_zone does not exist since it is the alternative way |
| 13463 | of getting timezone info. |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13464 | |
| 13465 | Red Hat 6.2 doesn't understand the southern hemisphere |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 13466 | after New Year's Day. |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13467 | */ |
| 13468 | |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 13469 | time_t groundhogday = 1044144000; /* GMT-based */ |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13470 | time_t midyear = groundhogday + (365 * 24 * 3600 / 2); |
| 13471 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 13472 | putenv("TZ=UTC+0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13473 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13474 | if (localtime(&groundhogday)->tm_hour != 0) |
| 13475 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13476 | #if HAVE_TZNAME |
| 13477 | /* For UTC, tzname[1] is sometimes "", sometimes " " */ |
| 13478 | if (strcmp(tzname[0], "UTC") || |
| 13479 | (tzname[1][0] != 0 && tzname[1][0] != ' ')) |
| 13480 | exit(1); |
| 13481 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13482 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 13483 | putenv("TZ=EST+5EDT,M4.1.0,M10.5.0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13484 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13485 | if (localtime(&groundhogday)->tm_hour != 19) |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13486 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13487 | #if HAVE_TZNAME |
| 13488 | if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT")) |
| 13489 | exit(1); |
| 13490 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13491 | |
| 13492 | putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0"); |
| 13493 | tzset(); |
| 13494 | if (localtime(&groundhogday)->tm_hour != 11) |
| 13495 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13496 | #if HAVE_TZNAME |
| 13497 | if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT")) |
| 13498 | exit(1); |
| 13499 | #endif |
| 13500 | |
| 13501 | #if HAVE_STRUCT_TM_TM_ZONE |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13502 | if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT")) |
| 13503 | exit(1); |
| 13504 | if (strcmp(localtime(&midyear)->tm_zone, "AEST")) |
| 13505 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13506 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13507 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13508 | exit(0); |
| 13509 | } |
| 13510 | |
| 13511 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13512 | if ac_fn_c_try_run "$LINENO"; then : |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13513 | ac_cv_working_tzset=yes |
| 13514 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13515 | ac_cv_working_tzset=no |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13516 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13517 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 13518 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13519 | fi |
| 13520 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13521 | fi |
| 13522 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_tzset" >&5 |
| 13524 | $as_echo "$ac_cv_working_tzset" >&6; } |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13525 | if test "$ac_cv_working_tzset" = yes |
| 13526 | then |
| 13527 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13528 | $as_echo "#define HAVE_WORKING_TZSET 1" >>confdefs.h |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13529 | |
| 13530 | fi |
| 13531 | |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 13532 | # Look for subsecond timestamps in struct stat |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13533 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec in struct stat" >&5 |
| 13534 | $as_echo_n "checking for tv_nsec in struct stat... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 13535 | if ${ac_cv_stat_tv_nsec+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13536 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 13537 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13538 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13539 | /* end confdefs.h. */ |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 13540 | #include <sys/stat.h> |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 13541 | int |
| 13542 | main () |
| 13543 | { |
| 13544 | |
| 13545 | struct stat st; |
| 13546 | st.st_mtim.tv_nsec = 1; |
| 13547 | |
| 13548 | ; |
| 13549 | return 0; |
| 13550 | } |
| 13551 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13552 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | a32c994 | 2002-09-09 16:17:47 +0000 | [diff] [blame] | 13553 | ac_cv_stat_tv_nsec=yes |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 13554 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13555 | ac_cv_stat_tv_nsec=no |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 13556 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13557 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13558 | fi |
| 13559 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec" >&5 |
| 13561 | $as_echo "$ac_cv_stat_tv_nsec" >&6; } |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 13562 | if test "$ac_cv_stat_tv_nsec" = yes |
| 13563 | then |
| 13564 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13565 | $as_echo "#define HAVE_STAT_TV_NSEC 1" >>confdefs.h |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 13566 | |
| 13567 | fi |
| 13568 | |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 13569 | # Look for BSD style subsecond timestamps in struct stat |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13570 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec2 in struct stat" >&5 |
| 13571 | $as_echo_n "checking for tv_nsec2 in struct stat... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 13572 | if ${ac_cv_stat_tv_nsec2+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13573 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 13574 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13575 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 13576 | /* end confdefs.h. */ |
| 13577 | #include <sys/stat.h> |
| 13578 | int |
| 13579 | main () |
| 13580 | { |
| 13581 | |
| 13582 | struct stat st; |
| 13583 | st.st_mtimespec.tv_nsec = 1; |
| 13584 | |
| 13585 | ; |
| 13586 | return 0; |
| 13587 | } |
| 13588 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13589 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 13590 | ac_cv_stat_tv_nsec2=yes |
| 13591 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13592 | ac_cv_stat_tv_nsec2=no |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 13593 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13594 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13595 | fi |
| 13596 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec2" >&5 |
| 13598 | $as_echo "$ac_cv_stat_tv_nsec2" >&6; } |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 13599 | if test "$ac_cv_stat_tv_nsec2" = yes |
| 13600 | then |
| 13601 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13602 | $as_echo "#define HAVE_STAT_TV_NSEC2 1" >>confdefs.h |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 13603 | |
| 13604 | fi |
| 13605 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13606 | # 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] | 13607 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mvwdelch is an expression" >&5 |
| 13608 | $as_echo_n "checking whether mvwdelch is an expression... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 13609 | if ${ac_cv_mvwdelch_is_expression+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13610 | $as_echo_n "(cached) " >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13611 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13612 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13613 | /* end confdefs.h. */ |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13614 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13615 | int |
| 13616 | main () |
| 13617 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13618 | |
| 13619 | int rtn; |
| 13620 | rtn = mvwdelch(0,0,0); |
| 13621 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13622 | ; |
| 13623 | return 0; |
| 13624 | } |
| 13625 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13626 | if ac_fn_c_try_compile "$LINENO"; then : |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13627 | ac_cv_mvwdelch_is_expression=yes |
| 13628 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13629 | ac_cv_mvwdelch_is_expression=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13630 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13631 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13632 | fi |
| 13633 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13634 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mvwdelch_is_expression" >&5 |
| 13635 | $as_echo "$ac_cv_mvwdelch_is_expression" >&6; } |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13636 | |
| 13637 | if test "$ac_cv_mvwdelch_is_expression" = yes |
| 13638 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13639 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13640 | $as_echo "#define MVWDELCH_IS_EXPRESSION 1" >>confdefs.h |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13641 | |
| 13642 | fi |
| 13643 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13644 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether WINDOW has _flags" >&5 |
| 13645 | $as_echo_n "checking whether WINDOW has _flags... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 13646 | if ${ac_cv_window_has_flags+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13647 | $as_echo_n "(cached) " >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13648 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13649 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13650 | /* end confdefs.h. */ |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13651 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13652 | int |
| 13653 | main () |
| 13654 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13655 | |
| 13656 | WINDOW *w; |
| 13657 | w->_flags = 0; |
| 13658 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13659 | ; |
| 13660 | return 0; |
| 13661 | } |
| 13662 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13663 | if ac_fn_c_try_compile "$LINENO"; then : |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13664 | ac_cv_window_has_flags=yes |
| 13665 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13666 | ac_cv_window_has_flags=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13667 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13668 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13669 | fi |
| 13670 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_window_has_flags" >&5 |
| 13672 | $as_echo "$ac_cv_window_has_flags" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13673 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13674 | |
| 13675 | if test "$ac_cv_window_has_flags" = yes |
| 13676 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13677 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13678 | $as_echo "#define WINDOW_HAS_FLAGS 1" >>confdefs.h |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13679 | |
| 13680 | fi |
| 13681 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13682 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_term_resized" >&5 |
| 13683 | $as_echo_n "checking for is_term_resized... " >&6; } |
| 13684 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13685 | /* end confdefs.h. */ |
| 13686 | #include <curses.h> |
| 13687 | int |
| 13688 | main () |
| 13689 | { |
| 13690 | void *x=is_term_resized |
| 13691 | ; |
| 13692 | return 0; |
| 13693 | } |
| 13694 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13695 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 13696 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13697 | $as_echo "#define HAVE_CURSES_IS_TERM_RESIZED 1" >>confdefs.h |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13698 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13700 | $as_echo "yes" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13701 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13703 | $as_echo "no" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13704 | |
| 13705 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13706 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13707 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13708 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resize_term" >&5 |
| 13709 | $as_echo_n "checking for resize_term... " >&6; } |
| 13710 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13711 | /* end confdefs.h. */ |
| 13712 | #include <curses.h> |
| 13713 | int |
| 13714 | main () |
| 13715 | { |
| 13716 | void *x=resize_term |
| 13717 | ; |
| 13718 | return 0; |
| 13719 | } |
| 13720 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13721 | if ac_fn_c_try_compile "$LINENO"; then : |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13722 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13723 | $as_echo "#define HAVE_CURSES_RESIZE_TERM 1" >>confdefs.h |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13724 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13726 | $as_echo "yes" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13727 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13729 | $as_echo "no" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13730 | |
| 13731 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13732 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13733 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13734 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resizeterm" >&5 |
| 13735 | $as_echo_n "checking for resizeterm... " >&6; } |
| 13736 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13737 | /* end confdefs.h. */ |
| 13738 | #include <curses.h> |
| 13739 | int |
| 13740 | main () |
| 13741 | { |
| 13742 | void *x=resizeterm |
| 13743 | ; |
| 13744 | return 0; |
| 13745 | } |
| 13746 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13747 | if ac_fn_c_try_compile "$LINENO"; then : |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13748 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13749 | $as_echo "#define HAVE_CURSES_RESIZETERM 1" >>confdefs.h |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13750 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13752 | $as_echo "yes" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13753 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13755 | $as_echo "no" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13756 | |
| 13757 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13758 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13759 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13760 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5 |
| 13761 | $as_echo_n "checking for /dev/ptmx... " >&6; } |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 13762 | |
| 13763 | if test -r /dev/ptmx |
| 13764 | then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 13766 | $as_echo "yes" >&6; } |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 13767 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13768 | $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 13769 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 13770 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13772 | $as_echo "no" >&6; } |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 13773 | fi |
| 13774 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13775 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5 |
| 13776 | $as_echo_n "checking for /dev/ptc... " >&6; } |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 13777 | |
| 13778 | if test -r /dev/ptc |
| 13779 | then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 13781 | $as_echo "yes" >&6; } |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 13782 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13783 | $as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 13784 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 13785 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13787 | $as_echo "no" >&6; } |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 13788 | fi |
| 13789 | |
Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 13790 | if test "$have_long_long" = yes |
| 13791 | then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13792 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for %lld and %llu printf() format support" >&5 |
| 13793 | $as_echo_n "checking for %lld and %llu printf() format support... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 13794 | if ${ac_cv_have_long_long_format+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13795 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 13796 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13797 | if test "$cross_compiling" = yes; then : |
Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 13798 | ac_cv_have_long_long_format=no |
| 13799 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13800 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 13801 | /* end confdefs.h. */ |
| 13802 | |
| 13803 | #include <stdio.h> |
| 13804 | #include <stddef.h> |
| 13805 | #include <string.h> |
| 13806 | |
| 13807 | #ifdef HAVE_SYS_TYPES_H |
| 13808 | #include <sys/types.h> |
| 13809 | #endif |
| 13810 | |
| 13811 | int main() |
| 13812 | { |
| 13813 | char buffer[256]; |
| 13814 | |
| 13815 | if (sprintf(buffer, "%lld", (long long)123) < 0) |
| 13816 | return 1; |
| 13817 | if (strcmp(buffer, "123")) |
| 13818 | return 1; |
| 13819 | |
| 13820 | if (sprintf(buffer, "%lld", (long long)-123) < 0) |
| 13821 | return 1; |
| 13822 | if (strcmp(buffer, "-123")) |
| 13823 | return 1; |
| 13824 | |
| 13825 | if (sprintf(buffer, "%llu", (unsigned long long)123) < 0) |
| 13826 | return 1; |
| 13827 | if (strcmp(buffer, "123")) |
| 13828 | return 1; |
| 13829 | |
| 13830 | return 0; |
| 13831 | } |
| 13832 | |
| 13833 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13834 | if ac_fn_c_try_run "$LINENO"; then : |
Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 13835 | ac_cv_have_long_long_format=yes |
| 13836 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13837 | ac_cv_have_long_long_format=no |
Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 13838 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13839 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 13840 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 13841 | fi |
| 13842 | |
| 13843 | |
Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 13844 | fi |
| 13845 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_long_long_format" >&5 |
| 13847 | $as_echo "$ac_cv_have_long_long_format" >&6; } |
Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 13848 | fi |
| 13849 | |
Mark Dickinson | 89d7d41 | 2009-12-31 20:50:59 +0000 | [diff] [blame] | 13850 | if test "$ac_cv_have_long_long_format" = yes |
Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 13851 | then |
| 13852 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13853 | $as_echo "#define PY_FORMAT_LONG_LONG \"ll\"" >>confdefs.h |
Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 13854 | |
| 13855 | fi |
| 13856 | |
Ronald Oussoren | 3c1928a | 2009-11-19 17:15:31 +0000 | [diff] [blame] | 13857 | if test $ac_sys_system = Darwin |
| 13858 | then |
| 13859 | LIBS="$LIBS -framework CoreFoundation" |
| 13860 | fi |
Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 13861 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13862 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for %zd printf() format support" >&5 |
| 13863 | $as_echo_n "checking for %zd printf() format support... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 13864 | if ${ac_cv_have_size_t_format+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13865 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13866 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13867 | if test "$cross_compiling" = yes; then : |
Benjamin Peterson | 8f326b2 | 2009-12-13 02:10:36 +0000 | [diff] [blame] | 13868 | ac_cv_have_size_t_format="cross -- assuming yes" |
| 13869 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13870 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13871 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13872 | /* end confdefs.h. */ |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13873 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13874 | #include <stdio.h> |
| 13875 | #include <stddef.h> |
| 13876 | #include <string.h> |
| 13877 | |
Christian Heimes | 2c18161 | 2007-12-17 20:04:13 +0000 | [diff] [blame] | 13878 | #ifdef HAVE_SYS_TYPES_H |
| 13879 | #include <sys/types.h> |
| 13880 | #endif |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 13881 | |
| 13882 | #ifdef HAVE_SSIZE_T |
| 13883 | typedef ssize_t Py_ssize_t; |
| 13884 | #elif SIZEOF_VOID_P == SIZEOF_LONG |
| 13885 | typedef long Py_ssize_t; |
| 13886 | #else |
| 13887 | typedef int Py_ssize_t; |
| 13888 | #endif |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13889 | |
Christian Heimes | 2c18161 | 2007-12-17 20:04:13 +0000 | [diff] [blame] | 13890 | int main() |
| 13891 | { |
| 13892 | char buffer[256]; |
| 13893 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13894 | if(sprintf(buffer, "%zd", (size_t)123) < 0) |
| 13895 | return 1; |
| 13896 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 13897 | if (strcmp(buffer, "123")) |
| 13898 | return 1; |
| 13899 | |
| 13900 | if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0) |
| 13901 | return 1; |
| 13902 | |
| 13903 | if (strcmp(buffer, "-123")) |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13904 | return 1; |
| 13905 | |
| 13906 | return 0; |
| 13907 | } |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13908 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13909 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13910 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13911 | ac_cv_have_size_t_format=yes |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 13912 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13913 | ac_cv_have_size_t_format=no |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 13914 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13915 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 13916 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 13917 | fi |
| 13918 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13919 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_size_t_format" >&5 |
| 13921 | $as_echo "$ac_cv_have_size_t_format" >&6; } |
Benjamin Peterson | 8f326b2 | 2009-12-13 02:10:36 +0000 | [diff] [blame] | 13922 | if test "$ac_cv_have_size_t_format" != no ; then |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13923 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13924 | $as_echo "#define PY_FORMAT_SIZE_T \"z\"" >>confdefs.h |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13925 | |
| 13926 | fi |
| 13927 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13928 | 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] | 13929 | #ifdef HAVE_SYS_TYPES_H |
| 13930 | #include <sys/types.h> |
| 13931 | #endif |
| 13932 | #ifdef HAVE_SYS_SOCKET_H |
| 13933 | #include <sys/socket.h> |
| 13934 | #endif |
| 13935 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13936 | " |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 13937 | if test "x$ac_cv_type_socklen_t" = xyes; then : |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 13938 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13939 | else |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 13940 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13941 | $as_echo "#define socklen_t int" >>confdefs.h |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 13942 | |
| 13943 | fi |
| 13944 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13945 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13946 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken mbstowcs" >&5 |
| 13947 | $as_echo_n "checking for broken mbstowcs... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 13948 | if ${ac_cv_broken_mbstowcs+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13949 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13950 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13951 | if test "$cross_compiling" = yes; then : |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 13952 | ac_cv_broken_mbstowcs=no |
| 13953 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13954 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 13955 | /* end confdefs.h. */ |
| 13956 | |
| 13957 | #include<stdlib.h> |
| 13958 | int main() { |
| 13959 | size_t len = -1; |
| 13960 | const char *str = "text"; |
| 13961 | len = mbstowcs(NULL, str, 0); |
| 13962 | return (len != 4); |
| 13963 | } |
| 13964 | |
| 13965 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13966 | if ac_fn_c_try_run "$LINENO"; then : |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 13967 | ac_cv_broken_mbstowcs=no |
| 13968 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13969 | ac_cv_broken_mbstowcs=yes |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 13970 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13971 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 13972 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 13973 | fi |
| 13974 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13975 | fi |
| 13976 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_mbstowcs" >&5 |
| 13978 | $as_echo "$ac_cv_broken_mbstowcs" >&6; } |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 13979 | if test "$ac_cv_broken_mbstowcs" = yes |
| 13980 | then |
| 13981 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13982 | $as_echo "#define HAVE_BROKEN_MBSTOWCS 1" >>confdefs.h |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 13983 | |
| 13984 | fi |
| 13985 | |
Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 13986 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports computed gotos" >&5 |
| 13987 | $as_echo_n "checking whether $CC supports computed gotos... " >&6; } |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 13988 | if ${ac_cv_computed_gotos+:} false; then : |
Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 13989 | $as_echo_n "(cached) " >&6 |
| 13990 | else |
| 13991 | if test "$cross_compiling" = yes; then : |
| 13992 | ac_cv_computed_gotos=no |
| 13993 | else |
| 13994 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13995 | /* end confdefs.h. */ |
| 13996 | |
| 13997 | int main(int argc, char **argv) |
| 13998 | { |
| 13999 | static void *targets[1] = { &&LABEL1 }; |
| 14000 | goto LABEL2; |
| 14001 | LABEL1: |
| 14002 | return 0; |
| 14003 | LABEL2: |
| 14004 | goto *targets[0]; |
| 14005 | return 1; |
| 14006 | } |
| 14007 | |
| 14008 | _ACEOF |
| 14009 | if ac_fn_c_try_run "$LINENO"; then : |
| 14010 | ac_cv_computed_gotos=yes |
| 14011 | else |
| 14012 | ac_cv_computed_gotos=no |
| 14013 | fi |
| 14014 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 14015 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 14016 | fi |
| 14017 | |
| 14018 | fi |
| 14019 | |
| 14020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_computed_gotos" >&5 |
| 14021 | $as_echo "$ac_cv_computed_gotos" >&6; } |
| 14022 | if test "$ac_cv_computed_gotos" = yes |
| 14023 | then |
| 14024 | |
| 14025 | $as_echo "#define HAVE_COMPUTED_GOTOS 1" >>confdefs.h |
| 14026 | |
| 14027 | fi |
| 14028 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14029 | # Check for --with-computed-gotos |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14030 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-computed-gotos" >&5 |
| 14031 | $as_echo_n "checking for --with-computed-gotos... " >&6; } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14032 | |
| 14033 | # Check whether --with-computed-gotos was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14034 | if test "${with_computed_gotos+set}" = set; then : |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14035 | withval=$with_computed_gotos; |
Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 14036 | if test "$withval" = yes |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14037 | then |
| 14038 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14039 | $as_echo "#define USE_COMPUTED_GOTOS 1" >>confdefs.h |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14040 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 14042 | $as_echo "yes" >&6; } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14043 | fi |
Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 14044 | if test "$withval" = no |
| 14045 | then |
| 14046 | |
| 14047 | $as_echo "#define USE_COMPUTED_GOTOS 0" >>confdefs.h |
| 14048 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14049 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14050 | $as_echo "no" >&6; } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14051 | fi |
| 14052 | |
Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 14053 | else |
| 14054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5 |
| 14055 | $as_echo "no value specified" >&6; } |
| 14056 | fi |
| 14057 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14058 | |
Benjamin Peterson | d8d835b | 2010-10-15 23:14:46 +0000 | [diff] [blame] | 14059 | case $ac_sys_system in |
| 14060 | AIX*) |
| 14061 | |
| 14062 | $as_echo "#define HAVE_BROKEN_PIPE_BUF 1" >>confdefs.h |
| 14063 | ;; |
| 14064 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 14065 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14066 | |
Jesus Cea | 6a79229 | 2010-05-03 21:18:48 +0000 | [diff] [blame] | 14067 | case $ac_sys_system in |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 14068 | OSF*) as_fn_error $? "OSF* systems are deprecated unless somebody volunteers. Check http://bugs.python.org/issue8606" "$LINENO" 5 ;; |
Jesus Cea | 6a79229 | 2010-05-03 21:18:48 +0000 | [diff] [blame] | 14069 | esac |
| 14070 | |
Gregory P. Smith | 138fa43 | 2010-12-13 08:00:52 +0000 | [diff] [blame] | 14071 | ac_fn_c_check_func "$LINENO" "pipe2" "ac_cv_func_pipe2" |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 14072 | if test "x$ac_cv_func_pipe2" = xyes; then : |
Gregory P. Smith | 138fa43 | 2010-12-13 08:00:52 +0000 | [diff] [blame] | 14073 | |
| 14074 | $as_echo "#define HAVE_PIPE2 1" >>confdefs.h |
| 14075 | |
| 14076 | fi |
Jesus Cea | 6a79229 | 2010-05-03 21:18:48 +0000 | [diff] [blame] | 14077 | |
| 14078 | |
Mark Dickinson | b2153e9 | 2010-05-05 22:31:36 +0000 | [diff] [blame] | 14079 | |
| 14080 | |
Martin v. Löwis | 06f15bb | 2001-12-02 13:02:32 +0000 | [diff] [blame] | 14081 | for h in `(cd $srcdir;echo Python/thread_*.h)` |
| 14082 | do |
| 14083 | THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" |
| 14084 | done |
| 14085 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14086 | |
Neal Norwitz | d24499d | 2005-12-18 21:36:39 +0000 | [diff] [blame] | 14087 | SRCDIRS="Parser Grammar Objects Python Modules Mac" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14088 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build directories" >&5 |
| 14089 | $as_echo_n "checking for build directories... " >&6; } |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 14090 | for dir in $SRCDIRS; do |
| 14091 | if test ! -d $dir; then |
| 14092 | mkdir $dir |
Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 14093 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 14094 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 |
| 14096 | $as_echo "done" >&6; } |
Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 14097 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14098 | # generate output files |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14099 | ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config Misc/python.pc" |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 14100 | |
Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 14101 | ac_config_files="$ac_config_files Modules/ld_so_aix" |
| 14102 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14103 | cat >confcache <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14104 | # This file is a shell script that caches the results of configure |
| 14105 | # 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] | 14106 | # scripts and configure runs, see configure's option --config-cache. |
| 14107 | # It is not useful on other systems. If it contains results you don't |
| 14108 | # want to keep, you may remove or edit it. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14109 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14110 | # config.status only pays attention to the cache file if you give it |
| 14111 | # the --recheck option to rerun configure. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14112 | # |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14113 | # `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] | 14114 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 14115 | # following values. |
| 14116 | |
| 14117 | _ACEOF |
| 14118 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 14119 | # The following way of writing the cache mishandles newlines in values, |
| 14120 | # but we know of no workaround that is simple, portable, and efficient. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14121 | # So, we kill variables containing newlines. |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14122 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 14123 | # 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] | 14124 | ( |
| 14125 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 14126 | eval ac_val=\$$ac_var |
| 14127 | case $ac_val in #( |
| 14128 | *${as_nl}*) |
| 14129 | case $ac_var in #( |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14130 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 14131 | $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] | 14132 | esac |
| 14133 | case $ac_var in #( |
| 14134 | _ | IFS | as_nl) ;; #( |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14135 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 14136 | *) { eval $ac_var=; unset $ac_var;} ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14137 | esac ;; |
| 14138 | esac |
| 14139 | done |
| 14140 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14141 | (set) 2>&1 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14142 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 14143 | *${as_nl}ac_space=\ *) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14144 | # `set' does not quote correctly, so add quotes: double-quote |
| 14145 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14146 | sed -n \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14147 | "s/'/'\\\\''/g; |
| 14148 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14149 | ;; #( |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14150 | *) |
| 14151 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14152 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14153 | ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14154 | esac | |
| 14155 | sort |
| 14156 | ) | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14157 | sed ' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14158 | /^ac_cv_env_/b end |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14159 | t clear |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14160 | :clear |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14161 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 14162 | t end |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14163 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 14164 | :end' >>confcache |
| 14165 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 14166 | if test -w "$cache_file"; then |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 14167 | if test "x$cache_file" != "x/dev/null"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14168 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
| 14169 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 14170 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
| 14171 | cat confcache >"$cache_file" |
| 14172 | else |
| 14173 | case $cache_file in #( |
| 14174 | */* | ?:*) |
| 14175 | mv -f confcache "$cache_file"$$ && |
| 14176 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
| 14177 | *) |
| 14178 | mv -f confcache "$cache_file" ;; |
| 14179 | esac |
| 14180 | fi |
| 14181 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14182 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14183 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
| 14184 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14185 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14186 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14187 | rm -f confcache |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14188 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14189 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 14190 | # Let make expand exec_prefix. |
| 14191 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14192 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14193 | DEFS=-DHAVE_CONFIG_H |
| 14194 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14195 | ac_libobjs= |
| 14196 | ac_ltlibobjs= |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 14197 | U= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14198 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 14199 | # 1. Remove the extension, and $U if already installed. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14200 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14201 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14202 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 14203 | # will be set to the directory where LIBOBJS objects are built. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14204 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 14205 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14206 | done |
| 14207 | LIBOBJS=$ac_libobjs |
| 14208 | |
| 14209 | LTLIBOBJS=$ac_ltlibobjs |
| 14210 | |
| 14211 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14212 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14213 | |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 14214 | : "${CONFIG_STATUS=./config.status}" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14215 | ac_write_fail=0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14216 | ac_clean_files_save=$ac_clean_files |
| 14217 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14218 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
| 14219 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 14220 | as_write_fail=0 |
| 14221 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14222 | #! $SHELL |
| 14223 | # Generated by $as_me. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14224 | # Run this file to recreate the current configuration. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14225 | # Compiler output produced by configure, useful for debugging |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14226 | # configure, is in config.log if it exists. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14227 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14228 | debug=false |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14229 | ac_cs_recheck=false |
| 14230 | ac_cs_silent=false |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 14231 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14232 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 14233 | export SHELL |
| 14234 | _ASEOF |
| 14235 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 14236 | ## -------------------- ## |
| 14237 | ## M4sh Initialization. ## |
| 14238 | ## -------------------- ## |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 14239 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14240 | # Be more Bourne compatible |
| 14241 | DUALCASE=1; export DUALCASE # for MKS sh |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14242 | 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] | 14243 | emulate sh |
| 14244 | NULLCMD=: |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14245 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14246 | # is contrary to our usage. Disable this feature. |
| 14247 | alias -g '${1+"$@"}'='"$@"' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14248 | setopt NO_GLOB_SUBST |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 14249 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14250 | case `(set -o) 2>/dev/null` in #( |
| 14251 | *posix*) : |
| 14252 | set -o posix ;; #( |
| 14253 | *) : |
| 14254 | ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14255 | esac |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14256 | fi |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 14257 | |
| 14258 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14259 | as_nl=' |
| 14260 | ' |
| 14261 | export as_nl |
| 14262 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 14263 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 14264 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 14265 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 14266 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 14267 | # but without wasting forks for bash or zsh. |
| 14268 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 14269 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 14270 | as_echo='print -r --' |
| 14271 | as_echo_n='print -rn --' |
| 14272 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 14273 | as_echo='printf %s\n' |
| 14274 | as_echo_n='printf %s' |
| 14275 | else |
| 14276 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 14277 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 14278 | as_echo_n='/usr/ucb/echo -n' |
| 14279 | else |
| 14280 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 14281 | as_echo_n_body='eval |
| 14282 | arg=$1; |
| 14283 | case $arg in #( |
| 14284 | *"$as_nl"*) |
| 14285 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 14286 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 14287 | esac; |
| 14288 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 14289 | ' |
| 14290 | export as_echo_n_body |
| 14291 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 14292 | fi |
| 14293 | export as_echo_body |
| 14294 | as_echo='sh -c $as_echo_body as_echo' |
| 14295 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14296 | |
| 14297 | # The user is always right. |
| 14298 | if test "${PATH_SEPARATOR+set}" != set; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14299 | PATH_SEPARATOR=: |
| 14300 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 14301 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 14302 | PATH_SEPARATOR=';' |
| 14303 | } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14304 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14305 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14306 | |
| 14307 | # IFS |
| 14308 | # We need space, tab and new line, in precisely that order. Quoting is |
| 14309 | # there to prevent editors from complaining about space-tab. |
| 14310 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 14311 | # splitting by setting IFS to empty value.) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14312 | IFS=" "" $as_nl" |
| 14313 | |
| 14314 | # Find who we are. Look in the path if we contain no directory separator. |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 14315 | as_myself= |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14316 | case $0 in #(( |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14317 | *[\\/]* ) as_myself=$0 ;; |
| 14318 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14319 | for as_dir in $PATH |
| 14320 | do |
| 14321 | IFS=$as_save_IFS |
| 14322 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14323 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 14324 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14325 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14326 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14327 | ;; |
| 14328 | esac |
| 14329 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 14330 | # in which case we are not to be found in the path. |
| 14331 | if test "x$as_myself" = x; then |
| 14332 | as_myself=$0 |
| 14333 | fi |
| 14334 | if test ! -f "$as_myself"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14335 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 14336 | exit 1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14337 | fi |
| 14338 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14339 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 14340 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 14341 | # suppresses any "Segmentation fault" message there. '((' could |
| 14342 | # trigger a bug in pdksh 5.2.14. |
| 14343 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 14344 | do eval test x\${$as_var+set} = xset \ |
| 14345 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14346 | done |
| 14347 | PS1='$ ' |
| 14348 | PS2='> ' |
| 14349 | PS4='+ ' |
| 14350 | |
| 14351 | # NLS nuisances. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14352 | LC_ALL=C |
| 14353 | export LC_ALL |
| 14354 | LANGUAGE=C |
| 14355 | export LANGUAGE |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14356 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14357 | # CDPATH. |
| 14358 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 14359 | |
| 14360 | |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 14361 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 14362 | # ---------------------------------------- |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14363 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 14364 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 14365 | # script with STATUS, using 1 if that was 0. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14366 | as_fn_error () |
| 14367 | { |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 14368 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 14369 | if test "$4"; then |
| 14370 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 14371 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14372 | fi |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 14373 | $as_echo "$as_me: error: $2" >&2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14374 | as_fn_exit $as_status |
| 14375 | } # as_fn_error |
| 14376 | |
| 14377 | |
| 14378 | # as_fn_set_status STATUS |
| 14379 | # ----------------------- |
| 14380 | # Set $? to STATUS, without forking. |
| 14381 | as_fn_set_status () |
| 14382 | { |
| 14383 | return $1 |
| 14384 | } # as_fn_set_status |
| 14385 | |
| 14386 | # as_fn_exit STATUS |
| 14387 | # ----------------- |
| 14388 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 14389 | as_fn_exit () |
| 14390 | { |
| 14391 | set +e |
| 14392 | as_fn_set_status $1 |
| 14393 | exit $1 |
| 14394 | } # as_fn_exit |
| 14395 | |
| 14396 | # as_fn_unset VAR |
| 14397 | # --------------- |
| 14398 | # Portably unset VAR. |
| 14399 | as_fn_unset () |
| 14400 | { |
| 14401 | { eval $1=; unset $1;} |
| 14402 | } |
| 14403 | as_unset=as_fn_unset |
| 14404 | # as_fn_append VAR VALUE |
| 14405 | # ---------------------- |
| 14406 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 14407 | # advantage of any shell optimizations that allow amortized linear growth over |
| 14408 | # repeated appends, instead of the typical quadratic growth present in naive |
| 14409 | # implementations. |
| 14410 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 14411 | eval 'as_fn_append () |
| 14412 | { |
| 14413 | eval $1+=\$2 |
| 14414 | }' |
| 14415 | else |
| 14416 | as_fn_append () |
| 14417 | { |
| 14418 | eval $1=\$$1\$2 |
| 14419 | } |
| 14420 | fi # as_fn_append |
| 14421 | |
| 14422 | # as_fn_arith ARG... |
| 14423 | # ------------------ |
| 14424 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 14425 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 14426 | # must be portable across $(()) and expr. |
| 14427 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 14428 | eval 'as_fn_arith () |
| 14429 | { |
| 14430 | as_val=$(( $* )) |
| 14431 | }' |
| 14432 | else |
| 14433 | as_fn_arith () |
| 14434 | { |
| 14435 | as_val=`expr "$@" || test $? -eq 1` |
| 14436 | } |
| 14437 | fi # as_fn_arith |
| 14438 | |
| 14439 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14440 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 14441 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 14442 | as_expr=expr |
| 14443 | else |
| 14444 | as_expr=false |
| 14445 | fi |
| 14446 | |
| 14447 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 14448 | as_basename=basename |
| 14449 | else |
| 14450 | as_basename=false |
| 14451 | fi |
| 14452 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14453 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 14454 | as_dirname=dirname |
| 14455 | else |
| 14456 | as_dirname=false |
| 14457 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14458 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14459 | as_me=`$as_basename -- "$0" || |
| 14460 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 14461 | X"$0" : 'X\(//\)$' \| \ |
| 14462 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14463 | $as_echo X/"$0" | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14464 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 14465 | s//\1/ |
| 14466 | q |
| 14467 | } |
| 14468 | /^X\/\(\/\/\)$/{ |
| 14469 | s//\1/ |
| 14470 | q |
| 14471 | } |
| 14472 | /^X\/\(\/\).*/{ |
| 14473 | s//\1/ |
| 14474 | q |
| 14475 | } |
| 14476 | s/.*/./; q'` |
| 14477 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14478 | # Avoid depending upon Character Ranges. |
| 14479 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 14480 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 14481 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 14482 | as_cr_digits='0123456789' |
| 14483 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14484 | |
| 14485 | ECHO_C= ECHO_N= ECHO_T= |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14486 | case `echo -n x` in #((((( |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14487 | -n*) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14488 | case `echo 'xy\c'` in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14489 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14490 | xy) ECHO_C='\c';; |
| 14491 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 14492 | ECHO_T=' ';; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14493 | esac;; |
| 14494 | *) |
| 14495 | ECHO_N='-n';; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14496 | esac |
Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 14497 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14498 | rm -f conf$$ conf$$.exe conf$$.file |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14499 | if test -d conf$$.dir; then |
| 14500 | rm -f conf$$.dir/conf$$.file |
| 14501 | else |
| 14502 | rm -f conf$$.dir |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14503 | mkdir conf$$.dir 2>/dev/null |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14504 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14505 | if (echo >conf$$.file) 2>/dev/null; then |
| 14506 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 14507 | as_ln_s='ln -s' |
| 14508 | # ... but there are two gotchas: |
| 14509 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 14510 | # 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] | 14511 | # In both cases, we have to default to `cp -pR'. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14512 | 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] | 14513 | as_ln_s='cp -pR' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14514 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 14515 | as_ln_s=ln |
| 14516 | else |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 14517 | as_ln_s='cp -pR' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14518 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14519 | else |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 14520 | as_ln_s='cp -pR' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14521 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14522 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 14523 | rmdir conf$$.dir 2>/dev/null |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14524 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14525 | |
| 14526 | # as_fn_mkdir_p |
| 14527 | # ------------- |
| 14528 | # Create "$as_dir" as a directory, including parents if necessary. |
| 14529 | as_fn_mkdir_p () |
| 14530 | { |
| 14531 | |
| 14532 | case $as_dir in #( |
| 14533 | -*) as_dir=./$as_dir;; |
| 14534 | esac |
| 14535 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 14536 | as_dirs= |
| 14537 | while :; do |
| 14538 | case $as_dir in #( |
| 14539 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 14540 | *) as_qdir=$as_dir;; |
| 14541 | esac |
| 14542 | as_dirs="'$as_qdir' $as_dirs" |
| 14543 | as_dir=`$as_dirname -- "$as_dir" || |
| 14544 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 14545 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 14546 | X"$as_dir" : 'X\(//\)$' \| \ |
| 14547 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 14548 | $as_echo X"$as_dir" | |
| 14549 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 14550 | s//\1/ |
| 14551 | q |
| 14552 | } |
| 14553 | /^X\(\/\/\)[^/].*/{ |
| 14554 | s//\1/ |
| 14555 | q |
| 14556 | } |
| 14557 | /^X\(\/\/\)$/{ |
| 14558 | s//\1/ |
| 14559 | q |
| 14560 | } |
| 14561 | /^X\(\/\).*/{ |
| 14562 | s//\1/ |
| 14563 | q |
| 14564 | } |
| 14565 | s/.*/./; q'` |
| 14566 | test -d "$as_dir" && break |
| 14567 | done |
| 14568 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 14569 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14570 | |
| 14571 | |
| 14572 | } # as_fn_mkdir_p |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14573 | if mkdir -p . 2>/dev/null; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14574 | as_mkdir_p='mkdir -p "$as_dir"' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14575 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14576 | test -d ./-p && rmdir ./-p |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14577 | as_mkdir_p=false |
| 14578 | fi |
| 14579 | |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 14580 | |
| 14581 | # as_fn_executable_p FILE |
| 14582 | # ----------------------- |
| 14583 | # Test if FILE is an executable regular file. |
| 14584 | as_fn_executable_p () |
| 14585 | { |
| 14586 | test -f "$1" && test -x "$1" |
| 14587 | } # as_fn_executable_p |
| 14588 | as_test_x='test -x' |
| 14589 | as_executable_p=as_fn_executable_p |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14590 | |
| 14591 | # Sed expression to map a string onto a valid CPP name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14592 | 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] | 14593 | |
| 14594 | # Sed expression to map a string onto a valid variable name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14595 | 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] | 14596 | |
| 14597 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14598 | exec 6>&1 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14599 | ## ----------------------------------- ## |
| 14600 | ## Main body of $CONFIG_STATUS script. ## |
| 14601 | ## ----------------------------------- ## |
| 14602 | _ASEOF |
| 14603 | 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] | 14604 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14605 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 14606 | # 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] | 14607 | # report actual input values of CONFIG_FILES etc. instead of their |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14608 | # values after options handling. |
| 14609 | ac_log=" |
Benjamin Peterson | 46ea4f7 | 2009-06-27 21:40:27 +0000 | [diff] [blame] | 14610 | This file was extended by python $as_me 3.2, which was |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 14611 | generated by GNU Autoconf 2.69. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14612 | |
| 14613 | CONFIG_FILES = $CONFIG_FILES |
| 14614 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 14615 | CONFIG_LINKS = $CONFIG_LINKS |
| 14616 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 14617 | $ $0 $@ |
| 14618 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14619 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 14620 | " |
| 14621 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14622 | _ACEOF |
| 14623 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14624 | case $ac_config_files in *" |
| 14625 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 14626 | esac |
| 14627 | |
| 14628 | case $ac_config_headers in *" |
| 14629 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 14630 | esac |
| 14631 | |
| 14632 | |
| 14633 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14634 | # Files that config.status was made for. |
Charles-François Natali | 6613c18 | 2011-11-27 12:41:06 +0100 | [diff] [blame] | 14635 | config_files="$ac_config_files" |
| 14636 | config_headers="$ac_config_headers" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14637 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14638 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14639 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14640 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14641 | ac_cs_usage="\ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14642 | \`$as_me' instantiates files and other configuration actions |
| 14643 | from templates according to the current configuration. Unless the files |
| 14644 | 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] | 14645 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14646 | Usage: $0 [OPTION]... [TAG]... |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14647 | |
| 14648 | -h, --help print this help, then exit |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14649 | -V, --version print version number and configuration settings, then exit |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14650 | --config print configuration, then exit |
| 14651 | -q, --quiet, --silent |
| 14652 | do not print progress messages |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14653 | -d, --debug don't remove temporary files |
| 14654 | --recheck update $as_me by reconfiguring in the same conditions |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14655 | --file=FILE[:TEMPLATE] |
| 14656 | instantiate the configuration file FILE |
| 14657 | --header=FILE[:TEMPLATE] |
| 14658 | instantiate the configuration header FILE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14659 | |
| 14660 | Configuration files: |
| 14661 | $config_files |
| 14662 | |
| 14663 | Configuration headers: |
| 14664 | $config_headers |
| 14665 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14666 | Report bugs to <http://bugs.python.org/>." |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 14667 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14668 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14669 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 14670 | 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] | 14671 | ac_cs_version="\\ |
Benjamin Peterson | 46ea4f7 | 2009-06-27 21:40:27 +0000 | [diff] [blame] | 14672 | python config.status 3.2 |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 14673 | configured by $0, generated by GNU Autoconf 2.69, |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14674 | with options \\"\$ac_cs_config\\" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14675 | |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 14676 | Copyright (C) 2012 Free Software Foundation, Inc. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14677 | This config.status script is free software; the Free Software Foundation |
| 14678 | gives unlimited permission to copy, distribute and modify it." |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14679 | |
| 14680 | ac_pwd='$ac_pwd' |
| 14681 | srcdir='$srcdir' |
| 14682 | INSTALL='$INSTALL' |
Trent Nelson | a45afca | 2012-08-30 14:32:02 +0000 | [diff] [blame] | 14683 | MKDIR_P='$MKDIR_P' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14684 | test -n "\$AWK" || AWK=awk |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14685 | _ACEOF |
| 14686 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14687 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 14688 | # 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] | 14689 | ac_need_defaults=: |
| 14690 | while test $# != 0 |
| 14691 | do |
| 14692 | case $1 in |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 14693 | --*=?*) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14694 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 14695 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14696 | ac_shift=: |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14697 | ;; |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 14698 | --*=) |
| 14699 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 14700 | ac_optarg= |
| 14701 | ac_shift=: |
| 14702 | ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14703 | *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14704 | ac_option=$1 |
| 14705 | ac_optarg=$2 |
| 14706 | ac_shift=shift |
| 14707 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14708 | esac |
| 14709 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14710 | case $ac_option in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14711 | # Handling of the options. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14712 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 14713 | ac_cs_recheck=: ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14714 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14715 | $as_echo "$ac_cs_version"; exit ;; |
| 14716 | --config | --confi | --conf | --con | --co | --c ) |
| 14717 | $as_echo "$ac_cs_config"; exit ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14718 | --debug | --debu | --deb | --de | --d | -d ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14719 | debug=: ;; |
| 14720 | --file | --fil | --fi | --f ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14721 | $ac_shift |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14722 | case $ac_optarg in |
| 14723 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 14724 | '') as_fn_error $? "missing file argument" ;; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14725 | esac |
| 14726 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14727 | ac_need_defaults=false;; |
| 14728 | --header | --heade | --head | --hea ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14729 | $ac_shift |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14730 | case $ac_optarg in |
| 14731 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 14732 | esac |
| 14733 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14734 | ac_need_defaults=false;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14735 | --he | --h) |
| 14736 | # Conflict between --help and --header |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 14737 | as_fn_error $? "ambiguous option: \`$1' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14738 | Try \`$0 --help' for more information.";; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14739 | --help | --hel | -h ) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14740 | $as_echo "$ac_cs_usage"; exit ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14741 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 14742 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 14743 | ac_cs_silent=: ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14744 | |
| 14745 | # This is an error. |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 14746 | -*) as_fn_error $? "unrecognized option: \`$1' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14747 | Try \`$0 --help' for more information." ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14748 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14749 | *) as_fn_append ac_config_targets " $1" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14750 | ac_need_defaults=false ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14751 | |
| 14752 | esac |
| 14753 | shift |
| 14754 | done |
| 14755 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14756 | ac_configure_extra_args= |
| 14757 | |
| 14758 | if $ac_cs_silent; then |
| 14759 | exec 6>/dev/null |
| 14760 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 14761 | fi |
| 14762 | |
| 14763 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14764 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14765 | if \$ac_cs_recheck; then |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 14766 | 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] | 14767 | shift |
| 14768 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 14769 | CONFIG_SHELL='$SHELL' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14770 | export CONFIG_SHELL |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14771 | exec "\$@" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14772 | fi |
| 14773 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14774 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14775 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14776 | exec 5>>config.log |
| 14777 | { |
| 14778 | echo |
| 14779 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 14780 | ## Running $as_me. ## |
| 14781 | _ASBOX |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14782 | $as_echo "$ac_log" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14783 | } >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14784 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14785 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14786 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14787 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14788 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14789 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14790 | |
| 14791 | # Handling of arguments. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14792 | for ac_config_target in $ac_config_targets |
| 14793 | do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14794 | case $ac_config_target in |
| 14795 | "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; |
| 14796 | "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;; |
| 14797 | "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;; |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14798 | "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;; |
| 14799 | "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] | 14800 | "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; |
| 14801 | "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;; |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14802 | "Misc/python.pc") CONFIG_FILES="$CONFIG_FILES Misc/python.pc" ;; |
Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 14803 | "Modules/ld_so_aix") CONFIG_FILES="$CONFIG_FILES Modules/ld_so_aix" ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14804 | |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 14805 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14806 | esac |
| 14807 | done |
| 14808 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14809 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14810 | # If the user did not use the arguments to specify the items to instantiate, |
| 14811 | # then the envvar interface is used. Set only those that are not. |
| 14812 | # We use the long form for the default assignment because of an extremely |
| 14813 | # bizarre bug on SunOS 4.1.3. |
| 14814 | if $ac_need_defaults; then |
| 14815 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 14816 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 14817 | fi |
| 14818 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14819 | # Have a temporary directory for convenience. Make it in the build tree |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14820 | # 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] | 14821 | # creating and moving files from /tmp can sometimes cause problems. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14822 | # Hook for its removal unless debugging. |
| 14823 | # Note that there is a small window in which the directory will not be cleaned: |
| 14824 | # 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] | 14825 | $debug || |
| 14826 | { |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 14827 | tmp= ac_tmp= |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14828 | trap 'exit_status=$? |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 14829 | : "${ac_tmp:=$tmp}" |
| 14830 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14831 | ' 0 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14832 | trap 'as_fn_exit 1' 1 2 13 15 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14833 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14834 | # Create a (secure) tmp directory for tmp files. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14835 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14836 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14837 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 14838 | test -d "$tmp" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14839 | } || |
| 14840 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14841 | tmp=./conf$$-$RANDOM |
| 14842 | (umask 077 && mkdir "$tmp") |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 14843 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 14844 | ac_tmp=$tmp |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14845 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14846 | # Set up the scripts for CONFIG_FILES section. |
| 14847 | # No need to generate them if there are no CONFIG_FILES. |
| 14848 | # This happens for instance with `./config.status config.h'. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14849 | if test -n "$CONFIG_FILES"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14850 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14851 | |
| 14852 | ac_cr=`echo X | tr X '\015'` |
| 14853 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 14854 | # But we know of no other shell where ac_cr would be empty at this |
| 14855 | # point, so we can use a bashism as a fallback. |
| 14856 | if test "x$ac_cr" = x; then |
| 14857 | eval ac_cr=\$\'\\r\' |
| 14858 | fi |
| 14859 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 14860 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 14861 | ac_cs_awk_cr='\\r' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14862 | else |
| 14863 | ac_cs_awk_cr=$ac_cr |
| 14864 | fi |
| 14865 | |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 14866 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14867 | _ACEOF |
| 14868 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14869 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14870 | { |
| 14871 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 14872 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 14873 | echo "_ACEOF" |
| 14874 | } >conf$$subs.sh || |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 14875 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 14876 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14877 | ac_delim='%!_!# ' |
| 14878 | for ac_last_try in false false false false false :; do |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14879 | . ./conf$$subs.sh || |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 14880 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14881 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14882 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 14883 | if test $ac_delim_n = $ac_delim_num; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14884 | break |
| 14885 | elif $ac_last_try; then |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 14886 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14887 | else |
| 14888 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14889 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14890 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14891 | rm -f conf$$subs.sh |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14892 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14893 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 14894 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14895 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14896 | sed -n ' |
| 14897 | h |
| 14898 | s/^/S["/; s/!.*/"]=/ |
| 14899 | p |
| 14900 | g |
| 14901 | s/^[^!]*!// |
| 14902 | :repl |
| 14903 | t repl |
| 14904 | s/'"$ac_delim"'$// |
| 14905 | t delim |
| 14906 | :nl |
| 14907 | h |
| 14908 | s/\(.\{148\}\)..*/\1/ |
| 14909 | t more1 |
| 14910 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 14911 | p |
| 14912 | n |
| 14913 | b repl |
| 14914 | :more1 |
| 14915 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 14916 | p |
| 14917 | g |
| 14918 | s/.\{148\}// |
| 14919 | t nl |
| 14920 | :delim |
| 14921 | h |
| 14922 | s/\(.\{148\}\)..*/\1/ |
| 14923 | t more2 |
| 14924 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 14925 | p |
| 14926 | b |
| 14927 | :more2 |
| 14928 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 14929 | p |
| 14930 | g |
| 14931 | s/.\{148\}// |
| 14932 | t delim |
| 14933 | ' <conf$$subs.awk | sed ' |
| 14934 | /^[^""]/{ |
| 14935 | N |
| 14936 | s/\n// |
| 14937 | } |
| 14938 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 14939 | rm -f conf$$subs.awk |
| 14940 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 14941 | _ACAWK |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 14942 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14943 | for (key in S) S_is_set[key] = 1 |
| 14944 | FS = "" |
| 14945 | |
| 14946 | } |
| 14947 | { |
| 14948 | line = $ 0 |
| 14949 | nfields = split(line, field, "@") |
| 14950 | substed = 0 |
| 14951 | len = length(field[1]) |
| 14952 | for (i = 2; i < nfields; i++) { |
| 14953 | key = field[i] |
| 14954 | keylen = length(key) |
| 14955 | if (S_is_set[key]) { |
| 14956 | value = S[key] |
| 14957 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 14958 | len += length(value) + length(field[++i]) |
| 14959 | substed = 1 |
| 14960 | } else |
| 14961 | len += 1 + keylen |
| 14962 | } |
| 14963 | |
| 14964 | print line |
| 14965 | } |
| 14966 | |
| 14967 | _ACAWK |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14968 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14969 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 14970 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 14971 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 14972 | else |
| 14973 | cat |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 14974 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 14975 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 14976 | _ACEOF |
| 14977 | |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 14978 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
| 14979 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14980 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 14981 | # (actually we leave an empty line to preserve line numbers). |
| 14982 | if test "x$srcdir" = x.; then |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 14983 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
| 14984 | h |
| 14985 | s/// |
| 14986 | s/^/:/ |
| 14987 | s/[ ]*$/:/ |
| 14988 | s/:\$(srcdir):/:/g |
| 14989 | s/:\${srcdir}:/:/g |
| 14990 | s/:@srcdir@:/:/g |
| 14991 | s/^:*// |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14992 | s/:*$// |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 14993 | x |
| 14994 | s/\(=[ ]*\).*/\1/ |
| 14995 | G |
| 14996 | s/\n// |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14997 | s/^[^=]*=[ ]*$// |
| 14998 | }' |
| 14999 | fi |
| 15000 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15001 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15002 | fi # test -n "$CONFIG_FILES" |
| 15003 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15004 | # Set up the scripts for CONFIG_HEADERS section. |
| 15005 | # No need to generate them if there are no CONFIG_HEADERS. |
| 15006 | # This happens for instance with `./config.status Makefile'. |
| 15007 | if test -n "$CONFIG_HEADERS"; then |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 15008 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15009 | BEGIN { |
| 15010 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15011 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15012 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 15013 | # here-document in config.status, that substitutes the proper values into |
| 15014 | # config.h.in to produce config.h. |
| 15015 | |
| 15016 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 15017 | # handling of long lines. |
| 15018 | ac_delim='%!_!# ' |
| 15019 | for ac_last_try in false false :; do |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 15020 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
| 15021 | if test -z "$ac_tt"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15022 | break |
| 15023 | elif $ac_last_try; then |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 15024 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15025 | else |
| 15026 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 15027 | fi |
| 15028 | done |
| 15029 | |
| 15030 | # For the awk script, D is an array of macro values keyed by name, |
| 15031 | # likewise P contains macro parameters if any. Preserve backslash |
| 15032 | # newline sequences. |
| 15033 | |
| 15034 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 15035 | sed -n ' |
| 15036 | s/.\{148\}/&'"$ac_delim"'/g |
| 15037 | t rset |
| 15038 | :rset |
| 15039 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 15040 | t def |
| 15041 | d |
| 15042 | :def |
| 15043 | s/\\$// |
| 15044 | t bsnl |
| 15045 | s/["\\]/\\&/g |
| 15046 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 15047 | D["\1"]=" \3"/p |
| 15048 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 15049 | d |
| 15050 | :bsnl |
| 15051 | s/["\\]/\\&/g |
| 15052 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 15053 | D["\1"]=" \3\\\\\\n"\\/p |
| 15054 | t cont |
| 15055 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 15056 | t cont |
| 15057 | d |
| 15058 | :cont |
| 15059 | n |
| 15060 | s/.\{148\}/&'"$ac_delim"'/g |
| 15061 | t clear |
| 15062 | :clear |
| 15063 | s/\\$// |
| 15064 | t bsnlc |
| 15065 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 15066 | d |
| 15067 | :bsnlc |
| 15068 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 15069 | b cont |
| 15070 | ' <confdefs.h | sed ' |
| 15071 | s/'"$ac_delim"'/"\\\ |
| 15072 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 15073 | |
| 15074 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 15075 | for (key in D) D_is_set[key] = 1 |
| 15076 | FS = "" |
| 15077 | } |
| 15078 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 15079 | line = \$ 0 |
| 15080 | split(line, arg, " ") |
| 15081 | if (arg[1] == "#") { |
| 15082 | defundef = arg[2] |
| 15083 | mac1 = arg[3] |
| 15084 | } else { |
| 15085 | defundef = substr(arg[1], 2) |
| 15086 | mac1 = arg[2] |
| 15087 | } |
| 15088 | split(mac1, mac2, "(") #) |
| 15089 | macro = mac2[1] |
| 15090 | prefix = substr(line, 1, index(line, defundef) - 1) |
| 15091 | if (D_is_set[macro]) { |
| 15092 | # Preserve the white space surrounding the "#". |
| 15093 | print prefix "define", macro P[macro] D[macro] |
| 15094 | next |
| 15095 | } else { |
| 15096 | # Replace #undef with comments. This is necessary, for example, |
| 15097 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 15098 | # on some systems where configure will not decide to define it. |
| 15099 | if (defundef == "undef") { |
| 15100 | print "/*", prefix defundef, macro, "*/" |
| 15101 | next |
| 15102 | } |
| 15103 | } |
| 15104 | } |
| 15105 | { print } |
| 15106 | _ACAWK |
| 15107 | _ACEOF |
| 15108 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 15109 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15110 | fi # test -n "$CONFIG_HEADERS" |
| 15111 | |
| 15112 | |
| 15113 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " |
| 15114 | shift |
| 15115 | for ac_tag |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15116 | do |
| 15117 | case $ac_tag in |
| 15118 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 15119 | esac |
| 15120 | case $ac_mode$ac_tag in |
| 15121 | :[FHL]*:*);; |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 15122 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15123 | :[FH]-) ac_tag=-:-;; |
| 15124 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 15125 | esac |
| 15126 | ac_save_IFS=$IFS |
| 15127 | IFS=: |
| 15128 | set x $ac_tag |
| 15129 | IFS=$ac_save_IFS |
| 15130 | shift |
| 15131 | ac_file=$1 |
| 15132 | shift |
| 15133 | |
| 15134 | case $ac_mode in |
| 15135 | :L) ac_source=$1;; |
| 15136 | :[FH]) |
| 15137 | ac_file_inputs= |
| 15138 | for ac_f |
| 15139 | do |
| 15140 | case $ac_f in |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 15141 | -) ac_f="$ac_tmp/stdin";; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15142 | *) # Look for the file first in the build tree, then in the source tree |
| 15143 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 15144 | # because $ac_f cannot contain `:'. |
| 15145 | test -f "$ac_f" || |
| 15146 | case $ac_f in |
| 15147 | [\\/$]*) false;; |
| 15148 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 15149 | esac || |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 15150 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15151 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15152 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
| 15153 | as_fn_append ac_file_inputs " '$ac_f'" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15154 | done |
| 15155 | |
| 15156 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 15157 | # use $as_me), people would be surprised to read: |
| 15158 | # /* config.h. Generated by config.status. */ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15159 | configure_input='Generated from '` |
| 15160 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 15161 | `' by configure.' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15162 | if test x"$ac_file" != x-; then |
| 15163 | configure_input="$ac_file. $configure_input" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15164 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
| 15165 | $as_echo "$as_me: creating $ac_file" >&6;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15166 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15167 | # Neutralize special characters interpreted by sed in replacement strings. |
| 15168 | case $configure_input in #( |
| 15169 | *\&* | *\|* | *\\* ) |
| 15170 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 15171 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 15172 | *) ac_sed_conf_input=$configure_input;; |
| 15173 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15174 | |
| 15175 | case $ac_tag in |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 15176 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
| 15177 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15178 | esac |
| 15179 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15180 | esac |
| 15181 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15182 | ac_dir=`$as_dirname -- "$ac_file" || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15183 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15184 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 15185 | X"$ac_file" : 'X\(//\)$' \| \ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15186 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15187 | $as_echo X"$ac_file" | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15188 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 15189 | s//\1/ |
| 15190 | q |
| 15191 | } |
| 15192 | /^X\(\/\/\)[^/].*/{ |
| 15193 | s//\1/ |
| 15194 | q |
| 15195 | } |
| 15196 | /^X\(\/\/\)$/{ |
| 15197 | s//\1/ |
| 15198 | q |
| 15199 | } |
| 15200 | /^X\(\/\).*/{ |
| 15201 | s//\1/ |
| 15202 | q |
| 15203 | } |
| 15204 | s/.*/./; q'` |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15205 | as_dir="$ac_dir"; as_fn_mkdir_p |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15206 | ac_builddir=. |
| 15207 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15208 | case "$ac_dir" in |
| 15209 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 15210 | *) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15211 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15212 | # A ".." for each directory in $ac_dir_suffix. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15213 | 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] | 15214 | case $ac_top_builddir_sub in |
| 15215 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 15216 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 15217 | esac ;; |
| 15218 | esac |
| 15219 | ac_abs_top_builddir=$ac_pwd |
| 15220 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 15221 | # for backward compatibility: |
| 15222 | ac_top_builddir=$ac_top_build_prefix |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15223 | |
| 15224 | case $srcdir in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15225 | .) # We are building in place. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15226 | ac_srcdir=. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15227 | ac_top_srcdir=$ac_top_builddir_sub |
| 15228 | ac_abs_top_srcdir=$ac_pwd ;; |
| 15229 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15230 | ac_srcdir=$srcdir$ac_dir_suffix; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15231 | ac_top_srcdir=$srcdir |
| 15232 | ac_abs_top_srcdir=$srcdir ;; |
| 15233 | *) # Relative name. |
| 15234 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 15235 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 15236 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15237 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15238 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15239 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15240 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15241 | case $ac_mode in |
| 15242 | :F) |
| 15243 | # |
| 15244 | # CONFIG_FILE |
| 15245 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15246 | |
| 15247 | case $INSTALL in |
| 15248 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15249 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15250 | esac |
Trent Nelson | a45afca | 2012-08-30 14:32:02 +0000 | [diff] [blame] | 15251 | ac_MKDIR_P=$MKDIR_P |
| 15252 | case $MKDIR_P in |
| 15253 | [\\/$]* | ?:[\\/]* ) ;; |
| 15254 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
| 15255 | esac |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15256 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15257 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15258 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15259 | # If the template does not know about datarootdir, expand it. |
| 15260 | # FIXME: This hack should be removed a few years after 2.60. |
| 15261 | ac_datarootdir_hack=; ac_datarootdir_seen= |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15262 | ac_sed_dataroot=' |
| 15263 | /datarootdir/ { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15264 | p |
| 15265 | q |
| 15266 | } |
| 15267 | /@datadir@/p |
| 15268 | /@docdir@/p |
| 15269 | /@infodir@/p |
| 15270 | /@localedir@/p |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15271 | /@mandir@/p' |
| 15272 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15273 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 15274 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15275 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 15276 | $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] | 15277 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15278 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15279 | ac_datarootdir_hack=' |
| 15280 | s&@datadir@&$datadir&g |
| 15281 | s&@docdir@&$docdir&g |
| 15282 | s&@infodir@&$infodir&g |
| 15283 | s&@localedir@&$localedir&g |
| 15284 | s&@mandir@&$mandir&g |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15285 | s&\\\${datarootdir}&$datarootdir&g' ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15286 | esac |
| 15287 | _ACEOF |
| 15288 | |
| 15289 | # Neutralize VPATH when `$srcdir' = `.'. |
| 15290 | # Shell code in configure.ac might set extrasub. |
| 15291 | # FIXME: do we really want to maintain this feature? |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15292 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 15293 | ac_sed_extra="$ac_vpsub |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15294 | $extrasub |
| 15295 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15296 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15297 | :t |
| 15298 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15299 | s|@configure_input@|$ac_sed_conf_input|;t t |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15300 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15301 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15302 | s&@srcdir@&$ac_srcdir&;t t |
| 15303 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 15304 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 15305 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 15306 | s&@builddir@&$ac_builddir&;t t |
| 15307 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 15308 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 15309 | s&@INSTALL@&$ac_INSTALL&;t t |
Trent Nelson | a45afca | 2012-08-30 14:32:02 +0000 | [diff] [blame] | 15310 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15311 | $ac_datarootdir_hack |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15312 | " |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 15313 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
| 15314 | >$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] | 15315 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15316 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 15317 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
| 15318 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
| 15319 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15320 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 15321 | which seems to be undefined. Please make sure it is defined" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15322 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 15323 | which seems to be undefined. Please make sure it is defined" >&2;} |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 15324 | |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 15325 | rm -f "$ac_tmp/stdin" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15326 | case $ac_file in |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 15327 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
| 15328 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15329 | esac \ |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 15330 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15331 | ;; |
| 15332 | :H) |
| 15333 | # |
| 15334 | # CONFIG_HEADER |
| 15335 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15336 | if test x"$ac_file" != x-; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15337 | { |
| 15338 | $as_echo "/* $configure_input */" \ |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 15339 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
| 15340 | } >"$ac_tmp/config.h" \ |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 15341 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 15342 | 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] | 15343 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
| 15344 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15345 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15346 | rm -f "$ac_file" |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 15347 | mv "$ac_tmp/config.h" "$ac_file" \ |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 15348 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15349 | fi |
| 15350 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15351 | $as_echo "/* $configure_input */" \ |
Gregory P. Smith | 6914048 | 2012-01-16 02:05:55 -0800 | [diff] [blame] | 15352 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 15353 | || as_fn_error $? "could not create -" "$LINENO" 5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15354 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15355 | ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15356 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15357 | |
| 15358 | esac |
| 15359 | |
Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 15360 | |
| 15361 | case $ac_file$ac_mode in |
| 15362 | "Modules/ld_so_aix":F) chmod +x Modules/ld_so_aix ;; |
| 15363 | |
| 15364 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15365 | done # for ac_tag |
| 15366 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15367 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15368 | as_fn_exit 0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15369 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15370 | ac_clean_files=$ac_clean_files_save |
| 15371 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15372 | test $ac_write_fail = 0 || |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 15373 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15374 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15375 | |
| 15376 | # configure is writing to config.log, and then calls config.status. |
| 15377 | # config.status does its own redirection, appending to config.log. |
| 15378 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 15379 | # by configure, so config.status won't be able to write to it; its |
| 15380 | # output is simply discarded. So we exec the FD to /dev/null, |
| 15381 | # effectively closing config.log, so it can be properly (re)opened and |
| 15382 | # appended to by config.status. When coming back to configure, we |
| 15383 | # need to make the FD available again. |
| 15384 | if test "$no_create" != yes; then |
| 15385 | ac_cs_success=: |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15386 | ac_config_status_args= |
| 15387 | test "$silent" = yes && |
| 15388 | ac_config_status_args="$ac_config_status_args --quiet" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15389 | exec 5>/dev/null |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15390 | $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] | 15391 | exec 5>>config.log |
| 15392 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 15393 | # would make configure fail if this is the last instruction. |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 15394 | $ac_cs_success || as_fn_exit 1 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15395 | fi |
| 15396 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
| 15397 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
| 15398 | $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] | 15399 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15400 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 15401 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 15402 | echo "creating Modules/Setup" |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 15403 | if test ! -f Modules/Setup |
| 15404 | then |
| 15405 | cp $srcdir/Modules/Setup.dist Modules/Setup |
| 15406 | fi |
| 15407 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 15408 | echo "creating Modules/Setup.local" |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 15409 | if test ! -f Modules/Setup.local |
| 15410 | then |
| 15411 | echo "# Edit this file for local setup changes" >Modules/Setup.local |
| 15412 | fi |
| 15413 | |
| 15414 | echo "creating Makefile" |
| 15415 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ |
| 15416 | -s Modules Modules/Setup.config \ |
Neil Schemenauer | f8b71c5 | 2001-04-21 17:41:16 +0000 | [diff] [blame] | 15417 | Modules/Setup.local Modules/Setup |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 15418 | mv config.c Modules |