Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1 | #! /bin/sh |
Georg Brandl | 3f0df3b | 2011-02-25 10:22:44 +0000 | [diff] [blame^] | 2 | # From configure.in Revision: 88560 . |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3 | # Guess values for system-dependent variables and create Makefiles. |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 4 | # Generated by GNU Autoconf 2.68 for python 3.1. |
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 | # |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8 | # |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 10 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software |
| 11 | # Foundation, Inc. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12 | # |
| 13 | # |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14 | # This configure script is free software; the Free Software Foundation |
| 15 | # gives unlimited permission to copy, distribute and modify it. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 16 | ## -------------------- ## |
| 17 | ## M4sh Initialization. ## |
| 18 | ## -------------------- ## |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20 | # Be more Bourne compatible |
| 21 | DUALCASE=1; export DUALCASE # for MKS sh |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 22 | 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] | 23 | emulate sh |
| 24 | NULLCMD=: |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 25 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26 | # is contrary to our usage. Disable this feature. |
| 27 | alias -g '${1+"$@"}'='"$@"' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 28 | setopt NO_GLOB_SUBST |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 29 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 30 | case `(set -o) 2>/dev/null` in #( |
| 31 | *posix*) : |
| 32 | set -o posix ;; #( |
| 33 | *) : |
| 34 | ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 35 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 36 | fi |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 37 | |
| 38 | |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 39 | as_nl=' |
| 40 | ' |
| 41 | export as_nl |
| 42 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 43 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 44 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 45 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 46 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 47 | # but without wasting forks for bash or zsh. |
| 48 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 49 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 50 | as_echo='print -r --' |
| 51 | as_echo_n='print -rn --' |
| 52 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 53 | as_echo='printf %s\n' |
| 54 | as_echo_n='printf %s' |
| 55 | else |
| 56 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 57 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 58 | as_echo_n='/usr/ucb/echo -n' |
| 59 | else |
| 60 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 61 | as_echo_n_body='eval |
| 62 | arg=$1; |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 63 | case $arg in #( |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 64 | *"$as_nl"*) |
| 65 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 66 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 67 | esac; |
| 68 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 69 | ' |
| 70 | export as_echo_n_body |
| 71 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 72 | fi |
| 73 | export as_echo_body |
| 74 | as_echo='sh -c $as_echo_body as_echo' |
| 75 | fi |
| 76 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 77 | # The user is always right. |
| 78 | if test "${PATH_SEPARATOR+set}" != set; then |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 79 | PATH_SEPARATOR=: |
| 80 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 81 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 82 | PATH_SEPARATOR=';' |
| 83 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 84 | fi |
| 85 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 86 | |
| 87 | # IFS |
| 88 | # We need space, tab and new line, in precisely that order. Quoting is |
| 89 | # there to prevent editors from complaining about space-tab. |
| 90 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 91 | # splitting by setting IFS to empty value.) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 92 | IFS=" "" $as_nl" |
| 93 | |
| 94 | # Find who we are. Look in the path if we contain no directory separator. |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 95 | as_myself= |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 96 | case $0 in #(( |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 97 | *[\\/]* ) as_myself=$0 ;; |
| 98 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 99 | for as_dir in $PATH |
| 100 | do |
| 101 | IFS=$as_save_IFS |
| 102 | test -z "$as_dir" && as_dir=. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 103 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 104 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 105 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 106 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 107 | ;; |
| 108 | esac |
| 109 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 110 | # in which case we are not to be found in the path. |
| 111 | if test "x$as_myself" = x; then |
| 112 | as_myself=$0 |
| 113 | fi |
| 114 | if test ! -f "$as_myself"; then |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 115 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 116 | exit 1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 117 | fi |
| 118 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 119 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 120 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 121 | # suppresses any "Segmentation fault" message there. '((' could |
| 122 | # trigger a bug in pdksh 5.2.14. |
| 123 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 124 | do eval test x\${$as_var+set} = xset \ |
| 125 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 126 | done |
| 127 | PS1='$ ' |
| 128 | PS2='> ' |
| 129 | PS4='+ ' |
| 130 | |
| 131 | # NLS nuisances. |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 132 | LC_ALL=C |
| 133 | export LC_ALL |
| 134 | LANGUAGE=C |
| 135 | export LANGUAGE |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 136 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 137 | # CDPATH. |
| 138 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 139 | |
| 140 | if test "x$CONFIG_SHELL" = x; then |
| 141 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
| 142 | emulate sh |
| 143 | NULLCMD=: |
| 144 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
| 145 | # is contrary to our usage. Disable this feature. |
| 146 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
| 147 | setopt NO_GLOB_SUBST |
| 148 | else |
| 149 | case \`(set -o) 2>/dev/null\` in #( |
| 150 | *posix*) : |
| 151 | set -o posix ;; #( |
| 152 | *) : |
| 153 | ;; |
| 154 | esac |
| 155 | fi |
| 156 | " |
| 157 | as_required="as_fn_return () { (exit \$1); } |
| 158 | as_fn_success () { as_fn_return 0; } |
| 159 | as_fn_failure () { as_fn_return 1; } |
| 160 | as_fn_ret_success () { return 0; } |
| 161 | as_fn_ret_failure () { return 1; } |
| 162 | |
| 163 | exitcode=0 |
| 164 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
| 165 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
| 166 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
| 167 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
| 168 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
| 169 | |
| 170 | else |
| 171 | exitcode=1; echo positional parameters were not saved. |
| 172 | fi |
| 173 | test x\$exitcode = x0 || exit 1" |
| 174 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
| 175 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
| 176 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
| 177 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
| 178 | test \$(( 1 + 1 )) = 2 || exit 1" |
| 179 | if (eval "$as_required") 2>/dev/null; then : |
| 180 | as_have_required=yes |
| 181 | else |
| 182 | as_have_required=no |
| 183 | fi |
| 184 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
| 185 | |
| 186 | else |
| 187 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 188 | as_found=false |
| 189 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 190 | do |
| 191 | IFS=$as_save_IFS |
| 192 | test -z "$as_dir" && as_dir=. |
| 193 | as_found=: |
| 194 | case $as_dir in #( |
| 195 | /*) |
| 196 | for as_base in sh bash ksh sh5; do |
| 197 | # Try only shells that exist, to save several forks. |
| 198 | as_shell=$as_dir/$as_base |
| 199 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 200 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 201 | CONFIG_SHELL=$as_shell as_have_required=yes |
| 202 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 203 | break 2 |
| 204 | fi |
| 205 | fi |
| 206 | done;; |
| 207 | esac |
| 208 | as_found=false |
| 209 | done |
| 210 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
| 211 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
| 212 | CONFIG_SHELL=$SHELL as_have_required=yes |
| 213 | fi; } |
| 214 | IFS=$as_save_IFS |
| 215 | |
| 216 | |
| 217 | if test "x$CONFIG_SHELL" != x; then : |
| 218 | # We cannot yet assume a decent shell, so we have to provide a |
| 219 | # neutralization value for shells without unset; and this also |
| 220 | # works around shells that cannot unset nonexistent variables. |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 221 | # Preserve -v and -x to the replacement shell. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 222 | BASH_ENV=/dev/null |
| 223 | ENV=/dev/null |
| 224 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 225 | export CONFIG_SHELL |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 226 | case $- in # (((( |
| 227 | *v*x* | *x*v* ) as_opts=-vx ;; |
| 228 | *v* ) as_opts=-v ;; |
| 229 | *x* ) as_opts=-x ;; |
| 230 | * ) as_opts= ;; |
| 231 | esac |
| 232 | exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 233 | fi |
| 234 | |
| 235 | if test x$as_have_required = xno; then : |
| 236 | $as_echo "$0: This script requires a shell more modern than all" |
| 237 | $as_echo "$0: the shells that I found on your system." |
| 238 | if test x${ZSH_VERSION+set} = xset ; then |
| 239 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
| 240 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
| 241 | else |
| 242 | $as_echo "$0: Please tell bug-autoconf@gnu.org and |
| 243 | $0: http://bugs.python.org/ about your system, including |
| 244 | $0: any error possibly output before this message. Then |
| 245 | $0: install a modern shell, or manually run the script |
| 246 | $0: under such a shell if you do have one." |
| 247 | fi |
| 248 | exit 1 |
| 249 | fi |
| 250 | fi |
| 251 | fi |
| 252 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 253 | export SHELL |
| 254 | # Unset more variables known to interfere with behavior of common tools. |
| 255 | CLICOLOR_FORCE= GREP_OPTIONS= |
| 256 | unset CLICOLOR_FORCE GREP_OPTIONS |
| 257 | |
| 258 | ## --------------------- ## |
| 259 | ## M4sh Shell Functions. ## |
| 260 | ## --------------------- ## |
| 261 | # as_fn_unset VAR |
| 262 | # --------------- |
| 263 | # Portably unset VAR. |
| 264 | as_fn_unset () |
| 265 | { |
| 266 | { eval $1=; unset $1;} |
| 267 | } |
| 268 | as_unset=as_fn_unset |
| 269 | |
| 270 | # as_fn_set_status STATUS |
| 271 | # ----------------------- |
| 272 | # Set $? to STATUS, without forking. |
| 273 | as_fn_set_status () |
| 274 | { |
| 275 | return $1 |
| 276 | } # as_fn_set_status |
| 277 | |
| 278 | # as_fn_exit STATUS |
| 279 | # ----------------- |
| 280 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 281 | as_fn_exit () |
| 282 | { |
| 283 | set +e |
| 284 | as_fn_set_status $1 |
| 285 | exit $1 |
| 286 | } # as_fn_exit |
| 287 | |
| 288 | # as_fn_mkdir_p |
| 289 | # ------------- |
| 290 | # Create "$as_dir" as a directory, including parents if necessary. |
| 291 | as_fn_mkdir_p () |
| 292 | { |
| 293 | |
| 294 | case $as_dir in #( |
| 295 | -*) as_dir=./$as_dir;; |
| 296 | esac |
| 297 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 298 | as_dirs= |
| 299 | while :; do |
| 300 | case $as_dir in #( |
| 301 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 302 | *) as_qdir=$as_dir;; |
| 303 | esac |
| 304 | as_dirs="'$as_qdir' $as_dirs" |
| 305 | as_dir=`$as_dirname -- "$as_dir" || |
| 306 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 307 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 308 | X"$as_dir" : 'X\(//\)$' \| \ |
| 309 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 310 | $as_echo X"$as_dir" | |
| 311 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 312 | s//\1/ |
| 313 | q |
| 314 | } |
| 315 | /^X\(\/\/\)[^/].*/{ |
| 316 | s//\1/ |
| 317 | q |
| 318 | } |
| 319 | /^X\(\/\/\)$/{ |
| 320 | s//\1/ |
| 321 | q |
| 322 | } |
| 323 | /^X\(\/\).*/{ |
| 324 | s//\1/ |
| 325 | q |
| 326 | } |
| 327 | s/.*/./; q'` |
| 328 | test -d "$as_dir" && break |
| 329 | done |
| 330 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 331 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 332 | |
| 333 | |
| 334 | } # as_fn_mkdir_p |
| 335 | # as_fn_append VAR VALUE |
| 336 | # ---------------------- |
| 337 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 338 | # advantage of any shell optimizations that allow amortized linear growth over |
| 339 | # repeated appends, instead of the typical quadratic growth present in naive |
| 340 | # implementations. |
| 341 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 342 | eval 'as_fn_append () |
| 343 | { |
| 344 | eval $1+=\$2 |
| 345 | }' |
| 346 | else |
| 347 | as_fn_append () |
| 348 | { |
| 349 | eval $1=\$$1\$2 |
| 350 | } |
| 351 | fi # as_fn_append |
| 352 | |
| 353 | # as_fn_arith ARG... |
| 354 | # ------------------ |
| 355 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 356 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 357 | # must be portable across $(()) and expr. |
| 358 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 359 | eval 'as_fn_arith () |
| 360 | { |
| 361 | as_val=$(( $* )) |
| 362 | }' |
| 363 | else |
| 364 | as_fn_arith () |
| 365 | { |
| 366 | as_val=`expr "$@" || test $? -eq 1` |
| 367 | } |
| 368 | fi # as_fn_arith |
| 369 | |
| 370 | |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 371 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 372 | # ---------------------------------------- |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 373 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 374 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 375 | # script with STATUS, using 1 if that was 0. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 376 | as_fn_error () |
| 377 | { |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 378 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 379 | if test "$4"; then |
| 380 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 381 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 382 | fi |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 383 | $as_echo "$as_me: error: $2" >&2 |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 384 | as_fn_exit $as_status |
| 385 | } # as_fn_error |
| 386 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 387 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 388 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 389 | as_expr=expr |
| 390 | else |
| 391 | as_expr=false |
| 392 | fi |
| 393 | |
| 394 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 395 | as_basename=basename |
| 396 | else |
| 397 | as_basename=false |
| 398 | fi |
| 399 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 400 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 401 | as_dirname=dirname |
| 402 | else |
| 403 | as_dirname=false |
| 404 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 405 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 406 | as_me=`$as_basename -- "$0" || |
| 407 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 408 | X"$0" : 'X\(//\)$' \| \ |
| 409 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 410 | $as_echo X/"$0" | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 411 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 412 | s//\1/ |
| 413 | q |
| 414 | } |
| 415 | /^X\/\(\/\/\)$/{ |
| 416 | s//\1/ |
| 417 | q |
| 418 | } |
| 419 | /^X\/\(\/\).*/{ |
| 420 | s//\1/ |
| 421 | q |
| 422 | } |
| 423 | s/.*/./; q'` |
| 424 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 425 | # Avoid depending upon Character Ranges. |
| 426 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 427 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 428 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 429 | as_cr_digits='0123456789' |
| 430 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 431 | |
| 432 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 433 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
| 434 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
| 435 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
| 436 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
| 437 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 438 | sed -n ' |
| 439 | p |
| 440 | /[$]LINENO/= |
| 441 | ' <$as_myself | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 442 | sed ' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 443 | s/[$]LINENO.*/&-/ |
| 444 | t lineno |
| 445 | b |
| 446 | :lineno |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 447 | N |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 448 | :loop |
| 449 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 450 | t loop |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 451 | s/-\n.*// |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 452 | ' >$as_me.lineno && |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 453 | chmod +x "$as_me.lineno" || |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 454 | { $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] | 455 | |
| 456 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 457 | # (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] | 458 | # original and so on. Autoconf is especially sensitive to this). |
| 459 | . "./$as_me.lineno" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 460 | # Exit status is that of the last command. |
| 461 | exit |
| 462 | } |
| 463 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 464 | ECHO_C= ECHO_N= ECHO_T= |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 465 | case `echo -n x` in #((((( |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 466 | -n*) |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 467 | case `echo 'xy\c'` in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 468 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 469 | xy) ECHO_C='\c';; |
| 470 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 471 | ECHO_T=' ';; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 472 | esac;; |
| 473 | *) |
| 474 | ECHO_N='-n';; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 475 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 476 | |
| 477 | rm -f conf$$ conf$$.exe conf$$.file |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 478 | if test -d conf$$.dir; then |
| 479 | rm -f conf$$.dir/conf$$.file |
| 480 | else |
| 481 | rm -f conf$$.dir |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 482 | mkdir conf$$.dir 2>/dev/null |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 483 | fi |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 484 | if (echo >conf$$.file) 2>/dev/null; then |
| 485 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 486 | as_ln_s='ln -s' |
| 487 | # ... but there are two gotchas: |
| 488 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 489 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 490 | # In both cases, we have to default to `cp -p'. |
| 491 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 492 | as_ln_s='cp -p' |
| 493 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 494 | as_ln_s=ln |
| 495 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 496 | as_ln_s='cp -p' |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 497 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 498 | else |
| 499 | as_ln_s='cp -p' |
| 500 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 501 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 502 | rmdir conf$$.dir 2>/dev/null |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 503 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 504 | if mkdir -p . 2>/dev/null; then |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 505 | as_mkdir_p='mkdir -p "$as_dir"' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 506 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 507 | test -d ./-p && rmdir ./-p |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 508 | as_mkdir_p=false |
| 509 | fi |
| 510 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 511 | if test -x / >/dev/null 2>&1; then |
| 512 | as_test_x='test -x' |
| 513 | else |
| 514 | if ls -dL / >/dev/null 2>&1; then |
| 515 | as_ls_L_option=L |
| 516 | else |
| 517 | as_ls_L_option= |
| 518 | fi |
| 519 | as_test_x=' |
| 520 | eval sh -c '\'' |
| 521 | if test -d "$1"; then |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 522 | test -d "$1/."; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 523 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 524 | case $1 in #( |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 525 | -*)set "./$1";; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 526 | esac; |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 527 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 528 | ???[sx]*):;;*)false;;esac;fi |
| 529 | '\'' sh |
| 530 | ' |
| 531 | fi |
| 532 | as_executable_p=$as_test_x |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 533 | |
| 534 | # Sed expression to map a string onto a valid CPP name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 535 | 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] | 536 | |
| 537 | # Sed expression to map a string onto a valid variable name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 538 | 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] | 539 | |
| 540 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 541 | test -n "$DJDIR" || exec 7<&0 </dev/null |
| 542 | exec 6>&1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 543 | |
| 544 | # Name of the host. |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 545 | # 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] | 546 | # so uname gets run too. |
| 547 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 548 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 549 | # |
| 550 | # Initializations. |
| 551 | # |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 552 | ac_default_prefix=/usr/local |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 553 | ac_clean_files= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 554 | ac_config_libobj_dir=. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 555 | LIBOBJS= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 556 | cross_compiling=no |
| 557 | subdirs= |
| 558 | MFLAGS= |
| 559 | MAKEFLAGS= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 560 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 561 | # Identity of this package. |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 562 | PACKAGE_NAME='python' |
| 563 | PACKAGE_TARNAME='python' |
Christian Heimes | 70e5cab | 2008-12-03 18:18:23 +0000 | [diff] [blame] | 564 | PACKAGE_VERSION='3.1' |
| 565 | PACKAGE_STRING='python 3.1' |
Georg Brandl | e2e1561 | 2009-05-20 18:25:10 +0000 | [diff] [blame] | 566 | PACKAGE_BUGREPORT='http://bugs.python.org/' |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 567 | PACKAGE_URL='' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 568 | |
| 569 | ac_unique_file="Include/object.h" |
| 570 | # Factoring default headers for most tests. |
| 571 | ac_includes_default="\ |
| 572 | #include <stdio.h> |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 573 | #ifdef HAVE_SYS_TYPES_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 574 | # include <sys/types.h> |
| 575 | #endif |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 576 | #ifdef HAVE_SYS_STAT_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 577 | # include <sys/stat.h> |
| 578 | #endif |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 579 | #ifdef STDC_HEADERS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 580 | # include <stdlib.h> |
| 581 | # include <stddef.h> |
| 582 | #else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 583 | # ifdef HAVE_STDLIB_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 584 | # include <stdlib.h> |
| 585 | # endif |
| 586 | #endif |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 587 | #ifdef HAVE_STRING_H |
| 588 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 589 | # include <memory.h> |
| 590 | # endif |
| 591 | # include <string.h> |
| 592 | #endif |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 593 | #ifdef HAVE_STRINGS_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 594 | # include <strings.h> |
| 595 | #endif |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 596 | #ifdef HAVE_INTTYPES_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 597 | # include <inttypes.h> |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 598 | #endif |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 599 | #ifdef HAVE_STDINT_H |
| 600 | # include <stdint.h> |
| 601 | #endif |
| 602 | #ifdef HAVE_UNISTD_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 603 | # include <unistd.h> |
| 604 | #endif" |
| 605 | |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 606 | ac_subst_vars='LTLIBOBJS |
Ronald Oussoren | 5644eb7 | 2009-09-20 20:10:02 +0000 | [diff] [blame] | 607 | SRCDIRS |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 608 | THREADHEADERS |
| 609 | LIBC |
| 610 | LIBM |
| 611 | HAVE_GETHOSTBYNAME |
| 612 | HAVE_GETHOSTBYNAME_R |
| 613 | HAVE_GETHOSTBYNAME_R_3_ARG |
| 614 | HAVE_GETHOSTBYNAME_R_5_ARG |
| 615 | HAVE_GETHOSTBYNAME_R_6_ARG |
| 616 | LIBOBJS |
| 617 | TRUE |
| 618 | MACHDEP_OBJS |
| 619 | DYNLOADFILE |
| 620 | DLINCLDIR |
| 621 | THREADOBJ |
| 622 | LDLAST |
| 623 | USE_THREAD_MODULE |
| 624 | SIGNAL_OBJS |
| 625 | USE_SIGNAL_MODULE |
| 626 | SHLIBS |
| 627 | CFLAGSFORSHARED |
| 628 | LINKFORSHARED |
| 629 | CCSHARED |
| 630 | BLDSHARED |
| 631 | LDSHARED |
| 632 | SO |
| 633 | LIBTOOL_CRUFT |
| 634 | OTHER_LIBTOOL_OPT |
| 635 | UNIVERSAL_ARCH_FLAGS |
| 636 | BASECFLAGS |
| 637 | OPT |
| 638 | LN |
| 639 | INSTALL_DATA |
| 640 | INSTALL_SCRIPT |
| 641 | INSTALL_PROGRAM |
| 642 | SVNVERSION |
| 643 | ARFLAGS |
| 644 | AR |
| 645 | RANLIB |
| 646 | GNULD |
| 647 | LINKCC |
| 648 | RUNSHARED |
| 649 | INSTSONAME |
| 650 | LDLIBRARYDIR |
| 651 | BLDLIBRARY |
| 652 | DLLLIBRARY |
| 653 | LDLIBRARY |
| 654 | LIBRARY |
| 655 | BUILDEXEEXT |
| 656 | EGREP |
| 657 | GREP |
| 658 | CPP |
| 659 | MAINCC |
| 660 | CXX |
| 661 | OBJEXT |
| 662 | EXEEXT |
| 663 | ac_ct_CC |
| 664 | CPPFLAGS |
| 665 | LDFLAGS |
| 666 | CFLAGS |
| 667 | CC |
| 668 | EXPORT_MACOSX_DEPLOYMENT_TARGET |
| 669 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET |
| 670 | SGI_ABI |
| 671 | MACHDEP |
| 672 | FRAMEWORKUNIXTOOLSPREFIX |
| 673 | FRAMEWORKALTINSTALLLAST |
| 674 | FRAMEWORKALTINSTALLFIRST |
| 675 | FRAMEWORKINSTALLLAST |
| 676 | FRAMEWORKINSTALLFIRST |
| 677 | PYTHONFRAMEWORKINSTALLDIR |
| 678 | PYTHONFRAMEWORKPREFIX |
| 679 | PYTHONFRAMEWORKDIR |
| 680 | PYTHONFRAMEWORKIDENTIFIER |
| 681 | PYTHONFRAMEWORK |
| 682 | LIPO_64BIT_FLAGS |
| 683 | LIPO_32BIT_FLAGS |
| 684 | ARCH_RUN_32BIT |
| 685 | UNIVERSALSDK |
| 686 | CONFIG_ARGS |
| 687 | SOVERSION |
| 688 | VERSION |
| 689 | target_alias |
| 690 | host_alias |
| 691 | build_alias |
| 692 | LIBS |
| 693 | ECHO_T |
| 694 | ECHO_N |
| 695 | ECHO_C |
| 696 | DEFS |
| 697 | mandir |
| 698 | localedir |
| 699 | libdir |
| 700 | psdir |
| 701 | pdfdir |
| 702 | dvidir |
| 703 | htmldir |
| 704 | infodir |
| 705 | docdir |
| 706 | oldincludedir |
| 707 | includedir |
| 708 | localstatedir |
| 709 | sharedstatedir |
| 710 | sysconfdir |
| 711 | datadir |
| 712 | datarootdir |
| 713 | libexecdir |
| 714 | sbindir |
| 715 | bindir |
| 716 | program_transform_name |
| 717 | prefix |
| 718 | exec_prefix |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 719 | PACKAGE_URL |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 720 | PACKAGE_BUGREPORT |
| 721 | PACKAGE_STRING |
| 722 | PACKAGE_VERSION |
| 723 | PACKAGE_TARNAME |
| 724 | PACKAGE_NAME |
| 725 | PATH_SEPARATOR |
| 726 | SHELL' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 727 | ac_subst_files='' |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 728 | ac_user_opts=' |
| 729 | enable_option_checking |
| 730 | enable_universalsdk |
| 731 | with_universal_archs |
| 732 | with_framework_name |
| 733 | enable_framework |
| 734 | with_gcc |
| 735 | with_cxx_main |
| 736 | with_suffix |
| 737 | enable_shared |
| 738 | enable_profiling |
| 739 | with_pydebug |
| 740 | with_libs |
| 741 | with_system_ffi |
| 742 | with_dbmliborder |
| 743 | with_signal_module |
| 744 | with_dec_threads |
| 745 | with_threads |
| 746 | with_thread |
| 747 | with_pth |
| 748 | enable_ipv6 |
| 749 | with_doc_strings |
| 750 | with_tsc |
| 751 | with_pymalloc |
| 752 | with_wctype_functions |
| 753 | with_fpectl |
| 754 | with_libm |
| 755 | with_libc |
| 756 | enable_big_digits |
| 757 | with_wide_unicode |
| 758 | with_computed_gotos |
| 759 | ' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 760 | ac_precious_vars='build_alias |
| 761 | host_alias |
| 762 | target_alias |
| 763 | CC |
| 764 | CFLAGS |
| 765 | LDFLAGS |
| 766 | LIBS |
| 767 | CPPFLAGS |
Antoine Pitrou | f1cc81a | 2011-01-02 19:38:30 +0000 | [diff] [blame] | 768 | CPP' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 769 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 770 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 771 | # Initialize some variables set by options. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 772 | ac_init_help= |
| 773 | ac_init_version=false |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 774 | ac_unrecognized_opts= |
| 775 | ac_unrecognized_sep= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 776 | # The variables have the same names as the options, with |
| 777 | # dashes changed to underlines. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 778 | cache_file=/dev/null |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 779 | exec_prefix=NONE |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 780 | no_create= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 781 | no_recursion= |
| 782 | prefix=NONE |
| 783 | program_prefix=NONE |
| 784 | program_suffix=NONE |
| 785 | program_transform_name=s,x,x, |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 786 | silent= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 787 | site= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 788 | srcdir= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 789 | verbose= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 790 | x_includes=NONE |
| 791 | x_libraries=NONE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 792 | |
| 793 | # Installation directory options. |
| 794 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 795 | # and all the variables that are supposed to be based on exec_prefix |
| 796 | # by default will actually change. |
| 797 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 798 | # (The list follows the same order as the GNU Coding Standards.) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 799 | bindir='${exec_prefix}/bin' |
| 800 | sbindir='${exec_prefix}/sbin' |
| 801 | libexecdir='${exec_prefix}/libexec' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 802 | datarootdir='${prefix}/share' |
| 803 | datadir='${datarootdir}' |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 804 | sysconfdir='${prefix}/etc' |
| 805 | sharedstatedir='${prefix}/com' |
| 806 | localstatedir='${prefix}/var' |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 807 | includedir='${prefix}/include' |
| 808 | oldincludedir='/usr/include' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 809 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 810 | infodir='${datarootdir}/info' |
| 811 | htmldir='${docdir}' |
| 812 | dvidir='${docdir}' |
| 813 | pdfdir='${docdir}' |
| 814 | psdir='${docdir}' |
| 815 | libdir='${exec_prefix}/lib' |
| 816 | localedir='${datarootdir}/locale' |
| 817 | mandir='${datarootdir}/man' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 818 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 819 | ac_prev= |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 820 | ac_dashdash= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 821 | for ac_option |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 822 | do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 823 | # If the previous option needs an argument, assign it. |
| 824 | if test -n "$ac_prev"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 825 | eval $ac_prev=\$ac_option |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 826 | ac_prev= |
| 827 | continue |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 828 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 829 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 830 | case $ac_option in |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 831 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 832 | *=) ac_optarg= ;; |
| 833 | *) ac_optarg=yes ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 834 | esac |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 835 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 836 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 837 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 838 | case $ac_dashdash$ac_option in |
| 839 | --) |
| 840 | ac_dashdash=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 841 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 842 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 843 | ac_prev=bindir ;; |
| 844 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 845 | bindir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 846 | |
| 847 | -build | --build | --buil | --bui | --bu) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 848 | ac_prev=build_alias ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 849 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 850 | build_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 851 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 852 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 853 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 854 | ac_prev=cache_file ;; |
| 855 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 856 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 857 | cache_file=$ac_optarg ;; |
| 858 | |
| 859 | --config-cache | -C) |
| 860 | cache_file=config.cache ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 861 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 862 | -datadir | --datadir | --datadi | --datad) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 863 | ac_prev=datadir ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 864 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 865 | datadir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 866 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 867 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 868 | | --dataroo | --dataro | --datar) |
| 869 | ac_prev=datarootdir ;; |
| 870 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 871 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 872 | datarootdir=$ac_optarg ;; |
| 873 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 874 | -disable-* | --disable-*) |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 875 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 876 | # Reject names that are not valid shell variable names. |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 877 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 878 | as_fn_error $? "invalid feature name: $ac_useropt" |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 879 | ac_useropt_orig=$ac_useropt |
| 880 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 881 | case $ac_user_opts in |
| 882 | *" |
| 883 | "enable_$ac_useropt" |
| 884 | "*) ;; |
| 885 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 886 | ac_unrecognized_sep=', ';; |
| 887 | esac |
| 888 | eval enable_$ac_useropt=no ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 889 | |
| 890 | -docdir | --docdir | --docdi | --doc | --do) |
| 891 | ac_prev=docdir ;; |
| 892 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 893 | docdir=$ac_optarg ;; |
| 894 | |
| 895 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 896 | ac_prev=dvidir ;; |
| 897 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 898 | dvidir=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 899 | |
| 900 | -enable-* | --enable-*) |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 901 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 902 | # Reject names that are not valid shell variable names. |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 903 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 904 | as_fn_error $? "invalid feature name: $ac_useropt" |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 905 | ac_useropt_orig=$ac_useropt |
| 906 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 907 | case $ac_user_opts in |
| 908 | *" |
| 909 | "enable_$ac_useropt" |
| 910 | "*) ;; |
| 911 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 912 | ac_unrecognized_sep=', ';; |
| 913 | esac |
| 914 | eval enable_$ac_useropt=\$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 915 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 916 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 917 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 918 | | --exec | --exe | --ex) |
| 919 | ac_prev=exec_prefix ;; |
| 920 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 921 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 922 | | --exec=* | --exe=* | --ex=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 923 | exec_prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 924 | |
| 925 | -gas | --gas | --ga | --g) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 926 | # Obsolete; use --with-gas. |
| 927 | with_gas=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 928 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 929 | -help | --help | --hel | --he | -h) |
| 930 | ac_init_help=long ;; |
| 931 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 932 | ac_init_help=recursive ;; |
| 933 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 934 | ac_init_help=short ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 935 | |
| 936 | -host | --host | --hos | --ho) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 937 | ac_prev=host_alias ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 938 | -host=* | --host=* | --hos=* | --ho=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 939 | host_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 940 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 941 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 942 | ac_prev=htmldir ;; |
| 943 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 944 | | --ht=*) |
| 945 | htmldir=$ac_optarg ;; |
| 946 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 947 | -includedir | --includedir | --includedi | --included | --include \ |
| 948 | | --includ | --inclu | --incl | --inc) |
| 949 | ac_prev=includedir ;; |
| 950 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 951 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 952 | includedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 953 | |
| 954 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 955 | ac_prev=infodir ;; |
| 956 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 957 | infodir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 958 | |
| 959 | -libdir | --libdir | --libdi | --libd) |
| 960 | ac_prev=libdir ;; |
| 961 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 962 | libdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 963 | |
| 964 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 965 | | --libexe | --libex | --libe) |
| 966 | ac_prev=libexecdir ;; |
| 967 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 968 | | --libexe=* | --libex=* | --libe=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 969 | libexecdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 970 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 971 | -localedir | --localedir | --localedi | --localed | --locale) |
| 972 | ac_prev=localedir ;; |
| 973 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 974 | localedir=$ac_optarg ;; |
| 975 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 976 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 977 | | --localstate | --localstat | --localsta | --localst | --locals) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 978 | ac_prev=localstatedir ;; |
| 979 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 980 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 981 | localstatedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 982 | |
| 983 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 984 | ac_prev=mandir ;; |
| 985 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 986 | mandir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 987 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 988 | -nfp | --nfp | --nf) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 989 | # Obsolete; use --without-fp. |
| 990 | with_fp=no ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 991 | |
| 992 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 993 | | --no-cr | --no-c | -n) |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 994 | no_create=yes ;; |
| 995 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 996 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 997 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 998 | no_recursion=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 999 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1000 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1001 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1002 | | --oldin | --oldi | --old | --ol | --o) |
| 1003 | ac_prev=oldincludedir ;; |
| 1004 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1005 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1006 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1007 | oldincludedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1008 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1009 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1010 | ac_prev=prefix ;; |
| 1011 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1012 | prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1013 | |
| 1014 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1015 | | --program-pre | --program-pr | --program-p) |
| 1016 | ac_prev=program_prefix ;; |
| 1017 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1018 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1019 | program_prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1020 | |
| 1021 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1022 | | --program-suf | --program-su | --program-s) |
| 1023 | ac_prev=program_suffix ;; |
| 1024 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1025 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1026 | program_suffix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1027 | |
| 1028 | -program-transform-name | --program-transform-name \ |
| 1029 | | --program-transform-nam | --program-transform-na \ |
| 1030 | | --program-transform-n | --program-transform- \ |
| 1031 | | --program-transform | --program-transfor \ |
| 1032 | | --program-transfo | --program-transf \ |
| 1033 | | --program-trans | --program-tran \ |
| 1034 | | --progr-tra | --program-tr | --program-t) |
| 1035 | ac_prev=program_transform_name ;; |
| 1036 | -program-transform-name=* | --program-transform-name=* \ |
| 1037 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1038 | | --program-transform-n=* | --program-transform-=* \ |
| 1039 | | --program-transform=* | --program-transfor=* \ |
| 1040 | | --program-transfo=* | --program-transf=* \ |
| 1041 | | --program-trans=* | --program-tran=* \ |
| 1042 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1043 | program_transform_name=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1044 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1045 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1046 | ac_prev=pdfdir ;; |
| 1047 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1048 | pdfdir=$ac_optarg ;; |
| 1049 | |
| 1050 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1051 | ac_prev=psdir ;; |
| 1052 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1053 | psdir=$ac_optarg ;; |
| 1054 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1055 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1056 | | -silent | --silent | --silen | --sile | --sil) |
| 1057 | silent=yes ;; |
| 1058 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1059 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1060 | ac_prev=sbindir ;; |
| 1061 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1062 | | --sbi=* | --sb=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1063 | sbindir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1064 | |
| 1065 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1066 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1067 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1068 | | --sha | --sh) |
| 1069 | ac_prev=sharedstatedir ;; |
| 1070 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1071 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1072 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1073 | | --sha=* | --sh=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1074 | sharedstatedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1075 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1076 | -site | --site | --sit) |
| 1077 | ac_prev=site ;; |
| 1078 | -site=* | --site=* | --sit=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1079 | site=$ac_optarg ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1080 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1081 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1082 | ac_prev=srcdir ;; |
| 1083 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1084 | srcdir=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1085 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1086 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1087 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1088 | ac_prev=sysconfdir ;; |
| 1089 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1090 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1091 | sysconfdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1092 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1093 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1094 | ac_prev=target_alias ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1095 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1096 | target_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1097 | |
| 1098 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1099 | verbose=yes ;; |
| 1100 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1101 | -version | --version | --versio | --versi | --vers | -V) |
| 1102 | ac_init_version=: ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1103 | |
| 1104 | -with-* | --with-*) |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 1105 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1106 | # Reject names that are not valid shell variable names. |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 1107 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 1108 | as_fn_error $? "invalid package name: $ac_useropt" |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 1109 | ac_useropt_orig=$ac_useropt |
| 1110 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1111 | case $ac_user_opts in |
| 1112 | *" |
| 1113 | "with_$ac_useropt" |
| 1114 | "*) ;; |
| 1115 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1116 | ac_unrecognized_sep=', ';; |
| 1117 | esac |
| 1118 | eval with_$ac_useropt=\$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1119 | |
| 1120 | -without-* | --without-*) |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 1121 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1122 | # Reject names that are not valid shell variable names. |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 1123 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 1124 | as_fn_error $? "invalid package name: $ac_useropt" |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 1125 | ac_useropt_orig=$ac_useropt |
| 1126 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1127 | case $ac_user_opts in |
| 1128 | *" |
| 1129 | "with_$ac_useropt" |
| 1130 | "*) ;; |
| 1131 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1132 | ac_unrecognized_sep=', ';; |
| 1133 | esac |
| 1134 | eval with_$ac_useropt=no ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1135 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1136 | --x) |
| 1137 | # Obsolete; use --with-x. |
| 1138 | with_x=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1139 | |
| 1140 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1141 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1142 | ac_prev=x_includes ;; |
| 1143 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1144 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1145 | x_includes=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1146 | |
| 1147 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1148 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1149 | ac_prev=x_libraries ;; |
| 1150 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1151 | | --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] | 1152 | x_libraries=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1153 | |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 1154 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
| 1155 | Try \`$0 --help' for more information" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1156 | ;; |
| 1157 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1158 | *=*) |
| 1159 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1160 | # Reject names that are not valid shell variable names. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 1161 | case $ac_envvar in #( |
| 1162 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 1163 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 1164 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1165 | eval $ac_envvar=\$ac_optarg |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1166 | export $ac_envvar ;; |
| 1167 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1168 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1169 | # FIXME: should be removed in autoconf 3.0. |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 1170 | $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] | 1171 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 1172 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 1173 | : "${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] | 1174 | ;; |
| 1175 | |
| 1176 | esac |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1177 | done |
| 1178 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1179 | if test -n "$ac_prev"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1180 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 1181 | as_fn_error $? "missing argument to $ac_option" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1182 | fi |
| 1183 | |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 1184 | if test -n "$ac_unrecognized_opts"; then |
| 1185 | case $enable_option_checking in |
| 1186 | no) ;; |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 1187 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 1188 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1189 | esac |
| 1190 | fi |
| 1191 | |
| 1192 | # Check all directory arguments for consistency. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1193 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1194 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1195 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1196 | libdir localedir mandir |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1197 | do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1198 | eval ac_val=\$$ac_var |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 1199 | # Remove trailing slashes. |
| 1200 | case $ac_val in |
| 1201 | */ ) |
| 1202 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1203 | eval $ac_var=\$ac_val;; |
| 1204 | esac |
| 1205 | # Be sure to have absolute directory names. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1206 | case $ac_val in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1207 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1208 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1209 | esac |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 1210 | 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] | 1211 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1212 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1213 | # There might be people who depend on the old broken behavior: `$host' |
| 1214 | # used to hold the argument of --host etc. |
| 1215 | # FIXME: To remove some day. |
| 1216 | build=$build_alias |
| 1217 | host=$host_alias |
| 1218 | target=$target_alias |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1219 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1220 | # FIXME: To remove some day. |
| 1221 | if test "x$host_alias" != x; then |
| 1222 | if test "x$build_alias" = x; then |
| 1223 | cross_compiling=maybe |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 1224 | $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. |
| 1225 | If a cross compiler is detected then cross compile mode will be used" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1226 | elif test "x$build_alias" != "x$host_alias"; then |
| 1227 | cross_compiling=yes |
| 1228 | fi |
| 1229 | fi |
| 1230 | |
| 1231 | ac_tool_prefix= |
| 1232 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1233 | |
| 1234 | test "$silent" = yes && exec 6>/dev/null |
| 1235 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1236 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1237 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1238 | ac_ls_di=`ls -di .` && |
| 1239 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 1240 | as_fn_error $? "working directory cannot be determined" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1241 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 1242 | as_fn_error $? "pwd does not report name of working directory" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1243 | |
| 1244 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1245 | # Find the source files, if location was not specified. |
| 1246 | if test -z "$srcdir"; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1247 | ac_srcdir_defaulted=yes |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1248 | # Try the directory containing this script, then the parent directory. |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 1249 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1250 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1251 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1252 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1253 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1254 | $as_echo X"$as_myself" | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1255 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1256 | s//\1/ |
| 1257 | q |
| 1258 | } |
| 1259 | /^X\(\/\/\)[^/].*/{ |
| 1260 | s//\1/ |
| 1261 | q |
| 1262 | } |
| 1263 | /^X\(\/\/\)$/{ |
| 1264 | s//\1/ |
| 1265 | q |
| 1266 | } |
| 1267 | /^X\(\/\).*/{ |
| 1268 | s//\1/ |
| 1269 | q |
| 1270 | } |
| 1271 | s/.*/./; q'` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1272 | srcdir=$ac_confdir |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1273 | if test ! -r "$srcdir/$ac_unique_file"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1274 | srcdir=.. |
| 1275 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1276 | else |
| 1277 | ac_srcdir_defaulted=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1278 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1279 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1280 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 1281 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1282 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1283 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1284 | ac_abs_confdir=`( |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 1285 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1286 | pwd)` |
| 1287 | # When building in place, set srcdir=. |
| 1288 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1289 | srcdir=. |
| 1290 | fi |
| 1291 | # Remove unnecessary trailing slashes from srcdir. |
| 1292 | # Double slashes in file names in object file debugging info |
| 1293 | # mess up M-x gdb in Emacs. |
| 1294 | case $srcdir in |
| 1295 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1296 | esac |
| 1297 | for ac_var in $ac_precious_vars; do |
| 1298 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1299 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1300 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1301 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1302 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1303 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1304 | # |
| 1305 | # Report the --help message. |
| 1306 | # |
| 1307 | if test "$ac_init_help" = "long"; then |
| 1308 | # Omit some internal or obsolete options to make the list less imposing. |
| 1309 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1310 | cat <<_ACEOF |
Christian Heimes | 70e5cab | 2008-12-03 18:18:23 +0000 | [diff] [blame] | 1311 | \`configure' configures python 3.1 to adapt to many kinds of systems. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1312 | |
| 1313 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1314 | |
| 1315 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1316 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1317 | |
| 1318 | Defaults for the options are specified in brackets. |
| 1319 | |
| 1320 | Configuration: |
| 1321 | -h, --help display this help and exit |
| 1322 | --help=short display options specific to this package |
| 1323 | --help=recursive display the short help of all the included packages |
| 1324 | -V, --version display version information and exit |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 1325 | -q, --quiet, --silent do not print \`checking ...' messages |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1326 | --cache-file=FILE cache test results in FILE [disabled] |
| 1327 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1328 | -n, --no-create do not create output files |
| 1329 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1330 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1331 | Installation directories: |
| 1332 | --prefix=PREFIX install architecture-independent files in PREFIX |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 1333 | [$ac_default_prefix] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1334 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 1335 | [PREFIX] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1336 | |
| 1337 | By default, \`make install' will install all the files in |
| 1338 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1339 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1340 | for instance \`--prefix=\$HOME'. |
| 1341 | |
| 1342 | For better control, use the options below. |
| 1343 | |
| 1344 | Fine tuning of the installation directories: |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 1345 | --bindir=DIR user executables [EPREFIX/bin] |
| 1346 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1347 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1348 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1349 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1350 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1351 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1352 | --includedir=DIR C header files [PREFIX/include] |
| 1353 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1354 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1355 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1356 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1357 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1358 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1359 | --docdir=DIR documentation root [DATAROOTDIR/doc/python] |
| 1360 | --htmldir=DIR html documentation [DOCDIR] |
| 1361 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1362 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1363 | --psdir=DIR ps documentation [DOCDIR] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1364 | _ACEOF |
| 1365 | |
| 1366 | cat <<\_ACEOF |
| 1367 | _ACEOF |
| 1368 | fi |
| 1369 | |
| 1370 | if test -n "$ac_init_help"; then |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1371 | case $ac_init_help in |
Christian Heimes | 70e5cab | 2008-12-03 18:18:23 +0000 | [diff] [blame] | 1372 | short | recursive ) echo "Configuration of python 3.1:";; |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1373 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1374 | cat <<\_ACEOF |
| 1375 | |
| 1376 | Optional Features: |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 1377 | --disable-option-checking ignore unrecognized --enable/--with options |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1378 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1379 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Christian Heimes | 68f5fbe | 2008-02-14 08:27:37 +0000 | [diff] [blame] | 1380 | --enable-universalsdk[=SDKDIR] |
Christian Heimes | 292d351 | 2008-02-03 16:51:08 +0000 | [diff] [blame] | 1381 | Build against Mac OS X 10.4u SDK (ppc/i386) |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1382 | --enable-framework[=INSTALLDIR] |
| 1383 | Build (MacOSX|Darwin) framework |
| 1384 | --enable-shared disable/enable building shared python library |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 1385 | --enable-profiling enable C-level code profiling |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1386 | --enable-ipv6 Enable ipv6 (with ipv4) support |
| 1387 | --disable-ipv6 Disable ipv6 support |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 1388 | --enable-big-digits[=BITS] |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 1389 | use big digits for Python longs [[BITS=30]] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1390 | |
| 1391 | Optional Packages: |
| 1392 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1393 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 1394 | --with-universal-archs=ARCH |
| 1395 | select architectures for universal build ("32-bit", |
Ronald Oussoren | 856624d | 2009-09-08 07:13:53 +0000 | [diff] [blame] | 1396 | "64-bit", "3-way", "intel" or "all") |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 1397 | --with-framework-name=FRAMEWORK |
| 1398 | specify an alternate name of the framework built |
| 1399 | with --enable-framework |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1400 | --without-gcc never use gcc |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 1401 | --with-cxx-main=<compiler> |
| 1402 | compile main() and link python executable with C++ |
| 1403 | compiler |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1404 | --with-suffix=.exe set executable suffix |
| 1405 | --with-pydebug build with Py_DEBUG defined |
| 1406 | --with-libs='lib1 ...' link against additional libs |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 1407 | --with-system-ffi build _ctypes module using an installed ffi library |
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 1408 | --with-dbmliborder=db1:db2:... |
| 1409 | order to check db backends for dbm. Valid value is a |
| 1410 | colon separated string with the backend names |
| 1411 | `ndbm', `gdbm' and `bdb'. |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1412 | --with-signal-module disable/enable signal module |
| 1413 | --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries |
| 1414 | --with(out)-threads[=DIRECTORY] |
| 1415 | disable/enable thread support |
| 1416 | --with(out)-thread[=DIRECTORY] |
| 1417 | deprecated; use --with(out)-threads |
| 1418 | --with-pth use GNU pth threading libraries |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1419 | --with(out)-doc-strings disable/enable documentation strings |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 1420 | --with(out)-tsc enable/disable timestamp counter profile |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1421 | --with(out)-pymalloc disable/enable specialized mallocs |
| 1422 | --with-wctype-functions use wctype.h functions |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1423 | --with-fpectl enable SIGFPE catching |
| 1424 | --with-libm=STRING math library |
| 1425 | --with-libc=STRING C library |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 1426 | --with-wide-unicode Use 4-byte Unicode characters (default is 2 bytes) |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 1427 | --with-computed-gotos Use computed gotos / threaded dispatch in evaluation |
| 1428 | loop (not available on all compilers) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1429 | |
| 1430 | Some influential environment variables: |
| 1431 | CC C compiler command |
| 1432 | CFLAGS C compiler flags |
| 1433 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1434 | nonstandard directory <lib dir> |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1435 | LIBS libraries to pass to the linker, e.g. -l<library> |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 1436 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1437 | you have headers in a nonstandard directory <include dir> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1438 | CPP C preprocessor |
| 1439 | |
| 1440 | Use these variables to override the choices made by `configure' or to help |
| 1441 | it to find libraries and programs with nonstandard names/locations. |
| 1442 | |
Georg Brandl | e2e1561 | 2009-05-20 18:25:10 +0000 | [diff] [blame] | 1443 | Report bugs to <http://bugs.python.org/>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1444 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1445 | ac_status=$? |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1446 | fi |
| 1447 | |
| 1448 | if test "$ac_init_help" = "recursive"; then |
| 1449 | # If there are subdirs, report their specific --help. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1450 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 1451 | test -d "$ac_dir" || |
| 1452 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1453 | continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1454 | ac_builddir=. |
| 1455 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1456 | case "$ac_dir" in |
| 1457 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1458 | *) |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 1459 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1460 | # A ".." for each directory in $ac_dir_suffix. |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 1461 | 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] | 1462 | case $ac_top_builddir_sub in |
| 1463 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1464 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1465 | esac ;; |
| 1466 | esac |
| 1467 | ac_abs_top_builddir=$ac_pwd |
| 1468 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1469 | # for backward compatibility: |
| 1470 | ac_top_builddir=$ac_top_build_prefix |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1471 | |
| 1472 | case $srcdir in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1473 | .) # We are building in place. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1474 | ac_srcdir=. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1475 | ac_top_srcdir=$ac_top_builddir_sub |
| 1476 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1477 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1478 | ac_srcdir=$srcdir$ac_dir_suffix; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1479 | ac_top_srcdir=$srcdir |
| 1480 | ac_abs_top_srcdir=$srcdir ;; |
| 1481 | *) # Relative name. |
| 1482 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1483 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1484 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1485 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1486 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1487 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1488 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1489 | # Check for guested configure. |
| 1490 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1491 | echo && |
| 1492 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1493 | elif test -f "$ac_srcdir/configure"; then |
| 1494 | echo && |
| 1495 | $SHELL "$ac_srcdir/configure" --help=recursive |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1496 | else |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 1497 | $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] | 1498 | fi || ac_status=$? |
| 1499 | cd "$ac_pwd" || { ac_status=$?; break; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1500 | done |
| 1501 | fi |
| 1502 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1503 | test -n "$ac_init_help" && exit $ac_status |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1504 | if $ac_init_version; then |
| 1505 | cat <<\_ACEOF |
Christian Heimes | 70e5cab | 2008-12-03 18:18:23 +0000 | [diff] [blame] | 1506 | python configure 3.1 |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 1507 | generated by GNU Autoconf 2.68 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1508 | |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 1509 | Copyright (C) 2010 Free Software Foundation, Inc. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1510 | This configure script is free software; the Free Software Foundation |
| 1511 | gives unlimited permission to copy, distribute and modify it. |
| 1512 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1513 | exit |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1514 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 1515 | |
| 1516 | ## ------------------------ ## |
| 1517 | ## Autoconf initialization. ## |
| 1518 | ## ------------------------ ## |
| 1519 | |
| 1520 | # ac_fn_c_try_compile LINENO |
| 1521 | # -------------------------- |
| 1522 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1523 | ac_fn_c_try_compile () |
| 1524 | { |
| 1525 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1526 | rm -f conftest.$ac_objext |
| 1527 | if { { ac_try="$ac_compile" |
| 1528 | case "(($ac_try" in |
| 1529 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1530 | *) ac_try_echo=$ac_try;; |
| 1531 | esac |
| 1532 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1533 | $as_echo "$ac_try_echo"; } >&5 |
| 1534 | (eval "$ac_compile") 2>conftest.err |
| 1535 | ac_status=$? |
| 1536 | if test -s conftest.err; then |
| 1537 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1538 | cat conftest.er1 >&5 |
| 1539 | mv -f conftest.er1 conftest.err |
| 1540 | fi |
| 1541 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1542 | test $ac_status = 0; } && { |
| 1543 | test -z "$ac_c_werror_flag" || |
| 1544 | test ! -s conftest.err |
| 1545 | } && test -s conftest.$ac_objext; then : |
| 1546 | ac_retval=0 |
| 1547 | else |
| 1548 | $as_echo "$as_me: failed program was:" >&5 |
| 1549 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1550 | |
| 1551 | ac_retval=1 |
| 1552 | fi |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 1553 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 1554 | as_fn_set_status $ac_retval |
| 1555 | |
| 1556 | } # ac_fn_c_try_compile |
| 1557 | |
| 1558 | # ac_fn_c_try_cpp LINENO |
| 1559 | # ---------------------- |
| 1560 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1561 | ac_fn_c_try_cpp () |
| 1562 | { |
| 1563 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1564 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1565 | case "(($ac_try" in |
| 1566 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1567 | *) ac_try_echo=$ac_try;; |
| 1568 | esac |
| 1569 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1570 | $as_echo "$ac_try_echo"; } >&5 |
| 1571 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1572 | ac_status=$? |
| 1573 | if test -s conftest.err; then |
| 1574 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1575 | cat conftest.er1 >&5 |
| 1576 | mv -f conftest.er1 conftest.err |
| 1577 | fi |
| 1578 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 1579 | test $ac_status = 0; } > conftest.i && { |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 1580 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 1581 | test ! -s conftest.err |
| 1582 | }; then : |
| 1583 | ac_retval=0 |
| 1584 | else |
| 1585 | $as_echo "$as_me: failed program was:" >&5 |
| 1586 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1587 | |
| 1588 | ac_retval=1 |
| 1589 | fi |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 1590 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 1591 | as_fn_set_status $ac_retval |
| 1592 | |
| 1593 | } # ac_fn_c_try_cpp |
| 1594 | |
| 1595 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
| 1596 | # ------------------------------------------------------- |
| 1597 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
| 1598 | # the include files in INCLUDES and setting the cache variable VAR |
| 1599 | # accordingly. |
| 1600 | ac_fn_c_check_header_mongrel () |
| 1601 | { |
| 1602 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 1603 | if eval \${$3+:} false; then : |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 1604 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1605 | $as_echo_n "checking for $2... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 1606 | if eval \${$3+:} false; then : |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 1607 | $as_echo_n "(cached) " >&6 |
| 1608 | fi |
| 1609 | eval ac_res=\$$3 |
| 1610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1611 | $as_echo "$ac_res" >&6; } |
| 1612 | else |
| 1613 | # Is the header compilable? |
| 1614 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
| 1615 | $as_echo_n "checking $2 usability... " >&6; } |
| 1616 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1617 | /* end confdefs.h. */ |
| 1618 | $4 |
| 1619 | #include <$2> |
| 1620 | _ACEOF |
| 1621 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1622 | ac_header_compiler=yes |
| 1623 | else |
| 1624 | ac_header_compiler=no |
| 1625 | fi |
| 1626 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
| 1628 | $as_echo "$ac_header_compiler" >&6; } |
| 1629 | |
| 1630 | # Is the header present? |
| 1631 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
| 1632 | $as_echo_n "checking $2 presence... " >&6; } |
| 1633 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1634 | /* end confdefs.h. */ |
| 1635 | #include <$2> |
| 1636 | _ACEOF |
| 1637 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 1638 | ac_header_preproc=yes |
| 1639 | else |
| 1640 | ac_header_preproc=no |
| 1641 | fi |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 1642 | rm -f conftest.err conftest.i conftest.$ac_ext |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 1643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
| 1644 | $as_echo "$ac_header_preproc" >&6; } |
| 1645 | |
| 1646 | # So? What about this header? |
| 1647 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
| 1648 | yes:no: ) |
| 1649 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 1650 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 1651 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1652 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1653 | ;; |
| 1654 | no:yes:* ) |
| 1655 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
| 1656 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
| 1657 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
| 1658 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
| 1659 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
| 1660 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
| 1661 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
| 1662 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
| 1663 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1664 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 1665 | ( $as_echo "## -------------------------------------- ## |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 1666 | ## Report this to http://bugs.python.org/ ## |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 1667 | ## -------------------------------------- ##" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 1668 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 1669 | ;; |
| 1670 | esac |
| 1671 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1672 | $as_echo_n "checking for $2... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 1673 | if eval \${$3+:} false; then : |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 1674 | $as_echo_n "(cached) " >&6 |
| 1675 | else |
| 1676 | eval "$3=\$ac_header_compiler" |
| 1677 | fi |
| 1678 | eval ac_res=\$$3 |
| 1679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1680 | $as_echo "$ac_res" >&6; } |
| 1681 | fi |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 1682 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 1683 | |
| 1684 | } # ac_fn_c_check_header_mongrel |
| 1685 | |
| 1686 | # ac_fn_c_try_run LINENO |
| 1687 | # ---------------------- |
| 1688 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
| 1689 | # that executables *can* be run. |
| 1690 | ac_fn_c_try_run () |
| 1691 | { |
| 1692 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1693 | if { { ac_try="$ac_link" |
| 1694 | case "(($ac_try" in |
| 1695 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1696 | *) ac_try_echo=$ac_try;; |
| 1697 | esac |
| 1698 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1699 | $as_echo "$ac_try_echo"; } >&5 |
| 1700 | (eval "$ac_link") 2>&5 |
| 1701 | ac_status=$? |
| 1702 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1703 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 1704 | { { case "(($ac_try" in |
| 1705 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1706 | *) ac_try_echo=$ac_try;; |
| 1707 | esac |
| 1708 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1709 | $as_echo "$ac_try_echo"; } >&5 |
| 1710 | (eval "$ac_try") 2>&5 |
| 1711 | ac_status=$? |
| 1712 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1713 | test $ac_status = 0; }; }; then : |
| 1714 | ac_retval=0 |
| 1715 | else |
| 1716 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 1717 | $as_echo "$as_me: failed program was:" >&5 |
| 1718 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1719 | |
| 1720 | ac_retval=$ac_status |
| 1721 | fi |
| 1722 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 1723 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 1724 | as_fn_set_status $ac_retval |
| 1725 | |
| 1726 | } # ac_fn_c_try_run |
| 1727 | |
| 1728 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 1729 | # ------------------------------------------------------- |
| 1730 | # Tests whether HEADER exists and can be compiled using the include files in |
| 1731 | # INCLUDES, setting the cache variable VAR accordingly. |
| 1732 | ac_fn_c_check_header_compile () |
| 1733 | { |
| 1734 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1735 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1736 | $as_echo_n "checking for $2... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 1737 | if eval \${$3+:} false; then : |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 1738 | $as_echo_n "(cached) " >&6 |
| 1739 | else |
| 1740 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1741 | /* end confdefs.h. */ |
| 1742 | $4 |
| 1743 | #include <$2> |
| 1744 | _ACEOF |
| 1745 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1746 | eval "$3=yes" |
| 1747 | else |
| 1748 | eval "$3=no" |
| 1749 | fi |
| 1750 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1751 | fi |
| 1752 | eval ac_res=\$$3 |
| 1753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1754 | $as_echo "$ac_res" >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 1755 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 1756 | |
| 1757 | } # ac_fn_c_check_header_compile |
| 1758 | |
| 1759 | # ac_fn_c_try_link LINENO |
| 1760 | # ----------------------- |
| 1761 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1762 | ac_fn_c_try_link () |
| 1763 | { |
| 1764 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1765 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 1766 | if { { ac_try="$ac_link" |
| 1767 | case "(($ac_try" in |
| 1768 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1769 | *) ac_try_echo=$ac_try;; |
| 1770 | esac |
| 1771 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1772 | $as_echo "$ac_try_echo"; } >&5 |
| 1773 | (eval "$ac_link") 2>conftest.err |
| 1774 | ac_status=$? |
| 1775 | if test -s conftest.err; then |
| 1776 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1777 | cat conftest.er1 >&5 |
| 1778 | mv -f conftest.er1 conftest.err |
| 1779 | fi |
| 1780 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1781 | test $ac_status = 0; } && { |
| 1782 | test -z "$ac_c_werror_flag" || |
| 1783 | test ! -s conftest.err |
| 1784 | } && test -s conftest$ac_exeext && { |
| 1785 | test "$cross_compiling" = yes || |
| 1786 | $as_test_x conftest$ac_exeext |
| 1787 | }; then : |
| 1788 | ac_retval=0 |
| 1789 | else |
| 1790 | $as_echo "$as_me: failed program was:" >&5 |
| 1791 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1792 | |
| 1793 | ac_retval=1 |
| 1794 | fi |
| 1795 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1796 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1797 | # interfere with the next link command; also delete a directory that is |
| 1798 | # left behind by Apple's compiler. We do this before executing the actions. |
| 1799 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 1800 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 1801 | as_fn_set_status $ac_retval |
| 1802 | |
| 1803 | } # ac_fn_c_try_link |
| 1804 | |
| 1805 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
| 1806 | # ------------------------------------------- |
| 1807 | # Tests whether TYPE exists after having included INCLUDES, setting cache |
| 1808 | # variable VAR accordingly. |
| 1809 | ac_fn_c_check_type () |
| 1810 | { |
| 1811 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1812 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1813 | $as_echo_n "checking for $2... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 1814 | if eval \${$3+:} false; then : |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 1815 | $as_echo_n "(cached) " >&6 |
| 1816 | else |
| 1817 | eval "$3=no" |
| 1818 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1819 | /* end confdefs.h. */ |
| 1820 | $4 |
| 1821 | int |
| 1822 | main () |
| 1823 | { |
| 1824 | if (sizeof ($2)) |
| 1825 | return 0; |
| 1826 | ; |
| 1827 | return 0; |
| 1828 | } |
| 1829 | _ACEOF |
| 1830 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1831 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1832 | /* end confdefs.h. */ |
| 1833 | $4 |
| 1834 | int |
| 1835 | main () |
| 1836 | { |
| 1837 | if (sizeof (($2))) |
| 1838 | return 0; |
| 1839 | ; |
| 1840 | return 0; |
| 1841 | } |
| 1842 | _ACEOF |
| 1843 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1844 | |
| 1845 | else |
| 1846 | eval "$3=yes" |
| 1847 | fi |
| 1848 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1849 | fi |
| 1850 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1851 | fi |
| 1852 | eval ac_res=\$$3 |
| 1853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1854 | $as_echo "$ac_res" >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 1855 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 1856 | |
| 1857 | } # ac_fn_c_check_type |
| 1858 | |
| 1859 | # ac_fn_c_find_uintX_t LINENO BITS VAR |
| 1860 | # ------------------------------------ |
| 1861 | # Finds an unsigned integer type with width BITS, setting cache variable VAR |
| 1862 | # accordingly. |
| 1863 | ac_fn_c_find_uintX_t () |
| 1864 | { |
| 1865 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1866 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 |
| 1867 | $as_echo_n "checking for uint$2_t... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 1868 | if eval \${$3+:} false; then : |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 1869 | $as_echo_n "(cached) " >&6 |
| 1870 | else |
| 1871 | eval "$3=no" |
| 1872 | # Order is important - never check a type that is potentially smaller |
| 1873 | # than half of the expected target width. |
| 1874 | for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ |
| 1875 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
| 1876 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1877 | /* end confdefs.h. */ |
| 1878 | $ac_includes_default |
| 1879 | int |
| 1880 | main () |
| 1881 | { |
| 1882 | static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; |
| 1883 | test_array [0] = 0 |
| 1884 | |
| 1885 | ; |
| 1886 | return 0; |
| 1887 | } |
| 1888 | _ACEOF |
| 1889 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1890 | case $ac_type in #( |
| 1891 | uint$2_t) : |
| 1892 | eval "$3=yes" ;; #( |
| 1893 | *) : |
| 1894 | eval "$3=\$ac_type" ;; |
| 1895 | esac |
| 1896 | fi |
| 1897 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 1898 | if eval test \"x\$"$3"\" = x"no"; then : |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 1899 | |
| 1900 | else |
| 1901 | break |
| 1902 | fi |
| 1903 | done |
| 1904 | fi |
| 1905 | eval ac_res=\$$3 |
| 1906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1907 | $as_echo "$ac_res" >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 1908 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 1909 | |
| 1910 | } # ac_fn_c_find_uintX_t |
| 1911 | |
| 1912 | # ac_fn_c_find_intX_t LINENO BITS VAR |
| 1913 | # ----------------------------------- |
| 1914 | # Finds a signed integer type with width BITS, setting cache variable VAR |
| 1915 | # accordingly. |
| 1916 | ac_fn_c_find_intX_t () |
| 1917 | { |
| 1918 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1919 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 |
| 1920 | $as_echo_n "checking for int$2_t... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 1921 | if eval \${$3+:} false; then : |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 1922 | $as_echo_n "(cached) " >&6 |
| 1923 | else |
| 1924 | eval "$3=no" |
| 1925 | # Order is important - never check a type that is potentially smaller |
| 1926 | # than half of the expected target width. |
| 1927 | for ac_type in int$2_t 'int' 'long int' \ |
| 1928 | 'long long int' 'short int' 'signed char'; do |
| 1929 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1930 | /* end confdefs.h. */ |
| 1931 | $ac_includes_default |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 1932 | enum { N = $2 / 2 - 1 }; |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 1933 | int |
| 1934 | main () |
| 1935 | { |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 1936 | static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 1937 | test_array [0] = 0 |
| 1938 | |
| 1939 | ; |
| 1940 | return 0; |
| 1941 | } |
| 1942 | _ACEOF |
| 1943 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1944 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1945 | /* end confdefs.h. */ |
| 1946 | $ac_includes_default |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 1947 | enum { N = $2 / 2 - 1 }; |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 1948 | int |
| 1949 | main () |
| 1950 | { |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 1951 | static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 1952 | < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; |
| 1953 | test_array [0] = 0 |
| 1954 | |
| 1955 | ; |
| 1956 | return 0; |
| 1957 | } |
| 1958 | _ACEOF |
| 1959 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1960 | |
| 1961 | else |
| 1962 | case $ac_type in #( |
| 1963 | int$2_t) : |
| 1964 | eval "$3=yes" ;; #( |
| 1965 | *) : |
| 1966 | eval "$3=\$ac_type" ;; |
| 1967 | esac |
| 1968 | fi |
| 1969 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1970 | fi |
| 1971 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 1972 | if eval test \"x\$"$3"\" = x"no"; then : |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 1973 | |
| 1974 | else |
| 1975 | break |
| 1976 | fi |
| 1977 | done |
| 1978 | fi |
| 1979 | eval ac_res=\$$3 |
| 1980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1981 | $as_echo "$ac_res" >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 1982 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 1983 | |
| 1984 | } # ac_fn_c_find_intX_t |
| 1985 | |
| 1986 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
| 1987 | # -------------------------------------------- |
| 1988 | # Tries to find the compile-time value of EXPR in a program that includes |
| 1989 | # INCLUDES, setting VAR accordingly. Returns whether the value could be |
| 1990 | # computed |
| 1991 | ac_fn_c_compute_int () |
| 1992 | { |
| 1993 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1994 | if test "$cross_compiling" = yes; then |
| 1995 | # Depending upon the size, compute the lo and hi bounds. |
| 1996 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1997 | /* end confdefs.h. */ |
| 1998 | $4 |
| 1999 | int |
| 2000 | main () |
| 2001 | { |
| 2002 | static int test_array [1 - 2 * !(($2) >= 0)]; |
| 2003 | test_array [0] = 0 |
| 2004 | |
| 2005 | ; |
| 2006 | return 0; |
| 2007 | } |
| 2008 | _ACEOF |
| 2009 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2010 | ac_lo=0 ac_mid=0 |
| 2011 | while :; do |
| 2012 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2013 | /* end confdefs.h. */ |
| 2014 | $4 |
| 2015 | int |
| 2016 | main () |
| 2017 | { |
| 2018 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
| 2019 | test_array [0] = 0 |
| 2020 | |
| 2021 | ; |
| 2022 | return 0; |
| 2023 | } |
| 2024 | _ACEOF |
| 2025 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2026 | ac_hi=$ac_mid; break |
| 2027 | else |
| 2028 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val |
| 2029 | if test $ac_lo -le $ac_mid; then |
| 2030 | ac_lo= ac_hi= |
| 2031 | break |
| 2032 | fi |
| 2033 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val |
| 2034 | fi |
| 2035 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2036 | done |
| 2037 | else |
| 2038 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2039 | /* end confdefs.h. */ |
| 2040 | $4 |
| 2041 | int |
| 2042 | main () |
| 2043 | { |
| 2044 | static int test_array [1 - 2 * !(($2) < 0)]; |
| 2045 | test_array [0] = 0 |
| 2046 | |
| 2047 | ; |
| 2048 | return 0; |
| 2049 | } |
| 2050 | _ACEOF |
| 2051 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2052 | ac_hi=-1 ac_mid=-1 |
| 2053 | while :; do |
| 2054 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2055 | /* end confdefs.h. */ |
| 2056 | $4 |
| 2057 | int |
| 2058 | main () |
| 2059 | { |
| 2060 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; |
| 2061 | test_array [0] = 0 |
| 2062 | |
| 2063 | ; |
| 2064 | return 0; |
| 2065 | } |
| 2066 | _ACEOF |
| 2067 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2068 | ac_lo=$ac_mid; break |
| 2069 | else |
| 2070 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val |
| 2071 | if test $ac_mid -le $ac_hi; then |
| 2072 | ac_lo= ac_hi= |
| 2073 | break |
| 2074 | fi |
| 2075 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val |
| 2076 | fi |
| 2077 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2078 | done |
| 2079 | else |
| 2080 | ac_lo= ac_hi= |
| 2081 | fi |
| 2082 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2083 | fi |
| 2084 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2085 | # Binary search between lo and hi bounds. |
| 2086 | while test "x$ac_lo" != "x$ac_hi"; do |
| 2087 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val |
| 2088 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2089 | /* end confdefs.h. */ |
| 2090 | $4 |
| 2091 | int |
| 2092 | main () |
| 2093 | { |
| 2094 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
| 2095 | test_array [0] = 0 |
| 2096 | |
| 2097 | ; |
| 2098 | return 0; |
| 2099 | } |
| 2100 | _ACEOF |
| 2101 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2102 | ac_hi=$ac_mid |
| 2103 | else |
| 2104 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val |
| 2105 | fi |
| 2106 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2107 | done |
| 2108 | case $ac_lo in #(( |
| 2109 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; |
| 2110 | '') ac_retval=1 ;; |
| 2111 | esac |
| 2112 | else |
| 2113 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2114 | /* end confdefs.h. */ |
| 2115 | $4 |
| 2116 | static long int longval () { return $2; } |
| 2117 | static unsigned long int ulongval () { return $2; } |
| 2118 | #include <stdio.h> |
| 2119 | #include <stdlib.h> |
| 2120 | int |
| 2121 | main () |
| 2122 | { |
| 2123 | |
| 2124 | FILE *f = fopen ("conftest.val", "w"); |
| 2125 | if (! f) |
| 2126 | return 1; |
| 2127 | if (($2) < 0) |
| 2128 | { |
| 2129 | long int i = longval (); |
| 2130 | if (i != ($2)) |
| 2131 | return 1; |
| 2132 | fprintf (f, "%ld", i); |
| 2133 | } |
| 2134 | else |
| 2135 | { |
| 2136 | unsigned long int i = ulongval (); |
| 2137 | if (i != ($2)) |
| 2138 | return 1; |
| 2139 | fprintf (f, "%lu", i); |
| 2140 | } |
| 2141 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 2142 | on some platforms. */ |
| 2143 | return ferror (f) || fclose (f) != 0; |
| 2144 | |
| 2145 | ; |
| 2146 | return 0; |
| 2147 | } |
| 2148 | _ACEOF |
| 2149 | if ac_fn_c_try_run "$LINENO"; then : |
| 2150 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 |
| 2151 | else |
| 2152 | ac_retval=1 |
| 2153 | fi |
| 2154 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 2155 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2156 | rm -f conftest.val |
| 2157 | |
| 2158 | fi |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 2159 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 2160 | as_fn_set_status $ac_retval |
| 2161 | |
| 2162 | } # ac_fn_c_compute_int |
| 2163 | |
| 2164 | # ac_fn_c_check_func LINENO FUNC VAR |
| 2165 | # ---------------------------------- |
| 2166 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 2167 | ac_fn_c_check_func () |
| 2168 | { |
| 2169 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2170 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2171 | $as_echo_n "checking for $2... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 2172 | if eval \${$3+:} false; then : |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 2173 | $as_echo_n "(cached) " >&6 |
| 2174 | else |
| 2175 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2176 | /* end confdefs.h. */ |
| 2177 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 2178 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 2179 | #define $2 innocuous_$2 |
| 2180 | |
| 2181 | /* System header to define __stub macros and hopefully few prototypes, |
| 2182 | which can conflict with char $2 (); below. |
| 2183 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2184 | <limits.h> exists even on freestanding compilers. */ |
| 2185 | |
| 2186 | #ifdef __STDC__ |
| 2187 | # include <limits.h> |
| 2188 | #else |
| 2189 | # include <assert.h> |
| 2190 | #endif |
| 2191 | |
| 2192 | #undef $2 |
| 2193 | |
| 2194 | /* Override any GCC internal prototype to avoid an error. |
| 2195 | Use char because int might match the return type of a GCC |
| 2196 | builtin and then its argument prototype would still apply. */ |
| 2197 | #ifdef __cplusplus |
| 2198 | extern "C" |
| 2199 | #endif |
| 2200 | char $2 (); |
| 2201 | /* The GNU C library defines this for functions which it implements |
| 2202 | to always fail with ENOSYS. Some functions are actually named |
| 2203 | something starting with __ and the normal name is an alias. */ |
| 2204 | #if defined __stub_$2 || defined __stub___$2 |
| 2205 | choke me |
| 2206 | #endif |
| 2207 | |
| 2208 | int |
| 2209 | main () |
| 2210 | { |
| 2211 | return $2 (); |
| 2212 | ; |
| 2213 | return 0; |
| 2214 | } |
| 2215 | _ACEOF |
| 2216 | if ac_fn_c_try_link "$LINENO"; then : |
| 2217 | eval "$3=yes" |
| 2218 | else |
| 2219 | eval "$3=no" |
| 2220 | fi |
| 2221 | rm -f core conftest.err conftest.$ac_objext \ |
| 2222 | conftest$ac_exeext conftest.$ac_ext |
| 2223 | fi |
| 2224 | eval ac_res=\$$3 |
| 2225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2226 | $as_echo "$ac_res" >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 2227 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 2228 | |
| 2229 | } # ac_fn_c_check_func |
| 2230 | |
| 2231 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
| 2232 | # ---------------------------------------------------- |
| 2233 | # Tries to find if the field MEMBER exists in type AGGR, after including |
| 2234 | # INCLUDES, setting cache variable VAR accordingly. |
| 2235 | ac_fn_c_check_member () |
| 2236 | { |
| 2237 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2238 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 |
| 2239 | $as_echo_n "checking for $2.$3... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 2240 | if eval \${$4+:} false; then : |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 2241 | $as_echo_n "(cached) " >&6 |
| 2242 | else |
| 2243 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2244 | /* end confdefs.h. */ |
| 2245 | $5 |
| 2246 | int |
| 2247 | main () |
| 2248 | { |
| 2249 | static $2 ac_aggr; |
| 2250 | if (ac_aggr.$3) |
| 2251 | return 0; |
| 2252 | ; |
| 2253 | return 0; |
| 2254 | } |
| 2255 | _ACEOF |
| 2256 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2257 | eval "$4=yes" |
| 2258 | else |
| 2259 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2260 | /* end confdefs.h. */ |
| 2261 | $5 |
| 2262 | int |
| 2263 | main () |
| 2264 | { |
| 2265 | static $2 ac_aggr; |
| 2266 | if (sizeof ac_aggr.$3) |
| 2267 | return 0; |
| 2268 | ; |
| 2269 | return 0; |
| 2270 | } |
| 2271 | _ACEOF |
| 2272 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2273 | eval "$4=yes" |
| 2274 | else |
| 2275 | eval "$4=no" |
| 2276 | fi |
| 2277 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2278 | fi |
| 2279 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2280 | fi |
| 2281 | eval ac_res=\$$4 |
| 2282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2283 | $as_echo "$ac_res" >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 2284 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 2285 | |
| 2286 | } # ac_fn_c_check_member |
| 2287 | |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 2288 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES |
| 2289 | # --------------------------------------------- |
| 2290 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR |
| 2291 | # accordingly. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 2292 | ac_fn_c_check_decl () |
| 2293 | { |
| 2294 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 2295 | as_decl_name=`echo $2|sed 's/ *(.*//'` |
| 2296 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` |
| 2297 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 |
| 2298 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } |
| 2299 | if eval \${$3+:} false; then : |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 2300 | $as_echo_n "(cached) " >&6 |
| 2301 | else |
| 2302 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2303 | /* end confdefs.h. */ |
| 2304 | $4 |
| 2305 | int |
| 2306 | main () |
| 2307 | { |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 2308 | #ifndef $as_decl_name |
| 2309 | #ifdef __cplusplus |
| 2310 | (void) $as_decl_use; |
| 2311 | #else |
| 2312 | (void) $as_decl_name; |
| 2313 | #endif |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 2314 | #endif |
| 2315 | |
| 2316 | ; |
| 2317 | return 0; |
| 2318 | } |
| 2319 | _ACEOF |
| 2320 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2321 | eval "$3=yes" |
| 2322 | else |
| 2323 | eval "$3=no" |
| 2324 | fi |
| 2325 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2326 | fi |
| 2327 | eval ac_res=\$$3 |
| 2328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2329 | $as_echo "$ac_res" >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 2330 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 2331 | |
| 2332 | } # ac_fn_c_check_decl |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2333 | cat >config.log <<_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2334 | This file contains any messages produced by compilers while |
| 2335 | running configure, to aid debugging if configure makes a mistake. |
| 2336 | |
Christian Heimes | 70e5cab | 2008-12-03 18:18:23 +0000 | [diff] [blame] | 2337 | It was created by python $as_me 3.1, which was |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 2338 | generated by GNU Autoconf 2.68. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2339 | |
| 2340 | $ $0 $@ |
| 2341 | |
| 2342 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2343 | exec 5>>config.log |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2344 | { |
| 2345 | cat <<_ASUNAME |
| 2346 | ## --------- ## |
| 2347 | ## Platform. ## |
| 2348 | ## --------- ## |
| 2349 | |
| 2350 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 2351 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 2352 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 2353 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 2354 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 2355 | |
| 2356 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 2357 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 2358 | |
| 2359 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 2360 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 2361 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2362 | /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] | 2363 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 2364 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 2365 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 2366 | |
| 2367 | _ASUNAME |
| 2368 | |
| 2369 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2370 | for as_dir in $PATH |
| 2371 | do |
| 2372 | IFS=$as_save_IFS |
| 2373 | test -z "$as_dir" && as_dir=. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 2374 | $as_echo "PATH: $as_dir" |
| 2375 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2376 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2377 | |
| 2378 | } >&5 |
| 2379 | |
| 2380 | cat >&5 <<_ACEOF |
| 2381 | |
| 2382 | |
| 2383 | ## ----------- ## |
| 2384 | ## Core tests. ## |
| 2385 | ## ----------- ## |
| 2386 | |
| 2387 | _ACEOF |
| 2388 | |
| 2389 | |
| 2390 | # Keep a trace of the command line. |
| 2391 | # 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] | 2392 | # 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] | 2393 | # Also quote any args containing shell meta-characters. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2394 | # Make two passes to allow for proper duplicate-argument suppression. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2395 | ac_configure_args= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2396 | ac_configure_args0= |
| 2397 | ac_configure_args1= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2398 | ac_must_keep_next=false |
| 2399 | for ac_pass in 1 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2400 | do |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2401 | for ac_arg |
| 2402 | do |
| 2403 | case $ac_arg in |
| 2404 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 2405 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 2406 | | -silent | --silent | --silen | --sile | --sil) |
| 2407 | continue ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2408 | *\'*) |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 2409 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2410 | esac |
| 2411 | case $ac_pass in |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 2412 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2413 | 2) |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 2414 | as_fn_append ac_configure_args1 " '$ac_arg'" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2415 | if test $ac_must_keep_next = true; then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2416 | ac_must_keep_next=false # Got value, back to normal. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2417 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2418 | case $ac_arg in |
| 2419 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 2420 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 2421 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 2422 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 2423 | case "$ac_configure_args0 " in |
| 2424 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 2425 | esac |
| 2426 | ;; |
| 2427 | -* ) ac_must_keep_next=true ;; |
| 2428 | esac |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2429 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 2430 | as_fn_append ac_configure_args " '$ac_arg'" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2431 | ;; |
| 2432 | esac |
| 2433 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2434 | done |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 2435 | { ac_configure_args0=; unset ac_configure_args0;} |
| 2436 | { ac_configure_args1=; unset ac_configure_args1;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2437 | |
| 2438 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 2439 | # config.log. We remove comments because anyway the quotes in there |
| 2440 | # would cause problems or look ugly. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2441 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 2442 | # 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] | 2443 | trap 'exit_status=$? |
| 2444 | # Save into config.log some information that might help in debugging. |
| 2445 | { |
| 2446 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2447 | |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 2448 | $as_echo "## ---------------- ## |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2449 | ## Cache variables. ## |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 2450 | ## ---------------- ##" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2451 | echo |
| 2452 | # The following way of writing the cache mishandles newlines in values, |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2453 | ( |
| 2454 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 2455 | eval ac_val=\$$ac_var |
| 2456 | case $ac_val in #( |
| 2457 | *${as_nl}*) |
| 2458 | case $ac_var in #( |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 2459 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 2460 | $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] | 2461 | esac |
| 2462 | case $ac_var in #( |
| 2463 | _ | IFS | as_nl) ;; #( |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 2464 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 2465 | *) { eval $ac_var=; unset $ac_var;} ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2466 | esac ;; |
| 2467 | esac |
| 2468 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2469 | (set) 2>&1 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2470 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 2471 | *${as_nl}ac_space=\ *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2472 | sed -n \ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2473 | "s/'\''/'\''\\\\'\'''\''/g; |
| 2474 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 2475 | ;; #( |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 2476 | *) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2477 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 2478 | ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2479 | esac | |
| 2480 | sort |
| 2481 | ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2482 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2483 | |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 2484 | $as_echo "## ----------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2485 | ## Output variables. ## |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 2486 | ## ----------------- ##" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2487 | echo |
| 2488 | for ac_var in $ac_subst_vars |
| 2489 | do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2490 | eval ac_val=\$$ac_var |
| 2491 | case $ac_val in |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 2492 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2493 | esac |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 2494 | $as_echo "$ac_var='\''$ac_val'\''" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2495 | done | sort |
| 2496 | echo |
| 2497 | |
| 2498 | if test -n "$ac_subst_files"; then |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 2499 | $as_echo "## ------------------- ## |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2500 | ## File substitutions. ## |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 2501 | ## ------------------- ##" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2502 | echo |
| 2503 | for ac_var in $ac_subst_files |
| 2504 | do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2505 | eval ac_val=\$$ac_var |
| 2506 | case $ac_val in |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 2507 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2508 | esac |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 2509 | $as_echo "$ac_var='\''$ac_val'\''" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2510 | done | sort |
| 2511 | echo |
| 2512 | fi |
| 2513 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2514 | if test -s confdefs.h; then |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 2515 | $as_echo "## ----------- ## |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2516 | ## confdefs.h. ## |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 2517 | ## ----------- ##" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2518 | echo |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2519 | cat confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2520 | echo |
| 2521 | fi |
| 2522 | test "$ac_signal" != 0 && |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 2523 | $as_echo "$as_me: caught signal $ac_signal" |
| 2524 | $as_echo "$as_me: exit $exit_status" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2525 | } >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2526 | rm -f core *.core core.conftest.* && |
| 2527 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2528 | exit $exit_status |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2529 | ' 0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2530 | for ac_signal in 1 2 13 15; do |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 2531 | 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] | 2532 | done |
| 2533 | ac_signal=0 |
| 2534 | |
| 2535 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2536 | rm -f -r conftest* confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2537 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 2538 | $as_echo "/* confdefs.h */" > confdefs.h |
| 2539 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2540 | # Predefined preprocessor variables. |
| 2541 | |
| 2542 | cat >>confdefs.h <<_ACEOF |
| 2543 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 2544 | _ACEOF |
| 2545 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2546 | cat >>confdefs.h <<_ACEOF |
| 2547 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 2548 | _ACEOF |
| 2549 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2550 | cat >>confdefs.h <<_ACEOF |
| 2551 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 2552 | _ACEOF |
| 2553 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2554 | cat >>confdefs.h <<_ACEOF |
| 2555 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 2556 | _ACEOF |
| 2557 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2558 | cat >>confdefs.h <<_ACEOF |
| 2559 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 2560 | _ACEOF |
| 2561 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 2562 | cat >>confdefs.h <<_ACEOF |
| 2563 | #define PACKAGE_URL "$PACKAGE_URL" |
| 2564 | _ACEOF |
| 2565 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2566 | |
| 2567 | # Let the site file select an alternate cache file if it wants to. |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 2568 | # Prefer an explicitly selected file to automatically selected ones. |
| 2569 | ac_site_file1=NONE |
| 2570 | ac_site_file2=NONE |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2571 | if test -n "$CONFIG_SITE"; then |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 2572 | # We do not want a PATH search for config.site. |
| 2573 | case $CONFIG_SITE in #(( |
| 2574 | -*) ac_site_file1=./$CONFIG_SITE;; |
| 2575 | */*) ac_site_file1=$CONFIG_SITE;; |
| 2576 | *) ac_site_file1=./$CONFIG_SITE;; |
| 2577 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2578 | elif test "x$prefix" != xNONE; then |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 2579 | ac_site_file1=$prefix/share/config.site |
| 2580 | ac_site_file2=$prefix/etc/config.site |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2581 | else |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 2582 | ac_site_file1=$ac_default_prefix/share/config.site |
| 2583 | ac_site_file2=$ac_default_prefix/etc/config.site |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2584 | fi |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 2585 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2586 | do |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 2587 | test "x$ac_site_file" = xNONE && continue |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 2588 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
| 2589 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 2590 | $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] | 2591 | sed 's/^/| /' "$ac_site_file" >&5 |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 2592 | . "$ac_site_file" \ |
| 2593 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2594 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2595 | as_fn_error $? "failed to load site script $ac_site_file |
| 2596 | See \`config.log' for more details" "$LINENO" 5; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2597 | fi |
| 2598 | done |
| 2599 | |
| 2600 | if test -r "$cache_file"; then |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 2601 | # Some versions of bash will fail to source /dev/null (special files |
| 2602 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 2603 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
| 2604 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 2605 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2606 | case $cache_file in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2607 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 2608 | *) . "./$cache_file";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2609 | esac |
| 2610 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2611 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 2612 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 2613 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2614 | >$cache_file |
| 2615 | fi |
| 2616 | |
| 2617 | # Check that the precious variables saved in the cache have kept the same |
| 2618 | # value. |
| 2619 | ac_cache_corrupted=false |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2620 | for ac_var in $ac_precious_vars; do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2621 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 2622 | eval ac_new_set=\$ac_env_${ac_var}_set |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2623 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 2624 | eval ac_new_val=\$ac_env_${ac_var}_value |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2625 | case $ac_old_set,$ac_new_set in |
| 2626 | set,) |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 2627 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 2628 | $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] | 2629 | ac_cache_corrupted=: ;; |
| 2630 | ,set) |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 2631 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 2632 | $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] | 2633 | ac_cache_corrupted=: ;; |
| 2634 | ,);; |
| 2635 | *) |
| 2636 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 2637 | # differences in whitespace do not lead to failure. |
| 2638 | ac_old_val_w=`echo x $ac_old_val` |
| 2639 | ac_new_val_w=`echo x $ac_new_val` |
| 2640 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 2641 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 2642 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 2643 | ac_cache_corrupted=: |
| 2644 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 2645 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 2646 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 2647 | eval $ac_var=\$ac_old_val |
| 2648 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 2649 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 2650 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 2651 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 2652 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2653 | fi;; |
| 2654 | esac |
| 2655 | # Pass precious variables to config.status. |
| 2656 | if test "$ac_new_set" = set; then |
| 2657 | case $ac_new_val in |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 2658 | *\'*) 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] | 2659 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 2660 | esac |
| 2661 | case " $ac_configure_args " in |
| 2662 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 2663 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2664 | esac |
| 2665 | fi |
| 2666 | done |
| 2667 | if $ac_cache_corrupted; then |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 2668 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 2669 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 2670 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 2671 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 2672 | 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] | 2673 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 2674 | ## -------------------- ## |
| 2675 | ## Main body of script. ## |
| 2676 | ## -------------------- ## |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2677 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2678 | ac_ext=c |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2679 | ac_cpp='$CPP $CPPFLAGS' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2680 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2681 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2682 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2683 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2684 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2685 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2686 | ac_config_headers="$ac_config_headers pyconfig.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2687 | |
| 2688 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2689 | |
Benjamin Peterson | d23f822 | 2009-04-05 19:13:16 +0000 | [diff] [blame] | 2690 | if test "$prefix" != "/"; then |
| 2691 | prefix=`echo "$prefix" | sed -e 's/\/$//g'` |
| 2692 | fi |
| 2693 | |
| 2694 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2695 | |
| 2696 | |
Martin v. Löwis | 8316feb | 2003-06-14 07:48:07 +0000 | [diff] [blame] | 2697 | # We don't use PACKAGE_ variables, and they cause conflicts |
| 2698 | # with other autoconf-based packages that include Python.h |
| 2699 | grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new |
| 2700 | rm confdefs.h |
| 2701 | mv confdefs.h.new confdefs.h |
| 2702 | |
Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 2703 | |
Christian Heimes | 70e5cab | 2008-12-03 18:18:23 +0000 | [diff] [blame] | 2704 | VERSION=3.1 |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 2705 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 2706 | |
| 2707 | SOVERSION=1.0 |
| 2708 | |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 2709 | # The later defininition of _XOPEN_SOURCE disables certain features |
| 2710 | # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone). |
| 2711 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 2712 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 2713 | |
| 2714 | |
Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 2715 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 2716 | # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable |
| 2717 | # them. |
| 2718 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 2719 | $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h |
Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 2720 | |
| 2721 | |
Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 2722 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 2723 | # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable |
| 2724 | # them. |
| 2725 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 2726 | $as_echo "#define __BSD_VISIBLE 1" >>confdefs.h |
Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 2727 | |
| 2728 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 2729 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 2730 | # u_int on Irix 5.3. Defining _BSD_TYPES brings it back. |
| 2731 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 2732 | $as_echo "#define _BSD_TYPES 1" >>confdefs.h |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 2733 | |
| 2734 | |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 2735 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 2736 | # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable |
| 2737 | # them. |
| 2738 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 2739 | $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 2740 | |
| 2741 | |
| 2742 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2743 | define_xopen_source=yes |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 2744 | |
Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 +0000 | [diff] [blame] | 2745 | # Arguments passed to configure. |
| 2746 | |
| 2747 | CONFIG_ARGS="$ac_configure_args" |
| 2748 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 2749 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-universalsdk" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 2750 | $as_echo_n "checking for --enable-universalsdk... " >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2751 | # Check whether --enable-universalsdk was given. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 2752 | if test "${enable_universalsdk+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2753 | enableval=$enable_universalsdk; |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2754 | case $enableval in |
| 2755 | yes) |
| 2756 | enableval=/Developer/SDKs/MacOSX10.4u.sdk |
Ronald Oussoren | d573681 | 2010-02-07 12:04:41 +0000 | [diff] [blame] | 2757 | if test ! -d "${enableval}" |
| 2758 | then |
| 2759 | enableval=/ |
| 2760 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2761 | ;; |
| 2762 | esac |
| 2763 | case $enableval in |
| 2764 | no) |
| 2765 | UNIVERSALSDK= |
| 2766 | enable_universalsdk= |
| 2767 | ;; |
| 2768 | *) |
| 2769 | UNIVERSALSDK=$enableval |
Ronald Oussoren | d573681 | 2010-02-07 12:04:41 +0000 | [diff] [blame] | 2770 | if test ! -d "${UNIVERSALSDK}" |
| 2771 | then |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 2772 | as_fn_error $? "--enable-universalsdk specifies non-existing SDK: ${UNIVERSALSDK}" "$LINENO" 5 |
Ronald Oussoren | d573681 | 2010-02-07 12:04:41 +0000 | [diff] [blame] | 2773 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2774 | ;; |
| 2775 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2776 | |
Ronald Oussoren | d573681 | 2010-02-07 12:04:41 +0000 | [diff] [blame] | 2777 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2778 | else |
| 2779 | |
| 2780 | UNIVERSALSDK= |
| 2781 | enable_universalsdk= |
| 2782 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2783 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2784 | |
Ronald Oussoren | d573681 | 2010-02-07 12:04:41 +0000 | [diff] [blame] | 2785 | if test -n "${UNIVERSALSDK}" |
| 2786 | then |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 2787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSALSDK}" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 2788 | $as_echo "${UNIVERSALSDK}" >&6; } |
Ronald Oussoren | d573681 | 2010-02-07 12:04:41 +0000 | [diff] [blame] | 2789 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 2790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 2791 | $as_echo "no" >&6; } |
Ronald Oussoren | d573681 | 2010-02-07 12:04:41 +0000 | [diff] [blame] | 2792 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2793 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2794 | |
Benjamin Peterson | 6794aa3 | 2008-07-16 20:33:37 +0000 | [diff] [blame] | 2795 | |
| 2796 | |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 2797 | UNIVERSAL_ARCHS="32-bit" |
Benjamin Peterson | e7e59c2 | 2010-03-23 21:05:56 +0000 | [diff] [blame] | 2798 | |
| 2799 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 2800 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-universal-archs" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 2801 | $as_echo_n "checking for --with-universal-archs... " >&6; } |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 2802 | |
| 2803 | # Check whether --with-universal-archs was given. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 2804 | if test "${with_universal_archs+set}" = set; then : |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 2805 | withval=$with_universal_archs; |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 2806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 2807 | $as_echo "$withval" >&6; } |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 2808 | UNIVERSAL_ARCHS="$withval" |
| 2809 | |
| 2810 | else |
| 2811 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 2812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: 32-bit" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 2813 | $as_echo "32-bit" >&6; } |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 2814 | |
| 2815 | fi |
| 2816 | |
| 2817 | |
| 2818 | |
| 2819 | |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 2820 | |
| 2821 | # Check whether --with-framework-name was given. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 2822 | if test "${with_framework_name+set}" = set; then : |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 2823 | withval=$with_framework_name; |
| 2824 | PYTHONFRAMEWORK=${withval} |
| 2825 | PYTHONFRAMEWORKDIR=${withval}.framework |
| 2826 | PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'` |
| 2827 | |
| 2828 | else |
| 2829 | |
| 2830 | PYTHONFRAMEWORK=Python |
| 2831 | PYTHONFRAMEWORKDIR=Python.framework |
| 2832 | PYTHONFRAMEWORKIDENTIFIER=org.python.python |
| 2833 | |
| 2834 | fi |
| 2835 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2836 | # Check whether --enable-framework was given. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 2837 | if test "${enable_framework+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2838 | enableval=$enable_framework; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2839 | case $enableval in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2840 | yes) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2841 | enableval=/Library/Frameworks |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2842 | esac |
| 2843 | case $enableval in |
| 2844 | no) |
| 2845 | PYTHONFRAMEWORK= |
| 2846 | PYTHONFRAMEWORKDIR=no-framework |
| 2847 | PYTHONFRAMEWORKPREFIX= |
| 2848 | PYTHONFRAMEWORKINSTALLDIR= |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2849 | FRAMEWORKINSTALLFIRST= |
| 2850 | FRAMEWORKINSTALLLAST= |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 2851 | FRAMEWORKALTINSTALLFIRST= |
| 2852 | FRAMEWORKALTINSTALLLAST= |
| 2853 | if test "x${prefix}" = "xNONE"; then |
| 2854 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
| 2855 | else |
| 2856 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
| 2857 | fi |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2858 | enable_framework= |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2859 | ;; |
| 2860 | *) |
| 2861 | PYTHONFRAMEWORKPREFIX=$enableval |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2862 | PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2863 | FRAMEWORKINSTALLFIRST="frameworkinstallstructure" |
Ronald Oussoren | f6ccbf6 | 2009-06-02 10:55:56 +0000 | [diff] [blame] | 2864 | FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure " |
Benjamin Peterson | e7e59c2 | 2010-03-23 21:05:56 +0000 | [diff] [blame] | 2865 | case "${UNIVERSAL_ARCHS}" in |
| 2866 | all|3-way|intel) |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 2867 | FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkinstallunixtools4way" |
Ronald Oussoren | e391835 | 2009-03-30 18:00:28 +0000 | [diff] [blame] | 2868 | FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkaltinstallunixtools4way" |
Benjamin Peterson | e7e59c2 | 2010-03-23 21:05:56 +0000 | [diff] [blame] | 2869 | ;; |
| 2870 | *) |
Ronald Oussoren | e391835 | 2009-03-30 18:00:28 +0000 | [diff] [blame] | 2871 | FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools" |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 2872 | FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools" |
Benjamin Peterson | e7e59c2 | 2010-03-23 21:05:56 +0000 | [diff] [blame] | 2873 | ;; |
| 2874 | esac |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 2875 | |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 2876 | if test "x${prefix}" = "xNONE" ; then |
| 2877 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
| 2878 | else |
| 2879 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
| 2880 | fi |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2881 | prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2882 | |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 2883 | # Add files for Mac specific code to the list of output |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2884 | # files: |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2885 | ac_config_files="$ac_config_files Mac/Makefile" |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2886 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2887 | ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile" |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2888 | |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 2889 | ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist" |
| 2890 | |
| 2891 | ac_config_files="$ac_config_files Mac/Resources/app/Info.plist" |
| 2892 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2893 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2894 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2895 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2896 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2897 | PYTHONFRAMEWORK= |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2898 | PYTHONFRAMEWORKDIR=no-framework |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2899 | PYTHONFRAMEWORKPREFIX= |
| 2900 | PYTHONFRAMEWORKINSTALLDIR= |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2901 | FRAMEWORKINSTALLFIRST= |
| 2902 | FRAMEWORKINSTALLLAST= |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 2903 | FRAMEWORKALTINSTALLFIRST= |
| 2904 | FRAMEWORKALTINSTALLLAST= |
| 2905 | if test "x${prefix}" = "xNONE" ; then |
| 2906 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
| 2907 | else |
| 2908 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
| 2909 | fi |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2910 | enable_framework= |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2911 | |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 2912 | if test "$UNIVERSAL_ARCHS" = "all" |
| 2913 | then |
| 2914 | FRAMEWORKINSTALLLAST=update4wayuniversal |
| 2915 | FRAMEWORKALTINSTALLLAST=update4wayuniversal |
| 2916 | fi |
| 2917 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2918 | fi |
| 2919 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2920 | |
| 2921 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2922 | |
| 2923 | |
| 2924 | |
| 2925 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2926 | |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 2927 | |
| 2928 | |
| 2929 | |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 2930 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2931 | ##AC_ARG_WITH(dyld, |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 2932 | ## AC_HELP_STRING(--with-dyld, |
| 2933 | ## Use (OpenStep|Rhapsody) dynamic linker)) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2934 | ## |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2935 | # Set name for machine-dependent library files |
| 2936 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 2937 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 2938 | $as_echo_n "checking MACHDEP... " >&6; } |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2939 | if test -z "$MACHDEP" |
| 2940 | then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2941 | ac_sys_system=`uname -s` |
Benjamin Peterson | a833206 | 2009-09-11 22:36:27 +0000 | [diff] [blame] | 2942 | if test "$ac_sys_system" = "AIX" \ |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 2943 | -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2944 | ac_sys_release=`uname -v` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2945 | else |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2946 | ac_sys_release=`uname -r` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2947 | fi |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2948 | ac_md_system=`echo $ac_sys_system | |
| 2949 | tr -d '/ ' | tr '[A-Z]' '[a-z]'` |
| 2950 | ac_md_release=`echo $ac_sys_release | |
Guido van Rossum | 67b2659 | 2001-10-20 14:21:45 +0000 | [diff] [blame] | 2951 | tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'` |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 2952 | MACHDEP="$ac_md_system$ac_md_release" |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2953 | |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 2954 | case $MACHDEP in |
Andrew M. Kuchling | 5a3e4cb | 2001-07-20 19:29:04 +0000 | [diff] [blame] | 2955 | cygwin*) MACHDEP="cygwin";; |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame] | 2956 | darwin*) MACHDEP="darwin";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 2957 | atheos*) MACHDEP="atheos";; |
Martin v. Löwis | f332228 | 2003-07-13 09:46:13 +0000 | [diff] [blame] | 2958 | irix646) MACHDEP="irix6";; |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 2959 | '') MACHDEP="unknown";; |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2960 | esac |
| 2961 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 2962 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2963 | # Some systems cannot stand _XOPEN_SOURCE being defined at all; they |
| 2964 | # disable features if it is defined, without any means to access these |
| 2965 | # features as extensions. For these systems, we skip the definition of |
| 2966 | # _XOPEN_SOURCE. Before adding a system to the list to gain access to |
| 2967 | # some feature, make sure there is no alternative way to access this |
| 2968 | # feature. Also, when using wildcards, make sure you have verified the |
| 2969 | # need for not defining _XOPEN_SOURCE on all systems matching the |
| 2970 | # wildcard, and that the wildcard does not include future systems |
| 2971 | # (which may remove their limitations). |
| 2972 | case $ac_sys_system/$ac_sys_release in |
| 2973 | # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined, |
| 2974 | # 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] | 2975 | # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish. |
Martin v. Löwis | 4d0a20a | 2010-02-15 21:46:27 +0000 | [diff] [blame] | 2976 | # In addition, Stefan Krah confirms that issue #1244610 exists through |
| 2977 | # OpenBSD 4.6, but is fixed in 4.7. |
| 2978 | OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0123456]) |
Christian Heimes | 5b5e81c | 2007-12-31 16:14:33 +0000 | [diff] [blame] | 2979 | define_xopen_source=no |
| 2980 | # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is |
| 2981 | # also defined. This can be overridden by defining _BSD_SOURCE |
| 2982 | # As this has a different meaning on Linux, only define it on OpenBSD |
| 2983 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 2984 | $as_echo "#define _BSD_SOURCE 1" >>confdefs.h |
Christian Heimes | 5b5e81c | 2007-12-31 16:14:33 +0000 | [diff] [blame] | 2985 | |
| 2986 | ;; |
Martin v. Löwis | 4d0a20a | 2010-02-15 21:46:27 +0000 | [diff] [blame] | 2987 | OpenBSD/4.[789]) |
Martin v. Löwis | f659422 | 2010-02-15 08:37:47 +0000 | [diff] [blame] | 2988 | # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is |
| 2989 | # also defined. This can be overridden by defining _BSD_SOURCE |
| 2990 | # As this has a different meaning on Linux, only define it on OpenBSD |
| 2991 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 2992 | $as_echo "#define _BSD_SOURCE 1" >>confdefs.h |
Martin v. Löwis | f659422 | 2010-02-15 08:37:47 +0000 | [diff] [blame] | 2993 | |
| 2994 | ;; |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 2995 | # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of |
| 2996 | # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by |
| 2997 | # Marc Recht |
Benjamin Peterson | f608c61 | 2008-11-16 18:33:53 +0000 | [diff] [blame] | 2998 | 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] | 2999 | define_xopen_source=no;; |
Martin v. Löwis | a9d7142 | 2003-03-28 18:43:31 +0000 | [diff] [blame] | 3000 | # On Solaris 2.6, sys/wait.h is inconsistent in the usage |
| 3001 | # of union __?sigval. Reported by Stuart Bishop. |
| 3002 | SunOS/5.6) |
| 3003 | define_xopen_source=no;; |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 3004 | # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE, |
| 3005 | # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice. |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3006 | # Reconfirmed for 7.1.4 by Martin v. Loewis. |
Martin v. Löwis | 253d1f4 | 2004-05-07 19:14:14 +0000 | [diff] [blame] | 3007 | OpenUNIX/8.0.0| UnixWare/7.1.[0-4]) |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 3008 | define_xopen_source=no;; |
| 3009 | # 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] | 3010 | # 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] | 3011 | SCO_SV/3.2) |
Martin v. Löwis | 53e73c3 | 2003-05-05 05:13:18 +0000 | [diff] [blame] | 3012 | define_xopen_source=no;; |
Martin v. Löwis | b37509b | 2008-11-04 20:45:29 +0000 | [diff] [blame] | 3013 | # On FreeBSD 4, the math functions C89 does not cover are never defined |
| 3014 | # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them. |
| 3015 | FreeBSD/4.*) |
| 3016 | define_xopen_source=no;; |
| 3017 | # On MacOS X 10.2, a bug in ncurses.h means that it craps out if |
| 3018 | # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which |
| 3019 | # identifies itself as Darwin/7.* |
| 3020 | # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE |
| 3021 | # disables platform specific features beyond repair. |
| 3022 | # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE |
| 3023 | # has no effect, don't bother defining them |
| 3024 | Darwin/[6789].*) |
Anthony Baxter | 6169c6b | 2003-10-04 07:46:23 +0000 | [diff] [blame] | 3025 | define_xopen_source=no;; |
Ronald Oussoren | d4be7a2 | 2010-03-09 06:41:58 +0000 | [diff] [blame] | 3026 | Darwin/1[0-9].*) |
Ronald Oussoren | 095d282 | 2010-03-08 07:03:14 +0000 | [diff] [blame] | 3027 | define_xopen_source=no;; |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 3028 | # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but |
| 3029 | # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined |
| 3030 | # 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] | 3031 | AIX/4) |
| 3032 | define_xopen_source=no;; |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 3033 | AIX/5) |
| 3034 | if test `uname -r` -eq 1; then |
| 3035 | define_xopen_source=no |
| 3036 | fi |
| 3037 | ;; |
Benjamin Peterson | de9c869 | 2008-07-01 18:23:09 +0000 | [diff] [blame] | 3038 | # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from |
| 3039 | # defining NI_NUMERICHOST. |
| 3040 | QNX/6.3.2) |
| 3041 | define_xopen_source=no |
| 3042 | ;; |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 3043 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3044 | esac |
| 3045 | |
| 3046 | if test $define_xopen_source = yes |
| 3047 | then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3048 | # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be |
| 3049 | # defined precisely as g++ defines it |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 3050 | # Furthermore, on Solaris 10, XPG6 requires the use of a C99 |
| 3051 | # compiler |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3052 | case $ac_sys_system/$ac_sys_release in |
Jesus Cea | 436709c | 2010-11-25 17:05:57 +0000 | [diff] [blame] | 3053 | SunOS/5.8|SunOS/5.9|SunOS/5.10|SunOS/5.11) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3054 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3055 | $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3056 | |
| 3057 | ;; |
| 3058 | *) |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3059 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3060 | $as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3061 | |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3062 | ;; |
| 3063 | esac |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3064 | |
| 3065 | # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires |
| 3066 | # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else |
| 3067 | # several APIs are not declared. Since this is also needed in some |
| 3068 | # cases for HP-UX, we define it globally. |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 3069 | # except for Solaris 10, where it must not be defined, |
| 3070 | # as it implies XPG4.2 |
| 3071 | case $ac_sys_system/$ac_sys_release in |
Jesus Cea | 436709c | 2010-11-25 17:05:57 +0000 | [diff] [blame] | 3072 | SunOS/5.10|SunOS/5.11) |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 3073 | ;; |
| 3074 | *) |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3075 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3076 | $as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3077 | |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 3078 | ;; |
| 3079 | esac |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3080 | |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 3081 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3082 | $as_echo "#define _POSIX_C_SOURCE 200112L" >>confdefs.h |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3083 | |
| 3084 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3085 | fi |
| 3086 | |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3087 | # |
| 3088 | # SGI compilers allow the specification of the both the ABI and the |
| 3089 | # ISA on the command line. Depending on the values of these switches, |
| 3090 | # different and often incompatable code will be generated. |
| 3091 | # |
| 3092 | # The SGI_ABI variable can be used to modify the CC and LDFLAGS and |
| 3093 | # thus supply support for various ABI/ISA combinations. The MACHDEP |
| 3094 | # variable is also adjusted. |
| 3095 | # |
| 3096 | |
| 3097 | if test ! -z "$SGI_ABI" |
| 3098 | then |
| 3099 | CC="cc $SGI_ABI" |
| 3100 | LDFLAGS="$SGI_ABI $LDFLAGS" |
| 3101 | MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'` |
| 3102 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACHDEP" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3104 | $as_echo "$MACHDEP" >&6; } |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3105 | |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3106 | # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET, |
| 3107 | # it may influence the way we can build extensions, so distutils |
| 3108 | # needs to check it |
| 3109 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3110 | |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3111 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET= |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3112 | EXPORT_MACOSX_DEPLOYMENT_TARGET='#' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3113 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3114 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking machine type as reported by uname -m" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3115 | $as_echo_n "checking machine type as reported by uname -m... " >&6; } |
Mark Dickinson | b0e2b4c | 2008-04-26 20:48:56 +0000 | [diff] [blame] | 3116 | ac_sys_machine=`uname -m` |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sys_machine" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3118 | $as_echo "$ac_sys_machine" >&6; } |
Mark Dickinson | b0e2b4c | 2008-04-26 20:48:56 +0000 | [diff] [blame] | 3119 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3120 | # checks for alternative programs |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3121 | |
| 3122 | # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just |
| 3123 | # for debug/optimization stuff. BASECFLAGS is for flags that are required |
| 3124 | # just to get things to compile and link. Users are free to override OPT |
| 3125 | # when running configure or make. The build should not break if they do. |
| 3126 | # BASECFLAGS should generally not be messed with, however. |
| 3127 | |
| 3128 | # XXX shouldn't some/most/all of this code be merged with the stuff later |
| 3129 | # on that fiddles with OPT and BASECFLAGS? |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3130 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --without-gcc" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3131 | $as_echo_n "checking for --without-gcc... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3132 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3133 | # Check whether --with-gcc was given. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3134 | if test "${with_gcc+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3135 | withval=$with_gcc; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3136 | case $withval in |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3137 | no) CC=${CC:-cc} |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3138 | without_gcc=yes;; |
| 3139 | yes) CC=gcc |
| 3140 | without_gcc=no;; |
| 3141 | *) CC=$withval |
| 3142 | without_gcc=$withval;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3143 | esac |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3144 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3145 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3146 | case $ac_sys_system in |
Antoine Pitrou | 6e41347 | 2010-09-21 15:23:10 +0000 | [diff] [blame] | 3147 | AIX*) CC=${CC:-xlc_r} |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 3148 | without_gcc=;; |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3149 | *) without_gcc=no;; |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 3150 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3151 | fi |
| 3152 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $without_gcc" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3154 | $as_echo "$without_gcc" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3155 | |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 3156 | # If the user switches compilers, we can't believe the cache |
| 3157 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" |
| 3158 | then |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 3159 | as_fn_error $? "cached CC is different -- throw away $cache_file |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3160 | (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] | 3161 | fi |
| 3162 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3163 | ac_ext=c |
| 3164 | ac_cpp='$CPP $CPPFLAGS' |
| 3165 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3166 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3167 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3168 | if test -n "$ac_tool_prefix"; then |
| 3169 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 3170 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3171 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3172 | $as_echo_n "checking for $ac_word... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 3173 | if ${ac_cv_prog_CC+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3174 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3175 | else |
| 3176 | if test -n "$CC"; then |
| 3177 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3178 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3179 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3180 | for as_dir in $PATH |
| 3181 | do |
| 3182 | IFS=$as_save_IFS |
| 3183 | test -z "$as_dir" && as_dir=. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3184 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3185 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3186 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3187 | $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] | 3188 | break 2 |
| 3189 | fi |
| 3190 | done |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3191 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3192 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3193 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3194 | fi |
| 3195 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3196 | CC=$ac_cv_prog_CC |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3197 | if test -n "$CC"; then |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3199 | $as_echo "$CC" >&6; } |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3200 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3202 | $as_echo "no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3203 | fi |
| 3204 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3205 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3206 | fi |
| 3207 | if test -z "$ac_cv_prog_CC"; then |
| 3208 | ac_ct_CC=$CC |
| 3209 | # Extract the first word of "gcc", so it can be a program name with args. |
| 3210 | set dummy gcc; ac_word=$2 |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3211 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3212 | $as_echo_n "checking for $ac_word... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 3213 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3214 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3215 | else |
| 3216 | if test -n "$ac_ct_CC"; then |
| 3217 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3218 | else |
| 3219 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3220 | for as_dir in $PATH |
| 3221 | do |
| 3222 | IFS=$as_save_IFS |
| 3223 | test -z "$as_dir" && as_dir=. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3224 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3225 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3226 | ac_cv_prog_ac_ct_CC="gcc" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3227 | $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] | 3228 | break 2 |
| 3229 | fi |
| 3230 | done |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3231 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3232 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3233 | |
| 3234 | fi |
| 3235 | fi |
| 3236 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3237 | if test -n "$ac_ct_CC"; then |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3239 | $as_echo "$ac_ct_CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3240 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3242 | $as_echo "no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3243 | fi |
| 3244 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3245 | if test "x$ac_ct_CC" = x; then |
| 3246 | CC="" |
| 3247 | else |
| 3248 | case $cross_compiling:$ac_tool_warned in |
| 3249 | yes:) |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3250 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3251 | $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] | 3252 | ac_tool_warned=yes ;; |
| 3253 | esac |
| 3254 | CC=$ac_ct_CC |
| 3255 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3256 | else |
| 3257 | CC="$ac_cv_prog_CC" |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3258 | fi |
| 3259 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3260 | if test -z "$CC"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3261 | if test -n "$ac_tool_prefix"; then |
| 3262 | # 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] | 3263 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3264 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3265 | $as_echo_n "checking for $ac_word... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 3266 | if ${ac_cv_prog_CC+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3267 | $as_echo_n "(cached) " >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3268 | else |
| 3269 | if test -n "$CC"; then |
| 3270 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3271 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3272 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3273 | for as_dir in $PATH |
| 3274 | do |
| 3275 | IFS=$as_save_IFS |
| 3276 | test -z "$as_dir" && as_dir=. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3277 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3278 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3279 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3280 | $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] | 3281 | break 2 |
| 3282 | fi |
| 3283 | done |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3284 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3285 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3286 | |
| 3287 | fi |
| 3288 | fi |
| 3289 | CC=$ac_cv_prog_CC |
| 3290 | if test -n "$CC"; then |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3292 | $as_echo "$CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3293 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3295 | $as_echo "no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3296 | fi |
| 3297 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3298 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3299 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3300 | fi |
| 3301 | if test -z "$CC"; then |
| 3302 | # Extract the first word of "cc", so it can be a program name with args. |
| 3303 | set dummy cc; ac_word=$2 |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3304 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3305 | $as_echo_n "checking for $ac_word... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 3306 | if ${ac_cv_prog_CC+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3307 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3308 | else |
| 3309 | if test -n "$CC"; then |
| 3310 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3311 | else |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3312 | ac_prog_rejected=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3313 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3314 | for as_dir in $PATH |
| 3315 | do |
| 3316 | IFS=$as_save_IFS |
| 3317 | test -z "$as_dir" && as_dir=. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3318 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3319 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3320 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 3321 | ac_prog_rejected=yes |
| 3322 | continue |
| 3323 | fi |
| 3324 | ac_cv_prog_CC="cc" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3325 | $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] | 3326 | break 2 |
| 3327 | fi |
| 3328 | done |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3329 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3330 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3331 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3332 | if test $ac_prog_rejected = yes; then |
| 3333 | # We found a bogon in the path, so make sure we never use it. |
| 3334 | set dummy $ac_cv_prog_CC |
| 3335 | shift |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3336 | if test $# != 0; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3337 | # We chose a different compiler from the bogus one. |
| 3338 | # However, it has the same basename, so the bogon will be chosen |
| 3339 | # first if we set CC to just the basename; use the full file name. |
| 3340 | shift |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3341 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3342 | fi |
| 3343 | fi |
| 3344 | fi |
| 3345 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3346 | CC=$ac_cv_prog_CC |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3347 | if test -n "$CC"; then |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3349 | $as_echo "$CC" >&6; } |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3350 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3352 | $as_echo "no" >&6; } |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3353 | fi |
| 3354 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3355 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3356 | fi |
| 3357 | if test -z "$CC"; then |
| 3358 | if test -n "$ac_tool_prefix"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3359 | for ac_prog in cl.exe |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3360 | do |
| 3361 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3362 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3363 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3364 | $as_echo_n "checking for $ac_word... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 3365 | if ${ac_cv_prog_CC+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3366 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3367 | else |
| 3368 | if test -n "$CC"; then |
| 3369 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3370 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3371 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3372 | for as_dir in $PATH |
| 3373 | do |
| 3374 | IFS=$as_save_IFS |
| 3375 | test -z "$as_dir" && as_dir=. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3376 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3377 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3378 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3379 | $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] | 3380 | break 2 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3381 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3382 | done |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3383 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3384 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3385 | |
| 3386 | fi |
| 3387 | fi |
| 3388 | CC=$ac_cv_prog_CC |
| 3389 | if test -n "$CC"; then |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3391 | $as_echo "$CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3392 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3393 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3394 | $as_echo "no" >&6; } |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3395 | fi |
| 3396 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3397 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3398 | test -n "$CC" && break |
| 3399 | done |
| 3400 | fi |
| 3401 | if test -z "$CC"; then |
| 3402 | ac_ct_CC=$CC |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3403 | for ac_prog in cl.exe |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3404 | do |
| 3405 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3406 | set dummy $ac_prog; ac_word=$2 |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3407 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3408 | $as_echo_n "checking for $ac_word... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 3409 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3410 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3411 | else |
| 3412 | if test -n "$ac_ct_CC"; then |
| 3413 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3414 | else |
| 3415 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3416 | for as_dir in $PATH |
| 3417 | do |
| 3418 | IFS=$as_save_IFS |
| 3419 | test -z "$as_dir" && as_dir=. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3420 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3421 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3422 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3423 | $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] | 3424 | break 2 |
| 3425 | fi |
| 3426 | done |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3427 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3428 | IFS=$as_save_IFS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3429 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3430 | fi |
| 3431 | fi |
| 3432 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3433 | if test -n "$ac_ct_CC"; then |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3434 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3435 | $as_echo "$ac_ct_CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3436 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3438 | $as_echo "no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3439 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3440 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3441 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3442 | test -n "$ac_ct_CC" && break |
| 3443 | done |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3444 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3445 | if test "x$ac_ct_CC" = x; then |
| 3446 | CC="" |
| 3447 | else |
| 3448 | case $cross_compiling:$ac_tool_warned in |
| 3449 | yes:) |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3450 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3451 | $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] | 3452 | ac_tool_warned=yes ;; |
| 3453 | esac |
| 3454 | CC=$ac_ct_CC |
| 3455 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3456 | fi |
| 3457 | |
| 3458 | fi |
| 3459 | |
| 3460 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3461 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3462 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 3463 | as_fn_error $? "no acceptable C compiler found in \$PATH |
| 3464 | See \`config.log' for more details" "$LINENO" 5; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3465 | |
| 3466 | # Provide some information about the compiler. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3467 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3468 | set X $ac_compile |
| 3469 | ac_compiler=$2 |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3470 | for ac_option in --version -v -V -qversion; do |
| 3471 | { { ac_try="$ac_compiler $ac_option >&5" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3472 | case "(($ac_try" in |
| 3473 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3474 | *) ac_try_echo=$ac_try;; |
| 3475 | esac |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3476 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3477 | $as_echo "$ac_try_echo"; } >&5 |
| 3478 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3479 | ac_status=$? |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3480 | if test -s conftest.err; then |
| 3481 | sed '10a\ |
| 3482 | ... rest of stderr output deleted ... |
| 3483 | 10q' conftest.err >conftest.er1 |
| 3484 | cat conftest.er1 >&5 |
| 3485 | fi |
| 3486 | rm -f conftest.er1 conftest.err |
| 3487 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3488 | test $ac_status = 0; } |
| 3489 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3490 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3491 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3492 | /* end confdefs.h. */ |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3493 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3494 | int |
| 3495 | main () |
| 3496 | { |
| 3497 | |
| 3498 | ; |
| 3499 | return 0; |
| 3500 | } |
| 3501 | _ACEOF |
| 3502 | ac_clean_files_save=$ac_clean_files |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3503 | 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] | 3504 | # Try to create an executable without -o first, disregard a.out. |
| 3505 | # It will help us diagnose broken compilers, and finding out an intuition |
| 3506 | # of exeext. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3507 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 3508 | $as_echo_n "checking whether the C compiler works... " >&6; } |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3509 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 3510 | |
| 3511 | # The possible output files: |
| 3512 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 3513 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3514 | ac_rmfiles= |
| 3515 | for ac_file in $ac_files |
| 3516 | do |
| 3517 | case $ac_file in |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3518 | *.$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] | 3519 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 3520 | esac |
| 3521 | done |
| 3522 | rm -f $ac_rmfiles |
| 3523 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3524 | if { { ac_try="$ac_link_default" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3525 | case "(($ac_try" in |
| 3526 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3527 | *) ac_try_echo=$ac_try;; |
| 3528 | esac |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3529 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3530 | $as_echo "$ac_try_echo"; } >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3531 | (eval "$ac_link_default") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3532 | ac_status=$? |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3533 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3534 | test $ac_status = 0; }; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3535 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 3536 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 3537 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 3538 | # so that the user can short-circuit this test for compilers unknown to |
| 3539 | # Autoconf. |
| 3540 | for ac_file in $ac_files '' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3541 | do |
| 3542 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3543 | case $ac_file in |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3544 | *.$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] | 3545 | ;; |
| 3546 | [ab].out ) |
| 3547 | # We found the default executable, but exeext='' is most |
| 3548 | # certainly right. |
| 3549 | break;; |
| 3550 | *.* ) |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3551 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3552 | then :; else |
| 3553 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3554 | fi |
| 3555 | # We set ac_cv_exeext here because the later test for it is not |
| 3556 | # safe: cross compilers may not add the suffix if given an `-o' |
| 3557 | # argument, so we may need to know it at that point already. |
| 3558 | # Even if this section looks crufty: it has the advantage of |
| 3559 | # actually working. |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 3560 | break;; |
| 3561 | * ) |
| 3562 | break;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3563 | esac |
| 3564 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3565 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 3566 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3567 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3568 | ac_file='' |
| 3569 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3570 | if test -z "$ac_file"; then : |
| 3571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3572 | $as_echo "no" >&6; } |
| 3573 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3574 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3575 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3576 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3577 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 3578 | as_fn_error 77 "C compiler cannot create executables |
| 3579 | See \`config.log' for more details" "$LINENO" 5; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3580 | else |
| 3581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3582 | $as_echo "yes" >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3583 | fi |
| 3584 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 3585 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
| 3586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 3587 | $as_echo "$ac_file" >&6; } |
| 3588 | ac_exeext=$ac_cv_exeext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3589 | |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3590 | 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] | 3591 | ac_clean_files=$ac_clean_files_save |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3592 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3593 | $as_echo_n "checking for suffix of executables... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3594 | if { { ac_try="$ac_link" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3595 | case "(($ac_try" in |
| 3596 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3597 | *) ac_try_echo=$ac_try;; |
| 3598 | esac |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3599 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3600 | $as_echo "$ac_try_echo"; } >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3601 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3602 | ac_status=$? |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3603 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3604 | test $ac_status = 0; }; then : |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 3605 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 3606 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 3607 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 3608 | # `rm'. |
| 3609 | for ac_file in conftest.exe conftest conftest.*; do |
| 3610 | test -f "$ac_file" || continue |
| 3611 | case $ac_file in |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3612 | *.$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] | 3613 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3614 | break;; |
| 3615 | * ) break;; |
| 3616 | esac |
| 3617 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3618 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3619 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3620 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 3621 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
| 3622 | See \`config.log' for more details" "$LINENO" 5; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3623 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3624 | rm -f conftest conftest$ac_cv_exeext |
| 3625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3626 | $as_echo "$ac_cv_exeext" >&6; } |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 3627 | |
| 3628 | rm -f conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3629 | EXEEXT=$ac_cv_exeext |
| 3630 | ac_exeext=$EXEEXT |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3631 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3632 | /* end confdefs.h. */ |
| 3633 | #include <stdio.h> |
| 3634 | int |
| 3635 | main () |
| 3636 | { |
| 3637 | FILE *f = fopen ("conftest.out", "w"); |
| 3638 | return ferror (f) || fclose (f) != 0; |
| 3639 | |
| 3640 | ; |
| 3641 | return 0; |
| 3642 | } |
| 3643 | _ACEOF |
| 3644 | ac_clean_files="$ac_clean_files conftest.out" |
| 3645 | # Check that the compiler produces executables we can run. If not, either |
| 3646 | # the compiler is broken, or we cross compile. |
| 3647 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 3648 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 3649 | if test "$cross_compiling" != yes; then |
| 3650 | { { ac_try="$ac_link" |
| 3651 | case "(($ac_try" in |
| 3652 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3653 | *) ac_try_echo=$ac_try;; |
| 3654 | esac |
| 3655 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3656 | $as_echo "$ac_try_echo"; } >&5 |
| 3657 | (eval "$ac_link") 2>&5 |
| 3658 | ac_status=$? |
| 3659 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3660 | test $ac_status = 0; } |
| 3661 | if { ac_try='./conftest$ac_cv_exeext' |
| 3662 | { { case "(($ac_try" in |
| 3663 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3664 | *) ac_try_echo=$ac_try;; |
| 3665 | esac |
| 3666 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3667 | $as_echo "$ac_try_echo"; } >&5 |
| 3668 | (eval "$ac_try") 2>&5 |
| 3669 | ac_status=$? |
| 3670 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3671 | test $ac_status = 0; }; }; then |
| 3672 | cross_compiling=no |
| 3673 | else |
| 3674 | if test "$cross_compiling" = maybe; then |
| 3675 | cross_compiling=yes |
| 3676 | else |
| 3677 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3678 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 3679 | as_fn_error $? "cannot run C compiled programs. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3680 | If you meant to cross compile, use \`--host'. |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 3681 | See \`config.log' for more details" "$LINENO" 5; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3682 | fi |
| 3683 | fi |
| 3684 | fi |
| 3685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 3686 | $as_echo "$cross_compiling" >&6; } |
| 3687 | |
| 3688 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
| 3689 | ac_clean_files=$ac_clean_files_save |
| 3690 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3691 | $as_echo_n "checking for suffix of object files... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 3692 | if ${ac_cv_objext+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3693 | $as_echo_n "(cached) " >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3694 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3695 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 3696 | /* end confdefs.h. */ |
| 3697 | |
| 3698 | int |
| 3699 | main () |
| 3700 | { |
| 3701 | |
| 3702 | ; |
| 3703 | return 0; |
| 3704 | } |
| 3705 | _ACEOF |
| 3706 | rm -f conftest.o conftest.obj |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3707 | if { { ac_try="$ac_compile" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3708 | case "(($ac_try" in |
| 3709 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3710 | *) ac_try_echo=$ac_try;; |
| 3711 | esac |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3712 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3713 | $as_echo "$ac_try_echo"; } >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3714 | (eval "$ac_compile") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3715 | ac_status=$? |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3716 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3717 | test $ac_status = 0; }; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3718 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 3719 | test -f "$ac_file" || continue; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3720 | case $ac_file in |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3721 | *.$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] | 3722 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 3723 | break;; |
| 3724 | esac |
| 3725 | done |
| 3726 | else |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3727 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3728 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3729 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3730 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3731 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 3732 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
| 3733 | See \`config.log' for more details" "$LINENO" 5; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3734 | fi |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 3735 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3736 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3738 | $as_echo "$ac_cv_objext" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3739 | OBJEXT=$ac_cv_objext |
| 3740 | ac_objext=$OBJEXT |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3741 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3742 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 3743 | if ${ac_cv_c_compiler_gnu+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3744 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3745 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3746 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3747 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3748 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3749 | int |
| 3750 | main () |
| 3751 | { |
| 3752 | #ifndef __GNUC__ |
| 3753 | choke me |
| 3754 | #endif |
| 3755 | |
| 3756 | ; |
| 3757 | return 0; |
| 3758 | } |
| 3759 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3760 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3761 | ac_compiler_gnu=yes |
| 3762 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3763 | ac_compiler_gnu=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3764 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3765 | 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] | 3766 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 3767 | |
| 3768 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3770 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 3771 | if test $ac_compiler_gnu = yes; then |
| 3772 | GCC=yes |
| 3773 | else |
| 3774 | GCC= |
| 3775 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3776 | ac_test_CFLAGS=${CFLAGS+set} |
| 3777 | ac_save_CFLAGS=$CFLAGS |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3778 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3779 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 3780 | if ${ac_cv_prog_cc_g+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3781 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3782 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3783 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3784 | ac_c_werror_flag=yes |
| 3785 | ac_cv_prog_cc_g=no |
| 3786 | CFLAGS="-g" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3787 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3788 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3789 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3790 | int |
| 3791 | main () |
| 3792 | { |
| 3793 | |
| 3794 | ; |
| 3795 | return 0; |
| 3796 | } |
| 3797 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3798 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3799 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3800 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3801 | CFLAGS="" |
| 3802 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3803 | /* end confdefs.h. */ |
| 3804 | |
| 3805 | int |
| 3806 | main () |
| 3807 | { |
| 3808 | |
| 3809 | ; |
| 3810 | return 0; |
| 3811 | } |
| 3812 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3813 | if ac_fn_c_try_compile "$LINENO"; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3814 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3815 | else |
| 3816 | ac_c_werror_flag=$ac_save_c_werror_flag |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3817 | CFLAGS="-g" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3818 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3819 | /* end confdefs.h. */ |
| 3820 | |
| 3821 | int |
| 3822 | main () |
| 3823 | { |
| 3824 | |
| 3825 | ; |
| 3826 | return 0; |
| 3827 | } |
| 3828 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3829 | if ac_fn_c_try_compile "$LINENO"; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3830 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3831 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3832 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3833 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3834 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3835 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3836 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3837 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3838 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3840 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3841 | if test "$ac_test_CFLAGS" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3842 | CFLAGS=$ac_save_CFLAGS |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3843 | elif test $ac_cv_prog_cc_g = yes; then |
| 3844 | if test "$GCC" = yes; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3845 | CFLAGS="-g -O2" |
| 3846 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3847 | CFLAGS="-g" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3848 | fi |
| 3849 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3850 | if test "$GCC" = yes; then |
| 3851 | CFLAGS="-O2" |
| 3852 | else |
| 3853 | CFLAGS= |
| 3854 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3855 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3856 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3857 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 3858 | if ${ac_cv_prog_cc_c89+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3859 | $as_echo_n "(cached) " >&6 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3860 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3861 | ac_cv_prog_cc_c89=no |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3862 | ac_save_CC=$CC |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3863 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3864 | /* end confdefs.h. */ |
| 3865 | #include <stdarg.h> |
| 3866 | #include <stdio.h> |
| 3867 | #include <sys/types.h> |
| 3868 | #include <sys/stat.h> |
| 3869 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3870 | struct buf { int x; }; |
| 3871 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3872 | static char *e (p, i) |
| 3873 | char **p; |
| 3874 | int i; |
| 3875 | { |
| 3876 | return p[i]; |
| 3877 | } |
| 3878 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3879 | { |
| 3880 | char *s; |
| 3881 | va_list v; |
| 3882 | va_start (v,p); |
| 3883 | s = g (p, va_arg (v,int)); |
| 3884 | va_end (v); |
| 3885 | return s; |
| 3886 | } |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3887 | |
| 3888 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3889 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3890 | These don't provoke an error unfortunately, instead are silently treated |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3891 | 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] | 3892 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3893 | 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] | 3894 | that's true only with -std. */ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3895 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3896 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3897 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3898 | inside strings and character constants. */ |
| 3899 | #define FOO(x) 'x' |
| 3900 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3901 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3902 | int test (int i, double x); |
| 3903 | struct s1 {int (*f) (int a);}; |
| 3904 | struct s2 {int (*f) (double a);}; |
| 3905 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3906 | int argc; |
| 3907 | char **argv; |
| 3908 | int |
| 3909 | main () |
| 3910 | { |
| 3911 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3912 | ; |
| 3913 | return 0; |
| 3914 | } |
| 3915 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3916 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3917 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3918 | do |
| 3919 | CC="$ac_save_CC $ac_arg" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3920 | if ac_fn_c_try_compile "$LINENO"; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3921 | ac_cv_prog_cc_c89=$ac_arg |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3922 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3923 | rm -f core conftest.err conftest.$ac_objext |
| 3924 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3925 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3926 | rm -f conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3927 | CC=$ac_save_CC |
| 3928 | |
| 3929 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3930 | # AC_CACHE_VAL |
| 3931 | case "x$ac_cv_prog_cc_c89" in |
| 3932 | x) |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3934 | $as_echo "none needed" >&6; } ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3935 | xno) |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3937 | $as_echo "unsupported" >&6; } ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3938 | *) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3939 | CC="$CC $ac_cv_prog_cc_c89" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3941 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3942 | esac |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3943 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3944 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3945 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3946 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3947 | ac_ext=c |
| 3948 | ac_cpp='$CPP $CPPFLAGS' |
| 3949 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3950 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3951 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3952 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3953 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3954 | |
| 3955 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3956 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-cxx-main=<compiler>" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3957 | $as_echo_n "checking for --with-cxx-main=<compiler>... " >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3958 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3959 | # Check whether --with-cxx_main was given. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3960 | if test "${with_cxx_main+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3961 | withval=$with_cxx_main; |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3962 | |
| 3963 | case $withval in |
| 3964 | no) with_cxx_main=no |
| 3965 | MAINCC='$(CC)';; |
| 3966 | yes) with_cxx_main=yes |
| 3967 | MAINCC='$(CXX)';; |
| 3968 | *) with_cxx_main=yes |
| 3969 | MAINCC=$withval |
| 3970 | if test -z "$CXX" |
| 3971 | then |
| 3972 | CXX=$withval |
| 3973 | fi;; |
| 3974 | esac |
| 3975 | else |
| 3976 | |
| 3977 | with_cxx_main=no |
| 3978 | MAINCC='$(CC)' |
| 3979 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3980 | fi |
| 3981 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_cxx_main" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3983 | $as_echo "$with_cxx_main" >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3984 | |
| 3985 | preset_cxx="$CXX" |
| 3986 | if test -z "$CXX" |
| 3987 | then |
| 3988 | case "$CC" in |
| 3989 | gcc) # Extract the first word of "g++", so it can be a program name with args. |
| 3990 | set dummy g++; ac_word=$2 |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3991 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3992 | $as_echo_n "checking for $ac_word... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 3993 | if ${ac_cv_path_CXX+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3994 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3995 | else |
| 3996 | case $CXX in |
| 3997 | [\\/]* | ?:[\\/]*) |
| 3998 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. |
| 3999 | ;; |
| 4000 | *) |
| 4001 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4002 | for as_dir in notfound |
| 4003 | do |
| 4004 | IFS=$as_save_IFS |
| 4005 | test -z "$as_dir" && as_dir=. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4006 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4007 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4008 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4009 | $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] | 4010 | break 2 |
| 4011 | fi |
| 4012 | done |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4013 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4014 | IFS=$as_save_IFS |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4015 | |
| 4016 | test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="g++" |
| 4017 | ;; |
| 4018 | esac |
| 4019 | fi |
| 4020 | CXX=$ac_cv_path_CXX |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4021 | if test -n "$CXX"; then |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4023 | $as_echo "$CXX" >&6; } |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4024 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4026 | $as_echo "no" >&6; } |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4027 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4028 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4029 | ;; |
| 4030 | cc) # Extract the first word of "c++", so it can be a program name with args. |
| 4031 | set dummy c++; ac_word=$2 |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4032 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4033 | $as_echo_n "checking for $ac_word... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 4034 | if ${ac_cv_path_CXX+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4035 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4036 | else |
| 4037 | case $CXX in |
| 4038 | [\\/]* | ?:[\\/]*) |
| 4039 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. |
| 4040 | ;; |
| 4041 | *) |
| 4042 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4043 | for as_dir in notfound |
| 4044 | do |
| 4045 | IFS=$as_save_IFS |
| 4046 | test -z "$as_dir" && as_dir=. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4047 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4048 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4049 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4050 | $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] | 4051 | break 2 |
| 4052 | fi |
| 4053 | done |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4054 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4055 | IFS=$as_save_IFS |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4056 | |
| 4057 | test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="c++" |
| 4058 | ;; |
| 4059 | esac |
| 4060 | fi |
| 4061 | CXX=$ac_cv_path_CXX |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4062 | if test -n "$CXX"; then |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4063 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4064 | $as_echo "$CXX" >&6; } |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4065 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4067 | $as_echo "no" >&6; } |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4068 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4069 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4070 | ;; |
| 4071 | esac |
| 4072 | if test "$CXX" = "notfound" |
| 4073 | then |
| 4074 | CXX="" |
| 4075 | fi |
| 4076 | fi |
| 4077 | if test -z "$CXX" |
| 4078 | then |
| 4079 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
| 4080 | do |
| 4081 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4082 | set dummy $ac_prog; ac_word=$2 |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4083 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4084 | $as_echo_n "checking for $ac_word... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 4085 | if ${ac_cv_prog_CXX+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4086 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4087 | else |
| 4088 | if test -n "$CXX"; then |
| 4089 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 4090 | else |
| 4091 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4092 | for as_dir in $PATH |
| 4093 | do |
| 4094 | IFS=$as_save_IFS |
| 4095 | test -z "$as_dir" && as_dir=. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4096 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4097 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4098 | ac_cv_prog_CXX="$ac_prog" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4099 | $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] | 4100 | break 2 |
| 4101 | fi |
| 4102 | done |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4103 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4104 | IFS=$as_save_IFS |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4105 | |
| 4106 | fi |
| 4107 | fi |
| 4108 | CXX=$ac_cv_prog_CXX |
| 4109 | if test -n "$CXX"; then |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4111 | $as_echo "$CXX" >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4112 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4114 | $as_echo "no" >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4115 | fi |
| 4116 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4117 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4118 | test -n "$CXX" && break |
| 4119 | done |
| 4120 | test -n "$CXX" || CXX="notfound" |
| 4121 | |
| 4122 | if test "$CXX" = "notfound" |
| 4123 | then |
| 4124 | CXX="" |
| 4125 | fi |
| 4126 | fi |
| 4127 | if test "$preset_cxx" != "$CXX" |
| 4128 | then |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4129 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4130 | |
| 4131 | By default, distutils will build C++ extension modules with \"$CXX\". |
| 4132 | If this is not intended, then set CXX on the configure command line. |
| 4133 | " >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4134 | $as_echo "$as_me: WARNING: |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4135 | |
| 4136 | By default, distutils will build C++ extension modules with \"$CXX\". |
| 4137 | If this is not intended, then set CXX on the configure command line. |
| 4138 | " >&2;} |
| 4139 | fi |
| 4140 | |
| 4141 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 4142 | # checks for UNIX variants that set C preprocessor variables |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4143 | |
| 4144 | ac_ext=c |
| 4145 | ac_cpp='$CPP $CPPFLAGS' |
| 4146 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4147 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4148 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4149 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4150 | $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] | 4151 | # On Suns, sometimes $CPP names a directory. |
| 4152 | if test -n "$CPP" && test -d "$CPP"; then |
| 4153 | CPP= |
| 4154 | fi |
| 4155 | if test -z "$CPP"; then |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 4156 | if ${ac_cv_prog_CPP+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4157 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 4158 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4159 | # Double quotes because CPP needs to be expanded |
| 4160 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 4161 | do |
| 4162 | ac_preproc_ok=false |
| 4163 | for ac_c_preproc_warn_flag in '' yes |
| 4164 | do |
| 4165 | # Use a header file that comes with gcc, so configuring glibc |
| 4166 | # with a fresh cross-compiler works. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4167 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4168 | # <limits.h> exists even on freestanding compilers. |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 4169 | # 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] | 4170 | # not just through cpp. "Syntax error" is here to catch this case. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4171 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4172 | /* end confdefs.h. */ |
| 4173 | #ifdef __STDC__ |
| 4174 | # include <limits.h> |
| 4175 | #else |
| 4176 | # include <assert.h> |
| 4177 | #endif |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4178 | Syntax error |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4179 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4180 | if ac_fn_c_try_cpp "$LINENO"; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4181 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4182 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4183 | # Broken: fails on valid input. |
| 4184 | continue |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 4185 | fi |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 4186 | rm -f conftest.err conftest.i conftest.$ac_ext |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 4187 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4188 | # OK, works on sane cases. Now check whether nonexistent headers |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4189 | # can be detected and how. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4190 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4191 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4192 | #include <ac_nonexistent.h> |
| 4193 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4194 | if ac_fn_c_try_cpp "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4195 | # Broken: success on invalid input. |
| 4196 | continue |
| 4197 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4198 | # Passes both tests. |
| 4199 | ac_preproc_ok=: |
| 4200 | break |
| 4201 | fi |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 4202 | rm -f conftest.err conftest.i conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4203 | |
| 4204 | done |
| 4205 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 4206 | rm -f conftest.i conftest.err conftest.$ac_ext |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4207 | if $ac_preproc_ok; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4208 | break |
| 4209 | fi |
| 4210 | |
| 4211 | done |
| 4212 | ac_cv_prog_CPP=$CPP |
| 4213 | |
| 4214 | fi |
| 4215 | CPP=$ac_cv_prog_CPP |
| 4216 | else |
| 4217 | ac_cv_prog_CPP=$CPP |
| 4218 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4220 | $as_echo "$CPP" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4221 | ac_preproc_ok=false |
| 4222 | for ac_c_preproc_warn_flag in '' yes |
| 4223 | do |
| 4224 | # Use a header file that comes with gcc, so configuring glibc |
| 4225 | # with a fresh cross-compiler works. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4226 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4227 | # <limits.h> exists even on freestanding compilers. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4228 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4229 | # not just through cpp. "Syntax error" is here to catch this case. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4230 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4231 | /* end confdefs.h. */ |
| 4232 | #ifdef __STDC__ |
| 4233 | # include <limits.h> |
| 4234 | #else |
| 4235 | # include <assert.h> |
| 4236 | #endif |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4237 | Syntax error |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4238 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4239 | if ac_fn_c_try_cpp "$LINENO"; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4240 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4241 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4242 | # Broken: fails on valid input. |
| 4243 | continue |
| 4244 | fi |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 4245 | rm -f conftest.err conftest.i conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4246 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4247 | # OK, works on sane cases. Now check whether nonexistent headers |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4248 | # can be detected and how. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4249 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4250 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4251 | #include <ac_nonexistent.h> |
| 4252 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4253 | if ac_fn_c_try_cpp "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4254 | # Broken: success on invalid input. |
| 4255 | continue |
| 4256 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4257 | # Passes both tests. |
| 4258 | ac_preproc_ok=: |
| 4259 | break |
| 4260 | fi |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 4261 | rm -f conftest.err conftest.i conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4262 | |
| 4263 | done |
| 4264 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 4265 | rm -f conftest.i conftest.err conftest.$ac_ext |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4266 | if $ac_preproc_ok; then : |
| 4267 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4268 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4269 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4270 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 4271 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
| 4272 | See \`config.log' for more details" "$LINENO" 5; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4273 | fi |
| 4274 | |
| 4275 | ac_ext=c |
| 4276 | ac_cpp='$CPP $CPPFLAGS' |
| 4277 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4278 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4279 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4280 | |
| 4281 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4282 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4283 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 4284 | if ${ac_cv_path_GREP+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4285 | $as_echo_n "(cached) " >&6 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4286 | else |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4287 | if test -z "$GREP"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4288 | ac_path_GREP_found=false |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4289 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4290 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4291 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4292 | do |
| 4293 | IFS=$as_save_IFS |
| 4294 | test -z "$as_dir" && as_dir=. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4295 | for ac_prog in grep ggrep; do |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4296 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4297 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4298 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
| 4299 | # 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] | 4300 | # Check for GNU $ac_path_GREP |
| 4301 | case `"$ac_path_GREP" --version 2>&1` in |
| 4302 | *GNU*) |
| 4303 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 4304 | *) |
| 4305 | ac_count=0 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4306 | $as_echo_n 0123456789 >"conftest.in" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4307 | while : |
| 4308 | do |
| 4309 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4310 | mv "conftest.tmp" "conftest.in" |
| 4311 | cp "conftest.in" "conftest.nl" |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4312 | $as_echo 'GREP' >> "conftest.nl" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4313 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4314 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4315 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4316 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 4317 | # Best one so far, save it but keep looking for a better one |
| 4318 | ac_cv_path_GREP="$ac_path_GREP" |
| 4319 | ac_path_GREP_max=$ac_count |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4320 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4321 | # 10*(2^10) chars as input seems more than enough |
| 4322 | test $ac_count -gt 10 && break |
| 4323 | done |
| 4324 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4325 | esac |
| 4326 | |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4327 | $ac_path_GREP_found && break 3 |
| 4328 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4329 | done |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4330 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4331 | IFS=$as_save_IFS |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4332 | if test -z "$ac_cv_path_GREP"; then |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 4333 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4334 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4335 | else |
| 4336 | ac_cv_path_GREP=$GREP |
| 4337 | fi |
| 4338 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4339 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4341 | $as_echo "$ac_cv_path_GREP" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4342 | GREP="$ac_cv_path_GREP" |
| 4343 | |
| 4344 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4345 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4346 | $as_echo_n "checking for egrep... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 4347 | if ${ac_cv_path_EGREP+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4348 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4349 | else |
| 4350 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 4351 | then ac_cv_path_EGREP="$GREP -E" |
| 4352 | else |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4353 | if test -z "$EGREP"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4354 | ac_path_EGREP_found=false |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4355 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4356 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4357 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4358 | do |
| 4359 | IFS=$as_save_IFS |
| 4360 | test -z "$as_dir" && as_dir=. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4361 | for ac_prog in egrep; do |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4362 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4363 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4364 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
| 4365 | # 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] | 4366 | # Check for GNU $ac_path_EGREP |
| 4367 | case `"$ac_path_EGREP" --version 2>&1` in |
| 4368 | *GNU*) |
| 4369 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 4370 | *) |
| 4371 | ac_count=0 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4372 | $as_echo_n 0123456789 >"conftest.in" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4373 | while : |
| 4374 | do |
| 4375 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4376 | mv "conftest.tmp" "conftest.in" |
| 4377 | cp "conftest.in" "conftest.nl" |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4378 | $as_echo 'EGREP' >> "conftest.nl" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4379 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4380 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4381 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4382 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 4383 | # Best one so far, save it but keep looking for a better one |
| 4384 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 4385 | ac_path_EGREP_max=$ac_count |
| 4386 | fi |
| 4387 | # 10*(2^10) chars as input seems more than enough |
| 4388 | test $ac_count -gt 10 && break |
| 4389 | done |
| 4390 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4391 | esac |
| 4392 | |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4393 | $ac_path_EGREP_found && break 3 |
| 4394 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4395 | done |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4396 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4397 | IFS=$as_save_IFS |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4398 | if test -z "$ac_cv_path_EGREP"; then |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 4399 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4400 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4401 | else |
| 4402 | ac_cv_path_EGREP=$EGREP |
| 4403 | fi |
| 4404 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4405 | fi |
| 4406 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4408 | $as_echo "$ac_cv_path_EGREP" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4409 | EGREP="$ac_cv_path_EGREP" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4410 | |
| 4411 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4412 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4413 | $as_echo_n "checking for ANSI C header files... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 4414 | if ${ac_cv_header_stdc+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4415 | $as_echo_n "(cached) " >&6 |
| 4416 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4417 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4418 | /* end confdefs.h. */ |
| 4419 | #include <stdlib.h> |
| 4420 | #include <stdarg.h> |
| 4421 | #include <string.h> |
| 4422 | #include <float.h> |
Ronald Oussoren | 5644eb7 | 2009-09-20 20:10:02 +0000 | [diff] [blame] | 4423 | |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4424 | int |
| 4425 | main () |
| 4426 | { |
| 4427 | |
| 4428 | ; |
| 4429 | return 0; |
| 4430 | } |
| 4431 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4432 | if ac_fn_c_try_compile "$LINENO"; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4433 | ac_cv_header_stdc=yes |
| 4434 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4435 | ac_cv_header_stdc=no |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4436 | fi |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4437 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4438 | |
| 4439 | if test $ac_cv_header_stdc = yes; then |
| 4440 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4441 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4442 | /* end confdefs.h. */ |
| 4443 | #include <string.h> |
| 4444 | |
| 4445 | _ACEOF |
| 4446 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4447 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 4448 | |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4449 | else |
| 4450 | ac_cv_header_stdc=no |
| 4451 | fi |
| 4452 | rm -f conftest* |
| 4453 | |
| 4454 | fi |
| 4455 | |
| 4456 | if test $ac_cv_header_stdc = yes; then |
| 4457 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4458 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4459 | /* end confdefs.h. */ |
| 4460 | #include <stdlib.h> |
| 4461 | |
| 4462 | _ACEOF |
| 4463 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4464 | $EGREP "free" >/dev/null 2>&1; then : |
| 4465 | |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4466 | else |
| 4467 | ac_cv_header_stdc=no |
| 4468 | fi |
| 4469 | rm -f conftest* |
| 4470 | |
| 4471 | fi |
| 4472 | |
| 4473 | if test $ac_cv_header_stdc = yes; then |
| 4474 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4475 | if test "$cross_compiling" = yes; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4476 | : |
| 4477 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4478 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4479 | /* end confdefs.h. */ |
| 4480 | #include <ctype.h> |
| 4481 | #include <stdlib.h> |
| 4482 | #if ((' ' & 0x0FF) == 0x020) |
| 4483 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4484 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4485 | #else |
| 4486 | # define ISLOWER(c) \ |
| 4487 | (('a' <= (c) && (c) <= 'i') \ |
| 4488 | || ('j' <= (c) && (c) <= 'r') \ |
| 4489 | || ('s' <= (c) && (c) <= 'z')) |
| 4490 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 4491 | #endif |
| 4492 | |
| 4493 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4494 | int |
| 4495 | main () |
| 4496 | { |
| 4497 | int i; |
| 4498 | for (i = 0; i < 256; i++) |
| 4499 | if (XOR (islower (i), ISLOWER (i)) |
| 4500 | || toupper (i) != TOUPPER (i)) |
| 4501 | return 2; |
| 4502 | return 0; |
| 4503 | } |
| 4504 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4505 | if ac_fn_c_try_run "$LINENO"; then : |
| 4506 | |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4507 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4508 | ac_cv_header_stdc=no |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4509 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4510 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 4511 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4512 | fi |
| 4513 | |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4514 | fi |
| 4515 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4516 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4517 | $as_echo "$ac_cv_header_stdc" >&6; } |
| 4518 | if test $ac_cv_header_stdc = yes; then |
| 4519 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4520 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4521 | |
| 4522 | fi |
| 4523 | |
| 4524 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4525 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 4526 | inttypes.h stdint.h unistd.h |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4527 | do : |
| 4528 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4529 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 4530 | " |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 4531 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4532 | cat >>confdefs.h <<_ACEOF |
| 4533 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4534 | _ACEOF |
| 4535 | |
| 4536 | fi |
| 4537 | |
| 4538 | done |
| 4539 | |
| 4540 | |
| 4541 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4542 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 4543 | if test "x$ac_cv_header_minix_config_h" = xyes; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4544 | MINIX=yes |
| 4545 | else |
| 4546 | MINIX= |
| 4547 | fi |
| 4548 | |
| 4549 | |
| 4550 | if test "$MINIX" = yes; then |
| 4551 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4552 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4553 | |
| 4554 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4555 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4556 | |
| 4557 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4558 | $as_echo "#define _MINIX 1" >>confdefs.h |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4559 | |
| 4560 | fi |
| 4561 | |
| 4562 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4563 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4564 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 4565 | if ${ac_cv_safe_to_define___extensions__+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4566 | $as_echo_n "(cached) " >&6 |
| 4567 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4568 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4569 | /* end confdefs.h. */ |
| 4570 | |
| 4571 | # define __EXTENSIONS__ 1 |
| 4572 | $ac_includes_default |
| 4573 | int |
| 4574 | main () |
| 4575 | { |
| 4576 | |
| 4577 | ; |
| 4578 | return 0; |
| 4579 | } |
| 4580 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4581 | if ac_fn_c_try_compile "$LINENO"; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4582 | ac_cv_safe_to_define___extensions__=yes |
| 4583 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4584 | ac_cv_safe_to_define___extensions__=no |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4585 | fi |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4586 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4587 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4589 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } |
| 4590 | test $ac_cv_safe_to_define___extensions__ = yes && |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4591 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4592 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4593 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4594 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4595 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4596 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4597 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4598 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4599 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h |
| 4600 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4601 | |
| 4602 | |
| 4603 | |
| 4604 | # Check for unsupported systems |
| 4605 | case $ac_sys_system/$ac_sys_release in |
| 4606 | atheos*|Linux*/1*) |
| 4607 | echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported. |
| 4608 | echo See README for details. |
| 4609 | exit 1;; |
| 4610 | esac |
| 4611 | |
| 4612 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4613 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-suffix" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4614 | $as_echo_n "checking for --with-suffix... " >&6; } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4615 | |
| 4616 | # Check whether --with-suffix was given. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4617 | if test "${with_suffix+set}" = set; then : |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4618 | withval=$with_suffix; |
| 4619 | case $withval in |
| 4620 | no) EXEEXT=;; |
| 4621 | yes) EXEEXT=.exe;; |
| 4622 | *) EXEEXT=$withval;; |
| 4623 | esac |
| 4624 | fi |
| 4625 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXEEXT" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4627 | $as_echo "$EXEEXT" >&6; } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4628 | |
| 4629 | # Test whether we're running on a non-case-sensitive system, in which |
| 4630 | # case we give a warning if no ext is given |
| 4631 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4632 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for case-insensitive build directory" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4633 | $as_echo_n "checking for case-insensitive build directory... " >&6; } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4634 | if test ! -d CaseSensitiveTestDir; then |
| 4635 | mkdir CaseSensitiveTestDir |
| 4636 | fi |
| 4637 | |
| 4638 | if test -d casesensitivetestdir |
| 4639 | then |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4641 | $as_echo "yes" >&6; } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4642 | BUILDEXEEXT=.exe |
| 4643 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4645 | $as_echo "no" >&6; } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4646 | BUILDEXEEXT=$EXEEXT |
| 4647 | fi |
| 4648 | rmdir CaseSensitiveTestDir |
| 4649 | |
| 4650 | case $MACHDEP in |
| 4651 | bsdos*) |
| 4652 | case $CC in |
| 4653 | gcc) CC="$CC -D_HAVE_BSDI";; |
| 4654 | esac;; |
| 4655 | esac |
| 4656 | |
| 4657 | case $ac_sys_system in |
| 4658 | hp*|HP*) |
| 4659 | case $CC in |
| 4660 | cc|*/cc) CC="$CC -Ae";; |
| 4661 | esac;; |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4662 | SunOS*) |
| 4663 | # Some functions have a prototype only with that define, e.g. confstr |
| 4664 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4665 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4666 | |
| 4667 | ;; |
| 4668 | esac |
| 4669 | |
| 4670 | |
| 4671 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4672 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4673 | $as_echo_n "checking LIBRARY... " >&6; } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4674 | if test -z "$LIBRARY" |
| 4675 | then |
| 4676 | LIBRARY='libpython$(VERSION).a' |
| 4677 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBRARY" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4679 | $as_echo "$LIBRARY" >&6; } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4680 | |
| 4681 | # LDLIBRARY is the name of the library to link against (as opposed to the |
| 4682 | # name of the library into which to insert object files). BLDLIBRARY is also |
| 4683 | # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY |
| 4684 | # is blank as the main program is not linked directly against LDLIBRARY. |
| 4685 | # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On |
| 4686 | # systems without shared libraries, LDLIBRARY is the same as LIBRARY |
| 4687 | # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, |
| 4688 | # DLLLIBRARY is the shared (i.e., DLL) library. |
| 4689 | # |
| 4690 | # RUNSHARED is used to run shared python without installed libraries |
| 4691 | # |
| 4692 | # INSTSONAME is the name of the shared library that will be use to install |
| 4693 | # on the system - some systems like version suffix, others don't |
| 4694 | |
| 4695 | |
| 4696 | |
| 4697 | |
| 4698 | |
| 4699 | |
| 4700 | LDLIBRARY="$LIBRARY" |
| 4701 | BLDLIBRARY='$(LDLIBRARY)' |
| 4702 | INSTSONAME='$(LDLIBRARY)' |
| 4703 | DLLLIBRARY='' |
| 4704 | LDLIBRARYDIR='' |
| 4705 | RUNSHARED='' |
| 4706 | |
| 4707 | # LINKCC is the command that links the python executable -- default is $(CC). |
| 4708 | # If CXX is set, and if it is needed to link a main function that was |
| 4709 | # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: |
| 4710 | # python might then depend on the C++ runtime |
| 4711 | # This is altered for AIX in order to build the export list before |
| 4712 | # linking. |
| 4713 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4714 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKCC" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4715 | $as_echo_n "checking LINKCC... " >&6; } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4716 | if test -z "$LINKCC" |
| 4717 | then |
| 4718 | LINKCC='$(PURIFY) $(MAINCC)' |
| 4719 | case $ac_sys_system in |
| 4720 | AIX*) |
| 4721 | exp_extra="\"\"" |
| 4722 | if test $ac_sys_release -ge 5 -o \ |
| 4723 | $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then |
| 4724 | exp_extra="." |
| 4725 | fi |
| 4726 | LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";; |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4727 | QNX*) |
| 4728 | # qcc must be used because the other compilers do not |
| 4729 | # support -N. |
| 4730 | LINKCC=qcc;; |
| 4731 | esac |
| 4732 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKCC" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4734 | $as_echo "$LINKCC" >&6; } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4735 | |
| 4736 | # GNULD is set to "yes" if the GNU linker is used. If this goes wrong |
| 4737 | # make sure we default having it set to "no": this is used by |
| 4738 | # distutils.unixccompiler to know if it should add --enable-new-dtags |
| 4739 | # to linker command lines, and failing to detect GNU ld simply results |
| 4740 | # in the same bahaviour as before. |
| 4741 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4742 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4743 | $as_echo_n "checking for GNU ld... " >&6; } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4744 | ac_prog=ld |
| 4745 | if test "$GCC" = yes; then |
| 4746 | ac_prog=`$CC -print-prog-name=ld` |
| 4747 | fi |
| 4748 | case `"$ac_prog" -V 2>&1 < /dev/null` in |
| 4749 | *GNU*) |
| 4750 | GNULD=yes;; |
| 4751 | *) |
| 4752 | GNULD=no;; |
| 4753 | esac |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNULD" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4755 | $as_echo "$GNULD" >&6; } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4756 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4757 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-shared" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4758 | $as_echo_n "checking for --enable-shared... " >&6; } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4759 | # Check whether --enable-shared was given. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4760 | if test "${enable_shared+set}" = set; then : |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4761 | enableval=$enable_shared; |
| 4762 | fi |
| 4763 | |
| 4764 | |
| 4765 | if test -z "$enable_shared" |
| 4766 | then |
| 4767 | case $ac_sys_system in |
| 4768 | CYGWIN* | atheos*) |
| 4769 | enable_shared="yes";; |
| 4770 | *) |
| 4771 | enable_shared="no";; |
| 4772 | esac |
| 4773 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4775 | $as_echo "$enable_shared" >&6; } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4776 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4777 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-profiling" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4778 | $as_echo_n "checking for --enable-profiling... " >&6; } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4779 | # Check whether --enable-profiling was given. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4780 | if test "${enable_profiling+set}" = set; then : |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4781 | enableval=$enable_profiling; ac_save_cc="$CC" |
| 4782 | CC="$CC -pg" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4783 | if test "$cross_compiling" = yes; then : |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4784 | ac_enable_profiling="no" |
| 4785 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4786 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4787 | /* end confdefs.h. */ |
| 4788 | int main() { return 0; } |
| 4789 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4790 | if ac_fn_c_try_run "$LINENO"; then : |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4791 | ac_enable_profiling="yes" |
| 4792 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4793 | ac_enable_profiling="no" |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4794 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4795 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 4796 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4797 | fi |
| 4798 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4799 | CC="$ac_save_cc" |
| 4800 | fi |
| 4801 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_profiling" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4803 | $as_echo "$ac_enable_profiling" >&6; } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4804 | |
| 4805 | case "$ac_enable_profiling" in |
| 4806 | "yes") |
| 4807 | BASECFLAGS="-pg $BASECFLAGS" |
| 4808 | LDFLAGS="-pg $LDFLAGS" |
| 4809 | ;; |
| 4810 | esac |
| 4811 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4812 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDLIBRARY" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4813 | $as_echo_n "checking LDLIBRARY... " >&6; } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4814 | |
| 4815 | # MacOSX framework builds need more magic. LDLIBRARY is the dynamic |
| 4816 | # library that we build, but we do not want to link against it (we |
| 4817 | # will find it with a -framework option). For this reason there is an |
| 4818 | # extra variable BLDLIBRARY against which Python and the extension |
| 4819 | # modules are linked, BLDLIBRARY. This is normally the same as |
| 4820 | # LDLIBRARY, but empty for MacOSX framework builds. |
| 4821 | if test "$enable_framework" |
| 4822 | then |
| 4823 | LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 4824 | RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH" |
| 4825 | BLDLIBRARY='' |
| 4826 | else |
| 4827 | BLDLIBRARY='$(LDLIBRARY)' |
| 4828 | fi |
| 4829 | |
| 4830 | # Other platforms follow |
| 4831 | if test $enable_shared = "yes"; then |
| 4832 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4833 | $as_echo "#define Py_ENABLE_SHARED 1" >>confdefs.h |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4834 | |
| 4835 | case $ac_sys_system in |
| 4836 | CYGWIN*) |
| 4837 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 4838 | DLLLIBRARY='libpython$(VERSION).dll' |
| 4839 | ;; |
| 4840 | SunOS*) |
| 4841 | LDLIBRARY='libpython$(VERSION).so' |
| 4842 | BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)' |
| 4843 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
| 4844 | INSTSONAME="$LDLIBRARY".$SOVERSION |
| 4845 | ;; |
| 4846 | Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*) |
| 4847 | LDLIBRARY='libpython$(VERSION).so' |
| 4848 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 4849 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
| 4850 | case $ac_sys_system in |
| 4851 | FreeBSD*) |
| 4852 | SOVERSION=`echo $SOVERSION|cut -d "." -f 1` |
| 4853 | ;; |
| 4854 | esac |
| 4855 | INSTSONAME="$LDLIBRARY".$SOVERSION |
| 4856 | ;; |
| 4857 | hp*|HP*) |
| 4858 | case `uname -m` in |
| 4859 | ia64) |
| 4860 | LDLIBRARY='libpython$(VERSION).so' |
| 4861 | ;; |
| 4862 | *) |
| 4863 | LDLIBRARY='libpython$(VERSION).sl' |
| 4864 | ;; |
| 4865 | esac |
| 4866 | BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)' |
| 4867 | RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH} |
| 4868 | ;; |
| 4869 | OSF*) |
| 4870 | LDLIBRARY='libpython$(VERSION).so' |
| 4871 | BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)' |
| 4872 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
| 4873 | ;; |
| 4874 | atheos*) |
| 4875 | LDLIBRARY='libpython$(VERSION).so' |
| 4876 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 4877 | RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib} |
| 4878 | ;; |
| 4879 | Darwin*) |
| 4880 | LDLIBRARY='libpython$(VERSION).dylib' |
| 4881 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 4882 | RUNSHARED='DYLD_LIBRARY_PATH=`pwd`:${DYLD_LIBRARY_PATH}' |
| 4883 | ;; |
Antoine Pitrou | 80f45a0 | 2010-09-10 19:55:19 +0000 | [diff] [blame] | 4884 | AIX*) |
| 4885 | LDLIBRARY='libpython$(VERSION).so' |
| 4886 | RUNSHARED=LIBPATH=`pwd`:${LIBPATH} |
| 4887 | ;; |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4888 | |
| 4889 | esac |
| 4890 | else # shared is disabled |
| 4891 | case $ac_sys_system in |
| 4892 | CYGWIN*) |
| 4893 | BLDLIBRARY='$(LIBRARY)' |
| 4894 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 4895 | ;; |
| 4896 | esac |
| 4897 | fi |
| 4898 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDLIBRARY" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4900 | $as_echo "$LDLIBRARY" >&6; } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4901 | |
| 4902 | if test -n "$ac_tool_prefix"; then |
| 4903 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 4904 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4905 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4906 | $as_echo_n "checking for $ac_word... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 4907 | if ${ac_cv_prog_RANLIB+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4908 | $as_echo_n "(cached) " >&6 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4909 | else |
| 4910 | if test -n "$RANLIB"; then |
| 4911 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 4912 | else |
| 4913 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4914 | for as_dir in $PATH |
| 4915 | do |
| 4916 | IFS=$as_save_IFS |
| 4917 | test -z "$as_dir" && as_dir=. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4918 | for ac_exec_ext in '' $ac_executable_extensions; do |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4919 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4920 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4921 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4922 | break 2 |
| 4923 | fi |
| 4924 | done |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4925 | done |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4926 | IFS=$as_save_IFS |
| 4927 | |
| 4928 | fi |
| 4929 | fi |
| 4930 | RANLIB=$ac_cv_prog_RANLIB |
| 4931 | if test -n "$RANLIB"; then |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4933 | $as_echo "$RANLIB" >&6; } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4934 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4936 | $as_echo "no" >&6; } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4937 | fi |
| 4938 | |
| 4939 | |
| 4940 | fi |
| 4941 | if test -z "$ac_cv_prog_RANLIB"; then |
| 4942 | ac_ct_RANLIB=$RANLIB |
| 4943 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 4944 | set dummy ranlib; ac_word=$2 |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4945 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4946 | $as_echo_n "checking for $ac_word... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 4947 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4948 | $as_echo_n "(cached) " >&6 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4949 | else |
| 4950 | if test -n "$ac_ct_RANLIB"; then |
| 4951 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 4952 | else |
| 4953 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4954 | for as_dir in $PATH |
| 4955 | do |
| 4956 | IFS=$as_save_IFS |
| 4957 | test -z "$as_dir" && as_dir=. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4958 | for ac_exec_ext in '' $ac_executable_extensions; do |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4959 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4960 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4961 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4962 | break 2 |
| 4963 | fi |
| 4964 | done |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4965 | done |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4966 | IFS=$as_save_IFS |
| 4967 | |
| 4968 | fi |
| 4969 | fi |
| 4970 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 4971 | if test -n "$ac_ct_RANLIB"; then |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4973 | $as_echo "$ac_ct_RANLIB" >&6; } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4974 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4976 | $as_echo "no" >&6; } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4977 | fi |
| 4978 | |
| 4979 | if test "x$ac_ct_RANLIB" = x; then |
| 4980 | RANLIB=":" |
| 4981 | else |
| 4982 | case $cross_compiling:$ac_tool_warned in |
| 4983 | yes:) |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4984 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4985 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4986 | ac_tool_warned=yes ;; |
| 4987 | esac |
| 4988 | RANLIB=$ac_ct_RANLIB |
| 4989 | fi |
| 4990 | else |
| 4991 | RANLIB="$ac_cv_prog_RANLIB" |
| 4992 | fi |
| 4993 | |
| 4994 | |
| 4995 | for ac_prog in ar aal |
| 4996 | do |
| 4997 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4998 | set dummy $ac_prog; ac_word=$2 |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4999 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 5000 | $as_echo_n "checking for $ac_word... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 5001 | if ${ac_cv_prog_AR+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 5002 | $as_echo_n "(cached) " >&6 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5003 | else |
| 5004 | if test -n "$AR"; then |
| 5005 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 5006 | else |
| 5007 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5008 | for as_dir in $PATH |
| 5009 | do |
| 5010 | IFS=$as_save_IFS |
| 5011 | test -z "$as_dir" && as_dir=. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5012 | for ac_exec_ext in '' $ac_executable_extensions; do |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5013 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5014 | ac_cv_prog_AR="$ac_prog" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5015 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5016 | break 2 |
| 5017 | fi |
| 5018 | done |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5019 | done |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5020 | IFS=$as_save_IFS |
| 5021 | |
| 5022 | fi |
| 5023 | fi |
| 5024 | AR=$ac_cv_prog_AR |
| 5025 | if test -n "$AR"; then |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 5027 | $as_echo "$AR" >&6; } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5028 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 5030 | $as_echo "no" >&6; } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5031 | fi |
| 5032 | |
| 5033 | |
| 5034 | test -n "$AR" && break |
| 5035 | done |
| 5036 | test -n "$AR" || AR="ar" |
| 5037 | |
| 5038 | |
| 5039 | # tweak ARFLAGS only if the user didn't set it on the command line |
| 5040 | |
| 5041 | if test -z "$ARFLAGS" |
| 5042 | then |
| 5043 | ARFLAGS="rc" |
| 5044 | fi |
| 5045 | |
| 5046 | |
| 5047 | # Extract the first word of "svnversion", so it can be a program name with args. |
| 5048 | set dummy svnversion; ac_word=$2 |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5049 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 5050 | $as_echo_n "checking for $ac_word... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 5051 | if ${ac_cv_prog_SVNVERSION+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 5052 | $as_echo_n "(cached) " >&6 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5053 | else |
| 5054 | if test -n "$SVNVERSION"; then |
| 5055 | ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test. |
| 5056 | else |
| 5057 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5058 | for as_dir in $PATH |
| 5059 | do |
| 5060 | IFS=$as_save_IFS |
| 5061 | test -z "$as_dir" && as_dir=. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5062 | for ac_exec_ext in '' $ac_executable_extensions; do |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5063 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5064 | ac_cv_prog_SVNVERSION="found" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5065 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5066 | break 2 |
| 5067 | fi |
| 5068 | done |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5069 | done |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5070 | IFS=$as_save_IFS |
| 5071 | |
| 5072 | test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION="not-found" |
| 5073 | fi |
| 5074 | fi |
| 5075 | SVNVERSION=$ac_cv_prog_SVNVERSION |
| 5076 | if test -n "$SVNVERSION"; then |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVNVERSION" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 5078 | $as_echo "$SVNVERSION" >&6; } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5079 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 5081 | $as_echo "no" >&6; } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5082 | fi |
| 5083 | |
| 5084 | |
| 5085 | if test $SVNVERSION = found |
| 5086 | then |
| 5087 | SVNVERSION="svnversion \$(srcdir)" |
| 5088 | else |
| 5089 | SVNVERSION="echo Unversioned directory" |
| 5090 | fi |
| 5091 | |
| 5092 | case $MACHDEP in |
| 5093 | bsdos*|hp*|HP*) |
| 5094 | # install -d does not work on BSDI or HP-UX |
| 5095 | if test -z "$INSTALL" |
| 5096 | then |
| 5097 | INSTALL="${srcdir}/install-sh -c" |
| 5098 | fi |
| 5099 | esac |
| 5100 | ac_aux_dir= |
| 5101 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 5102 | if test -f "$ac_dir/install-sh"; then |
| 5103 | ac_aux_dir=$ac_dir |
| 5104 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 5105 | break |
| 5106 | elif test -f "$ac_dir/install.sh"; then |
| 5107 | ac_aux_dir=$ac_dir |
| 5108 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 5109 | break |
| 5110 | elif test -f "$ac_dir/shtool"; then |
| 5111 | ac_aux_dir=$ac_dir |
| 5112 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 5113 | break |
| 5114 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5115 | done |
| 5116 | if test -z "$ac_aux_dir"; then |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 5117 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5118 | fi |
| 5119 | |
| 5120 | # These three variables are undocumented and unsupported, |
| 5121 | # and are intended to be withdrawn in a future Autoconf release. |
| 5122 | # They can cause serious problems if a builder's source tree is in a directory |
| 5123 | # whose full name contains unusual characters. |
| 5124 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 5125 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 5126 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 5127 | |
| 5128 | |
| 5129 | # Find a good install program. We prefer a C program (faster), |
| 5130 | # so one script is as good as another. But avoid the broken or |
| 5131 | # incompatible versions: |
| 5132 | # SysV /etc/install, /usr/sbin/install |
| 5133 | # SunOS /usr/etc/install |
| 5134 | # IRIX /sbin/install |
| 5135 | # AIX /bin/install |
| 5136 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 5137 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 5138 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 5139 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 5140 | # OS/2's system install, which has a completely different semantic |
| 5141 | # ./install, which can be erroneously created by make from ./install.sh. |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 5142 | # Reject install programs that cannot install multiple files. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5143 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 5144 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5145 | if test -z "$INSTALL"; then |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 5146 | if ${ac_cv_path_install+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 5147 | $as_echo_n "(cached) " >&6 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5148 | else |
| 5149 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5150 | for as_dir in $PATH |
| 5151 | do |
| 5152 | IFS=$as_save_IFS |
| 5153 | test -z "$as_dir" && as_dir=. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5154 | # Account for people who put trailing slashes in PATH elements. |
| 5155 | case $as_dir/ in #(( |
| 5156 | ./ | .// | /[cC]/* | \ |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5157 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5158 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5159 | /usr/ucb/* ) ;; |
| 5160 | *) |
| 5161 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 5162 | # Don't use installbsd from OSF since it installs stuff as root |
| 5163 | # by default. |
| 5164 | for ac_prog in ginstall scoinst install; do |
| 5165 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5166 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
| 5167 | if test $ac_prog = install && |
| 5168 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 5169 | # AIX install. It has an incompatible calling convention. |
| 5170 | : |
| 5171 | elif test $ac_prog = install && |
| 5172 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 5173 | # program-specific install script used by HP pwplus--don't use. |
| 5174 | : |
| 5175 | else |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 5176 | rm -rf conftest.one conftest.two conftest.dir |
| 5177 | echo one > conftest.one |
| 5178 | echo two > conftest.two |
| 5179 | mkdir conftest.dir |
| 5180 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 5181 | test -s conftest.one && test -s conftest.two && |
| 5182 | test -s conftest.dir/conftest.one && |
| 5183 | test -s conftest.dir/conftest.two |
| 5184 | then |
| 5185 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 5186 | break 3 |
| 5187 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5188 | fi |
| 5189 | fi |
| 5190 | done |
| 5191 | done |
| 5192 | ;; |
| 5193 | esac |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 5194 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5195 | done |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5196 | IFS=$as_save_IFS |
| 5197 | |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 5198 | rm -rf conftest.one conftest.two conftest.dir |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5199 | |
| 5200 | fi |
| 5201 | if test "${ac_cv_path_install+set}" = set; then |
| 5202 | INSTALL=$ac_cv_path_install |
| 5203 | else |
| 5204 | # As a last resort, use the slow shell script. Don't cache a |
| 5205 | # value for INSTALL within a source directory, because that will |
| 5206 | # break other packages using the cache if that directory is |
| 5207 | # removed, or if the value is a relative name. |
| 5208 | INSTALL=$ac_install_sh |
| 5209 | fi |
| 5210 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 5212 | $as_echo "$INSTALL" >&6; } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5213 | |
| 5214 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 5215 | # It thinks the first close brace ends the variable substitution. |
| 5216 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 5217 | |
| 5218 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 5219 | |
| 5220 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 5221 | |
| 5222 | |
| 5223 | # Not every filesystem supports hard links |
| 5224 | |
| 5225 | if test -z "$LN" ; then |
| 5226 | case $ac_sys_system in |
| 5227 | CYGWIN*) LN="ln -s";; |
| 5228 | atheos*) LN="ln -s";; |
| 5229 | *) LN=ln;; |
| 5230 | esac |
| 5231 | fi |
| 5232 | |
| 5233 | # Check for --with-pydebug |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5234 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pydebug" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 5235 | $as_echo_n "checking for --with-pydebug... " >&6; } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5236 | |
| 5237 | # Check whether --with-pydebug was given. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5238 | if test "${with_pydebug+set}" = set; then : |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5239 | withval=$with_pydebug; |
| 5240 | if test "$withval" != no |
| 5241 | then |
| 5242 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5243 | $as_echo "#define Py_DEBUG 1" >>confdefs.h |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5244 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 5246 | $as_echo "yes" >&6; }; |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5247 | Py_DEBUG='true' |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5248 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 5249 | $as_echo "no" >&6; }; Py_DEBUG='false' |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5250 | fi |
| 5251 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 5253 | $as_echo "no" >&6; } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5254 | fi |
| 5255 | |
| 5256 | |
| 5257 | # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be |
| 5258 | # merged with this chunk of code? |
| 5259 | |
| 5260 | # Optimizer/debugger flags |
| 5261 | # ------------------------ |
| 5262 | # (The following bit of code is complicated enough - please keep things |
| 5263 | # indented properly. Just pretend you're editing Python code. ;-) |
| 5264 | |
| 5265 | # There are two parallel sets of case statements below, one that checks to |
| 5266 | # see if OPT was set and one that does BASECFLAGS setting based upon |
| 5267 | # compiler and platform. BASECFLAGS tweaks need to be made even if the |
| 5268 | # user set OPT. |
| 5269 | |
| 5270 | # tweak OPT based on compiler and platform, only if the user didn't set |
| 5271 | # it on the command line |
| 5272 | |
Benjamin Peterson | e7e59c2 | 2010-03-23 21:05:56 +0000 | [diff] [blame] | 5273 | if test "${OPT-unset}" = "unset" |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5274 | then |
| 5275 | case $GCC in |
| 5276 | yes) |
| 5277 | if test "$CC" != 'g++' ; then |
| 5278 | STRICT_PROTO="-Wstrict-prototypes" |
| 5279 | fi |
| 5280 | # For gcc 4.x we need to use -fwrapv so lets check if its supported |
| 5281 | if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then |
| 5282 | WRAP="-fwrapv" |
| 5283 | fi |
| 5284 | case $ac_cv_prog_cc_g in |
| 5285 | yes) |
| 5286 | if test "$Py_DEBUG" = 'true' ; then |
| 5287 | # Optimization messes up debuggers, so turn it off for |
| 5288 | # debug builds. |
| 5289 | OPT="-g -Wall $STRICT_PROTO" |
| 5290 | else |
| 5291 | OPT="-g $WRAP -O3 -Wall $STRICT_PROTO" |
| 5292 | fi |
| 5293 | ;; |
| 5294 | *) |
| 5295 | OPT="-O3 -Wall $STRICT_PROTO" |
| 5296 | ;; |
| 5297 | esac |
| 5298 | case $ac_sys_system in |
| 5299 | SCO_SV*) OPT="$OPT -m486 -DSCO5" |
| 5300 | ;; |
| 5301 | esac |
| 5302 | ;; |
| 5303 | |
| 5304 | *) |
| 5305 | OPT="-O" |
| 5306 | ;; |
| 5307 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5308 | fi |
| 5309 | |
| 5310 | |
| 5311 | |
| 5312 | # The -arch flags for universal builds on OSX |
| 5313 | UNIVERSAL_ARCH_FLAGS= |
| 5314 | |
| 5315 | |
| 5316 | # tweak BASECFLAGS based on compiler and platform |
| 5317 | case $GCC in |
| 5318 | yes) |
Benjamin Peterson | c2037d6 | 2010-06-21 17:04:07 +0000 | [diff] [blame] | 5319 | # Python doesn't violate C99 aliasing rules, but older versions of |
| 5320 | # GCC produce warnings for legal Python code. Enable |
| 5321 | # -fno-strict-aliasing on versions of GCC that support but produce |
| 5322 | # warnings. See Issue3326 |
| 5323 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts and needs -fno-strict-aliasing" >&5 |
| 5324 | $as_echo_n "checking whether $CC accepts and needs -fno-strict-aliasing... " >&6; } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5325 | ac_save_cc="$CC" |
| 5326 | CC="$CC -fno-strict-aliasing" |
Benjamin Peterson | c2037d6 | 2010-06-21 17:04:07 +0000 | [diff] [blame] | 5327 | save_CFLAGS="$CFLAGS" |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 5328 | if ${ac_cv_no_strict_aliasing+:} false; then : |
Benjamin Peterson | c2037d6 | 2010-06-21 17:04:07 +0000 | [diff] [blame] | 5329 | $as_echo_n "(cached) " >&6 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5330 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5331 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5332 | /* end confdefs.h. */ |
Benjamin Peterson | c2037d6 | 2010-06-21 17:04:07 +0000 | [diff] [blame] | 5333 | |
| 5334 | |
| 5335 | int |
| 5336 | main () |
| 5337 | { |
| 5338 | |
| 5339 | ; |
| 5340 | return 0; |
| 5341 | } |
| 5342 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5343 | _ACEOF |
Benjamin Peterson | c2037d6 | 2010-06-21 17:04:07 +0000 | [diff] [blame] | 5344 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5345 | |
| 5346 | CC="$ac_save_cc -fstrict-aliasing" |
| 5347 | CFLAGS="$CFLAGS -Werror -Wstrict-aliasing" |
| 5348 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5349 | /* end confdefs.h. */ |
| 5350 | |
| 5351 | void f(int **x) {} |
| 5352 | int |
| 5353 | main () |
| 5354 | { |
| 5355 | double *x; f((int **) &x); |
| 5356 | ; |
| 5357 | return 0; |
| 5358 | } |
| 5359 | |
| 5360 | _ACEOF |
| 5361 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5362 | |
| 5363 | ac_cv_no_strict_aliasing=no |
| 5364 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5365 | else |
Benjamin Peterson | c2037d6 | 2010-06-21 17:04:07 +0000 | [diff] [blame] | 5366 | |
| 5367 | ac_cv_no_strict_aliasing=yes |
| 5368 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5369 | fi |
Benjamin Peterson | c2037d6 | 2010-06-21 17:04:07 +0000 | [diff] [blame] | 5370 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5371 | |
| 5372 | else |
| 5373 | |
| 5374 | ac_cv_no_strict_aliasing=no |
| 5375 | |
| 5376 | fi |
| 5377 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5378 | fi |
| 5379 | |
Benjamin Peterson | c2037d6 | 2010-06-21 17:04:07 +0000 | [diff] [blame] | 5380 | CFLAGS="$save_CFLAGS" |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5381 | CC="$ac_save_cc" |
Benjamin Peterson | c2037d6 | 2010-06-21 17:04:07 +0000 | [diff] [blame] | 5382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_no_strict_aliasing" >&5 |
| 5383 | $as_echo "$ac_cv_no_strict_aliasing" >&6; } |
| 5384 | if test $ac_cv_no_strict_aliasing = yes |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5385 | then |
| 5386 | BASECFLAGS="$BASECFLAGS -fno-strict-aliasing" |
| 5387 | fi |
| 5388 | |
| 5389 | # if using gcc on alpha, use -mieee to get (near) full IEEE 754 |
| 5390 | # support. Without this, treatment of subnormals doesn't follow |
| 5391 | # the standard. |
| 5392 | case $ac_sys_machine in |
| 5393 | alpha*) |
| 5394 | BASECFLAGS="$BASECFLAGS -mieee" |
| 5395 | ;; |
| 5396 | esac |
| 5397 | |
| 5398 | case $ac_sys_system in |
| 5399 | SCO_SV*) |
| 5400 | BASECFLAGS="$BASECFLAGS -m486 -DSCO5" |
| 5401 | ;; |
| 5402 | # is there any other compiler on Darwin besides gcc? |
| 5403 | Darwin*) |
| 5404 | # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd |
| 5405 | # used to be here, but non-Apple gcc doesn't accept them. |
Ronald Oussoren | 79a9351 | 2010-04-18 19:08:47 +0000 | [diff] [blame] | 5406 | if test "${CC}" = gcc |
| 5407 | then |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5408 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which compiler should be used" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 5409 | $as_echo_n "checking which compiler should be used... " >&6; } |
Ronald Oussoren | 79a9351 | 2010-04-18 19:08:47 +0000 | [diff] [blame] | 5410 | case "${UNIVERSALSDK}" in |
| 5411 | */MacOSX10.4u.sdk) |
| 5412 | # Build using 10.4 SDK, force usage of gcc when the |
| 5413 | # compiler is gcc, otherwise the user will get very |
| 5414 | # confusing error messages when building on OSX 10.6 |
| 5415 | CC=gcc-4.0 |
| 5416 | CPP=cpp-4.0 |
| 5417 | ;; |
| 5418 | esac |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 5420 | $as_echo "$CC" >&6; } |
Ronald Oussoren | 79a9351 | 2010-04-18 19:08:47 +0000 | [diff] [blame] | 5421 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5422 | |
| 5423 | |
| 5424 | if test "${enable_universalsdk}"; then |
| 5425 | UNIVERSAL_ARCH_FLAGS="" |
| 5426 | if test "$UNIVERSAL_ARCHS" = "32-bit" ; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5427 | ARCH_RUN_32BIT="" |
Benjamin Peterson | e7e59c2 | 2010-03-23 21:05:56 +0000 | [diff] [blame] | 5428 | UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386" |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5429 | |
| 5430 | elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then |
Ronald Oussoren | d45ff2c | 2009-09-06 11:11:04 +0000 | [diff] [blame] | 5431 | ARCH_RUN_32BIT="true" |
Benjamin Peterson | e7e59c2 | 2010-03-23 21:05:56 +0000 | [diff] [blame] | 5432 | UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64" |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5433 | |
| 5434 | elif test "$UNIVERSAL_ARCHS" = "all" ; then |
Ronald Oussoren | c8c89c4 | 2010-02-11 13:24:45 +0000 | [diff] [blame] | 5435 | ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" |
Benjamin Peterson | e7e59c2 | 2010-03-23 21:05:56 +0000 | [diff] [blame] | 5436 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64" |
| 5437 | LIPO_32BIT_FLAGS="-extract i386 -extract ppc7400" |
| 5438 | LIPO_64BIT_FLAGS="-extract x86_64 -extract ppc64" |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5439 | |
Ronald Oussoren | 856624d | 2009-09-08 07:13:53 +0000 | [diff] [blame] | 5440 | elif test "$UNIVERSAL_ARCHS" = "intel" ; then |
Ronald Oussoren | c8c89c4 | 2010-02-11 13:24:45 +0000 | [diff] [blame] | 5441 | ARCH_RUN_32BIT="/usr/bin/arch -i386" |
Benjamin Peterson | e7e59c2 | 2010-03-23 21:05:56 +0000 | [diff] [blame] | 5442 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64" |
| 5443 | LIPO_32BIT_FLAGS="-extract i386" |
| 5444 | LIPO_64BIT_FLAGS="-extract x86_64" |
Ronald Oussoren | 856624d | 2009-09-08 07:13:53 +0000 | [diff] [blame] | 5445 | |
| 5446 | elif test "$UNIVERSAL_ARCHS" = "3-way" ; then |
Ronald Oussoren | c8c89c4 | 2010-02-11 13:24:45 +0000 | [diff] [blame] | 5447 | ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" |
Benjamin Peterson | e7e59c2 | 2010-03-23 21:05:56 +0000 | [diff] [blame] | 5448 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64" |
| 5449 | LIPO_32BIT_FLAGS="-extract i386 -extract ppc7400" |
| 5450 | LIPO_64BIT_FLAGS="-extract x86_64" |
Ronald Oussoren | 856624d | 2009-09-08 07:13:53 +0000 | [diff] [blame] | 5451 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5452 | else |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 5453 | as_fn_error $? "proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" "$LINENO" 5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5454 | |
| 5455 | fi |
| 5456 | |
| 5457 | |
Ronald Oussoren | 79a9351 | 2010-04-18 19:08:47 +0000 | [diff] [blame] | 5458 | CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}" |
| 5459 | if test "${UNIVERSALSDK}" != "/" |
| 5460 | then |
| 5461 | CFLAGS="-isysroot ${UNIVERSALSDK} ${CFLAGS}" |
| 5462 | LDFLAGS="-isysroot ${UNIVERSALSDK} ${LDFLAGS}" |
| 5463 | CPPFLAGSFLAGS="-isysroot ${UNIVERSALSDK} ${CPPFLAGS}" |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5464 | fi |
| 5465 | fi |
| 5466 | |
| 5467 | # Calculate the right deployment target for this build. |
| 5468 | # |
| 5469 | cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'` |
| 5470 | if test ${cur_target} '>' 10.2; then |
| 5471 | cur_target=10.3 |
Ronald Oussoren | d45ff2c | 2009-09-06 11:11:04 +0000 | [diff] [blame] | 5472 | if test ${enable_universalsdk}; then |
| 5473 | if test "${UNIVERSAL_ARCHS}" = "all"; then |
| 5474 | # Ensure that the default platform for a |
| 5475 | # 4-way universal build is OSX 10.5, |
| 5476 | # that's the first OS release where |
| 5477 | # 4-way builds make sense. |
| 5478 | cur_target='10.5' |
Ronald Oussoren | 856624d | 2009-09-08 07:13:53 +0000 | [diff] [blame] | 5479 | |
| 5480 | elif test "${UNIVERSAL_ARCHS}" = "3-way"; then |
| 5481 | cur_target='10.5' |
| 5482 | |
| 5483 | elif test "${UNIVERSAL_ARCHS}" = "intel"; then |
| 5484 | cur_target='10.5' |
| 5485 | |
| 5486 | elif test "${UNIVERSAL_ARCHS}" = "64-bit"; then |
| 5487 | cur_target='10.5' |
Ronald Oussoren | d45ff2c | 2009-09-06 11:11:04 +0000 | [diff] [blame] | 5488 | fi |
| 5489 | else |
Ronald Oussoren | 175a884 | 2010-02-11 13:40:06 +0000 | [diff] [blame] | 5490 | if test `/usr/bin/arch` = "i386"; then |
Ronald Oussoren | d45ff2c | 2009-09-06 11:11:04 +0000 | [diff] [blame] | 5491 | # On Intel macs default to a deployment |
| 5492 | # target of 10.4, that's the first OSX |
| 5493 | # release with Intel support. |
| 5494 | cur_target="10.4" |
| 5495 | fi |
| 5496 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5497 | fi |
| 5498 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}} |
| 5499 | |
| 5500 | # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the |
| 5501 | # environment with a value that is the same as what we'll use |
| 5502 | # in the Makefile to ensure that we'll get the same compiler |
| 5503 | # environment during configure and build time. |
| 5504 | MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET" |
| 5505 | export MACOSX_DEPLOYMENT_TARGET |
| 5506 | EXPORT_MACOSX_DEPLOYMENT_TARGET='' |
| 5507 | |
| 5508 | ;; |
| 5509 | OSF*) |
| 5510 | BASECFLAGS="$BASECFLAGS -mieee" |
| 5511 | ;; |
| 5512 | esac |
| 5513 | ;; |
| 5514 | |
| 5515 | *) |
| 5516 | case $ac_sys_system in |
| 5517 | OpenUNIX*|UnixWare*) |
| 5518 | BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca " |
| 5519 | ;; |
| 5520 | OSF*) |
| 5521 | BASECFLAGS="$BASECFLAGS -ieee -std" |
| 5522 | ;; |
| 5523 | SCO_SV*) |
| 5524 | BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5" |
| 5525 | ;; |
| 5526 | esac |
| 5527 | ;; |
| 5528 | esac |
| 5529 | |
| 5530 | if test "$Py_DEBUG" = 'true'; then |
| 5531 | : |
| 5532 | else |
| 5533 | OPT="-DNDEBUG $OPT" |
| 5534 | fi |
| 5535 | |
| 5536 | if test "$ac_arch_flags" |
| 5537 | then |
| 5538 | BASECFLAGS="$BASECFLAGS $ac_arch_flags" |
| 5539 | fi |
| 5540 | |
| 5541 | # disable check for icc since it seems to pass, but generates a warning |
| 5542 | if test "$CC" = icc |
| 5543 | then |
| 5544 | ac_cv_opt_olimit_ok=no |
| 5545 | fi |
| 5546 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5547 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -OPT:Olimit=0" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 5548 | $as_echo_n "checking whether $CC accepts -OPT:Olimit=0... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 5549 | if ${ac_cv_opt_olimit_ok+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 5550 | $as_echo_n "(cached) " >&6 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5551 | else |
| 5552 | ac_save_cc="$CC" |
| 5553 | CC="$CC -OPT:Olimit=0" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5554 | if test "$cross_compiling" = yes; then : |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5555 | ac_cv_opt_olimit_ok=no |
| 5556 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5557 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5558 | /* end confdefs.h. */ |
| 5559 | int main() { return 0; } |
| 5560 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5561 | if ac_fn_c_try_run "$LINENO"; then : |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5562 | ac_cv_opt_olimit_ok=yes |
| 5563 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5564 | ac_cv_opt_olimit_ok=no |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5565 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5566 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 5567 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5568 | fi |
| 5569 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5570 | CC="$ac_save_cc" |
| 5571 | fi |
| 5572 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_opt_olimit_ok" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 5574 | $as_echo "$ac_cv_opt_olimit_ok" >&6; } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5575 | if test $ac_cv_opt_olimit_ok = yes; then |
| 5576 | case $ac_sys_system in |
| 5577 | # XXX is this branch needed? On MacOSX 10.2.2 the result of the |
| 5578 | # olimit_ok test is "no". Is it "yes" in some other Darwin-esque |
| 5579 | # environment? |
| 5580 | Darwin*) |
| 5581 | ;; |
| 5582 | *) |
| 5583 | BASECFLAGS="$BASECFLAGS -OPT:Olimit=0" |
| 5584 | ;; |
| 5585 | esac |
| 5586 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5587 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Olimit 1500" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 5588 | $as_echo_n "checking whether $CC accepts -Olimit 1500... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 5589 | if ${ac_cv_olimit_ok+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 5590 | $as_echo_n "(cached) " >&6 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5591 | else |
| 5592 | ac_save_cc="$CC" |
| 5593 | CC="$CC -Olimit 1500" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5594 | if test "$cross_compiling" = yes; then : |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5595 | ac_cv_olimit_ok=no |
| 5596 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5597 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5598 | /* end confdefs.h. */ |
| 5599 | int main() { return 0; } |
| 5600 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5601 | if ac_fn_c_try_run "$LINENO"; then : |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5602 | ac_cv_olimit_ok=yes |
| 5603 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5604 | ac_cv_olimit_ok=no |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5605 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5606 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 5607 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5608 | fi |
| 5609 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5610 | CC="$ac_save_cc" |
| 5611 | fi |
| 5612 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_olimit_ok" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 5614 | $as_echo "$ac_cv_olimit_ok" >&6; } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5615 | if test $ac_cv_olimit_ok = yes; then |
| 5616 | BASECFLAGS="$BASECFLAGS -Olimit 1500" |
| 5617 | fi |
| 5618 | fi |
| 5619 | |
| 5620 | # Check whether GCC supports PyArg_ParseTuple format |
| 5621 | if test "$GCC" = "yes" |
| 5622 | then |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5623 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc supports ParseTuple __format__" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 5624 | $as_echo_n "checking whether gcc supports ParseTuple __format__... " >&6; } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5625 | save_CFLAGS=$CFLAGS |
| 5626 | CFLAGS="$CFLAGS -Werror" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5627 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5628 | /* end confdefs.h. */ |
| 5629 | |
| 5630 | void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2))); |
| 5631 | |
| 5632 | int |
| 5633 | main () |
| 5634 | { |
| 5635 | |
| 5636 | ; |
| 5637 | return 0; |
| 5638 | } |
| 5639 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5640 | if ac_fn_c_try_compile "$LINENO"; then : |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5641 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5642 | $as_echo "#define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1" >>confdefs.h |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5643 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 5645 | $as_echo "yes" >&6; } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5646 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 5648 | $as_echo "no" >&6; } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5649 | |
| 5650 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5651 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5652 | CFLAGS=$save_CFLAGS |
| 5653 | fi |
| 5654 | |
| 5655 | # On some compilers, pthreads are available without further options |
| 5656 | # (e.g. MacOS X). On some of these systems, the compiler will not |
| 5657 | # complain if unaccepted options are passed (e.g. gcc on Mac OS X). |
| 5658 | # So we have to see first whether pthreads are available without |
| 5659 | # options before we can check whether -Kpthread improves anything. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5660 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads are available without options" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 5661 | $as_echo_n "checking whether pthreads are available without options... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 5662 | if ${ac_cv_pthread_is_default+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 5663 | $as_echo_n "(cached) " >&6 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5664 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5665 | if test "$cross_compiling" = yes; then : |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5666 | ac_cv_pthread_is_default=no |
| 5667 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5668 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5669 | /* end confdefs.h. */ |
| 5670 | |
| 5671 | #include <pthread.h> |
| 5672 | |
| 5673 | void* routine(void* p){return NULL;} |
| 5674 | |
| 5675 | int main(){ |
| 5676 | pthread_t p; |
| 5677 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 5678 | return 1; |
| 5679 | (void)pthread_detach(p); |
| 5680 | return 0; |
| 5681 | } |
| 5682 | |
| 5683 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5684 | if ac_fn_c_try_run "$LINENO"; then : |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5685 | |
| 5686 | ac_cv_pthread_is_default=yes |
| 5687 | ac_cv_kthread=no |
| 5688 | ac_cv_pthread=no |
| 5689 | |
| 5690 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5691 | ac_cv_pthread_is_default=no |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5692 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5693 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 5694 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5695 | fi |
| 5696 | |
| 5697 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5698 | fi |
| 5699 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_is_default" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 5701 | $as_echo "$ac_cv_pthread_is_default" >&6; } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5702 | |
| 5703 | |
| 5704 | if test $ac_cv_pthread_is_default = yes |
| 5705 | then |
| 5706 | ac_cv_kpthread=no |
| 5707 | else |
| 5708 | # -Kpthread, if available, provides the right #defines |
| 5709 | # and linker options to make pthread_create available |
| 5710 | # Some compilers won't report that they do not support -Kpthread, |
| 5711 | # so we need to run a program to see whether it really made the |
| 5712 | # function available. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5713 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kpthread" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 5714 | $as_echo_n "checking whether $CC accepts -Kpthread... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 5715 | if ${ac_cv_kpthread+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 5716 | $as_echo_n "(cached) " >&6 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5717 | else |
| 5718 | ac_save_cc="$CC" |
| 5719 | CC="$CC -Kpthread" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5720 | if test "$cross_compiling" = yes; then : |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5721 | ac_cv_kpthread=no |
| 5722 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5723 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5724 | /* end confdefs.h. */ |
| 5725 | |
| 5726 | #include <pthread.h> |
| 5727 | |
| 5728 | void* routine(void* p){return NULL;} |
| 5729 | |
| 5730 | int main(){ |
| 5731 | pthread_t p; |
| 5732 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 5733 | return 1; |
| 5734 | (void)pthread_detach(p); |
| 5735 | return 0; |
| 5736 | } |
| 5737 | |
| 5738 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5739 | if ac_fn_c_try_run "$LINENO"; then : |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5740 | ac_cv_kpthread=yes |
| 5741 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5742 | ac_cv_kpthread=no |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5743 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5744 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 5745 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5746 | fi |
| 5747 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5748 | CC="$ac_save_cc" |
| 5749 | fi |
| 5750 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kpthread" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 5752 | $as_echo "$ac_cv_kpthread" >&6; } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5753 | fi |
| 5754 | |
| 5755 | if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no |
| 5756 | then |
| 5757 | # -Kthread, if available, provides the right #defines |
| 5758 | # and linker options to make pthread_create available |
| 5759 | # Some compilers won't report that they do not support -Kthread, |
| 5760 | # so we need to run a program to see whether it really made the |
| 5761 | # function available. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5762 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kthread" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 5763 | $as_echo_n "checking whether $CC accepts -Kthread... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 5764 | if ${ac_cv_kthread+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 5765 | $as_echo_n "(cached) " >&6 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5766 | else |
| 5767 | ac_save_cc="$CC" |
| 5768 | CC="$CC -Kthread" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5769 | if test "$cross_compiling" = yes; then : |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5770 | ac_cv_kthread=no |
| 5771 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5772 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5773 | /* end confdefs.h. */ |
| 5774 | |
| 5775 | #include <pthread.h> |
| 5776 | |
| 5777 | void* routine(void* p){return NULL;} |
| 5778 | |
| 5779 | int main(){ |
| 5780 | pthread_t p; |
| 5781 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 5782 | return 1; |
| 5783 | (void)pthread_detach(p); |
| 5784 | return 0; |
| 5785 | } |
| 5786 | |
| 5787 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5788 | if ac_fn_c_try_run "$LINENO"; then : |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5789 | ac_cv_kthread=yes |
| 5790 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5791 | ac_cv_kthread=no |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5792 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5793 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 5794 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5795 | fi |
| 5796 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5797 | CC="$ac_save_cc" |
| 5798 | fi |
| 5799 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kthread" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 5801 | $as_echo "$ac_cv_kthread" >&6; } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5802 | fi |
| 5803 | |
| 5804 | if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no |
| 5805 | then |
| 5806 | # -pthread, if available, provides the right #defines |
| 5807 | # and linker options to make pthread_create available |
| 5808 | # Some compilers won't report that they do not support -pthread, |
| 5809 | # so we need to run a program to see whether it really made the |
| 5810 | # function available. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5811 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -pthread" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 5812 | $as_echo_n "checking whether $CC accepts -pthread... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 5813 | if ${ac_cv_thread+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 5814 | $as_echo_n "(cached) " >&6 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5815 | else |
| 5816 | ac_save_cc="$CC" |
| 5817 | CC="$CC -pthread" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5818 | if test "$cross_compiling" = yes; then : |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5819 | ac_cv_pthread=no |
| 5820 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5821 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5822 | /* end confdefs.h. */ |
| 5823 | |
| 5824 | #include <pthread.h> |
| 5825 | |
| 5826 | void* routine(void* p){return NULL;} |
| 5827 | |
| 5828 | int main(){ |
| 5829 | pthread_t p; |
| 5830 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 5831 | return 1; |
| 5832 | (void)pthread_detach(p); |
| 5833 | return 0; |
| 5834 | } |
| 5835 | |
| 5836 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5837 | if ac_fn_c_try_run "$LINENO"; then : |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5838 | ac_cv_pthread=yes |
| 5839 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5840 | ac_cv_pthread=no |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5841 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5842 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 5843 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5844 | fi |
| 5845 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5846 | CC="$ac_save_cc" |
| 5847 | fi |
| 5848 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 5850 | $as_echo "$ac_cv_pthread" >&6; } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5851 | fi |
| 5852 | |
| 5853 | # If we have set a CC compiler flag for thread support then |
| 5854 | # check if it works for CXX, too. |
| 5855 | ac_cv_cxx_thread=no |
| 5856 | if test ! -z "$CXX" |
| 5857 | then |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5858 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX also accepts flags for thread support" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 5859 | $as_echo_n "checking whether $CXX also accepts flags for thread support... " >&6; } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5860 | ac_save_cxx="$CXX" |
| 5861 | |
| 5862 | if test "$ac_cv_kpthread" = "yes" |
| 5863 | then |
| 5864 | CXX="$CXX -Kpthread" |
| 5865 | ac_cv_cxx_thread=yes |
| 5866 | elif test "$ac_cv_kthread" = "yes" |
| 5867 | then |
| 5868 | CXX="$CXX -Kthread" |
| 5869 | ac_cv_cxx_thread=yes |
| 5870 | elif test "$ac_cv_pthread" = "yes" |
| 5871 | then |
| 5872 | CXX="$CXX -pthread" |
| 5873 | ac_cv_cxx_thread=yes |
| 5874 | fi |
| 5875 | |
| 5876 | if test $ac_cv_cxx_thread = yes |
| 5877 | then |
| 5878 | echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext |
| 5879 | $CXX -c conftest.$ac_ext 2>&5 |
| 5880 | if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ |
| 5881 | && test -s conftest$ac_exeext && ./conftest$ac_exeext |
| 5882 | then |
| 5883 | ac_cv_cxx_thread=yes |
| 5884 | else |
| 5885 | ac_cv_cxx_thread=no |
| 5886 | fi |
| 5887 | rm -fr conftest* |
| 5888 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_thread" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 5890 | $as_echo "$ac_cv_cxx_thread" >&6; } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5891 | fi |
| 5892 | CXX="$ac_save_cxx" |
| 5893 | |
| 5894 | |
| 5895 | # checks for header files |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5896 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 5897 | $as_echo_n "checking for ANSI C header files... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 5898 | if ${ac_cv_header_stdc+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 5899 | $as_echo_n "(cached) " >&6 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5900 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5901 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5902 | /* end confdefs.h. */ |
| 5903 | #include <stdlib.h> |
| 5904 | #include <stdarg.h> |
| 5905 | #include <string.h> |
| 5906 | #include <float.h> |
| 5907 | |
| 5908 | int |
| 5909 | main () |
| 5910 | { |
| 5911 | |
| 5912 | ; |
| 5913 | return 0; |
| 5914 | } |
| 5915 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5916 | if ac_fn_c_try_compile "$LINENO"; then : |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5917 | ac_cv_header_stdc=yes |
| 5918 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5919 | ac_cv_header_stdc=no |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5920 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5921 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5922 | |
| 5923 | if test $ac_cv_header_stdc = yes; then |
| 5924 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5925 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5926 | /* end confdefs.h. */ |
| 5927 | #include <string.h> |
| 5928 | |
| 5929 | _ACEOF |
| 5930 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5931 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 5932 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5933 | else |
| 5934 | ac_cv_header_stdc=no |
| 5935 | fi |
Jesus Cea | 0f752ee | 2010-04-28 12:03:06 +0000 | [diff] [blame] | 5936 | rm -f conftest* |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5937 | |
| 5938 | fi |
| 5939 | |
| 5940 | if test $ac_cv_header_stdc = yes; then |
| 5941 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5942 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5943 | /* end confdefs.h. */ |
| 5944 | #include <stdlib.h> |
| 5945 | |
| 5946 | _ACEOF |
| 5947 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5948 | $EGREP "free" >/dev/null 2>&1; then : |
| 5949 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5950 | else |
| 5951 | ac_cv_header_stdc=no |
| 5952 | fi |
Jesus Cea | 0f752ee | 2010-04-28 12:03:06 +0000 | [diff] [blame] | 5953 | rm -f conftest* |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5954 | |
| 5955 | fi |
| 5956 | |
| 5957 | if test $ac_cv_header_stdc = yes; then |
| 5958 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5959 | if test "$cross_compiling" = yes; then : |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5960 | : |
| 5961 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5962 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5963 | /* end confdefs.h. */ |
| 5964 | #include <ctype.h> |
| 5965 | #include <stdlib.h> |
| 5966 | #if ((' ' & 0x0FF) == 0x020) |
| 5967 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 5968 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 5969 | #else |
| 5970 | # define ISLOWER(c) \ |
| 5971 | (('a' <= (c) && (c) <= 'i') \ |
| 5972 | || ('j' <= (c) && (c) <= 'r') \ |
| 5973 | || ('s' <= (c) && (c) <= 'z')) |
| 5974 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 5975 | #endif |
| 5976 | |
| 5977 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 5978 | int |
| 5979 | main () |
| 5980 | { |
| 5981 | int i; |
| 5982 | for (i = 0; i < 256; i++) |
| 5983 | if (XOR (islower (i), ISLOWER (i)) |
| 5984 | || toupper (i) != TOUPPER (i)) |
| 5985 | return 2; |
| 5986 | return 0; |
| 5987 | } |
| 5988 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5989 | if ac_fn_c_try_run "$LINENO"; then : |
| 5990 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5991 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5992 | ac_cv_header_stdc=no |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5993 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5994 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 5995 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5996 | fi |
| 5997 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5998 | fi |
| 5999 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6001 | $as_echo "$ac_cv_header_stdc" >&6; } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6002 | if test $ac_cv_header_stdc = yes; then |
| 6003 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6004 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6005 | |
| 6006 | fi |
| 6007 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 6008 | for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \ |
| 6009 | fcntl.h grp.h \ |
Christian Heimes | bbe741d | 2008-03-28 10:53:29 +0000 | [diff] [blame] | 6010 | 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] | 6011 | 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] | 6012 | unistd.h utime.h \ |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 6013 | sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \ |
| 6014 | sys/lock.h sys/mkdev.h sys/modem.h \ |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 6015 | sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \ |
Benjamin Peterson | de9c869 | 2008-07-01 18:23:09 +0000 | [diff] [blame] | 6016 | sys/termio.h sys/time.h \ |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 6017 | 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] | 6018 | sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \ |
Christian Heimes | 043d6f6 | 2008-01-07 17:19:16 +0000 | [diff] [blame] | 6019 | bluetooth/bluetooth.h linux/tipc.h |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6020 | do : |
| 6021 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6022 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 6023 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6024 | cat >>confdefs.h <<_ACEOF |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6025 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6026 | _ACEOF |
| 6027 | |
| 6028 | fi |
| 6029 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6030 | done |
| 6031 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6032 | ac_header_dirent=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6033 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6034 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6035 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6036 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 6037 | if eval \${$as_ac_Header+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6038 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6039 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6040 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6041 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6042 | #include <sys/types.h> |
| 6043 | #include <$ac_hdr> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6044 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6045 | int |
| 6046 | main () |
| 6047 | { |
| 6048 | if ((DIR *) 0) |
| 6049 | return 0; |
| 6050 | ; |
| 6051 | return 0; |
| 6052 | } |
| 6053 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6054 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6055 | eval "$as_ac_Header=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6056 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6057 | eval "$as_ac_Header=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6058 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6059 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6060 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6061 | eval ac_res=\$$as_ac_Header |
| 6062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6063 | $as_echo "$ac_res" >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 6064 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6065 | cat >>confdefs.h <<_ACEOF |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6066 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6067 | _ACEOF |
| 6068 | |
| 6069 | ac_header_dirent=$ac_hdr; break |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6070 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6071 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6072 | done |
| 6073 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 6074 | if test $ac_header_dirent = dirent.h; then |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6075 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6076 | $as_echo_n "checking for library containing opendir... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 6077 | if ${ac_cv_search_opendir+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6078 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6079 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6080 | ac_func_search_save_LIBS=$LIBS |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6081 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6082 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6083 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6084 | /* Override any GCC internal prototype to avoid an error. |
| 6085 | Use char because int might match the return type of a GCC |
| 6086 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6087 | #ifdef __cplusplus |
| 6088 | extern "C" |
| 6089 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6090 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6091 | int |
| 6092 | main () |
| 6093 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6094 | return opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6095 | ; |
| 6096 | return 0; |
| 6097 | } |
| 6098 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6099 | for ac_lib in '' dir; do |
| 6100 | if test -z "$ac_lib"; then |
| 6101 | ac_res="none required" |
| 6102 | else |
| 6103 | ac_res=-l$ac_lib |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 6104 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6105 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6106 | if ac_fn_c_try_link "$LINENO"; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6107 | ac_cv_search_opendir=$ac_res |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6108 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6109 | rm -f core conftest.err conftest.$ac_objext \ |
| 6110 | conftest$ac_exeext |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 6111 | if ${ac_cv_search_opendir+:} false; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6112 | break |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 6113 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6114 | done |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 6115 | if ${ac_cv_search_opendir+:} false; then : |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6116 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6117 | else |
| 6118 | ac_cv_search_opendir=no |
| 6119 | fi |
| 6120 | rm conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6121 | LIBS=$ac_func_search_save_LIBS |
| 6122 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6124 | $as_echo "$ac_cv_search_opendir" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6125 | ac_res=$ac_cv_search_opendir |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6126 | if test "$ac_res" != no; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6127 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6128 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6129 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6130 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6131 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6132 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6133 | $as_echo_n "checking for library containing opendir... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 6134 | if ${ac_cv_search_opendir+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6135 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6136 | else |
| 6137 | ac_func_search_save_LIBS=$LIBS |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6138 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6139 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6140 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6141 | /* Override any GCC internal prototype to avoid an error. |
| 6142 | Use char because int might match the return type of a GCC |
| 6143 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6144 | #ifdef __cplusplus |
| 6145 | extern "C" |
| 6146 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6147 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6148 | int |
| 6149 | main () |
| 6150 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6151 | return opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6152 | ; |
| 6153 | return 0; |
| 6154 | } |
| 6155 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6156 | for ac_lib in '' x; do |
| 6157 | if test -z "$ac_lib"; then |
| 6158 | ac_res="none required" |
| 6159 | else |
| 6160 | ac_res=-l$ac_lib |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 6161 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6162 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6163 | if ac_fn_c_try_link "$LINENO"; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6164 | ac_cv_search_opendir=$ac_res |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6165 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6166 | rm -f core conftest.err conftest.$ac_objext \ |
| 6167 | conftest$ac_exeext |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 6168 | if ${ac_cv_search_opendir+:} false; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6169 | break |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 6170 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6171 | done |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 6172 | if ${ac_cv_search_opendir+:} false; then : |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6173 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6174 | else |
| 6175 | ac_cv_search_opendir=no |
| 6176 | fi |
| 6177 | rm conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6178 | LIBS=$ac_func_search_save_LIBS |
| 6179 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6180 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6181 | $as_echo "$ac_cv_search_opendir" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6182 | ac_res=$ac_cv_search_opendir |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6183 | if test "$ac_res" != no; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6184 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6185 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6186 | fi |
| 6187 | |
| 6188 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6189 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6190 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6191 | $as_echo_n "checking whether sys/types.h defines makedev... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 6192 | if ${ac_cv_header_sys_types_h_makedev+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6193 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6194 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6195 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6196 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6197 | #include <sys/types.h> |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6198 | int |
| 6199 | main () |
| 6200 | { |
| 6201 | return makedev(0, 0); |
| 6202 | ; |
| 6203 | return 0; |
| 6204 | } |
| 6205 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6206 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6207 | ac_cv_header_sys_types_h_makedev=yes |
| 6208 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6209 | ac_cv_header_sys_types_h_makedev=no |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6210 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6211 | rm -f core conftest.err conftest.$ac_objext \ |
| 6212 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6213 | |
| 6214 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6216 | $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6217 | |
| 6218 | if test $ac_cv_header_sys_types_h_makedev = no; then |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6219 | ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default" |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 6220 | if test "x$ac_cv_header_sys_mkdev_h" = xyes; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6221 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6222 | $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6223 | |
| 6224 | fi |
| 6225 | |
| 6226 | |
| 6227 | |
| 6228 | if test $ac_cv_header_sys_mkdev_h = no; then |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6229 | ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default" |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 6230 | if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6231 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6232 | $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6233 | |
| 6234 | fi |
| 6235 | |
| 6236 | |
| 6237 | fi |
| 6238 | fi |
| 6239 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6240 | |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6241 | # On Solaris, term.h requires curses.h |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6242 | for ac_header in term.h |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6243 | do : |
| 6244 | 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] | 6245 | #ifdef HAVE_CURSES_H |
| 6246 | #include <curses.h> |
| 6247 | #endif |
| 6248 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6249 | " |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 6250 | if test "x$ac_cv_header_term_h" = xyes; then : |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6251 | cat >>confdefs.h <<_ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6252 | #define HAVE_TERM_H 1 |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6253 | _ACEOF |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6254 | |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6255 | fi |
| 6256 | |
| 6257 | done |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6258 | |
| 6259 | |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6260 | # On Linux, netlink.h requires asm/types.h |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6261 | for ac_header in linux/netlink.h |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6262 | do : |
| 6263 | 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] | 6264 | #ifdef HAVE_ASM_TYPES_H |
| 6265 | #include <asm/types.h> |
| 6266 | #endif |
| 6267 | #ifdef HAVE_SYS_SOCKET_H |
| 6268 | #include <sys/socket.h> |
| 6269 | #endif |
| 6270 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6271 | " |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 6272 | 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] | 6273 | cat >>confdefs.h <<_ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6274 | #define HAVE_LINUX_NETLINK_H 1 |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6275 | _ACEOF |
| 6276 | |
| 6277 | fi |
| 6278 | |
| 6279 | done |
| 6280 | |
| 6281 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6282 | # checks for typedefs |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6283 | was_it_defined=no |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6284 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t in time.h" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6285 | $as_echo_n "checking for clock_t in time.h... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +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 <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6289 | |
| 6290 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6291 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6292 | $EGREP "clock_t" >/dev/null 2>&1; then : |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6293 | was_it_defined=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6294 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6295 | |
| 6296 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6297 | $as_echo "#define clock_t long" >>confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6298 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 6299 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6300 | fi |
Jesus Cea | 0f752ee | 2010-04-28 12:03:06 +0000 | [diff] [blame] | 6301 | rm -f conftest* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6302 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6304 | $as_echo "$was_it_defined" >&6; } |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6305 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6306 | # Check whether using makedev requires defining _OSF_SOURCE |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6307 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for makedev" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6308 | $as_echo_n "checking for makedev... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6309 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6310 | /* end confdefs.h. */ |
Jesus Cea | 0f752ee | 2010-04-28 12:03:06 +0000 | [diff] [blame] | 6311 | |
| 6312 | #if defined(MAJOR_IN_MKDEV) |
| 6313 | #include <sys/mkdev.h> |
| 6314 | #elif defined(MAJOR_IN_SYSMACROS) |
| 6315 | #include <sys/sysmacros.h> |
| 6316 | #else |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 6317 | #include <sys/types.h> |
Jesus Cea | 0f752ee | 2010-04-28 12:03:06 +0000 | [diff] [blame] | 6318 | #endif |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6319 | int |
| 6320 | main () |
| 6321 | { |
| 6322 | makedev(0, 0) |
| 6323 | ; |
| 6324 | return 0; |
| 6325 | } |
| 6326 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6327 | if ac_fn_c_try_link "$LINENO"; then : |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6328 | ac_cv_has_makedev=yes |
| 6329 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6330 | ac_cv_has_makedev=no |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6331 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6332 | rm -f core conftest.err conftest.$ac_objext \ |
| 6333 | conftest$ac_exeext conftest.$ac_ext |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6334 | if test "$ac_cv_has_makedev" = "no"; then |
| 6335 | # we didn't link, try if _OSF_SOURCE will allow us to link |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6336 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6337 | /* end confdefs.h. */ |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6338 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 6339 | #define _OSF_SOURCE 1 |
| 6340 | #include <sys/types.h> |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6341 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6342 | int |
| 6343 | main () |
| 6344 | { |
| 6345 | makedev(0, 0) |
| 6346 | ; |
| 6347 | return 0; |
| 6348 | } |
| 6349 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6350 | if ac_fn_c_try_link "$LINENO"; then : |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6351 | ac_cv_has_makedev=yes |
| 6352 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6353 | ac_cv_has_makedev=no |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6354 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6355 | rm -f core conftest.err conftest.$ac_objext \ |
| 6356 | conftest$ac_exeext conftest.$ac_ext |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6357 | if test "$ac_cv_has_makedev" = "yes"; then |
| 6358 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6359 | $as_echo "#define _OSF_SOURCE 1" >>confdefs.h |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6360 | |
| 6361 | fi |
| 6362 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6363 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_makedev" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6364 | $as_echo "$ac_cv_has_makedev" >&6; } |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6365 | if test "$ac_cv_has_makedev" = "yes"; then |
| 6366 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6367 | $as_echo "#define HAVE_MAKEDEV 1" >>confdefs.h |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6368 | |
| 6369 | fi |
| 6370 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6371 | # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in |
| 6372 | # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are |
| 6373 | # defined, but the compiler does not support pragma redefine_extname, |
| 6374 | # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit |
| 6375 | # structures (such as rlimit64) without declaring them. As a |
| 6376 | # work-around, disable LFS on such configurations |
| 6377 | |
| 6378 | use_lfs=yes |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6379 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking Solaris LFS bug" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6380 | $as_echo_n "checking Solaris LFS bug... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6381 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6382 | /* end confdefs.h. */ |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6383 | |
| 6384 | #define _LARGEFILE_SOURCE 1 |
| 6385 | #define _FILE_OFFSET_BITS 64 |
| 6386 | #include <sys/resource.h> |
| 6387 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6388 | int |
| 6389 | main () |
| 6390 | { |
| 6391 | struct rlimit foo; |
| 6392 | ; |
| 6393 | return 0; |
| 6394 | } |
| 6395 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6396 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6397 | sol_lfs_bug=no |
| 6398 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6399 | sol_lfs_bug=yes |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6400 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6401 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sol_lfs_bug" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6403 | $as_echo "$sol_lfs_bug" >&6; } |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6404 | if test "$sol_lfs_bug" = "yes"; then |
| 6405 | use_lfs=no |
| 6406 | fi |
| 6407 | |
| 6408 | if test "$use_lfs" = "yes"; then |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6409 | # Two defines needed to enable largefile support on various platforms |
| 6410 | # These may affect some typedefs |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6411 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6412 | $as_echo "#define _LARGEFILE_SOURCE 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6413 | |
| 6414 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6415 | $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6416 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6417 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6418 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 6419 | # Add some code to confdefs.h so that the test for off_t works on SCO |
| 6420 | cat >> confdefs.h <<\EOF |
| 6421 | #if defined(SCO_DS) |
| 6422 | #undef _OFF_T |
| 6423 | #endif |
| 6424 | EOF |
| 6425 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6426 | # Type availability checks |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6427 | ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 6428 | if test "x$ac_cv_type_mode_t" = xyes; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6429 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6430 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6431 | |
| 6432 | cat >>confdefs.h <<_ACEOF |
| 6433 | #define mode_t int |
| 6434 | _ACEOF |
| 6435 | |
| 6436 | fi |
| 6437 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6438 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 6439 | if test "x$ac_cv_type_off_t" = xyes; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6440 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6441 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6442 | |
| 6443 | cat >>confdefs.h <<_ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6444 | #define off_t long int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6445 | _ACEOF |
| 6446 | |
| 6447 | fi |
| 6448 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6449 | ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 6450 | if test "x$ac_cv_type_pid_t" = xyes; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6451 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6452 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6453 | |
| 6454 | cat >>confdefs.h <<_ACEOF |
| 6455 | #define pid_t int |
| 6456 | _ACEOF |
| 6457 | |
| 6458 | fi |
| 6459 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6460 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6461 | $as_echo_n "checking return type of signal handlers... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 6462 | if ${ac_cv_type_signal+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6463 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6464 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6465 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6466 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6467 | #include <sys/types.h> |
| 6468 | #include <signal.h> |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6469 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6470 | int |
| 6471 | main () |
| 6472 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6473 | return *(signal (0, 0)) (0) == 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6474 | ; |
| 6475 | return 0; |
| 6476 | } |
| 6477 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6478 | if ac_fn_c_try_compile "$LINENO"; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6479 | ac_cv_type_signal=int |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6480 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6481 | ac_cv_type_signal=void |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6482 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6483 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6484 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6486 | $as_echo "$ac_cv_type_signal" >&6; } |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6487 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6488 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6489 | #define RETSIGTYPE $ac_cv_type_signal |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6490 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6491 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6492 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6493 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 6494 | if test "x$ac_cv_type_size_t" = xyes; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6495 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6496 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6497 | |
| 6498 | cat >>confdefs.h <<_ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6499 | #define size_t unsigned int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6500 | _ACEOF |
| 6501 | |
| 6502 | fi |
| 6503 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6504 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6505 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 6506 | if ${ac_cv_type_uid_t+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6507 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6508 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6509 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6510 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6511 | #include <sys/types.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6512 | |
| 6513 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6514 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6515 | $EGREP "uid_t" >/dev/null 2>&1; then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6516 | ac_cv_type_uid_t=yes |
| 6517 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6518 | ac_cv_type_uid_t=no |
| 6519 | fi |
Jesus Cea | 0f752ee | 2010-04-28 12:03:06 +0000 | [diff] [blame] | 6520 | rm -f conftest* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6521 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6522 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6524 | $as_echo "$ac_cv_type_uid_t" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6525 | if test $ac_cv_type_uid_t = no; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6526 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6527 | $as_echo "#define uid_t int" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6528 | |
| 6529 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6530 | $as_echo "#define gid_t int" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6531 | |
| 6532 | fi |
| 6533 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6534 | ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" |
| 6535 | case $ac_cv_c_uint32_t in #( |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 6536 | no|yes) ;; #( |
| 6537 | *) |
| 6538 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6539 | $as_echo "#define _UINT32_T 1" >>confdefs.h |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 6540 | |
| 6541 | |
| 6542 | cat >>confdefs.h <<_ACEOF |
| 6543 | #define uint32_t $ac_cv_c_uint32_t |
| 6544 | _ACEOF |
| 6545 | ;; |
| 6546 | esac |
| 6547 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6548 | ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t" |
| 6549 | case $ac_cv_c_uint64_t in #( |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 6550 | no|yes) ;; #( |
| 6551 | *) |
| 6552 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6553 | $as_echo "#define _UINT64_T 1" >>confdefs.h |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 6554 | |
| 6555 | |
| 6556 | cat >>confdefs.h <<_ACEOF |
| 6557 | #define uint64_t $ac_cv_c_uint64_t |
| 6558 | _ACEOF |
| 6559 | ;; |
| 6560 | esac |
| 6561 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6562 | ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" |
| 6563 | case $ac_cv_c_int32_t in #( |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 6564 | no|yes) ;; #( |
| 6565 | *) |
| 6566 | |
| 6567 | cat >>confdefs.h <<_ACEOF |
| 6568 | #define int32_t $ac_cv_c_int32_t |
| 6569 | _ACEOF |
| 6570 | ;; |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 6571 | esac |
| 6572 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6573 | ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t" |
| 6574 | case $ac_cv_c_int64_t in #( |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 6575 | no|yes) ;; #( |
| 6576 | *) |
| 6577 | |
| 6578 | cat >>confdefs.h <<_ACEOF |
| 6579 | #define int64_t $ac_cv_c_int64_t |
| 6580 | _ACEOF |
| 6581 | ;; |
Benjamin Peterson | a833206 | 2009-09-11 22:36:27 +0000 | [diff] [blame] | 6582 | esac |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6583 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6584 | ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 6585 | if test "x$ac_cv_type_ssize_t" = xyes; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6586 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6587 | $as_echo "#define HAVE_SSIZE_T 1" >>confdefs.h |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6588 | |
| 6589 | fi |
| 6590 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 6591 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6592 | # Sizes of various common basic types |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 6593 | # ANSI C requires sizeof(char) == 1, so no need to check it |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6594 | # The cast to long int works around a bug in the HP C Compiler |
| 6595 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6596 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6597 | # This bug is HP SR number 8606223364. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6598 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6599 | $as_echo_n "checking size of int... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 6600 | if ${ac_cv_sizeof_int+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6601 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6602 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6603 | 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] | 6604 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6605 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6606 | if test "$ac_cv_type_int" = yes; then |
| 6607 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6608 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 6609 | as_fn_error 77 "cannot compute sizeof (int) |
| 6610 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6611 | else |
| 6612 | ac_cv_sizeof_int=0 |
| 6613 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6614 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6615 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6616 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6618 | $as_echo "$ac_cv_sizeof_int" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6619 | |
| 6620 | |
| 6621 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6622 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6623 | #define SIZEOF_INT $ac_cv_sizeof_int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6624 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6625 | |
| 6626 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6627 | # The cast to long int works around a bug in the HP C Compiler |
| 6628 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6629 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6630 | # This bug is HP SR number 8606223364. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6631 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6632 | $as_echo_n "checking size of long... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 6633 | if ${ac_cv_sizeof_long+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6634 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6635 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6636 | 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] | 6637 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6638 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6639 | if test "$ac_cv_type_long" = yes; then |
| 6640 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6641 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 6642 | as_fn_error 77 "cannot compute sizeof (long) |
| 6643 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6644 | else |
| 6645 | ac_cv_sizeof_long=0 |
| 6646 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6647 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6648 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6649 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6651 | $as_echo "$ac_cv_sizeof_long" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6652 | |
| 6653 | |
| 6654 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6655 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6656 | #define SIZEOF_LONG $ac_cv_sizeof_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6657 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6658 | |
| 6659 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6660 | # The cast to long int works around a bug in the HP C Compiler |
| 6661 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6662 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6663 | # This bug is HP SR number 8606223364. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6664 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6665 | $as_echo_n "checking size of void *... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 6666 | if ${ac_cv_sizeof_void_p+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6667 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6668 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6669 | 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] | 6670 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6671 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6672 | if test "$ac_cv_type_void_p" = yes; then |
| 6673 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6674 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 6675 | as_fn_error 77 "cannot compute sizeof (void *) |
| 6676 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6677 | else |
| 6678 | ac_cv_sizeof_void_p=0 |
| 6679 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6680 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6681 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6682 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6684 | $as_echo "$ac_cv_sizeof_void_p" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6685 | |
| 6686 | |
| 6687 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6688 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6689 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6690 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6691 | |
| 6692 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6693 | # The cast to long int works around a bug in the HP C Compiler |
| 6694 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6695 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6696 | # This bug is HP SR number 8606223364. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6697 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6698 | $as_echo_n "checking size of short... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 6699 | if ${ac_cv_sizeof_short+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6700 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6701 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6702 | 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] | 6703 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6704 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6705 | if test "$ac_cv_type_short" = yes; then |
| 6706 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6707 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 6708 | as_fn_error 77 "cannot compute sizeof (short) |
| 6709 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6710 | else |
| 6711 | ac_cv_sizeof_short=0 |
| 6712 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6713 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6714 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6715 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6717 | $as_echo "$ac_cv_sizeof_short" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6718 | |
| 6719 | |
| 6720 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6721 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6722 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6723 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6724 | |
| 6725 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6726 | # The cast to long int works around a bug in the HP C Compiler |
| 6727 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6728 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6729 | # This bug is HP SR number 8606223364. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6730 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6731 | $as_echo_n "checking size of float... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 6732 | if ${ac_cv_sizeof_float+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6733 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6734 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6735 | 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] | 6736 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6737 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6738 | if test "$ac_cv_type_float" = yes; then |
| 6739 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6740 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 6741 | as_fn_error 77 "cannot compute sizeof (float) |
| 6742 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6743 | else |
| 6744 | ac_cv_sizeof_float=0 |
| 6745 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6746 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6747 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6748 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6750 | $as_echo "$ac_cv_sizeof_float" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6751 | |
| 6752 | |
| 6753 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6754 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6755 | #define SIZEOF_FLOAT $ac_cv_sizeof_float |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6756 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6757 | |
| 6758 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6759 | # The cast to long int works around a bug in the HP C Compiler |
| 6760 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6761 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6762 | # This bug is HP SR number 8606223364. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6763 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6764 | $as_echo_n "checking size of double... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 6765 | if ${ac_cv_sizeof_double+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6766 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6767 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6768 | 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] | 6769 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6770 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6771 | if test "$ac_cv_type_double" = yes; then |
| 6772 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6773 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 6774 | as_fn_error 77 "cannot compute sizeof (double) |
| 6775 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6776 | else |
| 6777 | ac_cv_sizeof_double=0 |
| 6778 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6779 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6780 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6781 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6783 | $as_echo "$ac_cv_sizeof_double" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6784 | |
| 6785 | |
| 6786 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6787 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6788 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6789 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6790 | |
| 6791 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6792 | # The cast to long int works around a bug in the HP C Compiler |
| 6793 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6794 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6795 | # This bug is HP SR number 8606223364. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6796 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of fpos_t" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6797 | $as_echo_n "checking size of fpos_t... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 6798 | if ${ac_cv_sizeof_fpos_t+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6799 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6800 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6801 | 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] | 6802 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6803 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6804 | if test "$ac_cv_type_fpos_t" = yes; then |
| 6805 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6806 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 6807 | as_fn_error 77 "cannot compute sizeof (fpos_t) |
| 6808 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6809 | else |
| 6810 | ac_cv_sizeof_fpos_t=0 |
| 6811 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6812 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6813 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6814 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_fpos_t" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6816 | $as_echo "$ac_cv_sizeof_fpos_t" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6817 | |
| 6818 | |
| 6819 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6820 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 6821 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6822 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 6823 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6824 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6825 | # The cast to long int works around a bug in the HP C Compiler |
| 6826 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6827 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6828 | # This bug is HP SR number 8606223364. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6829 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6830 | $as_echo_n "checking size of size_t... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 6831 | if ${ac_cv_sizeof_size_t+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6832 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6833 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6834 | 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] | 6835 | |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6836 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6837 | if test "$ac_cv_type_size_t" = yes; then |
| 6838 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6839 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 6840 | as_fn_error 77 "cannot compute sizeof (size_t) |
| 6841 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6842 | else |
| 6843 | ac_cv_sizeof_size_t=0 |
| 6844 | fi |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6845 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6846 | |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6847 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6849 | $as_echo "$ac_cv_sizeof_size_t" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6850 | |
| 6851 | |
| 6852 | |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6853 | cat >>confdefs.h <<_ACEOF |
| 6854 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t |
| 6855 | _ACEOF |
| 6856 | |
| 6857 | |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 6858 | # The cast to long int works around a bug in the HP C Compiler |
| 6859 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6860 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6861 | # This bug is HP SR number 8606223364. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6862 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pid_t" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6863 | $as_echo_n "checking size of pid_t... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 6864 | if ${ac_cv_sizeof_pid_t+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6865 | $as_echo_n "(cached) " >&6 |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 6866 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6867 | 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] | 6868 | |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 6869 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6870 | if test "$ac_cv_type_pid_t" = yes; then |
| 6871 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6872 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 6873 | as_fn_error 77 "cannot compute sizeof (pid_t) |
| 6874 | See \`config.log' for more details" "$LINENO" 5; } |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 6875 | else |
| 6876 | ac_cv_sizeof_pid_t=0 |
| 6877 | fi |
| 6878 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6879 | |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 6880 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pid_t" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6882 | $as_echo "$ac_cv_sizeof_pid_t" >&6; } |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 6883 | |
| 6884 | |
| 6885 | |
| 6886 | cat >>confdefs.h <<_ACEOF |
| 6887 | #define SIZEOF_PID_T $ac_cv_sizeof_pid_t |
| 6888 | _ACEOF |
| 6889 | |
| 6890 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6891 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6892 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6893 | $as_echo_n "checking for long long support... " >&6; } |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 6894 | have_long_long=no |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6895 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6896 | /* end confdefs.h. */ |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 6897 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6898 | int |
| 6899 | main () |
| 6900 | { |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 6901 | long long x; x = (long long)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6902 | ; |
| 6903 | return 0; |
| 6904 | } |
| 6905 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6906 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6907 | |
| 6908 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6909 | $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6910 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 6911 | have_long_long=yes |
| 6912 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 6913 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6914 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_long_long" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6916 | $as_echo "$have_long_long" >&6; } |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 6917 | if test "$have_long_long" = yes ; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6918 | # The cast to long int works around a bug in the HP C Compiler |
| 6919 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6920 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6921 | # This bug is HP SR number 8606223364. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6922 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6923 | $as_echo_n "checking size of long long... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 6924 | if ${ac_cv_sizeof_long_long+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6925 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6926 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6927 | 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] | 6928 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6929 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6930 | if test "$ac_cv_type_long_long" = yes; then |
| 6931 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6932 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 6933 | as_fn_error 77 "cannot compute sizeof (long long) |
| 6934 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6935 | else |
| 6936 | ac_cv_sizeof_long_long=0 |
| 6937 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6938 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6939 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6940 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6942 | $as_echo "$ac_cv_sizeof_long_long" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6943 | |
| 6944 | |
| 6945 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6946 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 6947 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6948 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 6949 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6950 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 6951 | fi |
| 6952 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6953 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6954 | $as_echo_n "checking for long double support... " >&6; } |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 6955 | have_long_double=no |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6956 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 6957 | /* end confdefs.h. */ |
| 6958 | |
| 6959 | int |
| 6960 | main () |
| 6961 | { |
| 6962 | long double x; x = (long double)0; |
| 6963 | ; |
| 6964 | return 0; |
| 6965 | } |
| 6966 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6967 | if ac_fn_c_try_compile "$LINENO"; then : |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 6968 | |
| 6969 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6970 | $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 6971 | |
| 6972 | have_long_double=yes |
| 6973 | |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 6974 | fi |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 6975 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_long_double" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6977 | $as_echo "$have_long_double" >&6; } |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 6978 | if test "$have_long_double" = yes ; then |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 6979 | # The cast to long int works around a bug in the HP C Compiler |
| 6980 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6981 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6982 | # This bug is HP SR number 8606223364. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6983 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6984 | $as_echo_n "checking size of long double... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 6985 | if ${ac_cv_sizeof_long_double+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6986 | $as_echo_n "(cached) " >&6 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 6987 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6988 | 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] | 6989 | |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 6990 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6991 | if test "$ac_cv_type_long_double" = yes; then |
| 6992 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6993 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 6994 | as_fn_error 77 "cannot compute sizeof (long double) |
| 6995 | See \`config.log' for more details" "$LINENO" 5; } |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 6996 | else |
| 6997 | ac_cv_sizeof_long_double=0 |
| 6998 | fi |
| 6999 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7000 | |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 7001 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7003 | $as_echo "$ac_cv_sizeof_long_double" >&6; } |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 7004 | |
| 7005 | |
| 7006 | |
| 7007 | cat >>confdefs.h <<_ACEOF |
| 7008 | #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double |
| 7009 | _ACEOF |
| 7010 | |
| 7011 | |
| 7012 | fi |
| 7013 | |
| 7014 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7015 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Bool support" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7016 | $as_echo_n "checking for _Bool support... " >&6; } |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 7017 | have_c99_bool=no |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7018 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 7019 | /* end confdefs.h. */ |
| 7020 | |
| 7021 | int |
| 7022 | main () |
| 7023 | { |
| 7024 | _Bool x; x = (_Bool)0; |
| 7025 | ; |
| 7026 | return 0; |
| 7027 | } |
| 7028 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7029 | if ac_fn_c_try_compile "$LINENO"; then : |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 7030 | |
| 7031 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7032 | $as_echo "#define HAVE_C99_BOOL 1" >>confdefs.h |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 7033 | |
| 7034 | have_c99_bool=yes |
| 7035 | |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 7036 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7037 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_c99_bool" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7039 | $as_echo "$have_c99_bool" >&6; } |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 7040 | if test "$have_c99_bool" = yes ; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7041 | # The cast to long int works around a bug in the HP C Compiler |
| 7042 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7043 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7044 | # This bug is HP SR number 8606223364. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7045 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of _Bool" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7046 | $as_echo_n "checking size of _Bool... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 7047 | if ${ac_cv_sizeof__Bool+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7048 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 7049 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7050 | 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] | 7051 | |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 7052 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7053 | if test "$ac_cv_type__Bool" = yes; then |
| 7054 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7055 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 7056 | as_fn_error 77 "cannot compute sizeof (_Bool) |
| 7057 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7058 | else |
| 7059 | ac_cv_sizeof__Bool=0 |
| 7060 | fi |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 7061 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7062 | |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 7063 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof__Bool" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7065 | $as_echo "$ac_cv_sizeof__Bool" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7066 | |
| 7067 | |
| 7068 | |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 7069 | cat >>confdefs.h <<_ACEOF |
| 7070 | #define SIZEOF__BOOL $ac_cv_sizeof__Bool |
| 7071 | _ACEOF |
| 7072 | |
| 7073 | |
| 7074 | fi |
| 7075 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7076 | ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#ifdef HAVE_STDINT_H |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7077 | #include <stdint.h> |
| 7078 | #endif |
Antoine Pitrou | c158354 | 2010-10-10 08:15:08 +0000 | [diff] [blame] | 7079 | #ifdef HAVE_INTTYPES_H |
| 7080 | #include <inttypes.h> |
| 7081 | #endif |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7082 | " |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 7083 | if test "x$ac_cv_type_uintptr_t" = xyes; then : |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 7084 | |
| 7085 | cat >>confdefs.h <<_ACEOF |
| 7086 | #define HAVE_UINTPTR_T 1 |
| 7087 | _ACEOF |
| 7088 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7089 | # The cast to long int works around a bug in the HP C Compiler |
| 7090 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7091 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7092 | # This bug is HP SR number 8606223364. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7093 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uintptr_t" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7094 | $as_echo_n "checking size of uintptr_t... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 7095 | if ${ac_cv_sizeof_uintptr_t+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7096 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7097 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7098 | 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] | 7099 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7100 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7101 | if test "$ac_cv_type_uintptr_t" = yes; then |
| 7102 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7103 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 7104 | as_fn_error 77 "cannot compute sizeof (uintptr_t) |
| 7105 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7106 | else |
| 7107 | ac_cv_sizeof_uintptr_t=0 |
| 7108 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7109 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7110 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7111 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uintptr_t" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7113 | $as_echo "$ac_cv_sizeof_uintptr_t" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7114 | |
| 7115 | |
| 7116 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7117 | cat >>confdefs.h <<_ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 7118 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7119 | _ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 7120 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7121 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 7122 | fi |
| 7123 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 7124 | |
| 7125 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7126 | # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7127 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7128 | $as_echo_n "checking size of off_t... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 7129 | if ${ac_cv_sizeof_off_t+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7130 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7131 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7132 | if test "$cross_compiling" = yes; then : |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 7133 | ac_cv_sizeof_off_t=4 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7134 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7135 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7136 | /* end confdefs.h. */ |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7137 | #include <stdio.h> |
| 7138 | #include <sys/types.h> |
| 7139 | main() |
| 7140 | { |
| 7141 | FILE *f=fopen("conftestval", "w"); |
| 7142 | if (!f) exit(1); |
| 7143 | fprintf(f, "%d\n", sizeof(off_t)); |
| 7144 | exit(0); |
| 7145 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7146 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7147 | if ac_fn_c_try_run "$LINENO"; then : |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7148 | ac_cv_sizeof_off_t=`cat conftestval` |
| 7149 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7150 | ac_cv_sizeof_off_t=0 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7151 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7152 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7153 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7154 | fi |
| 7155 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7156 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7157 | fi |
| 7158 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7160 | $as_echo "$ac_cv_sizeof_off_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7161 | |
| 7162 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7163 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7164 | _ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7165 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7166 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7167 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable large file support" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7168 | $as_echo_n "checking whether to enable large file support... " >&6; } |
Mark Dickinson | b87f0d0 | 2009-12-31 21:25:02 +0000 | [diff] [blame] | 7169 | if test "$have_long_long" = yes |
| 7170 | then |
| 7171 | 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] | 7172 | "$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] | 7173 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7174 | $as_echo "#define HAVE_LARGEFILE_SUPPORT 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7175 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7177 | $as_echo "yes" >&6; } |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7178 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7180 | $as_echo "no" >&6; } |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7181 | fi |
Mark Dickinson | b87f0d0 | 2009-12-31 21:25:02 +0000 | [diff] [blame] | 7182 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7184 | $as_echo "no" >&6; } |
Mark Dickinson | b87f0d0 | 2009-12-31 21:25:02 +0000 | [diff] [blame] | 7185 | fi |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7186 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7187 | # AC_CHECK_SIZEOF() doesn't include <time.h>. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7188 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7189 | $as_echo_n "checking size of time_t... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 7190 | if ${ac_cv_sizeof_time_t+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7191 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7192 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7193 | if test "$cross_compiling" = yes; then : |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 7194 | ac_cv_sizeof_time_t=4 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7195 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7196 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7197 | /* end confdefs.h. */ |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7198 | #include <stdio.h> |
| 7199 | #include <time.h> |
| 7200 | main() |
| 7201 | { |
| 7202 | FILE *f=fopen("conftestval", "w"); |
| 7203 | if (!f) exit(1); |
| 7204 | fprintf(f, "%d\n", sizeof(time_t)); |
| 7205 | exit(0); |
| 7206 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7207 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7208 | if ac_fn_c_try_run "$LINENO"; then : |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7209 | ac_cv_sizeof_time_t=`cat conftestval` |
| 7210 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7211 | ac_cv_sizeof_time_t=0 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7212 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7213 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7214 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7215 | fi |
| 7216 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7217 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7218 | fi |
| 7219 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7220 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7221 | $as_echo "$ac_cv_sizeof_time_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7222 | |
| 7223 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7224 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7225 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7226 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7227 | |
| 7228 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7229 | # if have pthread_t then define SIZEOF_PTHREAD_T |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 7230 | ac_save_cc="$CC" |
| 7231 | if test "$ac_cv_kpthread" = "yes" |
| 7232 | then CC="$CC -Kpthread" |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 7233 | elif test "$ac_cv_kthread" = "yes" |
| 7234 | then CC="$CC -Kthread" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 7235 | elif test "$ac_cv_pthread" = "yes" |
| 7236 | then CC="$CC -pthread" |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 7237 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7238 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_t" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7239 | $as_echo_n "checking for pthread_t... " >&6; } |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7240 | have_pthread_t=no |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7241 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7242 | /* end confdefs.h. */ |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7243 | #include <pthread.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7244 | int |
| 7245 | main () |
| 7246 | { |
Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 7247 | pthread_t x; x = *(pthread_t*)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7248 | ; |
| 7249 | return 0; |
| 7250 | } |
| 7251 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7252 | if ac_fn_c_try_compile "$LINENO"; then : |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7253 | have_pthread_t=yes |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7254 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7255 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_t" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7257 | $as_echo "$have_pthread_t" >&6; } |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7258 | if test "$have_pthread_t" = yes ; then |
| 7259 | # AC_CHECK_SIZEOF() doesn't include <pthread.h>. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7260 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7261 | $as_echo_n "checking size of pthread_t... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 7262 | if ${ac_cv_sizeof_pthread_t+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7263 | $as_echo_n "(cached) " >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7264 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7265 | if test "$cross_compiling" = yes; then : |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 7266 | ac_cv_sizeof_pthread_t=4 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7267 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7268 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7269 | /* end confdefs.h. */ |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7270 | #include <stdio.h> |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 7271 | #include <pthread.h> |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7272 | main() |
| 7273 | { |
| 7274 | FILE *f=fopen("conftestval", "w"); |
| 7275 | if (!f) exit(1); |
| 7276 | fprintf(f, "%d\n", sizeof(pthread_t)); |
| 7277 | exit(0); |
| 7278 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7279 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7280 | if ac_fn_c_try_run "$LINENO"; then : |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7281 | ac_cv_sizeof_pthread_t=`cat conftestval` |
| 7282 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7283 | ac_cv_sizeof_pthread_t=0 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7284 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7285 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7286 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7287 | fi |
| 7288 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7289 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7290 | fi |
| 7291 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7293 | $as_echo "$ac_cv_sizeof_pthread_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7294 | |
| 7295 | cat >>confdefs.h <<_ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7296 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7297 | _ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7298 | |
| 7299 | fi |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 7300 | CC="$ac_save_cc" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7301 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7302 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7303 | |
Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 7304 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7305 | case $ac_sys_system/$ac_sys_release in |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 7306 | Darwin/[01567]\..*) |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 7307 | OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000" |
| 7308 | ;; |
| 7309 | Darwin/*) |
| 7310 | OTHER_LIBTOOL_OPT="" |
| 7311 | ;; |
| 7312 | esac |
| 7313 | |
| 7314 | |
Ronald Oussoren | d45ff2c | 2009-09-06 11:11:04 +0000 | [diff] [blame] | 7315 | ARCH_RUN_32BIT="" |
| 7316 | |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 7317 | case $ac_sys_system/$ac_sys_release in |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 7318 | Darwin/[01567]\..*) |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7319 | LIBTOOL_CRUFT="-framework System -lcc_dynamic" |
| 7320 | if test "${enable_universalsdk}"; then |
| 7321 | : |
| 7322 | else |
Ronald Oussoren | 175a884 | 2010-02-11 13:40:06 +0000 | [diff] [blame] | 7323 | LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `/usr/bin/arch`" |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7324 | fi |
Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 7325 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 7326 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 7327 | Darwin/*) |
Ronald Oussoren | 652f4de | 2010-02-07 11:54:03 +0000 | [diff] [blame] | 7328 | gcc_version=`gcc -dumpversion` |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 7329 | if test ${gcc_version} '<' 4.0 |
| 7330 | then |
| 7331 | LIBTOOL_CRUFT="-lcc_dynamic" |
| 7332 | else |
| 7333 | LIBTOOL_CRUFT="" |
| 7334 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7335 | if test "$cross_compiling" = yes; then : |
Ronald Oussoren | 856624d | 2009-09-08 07:13:53 +0000 | [diff] [blame] | 7336 | ac_osx_32bit=yes |
Ronald Oussoren | d45ff2c | 2009-09-06 11:11:04 +0000 | [diff] [blame] | 7337 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7338 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Ronald Oussoren | d45ff2c | 2009-09-06 11:11:04 +0000 | [diff] [blame] | 7339 | /* end confdefs.h. */ |
Ronald Oussoren | 856624d | 2009-09-08 07:13:53 +0000 | [diff] [blame] | 7340 | |
Ronald Oussoren | d45ff2c | 2009-09-06 11:11:04 +0000 | [diff] [blame] | 7341 | #include <unistd.h> |
| 7342 | int main(int argc, char*argv[]) |
| 7343 | { |
| 7344 | if (sizeof(long) == 4) { |
| 7345 | return 0; |
| 7346 | } else { |
| 7347 | return 1; |
| 7348 | } |
Ronald Oussoren | 856624d | 2009-09-08 07:13:53 +0000 | [diff] [blame] | 7349 | } |
| 7350 | |
Ronald Oussoren | d45ff2c | 2009-09-06 11:11:04 +0000 | [diff] [blame] | 7351 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7352 | if ac_fn_c_try_run "$LINENO"; then : |
Ronald Oussoren | d45ff2c | 2009-09-06 11:11:04 +0000 | [diff] [blame] | 7353 | ac_osx_32bit=yes |
| 7354 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7355 | ac_osx_32bit=no |
Ronald Oussoren | d45ff2c | 2009-09-06 11:11:04 +0000 | [diff] [blame] | 7356 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7357 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7358 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Ronald Oussoren | d45ff2c | 2009-09-06 11:11:04 +0000 | [diff] [blame] | 7359 | fi |
| 7360 | |
| 7361 | |
Ronald Oussoren | d45ff2c | 2009-09-06 11:11:04 +0000 | [diff] [blame] | 7362 | if test "${ac_osx_32bit}" = "yes"; then |
Ronald Oussoren | 175a884 | 2010-02-11 13:40:06 +0000 | [diff] [blame] | 7363 | case `/usr/bin/arch` in |
Ronald Oussoren | d45ff2c | 2009-09-06 11:11:04 +0000 | [diff] [blame] | 7364 | i386) |
| 7365 | MACOSX_DEFAULT_ARCH="i386" |
| 7366 | ;; |
| 7367 | ppc) |
| 7368 | MACOSX_DEFAULT_ARCH="ppc" |
| 7369 | ;; |
| 7370 | *) |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 7371 | as_fn_error $? "Unexpected output of 'arch' on OSX" "$LINENO" 5 |
Ronald Oussoren | d45ff2c | 2009-09-06 11:11:04 +0000 | [diff] [blame] | 7372 | ;; |
| 7373 | esac |
| 7374 | else |
Ronald Oussoren | 175a884 | 2010-02-11 13:40:06 +0000 | [diff] [blame] | 7375 | case `/usr/bin/arch` in |
Ronald Oussoren | d45ff2c | 2009-09-06 11:11:04 +0000 | [diff] [blame] | 7376 | i386) |
| 7377 | MACOSX_DEFAULT_ARCH="x86_64" |
| 7378 | ;; |
| 7379 | ppc) |
| 7380 | MACOSX_DEFAULT_ARCH="ppc64" |
| 7381 | ;; |
| 7382 | *) |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 7383 | as_fn_error $? "Unexpected output of 'arch' on OSX" "$LINENO" 5 |
Ronald Oussoren | d45ff2c | 2009-09-06 11:11:04 +0000 | [diff] [blame] | 7384 | ;; |
| 7385 | esac |
| 7386 | |
| 7387 | #ARCH_RUN_32BIT="true" |
| 7388 | fi |
| 7389 | |
| 7390 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}" |
Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 7391 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7392 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7393 | esac |
| 7394 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7395 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-framework" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7396 | $as_echo_n "checking for --enable-framework... " >&6; } |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7397 | if test "$enable_framework" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7398 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 7399 | BASECFLAGS="$BASECFLAGS -fno-common -dynamic" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7400 | # -F. is needed to allow linking to the framework while |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7401 | # in the build location. |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7402 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7403 | $as_echo "#define WITH_NEXT_FRAMEWORK 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7404 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7406 | $as_echo "yes" >&6; } |
Ronald Oussoren | 99aab65 | 2009-06-08 21:22:57 +0000 | [diff] [blame] | 7407 | if test $enable_shared = "yes" |
| 7408 | then |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 7409 | 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] | 7410 | fi |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7411 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7413 | $as_echo "no" >&6; } |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7414 | fi |
| 7415 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7416 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dyld" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7417 | $as_echo_n "checking for dyld... " >&6; } |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 7418 | case $ac_sys_system/$ac_sys_release in |
| 7419 | Darwin/*) |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7420 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7421 | $as_echo "#define WITH_DYLD 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7422 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7423 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: always on for Darwin" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7424 | $as_echo "always on for Darwin" >&6; } |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 7425 | ;; |
| 7426 | *) |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7428 | $as_echo "no" >&6; } |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7429 | ;; |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 7430 | esac |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7431 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7432 | # Set info about shared libraries. |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7433 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7434 | |
| 7435 | |
| 7436 | |
| 7437 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7438 | # SO is the extension of shared libraries `(including the dot!) |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 7439 | # -- usually .so, .sl on HP-UX, .dll on Cygwin |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7440 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking SO" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7441 | $as_echo_n "checking SO... " >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7442 | if test -z "$SO" |
| 7443 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7444 | case $ac_sys_system in |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7445 | hp*|HP*) |
| 7446 | case `uname -m` in |
| 7447 | ia64) SO=.so;; |
| 7448 | *) SO=.sl;; |
| 7449 | esac |
| 7450 | ;; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 7451 | CYGWIN*) SO=.dll;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 7452 | *) SO=.so;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7453 | esac |
Martin v. Löwis | 368de8f | 2003-06-14 14:46:38 +0000 | [diff] [blame] | 7454 | else |
| 7455 | # this might also be a termcap variable, see #610332 |
| 7456 | echo |
| 7457 | echo '=====================================================================' |
| 7458 | echo '+ +' |
| 7459 | echo '+ WARNING: You have set SO in your environment. +' |
| 7460 | echo '+ Do you really mean to change the extension for shared libraries? +' |
| 7461 | echo '+ Continuing in 10 seconds to let you to ponder. +' |
| 7462 | echo '+ +' |
| 7463 | echo '=====================================================================' |
| 7464 | sleep 10 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7465 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SO" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7467 | $as_echo "$SO" >&6; } |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7468 | |
Georg Brandl | b1441c7 | 2009-01-03 22:33:39 +0000 | [diff] [blame] | 7469 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7470 | cat >>confdefs.h <<_ACEOF |
| 7471 | #define SHLIB_EXT "$SO" |
| 7472 | _ACEOF |
| 7473 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7474 | # LDSHARED is the ld *command* used to create shared library |
Martin v. Löwis | 12af048 | 2004-01-31 12:34:17 +0000 | [diff] [blame] | 7475 | # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7476 | # (Shared libraries in this instance are shared modules to be loaded into |
| 7477 | # Python, as opposed to building Python itself as a shared library.) |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7478 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDSHARED" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7479 | $as_echo_n "checking LDSHARED... " >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7480 | if test -z "$LDSHARED" |
| 7481 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7482 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 7483 | AIX*) |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 7484 | 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] | 7485 | LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 7486 | ;; |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 7487 | IRIX/5*) LDSHARED="ld -shared";; |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 7488 | IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7489 | SunOS/5*) |
Greg Ward | 57c9a663 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 7490 | if test "$GCC" = "yes" |
Neil Schemenauer | 8ba9445 | 2001-02-19 18:18:48 +0000 | [diff] [blame] | 7491 | then LDSHARED='$(CC) -shared' |
Martin v. Löwis | aa5afe1 | 2002-10-07 06:21:41 +0000 | [diff] [blame] | 7492 | else LDSHARED='$(CC) -G'; |
Greg Ward | 57c9a663 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 7493 | fi ;; |
Thomas Heller | f44b9a1 | 2008-04-04 10:18:23 +0000 | [diff] [blame] | 7494 | hp*|HP*) |
| 7495 | if test "$GCC" = "yes" |
| 7496 | then LDSHARED='$(CC) -shared' |
| 7497 | else LDSHARED='ld -b'; |
| 7498 | fi ;; |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 7499 | OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";; |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 7500 | Darwin/1.3*) |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 7501 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 7502 | if test "$enable_framework" ; then |
| 7503 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 7504 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 7505 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 7506 | else |
| 7507 | # No framework. Ignore undefined symbols, assuming they come from Python |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 7508 | LDSHARED="$LDSHARED -undefined suppress" |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 7509 | fi ;; |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 7510 | Darwin/1.4*|Darwin/5.*|Darwin/6.*) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7511 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 7512 | if test "$enable_framework" ; then |
| 7513 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 7514 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 7515 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7516 | else |
Michael W. Hudson | 594bc80 | 2002-03-07 09:59:15 +0000 | [diff] [blame] | 7517 | # No framework, use the Python app as bundle-loader |
| 7518 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
Jack Jansen | c28fc37 | 2003-02-25 13:14:43 +0000 | [diff] [blame] | 7519 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7520 | fi ;; |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 7521 | Darwin/*) |
| 7522 | # Use -undefined dynamic_lookup whenever possible (10.3 and later). |
| 7523 | # This allows an extension to be used in any Python |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 7524 | |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 7525 | if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2 |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 7526 | then |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7527 | if test "${enable_universalsdk}"; then |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 7528 | LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}" |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7529 | fi |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 7530 | LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup' |
| 7531 | BLDSHARED="$LDSHARED" |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 7532 | else |
| 7533 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 7534 | if test "$enable_framework" ; then |
| 7535 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 7536 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 7537 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 7538 | else |
| 7539 | # No framework, use the Python app as bundle-loader |
| 7540 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
| 7541 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
| 7542 | fi |
| 7543 | fi |
| 7544 | ;; |
Benjamin Peterson | de9c869 | 2008-07-01 18:23:09 +0000 | [diff] [blame] | 7545 | Linux*|GNU*|QNX*) LDSHARED='$(CC) -shared';; |
Guido van Rossum | 458e7fa | 1999-09-17 15:40:40 +0000 | [diff] [blame] | 7546 | BSD/OS*/4*) LDSHARED="gcc -shared";; |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 7547 | FreeBSD*) |
Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 7548 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 7549 | then |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7550 | LDSHARED='$(CC) -shared ${LDFLAGS}' |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 7551 | else |
| 7552 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 7553 | fi;; |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 7554 | OpenBSD*) |
| 7555 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 7556 | then |
| 7557 | LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}' |
| 7558 | else |
| 7559 | case `uname -r` in |
| 7560 | [01].* | 2.[0-7] | 2.[0-7].*) |
| 7561 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 7562 | ;; |
| 7563 | *) |
| 7564 | LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}' |
| 7565 | ;; |
| 7566 | esac |
| 7567 | fi;; |
Antoine Pitrou | 59dd7ab | 2011-01-02 20:49:42 +0000 | [diff] [blame] | 7568 | NetBSD*|DragonFly*) LDSHARED='$(CC) -shared ${LDFLAGS}';; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 7569 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 7570 | if test "$GCC" = "yes" |
Martin v. Löwis | 79f3c53 | 2002-12-11 12:51:58 +0000 | [diff] [blame] | 7571 | then LDSHARED='$(CC) -shared' |
| 7572 | else LDSHARED='$(CC) -G' |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 7573 | fi;; |
Martin v. Löwis | 79f3c53 | 2002-12-11 12:51:58 +0000 | [diff] [blame] | 7574 | SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 7575 | CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 7576 | atheos*) LDSHARED="gcc -shared";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7577 | *) LDSHARED="ld";; |
| 7578 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7579 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDSHARED" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7581 | $as_echo "$LDSHARED" >&6; } |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 7582 | BLDSHARED=${BLDSHARED-$LDSHARED} |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7583 | # 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] | 7584 | # library (module) -- this is only needed for a few systems |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7585 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CCSHARED" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7586 | $as_echo_n "checking CCSHARED... " >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7587 | if test -z "$CCSHARED" |
| 7588 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 7589 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 7590 | SunOS*) if test "$GCC" = yes; |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 7591 | then CCSHARED="-fPIC"; |
| 7592 | elif test `uname -p` = sparc; |
| 7593 | then CCSHARED="-xcode=pic32"; |
| 7594 | else CCSHARED="-Kpic"; |
| 7595 | fi;; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 7596 | hp*|HP*) if test "$GCC" = yes; |
Martin v. Löwis | 703ad70 | 2001-09-05 08:36:52 +0000 | [diff] [blame] | 7597 | then CCSHARED="-fPIC"; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 7598 | else CCSHARED="+z"; |
| 7599 | fi;; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 7600 | Linux*|GNU*) CCSHARED="-fPIC";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 7601 | BSD/OS*/4*) CCSHARED="-fpic";; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 7602 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 7603 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 7604 | if test "$GCC" = "yes" |
| 7605 | then CCSHARED="-fPIC" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 7606 | else CCSHARED="-KPIC" |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 7607 | fi;; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 7608 | SCO_SV*) |
| 7609 | if test "$GCC" = "yes" |
| 7610 | then CCSHARED="-fPIC" |
| 7611 | else CCSHARED="-Kpic -belf" |
| 7612 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 7613 | IRIX*/6*) case $CC in |
| 7614 | *gcc*) CCSHARED="-shared";; |
Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 7615 | *) CCSHARED="";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 7616 | esac;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 7617 | atheos*) CCSHARED="-fPIC";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7618 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7619 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7620 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCSHARED" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7621 | $as_echo "$CCSHARED" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7622 | # LINKFORSHARED are the flags passed to the $(CC) command that links |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7623 | # the python executable -- this is only needed for a few systems |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7624 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKFORSHARED" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7625 | $as_echo_n "checking LINKFORSHARED... " >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7626 | if test -z "$LINKFORSHARED" |
| 7627 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 7628 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 7629 | AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7630 | hp*|HP*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 7631 | LINKFORSHARED="-Wl,-E -Wl,+s";; |
| 7632 | # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 7633 | BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 7634 | Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7635 | # -u libsys_s pulls in all symbols in libsys |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7636 | Darwin/*) |
Benjamin Peterson | 9c80cac | 2009-05-23 16:34:23 +0000 | [diff] [blame] | 7637 | LINKFORSHARED="$extra_undefs -framework CoreFoundation" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7638 | if test "$enable_framework" |
| 7639 | then |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 7640 | LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7641 | fi |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 7642 | LINKFORSHARED="$LINKFORSHARED";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 7643 | OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 7644 | SCO_SV*) LINKFORSHARED="-Wl,-Bexport";; |
Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 7645 | ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 7646 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 7647 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 7648 | then |
| 7649 | LINKFORSHARED="-Wl,--export-dynamic" |
| 7650 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 7651 | SunOS/5*) case $CC in |
| 7652 | *gcc*) |
Martin v. Löwis | a454857 | 2002-04-18 14:51:36 +0000 | [diff] [blame] | 7653 | if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null |
Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 7654 | then |
| 7655 | LINKFORSHARED="-Xlinker --export-dynamic" |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 7656 | fi;; |
| 7657 | esac;; |
Jason Tishler | 3076559 | 2003-09-04 11:04:06 +0000 | [diff] [blame] | 7658 | CYGWIN*) |
| 7659 | if test $enable_shared = "no" |
| 7660 | then |
| 7661 | LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)' |
| 7662 | fi;; |
Benjamin Peterson | de9c869 | 2008-07-01 18:23:09 +0000 | [diff] [blame] | 7663 | QNX*) |
| 7664 | # -Wl,-E causes the symbols to be added to the dynamic |
| 7665 | # symbol table so that they can be found when a module |
| 7666 | # is loaded. -N 2048K causes the stack size to be set |
| 7667 | # to 2048 kilobytes so that the stack doesn't overflow |
| 7668 | # when running test_compile.py. |
| 7669 | LINKFORSHARED='-Wl,-E -N 2048K';; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7670 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7671 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKFORSHARED" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7673 | $as_echo "$LINKFORSHARED" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7674 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7675 | |
Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 7676 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7677 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGSFORSHARED" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7678 | $as_echo_n "checking CFLAGSFORSHARED... " >&6; } |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 7679 | if test ! "$LIBRARY" = "$LDLIBRARY" |
| 7680 | then |
Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 +0000 | [diff] [blame] | 7681 | case $ac_sys_system in |
| 7682 | CYGWIN*) |
| 7683 | # Cygwin needs CCSHARED when building extension DLLs |
| 7684 | # but not when building the interpreter DLL. |
| 7685 | CFLAGSFORSHARED='';; |
| 7686 | *) |
| 7687 | CFLAGSFORSHARED='$(CCSHARED)' |
| 7688 | esac |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 7689 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLAGSFORSHARED" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7691 | $as_echo "$CFLAGSFORSHARED" >&6; } |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 7692 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 7693 | # SHLIBS are libraries (except -lc and -lm) to link to the python shared |
| 7694 | # library (with --enable-shared). |
| 7695 | # 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] | 7696 | # symbols, this must be set to $(LIBS) (expanded by make). We do this even |
| 7697 | # if it is not required, since it creates a dependency of the shared library |
| 7698 | # to LIBS. This, in turn, means that applications linking the shared libpython |
| 7699 | # don't need to link LIBS explicitly. The default should be only changed |
| 7700 | # on systems where this approach causes problems. |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 7701 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7702 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking SHLIBS" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7703 | $as_echo_n "checking SHLIBS... " >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 7704 | case "$ac_sys_system" in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 7705 | *) |
Martin v. Löwis | d6359c5 | 2002-08-04 12:38:50 +0000 | [diff] [blame] | 7706 | SHLIBS='$(LIBS)';; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 7707 | esac |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIBS" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7709 | $as_echo "$SHLIBS" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 7710 | |
| 7711 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7712 | # checks for libraries |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7713 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7714 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 7715 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7716 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7717 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7718 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7719 | LIBS="-ldl $LIBS" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7720 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7721 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7722 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7723 | /* Override any GCC internal prototype to avoid an error. |
| 7724 | Use char because int might match the return type of a GCC |
| 7725 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7726 | #ifdef __cplusplus |
| 7727 | extern "C" |
| 7728 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7729 | char dlopen (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7730 | int |
| 7731 | main () |
| 7732 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7733 | return dlopen (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7734 | ; |
| 7735 | return 0; |
| 7736 | } |
| 7737 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7738 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7739 | ac_cv_lib_dl_dlopen=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7740 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7741 | ac_cv_lib_dl_dlopen=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7742 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7743 | rm -f core conftest.err conftest.$ac_objext \ |
| 7744 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7745 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7746 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7748 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 7749 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7750 | cat >>confdefs.h <<_ACEOF |
| 7751 | #define HAVE_LIBDL 1 |
| 7752 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7753 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7754 | LIBS="-ldl $LIBS" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7755 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7756 | fi |
| 7757 | # Dynamic linking for SunOS/Solaris and SYSV |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7758 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7759 | $as_echo_n "checking for shl_load in -ldld... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 7760 | if ${ac_cv_lib_dld_shl_load+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7761 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7762 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7763 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7764 | LIBS="-ldld $LIBS" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7765 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7766 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7767 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7768 | /* Override any GCC internal prototype to avoid an error. |
| 7769 | Use char because int might match the return type of a GCC |
| 7770 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7771 | #ifdef __cplusplus |
| 7772 | extern "C" |
| 7773 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7774 | char shl_load (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7775 | int |
| 7776 | main () |
| 7777 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7778 | return shl_load (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7779 | ; |
| 7780 | return 0; |
| 7781 | } |
| 7782 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7783 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7784 | ac_cv_lib_dld_shl_load=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7785 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7786 | ac_cv_lib_dld_shl_load=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7787 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7788 | rm -f core conftest.err conftest.$ac_objext \ |
| 7789 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7790 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7791 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7793 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 7794 | 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] | 7795 | cat >>confdefs.h <<_ACEOF |
| 7796 | #define HAVE_LIBDLD 1 |
| 7797 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7798 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7799 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7800 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7801 | fi |
| 7802 | # Dynamic linking for HP-UX |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 7803 | |
Georg Brandl | b1441c7 | 2009-01-03 22:33:39 +0000 | [diff] [blame] | 7804 | # only check for sem_init if thread support is requested |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 7805 | if test "$with_threads" = "yes" -o -z "$with_threads"; then |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7806 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7807 | $as_echo_n "checking for library containing sem_init... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 7808 | if ${ac_cv_search_sem_init+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7809 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 7810 | else |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 7811 | ac_func_search_save_LIBS=$LIBS |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7812 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7813 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7814 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7815 | /* Override any GCC internal prototype to avoid an error. |
| 7816 | Use char because int might match the return type of a GCC |
| 7817 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7818 | #ifdef __cplusplus |
| 7819 | extern "C" |
| 7820 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7821 | char sem_init (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7822 | int |
| 7823 | main () |
| 7824 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7825 | return sem_init (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7826 | ; |
| 7827 | return 0; |
| 7828 | } |
| 7829 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7830 | for ac_lib in '' pthread rt posix4; do |
| 7831 | if test -z "$ac_lib"; then |
| 7832 | ac_res="none required" |
| 7833 | else |
| 7834 | ac_res=-l$ac_lib |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 7835 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7836 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7837 | if ac_fn_c_try_link "$LINENO"; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7838 | ac_cv_search_sem_init=$ac_res |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7839 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7840 | rm -f core conftest.err conftest.$ac_objext \ |
| 7841 | conftest$ac_exeext |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 7842 | if ${ac_cv_search_sem_init+:} false; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7843 | break |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 7844 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7845 | done |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 7846 | if ${ac_cv_search_sem_init+:} false; then : |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7847 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7848 | else |
| 7849 | ac_cv_search_sem_init=no |
| 7850 | fi |
| 7851 | rm conftest.$ac_ext |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 7852 | LIBS=$ac_func_search_save_LIBS |
| 7853 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7855 | $as_echo "$ac_cv_search_sem_init" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7856 | ac_res=$ac_cv_search_sem_init |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7857 | if test "$ac_res" != no; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7858 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 7859 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 7860 | fi |
Martin v. Löwis | d3545ec | 2003-05-03 11:25:43 +0000 | [diff] [blame] | 7861 | # 'Real Time' functions on Solaris |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 7862 | # posix4 on Solaris 2.6 |
| 7863 | # pthread (first!) on Linux |
| 7864 | fi |
| 7865 | |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 7866 | # check if we need libintl for locale functions |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7867 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for textdomain in -lintl" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7868 | $as_echo_n "checking for textdomain in -lintl... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 7869 | if ${ac_cv_lib_intl_textdomain+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7870 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 7871 | else |
| 7872 | ac_check_lib_save_LIBS=$LIBS |
| 7873 | LIBS="-lintl $LIBS" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7874 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7875 | /* end confdefs.h. */ |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 7876 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7877 | /* Override any GCC internal prototype to avoid an error. |
| 7878 | Use char because int might match the return type of a GCC |
| 7879 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 7880 | #ifdef __cplusplus |
| 7881 | extern "C" |
| 7882 | #endif |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 7883 | char textdomain (); |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 7884 | int |
| 7885 | main () |
| 7886 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7887 | return textdomain (); |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 7888 | ; |
| 7889 | return 0; |
| 7890 | } |
| 7891 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7892 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 7893 | ac_cv_lib_intl_textdomain=yes |
| 7894 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7895 | ac_cv_lib_intl_textdomain=no |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 7896 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7897 | rm -f core conftest.err conftest.$ac_objext \ |
| 7898 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 7899 | LIBS=$ac_check_lib_save_LIBS |
| 7900 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_textdomain" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7902 | $as_echo "$ac_cv_lib_intl_textdomain" >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 7903 | if test "x$ac_cv_lib_intl_textdomain" = xyes; then : |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 7904 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7905 | $as_echo "#define WITH_LIBINTL 1" >>confdefs.h |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 7906 | |
Brett Cannon | c6d936e | 2009-06-07 20:09:53 +0000 | [diff] [blame] | 7907 | LIBS="-lintl $LIBS" |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 7908 | fi |
| 7909 | |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 7910 | |
| 7911 | # checks for system dependent C++ extensions support |
| 7912 | case "$ac_sys_system" in |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7913 | AIX*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for genuine AIX C++ extensions support" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7914 | $as_echo_n "checking for genuine AIX C++ extensions support... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7915 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7916 | /* end confdefs.h. */ |
Georg Brandl | 3f0df3b | 2011-02-25 10:22:44 +0000 | [diff] [blame^] | 7917 | #include <load.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7918 | int |
| 7919 | main () |
| 7920 | { |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 7921 | loadAndInit("", 0, "") |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7922 | ; |
| 7923 | return 0; |
| 7924 | } |
| 7925 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7926 | if ac_fn_c_try_link "$LINENO"; then : |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 7927 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7928 | $as_echo "#define AIX_GENUINE_CPLUSPLUS 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7929 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7931 | $as_echo "yes" >&6; } |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 7932 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7934 | $as_echo "no" >&6; } |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 7935 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7936 | rm -f core conftest.err conftest.$ac_objext \ |
| 7937 | conftest$ac_exeext conftest.$ac_ext;; |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 7938 | *) ;; |
| 7939 | esac |
| 7940 | |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 7941 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7942 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_open in -lnsl" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7943 | $as_echo_n "checking for t_open in -lnsl... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 7944 | if ${ac_cv_lib_nsl_t_open+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7945 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 7946 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7947 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7948 | LIBS="-lnsl $LIBS" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7949 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7950 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7951 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7952 | /* Override any GCC internal prototype to avoid an error. |
| 7953 | Use char because int might match the return type of a GCC |
| 7954 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7955 | #ifdef __cplusplus |
| 7956 | extern "C" |
| 7957 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7958 | char t_open (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7959 | int |
| 7960 | main () |
| 7961 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7962 | return t_open (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7963 | ; |
| 7964 | return 0; |
| 7965 | } |
| 7966 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7967 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7968 | ac_cv_lib_nsl_t_open=yes |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 7969 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7970 | ac_cv_lib_nsl_t_open=no |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 7971 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7972 | rm -f core conftest.err conftest.$ac_objext \ |
| 7973 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7974 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 7975 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_t_open" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7977 | $as_echo "$ac_cv_lib_nsl_t_open" >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 7978 | if test "x$ac_cv_lib_nsl_t_open" = xyes; then : |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 7979 | LIBS="-lnsl $LIBS" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 7980 | fi |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 7981 | # SVR4 |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7982 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7983 | $as_echo_n "checking for socket in -lsocket... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 7984 | if ${ac_cv_lib_socket_socket+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7985 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7986 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7987 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7988 | LIBS="-lsocket $LIBS $LIBS" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7989 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7990 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7991 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7992 | /* Override any GCC internal prototype to avoid an error. |
| 7993 | Use char because int might match the return type of a GCC |
| 7994 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7995 | #ifdef __cplusplus |
| 7996 | extern "C" |
| 7997 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7998 | char socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7999 | int |
| 8000 | main () |
| 8001 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8002 | return socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8003 | ; |
| 8004 | return 0; |
| 8005 | } |
| 8006 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8007 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8008 | ac_cv_lib_socket_socket=yes |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8009 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8010 | ac_cv_lib_socket_socket=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8011 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8012 | rm -f core conftest.err conftest.$ac_objext \ |
| 8013 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8014 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8015 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8017 | $as_echo "$ac_cv_lib_socket_socket" >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 8018 | if test "x$ac_cv_lib_socket_socket" = xyes; then : |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8019 | LIBS="-lsocket $LIBS" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8020 | fi |
| 8021 | # SVR4 sockets |
Skip Montanaro | b9949db | 2004-01-17 04:04:13 +0000 | [diff] [blame] | 8022 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8023 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libs" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8024 | $as_echo_n "checking for --with-libs... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8025 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8026 | # Check whether --with-libs was given. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8027 | if test "${with_libs+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8028 | withval=$with_libs; |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8030 | $as_echo "$withval" >&6; } |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 8031 | LIBS="$withval $LIBS" |
| 8032 | |
| 8033 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8035 | $as_echo "no" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8036 | fi |
| 8037 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 8038 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 8039 | # Check for use of the system libffi library |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8040 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-ffi" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8041 | $as_echo_n "checking for --with-system-ffi... " >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 8042 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8043 | # Check whether --with-system_ffi was given. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8044 | if test "${with_system_ffi+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8045 | withval=$with_system_ffi; |
Benjamin Peterson | bdf5eff | 2010-10-31 16:55:05 +0000 | [diff] [blame] | 8046 | else |
| 8047 | with_system_ffi="no" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8048 | fi |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 8049 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 8050 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_ffi" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8052 | $as_echo "$with_system_ffi" >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 8053 | |
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 8054 | # Check for --with-dbmliborder |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8055 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dbmliborder" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8056 | $as_echo_n "checking for --with-dbmliborder... " >&6; } |
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 8057 | |
| 8058 | # Check whether --with-dbmliborder was given. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8059 | if test "${with_dbmliborder+set}" = set; then : |
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 8060 | withval=$with_dbmliborder; |
| 8061 | if test x$with_dbmliborder = xyes |
| 8062 | then |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 8063 | as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5 |
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 8064 | else |
| 8065 | for db in `echo $with_dbmliborder | sed 's/:/ /g'`; do |
| 8066 | if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb |
| 8067 | then |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 8068 | as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5 |
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 8069 | fi |
| 8070 | done |
| 8071 | fi |
| 8072 | fi |
| 8073 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_dbmliborder" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8075 | $as_echo "$with_dbmliborder" >&6; } |
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 8076 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 8077 | # Determine if signalmodule should be used. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 8078 | |
| 8079 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8080 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-signal-module" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8081 | $as_echo_n "checking for --with-signal-module... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8082 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8083 | # Check whether --with-signal-module was given. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8084 | if test "${with_signal_module+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8085 | withval=$with_signal_module; |
| 8086 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 8087 | |
| 8088 | |
| 8089 | if test -z "$with_signal_module" |
| 8090 | then with_signal_module="yes" |
| 8091 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8092 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_signal_module" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8093 | $as_echo "$with_signal_module" >&6; } |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 8094 | |
| 8095 | if test "${with_signal_module}" = "yes"; then |
| 8096 | USE_SIGNAL_MODULE="" |
| 8097 | SIGNAL_OBJS="" |
| 8098 | else |
| 8099 | USE_SIGNAL_MODULE="#" |
| 8100 | SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o" |
| 8101 | fi |
| 8102 | |
Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 8103 | # This is used to generate Setup.config |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 8104 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 8105 | USE_THREAD_MODULE="" |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 8106 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8107 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dec-threads" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8108 | $as_echo_n "checking for --with-dec-threads... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8109 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 8110 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8111 | # Check whether --with-dec-threads was given. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8112 | if test "${with_dec_threads+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8113 | withval=$with_dec_threads; |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8114 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8115 | $as_echo "$withval" >&6; } |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 8116 | LDLAST=-threads |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 8117 | if test "${with_thread+set}" != set; then |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 8118 | with_thread="$withval"; |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 8119 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 8120 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8122 | $as_echo "no" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8123 | fi |
| 8124 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8125 | |
| 8126 | # Templates for things AC_DEFINEd more than once. |
| 8127 | # For a single AC_DEFINE, no template is needed. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 8128 | |
| 8129 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8130 | |
| 8131 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8132 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-threads" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8133 | $as_echo_n "checking for --with-threads... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8134 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8135 | # Check whether --with-threads was given. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8136 | if test "${with_threads+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8137 | withval=$with_threads; |
| 8138 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 8139 | |
| 8140 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 8141 | # --with-thread is deprecated, but check for it anyway |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8142 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8143 | # Check whether --with-thread was given. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8144 | if test "${with_thread+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8145 | withval=$with_thread; with_threads=$with_thread |
| 8146 | fi |
| 8147 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 8148 | |
| 8149 | if test -z "$with_threads" |
| 8150 | then with_threads="yes" |
| 8151 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8152 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_threads" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8153 | $as_echo "$with_threads" >&6; } |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 8154 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8155 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 8156 | if test "$with_threads" = "no" |
| 8157 | then |
| 8158 | USE_THREAD_MODULE="#" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 8159 | elif test "$ac_cv_pthread_is_default" = yes |
| 8160 | then |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8161 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 8162 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 8163 | # Defining _REENTRANT on system with POSIX threads should not hurt. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8164 | $as_echo "#define _REENTRANT 1" >>confdefs.h |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 8165 | |
| 8166 | posix_threads=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8167 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8168 | elif test "$ac_cv_kpthread" = "yes" |
| 8169 | then |
| 8170 | CC="$CC -Kpthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 8171 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 8172 | CXX="$CXX -Kpthread" |
| 8173 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8174 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 8175 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 8176 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8177 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 8178 | elif test "$ac_cv_kthread" = "yes" |
| 8179 | then |
| 8180 | CC="$CC -Kthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 8181 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 8182 | CXX="$CXX -Kthread" |
| 8183 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8184 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 8185 | |
| 8186 | posix_threads=yes |
| 8187 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8188 | elif test "$ac_cv_pthread" = "yes" |
| 8189 | then |
| 8190 | CC="$CC -pthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 8191 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 8192 | CXX="$CXX -pthread" |
| 8193 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8194 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8195 | |
| 8196 | posix_threads=yes |
| 8197 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8198 | else |
| 8199 | if test ! -z "$with_threads" -a -d "$with_threads" |
| 8200 | then LDFLAGS="$LDFLAGS -L$with_threads" |
| 8201 | fi |
| 8202 | if test ! -z "$withval" -a -d "$withval" |
| 8203 | then LDFLAGS="$LDFLAGS -L$withval" |
| 8204 | fi |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8205 | |
| 8206 | # According to the POSIX spec, a pthreads implementation must |
Matthias Klose | a2542be | 2004-08-16 11:35:51 +0000 | [diff] [blame] | 8207 | # define _POSIX_THREADS in unistd.h. Some apparently don't |
| 8208 | # (e.g. gnu pth with pthread emulation) |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8209 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _POSIX_THREADS in unistd.h" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8210 | $as_echo_n "checking for _POSIX_THREADS in unistd.h... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8211 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8212 | /* end confdefs.h. */ |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 8213 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8214 | #include <unistd.h> |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 8215 | #ifdef _POSIX_THREADS |
| 8216 | yes |
| 8217 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8218 | |
| 8219 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8220 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8221 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8222 | unistd_defines_pthreads=yes |
| 8223 | else |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8224 | unistd_defines_pthreads=no |
| 8225 | fi |
Jesus Cea | 0f752ee | 2010-04-28 12:03:06 +0000 | [diff] [blame] | 8226 | rm -f conftest* |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8227 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unistd_defines_pthreads" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8229 | $as_echo "$unistd_defines_pthreads" >&6; } |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8230 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8231 | $as_echo "#define _REENTRANT 1" >>confdefs.h |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 8232 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8233 | ac_fn_c_check_header_mongrel "$LINENO" "cthreads.h" "ac_cv_header_cthreads_h" "$ac_includes_default" |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 8234 | if test "x$ac_cv_header_cthreads_h" = xyes; then : |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8235 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8236 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8237 | $as_echo "#define C_THREADS 1" >>confdefs.h |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 8238 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8239 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8240 | $as_echo "#define HURD_C_THREADS 1" >>confdefs.h |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8241 | |
| 8242 | LIBS="$LIBS -lthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8243 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8244 | else |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8245 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8246 | ac_fn_c_check_header_mongrel "$LINENO" "mach/cthreads.h" "ac_cv_header_mach_cthreads_h" "$ac_includes_default" |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 8247 | if test "x$ac_cv_header_mach_cthreads_h" = xyes; then : |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8248 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8249 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8250 | $as_echo "#define C_THREADS 1" >>confdefs.h |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8251 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8252 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8253 | $as_echo "#define MACH_C_THREADS 1" >>confdefs.h |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8254 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8255 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 8256 | else |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 8257 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8258 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pth" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8259 | $as_echo_n "checking for --with-pth... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8260 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8261 | # Check whether --with-pth was given. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8262 | if test "${with_pth+set}" = set; then : |
| 8263 | withval=$with_pth; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8264 | $as_echo "$withval" >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8265 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8266 | |
| 8267 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8268 | $as_echo "#define HAVE_PTH 1" >>confdefs.h |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 8269 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 8270 | LIBS="-lpth $LIBS" |
| 8271 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 8272 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8274 | $as_echo "no" >&6; } |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 8275 | |
| 8276 | # Just looking for pthread_create in libpthread is not enough: |
| 8277 | # on HP/UX, pthread.h renames pthread_create to a different symbol name. |
| 8278 | # So we really have to include pthread.h, and then link. |
| 8279 | _libs=$LIBS |
| 8280 | LIBS="$LIBS -lpthread" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8281 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8282 | $as_echo_n "checking for pthread_create in -lpthread... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8283 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8284 | /* end confdefs.h. */ |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 8285 | #include <pthread.h> |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 8286 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 8287 | void * start_routine (void *arg) { exit (0); } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8288 | int |
| 8289 | main () |
| 8290 | { |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 8291 | |
| 8292 | pthread_create (NULL, NULL, start_routine, NULL) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8293 | ; |
| 8294 | return 0; |
| 8295 | } |
| 8296 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8297 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8298 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8300 | $as_echo "yes" >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8301 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 8302 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8303 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8304 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 8305 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8306 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 8307 | LIBS=$_libs |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8308 | ac_fn_c_check_func "$LINENO" "pthread_detach" "ac_cv_func_pthread_detach" |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 8309 | if test "x$ac_cv_func_pthread_detach" = xyes; then : |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8310 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8311 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8312 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8313 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8314 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8315 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8316 | ac_fn_c_check_header_mongrel "$LINENO" "atheos/threads.h" "ac_cv_header_atheos_threads_h" "$ac_includes_default" |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 8317 | if test "x$ac_cv_header_atheos_threads_h" = xyes; then : |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8318 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 8319 | |
| 8320 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8321 | $as_echo "#define ATHEOS_THREADS 1" >>confdefs.h |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 8322 | |
| 8323 | THREADOBJ="Python/thread.o" |
| 8324 | else |
| 8325 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8326 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8327 | $as_echo_n "checking for pthread_create in -lpthreads... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 8328 | if ${ac_cv_lib_pthreads_pthread_create+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8329 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8330 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8331 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8332 | LIBS="-lpthreads $LIBS" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8333 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8334 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8335 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8336 | /* Override any GCC internal prototype to avoid an error. |
| 8337 | Use char because int might match the return type of a GCC |
| 8338 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8339 | #ifdef __cplusplus |
| 8340 | extern "C" |
| 8341 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8342 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8343 | int |
| 8344 | main () |
| 8345 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8346 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8347 | ; |
| 8348 | return 0; |
| 8349 | } |
| 8350 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8351 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8352 | ac_cv_lib_pthreads_pthread_create=yes |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 8353 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8354 | ac_cv_lib_pthreads_pthread_create=no |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 8355 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8356 | rm -f core conftest.err conftest.$ac_objext \ |
| 8357 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8358 | LIBS=$ac_check_lib_save_LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 8359 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8360 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8361 | $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 8362 | if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then : |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8363 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 8364 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 8365 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8366 | LIBS="$LIBS -lpthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8367 | THREADOBJ="Python/thread.o" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 8368 | else |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 8369 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8370 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8371 | $as_echo_n "checking for pthread_create in -lc_r... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 8372 | if ${ac_cv_lib_c_r_pthread_create+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8373 | $as_echo_n "(cached) " >&6 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 8374 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8375 | ac_check_lib_save_LIBS=$LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 8376 | LIBS="-lc_r $LIBS" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8377 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8378 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8379 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8380 | /* Override any GCC internal prototype to avoid an error. |
| 8381 | Use char because int might match the return type of a GCC |
| 8382 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8383 | #ifdef __cplusplus |
| 8384 | extern "C" |
| 8385 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8386 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8387 | int |
| 8388 | main () |
| 8389 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8390 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8391 | ; |
| 8392 | return 0; |
| 8393 | } |
| 8394 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8395 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8396 | ac_cv_lib_c_r_pthread_create=yes |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 8397 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8398 | ac_cv_lib_c_r_pthread_create=no |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 8399 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8400 | rm -f core conftest.err conftest.$ac_objext \ |
| 8401 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8402 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 8403 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8405 | $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 8406 | if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then : |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8407 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 8408 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 8409 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8410 | LIBS="$LIBS -lc_r" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8411 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 8412 | else |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 8413 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8414 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __pthread_create_system in -lpthread" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8415 | $as_echo_n "checking for __pthread_create_system in -lpthread... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 8416 | if ${ac_cv_lib_pthread___pthread_create_system+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8417 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 8418 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8419 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 8420 | LIBS="-lpthread $LIBS" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8421 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8422 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8423 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8424 | /* Override any GCC internal prototype to avoid an error. |
| 8425 | Use char because int might match the return type of a GCC |
| 8426 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8427 | #ifdef __cplusplus |
| 8428 | extern "C" |
| 8429 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8430 | char __pthread_create_system (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8431 | int |
| 8432 | main () |
| 8433 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8434 | return __pthread_create_system (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8435 | ; |
| 8436 | return 0; |
| 8437 | } |
| 8438 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8439 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8440 | ac_cv_lib_pthread___pthread_create_system=yes |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 8441 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8442 | ac_cv_lib_pthread___pthread_create_system=no |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 8443 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8444 | rm -f core conftest.err conftest.$ac_objext \ |
| 8445 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8446 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 8447 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_create_system" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8449 | $as_echo "$ac_cv_lib_pthread___pthread_create_system" >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 8450 | if test "x$ac_cv_lib_pthread___pthread_create_system" = xyes; then : |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8451 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 8452 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 8453 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8454 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8455 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 8456 | else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 8457 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8458 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lcma" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8459 | $as_echo_n "checking for pthread_create in -lcma... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 8460 | if ${ac_cv_lib_cma_pthread_create+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8461 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 8462 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8463 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 8464 | LIBS="-lcma $LIBS" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8465 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8466 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8467 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8468 | /* Override any GCC internal prototype to avoid an error. |
| 8469 | Use char because int might match the return type of a GCC |
| 8470 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8471 | #ifdef __cplusplus |
| 8472 | extern "C" |
| 8473 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8474 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8475 | int |
| 8476 | main () |
| 8477 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8478 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8479 | ; |
| 8480 | return 0; |
| 8481 | } |
| 8482 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8483 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8484 | ac_cv_lib_cma_pthread_create=yes |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 8485 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8486 | ac_cv_lib_cma_pthread_create=no |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 8487 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8488 | rm -f core conftest.err conftest.$ac_objext \ |
| 8489 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8490 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 8491 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cma_pthread_create" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8493 | $as_echo "$ac_cv_lib_cma_pthread_create" >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 8494 | if test "x$ac_cv_lib_cma_pthread_create" = xyes; then : |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8495 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 8496 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 8497 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8498 | LIBS="$LIBS -lcma" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8499 | THREADOBJ="Python/thread.o" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 8500 | else |
Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 8501 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8502 | USE_THREAD_MODULE="#" |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 8503 | fi |
| 8504 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8505 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 8506 | fi |
| 8507 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 8508 | fi |
| 8509 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 8510 | fi |
| 8511 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 8512 | fi |
| 8513 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 8514 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8515 | fi |
| 8516 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 8517 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8518 | rm -f core conftest.err conftest.$ac_objext \ |
| 8519 | conftest$ac_exeext conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8520 | fi |
| 8521 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8522 | fi |
| 8523 | |
| 8524 | |
| 8525 | fi |
| 8526 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8527 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8528 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8529 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usconfig in -lmpc" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8530 | $as_echo_n "checking for usconfig in -lmpc... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 8531 | if ${ac_cv_lib_mpc_usconfig+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8532 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8533 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8534 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8535 | LIBS="-lmpc $LIBS" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8536 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8537 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8538 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8539 | /* Override any GCC internal prototype to avoid an error. |
| 8540 | Use char because int might match the return type of a GCC |
| 8541 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8542 | #ifdef __cplusplus |
| 8543 | extern "C" |
| 8544 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8545 | char usconfig (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8546 | int |
| 8547 | main () |
| 8548 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8549 | return usconfig (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8550 | ; |
| 8551 | return 0; |
| 8552 | } |
| 8553 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8554 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8555 | ac_cv_lib_mpc_usconfig=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8556 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8557 | ac_cv_lib_mpc_usconfig=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8558 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8559 | rm -f core conftest.err conftest.$ac_objext \ |
| 8560 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8561 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8562 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpc_usconfig" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8564 | $as_echo "$ac_cv_lib_mpc_usconfig" >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 8565 | if test "x$ac_cv_lib_mpc_usconfig" = xyes; then : |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8566 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8567 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8568 | LIBS="$LIBS -lmpc" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8569 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8570 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8571 | fi |
| 8572 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 8573 | |
Neal Norwitz | a978ab0 | 2002-11-02 16:58:05 +0000 | [diff] [blame] | 8574 | if test "$posix_threads" != "yes"; then |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8575 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8576 | $as_echo_n "checking for thr_create in -lthread... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 8577 | if ${ac_cv_lib_thread_thr_create+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8578 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8579 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8580 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8581 | LIBS="-lthread $LIBS" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8582 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8583 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8584 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8585 | /* Override any GCC internal prototype to avoid an error. |
| 8586 | Use char because int might match the return type of a GCC |
| 8587 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8588 | #ifdef __cplusplus |
| 8589 | extern "C" |
| 8590 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8591 | char thr_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8592 | int |
| 8593 | main () |
| 8594 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8595 | return thr_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8596 | ; |
| 8597 | return 0; |
| 8598 | } |
| 8599 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8600 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8601 | ac_cv_lib_thread_thr_create=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8602 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8603 | ac_cv_lib_thread_thr_create=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8604 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8605 | rm -f core conftest.err conftest.$ac_objext \ |
| 8606 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8607 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8608 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8610 | $as_echo "$ac_cv_lib_thread_thr_create" >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 8611 | if test "x$ac_cv_lib_thread_thr_create" = xyes; then : |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8612 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8613 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 8614 | LIBS="$LIBS -lthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8615 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 8616 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8617 | fi |
| 8618 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 8619 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8620 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8621 | if test "$USE_THREAD_MODULE" != "#" |
| 8622 | then |
| 8623 | # If the above checks didn't disable threads, (at least) OSF1 |
| 8624 | # needs this '-threads' argument during linking. |
| 8625 | case $ac_sys_system in |
| 8626 | OSF1) LDLAST=-threads;; |
| 8627 | esac |
Jeremy Hylton | 1a2ca86 | 2000-10-16 16:59:12 +0000 | [diff] [blame] | 8628 | fi |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8629 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 8630 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8631 | if test "$posix_threads" = "yes"; then |
| 8632 | if test "$unistd_defines_pthreads" = "no"; then |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 8633 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8634 | $as_echo "#define _POSIX_THREADS 1" >>confdefs.h |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8635 | |
| 8636 | fi |
| 8637 | |
| 8638 | # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8. |
| 8639 | case $ac_sys_system/$ac_sys_release in |
| 8640 | SunOS/5.6) |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8641 | $as_echo "#define HAVE_PTHREAD_DESTRUCTOR 1" >>confdefs.h |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 8642 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8643 | ;; |
| 8644 | SunOS/5.8) |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8645 | $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8646 | |
| 8647 | ;; |
Christian Heimes | 7b3ce6a | 2008-01-31 14:31:45 +0000 | [diff] [blame] | 8648 | AIX/5) |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8649 | $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h |
Christian Heimes | 7b3ce6a | 2008-01-31 14:31:45 +0000 | [diff] [blame] | 8650 | |
| 8651 | ;; |
Antoine Pitrou | 48fd2a6 | 2010-08-30 14:54:03 +0000 | [diff] [blame] | 8652 | AIX/6) |
| 8653 | $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h |
| 8654 | |
| 8655 | ;; |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8656 | esac |
| 8657 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8658 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8659 | $as_echo_n "checking if PTHREAD_SCOPE_SYSTEM is supported... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 8660 | if ${ac_cv_pthread_system_supported+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8661 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8662 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8663 | if test "$cross_compiling" = yes; then : |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8664 | ac_cv_pthread_system_supported=no |
| 8665 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8666 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8667 | /* end confdefs.h. */ |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8668 | #include <pthread.h> |
| 8669 | void *foo(void *parm) { |
| 8670 | return NULL; |
| 8671 | } |
| 8672 | main() { |
| 8673 | pthread_attr_t attr; |
| 8674 | pthread_t id; |
| 8675 | if (pthread_attr_init(&attr)) exit(-1); |
| 8676 | if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1); |
| 8677 | if (pthread_create(&id, &attr, foo, NULL)) exit(-1); |
| 8678 | exit(0); |
| 8679 | } |
| 8680 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8681 | if ac_fn_c_try_run "$LINENO"; then : |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8682 | ac_cv_pthread_system_supported=yes |
| 8683 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8684 | ac_cv_pthread_system_supported=no |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8685 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8686 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 8687 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8688 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 8689 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8690 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8691 | fi |
| 8692 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_system_supported" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8694 | $as_echo "$ac_cv_pthread_system_supported" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8695 | if test "$ac_cv_pthread_system_supported" = "yes"; then |
| 8696 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8697 | $as_echo "#define PTHREAD_SYSTEM_SCHED_SUPPORTED 1" >>confdefs.h |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8698 | |
| 8699 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8700 | for ac_func in pthread_sigmask |
| 8701 | do : |
| 8702 | ac_fn_c_check_func "$LINENO" "pthread_sigmask" "ac_cv_func_pthread_sigmask" |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 8703 | if test "x$ac_cv_func_pthread_sigmask" = xyes; then : |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8704 | cat >>confdefs.h <<_ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8705 | #define HAVE_PTHREAD_SIGMASK 1 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8706 | _ACEOF |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 8707 | case $ac_sys_system in |
| 8708 | CYGWIN*) |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8709 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8710 | $as_echo "#define HAVE_BROKEN_PTHREAD_SIGMASK 1" >>confdefs.h |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 8711 | |
| 8712 | ;; |
| 8713 | esac |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8714 | fi |
| 8715 | done |
| 8716 | |
| 8717 | fi |
| 8718 | |
| 8719 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8720 | # Check for enable-ipv6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8721 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8722 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-ipv6 is specified" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8723 | $as_echo_n "checking if --enable-ipv6 is specified... " >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8724 | # Check whether --enable-ipv6 was given. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8725 | if test "${enable_ipv6+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8726 | enableval=$enable_ipv6; case "$enableval" in |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8727 | no) |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8729 | $as_echo "no" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8730 | ipv6=no |
| 8731 | ;; |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8732 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8733 | $as_echo "yes" >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8734 | $as_echo "#define ENABLE_IPV6 1" >>confdefs.h |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8735 | |
| 8736 | ipv6=yes |
| 8737 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8738 | esac |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8739 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8740 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8741 | if test "$cross_compiling" = yes; then : |
| 8742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8743 | $as_echo "no" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8744 | ipv6=no |
| 8745 | |
| 8746 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8747 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8748 | /* end confdefs.h. */ |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8749 | /* AF_INET6 available check */ |
| 8750 | #include <sys/types.h> |
| 8751 | #include <sys/socket.h> |
| 8752 | main() |
| 8753 | { |
| 8754 | if (socket(AF_INET6, SOCK_STREAM, 0) < 0) |
| 8755 | exit(1); |
| 8756 | else |
| 8757 | exit(0); |
| 8758 | } |
| 8759 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8760 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8761 | if ac_fn_c_try_run "$LINENO"; then : |
| 8762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8763 | $as_echo "yes" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8764 | ipv6=yes |
| 8765 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8767 | $as_echo "no" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8768 | ipv6=no |
| 8769 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8770 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 8771 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8772 | fi |
| 8773 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8774 | |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 8775 | if test "$ipv6" = "yes"; then |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8776 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RFC2553 API is available" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8777 | $as_echo_n "checking if RFC2553 API is available... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8778 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8779 | /* end confdefs.h. */ |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 8780 | #include <sys/types.h> |
| 8781 | #include <netinet/in.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8782 | int |
| 8783 | main () |
| 8784 | { |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 8785 | struct sockaddr_in6 x; |
| 8786 | x.sin6_scope_id; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8787 | ; |
| 8788 | return 0; |
| 8789 | } |
| 8790 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8791 | if ac_fn_c_try_compile "$LINENO"; then : |
| 8792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8793 | $as_echo "yes" >&6; } |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 8794 | ipv6=yes |
| 8795 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8797 | $as_echo "no" >&6; } |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 8798 | ipv6=no |
| 8799 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8800 | 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] | 8801 | fi |
| 8802 | |
| 8803 | if test "$ipv6" = "yes"; then |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8804 | $as_echo "#define ENABLE_IPV6 1" >>confdefs.h |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 8805 | |
| 8806 | fi |
| 8807 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8808 | fi |
| 8809 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8810 | |
| 8811 | ipv6type=unknown |
| 8812 | ipv6lib=none |
| 8813 | ipv6trylibc=no |
| 8814 | |
| 8815 | if test "$ipv6" = "yes"; then |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8816 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking ipv6 stack type" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8817 | $as_echo_n "checking ipv6 stack type... " >&6; } |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 8818 | for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; |
| 8819 | do |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8820 | case $i in |
| 8821 | inria) |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8822 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8823 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 8824 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8825 | #include <netinet/in.h> |
| 8826 | #ifdef IPV6_INRIA_VERSION |
| 8827 | yes |
| 8828 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8829 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8830 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8831 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 8832 | ipv6type=$i |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8833 | fi |
Jesus Cea | 0f752ee | 2010-04-28 12:03:06 +0000 | [diff] [blame] | 8834 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8835 | |
| 8836 | ;; |
| 8837 | kame) |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8838 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8839 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 8840 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8841 | #include <netinet/in.h> |
| 8842 | #ifdef __KAME__ |
| 8843 | yes |
| 8844 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8845 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8846 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8847 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8848 | ipv6type=$i; |
| 8849 | ipv6lib=inet6 |
| 8850 | ipv6libdir=/usr/local/v6/lib |
| 8851 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8852 | fi |
Jesus Cea | 0f752ee | 2010-04-28 12:03:06 +0000 | [diff] [blame] | 8853 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8854 | |
| 8855 | ;; |
| 8856 | linux-glibc) |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8857 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8858 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 8859 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8860 | #include <features.h> |
| 8861 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) |
| 8862 | yes |
| 8863 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8864 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8865 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8866 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8867 | ipv6type=$i; |
| 8868 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8869 | fi |
Jesus Cea | 0f752ee | 2010-04-28 12:03:06 +0000 | [diff] [blame] | 8870 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8871 | |
| 8872 | ;; |
| 8873 | linux-inet6) |
| 8874 | if test -d /usr/inet6; then |
| 8875 | ipv6type=$i |
| 8876 | ipv6lib=inet6 |
| 8877 | ipv6libdir=/usr/inet6/lib |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 8878 | BASECFLAGS="-I/usr/inet6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8879 | fi |
| 8880 | ;; |
| 8881 | solaris) |
| 8882 | if test -f /etc/netconfig; then |
Antoine Pitrou | a75c105 | 2011-01-03 18:56:50 +0000 | [diff] [blame] | 8883 | if $GREP -q tcp6 /etc/netconfig; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8884 | ipv6type=$i |
| 8885 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8886 | fi |
| 8887 | fi |
| 8888 | ;; |
| 8889 | toshiba) |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8890 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8891 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 8892 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8893 | #include <sys/param.h> |
| 8894 | #ifdef _TOSHIBA_INET6 |
| 8895 | yes |
| 8896 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8897 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8898 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8899 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8900 | ipv6type=$i; |
| 8901 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 8902 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8903 | fi |
Jesus Cea | 0f752ee | 2010-04-28 12:03:06 +0000 | [diff] [blame] | 8904 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8905 | |
| 8906 | ;; |
| 8907 | v6d) |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8908 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8909 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 8910 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8911 | #include </usr/local/v6/include/sys/v6config.h> |
| 8912 | #ifdef __V6D__ |
| 8913 | yes |
| 8914 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8915 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8916 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8917 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8918 | ipv6type=$i; |
| 8919 | ipv6lib=v6; |
| 8920 | ipv6libdir=/usr/local/v6/lib; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 8921 | BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8922 | fi |
Jesus Cea | 0f752ee | 2010-04-28 12:03:06 +0000 | [diff] [blame] | 8923 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8924 | |
| 8925 | ;; |
| 8926 | zeta) |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8927 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8928 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 8929 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8930 | #include <sys/param.h> |
| 8931 | #ifdef _ZETA_MINAMI_INET6 |
| 8932 | yes |
| 8933 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8934 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8935 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8936 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8937 | ipv6type=$i; |
| 8938 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 8939 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8940 | fi |
Jesus Cea | 0f752ee | 2010-04-28 12:03:06 +0000 | [diff] [blame] | 8941 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8942 | |
| 8943 | ;; |
| 8944 | esac |
| 8945 | if test "$ipv6type" != "unknown"; then |
| 8946 | break |
| 8947 | fi |
| 8948 | done |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6type" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8950 | $as_echo "$ipv6type" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8951 | fi |
| 8952 | |
| 8953 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then |
| 8954 | if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then |
| 8955 | LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" |
| 8956 | echo "using lib$ipv6lib" |
| 8957 | else |
| 8958 | if test $ipv6trylibc = "yes"; then |
| 8959 | echo "using libc" |
| 8960 | else |
| 8961 | echo 'Fatal: no $ipv6lib library found. cannot continue.' |
| 8962 | echo "You need to fetch lib$ipv6lib.a from appropriate" |
| 8963 | echo 'ipv6 kit and compile beforehand.' |
| 8964 | exit 1 |
| 8965 | fi |
| 8966 | fi |
| 8967 | fi |
| 8968 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8969 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSX 10.5 SDK or later" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8970 | $as_echo_n "checking for OSX 10.5 SDK or later... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8971 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 8972 | /* end confdefs.h. */ |
| 8973 | #include <Carbon/Carbon.h> |
| 8974 | int |
| 8975 | main () |
| 8976 | { |
| 8977 | FSIORefNum fRef = 0 |
| 8978 | ; |
| 8979 | return 0; |
| 8980 | } |
| 8981 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8982 | if ac_fn_c_try_compile "$LINENO"; then : |
Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 8983 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8984 | $as_echo "#define HAVE_OSX105_SDK 1" >>confdefs.h |
Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 8985 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8987 | $as_echo "yes" >&6; } |
Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 8988 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8990 | $as_echo "no" >&6; } |
Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 8991 | |
| 8992 | fi |
Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 8993 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8994 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 8995 | # Check for --with-doc-strings |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8996 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-doc-strings" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8997 | $as_echo_n "checking for --with-doc-strings... " >&6; } |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 8998 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8999 | # Check whether --with-doc-strings was given. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9000 | if test "${with_doc_strings+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9001 | withval=$with_doc_strings; |
| 9002 | fi |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 9003 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 9004 | |
| 9005 | if test -z "$with_doc_strings" |
| 9006 | then with_doc_strings="yes" |
| 9007 | fi |
| 9008 | if test "$with_doc_strings" != "no" |
| 9009 | then |
| 9010 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9011 | $as_echo "#define WITH_DOC_STRINGS 1" >>confdefs.h |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 9012 | |
| 9013 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_doc_strings" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9015 | $as_echo "$with_doc_strings" >&6; } |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 9016 | |
Antoine Pitrou | c158354 | 2010-10-10 08:15:08 +0000 | [diff] [blame] | 9017 | # Check if eval loop should use timestamp counter profiling |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9018 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tsc" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9019 | $as_echo_n "checking for --with-tsc... " >&6; } |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 9020 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9021 | # Check whether --with-tsc was given. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9022 | if test "${with_tsc+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9023 | withval=$with_tsc; |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 9024 | if test "$withval" != no |
| 9025 | then |
| 9026 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9027 | $as_echo "#define WITH_TSC 1" >>confdefs.h |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 9028 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9030 | $as_echo "yes" >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9031 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9032 | $as_echo "no" >&6; } |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 9033 | fi |
| 9034 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9036 | $as_echo "no" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9037 | fi |
| 9038 | |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 9039 | |
| 9040 | # Check for Python-specific malloc support |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9041 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pymalloc" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9042 | $as_echo_n "checking for --with-pymalloc... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9043 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9044 | # Check whether --with-pymalloc was given. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9045 | if test "${with_pymalloc+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9046 | withval=$with_pymalloc; |
| 9047 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9048 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 9049 | |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 9050 | if test -z "$with_pymalloc" |
| 9051 | then with_pymalloc="yes" |
| 9052 | fi |
| 9053 | if test "$with_pymalloc" != "no" |
| 9054 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9055 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9056 | $as_echo "#define WITH_PYMALLOC 1" >>confdefs.h |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 9057 | |
| 9058 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pymalloc" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9060 | $as_echo "$with_pymalloc" >&6; } |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 9061 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 9062 | # Check for --with-wctype-functions |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9063 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-wctype-functions" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9064 | $as_echo_n "checking for --with-wctype-functions... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9065 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9066 | # Check whether --with-wctype-functions was given. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9067 | if test "${with_wctype_functions+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9068 | withval=$with_wctype_functions; |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 9069 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9070 | then |
| 9071 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9072 | $as_echo "#define WANT_WCTYPE_FUNCTIONS 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9073 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9075 | $as_echo "yes" >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9076 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9077 | $as_echo "no" >&6; } |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 9078 | fi |
| 9079 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9081 | $as_echo "no" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9082 | fi |
| 9083 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 9084 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9085 | # -I${DLINCLDIR} is added to the compile rule for importdl.o |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 9086 | |
Guido van Rossum | 98935bf | 2001-09-05 19:13:16 +0000 | [diff] [blame] | 9087 | DLINCLDIR=. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 9088 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9089 | # the dlopen() function means we might want to use dynload_shlib.o. some |
| 9090 | # 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] | 9091 | for ac_func in dlopen |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9092 | do : |
| 9093 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 9094 | if test "x$ac_cv_func_dlopen" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9095 | cat >>confdefs.h <<_ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9096 | #define HAVE_DLOPEN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9097 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9098 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9099 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 9100 | done |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9101 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9102 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9103 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic |
| 9104 | # loading of modules. |
| 9105 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9106 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking DYNLOADFILE" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9107 | $as_echo_n "checking DYNLOADFILE... " >&6; } |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9108 | if test -z "$DYNLOADFILE" |
| 9109 | then |
| 9110 | case $ac_sys_system/$ac_sys_release in |
Martin v. Löwis | c19c5a6 | 2003-11-18 20:00:44 +0000 | [diff] [blame] | 9111 | AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c |
| 9112 | if test "$ac_cv_func_dlopen" = yes |
| 9113 | then DYNLOADFILE="dynload_shlib.o" |
| 9114 | else DYNLOADFILE="dynload_aix.o" |
| 9115 | fi |
| 9116 | ;; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9117 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 9118 | # Use dynload_next.c only on 10.2 and below, which don't have native dlopen() |
| 9119 | Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9120 | atheos*) DYNLOADFILE="dynload_atheos.o";; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9121 | *) |
| 9122 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub |
| 9123 | # out any dynamic loading |
| 9124 | if test "$ac_cv_func_dlopen" = yes |
| 9125 | then DYNLOADFILE="dynload_shlib.o" |
| 9126 | else DYNLOADFILE="dynload_stub.o" |
| 9127 | fi |
| 9128 | ;; |
| 9129 | esac |
| 9130 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DYNLOADFILE" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9132 | $as_echo "$DYNLOADFILE" >&6; } |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9133 | if test "$DYNLOADFILE" != "dynload_stub.o" |
| 9134 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9135 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9136 | $as_echo "#define HAVE_DYNAMIC_LOADING 1" >>confdefs.h |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9137 | |
| 9138 | fi |
| 9139 | |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 9140 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python |
| 9141 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9142 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9143 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP_OBJS" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9144 | $as_echo_n "checking MACHDEP_OBJS... " >&6; } |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 9145 | if test -z "$MACHDEP_OBJS" |
| 9146 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9147 | MACHDEP_OBJS=$extra_machdep_objs |
| 9148 | else |
| 9149 | MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 9150 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: MACHDEP_OBJS" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9152 | $as_echo "MACHDEP_OBJS" >&6; } |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 9153 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9154 | # checks for library functions |
Martin v. Löwis | 823725e | 2008-03-24 13:39:54 +0000 | [diff] [blame] | 9155 | for ac_func in alarm setitimer getitimer bind_textdomain_codeset chown \ |
| 9156 | clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \ |
Martin v. Löwis | 438b534 | 2002-12-27 10:16:42 +0000 | [diff] [blame] | 9157 | gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \ |
Martin v. Löwis | c300175 | 2005-01-23 09:27:24 +0000 | [diff] [blame] | 9158 | getpriority getpwent getspnam getspent getsid getwd \ |
Martin v. Löwis | 011e842 | 2009-05-05 04:43:17 +0000 | [diff] [blame] | 9159 | kill killpg lchmod lchown lstat mbrtowc mkfifo mknod mktime \ |
Martin v. Löwis | a5f0907 | 2002-10-11 05:37:59 +0000 | [diff] [blame] | 9160 | mremap nice pathconf pause plock poll pthread_init \ |
Guido van Rossum | 162e38c | 2003-02-19 15:25:10 +0000 | [diff] [blame] | 9161 | putenv readlink realpath \ |
Benjamin Peterson | 965ce87 | 2009-04-05 21:24:58 +0000 | [diff] [blame] | 9162 | select sem_open sem_timedwait sem_getvalue sem_unlink setegid seteuid \ |
| 9163 | setgid \ |
Martin v. Löwis | 4daacb1 | 2003-03-28 18:37:01 +0000 | [diff] [blame] | 9164 | setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \ |
Gregory P. Smith | 25523d2 | 2007-09-03 16:44:55 +0000 | [diff] [blame] | 9165 | sigaction siginterrupt sigrelse strftime strlcpy \ |
Michael W. Hudson | 34f20ea | 2002-05-27 15:08:24 +0000 | [diff] [blame] | 9166 | sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ |
Martin v. Löwis | 113a085 | 2009-05-29 17:25:39 +0000 | [diff] [blame] | 9167 | truncate uname unsetenv utimes waitpid wait3 wait4 \ |
| 9168 | wcscoll wcsftime wcsxfrm _getpty |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9169 | do : |
| 9170 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 9171 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 9172 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9173 | cat >>confdefs.h <<_ACEOF |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9174 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9175 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 9176 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 9177 | fi |
| 9178 | done |
| 9179 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9180 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9181 | # For some functions, having a definition is not sufficient, since |
| 9182 | # we want to take their address. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9183 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chroot" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9184 | $as_echo_n "checking for chroot... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9185 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9186 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9187 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9188 | int |
| 9189 | main () |
| 9190 | { |
| 9191 | void *x=chroot |
| 9192 | ; |
| 9193 | return 0; |
| 9194 | } |
| 9195 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9196 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9197 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9198 | $as_echo "#define HAVE_CHROOT 1" >>confdefs.h |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9199 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9201 | $as_echo "yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9202 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9204 | $as_echo "no" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9205 | |
| 9206 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9207 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9208 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for link" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9209 | $as_echo_n "checking for link... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9210 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9211 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9212 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9213 | int |
| 9214 | main () |
| 9215 | { |
| 9216 | void *x=link |
| 9217 | ; |
| 9218 | return 0; |
| 9219 | } |
| 9220 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9221 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9222 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9223 | $as_echo "#define HAVE_LINK 1" >>confdefs.h |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9224 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9226 | $as_echo "yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9227 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9229 | $as_echo "no" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9230 | |
| 9231 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9232 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9233 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for symlink" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9234 | $as_echo_n "checking for symlink... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9235 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9236 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9237 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9238 | int |
| 9239 | main () |
| 9240 | { |
| 9241 | void *x=symlink |
| 9242 | ; |
| 9243 | return 0; |
| 9244 | } |
| 9245 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9246 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9247 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9248 | $as_echo "#define HAVE_SYMLINK 1" >>confdefs.h |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9249 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9251 | $as_echo "yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9252 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9254 | $as_echo "no" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9255 | |
| 9256 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9257 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9258 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fchdir" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9259 | $as_echo_n "checking for fchdir... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9260 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9261 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9262 | #include <unistd.h> |
| 9263 | int |
| 9264 | main () |
| 9265 | { |
| 9266 | void *x=fchdir |
| 9267 | ; |
| 9268 | return 0; |
| 9269 | } |
| 9270 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9271 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9272 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9273 | $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9274 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9276 | $as_echo "yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9277 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9279 | $as_echo "no" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9280 | |
| 9281 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9282 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9283 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fsync" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9284 | $as_echo_n "checking for fsync... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9285 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9286 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9287 | #include <unistd.h> |
| 9288 | int |
| 9289 | main () |
| 9290 | { |
| 9291 | void *x=fsync |
| 9292 | ; |
| 9293 | return 0; |
| 9294 | } |
| 9295 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9296 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9297 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9298 | $as_echo "#define HAVE_FSYNC 1" >>confdefs.h |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9299 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9301 | $as_echo "yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9302 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9304 | $as_echo "no" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9305 | |
| 9306 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9307 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9308 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fdatasync" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9309 | $as_echo_n "checking for fdatasync... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9310 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9311 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9312 | #include <unistd.h> |
| 9313 | int |
| 9314 | main () |
| 9315 | { |
| 9316 | void *x=fdatasync |
| 9317 | ; |
| 9318 | return 0; |
| 9319 | } |
| 9320 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9321 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9322 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9323 | $as_echo "#define HAVE_FDATASYNC 1" >>confdefs.h |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9324 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9326 | $as_echo "yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9327 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9329 | $as_echo "no" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9330 | |
| 9331 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9332 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9333 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9334 | $as_echo_n "checking for epoll... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9335 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 9336 | /* end confdefs.h. */ |
| 9337 | #include <sys/epoll.h> |
| 9338 | int |
| 9339 | main () |
| 9340 | { |
| 9341 | void *x=epoll_create |
| 9342 | ; |
| 9343 | return 0; |
| 9344 | } |
| 9345 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9346 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9347 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9348 | $as_echo "#define HAVE_EPOLL 1" >>confdefs.h |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 9349 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9351 | $as_echo "yes" >&6; } |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 9352 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9354 | $as_echo "no" >&6; } |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 9355 | |
| 9356 | fi |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 9357 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9358 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kqueue" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9359 | $as_echo_n "checking for kqueue... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9360 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 9361 | /* end confdefs.h. */ |
| 9362 | |
| 9363 | #include <sys/types.h> |
| 9364 | #include <sys/event.h> |
| 9365 | |
| 9366 | int |
| 9367 | main () |
| 9368 | { |
| 9369 | int x=kqueue() |
| 9370 | ; |
| 9371 | return 0; |
| 9372 | } |
| 9373 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9374 | if ac_fn_c_try_compile "$LINENO"; then : |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 9375 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9376 | $as_echo "#define HAVE_KQUEUE 1" >>confdefs.h |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 9377 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9379 | $as_echo "yes" >&6; } |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 9380 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9382 | $as_echo "no" >&6; } |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 9383 | |
| 9384 | fi |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 9385 | 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] | 9386 | # On some systems (eg. FreeBSD 5), we would find a definition of the |
| 9387 | # functions ctermid_r, setgroups in the library, but no prototype |
| 9388 | # (e.g. because we use _XOPEN_SOURCE). See whether we can take their |
| 9389 | # address to avoid compiler warnings and potential miscompilations |
| 9390 | # because of the missing prototypes. |
| 9391 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9392 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctermid_r" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9393 | $as_echo_n "checking for ctermid_r... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9394 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9395 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 9396 | |
| 9397 | #include "confdefs.h" |
| 9398 | #include <stdio.h> |
| 9399 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 9400 | int |
| 9401 | main () |
| 9402 | { |
| 9403 | void* p = ctermid_r |
| 9404 | ; |
| 9405 | return 0; |
| 9406 | } |
| 9407 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9408 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 9409 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9410 | $as_echo "#define HAVE_CTERMID_R 1" >>confdefs.h |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 9411 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9413 | $as_echo "yes" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 9414 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9416 | $as_echo "no" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 9417 | |
| 9418 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9419 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9420 | |
Antoine Pitrou | 5ea2828 | 2010-09-10 18:44:45 +0000 | [diff] [blame] | 9421 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock declaration" >&5 |
| 9422 | $as_echo_n "checking for flock declaration... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 9423 | if ${ac_cv_flock_decl+:} false; then : |
Antoine Pitrou | 5ea2828 | 2010-09-10 18:44:45 +0000 | [diff] [blame] | 9424 | $as_echo_n "(cached) " >&6 |
| 9425 | else |
| 9426 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9427 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9428 | #include <sys/file.h> |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9429 | int |
| 9430 | main () |
| 9431 | { |
| 9432 | void* p = flock |
Antoine Pitrou | 5ea2828 | 2010-09-10 18:44:45 +0000 | [diff] [blame] | 9433 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9434 | ; |
| 9435 | return 0; |
| 9436 | } |
| 9437 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9438 | if ac_fn_c_try_compile "$LINENO"; then : |
Antoine Pitrou | 5ea2828 | 2010-09-10 18:44:45 +0000 | [diff] [blame] | 9439 | ac_cv_flock_decl=yes |
| 9440 | else |
| 9441 | ac_cv_flock_decl=no |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9442 | |
| 9443 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9444 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Antoine Pitrou | 15db144 | 2010-09-07 14:58:50 +0000 | [diff] [blame] | 9445 | |
Antoine Pitrou | 5ea2828 | 2010-09-10 18:44:45 +0000 | [diff] [blame] | 9446 | fi |
| 9447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flock_decl" >&5 |
| 9448 | $as_echo "$ac_cv_flock_decl" >&6; } |
| 9449 | if test "x${ac_cv_flock_decl}" = xyes; then |
| 9450 | for ac_func in flock |
| 9451 | do : |
| 9452 | ac_fn_c_check_func "$LINENO" "flock" "ac_cv_func_flock" |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 9453 | if test "x$ac_cv_func_flock" = xyes; then : |
Antoine Pitrou | 5ea2828 | 2010-09-10 18:44:45 +0000 | [diff] [blame] | 9454 | cat >>confdefs.h <<_ACEOF |
| 9455 | #define HAVE_FLOCK 1 |
Antoine Pitrou | 15db144 | 2010-09-07 14:58:50 +0000 | [diff] [blame] | 9456 | _ACEOF |
Antoine Pitrou | 15db144 | 2010-09-07 14:58:50 +0000 | [diff] [blame] | 9457 | |
Antoine Pitrou | 5ea2828 | 2010-09-10 18:44:45 +0000 | [diff] [blame] | 9458 | else |
| 9459 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock in -lbsd" >&5 |
Antoine Pitrou | 15db144 | 2010-09-07 14:58:50 +0000 | [diff] [blame] | 9460 | $as_echo_n "checking for flock in -lbsd... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 9461 | if ${ac_cv_lib_bsd_flock+:} false; then : |
Antoine Pitrou | 15db144 | 2010-09-07 14:58:50 +0000 | [diff] [blame] | 9462 | $as_echo_n "(cached) " >&6 |
| 9463 | else |
| 9464 | ac_check_lib_save_LIBS=$LIBS |
| 9465 | LIBS="-lbsd $LIBS" |
| 9466 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9467 | /* end confdefs.h. */ |
| 9468 | |
| 9469 | /* Override any GCC internal prototype to avoid an error. |
| 9470 | Use char because int might match the return type of a GCC |
| 9471 | builtin and then its argument prototype would still apply. */ |
| 9472 | #ifdef __cplusplus |
| 9473 | extern "C" |
| 9474 | #endif |
| 9475 | char flock (); |
| 9476 | int |
| 9477 | main () |
| 9478 | { |
| 9479 | return flock (); |
| 9480 | ; |
| 9481 | return 0; |
| 9482 | } |
| 9483 | _ACEOF |
| 9484 | if ac_fn_c_try_link "$LINENO"; then : |
| 9485 | ac_cv_lib_bsd_flock=yes |
| 9486 | else |
| 9487 | ac_cv_lib_bsd_flock=no |
| 9488 | fi |
| 9489 | rm -f core conftest.err conftest.$ac_objext \ |
| 9490 | conftest$ac_exeext conftest.$ac_ext |
| 9491 | LIBS=$ac_check_lib_save_LIBS |
| 9492 | fi |
| 9493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_flock" >&5 |
| 9494 | $as_echo "$ac_cv_lib_bsd_flock" >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 9495 | if test "x$ac_cv_lib_bsd_flock" = xyes; then : |
Antoine Pitrou | 5ea2828 | 2010-09-10 18:44:45 +0000 | [diff] [blame] | 9496 | $as_echo "#define HAVE_FLOCK 1" >>confdefs.h |
Antoine Pitrou | 15db144 | 2010-09-07 14:58:50 +0000 | [diff] [blame] | 9497 | |
| 9498 | |
| 9499 | $as_echo "#define FLOCK_NEEDS_LIBBSD 1" >>confdefs.h |
| 9500 | |
| 9501 | |
| 9502 | fi |
| 9503 | |
| 9504 | |
| 9505 | fi |
Antoine Pitrou | 5ea2828 | 2010-09-10 18:44:45 +0000 | [diff] [blame] | 9506 | done |
| 9507 | |
Antoine Pitrou | 15db144 | 2010-09-07 14:58:50 +0000 | [diff] [blame] | 9508 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9509 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9510 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9511 | $as_echo_n "checking for getpagesize... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9512 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9513 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9514 | |
| 9515 | #include "confdefs.h" |
| 9516 | #include <unistd.h> |
| 9517 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9518 | int |
| 9519 | main () |
| 9520 | { |
| 9521 | void* p = getpagesize |
| 9522 | ; |
| 9523 | return 0; |
| 9524 | } |
| 9525 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9526 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9527 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9528 | $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9529 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9531 | $as_echo "yes" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9532 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9534 | $as_echo "no" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9535 | |
| 9536 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9537 | 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] | 9538 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9539 | for ac_prog in true |
| 9540 | do |
| 9541 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 9542 | set dummy $ac_prog; ac_word=$2 |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9543 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9544 | $as_echo_n "checking for $ac_word... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 9545 | if ${ac_cv_prog_TRUE+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9546 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9547 | else |
| 9548 | if test -n "$TRUE"; then |
| 9549 | ac_cv_prog_TRUE="$TRUE" # Let the user override the test. |
| 9550 | else |
| 9551 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9552 | for as_dir in $PATH |
| 9553 | do |
| 9554 | IFS=$as_save_IFS |
| 9555 | test -z "$as_dir" && as_dir=. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9556 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9557 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9558 | ac_cv_prog_TRUE="$ac_prog" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9559 | $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] | 9560 | break 2 |
| 9561 | fi |
| 9562 | done |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9563 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9564 | IFS=$as_save_IFS |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9565 | |
| 9566 | fi |
| 9567 | fi |
| 9568 | TRUE=$ac_cv_prog_TRUE |
| 9569 | if test -n "$TRUE"; then |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUE" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9571 | $as_echo "$TRUE" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9572 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9574 | $as_echo "no" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9575 | fi |
| 9576 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9577 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9578 | test -n "$TRUE" && break |
| 9579 | done |
| 9580 | test -n "$TRUE" || TRUE="/bin/true" |
| 9581 | |
| 9582 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9583 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lc" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9584 | $as_echo_n "checking for inet_aton in -lc... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 9585 | if ${ac_cv_lib_c_inet_aton+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9586 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9587 | else |
| 9588 | ac_check_lib_save_LIBS=$LIBS |
| 9589 | LIBS="-lc $LIBS" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9590 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9591 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9592 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9593 | /* Override any GCC internal prototype to avoid an error. |
| 9594 | Use char because int might match the return type of a GCC |
| 9595 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9596 | #ifdef __cplusplus |
| 9597 | extern "C" |
| 9598 | #endif |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9599 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9600 | int |
| 9601 | main () |
| 9602 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9603 | return inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9604 | ; |
| 9605 | return 0; |
| 9606 | } |
| 9607 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9608 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9609 | ac_cv_lib_c_inet_aton=yes |
| 9610 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9611 | ac_cv_lib_c_inet_aton=no |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9612 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9613 | rm -f core conftest.err conftest.$ac_objext \ |
| 9614 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9615 | LIBS=$ac_check_lib_save_LIBS |
| 9616 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_inet_aton" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9618 | $as_echo "$ac_cv_lib_c_inet_aton" >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 9619 | 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] | 9620 | $ac_cv_prog_TRUE |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9621 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9622 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9623 | $as_echo_n "checking for inet_aton in -lresolv... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 9624 | if ${ac_cv_lib_resolv_inet_aton+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9625 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9626 | else |
| 9627 | ac_check_lib_save_LIBS=$LIBS |
| 9628 | LIBS="-lresolv $LIBS" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9629 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9630 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9631 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9632 | /* Override any GCC internal prototype to avoid an error. |
| 9633 | Use char because int might match the return type of a GCC |
| 9634 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9635 | #ifdef __cplusplus |
| 9636 | extern "C" |
| 9637 | #endif |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9638 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9639 | int |
| 9640 | main () |
| 9641 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9642 | return inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9643 | ; |
| 9644 | return 0; |
| 9645 | } |
| 9646 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9647 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9648 | ac_cv_lib_resolv_inet_aton=yes |
| 9649 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9650 | ac_cv_lib_resolv_inet_aton=no |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9651 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9652 | rm -f core conftest.err conftest.$ac_objext \ |
| 9653 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9654 | LIBS=$ac_check_lib_save_LIBS |
| 9655 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9657 | $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 9658 | 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] | 9659 | cat >>confdefs.h <<_ACEOF |
| 9660 | #define HAVE_LIBRESOLV 1 |
| 9661 | _ACEOF |
| 9662 | |
| 9663 | LIBS="-lresolv $LIBS" |
| 9664 | |
| 9665 | fi |
| 9666 | |
| 9667 | |
| 9668 | fi |
| 9669 | |
| 9670 | |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 9671 | # On Tru64, chflags seems to be present, but calling it will |
| 9672 | # exit Python |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9673 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chflags" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9674 | $as_echo_n "checking for chflags... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 9675 | if ${ac_cv_have_chflags+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9676 | $as_echo_n "(cached) " >&6 |
Benjamin Peterson | 08fd672 | 2010-01-30 19:51:43 +0000 | [diff] [blame] | 9677 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9678 | if test "$cross_compiling" = yes; then : |
Benjamin Peterson | 08fd672 | 2010-01-30 19:51:43 +0000 | [diff] [blame] | 9679 | ac_cv_have_chflags=cross |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 9680 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9681 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 9682 | /* end confdefs.h. */ |
Benjamin Peterson | 08fd672 | 2010-01-30 19:51:43 +0000 | [diff] [blame] | 9683 | [ |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 9684 | #include <sys/stat.h> |
| 9685 | #include <unistd.h> |
| 9686 | int main(int argc, char*argv[]) |
| 9687 | { |
| 9688 | if(chflags(argv[0], 0) != 0) |
| 9689 | return 1; |
| 9690 | return 0; |
| 9691 | } |
Benjamin Peterson | 08fd672 | 2010-01-30 19:51:43 +0000 | [diff] [blame] | 9692 | ] |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 9693 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9694 | if ac_fn_c_try_run "$LINENO"; then : |
Benjamin Peterson | 08fd672 | 2010-01-30 19:51:43 +0000 | [diff] [blame] | 9695 | ac_cv_have_chflags=yes |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 9696 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9697 | ac_cv_have_chflags=no |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 9698 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9699 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 9700 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 9701 | fi |
| 9702 | |
| 9703 | |
Benjamin Peterson | 08fd672 | 2010-01-30 19:51:43 +0000 | [diff] [blame] | 9704 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_chflags" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9706 | $as_echo "$ac_cv_have_chflags" >&6; } |
Benjamin Peterson | 08fd672 | 2010-01-30 19:51:43 +0000 | [diff] [blame] | 9707 | if test "$ac_cv_have_chflags" = cross ; then |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9708 | ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags" |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 9709 | if test "x$ac_cv_func_chflags" = xyes; then : |
Benjamin Peterson | 08fd672 | 2010-01-30 19:51:43 +0000 | [diff] [blame] | 9710 | ac_cv_have_chflags="yes" |
| 9711 | else |
| 9712 | ac_cv_have_chflags="no" |
| 9713 | fi |
| 9714 | |
| 9715 | fi |
| 9716 | if test "$ac_cv_have_chflags" = yes ; then |
| 9717 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9718 | $as_echo "#define HAVE_CHFLAGS 1" >>confdefs.h |
Benjamin Peterson | 08fd672 | 2010-01-30 19:51:43 +0000 | [diff] [blame] | 9719 | |
| 9720 | fi |
| 9721 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9722 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lchflags" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9723 | $as_echo_n "checking for lchflags... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 9724 | if ${ac_cv_have_lchflags+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9725 | $as_echo_n "(cached) " >&6 |
Benjamin Peterson | 08fd672 | 2010-01-30 19:51:43 +0000 | [diff] [blame] | 9726 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9727 | if test "$cross_compiling" = yes; then : |
Benjamin Peterson | 08fd672 | 2010-01-30 19:51:43 +0000 | [diff] [blame] | 9728 | ac_cv_have_lchflags=cross |
| 9729 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9730 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benjamin Peterson | 08fd672 | 2010-01-30 19:51:43 +0000 | [diff] [blame] | 9731 | /* end confdefs.h. */ |
| 9732 | [ |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 9733 | #include <sys/stat.h> |
| 9734 | #include <unistd.h> |
| 9735 | int main(int argc, char*argv[]) |
| 9736 | { |
| 9737 | if(lchflags(argv[0], 0) != 0) |
| 9738 | return 1; |
| 9739 | return 0; |
| 9740 | } |
Benjamin Peterson | 08fd672 | 2010-01-30 19:51:43 +0000 | [diff] [blame] | 9741 | ] |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 9742 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9743 | if ac_fn_c_try_run "$LINENO"; then : |
Benjamin Peterson | 08fd672 | 2010-01-30 19:51:43 +0000 | [diff] [blame] | 9744 | ac_cv_have_lchflags=yes |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 9745 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9746 | ac_cv_have_lchflags=no |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 9747 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9748 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 9749 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 9750 | fi |
| 9751 | |
| 9752 | |
Benjamin Peterson | 08fd672 | 2010-01-30 19:51:43 +0000 | [diff] [blame] | 9753 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_lchflags" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9755 | $as_echo "$ac_cv_have_lchflags" >&6; } |
Benjamin Peterson | 08fd672 | 2010-01-30 19:51:43 +0000 | [diff] [blame] | 9756 | if test "$ac_cv_have_lchflags" = cross ; then |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9757 | ac_fn_c_check_func "$LINENO" "lchflags" "ac_cv_func_lchflags" |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 9758 | if test "x$ac_cv_func_lchflags" = xyes; then : |
Benjamin Peterson | 08fd672 | 2010-01-30 19:51:43 +0000 | [diff] [blame] | 9759 | ac_cv_have_lchflags="yes" |
| 9760 | else |
| 9761 | ac_cv_have_lchflags="no" |
| 9762 | fi |
| 9763 | |
| 9764 | fi |
| 9765 | if test "$ac_cv_have_lchflags" = yes ; then |
| 9766 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9767 | $as_echo "#define HAVE_LCHFLAGS 1" >>confdefs.h |
Benjamin Peterson | 08fd672 | 2010-01-30 19:51:43 +0000 | [diff] [blame] | 9768 | |
| 9769 | fi |
| 9770 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 9771 | case $ac_sys_system/$ac_sys_release in |
| 9772 | Darwin/*) |
| 9773 | _CUR_CFLAGS="${CFLAGS}" |
| 9774 | _CUR_LDFLAGS="${LDFLAGS}" |
| 9775 | CFLAGS="${CFLAGS} -Wl,-search_paths_first" |
| 9776 | LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib" |
| 9777 | ;; |
| 9778 | esac |
| 9779 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9780 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9781 | $as_echo_n "checking for inflateCopy in -lz... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 9782 | if ${ac_cv_lib_z_inflateCopy+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9783 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 9784 | else |
| 9785 | ac_check_lib_save_LIBS=$LIBS |
| 9786 | LIBS="-lz $LIBS" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9787 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 9788 | /* end confdefs.h. */ |
| 9789 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9790 | /* Override any GCC internal prototype to avoid an error. |
| 9791 | Use char because int might match the return type of a GCC |
| 9792 | builtin and then its argument prototype would still apply. */ |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 9793 | #ifdef __cplusplus |
| 9794 | extern "C" |
| 9795 | #endif |
| 9796 | char inflateCopy (); |
| 9797 | int |
| 9798 | main () |
| 9799 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9800 | return inflateCopy (); |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 9801 | ; |
| 9802 | return 0; |
| 9803 | } |
| 9804 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9805 | if ac_fn_c_try_link "$LINENO"; then : |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 9806 | ac_cv_lib_z_inflateCopy=yes |
| 9807 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9808 | ac_cv_lib_z_inflateCopy=no |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 9809 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9810 | rm -f core conftest.err conftest.$ac_objext \ |
| 9811 | conftest$ac_exeext conftest.$ac_ext |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 9812 | LIBS=$ac_check_lib_save_LIBS |
| 9813 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9815 | $as_echo "$ac_cv_lib_z_inflateCopy" >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 9816 | if test "x$ac_cv_lib_z_inflateCopy" = xyes; then : |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 9817 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9818 | $as_echo "#define HAVE_ZLIB_COPY 1" >>confdefs.h |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 9819 | |
| 9820 | fi |
| 9821 | |
| 9822 | |
| 9823 | case $ac_sys_system/$ac_sys_release in |
| 9824 | Darwin/*) |
| 9825 | CFLAGS="${_CUR_CFLAGS}" |
| 9826 | LDFLAGS="${_CUR_LDFLAGS}" |
| 9827 | ;; |
| 9828 | esac |
| 9829 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9830 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hstrerror" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9831 | $as_echo_n "checking for hstrerror... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9832 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9833 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 9834 | |
| 9835 | #include "confdefs.h" |
| 9836 | #include <netdb.h> |
| 9837 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 9838 | int |
| 9839 | main () |
| 9840 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9841 | void* p = hstrerror; hstrerror(0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 9842 | ; |
| 9843 | return 0; |
| 9844 | } |
| 9845 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9846 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 9847 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9848 | $as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 9849 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9851 | $as_echo "yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 9852 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9854 | $as_echo "no" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 9855 | |
| 9856 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9857 | rm -f core conftest.err conftest.$ac_objext \ |
| 9858 | conftest$ac_exeext conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9859 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9860 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9861 | $as_echo_n "checking for inet_aton... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9862 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9863 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 9864 | |
| 9865 | #include "confdefs.h" |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 9866 | #include <sys/types.h> |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 9867 | #include <sys/socket.h> |
| 9868 | #include <netinet/in.h> |
| 9869 | #include <arpa/inet.h> |
| 9870 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 9871 | int |
| 9872 | main () |
| 9873 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9874 | void* p = inet_aton;inet_aton(0,0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 9875 | ; |
| 9876 | return 0; |
| 9877 | } |
| 9878 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9879 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 9880 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9881 | $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 9882 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9884 | $as_echo "yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 9885 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9887 | $as_echo "no" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 9888 | |
| 9889 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9890 | rm -f core conftest.err conftest.$ac_objext \ |
| 9891 | conftest$ac_exeext conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9892 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9893 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_pton" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9894 | $as_echo_n "checking for inet_pton... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9895 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9896 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 9897 | |
| 9898 | #include "confdefs.h" |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 9899 | #include <sys/types.h> |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 9900 | #include <sys/socket.h> |
| 9901 | #include <netinet/in.h> |
| 9902 | #include <arpa/inet.h> |
| 9903 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 9904 | int |
| 9905 | main () |
| 9906 | { |
| 9907 | void* p = inet_pton |
| 9908 | ; |
| 9909 | return 0; |
| 9910 | } |
| 9911 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9912 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 9913 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9914 | $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 9915 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9917 | $as_echo "yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 9918 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9920 | $as_echo "no" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 9921 | |
| 9922 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9923 | 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] | 9924 | |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 9925 | # On some systems, setgroups is in unistd.h, on others, in grp.h |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9926 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setgroups" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9927 | $as_echo_n "checking for setgroups... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9928 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9929 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 9930 | |
| 9931 | #include "confdefs.h" |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 9932 | #include <unistd.h> |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 9933 | #ifdef HAVE_GRP_H |
| 9934 | #include <grp.h> |
| 9935 | #endif |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 9936 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 9937 | int |
| 9938 | main () |
| 9939 | { |
| 9940 | void* p = setgroups |
| 9941 | ; |
| 9942 | return 0; |
| 9943 | } |
| 9944 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9945 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 9946 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9947 | $as_echo "#define HAVE_SETGROUPS 1" >>confdefs.h |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 9948 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9950 | $as_echo "yes" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 9951 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9953 | $as_echo "no" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 9954 | |
| 9955 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9956 | 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] | 9957 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 9958 | # check for openpty and forkpty |
| 9959 | |
| 9960 | for ac_func in openpty |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9961 | do : |
| 9962 | ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty" |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 9963 | if test "x$ac_cv_func_openpty" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9964 | cat >>confdefs.h <<_ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9965 | #define HAVE_OPENPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9966 | _ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 9967 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 9968 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9969 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9970 | $as_echo_n "checking for openpty in -lutil... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 9971 | if ${ac_cv_lib_util_openpty+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9972 | $as_echo_n "(cached) " >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 9973 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9974 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 9975 | LIBS="-lutil $LIBS" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9976 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9977 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9978 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9979 | /* Override any GCC internal prototype to avoid an error. |
| 9980 | Use char because int might match the return type of a GCC |
| 9981 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9982 | #ifdef __cplusplus |
| 9983 | extern "C" |
| 9984 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9985 | char openpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9986 | int |
| 9987 | main () |
| 9988 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9989 | return openpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9990 | ; |
| 9991 | return 0; |
| 9992 | } |
| 9993 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9994 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9995 | ac_cv_lib_util_openpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 9996 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9997 | ac_cv_lib_util_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 9998 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9999 | rm -f core conftest.err conftest.$ac_objext \ |
| 10000 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10001 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10002 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 10004 | $as_echo "$ac_cv_lib_util_openpty" >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 10005 | if test "x$ac_cv_lib_util_openpty" = xyes; then : |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10006 | $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10007 | LIBS="$LIBS -lutil" |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10008 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10009 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lbsd" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 10010 | $as_echo_n "checking for openpty in -lbsd... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 10011 | if ${ac_cv_lib_bsd_openpty+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 10012 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10013 | else |
| 10014 | ac_check_lib_save_LIBS=$LIBS |
| 10015 | LIBS="-lbsd $LIBS" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10016 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10017 | /* end confdefs.h. */ |
| 10018 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10019 | /* Override any GCC internal prototype to avoid an error. |
| 10020 | Use char because int might match the return type of a GCC |
| 10021 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10022 | #ifdef __cplusplus |
| 10023 | extern "C" |
| 10024 | #endif |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10025 | char openpty (); |
| 10026 | int |
| 10027 | main () |
| 10028 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10029 | return openpty (); |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10030 | ; |
| 10031 | return 0; |
| 10032 | } |
| 10033 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10034 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10035 | ac_cv_lib_bsd_openpty=yes |
| 10036 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10037 | ac_cv_lib_bsd_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10038 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10039 | rm -f core conftest.err conftest.$ac_objext \ |
| 10040 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10041 | LIBS=$ac_check_lib_save_LIBS |
| 10042 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_openpty" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 10044 | $as_echo "$ac_cv_lib_bsd_openpty" >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 10045 | if test "x$ac_cv_lib_bsd_openpty" = xyes; then : |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10046 | $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10047 | LIBS="$LIBS -lbsd" |
| 10048 | fi |
| 10049 | |
| 10050 | |
| 10051 | fi |
| 10052 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10053 | |
| 10054 | fi |
| 10055 | done |
| 10056 | |
| 10057 | for ac_func in forkpty |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10058 | do : |
| 10059 | ac_fn_c_check_func "$LINENO" "forkpty" "ac_cv_func_forkpty" |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 10060 | if test "x$ac_cv_func_forkpty" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10061 | cat >>confdefs.h <<_ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10062 | #define HAVE_FORKPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10063 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10064 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10065 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10066 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lutil" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 10067 | $as_echo_n "checking for forkpty in -lutil... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 10068 | if ${ac_cv_lib_util_forkpty+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 10069 | $as_echo_n "(cached) " >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10070 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10071 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10072 | LIBS="-lutil $LIBS" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10073 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10074 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10075 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10076 | /* Override any GCC internal prototype to avoid an error. |
| 10077 | Use char because int might match the return type of a GCC |
| 10078 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10079 | #ifdef __cplusplus |
| 10080 | extern "C" |
| 10081 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10082 | char forkpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10083 | int |
| 10084 | main () |
| 10085 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10086 | return forkpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10087 | ; |
| 10088 | return 0; |
| 10089 | } |
| 10090 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10091 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10092 | ac_cv_lib_util_forkpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10093 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10094 | ac_cv_lib_util_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10095 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10096 | rm -f core conftest.err conftest.$ac_objext \ |
| 10097 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10098 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10099 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_forkpty" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 10101 | $as_echo "$ac_cv_lib_util_forkpty" >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 10102 | if test "x$ac_cv_lib_util_forkpty" = xyes; then : |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10103 | $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10104 | LIBS="$LIBS -lutil" |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10105 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10106 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lbsd" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 10107 | $as_echo_n "checking for forkpty in -lbsd... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 10108 | if ${ac_cv_lib_bsd_forkpty+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 10109 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10110 | else |
| 10111 | ac_check_lib_save_LIBS=$LIBS |
| 10112 | LIBS="-lbsd $LIBS" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10113 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10114 | /* end confdefs.h. */ |
| 10115 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10116 | /* Override any GCC internal prototype to avoid an error. |
| 10117 | Use char because int might match the return type of a GCC |
| 10118 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10119 | #ifdef __cplusplus |
| 10120 | extern "C" |
| 10121 | #endif |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10122 | char forkpty (); |
| 10123 | int |
| 10124 | main () |
| 10125 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10126 | return forkpty (); |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10127 | ; |
| 10128 | return 0; |
| 10129 | } |
| 10130 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10131 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10132 | ac_cv_lib_bsd_forkpty=yes |
| 10133 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10134 | ac_cv_lib_bsd_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10135 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10136 | rm -f core conftest.err conftest.$ac_objext \ |
| 10137 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10138 | LIBS=$ac_check_lib_save_LIBS |
| 10139 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_forkpty" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 10141 | $as_echo "$ac_cv_lib_bsd_forkpty" >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 10142 | if test "x$ac_cv_lib_bsd_forkpty" = xyes; then : |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10143 | $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10144 | LIBS="$LIBS -lbsd" |
| 10145 | fi |
| 10146 | |
| 10147 | |
| 10148 | fi |
| 10149 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10150 | |
| 10151 | fi |
| 10152 | done |
| 10153 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 10154 | |
Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 10155 | # Stuff for expat. |
Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 10156 | for ac_func in memmove |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10157 | do : |
| 10158 | ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove" |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 10159 | if test "x$ac_cv_func_memmove" = xyes; then : |
Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 10160 | cat >>confdefs.h <<_ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10161 | #define HAVE_MEMMOVE 1 |
Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 10162 | _ACEOF |
| 10163 | |
| 10164 | fi |
| 10165 | done |
| 10166 | |
| 10167 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10168 | # check for long file support functions |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10169 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10170 | do : |
| 10171 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 10172 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 10173 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10174 | cat >>confdefs.h <<_ACEOF |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 10175 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10176 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10177 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10178 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10179 | done |
| 10180 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10181 | |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 10182 | ac_fn_c_check_func "$LINENO" "dup2" "ac_cv_func_dup2" |
| 10183 | if test "x$ac_cv_func_dup2" = xyes; then : |
| 10184 | $as_echo "#define HAVE_DUP2 1" >>confdefs.h |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 10185 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 10186 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10187 | case " $LIBOBJS " in |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 10188 | *" dup2.$ac_objext "* ) ;; |
| 10189 | *) LIBOBJS="$LIBOBJS dup2.$ac_objext" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10190 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10191 | esac |
| 10192 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 10193 | fi |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 10194 | |
| 10195 | ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd" |
| 10196 | if test "x$ac_cv_func_getcwd" = xyes; then : |
| 10197 | $as_echo "#define HAVE_GETCWD 1" >>confdefs.h |
| 10198 | |
| 10199 | else |
| 10200 | case " $LIBOBJS " in |
| 10201 | *" getcwd.$ac_objext "* ) ;; |
| 10202 | *) LIBOBJS="$LIBOBJS getcwd.$ac_objext" |
| 10203 | ;; |
| 10204 | esac |
| 10205 | |
| 10206 | fi |
| 10207 | |
| 10208 | ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup" |
| 10209 | if test "x$ac_cv_func_strdup" = xyes; then : |
| 10210 | $as_echo "#define HAVE_STRDUP 1" >>confdefs.h |
| 10211 | |
| 10212 | else |
| 10213 | case " $LIBOBJS " in |
| 10214 | *" strdup.$ac_objext "* ) ;; |
| 10215 | *) LIBOBJS="$LIBOBJS strdup.$ac_objext" |
| 10216 | ;; |
| 10217 | esac |
| 10218 | |
| 10219 | fi |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 10220 | |
| 10221 | |
| 10222 | for ac_func in getpgrp |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10223 | do : |
| 10224 | ac_fn_c_check_func "$LINENO" "getpgrp" "ac_cv_func_getpgrp" |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 10225 | if test "x$ac_cv_func_getpgrp" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10226 | cat >>confdefs.h <<_ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10227 | #define HAVE_GETPGRP 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10228 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10229 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10230 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10231 | #include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10232 | int |
| 10233 | main () |
| 10234 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10235 | getpgrp(0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10236 | ; |
| 10237 | return 0; |
| 10238 | } |
| 10239 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10240 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10241 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10242 | $as_echo "#define GETPGRP_HAVE_ARG 1" >>confdefs.h |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10243 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10244 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10245 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10246 | 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] | 10247 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10248 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 10249 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10250 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 10251 | for ac_func in setpgrp |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10252 | do : |
| 10253 | ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp" |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 10254 | if test "x$ac_cv_func_setpgrp" = xyes; then : |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 10255 | cat >>confdefs.h <<_ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10256 | #define HAVE_SETPGRP 1 |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 10257 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10258 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10259 | /* end confdefs.h. */ |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 10260 | #include <unistd.h> |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 10261 | int |
| 10262 | main () |
| 10263 | { |
| 10264 | setpgrp(0,0); |
| 10265 | ; |
| 10266 | return 0; |
| 10267 | } |
| 10268 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10269 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10270 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10271 | $as_echo "#define SETPGRP_HAVE_ARG 1" >>confdefs.h |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10272 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10273 | |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 10274 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10275 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 10276 | |
| 10277 | fi |
| 10278 | done |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 10279 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 10280 | for ac_func in gettimeofday |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10281 | do : |
| 10282 | ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 10283 | if test "x$ac_cv_func_gettimeofday" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10284 | cat >>confdefs.h <<_ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10285 | #define HAVE_GETTIMEOFDAY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10286 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10287 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10288 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10289 | #include <sys/time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10290 | int |
| 10291 | main () |
| 10292 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10293 | gettimeofday((struct timeval*)0,(struct timezone*)0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10294 | ; |
| 10295 | return 0; |
| 10296 | } |
| 10297 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10298 | if ac_fn_c_try_compile "$LINENO"; then : |
| 10299 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10300 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10301 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10302 | $as_echo "#define GETTIMEOFDAY_NO_TZ 1" >>confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10303 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10304 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10305 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10306 | 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] | 10307 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10308 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 10309 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10310 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10311 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10312 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for major" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 10313 | $as_echo_n "checking for major... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10314 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10315 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 10316 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 10317 | #if defined(MAJOR_IN_MKDEV) |
| 10318 | #include <sys/mkdev.h> |
| 10319 | #elif defined(MAJOR_IN_SYSMACROS) |
| 10320 | #include <sys/sysmacros.h> |
| 10321 | #else |
| 10322 | #include <sys/types.h> |
| 10323 | #endif |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 10324 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 10325 | int |
| 10326 | main () |
| 10327 | { |
| 10328 | |
| 10329 | makedev(major(0),minor(0)); |
| 10330 | |
| 10331 | ; |
| 10332 | return 0; |
| 10333 | } |
| 10334 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10335 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 10336 | |
| 10337 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10338 | $as_echo "#define HAVE_DEVICE_MACROS 1" >>confdefs.h |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 10339 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 10341 | $as_echo "yes" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 10342 | |
| 10343 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10344 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10345 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 10346 | $as_echo "no" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 10347 | |
| 10348 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10349 | rm -f core conftest.err conftest.$ac_objext \ |
| 10350 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10351 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 10352 | # 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] | 10353 | # for [no]getaddrinfo in netdb.h. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10354 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 10355 | $as_echo_n "checking for getaddrinfo... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10356 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10357 | /* end confdefs.h. */ |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 10358 | |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 10359 | #include <sys/types.h> |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 10360 | #include <sys/socket.h> |
| 10361 | #include <netdb.h> |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 10362 | #include <stdio.h> |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10363 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10364 | int |
| 10365 | main () |
| 10366 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10367 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 10368 | getaddrinfo(NULL, NULL, NULL, NULL); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10369 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10370 | ; |
| 10371 | return 0; |
| 10372 | } |
| 10373 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10374 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10375 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 10377 | $as_echo "yes" >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10378 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking getaddrinfo bug" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 10379 | $as_echo_n "checking getaddrinfo bug... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10380 | if test "$cross_compiling" = yes; then : |
| 10381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 10382 | $as_echo "buggy" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10383 | buggygetaddrinfo=yes |
| 10384 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10385 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10386 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10387 | |
| 10388 | #include <sys/types.h> |
| 10389 | #include <netdb.h> |
| 10390 | #include <string.h> |
| 10391 | #include <sys/socket.h> |
| 10392 | #include <netinet/in.h> |
| 10393 | |
| 10394 | main() |
| 10395 | { |
| 10396 | int passive, gaierr, inet4 = 0, inet6 = 0; |
| 10397 | struct addrinfo hints, *ai, *aitop; |
| 10398 | char straddr[INET6_ADDRSTRLEN], strport[16]; |
| 10399 | |
| 10400 | for (passive = 0; passive <= 1; passive++) { |
| 10401 | memset(&hints, 0, sizeof(hints)); |
| 10402 | hints.ai_family = AF_UNSPEC; |
| 10403 | hints.ai_flags = passive ? AI_PASSIVE : 0; |
| 10404 | hints.ai_socktype = SOCK_STREAM; |
Hye-Shik Chang | 54f9439 | 2004-04-14 07:55:31 +0000 | [diff] [blame] | 10405 | hints.ai_protocol = IPPROTO_TCP; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10406 | if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { |
| 10407 | (void)gai_strerror(gaierr); |
| 10408 | goto bad; |
| 10409 | } |
| 10410 | for (ai = aitop; ai; ai = ai->ai_next) { |
| 10411 | if (ai->ai_addr == NULL || |
| 10412 | ai->ai_addrlen == 0 || |
| 10413 | getnameinfo(ai->ai_addr, ai->ai_addrlen, |
| 10414 | straddr, sizeof(straddr), strport, sizeof(strport), |
| 10415 | NI_NUMERICHOST|NI_NUMERICSERV) != 0) { |
| 10416 | goto bad; |
| 10417 | } |
| 10418 | switch (ai->ai_family) { |
| 10419 | case AF_INET: |
| 10420 | if (strcmp(strport, "54321") != 0) { |
| 10421 | goto bad; |
| 10422 | } |
| 10423 | if (passive) { |
| 10424 | if (strcmp(straddr, "0.0.0.0") != 0) { |
| 10425 | goto bad; |
| 10426 | } |
| 10427 | } else { |
| 10428 | if (strcmp(straddr, "127.0.0.1") != 0) { |
| 10429 | goto bad; |
| 10430 | } |
| 10431 | } |
| 10432 | inet4++; |
| 10433 | break; |
| 10434 | case AF_INET6: |
| 10435 | if (strcmp(strport, "54321") != 0) { |
| 10436 | goto bad; |
| 10437 | } |
| 10438 | if (passive) { |
| 10439 | if (strcmp(straddr, "::") != 0) { |
| 10440 | goto bad; |
| 10441 | } |
| 10442 | } else { |
| 10443 | if (strcmp(straddr, "::1") != 0) { |
| 10444 | goto bad; |
| 10445 | } |
| 10446 | } |
| 10447 | inet6++; |
| 10448 | break; |
| 10449 | case AF_UNSPEC: |
| 10450 | goto bad; |
| 10451 | break; |
| 10452 | default: |
| 10453 | /* another family support? */ |
| 10454 | break; |
| 10455 | } |
| 10456 | } |
| 10457 | } |
| 10458 | |
| 10459 | if (!(inet4 == 0 || inet4 == 2)) |
| 10460 | goto bad; |
| 10461 | if (!(inet6 == 0 || inet6 == 2)) |
| 10462 | goto bad; |
| 10463 | |
| 10464 | if (aitop) |
| 10465 | freeaddrinfo(aitop); |
| 10466 | exit(0); |
| 10467 | |
| 10468 | bad: |
| 10469 | if (aitop) |
| 10470 | freeaddrinfo(aitop); |
| 10471 | exit(1); |
| 10472 | } |
| 10473 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10474 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10475 | if ac_fn_c_try_run "$LINENO"; then : |
| 10476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: good" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 10477 | $as_echo "good" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10478 | buggygetaddrinfo=no |
| 10479 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 10481 | $as_echo "buggy" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10482 | buggygetaddrinfo=yes |
| 10483 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10484 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 10485 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10486 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10487 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10488 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10489 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 10491 | $as_echo "no" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10492 | buggygetaddrinfo=yes |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10493 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 10494 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10495 | rm -f core conftest.err conftest.$ac_objext \ |
| 10496 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10497 | |
| 10498 | if test "$buggygetaddrinfo" = "yes"; then |
| 10499 | if test "$ipv6" = "yes"; then |
| 10500 | echo 'Fatal: You must get working getaddrinfo() function.' |
| 10501 | echo ' or you can specify "--disable-ipv6"'. |
| 10502 | exit 1 |
| 10503 | fi |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 10504 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10505 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10506 | $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 10507 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10508 | fi |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 10509 | for ac_func in getnameinfo |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10510 | do : |
| 10511 | ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo" |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 10512 | if test "x$ac_cv_func_getnameinfo" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10513 | cat >>confdefs.h <<_ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10514 | #define HAVE_GETNAMEINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10515 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10516 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10517 | fi |
| 10518 | done |
| 10519 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10520 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10521 | # checks for structures |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10522 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 10523 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 10524 | if ${ac_cv_header_time+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 10525 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10526 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10527 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10528 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10529 | #include <sys/types.h> |
| 10530 | #include <sys/time.h> |
| 10531 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10532 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10533 | int |
| 10534 | main () |
| 10535 | { |
| 10536 | if ((struct tm *) 0) |
| 10537 | return 0; |
| 10538 | ; |
| 10539 | return 0; |
| 10540 | } |
| 10541 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10542 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10543 | ac_cv_header_time=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10544 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10545 | ac_cv_header_time=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10546 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10547 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10548 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 10550 | $as_echo "$ac_cv_header_time" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10551 | if test $ac_cv_header_time = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10552 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10553 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10554 | |
| 10555 | fi |
| 10556 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10557 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 10558 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 10559 | if ${ac_cv_struct_tm+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 10560 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10561 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10562 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10563 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10564 | #include <sys/types.h> |
| 10565 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10566 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10567 | int |
| 10568 | main () |
| 10569 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10570 | struct tm tm; |
| 10571 | int *p = &tm.tm_sec; |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 10572 | return !p; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10573 | ; |
| 10574 | return 0; |
| 10575 | } |
| 10576 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10577 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10578 | ac_cv_struct_tm=time.h |
| 10579 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10580 | ac_cv_struct_tm=sys/time.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10581 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10582 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10583 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 10585 | $as_echo "$ac_cv_struct_tm" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10586 | if test $ac_cv_struct_tm = sys/time.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10587 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10588 | $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10589 | |
| 10590 | fi |
| 10591 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10592 | 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] | 10593 | #include <$ac_cv_struct_tm> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10594 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10595 | " |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 10596 | 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] | 10597 | |
| 10598 | cat >>confdefs.h <<_ACEOF |
| 10599 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 10600 | _ACEOF |
| 10601 | |
| 10602 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10603 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10604 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10605 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 10606 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10607 | $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10608 | |
| 10609 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10610 | ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> |
| 10611 | " |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 10612 | if test "x$ac_cv_have_decl_tzname" = xyes; then : |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10613 | ac_have_decl=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10614 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10615 | ac_have_decl=0 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10616 | fi |
| 10617 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10618 | cat >>confdefs.h <<_ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10619 | #define HAVE_DECL_TZNAME $ac_have_decl |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10620 | _ACEOF |
| 10621 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10622 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 10623 | $as_echo_n "checking for tzname... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 10624 | if ${ac_cv_var_tzname+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 10625 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10626 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10627 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10628 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10629 | #include <time.h> |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10630 | #if !HAVE_DECL_TZNAME |
| 10631 | extern char *tzname[]; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10632 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10633 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10634 | int |
| 10635 | main () |
| 10636 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10637 | return tzname[0][0]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10638 | ; |
| 10639 | return 0; |
| 10640 | } |
| 10641 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10642 | if ac_fn_c_try_link "$LINENO"; then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10643 | ac_cv_var_tzname=yes |
| 10644 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10645 | ac_cv_var_tzname=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10646 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10647 | rm -f core conftest.err conftest.$ac_objext \ |
| 10648 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10649 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 10651 | $as_echo "$ac_cv_var_tzname" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10652 | if test $ac_cv_var_tzname = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10653 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10654 | $as_echo "#define HAVE_TZNAME 1" >>confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10655 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10656 | fi |
| 10657 | fi |
| 10658 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10659 | ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 10660 | 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] | 10661 | |
| 10662 | cat >>confdefs.h <<_ACEOF |
| 10663 | #define HAVE_STRUCT_STAT_ST_RDEV 1 |
| 10664 | _ACEOF |
| 10665 | |
| 10666 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 10667 | fi |
| 10668 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10669 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default" |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 10670 | if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then : |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 10671 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10672 | cat >>confdefs.h <<_ACEOF |
| 10673 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 |
| 10674 | _ACEOF |
| 10675 | |
| 10676 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 10677 | fi |
| 10678 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10679 | ac_fn_c_check_member "$LINENO" "struct stat" "st_flags" "ac_cv_member_struct_stat_st_flags" "$ac_includes_default" |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 10680 | 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] | 10681 | |
| 10682 | cat >>confdefs.h <<_ACEOF |
| 10683 | #define HAVE_STRUCT_STAT_ST_FLAGS 1 |
| 10684 | _ACEOF |
| 10685 | |
| 10686 | |
| 10687 | fi |
| 10688 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10689 | ac_fn_c_check_member "$LINENO" "struct stat" "st_gen" "ac_cv_member_struct_stat_st_gen" "$ac_includes_default" |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 10690 | 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] | 10691 | |
| 10692 | cat >>confdefs.h <<_ACEOF |
| 10693 | #define HAVE_STRUCT_STAT_ST_GEN 1 |
| 10694 | _ACEOF |
| 10695 | |
| 10696 | |
| 10697 | fi |
| 10698 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10699 | ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "$ac_includes_default" |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 10700 | 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] | 10701 | |
| 10702 | cat >>confdefs.h <<_ACEOF |
| 10703 | #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1 |
| 10704 | _ACEOF |
| 10705 | |
| 10706 | |
| 10707 | fi |
| 10708 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10709 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default" |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 10710 | if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then : |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 10711 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10712 | cat >>confdefs.h <<_ACEOF |
| 10713 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 |
| 10714 | _ACEOF |
| 10715 | |
| 10716 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10717 | $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 10718 | |
| 10719 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10720 | case " $LIBOBJS " in |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10721 | *" fileblocks.$ac_objext "* ) ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10722 | *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" |
| 10723 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10724 | esac |
| 10725 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 10726 | fi |
| 10727 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10728 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10729 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10730 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for time.h that defines altzone" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 10731 | $as_echo_n "checking for time.h that defines altzone... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 10732 | if ${ac_cv_header_time_altzone+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 10733 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10734 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10735 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10736 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 10737 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10738 | int |
| 10739 | main () |
| 10740 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10741 | return altzone; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10742 | ; |
| 10743 | return 0; |
| 10744 | } |
| 10745 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10746 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10747 | ac_cv_header_time_altzone=yes |
| 10748 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10749 | ac_cv_header_time_altzone=no |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 10750 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10751 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10752 | fi |
| 10753 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time_altzone" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 10755 | $as_echo "$ac_cv_header_time_altzone" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10756 | if test $ac_cv_header_time_altzone = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10757 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10758 | $as_echo "#define HAVE_ALTZONE 1" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10759 | |
| 10760 | fi |
| 10761 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 10762 | was_it_defined=no |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10763 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be included" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 10764 | $as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10765 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10766 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 10767 | |
| 10768 | #include <sys/types.h> |
| 10769 | #include <sys/select.h> |
| 10770 | #include <sys/time.h> |
| 10771 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10772 | int |
| 10773 | main () |
| 10774 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10775 | ; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10776 | ; |
| 10777 | return 0; |
| 10778 | } |
| 10779 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10780 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10781 | |
| 10782 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10783 | $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] | 10784 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 10785 | was_it_defined=yes |
| 10786 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10787 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10788 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 10790 | $as_echo "$was_it_defined" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10791 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10792 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for addrinfo" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 10793 | $as_echo_n "checking for addrinfo... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 10794 | if ${ac_cv_struct_addrinfo+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 10795 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10796 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10797 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10798 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10799 | |
| 10800 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10801 | int |
| 10802 | main () |
| 10803 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10804 | struct addrinfo a |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10805 | ; |
| 10806 | return 0; |
| 10807 | } |
| 10808 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10809 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10810 | ac_cv_struct_addrinfo=yes |
| 10811 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10812 | ac_cv_struct_addrinfo=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10813 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10814 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10815 | fi |
| 10816 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_addrinfo" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 10818 | $as_echo "$ac_cv_struct_addrinfo" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10819 | if test $ac_cv_struct_addrinfo = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10820 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10821 | $as_echo "#define HAVE_ADDRINFO 1" >>confdefs.h |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10822 | |
| 10823 | fi |
| 10824 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10825 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 10826 | $as_echo_n "checking for sockaddr_storage... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 10827 | if ${ac_cv_struct_sockaddr_storage+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 10828 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10829 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10830 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10831 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10832 | |
| 10833 | # include <sys/types.h> |
| 10834 | # include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10835 | int |
| 10836 | main () |
| 10837 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10838 | struct sockaddr_storage s |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10839 | ; |
| 10840 | return 0; |
| 10841 | } |
| 10842 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10843 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10844 | ac_cv_struct_sockaddr_storage=yes |
| 10845 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10846 | ac_cv_struct_sockaddr_storage=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10847 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10848 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10849 | fi |
| 10850 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_storage" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 10852 | $as_echo "$ac_cv_struct_sockaddr_storage" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10853 | if test $ac_cv_struct_sockaddr_storage = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10854 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10855 | $as_echo "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10856 | |
| 10857 | fi |
| 10858 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10859 | # checks for compiler characteristics |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 10860 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10861 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 10862 | $as_echo_n "checking whether char is unsigned... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 10863 | if ${ac_cv_c_char_unsigned+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 10864 | $as_echo_n "(cached) " >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 10865 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10866 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10867 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10868 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10869 | int |
| 10870 | main () |
| 10871 | { |
| 10872 | static int test_array [1 - 2 * !(((char) -1) < 0)]; |
| 10873 | test_array [0] = 0 |
| 10874 | |
| 10875 | ; |
| 10876 | return 0; |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10877 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10878 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10879 | if ac_fn_c_try_compile "$LINENO"; then : |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10880 | ac_cv_c_char_unsigned=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10881 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10882 | ac_cv_c_char_unsigned=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10883 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10884 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10885 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 10887 | $as_echo "$ac_cv_c_char_unsigned" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10888 | if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10889 | $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10890 | |
| 10891 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 10892 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10893 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 10894 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 10895 | if ${ac_cv_c_const+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 10896 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10897 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10898 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10899 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10900 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10901 | int |
| 10902 | main () |
| 10903 | { |
| 10904 | /* FIXME: Include the comments suggested by Paul. */ |
| 10905 | #ifndef __cplusplus |
| 10906 | /* Ultrix mips cc rejects this. */ |
| 10907 | typedef int charset[2]; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10908 | const charset cs; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10909 | /* SunOS 4.1.1 cc rejects this. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10910 | char const *const *pcpcc; |
| 10911 | char **ppc; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10912 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 10913 | struct point {int x, y;}; |
| 10914 | static struct point const zero = {0,0}; |
| 10915 | /* AIX XL C 1.02.0.0 rejects this. |
| 10916 | It does not let you subtract one const X* pointer from another in |
| 10917 | an arm of an if-expression whose if-part is not a constant |
| 10918 | expression */ |
| 10919 | const char *g = "string"; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10920 | pcpcc = &g + (g ? g-g : 0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10921 | /* HPUX 7.0 cc rejects these. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10922 | ++pcpcc; |
| 10923 | ppc = (char**) pcpcc; |
| 10924 | pcpcc = (char const *const *) ppc; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10925 | { /* SCO 3.2v4 cc rejects this. */ |
| 10926 | char *t; |
| 10927 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10928 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10929 | *t++ = 0; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10930 | if (s) return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10931 | } |
| 10932 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 10933 | int x[] = {25, 17}; |
| 10934 | const int *foo = &x[0]; |
| 10935 | ++foo; |
| 10936 | } |
| 10937 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 10938 | typedef const int *iptr; |
| 10939 | iptr p = 0; |
| 10940 | ++p; |
| 10941 | } |
| 10942 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 10943 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 10944 | struct s { int j; const int *ap[3]; }; |
| 10945 | struct s *b; b->j = 5; |
| 10946 | } |
| 10947 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 10948 | const int foo = 10; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10949 | if (!foo) return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10950 | } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10951 | return !cs[0] && !zero.x; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10952 | #endif |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10953 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10954 | ; |
| 10955 | return 0; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10956 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10957 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10958 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10959 | ac_cv_c_const=yes |
| 10960 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10961 | ac_cv_c_const=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10962 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10963 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10964 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 10966 | $as_echo "$ac_cv_c_const" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10967 | if test $ac_cv_c_const = no; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10968 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10969 | $as_echo "#define const /**/" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10970 | |
| 10971 | fi |
| 10972 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10973 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 10974 | works=no |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10975 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 10976 | $as_echo_n "checking for working volatile... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10977 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10978 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10979 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10980 | int |
| 10981 | main () |
| 10982 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10983 | volatile int x; x = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10984 | ; |
| 10985 | return 0; |
| 10986 | } |
| 10987 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10988 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 10989 | works=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10990 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10991 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10992 | $as_echo "#define volatile /**/" >>confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10993 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 10994 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10995 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10996 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 10998 | $as_echo "$works" >&6; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 10999 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11000 | works=no |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11001 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working signed char" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11002 | $as_echo_n "checking for working signed char... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11003 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11004 | /* end confdefs.h. */ |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 11005 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11006 | int |
| 11007 | main () |
| 11008 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11009 | signed char c; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11010 | ; |
| 11011 | return 0; |
| 11012 | } |
| 11013 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11014 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11015 | works=yes |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 11016 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11017 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11018 | $as_echo "#define signed /**/" >>confdefs.h |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11019 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 11020 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11021 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11022 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11024 | $as_echo "$works" >&6; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11025 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11026 | have_prototypes=no |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11027 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prototypes" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11028 | $as_echo_n "checking for prototypes... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11029 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11030 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11031 | int foo(int x) { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11032 | int |
| 11033 | main () |
| 11034 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11035 | return foo(10); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11036 | ; |
| 11037 | return 0; |
| 11038 | } |
| 11039 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11040 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11041 | |
| 11042 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11043 | $as_echo "#define HAVE_PROTOTYPES 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11044 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 11045 | have_prototypes=yes |
| 11046 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11047 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11048 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11049 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_prototypes" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11050 | $as_echo "$have_prototypes" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11051 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11052 | works=no |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11053 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for variable length prototypes and stdarg.h" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11054 | $as_echo_n "checking for variable length prototypes and stdarg.h... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11055 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11056 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11057 | |
| 11058 | #include <stdarg.h> |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 11059 | int foo(int x, ...) { |
| 11060 | va_list va; |
| 11061 | va_start(va, x); |
| 11062 | va_arg(va, int); |
| 11063 | va_arg(va, char *); |
| 11064 | va_arg(va, double); |
| 11065 | return 0; |
| 11066 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11067 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11068 | int |
| 11069 | main () |
| 11070 | { |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 11071 | return foo(10, "", 3.14); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11072 | ; |
| 11073 | return 0; |
| 11074 | } |
| 11075 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11076 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11077 | |
| 11078 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11079 | $as_echo "#define HAVE_STDARG_PROTOTYPES 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11080 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 11081 | works=yes |
| 11082 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11083 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11084 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11086 | $as_echo "$works" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11087 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 11088 | # check for socketpair |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11089 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socketpair" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11090 | $as_echo_n "checking for socketpair... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11091 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 11092 | /* end confdefs.h. */ |
| 11093 | |
| 11094 | #include <sys/types.h> |
| 11095 | #include <sys/socket.h> |
| 11096 | |
| 11097 | int |
| 11098 | main () |
| 11099 | { |
| 11100 | void *x=socketpair |
| 11101 | ; |
| 11102 | return 0; |
| 11103 | } |
| 11104 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11105 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 11106 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11107 | $as_echo "#define HAVE_SOCKETPAIR 1" >>confdefs.h |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 11108 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11110 | $as_echo "yes" >&6; } |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 11111 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11113 | $as_echo "no" >&6; } |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 11114 | |
| 11115 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11116 | 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] | 11117 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11118 | # check if sockaddr has sa_len member |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11119 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr has sa_len member" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11120 | $as_echo_n "checking if sockaddr has sa_len member... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11121 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11122 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11123 | #include <sys/types.h> |
| 11124 | #include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11125 | int |
| 11126 | main () |
| 11127 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11128 | struct sockaddr x; |
| 11129 | x.sa_len = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11130 | ; |
| 11131 | return 0; |
| 11132 | } |
| 11133 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11134 | if ac_fn_c_try_compile "$LINENO"; then : |
| 11135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11136 | $as_echo "yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11137 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11138 | $as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11139 | |
| 11140 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11142 | $as_echo "no" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11143 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11144 | 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] | 11145 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11146 | va_list_is_array=no |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11147 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether va_list is an array" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11148 | $as_echo_n "checking whether va_list is an array... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11149 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11150 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11151 | |
| 11152 | #ifdef HAVE_STDARG_PROTOTYPES |
| 11153 | #include <stdarg.h> |
| 11154 | #else |
| 11155 | #include <varargs.h> |
| 11156 | #endif |
| 11157 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11158 | int |
| 11159 | main () |
| 11160 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11161 | va_list list1, list2; list1 = list2; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11162 | ; |
| 11163 | return 0; |
| 11164 | } |
| 11165 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11166 | if ac_fn_c_try_compile "$LINENO"; then : |
| 11167 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11168 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11169 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11170 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11171 | $as_echo "#define VA_LIST_IS_ARRAY 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11172 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11173 | va_list_is_array=yes |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 11174 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11175 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11176 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $va_list_is_array" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11178 | $as_echo "$va_list_is_array" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11179 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11180 | # 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] | 11181 | |
| 11182 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11183 | ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r" |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 11184 | if test "x$ac_cv_func_gethostbyname_r" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11185 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11186 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 11187 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11188 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 6 args" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11189 | $as_echo_n "checking gethostbyname_r with 6 args... " >&6; } |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11190 | OLD_CFLAGS=$CFLAGS |
| 11191 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11192 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11193 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11194 | |
| 11195 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11196 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11197 | int |
| 11198 | main () |
| 11199 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11200 | |
| 11201 | char *name; |
| 11202 | struct hostent *he, *res; |
| 11203 | char buffer[2048]; |
| 11204 | int buflen = 2048; |
| 11205 | int h_errnop; |
| 11206 | |
| 11207 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11208 | |
| 11209 | ; |
| 11210 | return 0; |
| 11211 | } |
| 11212 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11213 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11214 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11215 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 11216 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11217 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11218 | $as_echo "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11219 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11220 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11221 | $as_echo "yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11222 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11223 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11224 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11226 | $as_echo "no" >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11227 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 5 args" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11228 | $as_echo_n "checking gethostbyname_r with 5 args... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11229 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11230 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11231 | |
| 11232 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11233 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11234 | int |
| 11235 | main () |
| 11236 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11237 | |
| 11238 | char *name; |
| 11239 | struct hostent *he; |
| 11240 | char buffer[2048]; |
| 11241 | int buflen = 2048; |
| 11242 | int h_errnop; |
| 11243 | |
| 11244 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11245 | |
| 11246 | ; |
| 11247 | return 0; |
| 11248 | } |
| 11249 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11250 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11251 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11252 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 11253 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11254 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11255 | $as_echo "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11256 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11258 | $as_echo "yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11259 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11260 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11261 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11263 | $as_echo "no" >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11264 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 3 args" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11265 | $as_echo_n "checking gethostbyname_r with 3 args... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11266 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11267 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11268 | |
| 11269 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11270 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11271 | int |
| 11272 | main () |
| 11273 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11274 | |
| 11275 | char *name; |
| 11276 | struct hostent *he; |
| 11277 | struct hostent_data data; |
| 11278 | |
| 11279 | (void) gethostbyname_r(name, he, &data); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11280 | |
| 11281 | ; |
| 11282 | return 0; |
| 11283 | } |
| 11284 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11285 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11286 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11287 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 11288 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11289 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11290 | $as_echo "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11291 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11293 | $as_echo "yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11294 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11295 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11296 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11298 | $as_echo "no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11299 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11300 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11301 | 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] | 11302 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11303 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11304 | 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] | 11305 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11306 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11307 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11308 | CFLAGS=$OLD_CFLAGS |
| 11309 | |
| 11310 | else |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11311 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11312 | for ac_func in gethostbyname |
| 11313 | do : |
| 11314 | ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 11315 | if test "x$ac_cv_func_gethostbyname" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11316 | cat >>confdefs.h <<_ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11317 | #define HAVE_GETHOSTBYNAME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11318 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11319 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11320 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11321 | done |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11322 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11323 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11324 | fi |
| 11325 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11326 | |
| 11327 | |
| 11328 | |
| 11329 | |
| 11330 | |
| 11331 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11332 | # checks for system services |
| 11333 | # (none yet) |
| 11334 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11335 | # Linux requires this for correct f.p. operations |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11336 | ac_fn_c_check_func "$LINENO" "__fpu_control" "ac_cv_func___fpu_control" |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 11337 | if test "x$ac_cv_func___fpu_control" = xyes; then : |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11338 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 11339 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11340 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __fpu_control in -lieee" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11341 | $as_echo_n "checking for __fpu_control in -lieee... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 11342 | if ${ac_cv_lib_ieee___fpu_control+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11343 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11344 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11345 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11346 | LIBS="-lieee $LIBS" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11347 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11348 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11349 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11350 | /* Override any GCC internal prototype to avoid an error. |
| 11351 | Use char because int might match the return type of a GCC |
| 11352 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11353 | #ifdef __cplusplus |
| 11354 | extern "C" |
| 11355 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11356 | char __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11357 | int |
| 11358 | main () |
| 11359 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11360 | return __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11361 | ; |
| 11362 | return 0; |
| 11363 | } |
| 11364 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11365 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11366 | ac_cv_lib_ieee___fpu_control=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11367 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11368 | ac_cv_lib_ieee___fpu_control=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11369 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11370 | rm -f core conftest.err conftest.$ac_objext \ |
| 11371 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11372 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11373 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ieee___fpu_control" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11375 | $as_echo "$ac_cv_lib_ieee___fpu_control" >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 11376 | 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] | 11377 | cat >>confdefs.h <<_ACEOF |
| 11378 | #define HAVE_LIBIEEE 1 |
| 11379 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11380 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11381 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11382 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11383 | fi |
| 11384 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11385 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 11386 | fi |
| 11387 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11388 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11389 | # Check for --with-fpectl |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11390 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-fpectl" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11391 | $as_echo_n "checking for --with-fpectl... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11392 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11393 | # Check whether --with-fpectl was given. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11394 | if test "${with_fpectl+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11395 | withval=$with_fpectl; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11396 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11397 | then |
| 11398 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11399 | $as_echo "#define WANT_SIGFPE_HANDLER 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11400 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11401 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11402 | $as_echo "yes" >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11403 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11404 | $as_echo "no" >&6; } |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11405 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 11406 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11408 | $as_echo "no" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11409 | fi |
| 11410 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11411 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11412 | # check for --with-libm=... |
| 11413 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 11414 | case $ac_sys_system in |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 11415 | Darwin) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 11416 | *) LIBM=-lm |
| 11417 | esac |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11418 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libm=STRING" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11419 | $as_echo_n "checking for --with-libm=STRING... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11420 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11421 | # Check whether --with-libm was given. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11422 | if test "${with_libm+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11423 | withval=$with_libm; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11424 | if test "$withval" = no |
| 11425 | then LIBM= |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBM empty" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11427 | $as_echo "force LIBM empty" >&6; } |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11428 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11429 | then LIBM=$withval |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBM=\"$withval\"" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11431 | $as_echo "set LIBM=\"$withval\"" >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 11432 | 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] | 11433 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11434 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBM=\"$LIBM\"" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11436 | $as_echo "default LIBM=\"$LIBM\"" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11437 | fi |
| 11438 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11439 | |
| 11440 | # check for --with-libc=... |
| 11441 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11442 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libc=STRING" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11443 | $as_echo_n "checking for --with-libc=STRING... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11444 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11445 | # Check whether --with-libc was given. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11446 | if test "${with_libc+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11447 | withval=$with_libc; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11448 | if test "$withval" = no |
| 11449 | then LIBC= |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBC empty" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11451 | $as_echo "force LIBC empty" >&6; } |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11452 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11453 | then LIBC=$withval |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBC=\"$withval\"" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11455 | $as_echo "set LIBC=\"$withval\"" >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 11456 | 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] | 11457 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11458 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBC=\"$LIBC\"" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11460 | $as_echo "default LIBC=\"$LIBC\"" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11461 | fi |
| 11462 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11463 | |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11464 | # ************************************************** |
| 11465 | # * Check for various properties of floating point * |
| 11466 | # ************************************************** |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 11467 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11468 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are little-endian IEEE 754 binary64" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11469 | $as_echo_n "checking whether C doubles are little-endian IEEE 754 binary64... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 11470 | if ${ac_cv_little_endian_double+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11471 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11472 | else |
| 11473 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11474 | if test "$cross_compiling" = yes; then : |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11475 | ac_cv_little_endian_double=no |
| 11476 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11477 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11478 | /* end confdefs.h. */ |
| 11479 | |
| 11480 | #include <string.h> |
| 11481 | int main() { |
| 11482 | double x = 9006104071832581.0; |
| 11483 | if (memcmp(&x, "\x05\x04\x03\x02\x01\xff\x3f\x43", 8) == 0) |
| 11484 | return 0; |
| 11485 | else |
| 11486 | return 1; |
| 11487 | } |
| 11488 | |
| 11489 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11490 | if ac_fn_c_try_run "$LINENO"; then : |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11491 | ac_cv_little_endian_double=yes |
| 11492 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11493 | ac_cv_little_endian_double=no |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11494 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11495 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 11496 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11497 | fi |
| 11498 | |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11499 | fi |
| 11500 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_little_endian_double" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11502 | $as_echo "$ac_cv_little_endian_double" >&6; } |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11503 | if test "$ac_cv_little_endian_double" = yes |
| 11504 | then |
| 11505 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11506 | $as_echo "#define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1" >>confdefs.h |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11507 | |
| 11508 | fi |
| 11509 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11510 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are big-endian IEEE 754 binary64" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11511 | $as_echo_n "checking whether C doubles are big-endian IEEE 754 binary64... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 11512 | if ${ac_cv_big_endian_double+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11513 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11514 | else |
| 11515 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11516 | if test "$cross_compiling" = yes; then : |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11517 | ac_cv_big_endian_double=no |
| 11518 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11519 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11520 | /* end confdefs.h. */ |
| 11521 | |
| 11522 | #include <string.h> |
| 11523 | int main() { |
| 11524 | double x = 9006104071832581.0; |
| 11525 | if (memcmp(&x, "\x43\x3f\xff\x01\x02\x03\x04\x05", 8) == 0) |
| 11526 | return 0; |
| 11527 | else |
| 11528 | return 1; |
| 11529 | } |
| 11530 | |
| 11531 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11532 | if ac_fn_c_try_run "$LINENO"; then : |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11533 | ac_cv_big_endian_double=yes |
| 11534 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11535 | ac_cv_big_endian_double=no |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11536 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11537 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 11538 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11539 | fi |
| 11540 | |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11541 | fi |
| 11542 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_big_endian_double" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11544 | $as_echo "$ac_cv_big_endian_double" >&6; } |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11545 | if test "$ac_cv_big_endian_double" = yes |
| 11546 | then |
| 11547 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11548 | $as_echo "#define DOUBLE_IS_BIG_ENDIAN_IEEE754 1" >>confdefs.h |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11549 | |
| 11550 | fi |
| 11551 | |
| 11552 | # Some ARM platforms use a mixed-endian representation for doubles. |
| 11553 | # While Python doesn't currently have full support for these platforms |
| 11554 | # (see e.g., issue 1762561), we can at least make sure that float <-> string |
| 11555 | # conversions work. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11556 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are ARM mixed-endian IEEE 754 binary64" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11557 | $as_echo_n "checking whether C doubles are ARM mixed-endian IEEE 754 binary64... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 11558 | if ${ac_cv_mixed_endian_double+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11559 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11560 | else |
| 11561 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11562 | if test "$cross_compiling" = yes; then : |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11563 | ac_cv_mixed_endian_double=no |
| 11564 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11565 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11566 | /* end confdefs.h. */ |
| 11567 | |
| 11568 | #include <string.h> |
| 11569 | int main() { |
| 11570 | double x = 9006104071832581.0; |
| 11571 | if (memcmp(&x, "\x01\xff\x3f\x43\x05\x04\x03\x02", 8) == 0) |
| 11572 | return 0; |
| 11573 | else |
| 11574 | return 1; |
| 11575 | } |
| 11576 | |
| 11577 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11578 | if ac_fn_c_try_run "$LINENO"; then : |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11579 | ac_cv_mixed_endian_double=yes |
| 11580 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11581 | ac_cv_mixed_endian_double=no |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11582 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11583 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 11584 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11585 | fi |
| 11586 | |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11587 | fi |
| 11588 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11589 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mixed_endian_double" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11590 | $as_echo "$ac_cv_mixed_endian_double" >&6; } |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11591 | if test "$ac_cv_mixed_endian_double" = yes |
| 11592 | then |
| 11593 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11594 | $as_echo "#define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1" >>confdefs.h |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11595 | |
| 11596 | fi |
| 11597 | |
Mark Dickinson | 7abf8d4 | 2009-04-18 20:17:52 +0000 | [diff] [blame] | 11598 | # The short float repr introduced in Python 3.1 requires the |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 11599 | # correctly-rounded string <-> double conversion functions from |
Mark Dickinson | 7abf8d4 | 2009-04-18 20:17:52 +0000 | [diff] [blame] | 11600 | # 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] | 11601 | # rounding; this is a problem on x86, where the x87 FPU has a default |
| 11602 | # rounding precision of 64 bits. For gcc/x86, we try to fix this by |
| 11603 | # using inline assembler to get and set the x87 FPU control word. |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11604 | if test "$GCC" = yes && test -n "`$CC -dM -E - </dev/null | grep i386`" |
| 11605 | then |
Mark Dickinson | 7abf8d4 | 2009-04-18 20:17:52 +0000 | [diff] [blame] | 11606 | # Check that it's okay to use gcc inline assembler to get and set |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 11607 | # x87 control word. It should be, but you never know... |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11608 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set x87 control word" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11609 | $as_echo_n "checking whether we can use gcc inline assembler to get and set x87 control word... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11610 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11611 | /* end confdefs.h. */ |
| 11612 | |
| 11613 | int |
| 11614 | main () |
| 11615 | { |
| 11616 | |
Mark Dickinson | 7abf8d4 | 2009-04-18 20:17:52 +0000 | [diff] [blame] | 11617 | unsigned short cw; |
| 11618 | __asm__ __volatile__ ("fnstcw %0" : "=m" (cw)); |
| 11619 | __asm__ __volatile__ ("fldcw %0" : : "m" (cw)); |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11620 | |
| 11621 | ; |
| 11622 | return 0; |
| 11623 | } |
| 11624 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11625 | if ac_fn_c_try_compile "$LINENO"; then : |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11626 | have_gcc_asm_for_x87=yes |
| 11627 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11628 | have_gcc_asm_for_x87=no |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11629 | fi |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11630 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_x87" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11632 | $as_echo "$have_gcc_asm_for_x87" >&6; } |
Mark Dickinson | 7abf8d4 | 2009-04-18 20:17:52 +0000 | [diff] [blame] | 11633 | if test "$have_gcc_asm_for_x87" = yes |
| 11634 | then |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11635 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11636 | $as_echo "#define HAVE_GCC_ASM_FOR_X87 1" >>confdefs.h |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11637 | |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11638 | fi |
| 11639 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11640 | |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 11641 | # Detect whether system arithmetic is subject to x87-style double |
| 11642 | # rounding issues. The result of this test has little meaning on non |
| 11643 | # IEEE 754 platforms. On IEEE 754, test should return 1 if rounding |
| 11644 | # mode is round-to-nearest and double rounding issues are present, and |
| 11645 | # 0 otherwise. See http://bugs.python.org/issue2937 for more info. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11646 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x87-style double rounding" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11647 | $as_echo_n "checking for x87-style double rounding... " >&6; } |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11648 | # $BASECFLAGS may affect the result |
| 11649 | ac_save_cc="$CC" |
| 11650 | CC="$CC $BASECFLAGS" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11651 | if test "$cross_compiling" = yes; then : |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 11652 | ac_cv_x87_double_rounding=no |
| 11653 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11654 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 11655 | /* end confdefs.h. */ |
| 11656 | |
| 11657 | #include <stdlib.h> |
| 11658 | #include <math.h> |
| 11659 | int main() { |
| 11660 | volatile double x, y, z; |
| 11661 | /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */ |
| 11662 | x = 0.99999999999999989; /* 1-2**-53 */ |
| 11663 | y = 1./x; |
| 11664 | if (y != 1.) |
| 11665 | exit(0); |
| 11666 | /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */ |
| 11667 | x = 1e16; |
| 11668 | y = 2.99999; |
| 11669 | z = x + y; |
| 11670 | if (z != 1e16+4.) |
| 11671 | exit(0); |
| 11672 | /* both tests show evidence of double rounding */ |
| 11673 | exit(1); |
| 11674 | } |
| 11675 | |
| 11676 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11677 | if ac_fn_c_try_run "$LINENO"; then : |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 11678 | ac_cv_x87_double_rounding=no |
| 11679 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11680 | ac_cv_x87_double_rounding=yes |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 11681 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11682 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 11683 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 11684 | fi |
| 11685 | |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11686 | CC="$ac_save_cc" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_x87_double_rounding" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11688 | $as_echo "$ac_cv_x87_double_rounding" >&6; } |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 11689 | if test "$ac_cv_x87_double_rounding" = yes |
| 11690 | then |
| 11691 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11692 | $as_echo "#define X87_DOUBLE_ROUNDING 1" >>confdefs.h |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 11693 | |
| 11694 | fi |
| 11695 | |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11696 | # ************************************ |
| 11697 | # * Check for mathematical functions * |
| 11698 | # ************************************ |
| 11699 | |
| 11700 | LIBS_SAVE=$LIBS |
| 11701 | LIBS="$LIBS $LIBM" |
| 11702 | |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 11703 | # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of |
| 11704 | # -0. on some architectures. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11705 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tanh preserves the sign of zero" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11706 | $as_echo_n "checking whether tanh preserves the sign of zero... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 11707 | if ${ac_cv_tanh_preserves_zero_sign+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11708 | $as_echo_n "(cached) " >&6 |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 11709 | else |
| 11710 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11711 | if test "$cross_compiling" = yes; then : |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 11712 | ac_cv_tanh_preserves_zero_sign=no |
| 11713 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11714 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 11715 | /* end confdefs.h. */ |
| 11716 | |
| 11717 | #include <math.h> |
| 11718 | #include <stdlib.h> |
| 11719 | int main() { |
| 11720 | /* return 0 if either negative zeros don't exist |
| 11721 | on this platform or if negative zeros exist |
| 11722 | and tanh(-0.) == -0. */ |
| 11723 | if (atan2(0., -1.) == atan2(-0., -1.) || |
| 11724 | atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0); |
| 11725 | else exit(1); |
| 11726 | } |
| 11727 | |
| 11728 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11729 | if ac_fn_c_try_run "$LINENO"; then : |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 11730 | ac_cv_tanh_preserves_zero_sign=yes |
| 11731 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11732 | ac_cv_tanh_preserves_zero_sign=no |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 11733 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11734 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 11735 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 11736 | fi |
| 11737 | |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 11738 | fi |
| 11739 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tanh_preserves_zero_sign" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11741 | $as_echo "$ac_cv_tanh_preserves_zero_sign" >&6; } |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 11742 | if test "$ac_cv_tanh_preserves_zero_sign" = yes |
| 11743 | then |
| 11744 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11745 | $as_echo "#define TANH_PRESERVES_ZERO_SIGN 1" >>confdefs.h |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 11746 | |
| 11747 | fi |
| 11748 | |
Mark Dickinson | f253786 | 2009-04-18 13:58:18 +0000 | [diff] [blame] | 11749 | for ac_func in acosh asinh atanh copysign expm1 finite hypot log1p round |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11750 | do : |
| 11751 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11752 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 11753 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Christian Heimes | 99170a5 | 2007-12-19 02:07:34 +0000 | [diff] [blame] | 11754 | cat >>confdefs.h <<_ACEOF |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11755 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Christian Heimes | 99170a5 | 2007-12-19 02:07:34 +0000 | [diff] [blame] | 11756 | _ACEOF |
| 11757 | |
| 11758 | fi |
| 11759 | done |
| 11760 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11761 | ac_fn_c_check_decl "$LINENO" "isinf" "ac_cv_have_decl_isinf" "#include <math.h> |
| 11762 | " |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 11763 | if test "x$ac_cv_have_decl_isinf" = xyes; then : |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11764 | ac_have_decl=1 |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 11765 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11766 | ac_have_decl=0 |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 11767 | fi |
| 11768 | |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 11769 | cat >>confdefs.h <<_ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11770 | #define HAVE_DECL_ISINF $ac_have_decl |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 11771 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11772 | ac_fn_c_check_decl "$LINENO" "isnan" "ac_cv_have_decl_isnan" "#include <math.h> |
| 11773 | " |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 11774 | if test "x$ac_cv_have_decl_isnan" = xyes; then : |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11775 | ac_have_decl=1 |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 11776 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11777 | ac_have_decl=0 |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 11778 | fi |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 11779 | |
| 11780 | cat >>confdefs.h <<_ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11781 | #define HAVE_DECL_ISNAN $ac_have_decl |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 11782 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11783 | ac_fn_c_check_decl "$LINENO" "isfinite" "ac_cv_have_decl_isfinite" "#include <math.h> |
| 11784 | " |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 11785 | if test "x$ac_cv_have_decl_isfinite" = xyes; then : |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11786 | ac_have_decl=1 |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 11787 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11788 | ac_have_decl=0 |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 11789 | fi |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 11790 | |
| 11791 | cat >>confdefs.h <<_ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11792 | #define HAVE_DECL_ISFINITE $ac_have_decl |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 11793 | _ACEOF |
| 11794 | |
| 11795 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 11796 | LIBS=$LIBS_SAVE |
| 11797 | |
Mark Dickinson | 875ada4 | 2009-11-28 12:52:39 +0000 | [diff] [blame] | 11798 | # For multiprocessing module, check that sem_open |
| 11799 | # actually works. For FreeBSD versions <= 7.2, |
| 11800 | # the kernel module that provides POSIX semaphores |
| 11801 | # isn't loaded by default, so an attempt to call |
| 11802 | # sem_open results in a 'Signal 12' error. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11803 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX semaphores are enabled" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11804 | $as_echo_n "checking whether POSIX semaphores are enabled... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 11805 | if ${ac_cv_posix_semaphores_enabled+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11806 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | 875ada4 | 2009-11-28 12:52:39 +0000 | [diff] [blame] | 11807 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11808 | if test "$cross_compiling" = yes; then : |
Mark Dickinson | 875ada4 | 2009-11-28 12:52:39 +0000 | [diff] [blame] | 11809 | ac_cv_posix_semaphores_enabled=yes |
| 11810 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11811 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | 875ada4 | 2009-11-28 12:52:39 +0000 | [diff] [blame] | 11812 | /* end confdefs.h. */ |
| 11813 | |
| 11814 | #include <unistd.h> |
| 11815 | #include <fcntl.h> |
| 11816 | #include <stdio.h> |
| 11817 | #include <semaphore.h> |
| 11818 | #include <sys/stat.h> |
| 11819 | |
| 11820 | int main(void) { |
| 11821 | sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0); |
| 11822 | if (a == SEM_FAILED) { |
| 11823 | perror("sem_open"); |
| 11824 | return 1; |
| 11825 | } |
| 11826 | sem_close(a); |
Mark Dickinson | 62eda4d | 2009-12-13 21:18:16 +0000 | [diff] [blame] | 11827 | sem_unlink("/autoconf"); |
Mark Dickinson | 875ada4 | 2009-11-28 12:52:39 +0000 | [diff] [blame] | 11828 | return 0; |
| 11829 | } |
| 11830 | |
| 11831 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11832 | if ac_fn_c_try_run "$LINENO"; then : |
Mark Dickinson | 875ada4 | 2009-11-28 12:52:39 +0000 | [diff] [blame] | 11833 | ac_cv_posix_semaphores_enabled=yes |
| 11834 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11835 | ac_cv_posix_semaphores_enabled=no |
Mark Dickinson | 875ada4 | 2009-11-28 12:52:39 +0000 | [diff] [blame] | 11836 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11837 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 11838 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Mark Dickinson | 875ada4 | 2009-11-28 12:52:39 +0000 | [diff] [blame] | 11839 | fi |
| 11840 | |
| 11841 | |
Mark Dickinson | 875ada4 | 2009-11-28 12:52:39 +0000 | [diff] [blame] | 11842 | fi |
| 11843 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_semaphores_enabled" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11845 | $as_echo "$ac_cv_posix_semaphores_enabled" >&6; } |
Mark Dickinson | 875ada4 | 2009-11-28 12:52:39 +0000 | [diff] [blame] | 11846 | if test $ac_cv_posix_semaphores_enabled = no |
| 11847 | then |
| 11848 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11849 | $as_echo "#define POSIX_SEMAPHORES_NOT_ENABLED 1" >>confdefs.h |
Mark Dickinson | 875ada4 | 2009-11-28 12:52:39 +0000 | [diff] [blame] | 11850 | |
| 11851 | fi |
| 11852 | |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 11853 | # Multiprocessing check for broken sem_getvalue |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11854 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken sem_getvalue" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11855 | $as_echo_n "checking for broken sem_getvalue... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11856 | if test "$cross_compiling" = yes; then : |
| 11857 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11858 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 11859 | as_fn_error $? "cannot run test program while cross compiling |
| 11860 | See \`config.log' for more details" "$LINENO" 5; } |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 11861 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11862 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 11863 | /* end confdefs.h. */ |
| 11864 | |
| 11865 | #include <unistd.h> |
| 11866 | #include <fcntl.h> |
| 11867 | #include <stdio.h> |
| 11868 | #include <semaphore.h> |
| 11869 | #include <sys/stat.h> |
| 11870 | |
| 11871 | int main(void){ |
Mark Dickinson | 62eda4d | 2009-12-13 21:18:16 +0000 | [diff] [blame] | 11872 | 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] | 11873 | int count; |
| 11874 | int res; |
| 11875 | if(a==SEM_FAILED){ |
| 11876 | perror("sem_open"); |
| 11877 | return 1; |
| 11878 | |
| 11879 | } |
| 11880 | res = sem_getvalue(a, &count); |
| 11881 | sem_close(a); |
Mark Dickinson | 62eda4d | 2009-12-13 21:18:16 +0000 | [diff] [blame] | 11882 | sem_unlink("/autocftw"); |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 11883 | return res==-1 ? 1 : 0; |
| 11884 | } |
| 11885 | |
| 11886 | |
| 11887 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11888 | if ac_fn_c_try_run "$LINENO"; then : |
| 11889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11890 | $as_echo "no" >&6; } |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 11891 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11893 | $as_echo "yes" >&6; } |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 11894 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11895 | $as_echo "#define HAVE_BROKEN_SEM_GETVALUE 1" >>confdefs.h |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 11896 | |
| 11897 | |
| 11898 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11899 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 11900 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 11901 | fi |
| 11902 | |
| 11903 | |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 11904 | # determine what size digit to use for Python's longs |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11905 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking digit size for Python's longs" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11906 | $as_echo_n "checking digit size for Python's longs... " >&6; } |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 11907 | # Check whether --enable-big-digits was given. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11908 | if test "${enable_big_digits+set}" = set; then : |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 11909 | enableval=$enable_big_digits; case $enable_big_digits in |
| 11910 | yes) |
| 11911 | enable_big_digits=30 ;; |
| 11912 | no) |
| 11913 | enable_big_digits=15 ;; |
| 11914 | 15|30) |
| 11915 | ;; |
| 11916 | *) |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 11917 | 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] | 11918 | esac |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_big_digits" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11920 | $as_echo "$enable_big_digits" >&6; } |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 11921 | |
| 11922 | cat >>confdefs.h <<_ACEOF |
| 11923 | #define PYLONG_BITS_IN_DIGIT $enable_big_digits |
| 11924 | _ACEOF |
| 11925 | |
| 11926 | |
| 11927 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11929 | $as_echo "no value specified" >&6; } |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 11930 | fi |
| 11931 | |
| 11932 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 11933 | # check for wchar.h |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11934 | ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default" |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 11935 | if test "x$ac_cv_header_wchar_h" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11936 | |
| 11937 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11938 | $as_echo "#define HAVE_WCHAR_H 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11939 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 11940 | wchar_h="yes" |
| 11941 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 11942 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11943 | wchar_h="no" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 11944 | |
| 11945 | fi |
| 11946 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11947 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11948 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 11949 | # determine wchar_t size |
| 11950 | if test "$wchar_h" = yes |
| 11951 | then |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11952 | # 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] | 11953 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 11954 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 11955 | # This bug is HP SR number 8606223364. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11956 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11957 | $as_echo_n "checking size of wchar_t... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 11958 | if ${ac_cv_sizeof_wchar_t+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11959 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11960 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11961 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" "#include <wchar.h> |
| 11962 | "; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11963 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11964 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11965 | if test "$ac_cv_type_wchar_t" = yes; then |
| 11966 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11967 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 11968 | as_fn_error 77 "cannot compute sizeof (wchar_t) |
| 11969 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11970 | else |
| 11971 | ac_cv_sizeof_wchar_t=0 |
| 11972 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11973 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11974 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11975 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11977 | $as_echo "$ac_cv_sizeof_wchar_t" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11978 | |
| 11979 | |
| 11980 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11981 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 11982 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11983 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 11984 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11985 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 11986 | fi |
| 11987 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11988 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UCS-4 tcl" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11989 | $as_echo_n "checking for UCS-4 tcl... " >&6; } |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 11990 | have_ucs4_tcl=no |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11991 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11992 | /* end confdefs.h. */ |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 11993 | |
| 11994 | #include <tcl.h> |
| 11995 | #if TCL_UTF_MAX != 6 |
| 11996 | # error "NOT UCS4_TCL" |
| 11997 | #endif |
| 11998 | int |
| 11999 | main () |
| 12000 | { |
| 12001 | |
| 12002 | ; |
| 12003 | return 0; |
| 12004 | } |
| 12005 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12006 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 12007 | |
| 12008 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12009 | $as_echo "#define HAVE_UCS4_TCL 1" >>confdefs.h |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 12010 | |
| 12011 | have_ucs4_tcl=yes |
| 12012 | |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 12013 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12014 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ucs4_tcl" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12016 | $as_echo "$have_ucs4_tcl" >&6; } |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 12017 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12018 | # check whether wchar_t is signed or not |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12019 | if test "$wchar_h" = yes |
| 12020 | then |
| 12021 | # check whether wchar_t is signed or not |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12022 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wchar_t is signed" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12023 | $as_echo_n "checking whether wchar_t is signed... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 12024 | if ${ac_cv_wchar_t_signed+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12025 | $as_echo_n "(cached) " >&6 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12026 | else |
| 12027 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12028 | if test "$cross_compiling" = yes; then : |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12029 | ac_cv_wchar_t_signed=yes |
| 12030 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12031 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12032 | /* end confdefs.h. */ |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12033 | |
| 12034 | #include <wchar.h> |
| 12035 | int main() |
| 12036 | { |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 12037 | /* Success: exit code 0 */ |
| 12038 | exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1); |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12039 | } |
| 12040 | |
| 12041 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12042 | if ac_fn_c_try_run "$LINENO"; then : |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12043 | ac_cv_wchar_t_signed=yes |
| 12044 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12045 | ac_cv_wchar_t_signed=no |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12046 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12047 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 12048 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12049 | fi |
| 12050 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12051 | fi |
| 12052 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_wchar_t_signed" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12054 | $as_echo "$ac_cv_wchar_t_signed" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12055 | fi |
| 12056 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12057 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking what type to use for str" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12058 | $as_echo_n "checking what type to use for str... " >&6; } |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 12059 | |
| 12060 | # Check whether --with-wide-unicode was given. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12061 | if test "${with_wide_unicode+set}" = set; then : |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 12062 | withval=$with_wide_unicode; |
| 12063 | if test "$withval" != no |
| 12064 | then unicode_size="4" |
| 12065 | else unicode_size="2" |
| 12066 | fi |
| 12067 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12068 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12069 | |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 12070 | case "$have_ucs4_tcl" in |
| 12071 | yes) unicode_size="4" ;; |
| 12072 | *) unicode_size="2" ;; |
| 12073 | esac |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12074 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12075 | fi |
| 12076 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 12077 | |
| 12078 | |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 12079 | case "$unicode_size" in |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12080 | 4) $as_echo "#define Py_UNICODE_SIZE 4" >>confdefs.h |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 12081 | ;; |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12082 | *) $as_echo "#define Py_UNICODE_SIZE 2" >>confdefs.h |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 12083 | ;; |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12084 | esac |
| 12085 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12086 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12087 | |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 12088 | # wchar_t is only usable if it maps to an unsigned type |
| 12089 | if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \ |
Matthias Klose | 7dbeed7 | 2004-12-24 08:22:17 +0000 | [diff] [blame] | 12090 | -a "$ac_cv_wchar_t_signed" = "no" |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 12091 | then |
| 12092 | PY_UNICODE_TYPE="wchar_t" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12093 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12094 | $as_echo "#define HAVE_USABLE_WCHAR_T 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12095 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12096 | $as_echo "#define PY_UNICODE_TYPE wchar_t" >>confdefs.h |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12097 | |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 12098 | elif test "$ac_cv_sizeof_short" = "$unicode_size" |
| 12099 | then |
| 12100 | PY_UNICODE_TYPE="unsigned short" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12101 | $as_echo "#define PY_UNICODE_TYPE unsigned short" >>confdefs.h |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12102 | |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 12103 | elif test "$ac_cv_sizeof_long" = "$unicode_size" |
| 12104 | then |
| 12105 | PY_UNICODE_TYPE="unsigned long" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12106 | $as_echo "#define PY_UNICODE_TYPE unsigned long" >>confdefs.h |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12107 | |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 12108 | else |
| 12109 | PY_UNICODE_TYPE="no type found" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12110 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PY_UNICODE_TYPE" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12112 | $as_echo "$PY_UNICODE_TYPE" >&6; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12113 | |
| 12114 | # check for endianness |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12115 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12116 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 12117 | if ${ac_cv_c_bigendian+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12118 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12119 | else |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12120 | ac_cv_c_bigendian=unknown |
| 12121 | # See if we're dealing with a universal compiler. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12122 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12123 | /* end confdefs.h. */ |
| 12124 | #ifndef __APPLE_CC__ |
| 12125 | not a universal capable compiler |
| 12126 | #endif |
| 12127 | typedef int dummy; |
| 12128 | |
| 12129 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12130 | if ac_fn_c_try_compile "$LINENO"; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12131 | |
| 12132 | # Check for potential -arch flags. It is not universal unless |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12133 | # there are at least two -arch flags with different values. |
| 12134 | ac_arch= |
| 12135 | ac_prev= |
| 12136 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do |
| 12137 | if test -n "$ac_prev"; then |
| 12138 | case $ac_word in |
| 12139 | i?86 | x86_64 | ppc | ppc64) |
| 12140 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then |
| 12141 | ac_arch=$ac_word |
| 12142 | else |
| 12143 | ac_cv_c_bigendian=universal |
| 12144 | break |
| 12145 | fi |
| 12146 | ;; |
| 12147 | esac |
| 12148 | ac_prev= |
| 12149 | elif test "x$ac_word" = "x-arch"; then |
| 12150 | ac_prev=arch |
| 12151 | fi |
| 12152 | done |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12153 | fi |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12154 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12155 | if test $ac_cv_c_bigendian = unknown; then |
| 12156 | # See if sys/param.h defines the BYTE_ORDER macro. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12157 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12158 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12159 | #include <sys/types.h> |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12160 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12161 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12162 | int |
| 12163 | main () |
| 12164 | { |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12165 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
| 12166 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ |
| 12167 | && LITTLE_ENDIAN) |
| 12168 | bogus endian macros |
| 12169 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12170 | |
| 12171 | ; |
| 12172 | return 0; |
| 12173 | } |
| 12174 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12175 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12176 | # It does; now see whether it defined to BIG_ENDIAN or not. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12177 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12178 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12179 | #include <sys/types.h> |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12180 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12181 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12182 | int |
| 12183 | main () |
| 12184 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12185 | #if BYTE_ORDER != BIG_ENDIAN |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12186 | not big endian |
| 12187 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12188 | |
| 12189 | ; |
| 12190 | return 0; |
| 12191 | } |
| 12192 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12193 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12194 | ac_cv_c_bigendian=yes |
| 12195 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12196 | ac_cv_c_bigendian=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12197 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12198 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12199 | fi |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12200 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12201 | fi |
| 12202 | if test $ac_cv_c_bigendian = unknown; then |
| 12203 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12204 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12205 | /* end confdefs.h. */ |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12206 | #include <limits.h> |
| 12207 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12208 | int |
| 12209 | main () |
| 12210 | { |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12211 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
| 12212 | bogus endian macros |
| 12213 | #endif |
| 12214 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12215 | ; |
| 12216 | return 0; |
| 12217 | } |
| 12218 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12219 | if ac_fn_c_try_compile "$LINENO"; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12220 | # It does; now see whether it defined to _BIG_ENDIAN or not. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12221 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12222 | /* end confdefs.h. */ |
| 12223 | #include <limits.h> |
| 12224 | |
| 12225 | int |
| 12226 | main () |
| 12227 | { |
| 12228 | #ifndef _BIG_ENDIAN |
| 12229 | not big endian |
| 12230 | #endif |
| 12231 | |
| 12232 | ; |
| 12233 | return 0; |
| 12234 | } |
| 12235 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12236 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12237 | ac_cv_c_bigendian=yes |
Benjamin Peterson | a833206 | 2009-09-11 22:36:27 +0000 | [diff] [blame] | 12238 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12239 | ac_cv_c_bigendian=no |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12240 | fi |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12241 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12242 | fi |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12243 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12244 | fi |
| 12245 | if test $ac_cv_c_bigendian = unknown; then |
| 12246 | # Compile a test program. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12247 | if test "$cross_compiling" = yes; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12248 | # Try to guess by grepping values from an object file. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12249 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12250 | /* end confdefs.h. */ |
| 12251 | short int ascii_mm[] = |
| 12252 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 12253 | short int ascii_ii[] = |
| 12254 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 12255 | int use_ascii (int i) { |
| 12256 | return ascii_mm[i] + ascii_ii[i]; |
| 12257 | } |
| 12258 | short int ebcdic_ii[] = |
| 12259 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 12260 | short int ebcdic_mm[] = |
| 12261 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 12262 | int use_ebcdic (int i) { |
| 12263 | return ebcdic_mm[i] + ebcdic_ii[i]; |
| 12264 | } |
| 12265 | extern int foo; |
| 12266 | |
| 12267 | int |
| 12268 | main () |
| 12269 | { |
| 12270 | return use_ascii (foo) == use_ebcdic (foo); |
| 12271 | ; |
| 12272 | return 0; |
| 12273 | } |
| 12274 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12275 | if ac_fn_c_try_compile "$LINENO"; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12276 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then |
| 12277 | ac_cv_c_bigendian=yes |
| 12278 | fi |
| 12279 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 12280 | if test "$ac_cv_c_bigendian" = unknown; then |
| 12281 | ac_cv_c_bigendian=no |
| 12282 | else |
| 12283 | # finding both strings is unlikely to happen, but who knows? |
| 12284 | ac_cv_c_bigendian=unknown |
| 12285 | fi |
| 12286 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12287 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12288 | 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] | 12289 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12290 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12291 | /* end confdefs.h. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12292 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12293 | int |
| 12294 | main () |
| 12295 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12296 | |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12297 | /* Are we little or big endian? From Harbison&Steele. */ |
| 12298 | union |
| 12299 | { |
| 12300 | long int l; |
| 12301 | char c[sizeof (long int)]; |
| 12302 | } u; |
| 12303 | u.l = 1; |
| 12304 | return u.c[sizeof (long int) - 1] == 1; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12305 | |
| 12306 | ; |
| 12307 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12308 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12309 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12310 | if ac_fn_c_try_run "$LINENO"; then : |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12311 | ac_cv_c_bigendian=no |
| 12312 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12313 | ac_cv_c_bigendian=yes |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12314 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12315 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 12316 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12317 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12318 | |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12319 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12320 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12322 | $as_echo "$ac_cv_c_bigendian" >&6; } |
| 12323 | case $ac_cv_c_bigendian in #( |
| 12324 | yes) |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12325 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12326 | ;; #( |
| 12327 | no) |
| 12328 | ;; #( |
| 12329 | universal) |
| 12330 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12331 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12332 | |
| 12333 | ;; #( |
| 12334 | *) |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 12335 | as_fn_error $? "unknown endianness |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12336 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12337 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12338 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12339 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 12340 | # Check whether right shifting a negative integer extends the sign bit |
| 12341 | # or fills with zeros (like the Cray J90, according to Tim Peters). |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12342 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether right shift extends the sign bit" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12343 | $as_echo_n "checking whether right shift extends the sign bit... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 12344 | if ${ac_cv_rshift_extends_sign+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12345 | $as_echo_n "(cached) " >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 12346 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12347 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12348 | if test "$cross_compiling" = yes; then : |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 12349 | ac_cv_rshift_extends_sign=yes |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 12350 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12351 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12352 | /* end confdefs.h. */ |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 12353 | |
| 12354 | int main() |
| 12355 | { |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 12356 | exit(((-1)>>3 == -1) ? 0 : 1); |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 12357 | } |
| 12358 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12359 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12360 | if ac_fn_c_try_run "$LINENO"; then : |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 12361 | ac_cv_rshift_extends_sign=yes |
| 12362 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12363 | ac_cv_rshift_extends_sign=no |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 12364 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12365 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 12366 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 12367 | fi |
| 12368 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12369 | fi |
| 12370 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rshift_extends_sign" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12372 | $as_echo "$ac_cv_rshift_extends_sign" >&6; } |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 12373 | if test "$ac_cv_rshift_extends_sign" = no |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 12374 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12375 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12376 | $as_echo "#define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1" >>confdefs.h |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 12377 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 12378 | fi |
| 12379 | |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 12380 | # check for getc_unlocked and related locking functions |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12381 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getc_unlocked() and friends" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12382 | $as_echo_n "checking for getc_unlocked() and friends... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 12383 | if ${ac_cv_have_getc_unlocked+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12384 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 12385 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12386 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12387 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12388 | /* end confdefs.h. */ |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 12389 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12390 | int |
| 12391 | main () |
| 12392 | { |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 12393 | |
| 12394 | FILE *f = fopen("/dev/null", "r"); |
| 12395 | flockfile(f); |
| 12396 | getc_unlocked(f); |
| 12397 | funlockfile(f); |
| 12398 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12399 | ; |
| 12400 | return 0; |
| 12401 | } |
| 12402 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12403 | if ac_fn_c_try_link "$LINENO"; then : |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 12404 | ac_cv_have_getc_unlocked=yes |
| 12405 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12406 | ac_cv_have_getc_unlocked=no |
| 12407 | fi |
| 12408 | rm -f core conftest.err conftest.$ac_objext \ |
| 12409 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 12410 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12411 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getc_unlocked" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12413 | $as_echo "$ac_cv_have_getc_unlocked" >&6; } |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 12414 | if test "$ac_cv_have_getc_unlocked" = yes |
| 12415 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12416 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12417 | $as_echo "#define HAVE_GETC_UNLOCKED 1" >>confdefs.h |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 12418 | |
| 12419 | fi |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 12420 | |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 12421 | # check where readline lives |
Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 12422 | # save the value of LIBS so we don't actually link Python with readline |
| 12423 | LIBS_no_readline=$LIBS |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 12424 | |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 12425 | # On some systems we need to link readline to a termcap compatible |
| 12426 | # library. NOTE: Keep the precedence of listed libraries synchronised |
| 12427 | # with setup.py. |
| 12428 | py_cv_lib_readline=no |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12429 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link readline libs" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12430 | $as_echo_n "checking how to link readline libs... " >&6; } |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 12431 | for py_libtermcap in "" ncursesw ncurses curses termcap; do |
| 12432 | if test -z "$py_libtermcap"; then |
| 12433 | READLINE_LIBS="-lreadline" |
| 12434 | else |
| 12435 | READLINE_LIBS="-lreadline -l$py_libtermcap" |
| 12436 | fi |
| 12437 | LIBS="$READLINE_LIBS $LIBS_no_readline" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12438 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 12439 | /* end confdefs.h. */ |
| 12440 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12441 | /* Override any GCC internal prototype to avoid an error. |
| 12442 | Use char because int might match the return type of a GCC |
| 12443 | builtin and then its argument prototype would still apply. */ |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 12444 | #ifdef __cplusplus |
| 12445 | extern "C" |
| 12446 | #endif |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 12447 | char readline (); |
| 12448 | int |
| 12449 | main () |
| 12450 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12451 | return readline (); |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 12452 | ; |
| 12453 | return 0; |
| 12454 | } |
| 12455 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12456 | if ac_fn_c_try_link "$LINENO"; then : |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 12457 | py_cv_lib_readline=yes |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 12458 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12459 | rm -f core conftest.err conftest.$ac_objext \ |
| 12460 | conftest$ac_exeext conftest.$ac_ext |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 12461 | if test $py_cv_lib_readline = yes; then |
| 12462 | break |
| 12463 | fi |
| 12464 | done |
| 12465 | # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts |
| 12466 | #AC_SUBST([READLINE_LIBS]) |
Gregory P. Smith | 3856c37 | 2008-09-07 19:24:00 +0000 | [diff] [blame] | 12467 | if test $py_cv_lib_readline = no; then |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12469 | $as_echo "none" >&6; } |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 12470 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE_LIBS" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12472 | $as_echo "$READLINE_LIBS" >&6; } |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 12473 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12474 | $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 12475 | |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 12476 | fi |
| 12477 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12478 | # check for readline 2.1 |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12479 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_callback_handler_install in -lreadline" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12480 | $as_echo_n "checking for rl_callback_handler_install in -lreadline... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 12481 | if ${ac_cv_lib_readline_rl_callback_handler_install+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12482 | $as_echo_n "(cached) " >&6 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12483 | else |
| 12484 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 12485 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12486 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12487 | /* end confdefs.h. */ |
| 12488 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12489 | /* Override any GCC internal prototype to avoid an error. |
| 12490 | Use char because int might match the return type of a GCC |
| 12491 | builtin and then its argument prototype would still apply. */ |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12492 | #ifdef __cplusplus |
| 12493 | extern "C" |
| 12494 | #endif |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12495 | char rl_callback_handler_install (); |
| 12496 | int |
| 12497 | main () |
| 12498 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12499 | return rl_callback_handler_install (); |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12500 | ; |
| 12501 | return 0; |
| 12502 | } |
| 12503 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12504 | if ac_fn_c_try_link "$LINENO"; then : |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12505 | ac_cv_lib_readline_rl_callback_handler_install=yes |
| 12506 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12507 | ac_cv_lib_readline_rl_callback_handler_install=no |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12508 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12509 | rm -f core conftest.err conftest.$ac_objext \ |
| 12510 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12511 | LIBS=$ac_check_lib_save_LIBS |
| 12512 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12514 | $as_echo "$ac_cv_lib_readline_rl_callback_handler_install" >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 12515 | 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] | 12516 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12517 | $as_echo "#define HAVE_RL_CALLBACK 1" >>confdefs.h |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12518 | |
| 12519 | fi |
| 12520 | |
| 12521 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 12522 | # check for readline 2.2 |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12523 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12524 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 12525 | #include <readline/readline.h> |
| 12526 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12527 | if ac_fn_c_try_cpp "$LINENO"; then : |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 12528 | have_readline=yes |
| 12529 | else |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 12530 | have_readline=no |
| 12531 | fi |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 12532 | rm -f conftest.err conftest.i conftest.$ac_ext |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 12533 | if test $have_readline = yes |
| 12534 | then |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12535 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12536 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 12537 | #include <readline/readline.h> |
| 12538 | |
| 12539 | _ACEOF |
| 12540 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12541 | $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] | 12542 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12543 | $as_echo "#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1" >>confdefs.h |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 12544 | |
| 12545 | fi |
Jesus Cea | 0f752ee | 2010-04-28 12:03:06 +0000 | [diff] [blame] | 12546 | rm -f conftest* |
Antoine Pitrou | 3727600 | 2009-10-26 19:32:51 +0000 | [diff] [blame] | 12547 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12548 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Antoine Pitrou | 3727600 | 2009-10-26 19:32:51 +0000 | [diff] [blame] | 12549 | /* end confdefs.h. */ |
| 12550 | #include <readline/readline.h> |
| 12551 | |
| 12552 | _ACEOF |
| 12553 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12554 | $EGREP "extern int rl_completion_suppress_append;" >/dev/null 2>&1; then : |
Antoine Pitrou | 3727600 | 2009-10-26 19:32:51 +0000 | [diff] [blame] | 12555 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12556 | $as_echo "#define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1" >>confdefs.h |
Antoine Pitrou | 3727600 | 2009-10-26 19:32:51 +0000 | [diff] [blame] | 12557 | |
| 12558 | fi |
Jesus Cea | 0f752ee | 2010-04-28 12:03:06 +0000 | [diff] [blame] | 12559 | rm -f conftest* |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 12560 | |
| 12561 | fi |
| 12562 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 12563 | # check for readline 4.0 |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12564 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_pre_input_hook in -lreadline" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12565 | $as_echo_n "checking for rl_pre_input_hook in -lreadline... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 12566 | if ${ac_cv_lib_readline_rl_pre_input_hook+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12567 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 12568 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12569 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 12570 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12571 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12572 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12573 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12574 | /* Override any GCC internal prototype to avoid an error. |
| 12575 | Use char because int might match the return type of a GCC |
| 12576 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12577 | #ifdef __cplusplus |
| 12578 | extern "C" |
| 12579 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12580 | char rl_pre_input_hook (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12581 | int |
| 12582 | main () |
| 12583 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12584 | return rl_pre_input_hook (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12585 | ; |
| 12586 | return 0; |
| 12587 | } |
| 12588 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12589 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12590 | ac_cv_lib_readline_rl_pre_input_hook=yes |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 12591 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12592 | ac_cv_lib_readline_rl_pre_input_hook=no |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 12593 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12594 | rm -f core conftest.err conftest.$ac_objext \ |
| 12595 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12596 | LIBS=$ac_check_lib_save_LIBS |
| 12597 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12599 | $as_echo "$ac_cv_lib_readline_rl_pre_input_hook" >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 12600 | 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] | 12601 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12602 | $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] | 12603 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 12604 | fi |
| 12605 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12606 | |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 12607 | # also in 4.0 |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12608 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_display_matches_hook in -lreadline" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12609 | $as_echo_n "checking for rl_completion_display_matches_hook in -lreadline... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 12610 | if ${ac_cv_lib_readline_rl_completion_display_matches_hook+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12611 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 12612 | else |
| 12613 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 12614 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12615 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 12616 | /* end confdefs.h. */ |
| 12617 | |
| 12618 | /* Override any GCC internal prototype to avoid an error. |
| 12619 | Use char because int might match the return type of a GCC |
| 12620 | builtin and then its argument prototype would still apply. */ |
| 12621 | #ifdef __cplusplus |
| 12622 | extern "C" |
| 12623 | #endif |
| 12624 | char rl_completion_display_matches_hook (); |
| 12625 | int |
| 12626 | main () |
| 12627 | { |
| 12628 | return rl_completion_display_matches_hook (); |
| 12629 | ; |
| 12630 | return 0; |
| 12631 | } |
| 12632 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12633 | if ac_fn_c_try_link "$LINENO"; then : |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 12634 | ac_cv_lib_readline_rl_completion_display_matches_hook=yes |
| 12635 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12636 | ac_cv_lib_readline_rl_completion_display_matches_hook=no |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 12637 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12638 | rm -f core conftest.err conftest.$ac_objext \ |
| 12639 | conftest$ac_exeext conftest.$ac_ext |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 12640 | LIBS=$ac_check_lib_save_LIBS |
| 12641 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12643 | $as_echo "$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 12644 | 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] | 12645 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12646 | $as_echo "#define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1" >>confdefs.h |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 12647 | |
| 12648 | fi |
| 12649 | |
| 12650 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 12651 | # check for readline 4.2 |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12652 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_matches in -lreadline" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12653 | $as_echo_n "checking for rl_completion_matches in -lreadline... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 12654 | if ${ac_cv_lib_readline_rl_completion_matches+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12655 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 12656 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12657 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 12658 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12659 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12660 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12661 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12662 | /* Override any GCC internal prototype to avoid an error. |
| 12663 | Use char because int might match the return type of a GCC |
| 12664 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12665 | #ifdef __cplusplus |
| 12666 | extern "C" |
| 12667 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12668 | char rl_completion_matches (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12669 | int |
| 12670 | main () |
| 12671 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12672 | return rl_completion_matches (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12673 | ; |
| 12674 | return 0; |
| 12675 | } |
| 12676 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12677 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12678 | ac_cv_lib_readline_rl_completion_matches=yes |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 12679 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12680 | ac_cv_lib_readline_rl_completion_matches=no |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 12681 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12682 | rm -f core conftest.err conftest.$ac_objext \ |
| 12683 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12684 | LIBS=$ac_check_lib_save_LIBS |
| 12685 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_matches" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12687 | $as_echo "$ac_cv_lib_readline_rl_completion_matches" >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 12688 | 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] | 12689 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12690 | $as_echo "#define HAVE_RL_COMPLETION_MATCHES 1" >>confdefs.h |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 12691 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 12692 | fi |
| 12693 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 12694 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12695 | # also in readline 4.2 |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12696 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12697 | /* end confdefs.h. */ |
| 12698 | #include <readline/readline.h> |
| 12699 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12700 | if ac_fn_c_try_cpp "$LINENO"; then : |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12701 | have_readline=yes |
| 12702 | else |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12703 | have_readline=no |
| 12704 | fi |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 12705 | rm -f conftest.err conftest.i conftest.$ac_ext |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12706 | if test $have_readline = yes |
| 12707 | then |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12708 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12709 | /* end confdefs.h. */ |
| 12710 | #include <readline/readline.h> |
| 12711 | |
| 12712 | _ACEOF |
| 12713 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12714 | $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then : |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12715 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12716 | $as_echo "#define HAVE_RL_CATCH_SIGNAL 1" >>confdefs.h |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12717 | |
| 12718 | fi |
Jesus Cea | 0f752ee | 2010-04-28 12:03:06 +0000 | [diff] [blame] | 12719 | rm -f conftest* |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12720 | |
| 12721 | fi |
| 12722 | |
Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 12723 | # End of readline checks: restore LIBS |
| 12724 | LIBS=$LIBS_no_readline |
| 12725 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12726 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken nice()" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12727 | $as_echo_n "checking for broken nice()... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 12728 | if ${ac_cv_broken_nice+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12729 | $as_echo_n "(cached) " >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12730 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12731 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12732 | if test "$cross_compiling" = yes; then : |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 12733 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 12734 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12735 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12736 | /* end confdefs.h. */ |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 12737 | |
| 12738 | int main() |
| 12739 | { |
| 12740 | int val1 = nice(1); |
| 12741 | if (val1 != -1 && val1 == nice(2)) |
| 12742 | exit(0); |
| 12743 | exit(1); |
| 12744 | } |
| 12745 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12746 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12747 | if ac_fn_c_try_run "$LINENO"; then : |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 12748 | ac_cv_broken_nice=yes |
| 12749 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12750 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 12751 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12752 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 12753 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 12754 | fi |
| 12755 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12756 | fi |
| 12757 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_nice" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12759 | $as_echo "$ac_cv_broken_nice" >&6; } |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 12760 | if test "$ac_cv_broken_nice" = yes |
| 12761 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12762 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12763 | $as_echo "#define HAVE_BROKEN_NICE 1" >>confdefs.h |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 12764 | |
| 12765 | fi |
| 12766 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12767 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken poll()" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12768 | $as_echo_n "checking for broken poll()... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12769 | if test "$cross_compiling" = yes; then : |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 12770 | ac_cv_broken_poll=no |
| 12771 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12772 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 12773 | /* end confdefs.h. */ |
| 12774 | |
| 12775 | #include <poll.h> |
| 12776 | |
| 12777 | int main (void) |
| 12778 | { |
| 12779 | struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 }; |
| 12780 | |
| 12781 | close (42); |
| 12782 | |
| 12783 | int poll_test = poll (&poll_struct, 1, 0); |
| 12784 | |
| 12785 | if (poll_test < 0) |
| 12786 | { |
| 12787 | exit(0); |
| 12788 | } |
| 12789 | else if (poll_test == 0 && poll_struct.revents != POLLNVAL) |
| 12790 | { |
| 12791 | exit(0); |
| 12792 | } |
| 12793 | else |
| 12794 | { |
| 12795 | exit(1); |
| 12796 | } |
| 12797 | } |
| 12798 | |
| 12799 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12800 | if ac_fn_c_try_run "$LINENO"; then : |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 12801 | ac_cv_broken_poll=yes |
| 12802 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12803 | ac_cv_broken_poll=no |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 12804 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12805 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 12806 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 12807 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12808 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_poll" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12810 | $as_echo "$ac_cv_broken_poll" >&6; } |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 12811 | if test "$ac_cv_broken_poll" = yes |
| 12812 | then |
| 12813 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12814 | $as_echo "#define HAVE_BROKEN_POLL 1" >>confdefs.h |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 12815 | |
| 12816 | fi |
| 12817 | |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 12818 | # 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] | 12819 | # (which is not required by ISO C or UNIX spec) and/or if we support |
| 12820 | # tzname[] |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12821 | 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] | 12822 | #include <$ac_cv_struct_tm> |
| 12823 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12824 | " |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 12825 | if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then : |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 12826 | |
| 12827 | cat >>confdefs.h <<_ACEOF |
| 12828 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 12829 | _ACEOF |
| 12830 | |
| 12831 | |
| 12832 | fi |
| 12833 | |
| 12834 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 12835 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12836 | $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 12837 | |
| 12838 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12839 | ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> |
| 12840 | " |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 12841 | if test "x$ac_cv_have_decl_tzname" = xyes; then : |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12842 | ac_have_decl=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12843 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12844 | ac_have_decl=0 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12845 | fi |
| 12846 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12847 | cat >>confdefs.h <<_ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12848 | #define HAVE_DECL_TZNAME $ac_have_decl |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12849 | _ACEOF |
| 12850 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12851 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12852 | $as_echo_n "checking for tzname... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 12853 | if ${ac_cv_var_tzname+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12854 | $as_echo_n "(cached) " >&6 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 12855 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12856 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 12857 | /* end confdefs.h. */ |
| 12858 | #include <time.h> |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12859 | #if !HAVE_DECL_TZNAME |
| 12860 | extern char *tzname[]; |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 12861 | #endif |
| 12862 | |
| 12863 | int |
| 12864 | main () |
| 12865 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12866 | return tzname[0][0]; |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 12867 | ; |
| 12868 | return 0; |
| 12869 | } |
| 12870 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12871 | if ac_fn_c_try_link "$LINENO"; then : |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 12872 | ac_cv_var_tzname=yes |
| 12873 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12874 | ac_cv_var_tzname=no |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 12875 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12876 | rm -f core conftest.err conftest.$ac_objext \ |
| 12877 | conftest$ac_exeext conftest.$ac_ext |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 12878 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12880 | $as_echo "$ac_cv_var_tzname" >&6; } |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 12881 | if test $ac_cv_var_tzname = yes; then |
| 12882 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12883 | $as_echo "#define HAVE_TZNAME 1" >>confdefs.h |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 12884 | |
| 12885 | fi |
| 12886 | fi |
| 12887 | |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 12888 | |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 12889 | # check tzset(3) exists and works like we expect it to |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12890 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working tzset()" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12891 | $as_echo_n "checking for working tzset()... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 12892 | if ${ac_cv_working_tzset+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12893 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 12894 | else |
| 12895 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12896 | if test "$cross_compiling" = yes; then : |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 12897 | ac_cv_working_tzset=no |
| 12898 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12899 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12900 | /* end confdefs.h. */ |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 12901 | |
| 12902 | #include <stdlib.h> |
| 12903 | #include <time.h> |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 12904 | #include <string.h> |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 12905 | |
| 12906 | #if HAVE_TZNAME |
| 12907 | extern char *tzname[]; |
| 12908 | #endif |
| 12909 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 12910 | int main() |
| 12911 | { |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 12912 | /* Note that we need to ensure that not only does tzset(3) |
| 12913 | do 'something' with localtime, but it works as documented |
| 12914 | 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] | 12915 | This includes making sure that tzname is set properly if |
| 12916 | tm->tm_zone does not exist since it is the alternative way |
| 12917 | of getting timezone info. |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 12918 | |
| 12919 | Red Hat 6.2 doesn't understand the southern hemisphere |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 12920 | after New Year's Day. |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 12921 | */ |
| 12922 | |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 12923 | time_t groundhogday = 1044144000; /* GMT-based */ |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 12924 | time_t midyear = groundhogday + (365 * 24 * 3600 / 2); |
| 12925 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 12926 | putenv("TZ=UTC+0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 12927 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 12928 | if (localtime(&groundhogday)->tm_hour != 0) |
| 12929 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 12930 | #if HAVE_TZNAME |
| 12931 | /* For UTC, tzname[1] is sometimes "", sometimes " " */ |
| 12932 | if (strcmp(tzname[0], "UTC") || |
| 12933 | (tzname[1][0] != 0 && tzname[1][0] != ' ')) |
| 12934 | exit(1); |
| 12935 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 12936 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 12937 | putenv("TZ=EST+5EDT,M4.1.0,M10.5.0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 12938 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 12939 | if (localtime(&groundhogday)->tm_hour != 19) |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 12940 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 12941 | #if HAVE_TZNAME |
| 12942 | if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT")) |
| 12943 | exit(1); |
| 12944 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 12945 | |
| 12946 | putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0"); |
| 12947 | tzset(); |
| 12948 | if (localtime(&groundhogday)->tm_hour != 11) |
| 12949 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 12950 | #if HAVE_TZNAME |
| 12951 | if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT")) |
| 12952 | exit(1); |
| 12953 | #endif |
| 12954 | |
| 12955 | #if HAVE_STRUCT_TM_TM_ZONE |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 12956 | if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT")) |
| 12957 | exit(1); |
| 12958 | if (strcmp(localtime(&midyear)->tm_zone, "AEST")) |
| 12959 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 12960 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 12961 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 12962 | exit(0); |
| 12963 | } |
| 12964 | |
| 12965 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12966 | if ac_fn_c_try_run "$LINENO"; then : |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 12967 | ac_cv_working_tzset=yes |
| 12968 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12969 | ac_cv_working_tzset=no |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 12970 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12971 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 12972 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 12973 | fi |
| 12974 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12975 | fi |
| 12976 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_tzset" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12978 | $as_echo "$ac_cv_working_tzset" >&6; } |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 12979 | if test "$ac_cv_working_tzset" = yes |
| 12980 | then |
| 12981 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12982 | $as_echo "#define HAVE_WORKING_TZSET 1" >>confdefs.h |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 12983 | |
| 12984 | fi |
| 12985 | |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 12986 | # Look for subsecond timestamps in struct stat |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12987 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec in struct stat" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12988 | $as_echo_n "checking for tv_nsec in struct stat... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 12989 | if ${ac_cv_stat_tv_nsec+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12990 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 12991 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12992 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12993 | /* end confdefs.h. */ |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 12994 | #include <sys/stat.h> |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 12995 | int |
| 12996 | main () |
| 12997 | { |
| 12998 | |
| 12999 | struct stat st; |
| 13000 | st.st_mtim.tv_nsec = 1; |
| 13001 | |
| 13002 | ; |
| 13003 | return 0; |
| 13004 | } |
| 13005 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13006 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | a32c994 | 2002-09-09 16:17:47 +0000 | [diff] [blame] | 13007 | ac_cv_stat_tv_nsec=yes |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 13008 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13009 | ac_cv_stat_tv_nsec=no |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 13010 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13011 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13012 | fi |
| 13013 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13015 | $as_echo "$ac_cv_stat_tv_nsec" >&6; } |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 13016 | if test "$ac_cv_stat_tv_nsec" = yes |
| 13017 | then |
| 13018 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13019 | $as_echo "#define HAVE_STAT_TV_NSEC 1" >>confdefs.h |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 13020 | |
| 13021 | fi |
| 13022 | |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 13023 | # Look for BSD style subsecond timestamps in struct stat |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13024 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec2 in struct stat" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13025 | $as_echo_n "checking for tv_nsec2 in struct stat... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 13026 | if ${ac_cv_stat_tv_nsec2+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13027 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 13028 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13029 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 13030 | /* end confdefs.h. */ |
| 13031 | #include <sys/stat.h> |
| 13032 | int |
| 13033 | main () |
| 13034 | { |
| 13035 | |
| 13036 | struct stat st; |
| 13037 | st.st_mtimespec.tv_nsec = 1; |
| 13038 | |
| 13039 | ; |
| 13040 | return 0; |
| 13041 | } |
| 13042 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13043 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 13044 | ac_cv_stat_tv_nsec2=yes |
| 13045 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13046 | ac_cv_stat_tv_nsec2=no |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 13047 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13048 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13049 | fi |
| 13050 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec2" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13052 | $as_echo "$ac_cv_stat_tv_nsec2" >&6; } |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 13053 | if test "$ac_cv_stat_tv_nsec2" = yes |
| 13054 | then |
| 13055 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13056 | $as_echo "#define HAVE_STAT_TV_NSEC2 1" >>confdefs.h |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 13057 | |
| 13058 | fi |
| 13059 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13060 | # On HP/UX 11.0, mvwdelch is a block with a return statement |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13061 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mvwdelch is an expression" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13062 | $as_echo_n "checking whether mvwdelch is an expression... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 13063 | if ${ac_cv_mvwdelch_is_expression+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13064 | $as_echo_n "(cached) " >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13065 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13066 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13067 | /* end confdefs.h. */ |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13068 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13069 | int |
| 13070 | main () |
| 13071 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13072 | |
| 13073 | int rtn; |
| 13074 | rtn = mvwdelch(0,0,0); |
| 13075 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13076 | ; |
| 13077 | return 0; |
| 13078 | } |
| 13079 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13080 | if ac_fn_c_try_compile "$LINENO"; then : |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13081 | ac_cv_mvwdelch_is_expression=yes |
| 13082 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13083 | ac_cv_mvwdelch_is_expression=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13084 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13085 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13086 | fi |
| 13087 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mvwdelch_is_expression" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13089 | $as_echo "$ac_cv_mvwdelch_is_expression" >&6; } |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13090 | |
| 13091 | if test "$ac_cv_mvwdelch_is_expression" = yes |
| 13092 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13093 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13094 | $as_echo "#define MVWDELCH_IS_EXPRESSION 1" >>confdefs.h |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13095 | |
| 13096 | fi |
| 13097 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13098 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether WINDOW has _flags" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13099 | $as_echo_n "checking whether WINDOW has _flags... " >&6; } |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 13100 | if ${ac_cv_window_has_flags+:} false; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13101 | $as_echo_n "(cached) " >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13102 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13103 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13104 | /* end confdefs.h. */ |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13105 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13106 | int |
| 13107 | main () |
| 13108 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13109 | |
| 13110 | WINDOW *w; |
| 13111 | w->_flags = 0; |
| 13112 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13113 | ; |
| 13114 | return 0; |
| 13115 | } |
| 13116 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13117 | if ac_fn_c_try_compile "$LINENO"; then : |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13118 | ac_cv_window_has_flags=yes |
| 13119 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13120 | ac_cv_window_has_flags=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13121 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13122 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13123 | fi |
| 13124 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_window_has_flags" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13126 | $as_echo "$ac_cv_window_has_flags" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13127 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13128 | |
| 13129 | if test "$ac_cv_window_has_flags" = yes |
| 13130 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13131 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13132 | $as_echo "#define WINDOW_HAS_FLAGS 1" >>confdefs.h |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13133 | |
| 13134 | fi |
| 13135 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13136 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_term_resized" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13137 | $as_echo_n "checking for is_term_resized... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13138 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13139 | /* end confdefs.h. */ |
| 13140 | #include <curses.h> |
| 13141 | int |
| 13142 | main () |
| 13143 | { |
| 13144 | void *x=is_term_resized |
| 13145 | ; |
| 13146 | return 0; |
| 13147 | } |
| 13148 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13149 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 13150 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13151 | $as_echo "#define HAVE_CURSES_IS_TERM_RESIZED 1" >>confdefs.h |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13152 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13154 | $as_echo "yes" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13155 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13157 | $as_echo "no" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13158 | |
| 13159 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13160 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13161 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13162 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resize_term" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13163 | $as_echo_n "checking for resize_term... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13164 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13165 | /* end confdefs.h. */ |
| 13166 | #include <curses.h> |
| 13167 | int |
| 13168 | main () |
| 13169 | { |
| 13170 | void *x=resize_term |
| 13171 | ; |
| 13172 | return 0; |
| 13173 | } |
| 13174 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13175 | if ac_fn_c_try_compile "$LINENO"; then : |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13176 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13177 | $as_echo "#define HAVE_CURSES_RESIZE_TERM 1" >>confdefs.h |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13178 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13180 | $as_echo "yes" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13181 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13183 | $as_echo "no" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13184 | |
| 13185 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13186 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13187 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13188 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resizeterm" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13189 | $as_echo_n "checking for resizeterm... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13190 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13191 | /* end confdefs.h. */ |
| 13192 | #include <curses.h> |
| 13193 | int |
| 13194 | main () |
| 13195 | { |
| 13196 | void *x=resizeterm |
| 13197 | ; |
| 13198 | return 0; |
| 13199 | } |
| 13200 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13201 | if ac_fn_c_try_compile "$LINENO"; then : |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13202 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13203 | $as_echo "#define HAVE_CURSES_RESIZETERM 1" >>confdefs.h |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13204 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13206 | $as_echo "yes" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13207 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13208 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13209 | $as_echo "no" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13210 | |
| 13211 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13212 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13213 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13214 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13215 | $as_echo_n "checking for /dev/ptmx... " >&6; } |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 13216 | |
| 13217 | if test -r /dev/ptmx |
| 13218 | then |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13220 | $as_echo "yes" >&6; } |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 13221 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13222 | $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 13223 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 13224 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13226 | $as_echo "no" >&6; } |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 13227 | fi |
| 13228 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13229 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13230 | $as_echo_n "checking for /dev/ptc... " >&6; } |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 13231 | |
| 13232 | if test -r /dev/ptc |
| 13233 | then |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13235 | $as_echo "yes" >&6; } |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 13236 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13237 | $as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 13238 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 13239 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13241 | $as_echo "no" >&6; } |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 13242 | fi |
| 13243 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13244 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for %zd printf() format support" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13245 | $as_echo_n "checking for %zd printf() format support... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13246 | if test "$cross_compiling" = yes; then : |
| 13247 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13248 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 13249 | as_fn_error $? "cannot run test program while cross compiling |
| 13250 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13251 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13252 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13253 | /* end confdefs.h. */ |
| 13254 | #include <stdio.h> |
| 13255 | #include <stddef.h> |
| 13256 | #include <string.h> |
| 13257 | |
Christian Heimes | 2c18161 | 2007-12-17 20:04:13 +0000 | [diff] [blame] | 13258 | #ifdef HAVE_SYS_TYPES_H |
| 13259 | #include <sys/types.h> |
| 13260 | #endif |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 13261 | |
| 13262 | #ifdef HAVE_SSIZE_T |
| 13263 | typedef ssize_t Py_ssize_t; |
| 13264 | #elif SIZEOF_VOID_P == SIZEOF_LONG |
| 13265 | typedef long Py_ssize_t; |
| 13266 | #else |
| 13267 | typedef int Py_ssize_t; |
| 13268 | #endif |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13269 | |
Christian Heimes | 2c18161 | 2007-12-17 20:04:13 +0000 | [diff] [blame] | 13270 | int main() |
| 13271 | { |
| 13272 | char buffer[256]; |
| 13273 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13274 | if(sprintf(buffer, "%zd", (size_t)123) < 0) |
| 13275 | return 1; |
| 13276 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 13277 | if (strcmp(buffer, "123")) |
| 13278 | return 1; |
| 13279 | |
| 13280 | if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0) |
| 13281 | return 1; |
| 13282 | |
| 13283 | if (strcmp(buffer, "-123")) |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13284 | return 1; |
| 13285 | |
| 13286 | return 0; |
| 13287 | } |
| 13288 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13289 | if ac_fn_c_try_run "$LINENO"; then : |
| 13290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13291 | $as_echo "yes" >&6; } |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13292 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13293 | $as_echo "#define PY_FORMAT_SIZE_T \"z\"" >>confdefs.h |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13294 | |
| 13295 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13297 | $as_echo "no" >&6; } |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13298 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +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 | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13301 | fi |
| 13302 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13303 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13304 | ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13305 | #ifdef HAVE_SYS_TYPES_H |
| 13306 | #include <sys/types.h> |
| 13307 | #endif |
| 13308 | #ifdef HAVE_SYS_SOCKET_H |
| 13309 | #include <sys/socket.h> |
| 13310 | #endif |
| 13311 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13312 | " |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 13313 | if test "x$ac_cv_type_socklen_t" = xyes; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13314 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13315 | else |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 13316 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13317 | $as_echo "#define socklen_t int" >>confdefs.h |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 13318 | |
| 13319 | fi |
| 13320 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13321 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13322 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken mbstowcs" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13323 | $as_echo_n "checking for broken mbstowcs... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13324 | if test "$cross_compiling" = yes; then : |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 13325 | ac_cv_broken_mbstowcs=no |
| 13326 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13327 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 13328 | /* end confdefs.h. */ |
| 13329 | |
| 13330 | #include<stdlib.h> |
| 13331 | int main() { |
| 13332 | size_t len = -1; |
| 13333 | const char *str = "text"; |
| 13334 | len = mbstowcs(NULL, str, 0); |
| 13335 | return (len != 4); |
| 13336 | } |
| 13337 | |
| 13338 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13339 | if ac_fn_c_try_run "$LINENO"; then : |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 13340 | ac_cv_broken_mbstowcs=no |
| 13341 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13342 | ac_cv_broken_mbstowcs=yes |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 13343 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13344 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 13345 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 13346 | fi |
| 13347 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_mbstowcs" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13349 | $as_echo "$ac_cv_broken_mbstowcs" >&6; } |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 13350 | if test "$ac_cv_broken_mbstowcs" = yes |
| 13351 | then |
| 13352 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13353 | $as_echo "#define HAVE_BROKEN_MBSTOWCS 1" >>confdefs.h |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 13354 | |
| 13355 | fi |
| 13356 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13357 | # Check for --with-computed-gotos |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13358 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-computed-gotos" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13359 | $as_echo_n "checking for --with-computed-gotos... " >&6; } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13360 | |
| 13361 | # Check whether --with-computed-gotos was given. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13362 | if test "${with_computed_gotos+set}" = set; then : |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13363 | withval=$with_computed_gotos; |
| 13364 | if test "$withval" != no |
| 13365 | then |
| 13366 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13367 | $as_echo "#define USE_COMPUTED_GOTOS 1" >>confdefs.h |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13368 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13369 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13370 | $as_echo "yes" >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13371 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13372 | $as_echo "no" >&6; } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13373 | fi |
| 13374 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13376 | $as_echo "no" >&6; } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13377 | fi |
| 13378 | |
| 13379 | |
Ronald Oussoren | 1b2cad0 | 2009-11-19 17:30:05 +0000 | [diff] [blame] | 13380 | if test $ac_sys_system = Darwin |
| 13381 | then |
| 13382 | LIBS="$LIBS -framework CoreFoundation" |
| 13383 | fi |
| 13384 | |
| 13385 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13386 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13387 | |
| 13388 | |
Martin v. Löwis | 06f15bb | 2001-12-02 13:02:32 +0000 | [diff] [blame] | 13389 | for h in `(cd $srcdir;echo Python/thread_*.h)` |
| 13390 | do |
| 13391 | THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" |
| 13392 | done |
| 13393 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13394 | |
Neal Norwitz | d24499d | 2005-12-18 21:36:39 +0000 | [diff] [blame] | 13395 | SRCDIRS="Parser Grammar Objects Python Modules Mac" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13396 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build directories" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13397 | $as_echo_n "checking for build directories... " >&6; } |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 13398 | for dir in $SRCDIRS; do |
| 13399 | if test ! -d $dir; then |
| 13400 | mkdir $dir |
Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 13401 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 13402 | done |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13404 | $as_echo "done" >&6; } |
Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 13405 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13406 | # generate output files |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 13407 | 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] | 13408 | |
Antoine Pitrou | 80f45a0 | 2010-09-10 19:55:19 +0000 | [diff] [blame] | 13409 | ac_config_files="$ac_config_files Modules/ld_so_aix" |
| 13410 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13411 | cat >confcache <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13412 | # This file is a shell script that caches the results of configure |
| 13413 | # 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] | 13414 | # scripts and configure runs, see configure's option --config-cache. |
| 13415 | # It is not useful on other systems. If it contains results you don't |
| 13416 | # want to keep, you may remove or edit it. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13417 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13418 | # config.status only pays attention to the cache file if you give it |
| 13419 | # the --recheck option to rerun configure. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13420 | # |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13421 | # `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] | 13422 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 13423 | # following values. |
| 13424 | |
| 13425 | _ACEOF |
| 13426 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 13427 | # The following way of writing the cache mishandles newlines in values, |
| 13428 | # but we know of no workaround that is simple, portable, and efficient. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13429 | # So, we kill variables containing newlines. |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13430 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 13431 | # 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] | 13432 | ( |
| 13433 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 13434 | eval ac_val=\$$ac_var |
| 13435 | case $ac_val in #( |
| 13436 | *${as_nl}*) |
| 13437 | case $ac_var in #( |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13438 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13439 | $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] | 13440 | esac |
| 13441 | case $ac_var in #( |
| 13442 | _ | IFS | as_nl) ;; #( |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13443 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13444 | *) { eval $ac_var=; unset $ac_var;} ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13445 | esac ;; |
| 13446 | esac |
| 13447 | done |
| 13448 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13449 | (set) 2>&1 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13450 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 13451 | *${as_nl}ac_space=\ *) |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13452 | # `set' does not quote correctly, so add quotes: double-quote |
| 13453 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13454 | sed -n \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13455 | "s/'/'\\\\''/g; |
| 13456 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13457 | ;; #( |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13458 | *) |
| 13459 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13460 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13461 | ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13462 | esac | |
| 13463 | sort |
| 13464 | ) | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13465 | sed ' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13466 | /^ac_cv_env_/b end |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13467 | t clear |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13468 | :clear |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13469 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 13470 | t end |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13471 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 13472 | :end' >>confcache |
| 13473 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 13474 | if test -w "$cache_file"; then |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 13475 | if test "x$cache_file" != "x/dev/null"; then |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13476 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13477 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 13478 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
| 13479 | cat confcache >"$cache_file" |
| 13480 | else |
| 13481 | case $cache_file in #( |
| 13482 | */* | ?:*) |
| 13483 | mv -f confcache "$cache_file"$$ && |
| 13484 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
| 13485 | *) |
| 13486 | mv -f confcache "$cache_file" ;; |
| 13487 | esac |
| 13488 | fi |
| 13489 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13490 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13491 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13492 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13493 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13494 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13495 | rm -f confcache |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13496 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13497 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 13498 | # Let make expand exec_prefix. |
| 13499 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13500 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13501 | DEFS=-DHAVE_CONFIG_H |
| 13502 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13503 | ac_libobjs= |
| 13504 | ac_ltlibobjs= |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 13505 | U= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13506 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 13507 | # 1. Remove the extension, and $U if already installed. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13508 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13509 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13510 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 13511 | # will be set to the directory where LIBOBJS objects are built. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13512 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 13513 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13514 | done |
| 13515 | LIBOBJS=$ac_libobjs |
| 13516 | |
| 13517 | LTLIBOBJS=$ac_ltlibobjs |
| 13518 | |
| 13519 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13520 | |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13521 | |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 13522 | : "${CONFIG_STATUS=./config.status}" |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13523 | ac_write_fail=0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13524 | ac_clean_files_save=$ac_clean_files |
| 13525 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13526 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13527 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13528 | as_write_fail=0 |
| 13529 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13530 | #! $SHELL |
| 13531 | # Generated by $as_me. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13532 | # Run this file to recreate the current configuration. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13533 | # Compiler output produced by configure, useful for debugging |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13534 | # configure, is in config.log if it exists. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13535 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13536 | debug=false |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13537 | ac_cs_recheck=false |
| 13538 | ac_cs_silent=false |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 13539 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13540 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 13541 | export SHELL |
| 13542 | _ASEOF |
| 13543 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 13544 | ## -------------------- ## |
| 13545 | ## M4sh Initialization. ## |
| 13546 | ## -------------------- ## |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 13547 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13548 | # Be more Bourne compatible |
| 13549 | DUALCASE=1; export DUALCASE # for MKS sh |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13550 | 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] | 13551 | emulate sh |
| 13552 | NULLCMD=: |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13553 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13554 | # is contrary to our usage. Disable this feature. |
| 13555 | alias -g '${1+"$@"}'='"$@"' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13556 | setopt NO_GLOB_SUBST |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 13557 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13558 | case `(set -o) 2>/dev/null` in #( |
| 13559 | *posix*) : |
| 13560 | set -o posix ;; #( |
| 13561 | *) : |
| 13562 | ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13563 | esac |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13564 | fi |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 13565 | |
| 13566 | |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13567 | as_nl=' |
| 13568 | ' |
| 13569 | export as_nl |
| 13570 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 13571 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 13572 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 13573 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13574 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 13575 | # but without wasting forks for bash or zsh. |
| 13576 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 13577 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 13578 | as_echo='print -r --' |
| 13579 | as_echo_n='print -rn --' |
| 13580 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13581 | as_echo='printf %s\n' |
| 13582 | as_echo_n='printf %s' |
| 13583 | else |
| 13584 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 13585 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 13586 | as_echo_n='/usr/ucb/echo -n' |
| 13587 | else |
| 13588 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 13589 | as_echo_n_body='eval |
| 13590 | arg=$1; |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13591 | case $arg in #( |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13592 | *"$as_nl"*) |
| 13593 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 13594 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 13595 | esac; |
| 13596 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 13597 | ' |
| 13598 | export as_echo_n_body |
| 13599 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 13600 | fi |
| 13601 | export as_echo_body |
| 13602 | as_echo='sh -c $as_echo_body as_echo' |
| 13603 | fi |
| 13604 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13605 | # The user is always right. |
| 13606 | if test "${PATH_SEPARATOR+set}" != set; then |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13607 | PATH_SEPARATOR=: |
| 13608 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 13609 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 13610 | PATH_SEPARATOR=';' |
| 13611 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13612 | fi |
| 13613 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13614 | |
| 13615 | # IFS |
| 13616 | # We need space, tab and new line, in precisely that order. Quoting is |
| 13617 | # there to prevent editors from complaining about space-tab. |
| 13618 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 13619 | # splitting by setting IFS to empty value.) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13620 | IFS=" "" $as_nl" |
| 13621 | |
| 13622 | # Find who we are. Look in the path if we contain no directory separator. |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 13623 | as_myself= |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13624 | case $0 in #(( |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13625 | *[\\/]* ) as_myself=$0 ;; |
| 13626 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13627 | for as_dir in $PATH |
| 13628 | do |
| 13629 | IFS=$as_save_IFS |
| 13630 | test -z "$as_dir" && as_dir=. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13631 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 13632 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13633 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13634 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13635 | ;; |
| 13636 | esac |
| 13637 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 13638 | # in which case we are not to be found in the path. |
| 13639 | if test "x$as_myself" = x; then |
| 13640 | as_myself=$0 |
| 13641 | fi |
| 13642 | if test ! -f "$as_myself"; then |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13643 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13644 | exit 1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13645 | fi |
| 13646 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13647 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 13648 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 13649 | # suppresses any "Segmentation fault" message there. '((' could |
| 13650 | # trigger a bug in pdksh 5.2.14. |
| 13651 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 13652 | do eval test x\${$as_var+set} = xset \ |
| 13653 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13654 | done |
| 13655 | PS1='$ ' |
| 13656 | PS2='> ' |
| 13657 | PS4='+ ' |
| 13658 | |
| 13659 | # NLS nuisances. |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13660 | LC_ALL=C |
| 13661 | export LC_ALL |
| 13662 | LANGUAGE=C |
| 13663 | export LANGUAGE |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13664 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13665 | # CDPATH. |
| 13666 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 13667 | |
| 13668 | |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 13669 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 13670 | # ---------------------------------------- |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13671 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 13672 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 13673 | # script with STATUS, using 1 if that was 0. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13674 | as_fn_error () |
| 13675 | { |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 13676 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 13677 | if test "$4"; then |
| 13678 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 13679 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13680 | fi |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 13681 | $as_echo "$as_me: error: $2" >&2 |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13682 | as_fn_exit $as_status |
| 13683 | } # as_fn_error |
| 13684 | |
| 13685 | |
| 13686 | # as_fn_set_status STATUS |
| 13687 | # ----------------------- |
| 13688 | # Set $? to STATUS, without forking. |
| 13689 | as_fn_set_status () |
| 13690 | { |
| 13691 | return $1 |
| 13692 | } # as_fn_set_status |
| 13693 | |
| 13694 | # as_fn_exit STATUS |
| 13695 | # ----------------- |
| 13696 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 13697 | as_fn_exit () |
| 13698 | { |
| 13699 | set +e |
| 13700 | as_fn_set_status $1 |
| 13701 | exit $1 |
| 13702 | } # as_fn_exit |
| 13703 | |
| 13704 | # as_fn_unset VAR |
| 13705 | # --------------- |
| 13706 | # Portably unset VAR. |
| 13707 | as_fn_unset () |
| 13708 | { |
| 13709 | { eval $1=; unset $1;} |
| 13710 | } |
| 13711 | as_unset=as_fn_unset |
| 13712 | # as_fn_append VAR VALUE |
| 13713 | # ---------------------- |
| 13714 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 13715 | # advantage of any shell optimizations that allow amortized linear growth over |
| 13716 | # repeated appends, instead of the typical quadratic growth present in naive |
| 13717 | # implementations. |
| 13718 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 13719 | eval 'as_fn_append () |
| 13720 | { |
| 13721 | eval $1+=\$2 |
| 13722 | }' |
| 13723 | else |
| 13724 | as_fn_append () |
| 13725 | { |
| 13726 | eval $1=\$$1\$2 |
| 13727 | } |
| 13728 | fi # as_fn_append |
| 13729 | |
| 13730 | # as_fn_arith ARG... |
| 13731 | # ------------------ |
| 13732 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 13733 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 13734 | # must be portable across $(()) and expr. |
| 13735 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 13736 | eval 'as_fn_arith () |
| 13737 | { |
| 13738 | as_val=$(( $* )) |
| 13739 | }' |
| 13740 | else |
| 13741 | as_fn_arith () |
| 13742 | { |
| 13743 | as_val=`expr "$@" || test $? -eq 1` |
| 13744 | } |
| 13745 | fi # as_fn_arith |
| 13746 | |
| 13747 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13748 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 13749 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 13750 | as_expr=expr |
| 13751 | else |
| 13752 | as_expr=false |
| 13753 | fi |
| 13754 | |
| 13755 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 13756 | as_basename=basename |
| 13757 | else |
| 13758 | as_basename=false |
| 13759 | fi |
| 13760 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13761 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 13762 | as_dirname=dirname |
| 13763 | else |
| 13764 | as_dirname=false |
| 13765 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13766 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13767 | as_me=`$as_basename -- "$0" || |
| 13768 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 13769 | X"$0" : 'X\(//\)$' \| \ |
| 13770 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13771 | $as_echo X/"$0" | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13772 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 13773 | s//\1/ |
| 13774 | q |
| 13775 | } |
| 13776 | /^X\/\(\/\/\)$/{ |
| 13777 | s//\1/ |
| 13778 | q |
| 13779 | } |
| 13780 | /^X\/\(\/\).*/{ |
| 13781 | s//\1/ |
| 13782 | q |
| 13783 | } |
| 13784 | s/.*/./; q'` |
| 13785 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13786 | # Avoid depending upon Character Ranges. |
| 13787 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 13788 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 13789 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 13790 | as_cr_digits='0123456789' |
| 13791 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13792 | |
| 13793 | ECHO_C= ECHO_N= ECHO_T= |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13794 | case `echo -n x` in #((((( |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13795 | -n*) |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13796 | case `echo 'xy\c'` in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13797 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13798 | xy) ECHO_C='\c';; |
| 13799 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 13800 | ECHO_T=' ';; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13801 | esac;; |
| 13802 | *) |
| 13803 | ECHO_N='-n';; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13804 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13805 | |
| 13806 | rm -f conf$$ conf$$.exe conf$$.file |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13807 | if test -d conf$$.dir; then |
| 13808 | rm -f conf$$.dir/conf$$.file |
| 13809 | else |
| 13810 | rm -f conf$$.dir |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13811 | mkdir conf$$.dir 2>/dev/null |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13812 | fi |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13813 | if (echo >conf$$.file) 2>/dev/null; then |
| 13814 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 13815 | as_ln_s='ln -s' |
| 13816 | # ... but there are two gotchas: |
| 13817 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 13818 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 13819 | # In both cases, we have to default to `cp -p'. |
| 13820 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 13821 | as_ln_s='cp -p' |
| 13822 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 13823 | as_ln_s=ln |
| 13824 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13825 | as_ln_s='cp -p' |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13826 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13827 | else |
| 13828 | as_ln_s='cp -p' |
| 13829 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13830 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 13831 | rmdir conf$$.dir 2>/dev/null |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13832 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13833 | |
| 13834 | # as_fn_mkdir_p |
| 13835 | # ------------- |
| 13836 | # Create "$as_dir" as a directory, including parents if necessary. |
| 13837 | as_fn_mkdir_p () |
| 13838 | { |
| 13839 | |
| 13840 | case $as_dir in #( |
| 13841 | -*) as_dir=./$as_dir;; |
| 13842 | esac |
| 13843 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 13844 | as_dirs= |
| 13845 | while :; do |
| 13846 | case $as_dir in #( |
| 13847 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 13848 | *) as_qdir=$as_dir;; |
| 13849 | esac |
| 13850 | as_dirs="'$as_qdir' $as_dirs" |
| 13851 | as_dir=`$as_dirname -- "$as_dir" || |
| 13852 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 13853 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 13854 | X"$as_dir" : 'X\(//\)$' \| \ |
| 13855 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 13856 | $as_echo X"$as_dir" | |
| 13857 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 13858 | s//\1/ |
| 13859 | q |
| 13860 | } |
| 13861 | /^X\(\/\/\)[^/].*/{ |
| 13862 | s//\1/ |
| 13863 | q |
| 13864 | } |
| 13865 | /^X\(\/\/\)$/{ |
| 13866 | s//\1/ |
| 13867 | q |
| 13868 | } |
| 13869 | /^X\(\/\).*/{ |
| 13870 | s//\1/ |
| 13871 | q |
| 13872 | } |
| 13873 | s/.*/./; q'` |
| 13874 | test -d "$as_dir" && break |
| 13875 | done |
| 13876 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 13877 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13878 | |
| 13879 | |
| 13880 | } # as_fn_mkdir_p |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13881 | if mkdir -p . 2>/dev/null; then |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13882 | as_mkdir_p='mkdir -p "$as_dir"' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13883 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13884 | test -d ./-p && rmdir ./-p |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13885 | as_mkdir_p=false |
| 13886 | fi |
| 13887 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13888 | if test -x / >/dev/null 2>&1; then |
| 13889 | as_test_x='test -x' |
| 13890 | else |
| 13891 | if ls -dL / >/dev/null 2>&1; then |
| 13892 | as_ls_L_option=L |
| 13893 | else |
| 13894 | as_ls_L_option= |
| 13895 | fi |
| 13896 | as_test_x=' |
| 13897 | eval sh -c '\'' |
| 13898 | if test -d "$1"; then |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13899 | test -d "$1/."; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13900 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13901 | case $1 in #( |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13902 | -*)set "./$1";; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13903 | esac; |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13904 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13905 | ???[sx]*):;;*)false;;esac;fi |
| 13906 | '\'' sh |
| 13907 | ' |
| 13908 | fi |
| 13909 | as_executable_p=$as_test_x |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13910 | |
| 13911 | # Sed expression to map a string onto a valid CPP name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13912 | 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] | 13913 | |
| 13914 | # Sed expression to map a string onto a valid variable name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13915 | 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] | 13916 | |
| 13917 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13918 | exec 6>&1 |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13919 | ## ----------------------------------- ## |
| 13920 | ## Main body of $CONFIG_STATUS script. ## |
| 13921 | ## ----------------------------------- ## |
| 13922 | _ASEOF |
| 13923 | 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] | 13924 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13925 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 13926 | # 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] | 13927 | # report actual input values of CONFIG_FILES etc. instead of their |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13928 | # values after options handling. |
| 13929 | ac_log=" |
Christian Heimes | 70e5cab | 2008-12-03 18:18:23 +0000 | [diff] [blame] | 13930 | This file was extended by python $as_me 3.1, which was |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 13931 | generated by GNU Autoconf 2.68. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13932 | |
| 13933 | CONFIG_FILES = $CONFIG_FILES |
| 13934 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 13935 | CONFIG_LINKS = $CONFIG_LINKS |
| 13936 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 13937 | $ $0 $@ |
| 13938 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13939 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 13940 | " |
| 13941 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13942 | _ACEOF |
| 13943 | |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13944 | case $ac_config_files in *" |
| 13945 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 13946 | esac |
| 13947 | |
| 13948 | case $ac_config_headers in *" |
| 13949 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 13950 | esac |
| 13951 | |
| 13952 | |
| 13953 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13954 | # Files that config.status was made for. |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 13955 | config_files="$ac_config_files" |
| 13956 | config_headers="$ac_config_headers" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13957 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13958 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13959 | |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13960 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13961 | ac_cs_usage="\ |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13962 | \`$as_me' instantiates files and other configuration actions |
| 13963 | from templates according to the current configuration. Unless the files |
| 13964 | 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] | 13965 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13966 | Usage: $0 [OPTION]... [TAG]... |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13967 | |
| 13968 | -h, --help print this help, then exit |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13969 | -V, --version print version number and configuration settings, then exit |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13970 | --config print configuration, then exit |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13971 | -q, --quiet, --silent |
| 13972 | do not print progress messages |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13973 | -d, --debug don't remove temporary files |
| 13974 | --recheck update $as_me by reconfiguring in the same conditions |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13975 | --file=FILE[:TEMPLATE] |
| 13976 | instantiate the configuration file FILE |
| 13977 | --header=FILE[:TEMPLATE] |
| 13978 | instantiate the configuration header FILE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13979 | |
| 13980 | Configuration files: |
| 13981 | $config_files |
| 13982 | |
| 13983 | Configuration headers: |
| 13984 | $config_headers |
| 13985 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13986 | Report bugs to <http://bugs.python.org/>." |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 13987 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13988 | _ACEOF |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13989 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13990 | 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] | 13991 | ac_cs_version="\\ |
Christian Heimes | 70e5cab | 2008-12-03 18:18:23 +0000 | [diff] [blame] | 13992 | python config.status 3.1 |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 13993 | configured by $0, generated by GNU Autoconf 2.68, |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13994 | with options \\"\$ac_cs_config\\" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13995 | |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 13996 | Copyright (C) 2010 Free Software Foundation, Inc. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13997 | This config.status script is free software; the Free Software Foundation |
| 13998 | gives unlimited permission to copy, distribute and modify it." |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13999 | |
| 14000 | ac_pwd='$ac_pwd' |
| 14001 | srcdir='$srcdir' |
| 14002 | INSTALL='$INSTALL' |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14003 | test -n "\$AWK" || AWK=awk |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14004 | _ACEOF |
| 14005 | |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14006 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 14007 | # 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] | 14008 | ac_need_defaults=: |
| 14009 | while test $# != 0 |
| 14010 | do |
| 14011 | case $1 in |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 14012 | --*=?*) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14013 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 14014 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14015 | ac_shift=: |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14016 | ;; |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 14017 | --*=) |
| 14018 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 14019 | ac_optarg= |
| 14020 | ac_shift=: |
| 14021 | ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14022 | *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14023 | ac_option=$1 |
| 14024 | ac_optarg=$2 |
| 14025 | ac_shift=shift |
| 14026 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14027 | esac |
| 14028 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14029 | case $ac_option in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14030 | # Handling of the options. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14031 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 14032 | ac_cs_recheck=: ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14033 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14034 | $as_echo "$ac_cs_version"; exit ;; |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 14035 | --config | --confi | --conf | --con | --co | --c ) |
| 14036 | $as_echo "$ac_cs_config"; exit ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14037 | --debug | --debu | --deb | --de | --d | -d ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14038 | debug=: ;; |
| 14039 | --file | --fil | --fi | --f ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14040 | $ac_shift |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14041 | case $ac_optarg in |
| 14042 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 14043 | '') as_fn_error $? "missing file argument" ;; |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14044 | esac |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 14045 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14046 | ac_need_defaults=false;; |
| 14047 | --header | --heade | --head | --hea ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14048 | $ac_shift |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14049 | case $ac_optarg in |
| 14050 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 14051 | esac |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 14052 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14053 | ac_need_defaults=false;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14054 | --he | --h) |
| 14055 | # Conflict between --help and --header |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 14056 | as_fn_error $? "ambiguous option: \`$1' |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 14057 | Try \`$0 --help' for more information.";; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14058 | --help | --hel | -h ) |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14059 | $as_echo "$ac_cs_usage"; exit ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14060 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 14061 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 14062 | ac_cs_silent=: ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14063 | |
| 14064 | # This is an error. |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 14065 | -*) as_fn_error $? "unrecognized option: \`$1' |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 14066 | Try \`$0 --help' for more information." ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14067 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 14068 | *) as_fn_append ac_config_targets " $1" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14069 | ac_need_defaults=false ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14070 | |
| 14071 | esac |
| 14072 | shift |
| 14073 | done |
| 14074 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14075 | ac_configure_extra_args= |
| 14076 | |
| 14077 | if $ac_cs_silent; then |
| 14078 | exec 6>/dev/null |
| 14079 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 14080 | fi |
| 14081 | |
| 14082 | _ACEOF |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14083 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14084 | if \$ac_cs_recheck; then |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14085 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 14086 | shift |
| 14087 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 14088 | CONFIG_SHELL='$SHELL' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14089 | export CONFIG_SHELL |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14090 | exec "\$@" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14091 | fi |
| 14092 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14093 | _ACEOF |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14094 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14095 | exec 5>>config.log |
| 14096 | { |
| 14097 | echo |
| 14098 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 14099 | ## Running $as_me. ## |
| 14100 | _ASBOX |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14101 | $as_echo "$ac_log" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14102 | } >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14103 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14104 | _ACEOF |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14105 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14106 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14107 | |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14108 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14109 | |
| 14110 | # Handling of arguments. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14111 | for ac_config_target in $ac_config_targets |
| 14112 | do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14113 | case $ac_config_target in |
| 14114 | "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; |
| 14115 | "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;; |
| 14116 | "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;; |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14117 | "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;; |
| 14118 | "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] | 14119 | "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; |
| 14120 | "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;; |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14121 | "Misc/python.pc") CONFIG_FILES="$CONFIG_FILES Misc/python.pc" ;; |
Antoine Pitrou | 80f45a0 | 2010-09-10 19:55:19 +0000 | [diff] [blame] | 14122 | "Modules/ld_so_aix") CONFIG_FILES="$CONFIG_FILES Modules/ld_so_aix" ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14123 | |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 14124 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14125 | esac |
| 14126 | done |
| 14127 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14128 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14129 | # If the user did not use the arguments to specify the items to instantiate, |
| 14130 | # then the envvar interface is used. Set only those that are not. |
| 14131 | # We use the long form for the default assignment because of an extremely |
| 14132 | # bizarre bug on SunOS 4.1.3. |
| 14133 | if $ac_need_defaults; then |
| 14134 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 14135 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 14136 | fi |
| 14137 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14138 | # Have a temporary directory for convenience. Make it in the build tree |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14139 | # 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] | 14140 | # creating and moving files from /tmp can sometimes cause problems. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14141 | # Hook for its removal unless debugging. |
| 14142 | # Note that there is a small window in which the directory will not be cleaned: |
| 14143 | # 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] | 14144 | $debug || |
| 14145 | { |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 14146 | tmp= ac_tmp= |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14147 | trap 'exit_status=$? |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 14148 | : "${ac_tmp:=$tmp}" |
| 14149 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14150 | ' 0 |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 14151 | trap 'as_fn_exit 1' 1 2 13 15 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14152 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14153 | # Create a (secure) tmp directory for tmp files. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14154 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14155 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14156 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 14157 | test -d "$tmp" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14158 | } || |
| 14159 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14160 | tmp=./conf$$-$RANDOM |
| 14161 | (umask 077 && mkdir "$tmp") |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 14162 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
| 14163 | ac_tmp=$tmp |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14164 | |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14165 | # Set up the scripts for CONFIG_FILES section. |
| 14166 | # No need to generate them if there are no CONFIG_FILES. |
| 14167 | # This happens for instance with `./config.status config.h'. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14168 | if test -n "$CONFIG_FILES"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14169 | |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14170 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 14171 | ac_cr=`echo X | tr X '\015'` |
| 14172 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 14173 | # But we know of no other shell where ac_cr would be empty at this |
| 14174 | # point, so we can use a bashism as a fallback. |
| 14175 | if test "x$ac_cr" = x; then |
| 14176 | eval ac_cr=\$\'\\r\' |
| 14177 | fi |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14178 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 14179 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 14180 | ac_cs_awk_cr='\\r' |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14181 | else |
| 14182 | ac_cs_awk_cr=$ac_cr |
| 14183 | fi |
| 14184 | |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 14185 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14186 | _ACEOF |
| 14187 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14188 | |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14189 | { |
| 14190 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 14191 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 14192 | echo "_ACEOF" |
| 14193 | } >conf$$subs.sh || |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 14194 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 14195 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14196 | ac_delim='%!_!# ' |
| 14197 | for ac_last_try in false false false false false :; do |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14198 | . ./conf$$subs.sh || |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 14199 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14200 | |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14201 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 14202 | if test $ac_delim_n = $ac_delim_num; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14203 | break |
| 14204 | elif $ac_last_try; then |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 14205 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14206 | else |
| 14207 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14208 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14209 | done |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14210 | rm -f conf$$subs.sh |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14211 | |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14212 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 14213 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14214 | _ACEOF |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14215 | sed -n ' |
| 14216 | h |
| 14217 | s/^/S["/; s/!.*/"]=/ |
| 14218 | p |
| 14219 | g |
| 14220 | s/^[^!]*!// |
| 14221 | :repl |
| 14222 | t repl |
| 14223 | s/'"$ac_delim"'$// |
| 14224 | t delim |
| 14225 | :nl |
| 14226 | h |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 14227 | s/\(.\{148\}\)..*/\1/ |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14228 | t more1 |
| 14229 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 14230 | p |
| 14231 | n |
| 14232 | b repl |
| 14233 | :more1 |
| 14234 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 14235 | p |
| 14236 | g |
| 14237 | s/.\{148\}// |
| 14238 | t nl |
| 14239 | :delim |
| 14240 | h |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 14241 | s/\(.\{148\}\)..*/\1/ |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14242 | t more2 |
| 14243 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 14244 | p |
| 14245 | b |
| 14246 | :more2 |
| 14247 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 14248 | p |
| 14249 | g |
| 14250 | s/.\{148\}// |
| 14251 | t delim |
| 14252 | ' <conf$$subs.awk | sed ' |
| 14253 | /^[^""]/{ |
| 14254 | N |
| 14255 | s/\n// |
| 14256 | } |
| 14257 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 14258 | rm -f conf$$subs.awk |
| 14259 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 14260 | _ACAWK |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 14261 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14262 | for (key in S) S_is_set[key] = 1 |
| 14263 | FS = "" |
| 14264 | |
| 14265 | } |
| 14266 | { |
| 14267 | line = $ 0 |
| 14268 | nfields = split(line, field, "@") |
| 14269 | substed = 0 |
| 14270 | len = length(field[1]) |
| 14271 | for (i = 2; i < nfields; i++) { |
| 14272 | key = field[i] |
| 14273 | keylen = length(key) |
| 14274 | if (S_is_set[key]) { |
| 14275 | value = S[key] |
| 14276 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 14277 | len += length(value) + length(field[++i]) |
| 14278 | substed = 1 |
| 14279 | } else |
| 14280 | len += 1 + keylen |
| 14281 | } |
| 14282 | |
| 14283 | print line |
| 14284 | } |
| 14285 | |
| 14286 | _ACAWK |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14287 | _ACEOF |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14288 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 14289 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 14290 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 14291 | else |
| 14292 | cat |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 14293 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
| 14294 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14295 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14296 | |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 14297 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
| 14298 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14299 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 14300 | # (actually we leave an empty line to preserve line numbers). |
| 14301 | if test "x$srcdir" = x.; then |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 14302 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
| 14303 | h |
| 14304 | s/// |
| 14305 | s/^/:/ |
| 14306 | s/[ ]*$/:/ |
| 14307 | s/:\$(srcdir):/:/g |
| 14308 | s/:\${srcdir}:/:/g |
| 14309 | s/:@srcdir@:/:/g |
| 14310 | s/^:*// |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14311 | s/:*$// |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 14312 | x |
| 14313 | s/\(=[ ]*\).*/\1/ |
| 14314 | G |
| 14315 | s/\n// |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14316 | s/^[^=]*=[ ]*$// |
| 14317 | }' |
| 14318 | fi |
| 14319 | |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14320 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14321 | fi # test -n "$CONFIG_FILES" |
| 14322 | |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14323 | # Set up the scripts for CONFIG_HEADERS section. |
| 14324 | # No need to generate them if there are no CONFIG_HEADERS. |
| 14325 | # This happens for instance with `./config.status Makefile'. |
| 14326 | if test -n "$CONFIG_HEADERS"; then |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 14327 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14328 | BEGIN { |
| 14329 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14330 | |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14331 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 14332 | # here-document in config.status, that substitutes the proper values into |
| 14333 | # config.h.in to produce config.h. |
| 14334 | |
| 14335 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 14336 | # handling of long lines. |
| 14337 | ac_delim='%!_!# ' |
| 14338 | for ac_last_try in false false :; do |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 14339 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
| 14340 | if test -z "$ac_tt"; then |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14341 | break |
| 14342 | elif $ac_last_try; then |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 14343 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14344 | else |
| 14345 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 14346 | fi |
| 14347 | done |
| 14348 | |
| 14349 | # For the awk script, D is an array of macro values keyed by name, |
| 14350 | # likewise P contains macro parameters if any. Preserve backslash |
| 14351 | # newline sequences. |
| 14352 | |
| 14353 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 14354 | sed -n ' |
| 14355 | s/.\{148\}/&'"$ac_delim"'/g |
| 14356 | t rset |
| 14357 | :rset |
| 14358 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 14359 | t def |
| 14360 | d |
| 14361 | :def |
| 14362 | s/\\$// |
| 14363 | t bsnl |
| 14364 | s/["\\]/\\&/g |
| 14365 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 14366 | D["\1"]=" \3"/p |
| 14367 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 14368 | d |
| 14369 | :bsnl |
| 14370 | s/["\\]/\\&/g |
| 14371 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 14372 | D["\1"]=" \3\\\\\\n"\\/p |
| 14373 | t cont |
| 14374 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 14375 | t cont |
| 14376 | d |
| 14377 | :cont |
| 14378 | n |
| 14379 | s/.\{148\}/&'"$ac_delim"'/g |
| 14380 | t clear |
| 14381 | :clear |
| 14382 | s/\\$// |
| 14383 | t bsnlc |
| 14384 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 14385 | d |
| 14386 | :bsnlc |
| 14387 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 14388 | b cont |
| 14389 | ' <confdefs.h | sed ' |
| 14390 | s/'"$ac_delim"'/"\\\ |
| 14391 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 14392 | |
| 14393 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 14394 | for (key in D) D_is_set[key] = 1 |
| 14395 | FS = "" |
| 14396 | } |
| 14397 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 14398 | line = \$ 0 |
| 14399 | split(line, arg, " ") |
| 14400 | if (arg[1] == "#") { |
| 14401 | defundef = arg[2] |
| 14402 | mac1 = arg[3] |
| 14403 | } else { |
| 14404 | defundef = substr(arg[1], 2) |
| 14405 | mac1 = arg[2] |
| 14406 | } |
| 14407 | split(mac1, mac2, "(") #) |
| 14408 | macro = mac2[1] |
| 14409 | prefix = substr(line, 1, index(line, defundef) - 1) |
| 14410 | if (D_is_set[macro]) { |
| 14411 | # Preserve the white space surrounding the "#". |
| 14412 | print prefix "define", macro P[macro] D[macro] |
| 14413 | next |
| 14414 | } else { |
| 14415 | # Replace #undef with comments. This is necessary, for example, |
| 14416 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 14417 | # on some systems where configure will not decide to define it. |
| 14418 | if (defundef == "undef") { |
| 14419 | print "/*", prefix defundef, macro, "*/" |
| 14420 | next |
| 14421 | } |
| 14422 | } |
| 14423 | } |
| 14424 | { print } |
| 14425 | _ACAWK |
| 14426 | _ACEOF |
| 14427 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 14428 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14429 | fi # test -n "$CONFIG_HEADERS" |
| 14430 | |
| 14431 | |
| 14432 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " |
| 14433 | shift |
| 14434 | for ac_tag |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14435 | do |
| 14436 | case $ac_tag in |
| 14437 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 14438 | esac |
| 14439 | case $ac_mode$ac_tag in |
| 14440 | :[FHL]*:*);; |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 14441 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14442 | :[FH]-) ac_tag=-:-;; |
| 14443 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 14444 | esac |
| 14445 | ac_save_IFS=$IFS |
| 14446 | IFS=: |
| 14447 | set x $ac_tag |
| 14448 | IFS=$ac_save_IFS |
| 14449 | shift |
| 14450 | ac_file=$1 |
| 14451 | shift |
| 14452 | |
| 14453 | case $ac_mode in |
| 14454 | :L) ac_source=$1;; |
| 14455 | :[FH]) |
| 14456 | ac_file_inputs= |
| 14457 | for ac_f |
| 14458 | do |
| 14459 | case $ac_f in |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 14460 | -) ac_f="$ac_tmp/stdin";; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14461 | *) # Look for the file first in the build tree, then in the source tree |
| 14462 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 14463 | # because $ac_f cannot contain `:'. |
| 14464 | test -f "$ac_f" || |
| 14465 | case $ac_f in |
| 14466 | [\\/$]*) false;; |
| 14467 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 14468 | esac || |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 14469 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14470 | esac |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14471 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 14472 | as_fn_append ac_file_inputs " '$ac_f'" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14473 | done |
| 14474 | |
| 14475 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 14476 | # use $as_me), people would be surprised to read: |
| 14477 | # /* config.h. Generated by config.status. */ |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14478 | configure_input='Generated from '` |
| 14479 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 14480 | `' by configure.' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14481 | if test x"$ac_file" != x-; then |
| 14482 | configure_input="$ac_file. $configure_input" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 14483 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14484 | $as_echo "$as_me: creating $ac_file" >&6;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14485 | fi |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14486 | # Neutralize special characters interpreted by sed in replacement strings. |
| 14487 | case $configure_input in #( |
| 14488 | *\&* | *\|* | *\\* ) |
| 14489 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 14490 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 14491 | *) ac_sed_conf_input=$configure_input;; |
| 14492 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14493 | |
| 14494 | case $ac_tag in |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 14495 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
| 14496 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14497 | esac |
| 14498 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14499 | esac |
| 14500 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14501 | ac_dir=`$as_dirname -- "$ac_file" || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14502 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14503 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 14504 | X"$ac_file" : 'X\(//\)$' \| \ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14505 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14506 | $as_echo X"$ac_file" | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14507 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 14508 | s//\1/ |
| 14509 | q |
| 14510 | } |
| 14511 | /^X\(\/\/\)[^/].*/{ |
| 14512 | s//\1/ |
| 14513 | q |
| 14514 | } |
| 14515 | /^X\(\/\/\)$/{ |
| 14516 | s//\1/ |
| 14517 | q |
| 14518 | } |
| 14519 | /^X\(\/\).*/{ |
| 14520 | s//\1/ |
| 14521 | q |
| 14522 | } |
| 14523 | s/.*/./; q'` |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 14524 | as_dir="$ac_dir"; as_fn_mkdir_p |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14525 | ac_builddir=. |
| 14526 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14527 | case "$ac_dir" in |
| 14528 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 14529 | *) |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14530 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14531 | # A ".." for each directory in $ac_dir_suffix. |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14532 | 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] | 14533 | case $ac_top_builddir_sub in |
| 14534 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 14535 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 14536 | esac ;; |
| 14537 | esac |
| 14538 | ac_abs_top_builddir=$ac_pwd |
| 14539 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 14540 | # for backward compatibility: |
| 14541 | ac_top_builddir=$ac_top_build_prefix |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14542 | |
| 14543 | case $srcdir in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14544 | .) # We are building in place. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14545 | ac_srcdir=. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14546 | ac_top_srcdir=$ac_top_builddir_sub |
| 14547 | ac_abs_top_srcdir=$ac_pwd ;; |
| 14548 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14549 | ac_srcdir=$srcdir$ac_dir_suffix; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14550 | ac_top_srcdir=$srcdir |
| 14551 | ac_abs_top_srcdir=$srcdir ;; |
| 14552 | *) # Relative name. |
| 14553 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 14554 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 14555 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14556 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14557 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14558 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14559 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14560 | case $ac_mode in |
| 14561 | :F) |
| 14562 | # |
| 14563 | # CONFIG_FILE |
| 14564 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14565 | |
| 14566 | case $INSTALL in |
| 14567 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14568 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14569 | esac |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 14570 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14571 | |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14572 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14573 | # If the template does not know about datarootdir, expand it. |
| 14574 | # FIXME: This hack should be removed a few years after 2.60. |
| 14575 | ac_datarootdir_hack=; ac_datarootdir_seen= |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14576 | ac_sed_dataroot=' |
| 14577 | /datarootdir/ { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14578 | p |
| 14579 | q |
| 14580 | } |
| 14581 | /@datadir@/p |
| 14582 | /@docdir@/p |
| 14583 | /@infodir@/p |
| 14584 | /@localedir@/p |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 14585 | /@mandir@/p' |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14586 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14587 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 14588 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 14589 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14590 | $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] | 14591 | _ACEOF |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14592 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14593 | ac_datarootdir_hack=' |
| 14594 | s&@datadir@&$datadir&g |
| 14595 | s&@docdir@&$docdir&g |
| 14596 | s&@infodir@&$infodir&g |
| 14597 | s&@localedir@&$localedir&g |
| 14598 | s&@mandir@&$mandir&g |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 14599 | s&\\\${datarootdir}&$datarootdir&g' ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14600 | esac |
| 14601 | _ACEOF |
| 14602 | |
| 14603 | # Neutralize VPATH when `$srcdir' = `.'. |
| 14604 | # Shell code in configure.ac might set extrasub. |
| 14605 | # FIXME: do we really want to maintain this feature? |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14606 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 14607 | ac_sed_extra="$ac_vpsub |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14608 | $extrasub |
| 14609 | _ACEOF |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14610 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14611 | :t |
| 14612 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14613 | s|@configure_input@|$ac_sed_conf_input|;t t |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14614 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14615 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14616 | s&@srcdir@&$ac_srcdir&;t t |
| 14617 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 14618 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 14619 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 14620 | s&@builddir@&$ac_builddir&;t t |
| 14621 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 14622 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 14623 | s&@INSTALL@&$ac_INSTALL&;t t |
| 14624 | $ac_datarootdir_hack |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14625 | " |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 14626 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
| 14627 | >$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] | 14628 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14629 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 14630 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
| 14631 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
| 14632 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 14633 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 14634 | which seems to be undefined. Please make sure it is defined" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14635 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 14636 | which seems to be undefined. Please make sure it is defined" >&2;} |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 14637 | |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 14638 | rm -f "$ac_tmp/stdin" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14639 | case $ac_file in |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 14640 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
| 14641 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14642 | esac \ |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 14643 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14644 | ;; |
| 14645 | :H) |
| 14646 | # |
| 14647 | # CONFIG_HEADER |
| 14648 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14649 | if test x"$ac_file" != x-; then |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14650 | { |
| 14651 | $as_echo "/* $configure_input */" \ |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 14652 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
| 14653 | } >"$ac_tmp/config.h" \ |
| 14654 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 14655 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 14656 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14657 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14658 | else |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14659 | rm -f "$ac_file" |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 14660 | mv "$ac_tmp/config.h" "$ac_file" \ |
| 14661 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14662 | fi |
| 14663 | else |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14664 | $as_echo "/* $configure_input */" \ |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 14665 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
| 14666 | || as_fn_error $? "could not create -" "$LINENO" 5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14667 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14668 | ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14669 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14670 | |
| 14671 | esac |
| 14672 | |
Antoine Pitrou | 80f45a0 | 2010-09-10 19:55:19 +0000 | [diff] [blame] | 14673 | |
| 14674 | case $ac_file$ac_mode in |
| 14675 | "Modules/ld_so_aix":F) chmod +x Modules/ld_so_aix ;; |
| 14676 | |
| 14677 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14678 | done # for ac_tag |
| 14679 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14680 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 14681 | as_fn_exit 0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14682 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14683 | ac_clean_files=$ac_clean_files_save |
| 14684 | |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14685 | test $ac_write_fail = 0 || |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 14686 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14687 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14688 | |
| 14689 | # configure is writing to config.log, and then calls config.status. |
| 14690 | # config.status does its own redirection, appending to config.log. |
| 14691 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 14692 | # by configure, so config.status won't be able to write to it; its |
| 14693 | # output is simply discarded. So we exec the FD to /dev/null, |
| 14694 | # effectively closing config.log, so it can be properly (re)opened and |
| 14695 | # appended to by config.status. When coming back to configure, we |
| 14696 | # need to make the FD available again. |
| 14697 | if test "$no_create" != yes; then |
| 14698 | ac_cs_success=: |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14699 | ac_config_status_args= |
| 14700 | test "$silent" = yes && |
| 14701 | ac_config_status_args="$ac_config_status_args --quiet" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14702 | exec 5>/dev/null |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14703 | $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] | 14704 | exec 5>>config.log |
| 14705 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 14706 | # would make configure fail if this is the last instruction. |
Georg Brandl | 6baf117 | 2011-02-25 10:20:45 +0000 | [diff] [blame] | 14707 | $ac_cs_success || as_fn_exit 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14708 | fi |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14709 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 14710 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14711 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
| 14712 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14713 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 14714 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 14715 | echo "creating Modules/Setup" |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 14716 | if test ! -f Modules/Setup |
| 14717 | then |
| 14718 | cp $srcdir/Modules/Setup.dist Modules/Setup |
| 14719 | fi |
| 14720 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 14721 | echo "creating Modules/Setup.local" |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 14722 | if test ! -f Modules/Setup.local |
| 14723 | then |
| 14724 | echo "# Edit this file for local setup changes" >Modules/Setup.local |
| 14725 | fi |
| 14726 | |
| 14727 | echo "creating Makefile" |
| 14728 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ |
| 14729 | -s Modules Modules/Setup.config \ |
Neil Schemenauer | f8b71c5 | 2001-04-21 17:41:16 +0000 | [diff] [blame] | 14730 | Modules/Setup.local Modules/Setup |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 14731 | mv config.c Modules |