Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1 | #! /bin/sh |
Georg Brandl | 1ca2e79 | 2011-03-05 20:51:24 +0100 | [diff] [blame] | 2 | # From configure.in Revision. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3 | # Guess values for system-dependent variables and create Makefiles. |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 4 | # Generated by GNU Autoconf 2.67 for python 3.3. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5 | # |
Georg Brandl | e2e1561 | 2009-05-20 18:25:10 +0000 | [diff] [blame] | 6 | # Report bugs to <http://bugs.python.org/>. |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 7 | # |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8 | # |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 10 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software |
| 11 | # Foundation, Inc. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +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. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +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 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +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=: |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +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 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +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 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +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 |
| 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 |
| 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; |
| 63 | case $arg in #( |
| 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 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 76 | |
| 77 | # The user is always right. |
| 78 | if test "${PATH_SEPARATOR+set}" != set; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +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 | } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 84 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 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. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 95 | case $0 in #(( |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 96 | *[\\/]* ) as_myself=$0 ;; |
| 97 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 98 | for as_dir in $PATH |
| 99 | do |
| 100 | IFS=$as_save_IFS |
| 101 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 102 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 103 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 104 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 105 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 106 | ;; |
| 107 | esac |
| 108 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 109 | # in which case we are not to be found in the path. |
| 110 | if test "x$as_myself" = x; then |
| 111 | as_myself=$0 |
| 112 | fi |
| 113 | if test ! -f "$as_myself"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 114 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 115 | exit 1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 116 | fi |
| 117 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 118 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 119 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 120 | # suppresses any "Segmentation fault" message there. '((' could |
| 121 | # trigger a bug in pdksh 5.2.14. |
| 122 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 123 | do eval test x\${$as_var+set} = xset \ |
| 124 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 125 | done |
| 126 | PS1='$ ' |
| 127 | PS2='> ' |
| 128 | PS4='+ ' |
| 129 | |
| 130 | # NLS nuisances. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 131 | LC_ALL=C |
| 132 | export LC_ALL |
| 133 | LANGUAGE=C |
| 134 | export LANGUAGE |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 135 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 136 | # CDPATH. |
| 137 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 138 | |
| 139 | if test "x$CONFIG_SHELL" = x; then |
| 140 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
| 141 | emulate sh |
| 142 | NULLCMD=: |
| 143 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
| 144 | # is contrary to our usage. Disable this feature. |
| 145 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
| 146 | setopt NO_GLOB_SUBST |
| 147 | else |
| 148 | case \`(set -o) 2>/dev/null\` in #( |
| 149 | *posix*) : |
| 150 | set -o posix ;; #( |
| 151 | *) : |
| 152 | ;; |
| 153 | esac |
| 154 | fi |
| 155 | " |
| 156 | as_required="as_fn_return () { (exit \$1); } |
| 157 | as_fn_success () { as_fn_return 0; } |
| 158 | as_fn_failure () { as_fn_return 1; } |
| 159 | as_fn_ret_success () { return 0; } |
| 160 | as_fn_ret_failure () { return 1; } |
| 161 | |
| 162 | exitcode=0 |
| 163 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
| 164 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
| 165 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
| 166 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
| 167 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
| 168 | |
| 169 | else |
| 170 | exitcode=1; echo positional parameters were not saved. |
| 171 | fi |
| 172 | test x\$exitcode = x0 || exit 1" |
| 173 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
| 174 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
| 175 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
| 176 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
| 177 | test \$(( 1 + 1 )) = 2 || exit 1" |
| 178 | if (eval "$as_required") 2>/dev/null; then : |
| 179 | as_have_required=yes |
| 180 | else |
| 181 | as_have_required=no |
| 182 | fi |
| 183 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
| 184 | |
| 185 | else |
| 186 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 187 | as_found=false |
| 188 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 189 | do |
| 190 | IFS=$as_save_IFS |
| 191 | test -z "$as_dir" && as_dir=. |
| 192 | as_found=: |
| 193 | case $as_dir in #( |
| 194 | /*) |
| 195 | for as_base in sh bash ksh sh5; do |
| 196 | # Try only shells that exist, to save several forks. |
| 197 | as_shell=$as_dir/$as_base |
| 198 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 199 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 200 | CONFIG_SHELL=$as_shell as_have_required=yes |
| 201 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 202 | break 2 |
| 203 | fi |
| 204 | fi |
| 205 | done;; |
| 206 | esac |
| 207 | as_found=false |
| 208 | done |
| 209 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
| 210 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
| 211 | CONFIG_SHELL=$SHELL as_have_required=yes |
| 212 | fi; } |
| 213 | IFS=$as_save_IFS |
| 214 | |
| 215 | |
| 216 | if test "x$CONFIG_SHELL" != x; then : |
| 217 | # We cannot yet assume a decent shell, so we have to provide a |
| 218 | # neutralization value for shells without unset; and this also |
| 219 | # works around shells that cannot unset nonexistent variables. |
| 220 | BASH_ENV=/dev/null |
| 221 | ENV=/dev/null |
| 222 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 223 | export CONFIG_SHELL |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 224 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 225 | fi |
| 226 | |
| 227 | if test x$as_have_required = xno; then : |
| 228 | $as_echo "$0: This script requires a shell more modern than all" |
| 229 | $as_echo "$0: the shells that I found on your system." |
| 230 | if test x${ZSH_VERSION+set} = xset ; then |
| 231 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
| 232 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
| 233 | else |
| 234 | $as_echo "$0: Please tell bug-autoconf@gnu.org and |
| 235 | $0: http://bugs.python.org/ about your system, including |
| 236 | $0: any error possibly output before this message. Then |
| 237 | $0: install a modern shell, or manually run the script |
| 238 | $0: under such a shell if you do have one." |
| 239 | fi |
| 240 | exit 1 |
| 241 | fi |
| 242 | fi |
| 243 | fi |
| 244 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 245 | export SHELL |
| 246 | # Unset more variables known to interfere with behavior of common tools. |
| 247 | CLICOLOR_FORCE= GREP_OPTIONS= |
| 248 | unset CLICOLOR_FORCE GREP_OPTIONS |
| 249 | |
| 250 | ## --------------------- ## |
| 251 | ## M4sh Shell Functions. ## |
| 252 | ## --------------------- ## |
| 253 | # as_fn_unset VAR |
| 254 | # --------------- |
| 255 | # Portably unset VAR. |
| 256 | as_fn_unset () |
| 257 | { |
| 258 | { eval $1=; unset $1;} |
| 259 | } |
| 260 | as_unset=as_fn_unset |
| 261 | |
| 262 | # as_fn_set_status STATUS |
| 263 | # ----------------------- |
| 264 | # Set $? to STATUS, without forking. |
| 265 | as_fn_set_status () |
| 266 | { |
| 267 | return $1 |
| 268 | } # as_fn_set_status |
| 269 | |
| 270 | # as_fn_exit STATUS |
| 271 | # ----------------- |
| 272 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 273 | as_fn_exit () |
| 274 | { |
| 275 | set +e |
| 276 | as_fn_set_status $1 |
| 277 | exit $1 |
| 278 | } # as_fn_exit |
| 279 | |
| 280 | # as_fn_mkdir_p |
| 281 | # ------------- |
| 282 | # Create "$as_dir" as a directory, including parents if necessary. |
| 283 | as_fn_mkdir_p () |
| 284 | { |
| 285 | |
| 286 | case $as_dir in #( |
| 287 | -*) as_dir=./$as_dir;; |
| 288 | esac |
| 289 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 290 | as_dirs= |
| 291 | while :; do |
| 292 | case $as_dir in #( |
| 293 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 294 | *) as_qdir=$as_dir;; |
| 295 | esac |
| 296 | as_dirs="'$as_qdir' $as_dirs" |
| 297 | as_dir=`$as_dirname -- "$as_dir" || |
| 298 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 299 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 300 | X"$as_dir" : 'X\(//\)$' \| \ |
| 301 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 302 | $as_echo X"$as_dir" | |
| 303 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 304 | s//\1/ |
| 305 | q |
| 306 | } |
| 307 | /^X\(\/\/\)[^/].*/{ |
| 308 | s//\1/ |
| 309 | q |
| 310 | } |
| 311 | /^X\(\/\/\)$/{ |
| 312 | s//\1/ |
| 313 | q |
| 314 | } |
| 315 | /^X\(\/\).*/{ |
| 316 | s//\1/ |
| 317 | q |
| 318 | } |
| 319 | s/.*/./; q'` |
| 320 | test -d "$as_dir" && break |
| 321 | done |
| 322 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 323 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 324 | |
| 325 | |
| 326 | } # as_fn_mkdir_p |
| 327 | # as_fn_append VAR VALUE |
| 328 | # ---------------------- |
| 329 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 330 | # advantage of any shell optimizations that allow amortized linear growth over |
| 331 | # repeated appends, instead of the typical quadratic growth present in naive |
| 332 | # implementations. |
| 333 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 334 | eval 'as_fn_append () |
| 335 | { |
| 336 | eval $1+=\$2 |
| 337 | }' |
| 338 | else |
| 339 | as_fn_append () |
| 340 | { |
| 341 | eval $1=\$$1\$2 |
| 342 | } |
| 343 | fi # as_fn_append |
| 344 | |
| 345 | # as_fn_arith ARG... |
| 346 | # ------------------ |
| 347 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 348 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 349 | # must be portable across $(()) and expr. |
| 350 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 351 | eval 'as_fn_arith () |
| 352 | { |
| 353 | as_val=$(( $* )) |
| 354 | }' |
| 355 | else |
| 356 | as_fn_arith () |
| 357 | { |
| 358 | as_val=`expr "$@" || test $? -eq 1` |
| 359 | } |
| 360 | fi # as_fn_arith |
| 361 | |
| 362 | |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 363 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 364 | # ---------------------------------------- |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 365 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 366 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 367 | # script with STATUS, using 1 if that was 0. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 368 | as_fn_error () |
| 369 | { |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 370 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 371 | if test "$4"; then |
| 372 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 373 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 374 | fi |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 375 | $as_echo "$as_me: error: $2" >&2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 376 | as_fn_exit $as_status |
| 377 | } # as_fn_error |
| 378 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 379 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 380 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 381 | as_expr=expr |
| 382 | else |
| 383 | as_expr=false |
| 384 | fi |
| 385 | |
| 386 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 387 | as_basename=basename |
| 388 | else |
| 389 | as_basename=false |
| 390 | fi |
| 391 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 392 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 393 | as_dirname=dirname |
| 394 | else |
| 395 | as_dirname=false |
| 396 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 397 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 398 | as_me=`$as_basename -- "$0" || |
| 399 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 400 | X"$0" : 'X\(//\)$' \| \ |
| 401 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 402 | $as_echo X/"$0" | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 403 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 404 | s//\1/ |
| 405 | q |
| 406 | } |
| 407 | /^X\/\(\/\/\)$/{ |
| 408 | s//\1/ |
| 409 | q |
| 410 | } |
| 411 | /^X\/\(\/\).*/{ |
| 412 | s//\1/ |
| 413 | q |
| 414 | } |
| 415 | s/.*/./; q'` |
| 416 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 417 | # Avoid depending upon Character Ranges. |
| 418 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 419 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 420 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 421 | as_cr_digits='0123456789' |
| 422 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 423 | |
| 424 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 425 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
| 426 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
| 427 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
| 428 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
| 429 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 430 | sed -n ' |
| 431 | p |
| 432 | /[$]LINENO/= |
| 433 | ' <$as_myself | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 434 | sed ' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 435 | s/[$]LINENO.*/&-/ |
| 436 | t lineno |
| 437 | b |
| 438 | :lineno |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 439 | N |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 440 | :loop |
| 441 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 442 | t loop |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 443 | s/-\n.*// |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 444 | ' >$as_me.lineno && |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 445 | chmod +x "$as_me.lineno" || |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 446 | { $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] | 447 | |
| 448 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 449 | # (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] | 450 | # original and so on. Autoconf is especially sensitive to this). |
| 451 | . "./$as_me.lineno" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 452 | # Exit status is that of the last command. |
| 453 | exit |
| 454 | } |
| 455 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 456 | ECHO_C= ECHO_N= ECHO_T= |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 457 | case `echo -n x` in #((((( |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 458 | -n*) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 459 | case `echo 'xy\c'` in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 460 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 461 | xy) ECHO_C='\c';; |
| 462 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 463 | ECHO_T=' ';; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 464 | esac;; |
| 465 | *) |
| 466 | ECHO_N='-n';; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 467 | esac |
Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 468 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 469 | rm -f conf$$ conf$$.exe conf$$.file |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 470 | if test -d conf$$.dir; then |
| 471 | rm -f conf$$.dir/conf$$.file |
| 472 | else |
| 473 | rm -f conf$$.dir |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 474 | mkdir conf$$.dir 2>/dev/null |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 475 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 476 | if (echo >conf$$.file) 2>/dev/null; then |
| 477 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 478 | as_ln_s='ln -s' |
| 479 | # ... but there are two gotchas: |
| 480 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 481 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 482 | # In both cases, we have to default to `cp -p'. |
| 483 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 484 | as_ln_s='cp -p' |
| 485 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 486 | as_ln_s=ln |
| 487 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 488 | as_ln_s='cp -p' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 489 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 490 | else |
| 491 | as_ln_s='cp -p' |
| 492 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 493 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 494 | rmdir conf$$.dir 2>/dev/null |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 495 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 496 | if mkdir -p . 2>/dev/null; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 497 | as_mkdir_p='mkdir -p "$as_dir"' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 498 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 499 | test -d ./-p && rmdir ./-p |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 500 | as_mkdir_p=false |
| 501 | fi |
| 502 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 503 | if test -x / >/dev/null 2>&1; then |
| 504 | as_test_x='test -x' |
| 505 | else |
| 506 | if ls -dL / >/dev/null 2>&1; then |
| 507 | as_ls_L_option=L |
| 508 | else |
| 509 | as_ls_L_option= |
| 510 | fi |
| 511 | as_test_x=' |
| 512 | eval sh -c '\'' |
| 513 | if test -d "$1"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 514 | test -d "$1/."; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 515 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 516 | case $1 in #( |
| 517 | -*)set "./$1";; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 518 | esac; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 519 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 520 | ???[sx]*):;;*)false;;esac;fi |
| 521 | '\'' sh |
| 522 | ' |
| 523 | fi |
| 524 | as_executable_p=$as_test_x |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 525 | |
| 526 | # Sed expression to map a string onto a valid CPP name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 527 | 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] | 528 | |
| 529 | # Sed expression to map a string onto a valid variable name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 530 | 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] | 531 | |
| 532 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 533 | test -n "$DJDIR" || exec 7<&0 </dev/null |
| 534 | exec 6>&1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 535 | |
| 536 | # Name of the host. |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 537 | # 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] | 538 | # so uname gets run too. |
| 539 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 540 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 541 | # |
| 542 | # Initializations. |
| 543 | # |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 544 | ac_default_prefix=/usr/local |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 545 | ac_clean_files= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 546 | ac_config_libobj_dir=. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 547 | LIBOBJS= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 548 | cross_compiling=no |
| 549 | subdirs= |
| 550 | MFLAGS= |
| 551 | MAKEFLAGS= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 552 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 553 | # Identity of this package. |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 554 | PACKAGE_NAME='python' |
| 555 | PACKAGE_TARNAME='python' |
Georg Brandl | 3ebb6b3 | 2011-02-20 10:37:07 +0000 | [diff] [blame] | 556 | PACKAGE_VERSION='3.3' |
| 557 | PACKAGE_STRING='python 3.3' |
Georg Brandl | e2e1561 | 2009-05-20 18:25:10 +0000 | [diff] [blame] | 558 | PACKAGE_BUGREPORT='http://bugs.python.org/' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 559 | PACKAGE_URL='' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 560 | |
| 561 | ac_unique_file="Include/object.h" |
| 562 | # Factoring default headers for most tests. |
| 563 | ac_includes_default="\ |
| 564 | #include <stdio.h> |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 565 | #ifdef HAVE_SYS_TYPES_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 566 | # include <sys/types.h> |
| 567 | #endif |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 568 | #ifdef HAVE_SYS_STAT_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 569 | # include <sys/stat.h> |
| 570 | #endif |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 571 | #ifdef STDC_HEADERS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 572 | # include <stdlib.h> |
| 573 | # include <stddef.h> |
| 574 | #else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 575 | # ifdef HAVE_STDLIB_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 576 | # include <stdlib.h> |
| 577 | # endif |
| 578 | #endif |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 579 | #ifdef HAVE_STRING_H |
| 580 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 581 | # include <memory.h> |
| 582 | # endif |
| 583 | # include <string.h> |
| 584 | #endif |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 585 | #ifdef HAVE_STRINGS_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 586 | # include <strings.h> |
| 587 | #endif |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 588 | #ifdef HAVE_INTTYPES_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 589 | # include <inttypes.h> |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 590 | #endif |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 591 | #ifdef HAVE_STDINT_H |
| 592 | # include <stdint.h> |
| 593 | #endif |
| 594 | #ifdef HAVE_UNISTD_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 595 | # include <unistd.h> |
| 596 | #endif" |
| 597 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 598 | ac_subst_vars='LTLIBOBJS |
Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 599 | SRCDIRS |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 600 | THREADHEADERS |
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 601 | SOABI |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 602 | LIBC |
| 603 | LIBM |
| 604 | HAVE_GETHOSTBYNAME |
| 605 | HAVE_GETHOSTBYNAME_R |
| 606 | HAVE_GETHOSTBYNAME_R_3_ARG |
| 607 | HAVE_GETHOSTBYNAME_R_5_ARG |
| 608 | HAVE_GETHOSTBYNAME_R_6_ARG |
| 609 | LIBOBJS |
| 610 | TRUE |
| 611 | MACHDEP_OBJS |
| 612 | DYNLOADFILE |
| 613 | DLINCLDIR |
| 614 | THREADOBJ |
| 615 | LDLAST |
| 616 | USE_THREAD_MODULE |
| 617 | SIGNAL_OBJS |
| 618 | USE_SIGNAL_MODULE |
| 619 | LIBFFI_INCLUDEDIR |
| 620 | PKG_CONFIG |
| 621 | SHLIBS |
| 622 | CFLAGSFORSHARED |
| 623 | LINKFORSHARED |
| 624 | CCSHARED |
| 625 | BLDSHARED |
| 626 | LDCXXSHARED |
| 627 | LDSHARED |
| 628 | SO |
| 629 | LIBTOOL_CRUFT |
| 630 | OTHER_LIBTOOL_OPT |
| 631 | UNIVERSAL_ARCH_FLAGS |
| 632 | BASECFLAGS |
| 633 | OPT |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 634 | ABIFLAGS |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 635 | LN |
| 636 | INSTALL_DATA |
| 637 | INSTALL_SCRIPT |
| 638 | INSTALL_PROGRAM |
Georg Brandl | 1ca2e79 | 2011-03-05 20:51:24 +0100 | [diff] [blame] | 639 | HAS_HG |
| 640 | HGBRANCH |
| 641 | HGTAG |
| 642 | HGVERSION |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 643 | ARFLAGS |
| 644 | AR |
| 645 | RANLIB |
Daniel Stutzbach | a606faa | 2010-08-31 19:51:07 +0000 | [diff] [blame] | 646 | USE_INLINE |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 647 | GNULD |
| 648 | LINKCC |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 649 | LDVERSION |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 650 | RUNSHARED |
| 651 | INSTSONAME |
| 652 | LDLIBRARYDIR |
Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 +0000 | [diff] [blame] | 653 | PY3LIBRARY |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 654 | BLDLIBRARY |
| 655 | DLLLIBRARY |
| 656 | LDLIBRARY |
| 657 | LIBRARY |
| 658 | BUILDEXEEXT |
| 659 | EGREP |
| 660 | GREP |
| 661 | CPP |
Martin v. Löwis | 48e14d3 | 2011-05-09 07:37:45 +0200 | [diff] [blame] | 662 | NO_AS_NEEDED |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 663 | MAINCC |
| 664 | CXX |
| 665 | OBJEXT |
| 666 | EXEEXT |
| 667 | ac_ct_CC |
| 668 | CPPFLAGS |
| 669 | LDFLAGS |
| 670 | CFLAGS |
| 671 | CC |
| 672 | EXPORT_MACOSX_DEPLOYMENT_TARGET |
| 673 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET |
| 674 | SGI_ABI |
| 675 | MACHDEP |
Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 676 | FRAMEWORKINSTALLAPPSPREFIX |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 677 | FRAMEWORKUNIXTOOLSPREFIX |
| 678 | FRAMEWORKALTINSTALLLAST |
| 679 | FRAMEWORKALTINSTALLFIRST |
| 680 | FRAMEWORKINSTALLLAST |
| 681 | FRAMEWORKINSTALLFIRST |
| 682 | PYTHONFRAMEWORKINSTALLDIR |
| 683 | PYTHONFRAMEWORKPREFIX |
| 684 | PYTHONFRAMEWORKDIR |
| 685 | PYTHONFRAMEWORKIDENTIFIER |
| 686 | PYTHONFRAMEWORK |
| 687 | LIPO_32BIT_FLAGS |
| 688 | ARCH_RUN_32BIT |
| 689 | UNIVERSALSDK |
| 690 | CONFIG_ARGS |
| 691 | SOVERSION |
| 692 | VERSION |
| 693 | target_alias |
| 694 | host_alias |
| 695 | build_alias |
| 696 | LIBS |
| 697 | ECHO_T |
| 698 | ECHO_N |
| 699 | ECHO_C |
| 700 | DEFS |
| 701 | mandir |
| 702 | localedir |
| 703 | libdir |
| 704 | psdir |
| 705 | pdfdir |
| 706 | dvidir |
| 707 | htmldir |
| 708 | infodir |
| 709 | docdir |
| 710 | oldincludedir |
| 711 | includedir |
| 712 | localstatedir |
| 713 | sharedstatedir |
| 714 | sysconfdir |
| 715 | datadir |
| 716 | datarootdir |
| 717 | libexecdir |
| 718 | sbindir |
| 719 | bindir |
| 720 | program_transform_name |
| 721 | prefix |
| 722 | exec_prefix |
| 723 | PACKAGE_URL |
| 724 | PACKAGE_BUGREPORT |
| 725 | PACKAGE_STRING |
| 726 | PACKAGE_VERSION |
| 727 | PACKAGE_TARNAME |
| 728 | PACKAGE_NAME |
| 729 | PATH_SEPARATOR |
| 730 | SHELL' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 731 | ac_subst_files='' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 732 | ac_user_opts=' |
| 733 | enable_option_checking |
| 734 | enable_universalsdk |
| 735 | with_universal_archs |
| 736 | with_framework_name |
| 737 | enable_framework |
| 738 | with_gcc |
| 739 | with_cxx_main |
| 740 | with_suffix |
| 741 | enable_shared |
| 742 | enable_profiling |
| 743 | with_pydebug |
| 744 | with_libs |
| 745 | with_system_expat |
| 746 | with_system_ffi |
Benjamin Peterson | 076ed00 | 2010-10-31 17:11:02 +0000 | [diff] [blame] | 747 | enable_loadable_sqlite_extensions |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 748 | with_dbmliborder |
| 749 | with_signal_module |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 750 | with_threads |
| 751 | with_thread |
| 752 | enable_ipv6 |
| 753 | with_doc_strings |
| 754 | with_tsc |
| 755 | with_pymalloc |
| 756 | with_valgrind |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 757 | with_fpectl |
| 758 | with_libm |
| 759 | with_libc |
| 760 | enable_big_digits |
| 761 | with_wide_unicode |
| 762 | with_computed_gotos |
| 763 | ' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 764 | ac_precious_vars='build_alias |
| 765 | host_alias |
| 766 | target_alias |
| 767 | CC |
| 768 | CFLAGS |
| 769 | LDFLAGS |
| 770 | LIBS |
| 771 | CPPFLAGS |
Ross Lagerwall | 7807c35 | 2011-03-17 20:20:30 +0200 | [diff] [blame] | 772 | CPP' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 773 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 774 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 775 | # Initialize some variables set by options. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 776 | ac_init_help= |
| 777 | ac_init_version=false |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 778 | ac_unrecognized_opts= |
| 779 | ac_unrecognized_sep= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 780 | # The variables have the same names as the options, with |
| 781 | # dashes changed to underlines. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 782 | cache_file=/dev/null |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 783 | exec_prefix=NONE |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 784 | no_create= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 785 | no_recursion= |
| 786 | prefix=NONE |
| 787 | program_prefix=NONE |
| 788 | program_suffix=NONE |
| 789 | program_transform_name=s,x,x, |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 790 | silent= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 791 | site= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 792 | srcdir= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 793 | verbose= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 794 | x_includes=NONE |
| 795 | x_libraries=NONE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 796 | |
| 797 | # Installation directory options. |
| 798 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 799 | # and all the variables that are supposed to be based on exec_prefix |
| 800 | # by default will actually change. |
| 801 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 802 | # (The list follows the same order as the GNU Coding Standards.) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 803 | bindir='${exec_prefix}/bin' |
| 804 | sbindir='${exec_prefix}/sbin' |
| 805 | libexecdir='${exec_prefix}/libexec' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 806 | datarootdir='${prefix}/share' |
| 807 | datadir='${datarootdir}' |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 808 | sysconfdir='${prefix}/etc' |
| 809 | sharedstatedir='${prefix}/com' |
| 810 | localstatedir='${prefix}/var' |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 811 | includedir='${prefix}/include' |
| 812 | oldincludedir='/usr/include' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 813 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 814 | infodir='${datarootdir}/info' |
| 815 | htmldir='${docdir}' |
| 816 | dvidir='${docdir}' |
| 817 | pdfdir='${docdir}' |
| 818 | psdir='${docdir}' |
| 819 | libdir='${exec_prefix}/lib' |
| 820 | localedir='${datarootdir}/locale' |
| 821 | mandir='${datarootdir}/man' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 822 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 823 | ac_prev= |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 824 | ac_dashdash= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 825 | for ac_option |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 826 | do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 827 | # If the previous option needs an argument, assign it. |
| 828 | if test -n "$ac_prev"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 829 | eval $ac_prev=\$ac_option |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 830 | ac_prev= |
| 831 | continue |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 832 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 833 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 834 | case $ac_option in |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 835 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 836 | *=) ac_optarg= ;; |
| 837 | *) ac_optarg=yes ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 838 | esac |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 839 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 840 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 841 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 842 | case $ac_dashdash$ac_option in |
| 843 | --) |
| 844 | ac_dashdash=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 845 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 846 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 847 | ac_prev=bindir ;; |
| 848 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 849 | bindir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 850 | |
| 851 | -build | --build | --buil | --bui | --bu) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 852 | ac_prev=build_alias ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 853 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 854 | build_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 855 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 856 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 857 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 858 | ac_prev=cache_file ;; |
| 859 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 860 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 861 | cache_file=$ac_optarg ;; |
| 862 | |
| 863 | --config-cache | -C) |
| 864 | cache_file=config.cache ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 865 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 866 | -datadir | --datadir | --datadi | --datad) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 867 | ac_prev=datadir ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 868 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 869 | datadir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 870 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 871 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 872 | | --dataroo | --dataro | --datar) |
| 873 | ac_prev=datarootdir ;; |
| 874 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 875 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 876 | datarootdir=$ac_optarg ;; |
| 877 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 878 | -disable-* | --disable-*) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 879 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 880 | # Reject names that are not valid shell variable names. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 881 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 882 | as_fn_error $? "invalid feature name: $ac_useropt" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 883 | ac_useropt_orig=$ac_useropt |
| 884 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 885 | case $ac_user_opts in |
| 886 | *" |
| 887 | "enable_$ac_useropt" |
| 888 | "*) ;; |
| 889 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 890 | ac_unrecognized_sep=', ';; |
| 891 | esac |
| 892 | eval enable_$ac_useropt=no ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 893 | |
| 894 | -docdir | --docdir | --docdi | --doc | --do) |
| 895 | ac_prev=docdir ;; |
| 896 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 897 | docdir=$ac_optarg ;; |
| 898 | |
| 899 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 900 | ac_prev=dvidir ;; |
| 901 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 902 | dvidir=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 903 | |
| 904 | -enable-* | --enable-*) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 905 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 906 | # Reject names that are not valid shell variable names. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 907 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 908 | as_fn_error $? "invalid feature name: $ac_useropt" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 909 | ac_useropt_orig=$ac_useropt |
| 910 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 911 | case $ac_user_opts in |
| 912 | *" |
| 913 | "enable_$ac_useropt" |
| 914 | "*) ;; |
| 915 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 916 | ac_unrecognized_sep=', ';; |
| 917 | esac |
| 918 | eval enable_$ac_useropt=\$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 919 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 920 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 921 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 922 | | --exec | --exe | --ex) |
| 923 | ac_prev=exec_prefix ;; |
| 924 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 925 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 926 | | --exec=* | --exe=* | --ex=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 927 | exec_prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 928 | |
| 929 | -gas | --gas | --ga | --g) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 930 | # Obsolete; use --with-gas. |
| 931 | with_gas=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 932 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 933 | -help | --help | --hel | --he | -h) |
| 934 | ac_init_help=long ;; |
| 935 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 936 | ac_init_help=recursive ;; |
| 937 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 938 | ac_init_help=short ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 939 | |
| 940 | -host | --host | --hos | --ho) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 941 | ac_prev=host_alias ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 942 | -host=* | --host=* | --hos=* | --ho=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 943 | host_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 944 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 945 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 946 | ac_prev=htmldir ;; |
| 947 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 948 | | --ht=*) |
| 949 | htmldir=$ac_optarg ;; |
| 950 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 951 | -includedir | --includedir | --includedi | --included | --include \ |
| 952 | | --includ | --inclu | --incl | --inc) |
| 953 | ac_prev=includedir ;; |
| 954 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 955 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 956 | includedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 957 | |
| 958 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 959 | ac_prev=infodir ;; |
| 960 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 961 | infodir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 962 | |
| 963 | -libdir | --libdir | --libdi | --libd) |
| 964 | ac_prev=libdir ;; |
| 965 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 966 | libdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 967 | |
| 968 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 969 | | --libexe | --libex | --libe) |
| 970 | ac_prev=libexecdir ;; |
| 971 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 972 | | --libexe=* | --libex=* | --libe=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 973 | libexecdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 974 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 975 | -localedir | --localedir | --localedi | --localed | --locale) |
| 976 | ac_prev=localedir ;; |
| 977 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 978 | localedir=$ac_optarg ;; |
| 979 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 980 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 981 | | --localstate | --localstat | --localsta | --localst | --locals) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 982 | ac_prev=localstatedir ;; |
| 983 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 984 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 985 | localstatedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 986 | |
| 987 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 988 | ac_prev=mandir ;; |
| 989 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 990 | mandir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 991 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 992 | -nfp | --nfp | --nf) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 993 | # Obsolete; use --without-fp. |
| 994 | with_fp=no ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 995 | |
| 996 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 997 | | --no-cr | --no-c | -n) |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 998 | no_create=yes ;; |
| 999 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1000 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1001 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1002 | no_recursion=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1003 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1004 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1005 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1006 | | --oldin | --oldi | --old | --ol | --o) |
| 1007 | ac_prev=oldincludedir ;; |
| 1008 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1009 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1010 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1011 | oldincludedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1012 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1013 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1014 | ac_prev=prefix ;; |
| 1015 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1016 | prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1017 | |
| 1018 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1019 | | --program-pre | --program-pr | --program-p) |
| 1020 | ac_prev=program_prefix ;; |
| 1021 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1022 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1023 | program_prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1024 | |
| 1025 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1026 | | --program-suf | --program-su | --program-s) |
| 1027 | ac_prev=program_suffix ;; |
| 1028 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1029 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1030 | program_suffix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1031 | |
| 1032 | -program-transform-name | --program-transform-name \ |
| 1033 | | --program-transform-nam | --program-transform-na \ |
| 1034 | | --program-transform-n | --program-transform- \ |
| 1035 | | --program-transform | --program-transfor \ |
| 1036 | | --program-transfo | --program-transf \ |
| 1037 | | --program-trans | --program-tran \ |
| 1038 | | --progr-tra | --program-tr | --program-t) |
| 1039 | ac_prev=program_transform_name ;; |
| 1040 | -program-transform-name=* | --program-transform-name=* \ |
| 1041 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1042 | | --program-transform-n=* | --program-transform-=* \ |
| 1043 | | --program-transform=* | --program-transfor=* \ |
| 1044 | | --program-transfo=* | --program-transf=* \ |
| 1045 | | --program-trans=* | --program-tran=* \ |
| 1046 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1047 | program_transform_name=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1048 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1049 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1050 | ac_prev=pdfdir ;; |
| 1051 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1052 | pdfdir=$ac_optarg ;; |
| 1053 | |
| 1054 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1055 | ac_prev=psdir ;; |
| 1056 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1057 | psdir=$ac_optarg ;; |
| 1058 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1059 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1060 | | -silent | --silent | --silen | --sile | --sil) |
| 1061 | silent=yes ;; |
| 1062 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1063 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1064 | ac_prev=sbindir ;; |
| 1065 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1066 | | --sbi=* | --sb=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1067 | sbindir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1068 | |
| 1069 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1070 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1071 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1072 | | --sha | --sh) |
| 1073 | ac_prev=sharedstatedir ;; |
| 1074 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1075 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1076 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1077 | | --sha=* | --sh=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1078 | sharedstatedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1079 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1080 | -site | --site | --sit) |
| 1081 | ac_prev=site ;; |
| 1082 | -site=* | --site=* | --sit=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1083 | site=$ac_optarg ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1084 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1085 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1086 | ac_prev=srcdir ;; |
| 1087 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1088 | srcdir=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1089 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1090 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1091 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1092 | ac_prev=sysconfdir ;; |
| 1093 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1094 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1095 | sysconfdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1096 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1097 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1098 | ac_prev=target_alias ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1099 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1100 | target_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1101 | |
| 1102 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1103 | verbose=yes ;; |
| 1104 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1105 | -version | --version | --versio | --versi | --vers | -V) |
| 1106 | ac_init_version=: ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1107 | |
| 1108 | -with-* | --with-*) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1109 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1110 | # Reject names that are not valid shell variable names. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1111 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 1112 | as_fn_error $? "invalid package name: $ac_useropt" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1113 | ac_useropt_orig=$ac_useropt |
| 1114 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1115 | case $ac_user_opts in |
| 1116 | *" |
| 1117 | "with_$ac_useropt" |
| 1118 | "*) ;; |
| 1119 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1120 | ac_unrecognized_sep=', ';; |
| 1121 | esac |
| 1122 | eval with_$ac_useropt=\$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1123 | |
| 1124 | -without-* | --without-*) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1125 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1126 | # Reject names that are not valid shell variable names. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1127 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 1128 | as_fn_error $? "invalid package name: $ac_useropt" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1129 | ac_useropt_orig=$ac_useropt |
| 1130 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1131 | case $ac_user_opts in |
| 1132 | *" |
| 1133 | "with_$ac_useropt" |
| 1134 | "*) ;; |
| 1135 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1136 | ac_unrecognized_sep=', ';; |
| 1137 | esac |
| 1138 | eval with_$ac_useropt=no ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1139 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1140 | --x) |
| 1141 | # Obsolete; use --with-x. |
| 1142 | with_x=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1143 | |
| 1144 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1145 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1146 | ac_prev=x_includes ;; |
| 1147 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1148 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1149 | x_includes=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1150 | |
| 1151 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1152 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1153 | ac_prev=x_libraries ;; |
| 1154 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1155 | | --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] | 1156 | x_libraries=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1157 | |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 1158 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
| 1159 | Try \`$0 --help' for more information" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1160 | ;; |
| 1161 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1162 | *=*) |
| 1163 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1164 | # Reject names that are not valid shell variable names. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1165 | case $ac_envvar in #( |
| 1166 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 1167 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1168 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1169 | eval $ac_envvar=\$ac_optarg |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1170 | export $ac_envvar ;; |
| 1171 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1172 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1173 | # FIXME: should be removed in autoconf 3.0. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1174 | $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] | 1175 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1176 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 1177 | : ${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] | 1178 | ;; |
| 1179 | |
| 1180 | esac |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1181 | done |
| 1182 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1183 | if test -n "$ac_prev"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1184 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 1185 | as_fn_error $? "missing argument to $ac_option" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1186 | fi |
| 1187 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1188 | if test -n "$ac_unrecognized_opts"; then |
| 1189 | case $enable_option_checking in |
| 1190 | no) ;; |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 1191 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1192 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1193 | esac |
| 1194 | fi |
| 1195 | |
| 1196 | # Check all directory arguments for consistency. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1197 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1198 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1199 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1200 | libdir localedir mandir |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1201 | do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1202 | eval ac_val=\$$ac_var |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1203 | # Remove trailing slashes. |
| 1204 | case $ac_val in |
| 1205 | */ ) |
| 1206 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1207 | eval $ac_var=\$ac_val;; |
| 1208 | esac |
| 1209 | # Be sure to have absolute directory names. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1210 | case $ac_val in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1211 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1212 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1213 | esac |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 1214 | 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] | 1215 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1216 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1217 | # There might be people who depend on the old broken behavior: `$host' |
| 1218 | # used to hold the argument of --host etc. |
| 1219 | # FIXME: To remove some day. |
| 1220 | build=$build_alias |
| 1221 | host=$host_alias |
| 1222 | target=$target_alias |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1223 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1224 | # FIXME: To remove some day. |
| 1225 | if test "x$host_alias" != x; then |
| 1226 | if test "x$build_alias" = x; then |
| 1227 | cross_compiling=maybe |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 1228 | $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. |
| 1229 | 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] | 1230 | elif test "x$build_alias" != "x$host_alias"; then |
| 1231 | cross_compiling=yes |
| 1232 | fi |
| 1233 | fi |
| 1234 | |
| 1235 | ac_tool_prefix= |
| 1236 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1237 | |
| 1238 | test "$silent" = yes && exec 6>/dev/null |
| 1239 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1240 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1241 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1242 | ac_ls_di=`ls -di .` && |
| 1243 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 1244 | as_fn_error $? "working directory cannot be determined" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1245 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 1246 | as_fn_error $? "pwd does not report name of working directory" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1247 | |
| 1248 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1249 | # Find the source files, if location was not specified. |
| 1250 | if test -z "$srcdir"; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1251 | ac_srcdir_defaulted=yes |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1252 | # Try the directory containing this script, then the parent directory. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1253 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1254 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1255 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1256 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1257 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1258 | $as_echo X"$as_myself" | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1259 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1260 | s//\1/ |
| 1261 | q |
| 1262 | } |
| 1263 | /^X\(\/\/\)[^/].*/{ |
| 1264 | s//\1/ |
| 1265 | q |
| 1266 | } |
| 1267 | /^X\(\/\/\)$/{ |
| 1268 | s//\1/ |
| 1269 | q |
| 1270 | } |
| 1271 | /^X\(\/\).*/{ |
| 1272 | s//\1/ |
| 1273 | q |
| 1274 | } |
| 1275 | s/.*/./; q'` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1276 | srcdir=$ac_confdir |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1277 | if test ! -r "$srcdir/$ac_unique_file"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1278 | srcdir=.. |
| 1279 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1280 | else |
| 1281 | ac_srcdir_defaulted=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1282 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1283 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1284 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 1285 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1286 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1287 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1288 | ac_abs_confdir=`( |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 1289 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1290 | pwd)` |
| 1291 | # When building in place, set srcdir=. |
| 1292 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1293 | srcdir=. |
| 1294 | fi |
| 1295 | # Remove unnecessary trailing slashes from srcdir. |
| 1296 | # Double slashes in file names in object file debugging info |
| 1297 | # mess up M-x gdb in Emacs. |
| 1298 | case $srcdir in |
| 1299 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1300 | esac |
| 1301 | for ac_var in $ac_precious_vars; do |
| 1302 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1303 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1304 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1305 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1306 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1307 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1308 | # |
| 1309 | # Report the --help message. |
| 1310 | # |
| 1311 | if test "$ac_init_help" = "long"; then |
| 1312 | # Omit some internal or obsolete options to make the list less imposing. |
| 1313 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1314 | cat <<_ACEOF |
Georg Brandl | 3ebb6b3 | 2011-02-20 10:37:07 +0000 | [diff] [blame] | 1315 | \`configure' configures python 3.3 to adapt to many kinds of systems. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1316 | |
| 1317 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1318 | |
| 1319 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1320 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1321 | |
| 1322 | Defaults for the options are specified in brackets. |
| 1323 | |
| 1324 | Configuration: |
| 1325 | -h, --help display this help and exit |
| 1326 | --help=short display options specific to this package |
| 1327 | --help=recursive display the short help of all the included packages |
| 1328 | -V, --version display version information and exit |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 1329 | -q, --quiet, --silent do not print \`checking ...' messages |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1330 | --cache-file=FILE cache test results in FILE [disabled] |
| 1331 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1332 | -n, --no-create do not create output files |
| 1333 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1334 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1335 | Installation directories: |
| 1336 | --prefix=PREFIX install architecture-independent files in PREFIX |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1337 | [$ac_default_prefix] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1338 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1339 | [PREFIX] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1340 | |
| 1341 | By default, \`make install' will install all the files in |
| 1342 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1343 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1344 | for instance \`--prefix=\$HOME'. |
| 1345 | |
| 1346 | For better control, use the options below. |
| 1347 | |
| 1348 | Fine tuning of the installation directories: |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1349 | --bindir=DIR user executables [EPREFIX/bin] |
| 1350 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1351 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1352 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1353 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1354 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1355 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1356 | --includedir=DIR C header files [PREFIX/include] |
| 1357 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1358 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1359 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1360 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1361 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1362 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1363 | --docdir=DIR documentation root [DATAROOTDIR/doc/python] |
| 1364 | --htmldir=DIR html documentation [DOCDIR] |
| 1365 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1366 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1367 | --psdir=DIR ps documentation [DOCDIR] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1368 | _ACEOF |
| 1369 | |
| 1370 | cat <<\_ACEOF |
| 1371 | _ACEOF |
| 1372 | fi |
| 1373 | |
| 1374 | if test -n "$ac_init_help"; then |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1375 | case $ac_init_help in |
Georg Brandl | 3ebb6b3 | 2011-02-20 10:37:07 +0000 | [diff] [blame] | 1376 | short | recursive ) echo "Configuration of python 3.3:";; |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1377 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1378 | cat <<\_ACEOF |
| 1379 | |
| 1380 | Optional Features: |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1381 | --disable-option-checking ignore unrecognized --enable/--with options |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1382 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1383 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Christian Heimes | 68f5fbe | 2008-02-14 08:27:37 +0000 | [diff] [blame] | 1384 | --enable-universalsdk[=SDKDIR] |
Christian Heimes | 292d351 | 2008-02-03 16:51:08 +0000 | [diff] [blame] | 1385 | Build against Mac OS X 10.4u SDK (ppc/i386) |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1386 | --enable-framework[=INSTALLDIR] |
| 1387 | Build (MacOSX|Darwin) framework |
| 1388 | --enable-shared disable/enable building shared python library |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 1389 | --enable-profiling enable C-level code profiling |
Benjamin Peterson | 076ed00 | 2010-10-31 17:11:02 +0000 | [diff] [blame] | 1390 | --enable-loadable-sqlite-extensions |
| 1391 | support loadable extensions in _sqlite module |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1392 | --enable-ipv6 Enable ipv6 (with ipv4) support |
| 1393 | --disable-ipv6 Disable ipv6 support |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 1394 | --enable-big-digits[=BITS] |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1395 | use big digits for Python longs [[BITS=30]] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1396 | |
| 1397 | Optional Packages: |
| 1398 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1399 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 1400 | --with-universal-archs=ARCH |
| 1401 | select architectures for universal build ("32-bit", |
Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 1402 | "64-bit", "3-way", "intel" or "all") |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 1403 | --with-framework-name=FRAMEWORK |
| 1404 | specify an alternate name of the framework built |
| 1405 | with --enable-framework |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1406 | --without-gcc never use gcc |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 1407 | --with-cxx-main=<compiler> |
| 1408 | compile main() and link python executable with C++ |
| 1409 | compiler |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1410 | --with-suffix=.exe set executable suffix |
| 1411 | --with-pydebug build with Py_DEBUG defined |
| 1412 | --with-libs='lib1 ...' link against additional libs |
Benjamin Peterson | b2d9046 | 2009-12-31 03:23:10 +0000 | [diff] [blame] | 1413 | --with-system-expat build pyexpat module using an installed expat |
| 1414 | library |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 1415 | --with-system-ffi build _ctypes module using an installed ffi library |
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 1416 | --with-dbmliborder=db1:db2:... |
| 1417 | order to check db backends for dbm. Valid value is a |
| 1418 | colon separated string with the backend names |
| 1419 | `ndbm', `gdbm' and `bdb'. |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1420 | --with-signal-module disable/enable signal module |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1421 | --with(out)-threads[=DIRECTORY] |
| 1422 | disable/enable thread support |
| 1423 | --with(out)-thread[=DIRECTORY] |
| 1424 | deprecated; use --with(out)-threads |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1425 | --with(out)-doc-strings disable/enable documentation strings |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 1426 | --with(out)-tsc enable/disable timestamp counter profile |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1427 | --with(out)-pymalloc disable/enable specialized mallocs |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 1428 | --with-valgrind Enable Valgrind support |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1429 | --with-fpectl enable SIGFPE catching |
| 1430 | --with-libm=STRING math library |
| 1431 | --with-libc=STRING C library |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 1432 | --with-wide-unicode Use 4-byte Unicode characters (default is 2 bytes) |
Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 1433 | --with(out)-computed-gotos |
| 1434 | Use computed gotos in evaluation loop (enabled by |
| 1435 | default on supported compilers) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1436 | |
| 1437 | Some influential environment variables: |
| 1438 | CC C compiler command |
| 1439 | CFLAGS C compiler flags |
| 1440 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1441 | nonstandard directory <lib dir> |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1442 | LIBS libraries to pass to the linker, e.g. -l<library> |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1443 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1444 | you have headers in a nonstandard directory <include dir> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1445 | CPP C preprocessor |
| 1446 | |
| 1447 | Use these variables to override the choices made by `configure' or to help |
| 1448 | it to find libraries and programs with nonstandard names/locations. |
| 1449 | |
Georg Brandl | e2e1561 | 2009-05-20 18:25:10 +0000 | [diff] [blame] | 1450 | Report bugs to <http://bugs.python.org/>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1451 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1452 | ac_status=$? |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1453 | fi |
| 1454 | |
| 1455 | if test "$ac_init_help" = "recursive"; then |
| 1456 | # If there are subdirs, report their specific --help. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1457 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1458 | test -d "$ac_dir" || |
| 1459 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1460 | continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1461 | ac_builddir=. |
| 1462 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1463 | case "$ac_dir" in |
| 1464 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1465 | *) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1466 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1467 | # A ".." for each directory in $ac_dir_suffix. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1468 | 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] | 1469 | case $ac_top_builddir_sub in |
| 1470 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1471 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1472 | esac ;; |
| 1473 | esac |
| 1474 | ac_abs_top_builddir=$ac_pwd |
| 1475 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1476 | # for backward compatibility: |
| 1477 | ac_top_builddir=$ac_top_build_prefix |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1478 | |
| 1479 | case $srcdir in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1480 | .) # We are building in place. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1481 | ac_srcdir=. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1482 | ac_top_srcdir=$ac_top_builddir_sub |
| 1483 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1484 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1485 | ac_srcdir=$srcdir$ac_dir_suffix; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1486 | ac_top_srcdir=$srcdir |
| 1487 | ac_abs_top_srcdir=$srcdir ;; |
| 1488 | *) # Relative name. |
| 1489 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1490 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1491 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1492 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1493 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1494 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1495 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1496 | # Check for guested configure. |
| 1497 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1498 | echo && |
| 1499 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1500 | elif test -f "$ac_srcdir/configure"; then |
| 1501 | echo && |
| 1502 | $SHELL "$ac_srcdir/configure" --help=recursive |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1503 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1504 | $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] | 1505 | fi || ac_status=$? |
| 1506 | cd "$ac_pwd" || { ac_status=$?; break; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1507 | done |
| 1508 | fi |
| 1509 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1510 | test -n "$ac_init_help" && exit $ac_status |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1511 | if $ac_init_version; then |
| 1512 | cat <<\_ACEOF |
Georg Brandl | 3ebb6b3 | 2011-02-20 10:37:07 +0000 | [diff] [blame] | 1513 | python configure 3.3 |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 1514 | generated by GNU Autoconf 2.67 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1515 | |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 1516 | Copyright (C) 2010 Free Software Foundation, Inc. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1517 | This configure script is free software; the Free Software Foundation |
| 1518 | gives unlimited permission to copy, distribute and modify it. |
| 1519 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1520 | exit |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1521 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1522 | |
| 1523 | ## ------------------------ ## |
| 1524 | ## Autoconf initialization. ## |
| 1525 | ## ------------------------ ## |
| 1526 | |
| 1527 | # ac_fn_c_try_compile LINENO |
| 1528 | # -------------------------- |
| 1529 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1530 | ac_fn_c_try_compile () |
| 1531 | { |
| 1532 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1533 | rm -f conftest.$ac_objext |
| 1534 | if { { ac_try="$ac_compile" |
| 1535 | case "(($ac_try" in |
| 1536 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1537 | *) ac_try_echo=$ac_try;; |
| 1538 | esac |
| 1539 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1540 | $as_echo "$ac_try_echo"; } >&5 |
| 1541 | (eval "$ac_compile") 2>conftest.err |
| 1542 | ac_status=$? |
| 1543 | if test -s conftest.err; then |
| 1544 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1545 | cat conftest.er1 >&5 |
| 1546 | mv -f conftest.er1 conftest.err |
| 1547 | fi |
| 1548 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1549 | test $ac_status = 0; } && { |
| 1550 | test -z "$ac_c_werror_flag" || |
| 1551 | test ! -s conftest.err |
| 1552 | } && test -s conftest.$ac_objext; then : |
| 1553 | ac_retval=0 |
| 1554 | else |
| 1555 | $as_echo "$as_me: failed program was:" >&5 |
| 1556 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1557 | |
| 1558 | ac_retval=1 |
| 1559 | fi |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 1560 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1561 | as_fn_set_status $ac_retval |
| 1562 | |
| 1563 | } # ac_fn_c_try_compile |
| 1564 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1565 | # ac_fn_c_try_link LINENO |
| 1566 | # ----------------------- |
| 1567 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1568 | ac_fn_c_try_link () |
| 1569 | { |
| 1570 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1571 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 1572 | if { { ac_try="$ac_link" |
| 1573 | case "(($ac_try" in |
| 1574 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1575 | *) ac_try_echo=$ac_try;; |
| 1576 | esac |
| 1577 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1578 | $as_echo "$ac_try_echo"; } >&5 |
| 1579 | (eval "$ac_link") 2>conftest.err |
| 1580 | ac_status=$? |
| 1581 | if test -s conftest.err; then |
| 1582 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1583 | cat conftest.er1 >&5 |
| 1584 | mv -f conftest.er1 conftest.err |
| 1585 | fi |
| 1586 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1587 | test $ac_status = 0; } && { |
| 1588 | test -z "$ac_c_werror_flag" || |
| 1589 | test ! -s conftest.err |
| 1590 | } && test -s conftest$ac_exeext && { |
| 1591 | test "$cross_compiling" = yes || |
| 1592 | $as_test_x conftest$ac_exeext |
| 1593 | }; then : |
| 1594 | ac_retval=0 |
| 1595 | else |
| 1596 | $as_echo "$as_me: failed program was:" >&5 |
| 1597 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1598 | |
| 1599 | ac_retval=1 |
| 1600 | fi |
| 1601 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1602 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1603 | # interfere with the next link command; also delete a directory that is |
| 1604 | # left behind by Apple's compiler. We do this before executing the actions. |
| 1605 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 1606 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1607 | as_fn_set_status $ac_retval |
| 1608 | |
| 1609 | } # ac_fn_c_try_link |
| 1610 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1611 | # ac_fn_c_try_cpp LINENO |
| 1612 | # ---------------------- |
| 1613 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1614 | ac_fn_c_try_cpp () |
| 1615 | { |
| 1616 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1617 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1618 | case "(($ac_try" in |
| 1619 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1620 | *) ac_try_echo=$ac_try;; |
| 1621 | esac |
| 1622 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1623 | $as_echo "$ac_try_echo"; } >&5 |
| 1624 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1625 | ac_status=$? |
| 1626 | if test -s conftest.err; then |
| 1627 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1628 | cat conftest.er1 >&5 |
| 1629 | mv -f conftest.er1 conftest.err |
| 1630 | fi |
| 1631 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 1632 | test $ac_status = 0; } > conftest.i && { |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1633 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 1634 | test ! -s conftest.err |
| 1635 | }; then : |
| 1636 | ac_retval=0 |
| 1637 | else |
| 1638 | $as_echo "$as_me: failed program was:" >&5 |
| 1639 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1640 | |
| 1641 | ac_retval=1 |
| 1642 | fi |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 1643 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1644 | as_fn_set_status $ac_retval |
| 1645 | |
| 1646 | } # ac_fn_c_try_cpp |
| 1647 | |
| 1648 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
| 1649 | # ------------------------------------------------------- |
| 1650 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
| 1651 | # the include files in INCLUDES and setting the cache variable VAR |
| 1652 | # accordingly. |
| 1653 | ac_fn_c_check_header_mongrel () |
| 1654 | { |
| 1655 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 1656 | if eval "test \"\${$3+set}\"" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1657 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1658 | $as_echo_n "checking for $2... " >&6; } |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 1659 | if eval "test \"\${$3+set}\"" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1660 | $as_echo_n "(cached) " >&6 |
| 1661 | fi |
| 1662 | eval ac_res=\$$3 |
| 1663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1664 | $as_echo "$ac_res" >&6; } |
| 1665 | else |
| 1666 | # Is the header compilable? |
| 1667 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
| 1668 | $as_echo_n "checking $2 usability... " >&6; } |
| 1669 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1670 | /* end confdefs.h. */ |
| 1671 | $4 |
| 1672 | #include <$2> |
| 1673 | _ACEOF |
| 1674 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1675 | ac_header_compiler=yes |
| 1676 | else |
| 1677 | ac_header_compiler=no |
| 1678 | fi |
| 1679 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
| 1681 | $as_echo "$ac_header_compiler" >&6; } |
| 1682 | |
| 1683 | # Is the header present? |
| 1684 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
| 1685 | $as_echo_n "checking $2 presence... " >&6; } |
| 1686 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1687 | /* end confdefs.h. */ |
| 1688 | #include <$2> |
| 1689 | _ACEOF |
| 1690 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 1691 | ac_header_preproc=yes |
| 1692 | else |
| 1693 | ac_header_preproc=no |
| 1694 | fi |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 1695 | rm -f conftest.err conftest.i conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
| 1697 | $as_echo "$ac_header_preproc" >&6; } |
| 1698 | |
| 1699 | # So? What about this header? |
| 1700 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
| 1701 | yes:no: ) |
| 1702 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 1703 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 1704 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1705 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1706 | ;; |
| 1707 | no:yes:* ) |
| 1708 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
| 1709 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
| 1710 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
| 1711 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
| 1712 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
| 1713 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
| 1714 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
| 1715 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
| 1716 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1717 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 1718 | ( $as_echo "## -------------------------------------- ## |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1719 | ## Report this to http://bugs.python.org/ ## |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 1720 | ## -------------------------------------- ##" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1721 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 1722 | ;; |
| 1723 | esac |
| 1724 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1725 | $as_echo_n "checking for $2... " >&6; } |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 1726 | if eval "test \"\${$3+set}\"" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1727 | $as_echo_n "(cached) " >&6 |
| 1728 | else |
| 1729 | eval "$3=\$ac_header_compiler" |
| 1730 | fi |
| 1731 | eval ac_res=\$$3 |
| 1732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1733 | $as_echo "$ac_res" >&6; } |
| 1734 | fi |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 1735 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1736 | |
| 1737 | } # ac_fn_c_check_header_mongrel |
| 1738 | |
| 1739 | # ac_fn_c_try_run LINENO |
| 1740 | # ---------------------- |
| 1741 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
| 1742 | # that executables *can* be run. |
| 1743 | ac_fn_c_try_run () |
| 1744 | { |
| 1745 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1746 | if { { ac_try="$ac_link" |
| 1747 | case "(($ac_try" in |
| 1748 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1749 | *) ac_try_echo=$ac_try;; |
| 1750 | esac |
| 1751 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1752 | $as_echo "$ac_try_echo"; } >&5 |
| 1753 | (eval "$ac_link") 2>&5 |
| 1754 | ac_status=$? |
| 1755 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1756 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 1757 | { { case "(($ac_try" in |
| 1758 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1759 | *) ac_try_echo=$ac_try;; |
| 1760 | esac |
| 1761 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1762 | $as_echo "$ac_try_echo"; } >&5 |
| 1763 | (eval "$ac_try") 2>&5 |
| 1764 | ac_status=$? |
| 1765 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1766 | test $ac_status = 0; }; }; then : |
| 1767 | ac_retval=0 |
| 1768 | else |
| 1769 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 1770 | $as_echo "$as_me: failed program was:" >&5 |
| 1771 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1772 | |
| 1773 | ac_retval=$ac_status |
| 1774 | fi |
| 1775 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 1776 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1777 | as_fn_set_status $ac_retval |
| 1778 | |
| 1779 | } # ac_fn_c_try_run |
| 1780 | |
| 1781 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 1782 | # ------------------------------------------------------- |
| 1783 | # Tests whether HEADER exists and can be compiled using the include files in |
| 1784 | # INCLUDES, setting the cache variable VAR accordingly. |
| 1785 | ac_fn_c_check_header_compile () |
| 1786 | { |
| 1787 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1788 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1789 | $as_echo_n "checking for $2... " >&6; } |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 1790 | if eval "test \"\${$3+set}\"" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1791 | $as_echo_n "(cached) " >&6 |
| 1792 | else |
| 1793 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1794 | /* end confdefs.h. */ |
| 1795 | $4 |
| 1796 | #include <$2> |
| 1797 | _ACEOF |
| 1798 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1799 | eval "$3=yes" |
| 1800 | else |
| 1801 | eval "$3=no" |
| 1802 | fi |
| 1803 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1804 | fi |
| 1805 | eval ac_res=\$$3 |
| 1806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1807 | $as_echo "$ac_res" >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 1808 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1809 | |
| 1810 | } # ac_fn_c_check_header_compile |
| 1811 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1812 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
| 1813 | # ------------------------------------------- |
| 1814 | # Tests whether TYPE exists after having included INCLUDES, setting cache |
| 1815 | # variable VAR accordingly. |
| 1816 | ac_fn_c_check_type () |
| 1817 | { |
| 1818 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1819 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1820 | $as_echo_n "checking for $2... " >&6; } |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 1821 | if eval "test \"\${$3+set}\"" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1822 | $as_echo_n "(cached) " >&6 |
| 1823 | else |
| 1824 | eval "$3=no" |
| 1825 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1826 | /* end confdefs.h. */ |
| 1827 | $4 |
| 1828 | int |
| 1829 | main () |
| 1830 | { |
| 1831 | if (sizeof ($2)) |
| 1832 | return 0; |
| 1833 | ; |
| 1834 | return 0; |
| 1835 | } |
| 1836 | _ACEOF |
| 1837 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1838 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1839 | /* end confdefs.h. */ |
| 1840 | $4 |
| 1841 | int |
| 1842 | main () |
| 1843 | { |
| 1844 | if (sizeof (($2))) |
| 1845 | return 0; |
| 1846 | ; |
| 1847 | return 0; |
| 1848 | } |
| 1849 | _ACEOF |
| 1850 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1851 | |
| 1852 | else |
| 1853 | eval "$3=yes" |
| 1854 | fi |
| 1855 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1856 | fi |
| 1857 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1858 | fi |
| 1859 | eval ac_res=\$$3 |
| 1860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1861 | $as_echo "$ac_res" >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 1862 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1863 | |
| 1864 | } # ac_fn_c_check_type |
| 1865 | |
| 1866 | # ac_fn_c_find_uintX_t LINENO BITS VAR |
| 1867 | # ------------------------------------ |
| 1868 | # Finds an unsigned integer type with width BITS, setting cache variable VAR |
| 1869 | # accordingly. |
| 1870 | ac_fn_c_find_uintX_t () |
| 1871 | { |
| 1872 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1873 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 |
| 1874 | $as_echo_n "checking for uint$2_t... " >&6; } |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 1875 | if eval "test \"\${$3+set}\"" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1876 | $as_echo_n "(cached) " >&6 |
| 1877 | else |
| 1878 | eval "$3=no" |
| 1879 | # Order is important - never check a type that is potentially smaller |
| 1880 | # than half of the expected target width. |
| 1881 | for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ |
| 1882 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
| 1883 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1884 | /* end confdefs.h. */ |
| 1885 | $ac_includes_default |
| 1886 | int |
| 1887 | main () |
| 1888 | { |
| 1889 | static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; |
| 1890 | test_array [0] = 0 |
| 1891 | |
| 1892 | ; |
| 1893 | return 0; |
| 1894 | } |
| 1895 | _ACEOF |
| 1896 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1897 | case $ac_type in #( |
| 1898 | uint$2_t) : |
| 1899 | eval "$3=yes" ;; #( |
| 1900 | *) : |
| 1901 | eval "$3=\$ac_type" ;; |
| 1902 | esac |
| 1903 | fi |
| 1904 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 1905 | if eval test \"x\$"$3"\" = x"no"; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1906 | |
| 1907 | else |
| 1908 | break |
| 1909 | fi |
| 1910 | done |
| 1911 | fi |
| 1912 | eval ac_res=\$$3 |
| 1913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1914 | $as_echo "$ac_res" >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 1915 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1916 | |
| 1917 | } # ac_fn_c_find_uintX_t |
| 1918 | |
| 1919 | # ac_fn_c_find_intX_t LINENO BITS VAR |
| 1920 | # ----------------------------------- |
| 1921 | # Finds a signed integer type with width BITS, setting cache variable VAR |
| 1922 | # accordingly. |
| 1923 | ac_fn_c_find_intX_t () |
| 1924 | { |
| 1925 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1926 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 |
| 1927 | $as_echo_n "checking for int$2_t... " >&6; } |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 1928 | if eval "test \"\${$3+set}\"" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1929 | $as_echo_n "(cached) " >&6 |
| 1930 | else |
| 1931 | eval "$3=no" |
| 1932 | # Order is important - never check a type that is potentially smaller |
| 1933 | # than half of the expected target width. |
| 1934 | for ac_type in int$2_t 'int' 'long int' \ |
| 1935 | 'long long int' 'short int' 'signed char'; do |
| 1936 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1937 | /* end confdefs.h. */ |
| 1938 | $ac_includes_default |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 1939 | enum { N = $2 / 2 - 1 }; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1940 | int |
| 1941 | main () |
| 1942 | { |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 1943 | static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1944 | test_array [0] = 0 |
| 1945 | |
| 1946 | ; |
| 1947 | return 0; |
| 1948 | } |
| 1949 | _ACEOF |
| 1950 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1951 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1952 | /* end confdefs.h. */ |
| 1953 | $ac_includes_default |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 1954 | enum { N = $2 / 2 - 1 }; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1955 | int |
| 1956 | main () |
| 1957 | { |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 1958 | static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1959 | < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; |
| 1960 | test_array [0] = 0 |
| 1961 | |
| 1962 | ; |
| 1963 | return 0; |
| 1964 | } |
| 1965 | _ACEOF |
| 1966 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1967 | |
| 1968 | else |
| 1969 | case $ac_type in #( |
| 1970 | int$2_t) : |
| 1971 | eval "$3=yes" ;; #( |
| 1972 | *) : |
| 1973 | eval "$3=\$ac_type" ;; |
| 1974 | esac |
| 1975 | fi |
| 1976 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1977 | fi |
| 1978 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 1979 | if eval test \"x\$"$3"\" = x"no"; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1980 | |
| 1981 | else |
| 1982 | break |
| 1983 | fi |
| 1984 | done |
| 1985 | fi |
| 1986 | eval ac_res=\$$3 |
| 1987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1988 | $as_echo "$ac_res" >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 1989 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1990 | |
| 1991 | } # ac_fn_c_find_intX_t |
| 1992 | |
| 1993 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
| 1994 | # -------------------------------------------- |
| 1995 | # Tries to find the compile-time value of EXPR in a program that includes |
| 1996 | # INCLUDES, setting VAR accordingly. Returns whether the value could be |
| 1997 | # computed |
| 1998 | ac_fn_c_compute_int () |
| 1999 | { |
| 2000 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2001 | if test "$cross_compiling" = yes; then |
| 2002 | # Depending upon the size, compute the lo and hi bounds. |
| 2003 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2004 | /* end confdefs.h. */ |
| 2005 | $4 |
| 2006 | int |
| 2007 | main () |
| 2008 | { |
| 2009 | static int test_array [1 - 2 * !(($2) >= 0)]; |
| 2010 | test_array [0] = 0 |
| 2011 | |
| 2012 | ; |
| 2013 | return 0; |
| 2014 | } |
| 2015 | _ACEOF |
| 2016 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2017 | ac_lo=0 ac_mid=0 |
| 2018 | while :; do |
| 2019 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2020 | /* end confdefs.h. */ |
| 2021 | $4 |
| 2022 | int |
| 2023 | main () |
| 2024 | { |
| 2025 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
| 2026 | test_array [0] = 0 |
| 2027 | |
| 2028 | ; |
| 2029 | return 0; |
| 2030 | } |
| 2031 | _ACEOF |
| 2032 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2033 | ac_hi=$ac_mid; break |
| 2034 | else |
| 2035 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val |
| 2036 | if test $ac_lo -le $ac_mid; then |
| 2037 | ac_lo= ac_hi= |
| 2038 | break |
| 2039 | fi |
| 2040 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val |
| 2041 | fi |
| 2042 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2043 | done |
| 2044 | else |
| 2045 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2046 | /* end confdefs.h. */ |
| 2047 | $4 |
| 2048 | int |
| 2049 | main () |
| 2050 | { |
| 2051 | static int test_array [1 - 2 * !(($2) < 0)]; |
| 2052 | test_array [0] = 0 |
| 2053 | |
| 2054 | ; |
| 2055 | return 0; |
| 2056 | } |
| 2057 | _ACEOF |
| 2058 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2059 | ac_hi=-1 ac_mid=-1 |
| 2060 | while :; do |
| 2061 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2062 | /* end confdefs.h. */ |
| 2063 | $4 |
| 2064 | int |
| 2065 | main () |
| 2066 | { |
| 2067 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; |
| 2068 | test_array [0] = 0 |
| 2069 | |
| 2070 | ; |
| 2071 | return 0; |
| 2072 | } |
| 2073 | _ACEOF |
| 2074 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2075 | ac_lo=$ac_mid; break |
| 2076 | else |
| 2077 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val |
| 2078 | if test $ac_mid -le $ac_hi; then |
| 2079 | ac_lo= ac_hi= |
| 2080 | break |
| 2081 | fi |
| 2082 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val |
| 2083 | fi |
| 2084 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2085 | done |
| 2086 | else |
| 2087 | ac_lo= ac_hi= |
| 2088 | fi |
| 2089 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2090 | fi |
| 2091 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2092 | # Binary search between lo and hi bounds. |
| 2093 | while test "x$ac_lo" != "x$ac_hi"; do |
| 2094 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val |
| 2095 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2096 | /* end confdefs.h. */ |
| 2097 | $4 |
| 2098 | int |
| 2099 | main () |
| 2100 | { |
| 2101 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
| 2102 | test_array [0] = 0 |
| 2103 | |
| 2104 | ; |
| 2105 | return 0; |
| 2106 | } |
| 2107 | _ACEOF |
| 2108 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2109 | ac_hi=$ac_mid |
| 2110 | else |
| 2111 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val |
| 2112 | fi |
| 2113 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2114 | done |
| 2115 | case $ac_lo in #(( |
| 2116 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; |
| 2117 | '') ac_retval=1 ;; |
| 2118 | esac |
| 2119 | else |
| 2120 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2121 | /* end confdefs.h. */ |
| 2122 | $4 |
| 2123 | static long int longval () { return $2; } |
| 2124 | static unsigned long int ulongval () { return $2; } |
| 2125 | #include <stdio.h> |
| 2126 | #include <stdlib.h> |
| 2127 | int |
| 2128 | main () |
| 2129 | { |
| 2130 | |
| 2131 | FILE *f = fopen ("conftest.val", "w"); |
| 2132 | if (! f) |
| 2133 | return 1; |
| 2134 | if (($2) < 0) |
| 2135 | { |
| 2136 | long int i = longval (); |
| 2137 | if (i != ($2)) |
| 2138 | return 1; |
| 2139 | fprintf (f, "%ld", i); |
| 2140 | } |
| 2141 | else |
| 2142 | { |
| 2143 | unsigned long int i = ulongval (); |
| 2144 | if (i != ($2)) |
| 2145 | return 1; |
| 2146 | fprintf (f, "%lu", i); |
| 2147 | } |
| 2148 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 2149 | on some platforms. */ |
| 2150 | return ferror (f) || fclose (f) != 0; |
| 2151 | |
| 2152 | ; |
| 2153 | return 0; |
| 2154 | } |
| 2155 | _ACEOF |
| 2156 | if ac_fn_c_try_run "$LINENO"; then : |
| 2157 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 |
| 2158 | else |
| 2159 | ac_retval=1 |
| 2160 | fi |
| 2161 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 2162 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2163 | rm -f conftest.val |
| 2164 | |
| 2165 | fi |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 2166 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2167 | as_fn_set_status $ac_retval |
| 2168 | |
| 2169 | } # ac_fn_c_compute_int |
| 2170 | |
| 2171 | # ac_fn_c_check_func LINENO FUNC VAR |
| 2172 | # ---------------------------------- |
| 2173 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 2174 | ac_fn_c_check_func () |
| 2175 | { |
| 2176 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2177 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2178 | $as_echo_n "checking for $2... " >&6; } |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 2179 | if eval "test \"\${$3+set}\"" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2180 | $as_echo_n "(cached) " >&6 |
| 2181 | else |
| 2182 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2183 | /* end confdefs.h. */ |
| 2184 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 2185 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 2186 | #define $2 innocuous_$2 |
| 2187 | |
| 2188 | /* System header to define __stub macros and hopefully few prototypes, |
| 2189 | which can conflict with char $2 (); below. |
| 2190 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2191 | <limits.h> exists even on freestanding compilers. */ |
| 2192 | |
| 2193 | #ifdef __STDC__ |
| 2194 | # include <limits.h> |
| 2195 | #else |
| 2196 | # include <assert.h> |
| 2197 | #endif |
| 2198 | |
| 2199 | #undef $2 |
| 2200 | |
| 2201 | /* Override any GCC internal prototype to avoid an error. |
| 2202 | Use char because int might match the return type of a GCC |
| 2203 | builtin and then its argument prototype would still apply. */ |
| 2204 | #ifdef __cplusplus |
| 2205 | extern "C" |
| 2206 | #endif |
| 2207 | char $2 (); |
| 2208 | /* The GNU C library defines this for functions which it implements |
| 2209 | to always fail with ENOSYS. Some functions are actually named |
| 2210 | something starting with __ and the normal name is an alias. */ |
| 2211 | #if defined __stub_$2 || defined __stub___$2 |
| 2212 | choke me |
| 2213 | #endif |
| 2214 | |
| 2215 | int |
| 2216 | main () |
| 2217 | { |
| 2218 | return $2 (); |
| 2219 | ; |
| 2220 | return 0; |
| 2221 | } |
| 2222 | _ACEOF |
| 2223 | if ac_fn_c_try_link "$LINENO"; then : |
| 2224 | eval "$3=yes" |
| 2225 | else |
| 2226 | eval "$3=no" |
| 2227 | fi |
| 2228 | rm -f core conftest.err conftest.$ac_objext \ |
| 2229 | conftest$ac_exeext conftest.$ac_ext |
| 2230 | fi |
| 2231 | eval ac_res=\$$3 |
| 2232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2233 | $as_echo "$ac_res" >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 2234 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2235 | |
| 2236 | } # ac_fn_c_check_func |
| 2237 | |
| 2238 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
| 2239 | # ---------------------------------------------------- |
| 2240 | # Tries to find if the field MEMBER exists in type AGGR, after including |
| 2241 | # INCLUDES, setting cache variable VAR accordingly. |
| 2242 | ac_fn_c_check_member () |
| 2243 | { |
| 2244 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2245 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 |
| 2246 | $as_echo_n "checking for $2.$3... " >&6; } |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 2247 | if eval "test \"\${$4+set}\"" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2248 | $as_echo_n "(cached) " >&6 |
| 2249 | else |
| 2250 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2251 | /* end confdefs.h. */ |
| 2252 | $5 |
| 2253 | int |
| 2254 | main () |
| 2255 | { |
| 2256 | static $2 ac_aggr; |
| 2257 | if (ac_aggr.$3) |
| 2258 | return 0; |
| 2259 | ; |
| 2260 | return 0; |
| 2261 | } |
| 2262 | _ACEOF |
| 2263 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2264 | eval "$4=yes" |
| 2265 | else |
| 2266 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2267 | /* end confdefs.h. */ |
| 2268 | $5 |
| 2269 | int |
| 2270 | main () |
| 2271 | { |
| 2272 | static $2 ac_aggr; |
| 2273 | if (sizeof ac_aggr.$3) |
| 2274 | return 0; |
| 2275 | ; |
| 2276 | return 0; |
| 2277 | } |
| 2278 | _ACEOF |
| 2279 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2280 | eval "$4=yes" |
| 2281 | else |
| 2282 | eval "$4=no" |
| 2283 | fi |
| 2284 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2285 | fi |
| 2286 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2287 | fi |
| 2288 | eval ac_res=\$$4 |
| 2289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2290 | $as_echo "$ac_res" >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 2291 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2292 | |
| 2293 | } # ac_fn_c_check_member |
| 2294 | |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 2295 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES |
| 2296 | # --------------------------------------------- |
| 2297 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR |
| 2298 | # accordingly. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2299 | ac_fn_c_check_decl () |
| 2300 | { |
| 2301 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 2302 | as_decl_name=`echo $2|sed 's/ *(.*//'` |
| 2303 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` |
| 2304 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 |
| 2305 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } |
| 2306 | if eval "test \"\${$3+set}\"" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2307 | $as_echo_n "(cached) " >&6 |
| 2308 | else |
| 2309 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2310 | /* end confdefs.h. */ |
| 2311 | $4 |
| 2312 | int |
| 2313 | main () |
| 2314 | { |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 2315 | #ifndef $as_decl_name |
| 2316 | #ifdef __cplusplus |
| 2317 | (void) $as_decl_use; |
| 2318 | #else |
| 2319 | (void) $as_decl_name; |
| 2320 | #endif |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2321 | #endif |
| 2322 | |
| 2323 | ; |
| 2324 | return 0; |
| 2325 | } |
| 2326 | _ACEOF |
| 2327 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2328 | eval "$3=yes" |
| 2329 | else |
| 2330 | eval "$3=no" |
| 2331 | fi |
| 2332 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2333 | fi |
| 2334 | eval ac_res=\$$3 |
| 2335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2336 | $as_echo "$ac_res" >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 2337 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2338 | |
| 2339 | } # ac_fn_c_check_decl |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2340 | cat >config.log <<_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2341 | This file contains any messages produced by compilers while |
| 2342 | running configure, to aid debugging if configure makes a mistake. |
| 2343 | |
Georg Brandl | 3ebb6b3 | 2011-02-20 10:37:07 +0000 | [diff] [blame] | 2344 | It was created by python $as_me 3.3, which was |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 2345 | generated by GNU Autoconf 2.67. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2346 | |
| 2347 | $ $0 $@ |
| 2348 | |
| 2349 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2350 | exec 5>>config.log |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2351 | { |
| 2352 | cat <<_ASUNAME |
| 2353 | ## --------- ## |
| 2354 | ## Platform. ## |
| 2355 | ## --------- ## |
| 2356 | |
| 2357 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 2358 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 2359 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 2360 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 2361 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 2362 | |
| 2363 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 2364 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 2365 | |
| 2366 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 2367 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 2368 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2369 | /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] | 2370 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 2371 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 2372 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 2373 | |
| 2374 | _ASUNAME |
| 2375 | |
| 2376 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2377 | for as_dir in $PATH |
| 2378 | do |
| 2379 | IFS=$as_save_IFS |
| 2380 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2381 | $as_echo "PATH: $as_dir" |
| 2382 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2383 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2384 | |
| 2385 | } >&5 |
| 2386 | |
| 2387 | cat >&5 <<_ACEOF |
| 2388 | |
| 2389 | |
| 2390 | ## ----------- ## |
| 2391 | ## Core tests. ## |
| 2392 | ## ----------- ## |
| 2393 | |
| 2394 | _ACEOF |
| 2395 | |
| 2396 | |
| 2397 | # Keep a trace of the command line. |
| 2398 | # 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] | 2399 | # 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] | 2400 | # Also quote any args containing shell meta-characters. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2401 | # Make two passes to allow for proper duplicate-argument suppression. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2402 | ac_configure_args= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2403 | ac_configure_args0= |
| 2404 | ac_configure_args1= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2405 | ac_must_keep_next=false |
| 2406 | for ac_pass in 1 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2407 | do |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2408 | for ac_arg |
| 2409 | do |
| 2410 | case $ac_arg in |
| 2411 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 2412 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 2413 | | -silent | --silent | --silen | --sile | --sil) |
| 2414 | continue ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2415 | *\'*) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2416 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2417 | esac |
| 2418 | case $ac_pass in |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2419 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2420 | 2) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2421 | as_fn_append ac_configure_args1 " '$ac_arg'" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2422 | if test $ac_must_keep_next = true; then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2423 | ac_must_keep_next=false # Got value, back to normal. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2424 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2425 | case $ac_arg in |
| 2426 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 2427 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 2428 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 2429 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 2430 | case "$ac_configure_args0 " in |
| 2431 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 2432 | esac |
| 2433 | ;; |
| 2434 | -* ) ac_must_keep_next=true ;; |
| 2435 | esac |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2436 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2437 | as_fn_append ac_configure_args " '$ac_arg'" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2438 | ;; |
| 2439 | esac |
| 2440 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2441 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2442 | { ac_configure_args0=; unset ac_configure_args0;} |
| 2443 | { ac_configure_args1=; unset ac_configure_args1;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2444 | |
| 2445 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 2446 | # config.log. We remove comments because anyway the quotes in there |
| 2447 | # would cause problems or look ugly. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2448 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 2449 | # 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] | 2450 | trap 'exit_status=$? |
| 2451 | # Save into config.log some information that might help in debugging. |
| 2452 | { |
| 2453 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2454 | |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 2455 | $as_echo "## ---------------- ## |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2456 | ## Cache variables. ## |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 2457 | ## ---------------- ##" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2458 | echo |
| 2459 | # The following way of writing the cache mishandles newlines in values, |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2460 | ( |
| 2461 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 2462 | eval ac_val=\$$ac_var |
| 2463 | case $ac_val in #( |
| 2464 | *${as_nl}*) |
| 2465 | case $ac_var in #( |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2466 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 2467 | $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] | 2468 | esac |
| 2469 | case $ac_var in #( |
| 2470 | _ | IFS | as_nl) ;; #( |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2471 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 2472 | *) { eval $ac_var=; unset $ac_var;} ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2473 | esac ;; |
| 2474 | esac |
| 2475 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2476 | (set) 2>&1 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2477 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 2478 | *${as_nl}ac_space=\ *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2479 | sed -n \ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2480 | "s/'\''/'\''\\\\'\'''\''/g; |
| 2481 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 2482 | ;; #( |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 2483 | *) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2484 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 2485 | ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2486 | esac | |
| 2487 | sort |
| 2488 | ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2489 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2490 | |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 2491 | $as_echo "## ----------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2492 | ## Output variables. ## |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 2493 | ## ----------------- ##" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2494 | echo |
| 2495 | for ac_var in $ac_subst_vars |
| 2496 | do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2497 | eval ac_val=\$$ac_var |
| 2498 | case $ac_val in |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2499 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2500 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2501 | $as_echo "$ac_var='\''$ac_val'\''" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2502 | done | sort |
| 2503 | echo |
| 2504 | |
| 2505 | if test -n "$ac_subst_files"; then |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 2506 | $as_echo "## ------------------- ## |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2507 | ## File substitutions. ## |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 2508 | ## ------------------- ##" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2509 | echo |
| 2510 | for ac_var in $ac_subst_files |
| 2511 | do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2512 | eval ac_val=\$$ac_var |
| 2513 | case $ac_val in |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2514 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2515 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2516 | $as_echo "$ac_var='\''$ac_val'\''" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2517 | done | sort |
| 2518 | echo |
| 2519 | fi |
| 2520 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2521 | if test -s confdefs.h; then |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 2522 | $as_echo "## ----------- ## |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2523 | ## confdefs.h. ## |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 2524 | ## ----------- ##" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2525 | echo |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2526 | cat confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2527 | echo |
| 2528 | fi |
| 2529 | test "$ac_signal" != 0 && |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2530 | $as_echo "$as_me: caught signal $ac_signal" |
| 2531 | $as_echo "$as_me: exit $exit_status" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2532 | } >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2533 | rm -f core *.core core.conftest.* && |
| 2534 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2535 | exit $exit_status |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2536 | ' 0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2537 | for ac_signal in 1 2 13 15; do |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2538 | 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] | 2539 | done |
| 2540 | ac_signal=0 |
| 2541 | |
| 2542 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2543 | rm -f -r conftest* confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2544 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2545 | $as_echo "/* confdefs.h */" > confdefs.h |
| 2546 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2547 | # Predefined preprocessor variables. |
| 2548 | |
| 2549 | cat >>confdefs.h <<_ACEOF |
| 2550 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 2551 | _ACEOF |
| 2552 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2553 | cat >>confdefs.h <<_ACEOF |
| 2554 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 2555 | _ACEOF |
| 2556 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2557 | cat >>confdefs.h <<_ACEOF |
| 2558 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 2559 | _ACEOF |
| 2560 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2561 | cat >>confdefs.h <<_ACEOF |
| 2562 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 2563 | _ACEOF |
| 2564 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2565 | cat >>confdefs.h <<_ACEOF |
| 2566 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 2567 | _ACEOF |
| 2568 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2569 | cat >>confdefs.h <<_ACEOF |
| 2570 | #define PACKAGE_URL "$PACKAGE_URL" |
| 2571 | _ACEOF |
| 2572 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2573 | |
| 2574 | # Let the site file select an alternate cache file if it wants to. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2575 | # Prefer an explicitly selected file to automatically selected ones. |
| 2576 | ac_site_file1=NONE |
| 2577 | ac_site_file2=NONE |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2578 | if test -n "$CONFIG_SITE"; then |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 2579 | # We do not want a PATH search for config.site. |
| 2580 | case $CONFIG_SITE in #(( |
| 2581 | -*) ac_site_file1=./$CONFIG_SITE;; |
| 2582 | */*) ac_site_file1=$CONFIG_SITE;; |
| 2583 | *) ac_site_file1=./$CONFIG_SITE;; |
| 2584 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2585 | elif test "x$prefix" != xNONE; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2586 | ac_site_file1=$prefix/share/config.site |
| 2587 | ac_site_file2=$prefix/etc/config.site |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2588 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2589 | ac_site_file1=$ac_default_prefix/share/config.site |
| 2590 | ac_site_file2=$ac_default_prefix/etc/config.site |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2591 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2592 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2593 | do |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2594 | test "x$ac_site_file" = xNONE && continue |
| 2595 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
| 2596 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
| 2597 | $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] | 2598 | sed 's/^/| /' "$ac_site_file" >&5 |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 2599 | . "$ac_site_file" \ |
| 2600 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2601 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2602 | as_fn_error $? "failed to load site script $ac_site_file |
| 2603 | See \`config.log' for more details" "$LINENO" 5 ; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2604 | fi |
| 2605 | done |
| 2606 | |
| 2607 | if test -r "$cache_file"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2608 | # Some versions of bash will fail to source /dev/null (special files |
| 2609 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 2610 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
| 2611 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
| 2612 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2613 | case $cache_file in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2614 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 2615 | *) . "./$cache_file";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2616 | esac |
| 2617 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2618 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2619 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
| 2620 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2621 | >$cache_file |
| 2622 | fi |
| 2623 | |
| 2624 | # Check that the precious variables saved in the cache have kept the same |
| 2625 | # value. |
| 2626 | ac_cache_corrupted=false |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2627 | for ac_var in $ac_precious_vars; do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2628 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 2629 | eval ac_new_set=\$ac_env_${ac_var}_set |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2630 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 2631 | eval ac_new_val=\$ac_env_${ac_var}_value |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2632 | case $ac_old_set,$ac_new_set in |
| 2633 | set,) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2634 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 2635 | $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] | 2636 | ac_cache_corrupted=: ;; |
| 2637 | ,set) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2638 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
| 2639 | $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] | 2640 | ac_cache_corrupted=: ;; |
| 2641 | ,);; |
| 2642 | *) |
| 2643 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2644 | # differences in whitespace do not lead to failure. |
| 2645 | ac_old_val_w=`echo x $ac_old_val` |
| 2646 | ac_new_val_w=`echo x $ac_new_val` |
| 2647 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
| 2648 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
| 2649 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 2650 | ac_cache_corrupted=: |
| 2651 | else |
| 2652 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
| 2653 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 2654 | eval $ac_var=\$ac_old_val |
| 2655 | fi |
| 2656 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
| 2657 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
| 2658 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
| 2659 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2660 | fi;; |
| 2661 | esac |
| 2662 | # Pass precious variables to config.status. |
| 2663 | if test "$ac_new_set" = set; then |
| 2664 | case $ac_new_val in |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2665 | *\'*) 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] | 2666 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 2667 | esac |
| 2668 | case " $ac_configure_args " in |
| 2669 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2670 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2671 | esac |
| 2672 | fi |
| 2673 | done |
| 2674 | if $ac_cache_corrupted; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2675 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2676 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2677 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
| 2678 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 2679 | 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] | 2680 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2681 | ## -------------------- ## |
| 2682 | ## Main body of script. ## |
| 2683 | ## -------------------- ## |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2684 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2685 | ac_ext=c |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2686 | ac_cpp='$CPP $CPPFLAGS' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2687 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2688 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2689 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2690 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2691 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2692 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2693 | ac_config_headers="$ac_config_headers pyconfig.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2694 | |
| 2695 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2696 | |
Benjamin Peterson | d23f822 | 2009-04-05 19:13:16 +0000 | [diff] [blame] | 2697 | if test "$prefix" != "/"; then |
| 2698 | prefix=`echo "$prefix" | sed -e 's/\/$//g'` |
| 2699 | fi |
| 2700 | |
| 2701 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2702 | |
| 2703 | |
Martin v. Löwis | 8316feb | 2003-06-14 07:48:07 +0000 | [diff] [blame] | 2704 | # We don't use PACKAGE_ variables, and they cause conflicts |
| 2705 | # with other autoconf-based packages that include Python.h |
| 2706 | grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new |
| 2707 | rm confdefs.h |
| 2708 | mv confdefs.h.new confdefs.h |
| 2709 | |
Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 2710 | |
Georg Brandl | 3ebb6b3 | 2011-02-20 10:37:07 +0000 | [diff] [blame] | 2711 | VERSION=3.3 |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 2712 | |
Benjamin Peterson | d7f73e9 | 2010-09-05 00:09:07 +0000 | [diff] [blame] | 2713 | # Version number of Python's own shared library file. |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 2714 | |
| 2715 | SOVERSION=1.0 |
| 2716 | |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 2717 | # The later defininition of _XOPEN_SOURCE disables certain features |
| 2718 | # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone). |
| 2719 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2720 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 2721 | |
| 2722 | |
Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 2723 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 2724 | # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable |
| 2725 | # them. |
| 2726 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2727 | $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h |
Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 2728 | |
| 2729 | |
Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 2730 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 2731 | # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable |
| 2732 | # them. |
| 2733 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2734 | $as_echo "#define __BSD_VISIBLE 1" >>confdefs.h |
Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 2735 | |
| 2736 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 2737 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 2738 | # u_int on Irix 5.3. Defining _BSD_TYPES brings it back. |
| 2739 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2740 | $as_echo "#define _BSD_TYPES 1" >>confdefs.h |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 2741 | |
| 2742 | |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 2743 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 2744 | # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable |
| 2745 | # them. |
| 2746 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2747 | $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 2748 | |
| 2749 | |
| 2750 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2751 | define_xopen_source=yes |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 2752 | |
Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 +0000 | [diff] [blame] | 2753 | # Arguments passed to configure. |
| 2754 | |
| 2755 | CONFIG_ARGS="$ac_configure_args" |
| 2756 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2757 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-universalsdk" >&5 |
| 2758 | $as_echo_n "checking for --enable-universalsdk... " >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2759 | # Check whether --enable-universalsdk was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2760 | if test "${enable_universalsdk+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2761 | enableval=$enable_universalsdk; |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2762 | case $enableval in |
| 2763 | yes) |
| 2764 | enableval=/Developer/SDKs/MacOSX10.4u.sdk |
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 2765 | if test ! -d "${enableval}" |
| 2766 | then |
| 2767 | enableval=/ |
| 2768 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2769 | ;; |
| 2770 | esac |
| 2771 | case $enableval in |
| 2772 | no) |
| 2773 | UNIVERSALSDK= |
| 2774 | enable_universalsdk= |
| 2775 | ;; |
| 2776 | *) |
| 2777 | UNIVERSALSDK=$enableval |
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 2778 | if test ! -d "${UNIVERSALSDK}" |
| 2779 | then |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 2780 | as_fn_error $? "--enable-universalsdk specifies non-existing SDK: ${UNIVERSALSDK}" "$LINENO" 5 |
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 2781 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2782 | ;; |
| 2783 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2784 | |
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 2785 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2786 | else |
| 2787 | |
| 2788 | UNIVERSALSDK= |
| 2789 | enable_universalsdk= |
| 2790 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2791 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2792 | |
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 2793 | if test -n "${UNIVERSALSDK}" |
| 2794 | then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSALSDK}" >&5 |
| 2796 | $as_echo "${UNIVERSALSDK}" >&6; } |
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 2797 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2799 | $as_echo "no" >&6; } |
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 2800 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2801 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2802 | |
Benjamin Peterson | 6794aa3 | 2008-07-16 20:33:37 +0000 | [diff] [blame] | 2803 | |
| 2804 | |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 2805 | UNIVERSAL_ARCHS="32-bit" |
Ronald Oussoren | 6f6c562 | 2009-12-24 14:03:19 +0000 | [diff] [blame] | 2806 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2807 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-universal-archs" >&5 |
| 2808 | $as_echo_n "checking for --with-universal-archs... " >&6; } |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 2809 | |
| 2810 | # Check whether --with-universal-archs was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2811 | if test "${with_universal_archs+set}" = set; then : |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 2812 | withval=$with_universal_archs; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 |
| 2814 | $as_echo "$withval" >&6; } |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 2815 | UNIVERSAL_ARCHS="$withval" |
| 2816 | |
| 2817 | else |
| 2818 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: 32-bit" >&5 |
| 2820 | $as_echo "32-bit" >&6; } |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 2821 | |
| 2822 | fi |
| 2823 | |
| 2824 | |
| 2825 | |
| 2826 | |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 2827 | |
| 2828 | # Check whether --with-framework-name was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2829 | if test "${with_framework_name+set}" = set; then : |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 2830 | withval=$with_framework_name; |
| 2831 | PYTHONFRAMEWORK=${withval} |
| 2832 | PYTHONFRAMEWORKDIR=${withval}.framework |
| 2833 | PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'` |
| 2834 | |
| 2835 | else |
| 2836 | |
| 2837 | PYTHONFRAMEWORK=Python |
| 2838 | PYTHONFRAMEWORKDIR=Python.framework |
| 2839 | PYTHONFRAMEWORKIDENTIFIER=org.python.python |
| 2840 | |
| 2841 | fi |
| 2842 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2843 | # Check whether --enable-framework was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2844 | if test "${enable_framework+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2845 | enableval=$enable_framework; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2846 | case $enableval in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2847 | yes) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2848 | enableval=/Library/Frameworks |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2849 | esac |
| 2850 | case $enableval in |
| 2851 | no) |
| 2852 | PYTHONFRAMEWORK= |
| 2853 | PYTHONFRAMEWORKDIR=no-framework |
| 2854 | PYTHONFRAMEWORKPREFIX= |
| 2855 | PYTHONFRAMEWORKINSTALLDIR= |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2856 | FRAMEWORKINSTALLFIRST= |
| 2857 | FRAMEWORKINSTALLLAST= |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 2858 | FRAMEWORKALTINSTALLFIRST= |
| 2859 | FRAMEWORKALTINSTALLLAST= |
| 2860 | if test "x${prefix}" = "xNONE"; then |
| 2861 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
| 2862 | else |
| 2863 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
| 2864 | fi |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2865 | enable_framework= |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2866 | ;; |
| 2867 | *) |
Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 2868 | PYTHONFRAMEWORKPREFIX="${enableval}" |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2869 | PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2870 | FRAMEWORKINSTALLFIRST="frameworkinstallstructure" |
Ronald Oussoren | f6ccbf6 | 2009-06-02 10:55:56 +0000 | [diff] [blame] | 2871 | FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure " |
Ronald Oussoren | 6f6c562 | 2009-12-24 14:03:19 +0000 | [diff] [blame] | 2872 | FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools" |
| 2873 | FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools" |
Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 2874 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" |
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}" |
Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 2878 | |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 2879 | else |
| 2880 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
| 2881 | fi |
Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 2882 | |
| 2883 | case "${enableval}" in |
| 2884 | /System*) |
| 2885 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" |
| 2886 | if test "${prefix}" = "NONE" ; then |
| 2887 | # See below |
| 2888 | FRAMEWORKUNIXTOOLSPREFIX="/usr" |
| 2889 | fi |
| 2890 | ;; |
| 2891 | |
| 2892 | /Library*) |
| 2893 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" |
| 2894 | ;; |
| 2895 | |
| 2896 | */Library/Frameworks) |
| 2897 | MDIR="`dirname "${enableval}"`" |
| 2898 | MDIR="`dirname "${MDIR}"`" |
| 2899 | FRAMEWORKINSTALLAPPSPREFIX="${MDIR}/Applications" |
| 2900 | |
| 2901 | if test "${prefix}" = "NONE"; then |
| 2902 | # User hasn't specified the |
| 2903 | # --prefix option, but wants to install |
| 2904 | # the framework in a non-default location, |
| 2905 | # ensure that the compatibility links get |
| 2906 | # installed relative to that prefix as well |
| 2907 | # instead of in /usr/local. |
| 2908 | FRAMEWORKUNIXTOOLSPREFIX="${MDIR}" |
| 2909 | fi |
| 2910 | ;; |
| 2911 | |
| 2912 | *) |
| 2913 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" |
| 2914 | ;; |
| 2915 | esac |
| 2916 | |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2917 | prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2918 | |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 2919 | # Add files for Mac specific code to the list of output |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2920 | # files: |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2921 | ac_config_files="$ac_config_files Mac/Makefile" |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2922 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2923 | ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile" |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2924 | |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 2925 | ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist" |
| 2926 | |
| 2927 | ac_config_files="$ac_config_files Mac/Resources/app/Info.plist" |
| 2928 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2929 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2930 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2931 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2932 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2933 | PYTHONFRAMEWORK= |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2934 | PYTHONFRAMEWORKDIR=no-framework |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2935 | PYTHONFRAMEWORKPREFIX= |
| 2936 | PYTHONFRAMEWORKINSTALLDIR= |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2937 | FRAMEWORKINSTALLFIRST= |
| 2938 | FRAMEWORKINSTALLLAST= |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 2939 | FRAMEWORKALTINSTALLFIRST= |
| 2940 | FRAMEWORKALTINSTALLLAST= |
| 2941 | if test "x${prefix}" = "xNONE" ; then |
| 2942 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
| 2943 | else |
| 2944 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
| 2945 | fi |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2946 | enable_framework= |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2947 | |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 2948 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2949 | fi |
| 2950 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2951 | |
| 2952 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2953 | |
| 2954 | |
| 2955 | |
| 2956 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2957 | |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 2958 | |
| 2959 | |
| 2960 | |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 2961 | |
Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 2962 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2963 | ##AC_ARG_WITH(dyld, |
Matthias Klose | 2b8733f | 2010-04-25 18:34:36 +0000 | [diff] [blame] | 2964 | ## AS_HELP_STRING([--with-dyld], |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 2965 | ## [Use (OpenStep|Rhapsody) dynamic linker])) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2966 | ## |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2967 | # Set name for machine-dependent library files |
| 2968 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2969 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP" >&5 |
| 2970 | $as_echo_n "checking MACHDEP... " >&6; } |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2971 | if test -z "$MACHDEP" |
| 2972 | then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2973 | ac_sys_system=`uname -s` |
Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 2974 | if test "$ac_sys_system" = "AIX" \ |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 2975 | -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2976 | ac_sys_release=`uname -v` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2977 | else |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2978 | ac_sys_release=`uname -r` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2979 | fi |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2980 | ac_md_system=`echo $ac_sys_system | |
| 2981 | tr -d '/ ' | tr '[A-Z]' '[a-z]'` |
| 2982 | ac_md_release=`echo $ac_sys_release | |
Guido van Rossum | 67b2659 | 2001-10-20 14:21:45 +0000 | [diff] [blame] | 2983 | tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'` |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 2984 | MACHDEP="$ac_md_system$ac_md_release" |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2985 | |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 2986 | case $MACHDEP in |
Andrew M. Kuchling | 5a3e4cb | 2001-07-20 19:29:04 +0000 | [diff] [blame] | 2987 | cygwin*) MACHDEP="cygwin";; |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame] | 2988 | darwin*) MACHDEP="darwin";; |
Martin v. Löwis | f332228 | 2003-07-13 09:46:13 +0000 | [diff] [blame] | 2989 | irix646) MACHDEP="irix6";; |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 2990 | '') MACHDEP="unknown";; |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2991 | esac |
| 2992 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 2993 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2994 | # Some systems cannot stand _XOPEN_SOURCE being defined at all; they |
| 2995 | # disable features if it is defined, without any means to access these |
| 2996 | # features as extensions. For these systems, we skip the definition of |
| 2997 | # _XOPEN_SOURCE. Before adding a system to the list to gain access to |
| 2998 | # some feature, make sure there is no alternative way to access this |
| 2999 | # feature. Also, when using wildcards, make sure you have verified the |
| 3000 | # need for not defining _XOPEN_SOURCE on all systems matching the |
| 3001 | # wildcard, and that the wildcard does not include future systems |
| 3002 | # (which may remove their limitations). |
| 3003 | case $ac_sys_system/$ac_sys_release in |
| 3004 | # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined, |
| 3005 | # 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] | 3006 | # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish. |
Martin v. Löwis | 19ed3c8 | 2010-02-15 21:45:06 +0000 | [diff] [blame] | 3007 | # In addition, Stefan Krah confirms that issue #1244610 exists through |
| 3008 | # OpenBSD 4.6, but is fixed in 4.7. |
| 3009 | OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0123456]) |
Christian Heimes | 5b5e81c | 2007-12-31 16:14:33 +0000 | [diff] [blame] | 3010 | define_xopen_source=no |
| 3011 | # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is |
| 3012 | # also defined. This can be overridden by defining _BSD_SOURCE |
| 3013 | # As this has a different meaning on Linux, only define it on OpenBSD |
| 3014 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3015 | $as_echo "#define _BSD_SOURCE 1" >>confdefs.h |
Christian Heimes | 5b5e81c | 2007-12-31 16:14:33 +0000 | [diff] [blame] | 3016 | |
| 3017 | ;; |
Martin v. Löwis | 19ed3c8 | 2010-02-15 21:45:06 +0000 | [diff] [blame] | 3018 | OpenBSD/4.[789]) |
Martin v. Löwis | 7671efc | 2010-02-15 08:35:16 +0000 | [diff] [blame] | 3019 | # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is |
| 3020 | # also defined. This can be overridden by defining _BSD_SOURCE |
| 3021 | # As this has a different meaning on Linux, only define it on OpenBSD |
| 3022 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3023 | $as_echo "#define _BSD_SOURCE 1" >>confdefs.h |
Martin v. Löwis | 7671efc | 2010-02-15 08:35:16 +0000 | [diff] [blame] | 3024 | |
| 3025 | ;; |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 3026 | # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of |
| 3027 | # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by |
| 3028 | # Marc Recht |
Benjamin Peterson | f608c61 | 2008-11-16 18:33:53 +0000 | [diff] [blame] | 3029 | 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] | 3030 | define_xopen_source=no;; |
Martin v. Löwis | 1a41576 | 2010-05-28 15:44:20 +0000 | [diff] [blame] | 3031 | # From the perspective of Solaris, _XOPEN_SOURCE is not so much a |
| 3032 | # request to enable features supported by the standard as a request |
| 3033 | # to disable features not supported by the standard. The best way |
| 3034 | # for Python to use Solaris is simply to leave _XOPEN_SOURCE out |
| 3035 | # entirely and define __EXTENSIONS__ instead. |
| 3036 | SunOS/*) |
Martin v. Löwis | a9d7142 | 2003-03-28 18:43:31 +0000 | [diff] [blame] | 3037 | define_xopen_source=no;; |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 3038 | # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE, |
| 3039 | # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice. |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3040 | # Reconfirmed for 7.1.4 by Martin v. Loewis. |
Martin v. Löwis | 253d1f4 | 2004-05-07 19:14:14 +0000 | [diff] [blame] | 3041 | OpenUNIX/8.0.0| UnixWare/7.1.[0-4]) |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 3042 | define_xopen_source=no;; |
| 3043 | # 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] | 3044 | # 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] | 3045 | SCO_SV/3.2) |
Martin v. Löwis | 53e73c3 | 2003-05-05 05:13:18 +0000 | [diff] [blame] | 3046 | define_xopen_source=no;; |
Martin v. Löwis | b37509b | 2008-11-04 20:45:29 +0000 | [diff] [blame] | 3047 | # On FreeBSD 4, the math functions C89 does not cover are never defined |
| 3048 | # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them. |
| 3049 | FreeBSD/4.*) |
| 3050 | define_xopen_source=no;; |
| 3051 | # On MacOS X 10.2, a bug in ncurses.h means that it craps out if |
| 3052 | # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which |
| 3053 | # identifies itself as Darwin/7.* |
| 3054 | # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE |
| 3055 | # disables platform specific features beyond repair. |
| 3056 | # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE |
| 3057 | # has no effect, don't bother defining them |
| 3058 | Darwin/[6789].*) |
Anthony Baxter | 6169c6b | 2003-10-04 07:46:23 +0000 | [diff] [blame] | 3059 | define_xopen_source=no;; |
Ronald Oussoren | 92fb941 | 2010-03-09 06:40:19 +0000 | [diff] [blame] | 3060 | Darwin/1[0-9].*) |
Ronald Oussoren | b8f11a6 | 2010-03-08 07:02:03 +0000 | [diff] [blame] | 3061 | define_xopen_source=no;; |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 3062 | # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but |
| 3063 | # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined |
| 3064 | # 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] | 3065 | AIX/4) |
| 3066 | define_xopen_source=no;; |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 3067 | AIX/5) |
| 3068 | if test `uname -r` -eq 1; then |
| 3069 | define_xopen_source=no |
| 3070 | fi |
| 3071 | ;; |
Benjamin Peterson | de9c869 | 2008-07-01 18:23:09 +0000 | [diff] [blame] | 3072 | # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from |
| 3073 | # defining NI_NUMERICHOST. |
| 3074 | QNX/6.3.2) |
| 3075 | define_xopen_source=no |
| 3076 | ;; |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 3077 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3078 | esac |
| 3079 | |
| 3080 | if test $define_xopen_source = yes |
| 3081 | then |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3082 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3083 | $as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3084 | |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3085 | |
| 3086 | # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires |
| 3087 | # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else |
| 3088 | # several APIs are not declared. Since this is also needed in some |
| 3089 | # cases for HP-UX, we define it globally. |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3090 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3091 | $as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3092 | |
| 3093 | |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 3094 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3095 | $as_echo "#define _POSIX_C_SOURCE 200112L" >>confdefs.h |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3096 | |
| 3097 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3098 | fi |
| 3099 | |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3100 | # |
| 3101 | # SGI compilers allow the specification of the both the ABI and the |
| 3102 | # ISA on the command line. Depending on the values of these switches, |
| 3103 | # different and often incompatable code will be generated. |
| 3104 | # |
| 3105 | # The SGI_ABI variable can be used to modify the CC and LDFLAGS and |
| 3106 | # thus supply support for various ABI/ISA combinations. The MACHDEP |
| 3107 | # variable is also adjusted. |
| 3108 | # |
| 3109 | |
| 3110 | if test ! -z "$SGI_ABI" |
| 3111 | then |
| 3112 | CC="cc $SGI_ABI" |
| 3113 | LDFLAGS="$SGI_ABI $LDFLAGS" |
| 3114 | MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'` |
| 3115 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACHDEP" >&5 |
| 3117 | $as_echo "$MACHDEP" >&6; } |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3118 | |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3119 | # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET, |
| 3120 | # it may influence the way we can build extensions, so distutils |
| 3121 | # needs to check it |
| 3122 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3123 | |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3124 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET= |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3125 | EXPORT_MACOSX_DEPLOYMENT_TARGET='#' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3126 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3127 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking machine type as reported by uname -m" >&5 |
| 3128 | $as_echo_n "checking machine type as reported by uname -m... " >&6; } |
Mark Dickinson | b0e2b4c | 2008-04-26 20:48:56 +0000 | [diff] [blame] | 3129 | ac_sys_machine=`uname -m` |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sys_machine" >&5 |
| 3131 | $as_echo "$ac_sys_machine" >&6; } |
Mark Dickinson | b0e2b4c | 2008-04-26 20:48:56 +0000 | [diff] [blame] | 3132 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3133 | # checks for alternative programs |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3134 | |
| 3135 | # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just |
| 3136 | # for debug/optimization stuff. BASECFLAGS is for flags that are required |
| 3137 | # just to get things to compile and link. Users are free to override OPT |
| 3138 | # when running configure or make. The build should not break if they do. |
| 3139 | # BASECFLAGS should generally not be messed with, however. |
| 3140 | |
| 3141 | # XXX shouldn't some/most/all of this code be merged with the stuff later |
| 3142 | # on that fiddles with OPT and BASECFLAGS? |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3143 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --without-gcc" >&5 |
| 3144 | $as_echo_n "checking for --without-gcc... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3145 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3146 | # Check whether --with-gcc was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3147 | if test "${with_gcc+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3148 | withval=$with_gcc; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3149 | case $withval in |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3150 | no) CC=${CC:-cc} |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3151 | without_gcc=yes;; |
| 3152 | yes) CC=gcc |
| 3153 | without_gcc=no;; |
| 3154 | *) CC=$withval |
| 3155 | without_gcc=$withval;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3156 | esac |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3157 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3158 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3159 | case $ac_sys_system in |
Antoine Pitrou | f6350d2 | 2010-09-21 15:19:14 +0000 | [diff] [blame] | 3160 | AIX*) CC=${CC:-xlc_r} |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 3161 | without_gcc=;; |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3162 | *) without_gcc=no;; |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 3163 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3164 | fi |
| 3165 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $without_gcc" >&5 |
| 3167 | $as_echo "$without_gcc" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3168 | |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 3169 | # If the user switches compilers, we can't believe the cache |
| 3170 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" |
| 3171 | then |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 3172 | as_fn_error $? "cached CC is different -- throw away $cache_file |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3173 | (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] | 3174 | fi |
| 3175 | |
Jeffrey Yasskin | d4fcdb1 | 2010-07-09 16:30:58 +0000 | [diff] [blame] | 3176 | # Don't let AC_PROG_CC set the default CFLAGS. It normally sets -g -O2 |
| 3177 | # when the compiler supports them, but we don't always want -O2, and |
| 3178 | # we set -g later. |
| 3179 | if test -z "$CFLAGS"; then |
| 3180 | CFLAGS= |
| 3181 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3182 | ac_ext=c |
| 3183 | ac_cpp='$CPP $CPPFLAGS' |
| 3184 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3185 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3186 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3187 | if test -n "$ac_tool_prefix"; then |
| 3188 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 3189 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3190 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3191 | $as_echo_n "checking for $ac_word... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 3192 | if test "${ac_cv_prog_CC+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3193 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3194 | else |
| 3195 | if test -n "$CC"; then |
| 3196 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3197 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3198 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3199 | for as_dir in $PATH |
| 3200 | do |
| 3201 | IFS=$as_save_IFS |
| 3202 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3203 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3204 | 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] | 3205 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3206 | $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] | 3207 | break 2 |
| 3208 | fi |
| 3209 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3210 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3211 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3212 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3213 | fi |
| 3214 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3215 | CC=$ac_cv_prog_CC |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3216 | if test -n "$CC"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3217 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3218 | $as_echo "$CC" >&6; } |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3219 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3220 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3221 | $as_echo "no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3222 | fi |
| 3223 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3224 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3225 | fi |
| 3226 | if test -z "$ac_cv_prog_CC"; then |
| 3227 | ac_ct_CC=$CC |
| 3228 | # Extract the first word of "gcc", so it can be a program name with args. |
| 3229 | set dummy gcc; ac_word=$2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3230 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3231 | $as_echo_n "checking for $ac_word... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 3232 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3233 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3234 | else |
| 3235 | if test -n "$ac_ct_CC"; then |
| 3236 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3237 | else |
| 3238 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3239 | for as_dir in $PATH |
| 3240 | do |
| 3241 | IFS=$as_save_IFS |
| 3242 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3243 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3244 | 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] | 3245 | ac_cv_prog_ac_ct_CC="gcc" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3246 | $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] | 3247 | break 2 |
| 3248 | fi |
| 3249 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3250 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3251 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3252 | |
| 3253 | fi |
| 3254 | fi |
| 3255 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3256 | if test -n "$ac_ct_CC"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3258 | $as_echo "$ac_ct_CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3259 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3260 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3261 | $as_echo "no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3262 | fi |
| 3263 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3264 | if test "x$ac_ct_CC" = x; then |
| 3265 | CC="" |
| 3266 | else |
| 3267 | case $cross_compiling:$ac_tool_warned in |
| 3268 | yes:) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3269 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3270 | $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] | 3271 | ac_tool_warned=yes ;; |
| 3272 | esac |
| 3273 | CC=$ac_ct_CC |
| 3274 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3275 | else |
| 3276 | CC="$ac_cv_prog_CC" |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3277 | fi |
| 3278 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3279 | if test -z "$CC"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3280 | if test -n "$ac_tool_prefix"; then |
| 3281 | # 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] | 3282 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3283 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3284 | $as_echo_n "checking for $ac_word... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 3285 | if test "${ac_cv_prog_CC+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3286 | $as_echo_n "(cached) " >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3287 | else |
| 3288 | if test -n "$CC"; then |
| 3289 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3290 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3291 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3292 | for as_dir in $PATH |
| 3293 | do |
| 3294 | IFS=$as_save_IFS |
| 3295 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3296 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3297 | 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] | 3298 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3299 | $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] | 3300 | break 2 |
| 3301 | fi |
| 3302 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3303 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3304 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3305 | |
| 3306 | fi |
| 3307 | fi |
| 3308 | CC=$ac_cv_prog_CC |
| 3309 | if test -n "$CC"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3311 | $as_echo "$CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3312 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3314 | $as_echo "no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3315 | fi |
| 3316 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3317 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3318 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3319 | fi |
| 3320 | if test -z "$CC"; then |
| 3321 | # Extract the first word of "cc", so it can be a program name with args. |
| 3322 | set dummy cc; ac_word=$2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3323 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3324 | $as_echo_n "checking for $ac_word... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 3325 | if test "${ac_cv_prog_CC+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3326 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3327 | else |
| 3328 | if test -n "$CC"; then |
| 3329 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3330 | else |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3331 | ac_prog_rejected=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3332 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3333 | for as_dir in $PATH |
| 3334 | do |
| 3335 | IFS=$as_save_IFS |
| 3336 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3337 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3338 | 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] | 3339 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 3340 | ac_prog_rejected=yes |
| 3341 | continue |
| 3342 | fi |
| 3343 | ac_cv_prog_CC="cc" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3344 | $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] | 3345 | break 2 |
| 3346 | fi |
| 3347 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3348 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3349 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3350 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3351 | if test $ac_prog_rejected = yes; then |
| 3352 | # We found a bogon in the path, so make sure we never use it. |
| 3353 | set dummy $ac_cv_prog_CC |
| 3354 | shift |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3355 | if test $# != 0; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3356 | # We chose a different compiler from the bogus one. |
| 3357 | # However, it has the same basename, so the bogon will be chosen |
| 3358 | # first if we set CC to just the basename; use the full file name. |
| 3359 | shift |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3360 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3361 | fi |
| 3362 | fi |
| 3363 | fi |
| 3364 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3365 | CC=$ac_cv_prog_CC |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3366 | if test -n "$CC"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3368 | $as_echo "$CC" >&6; } |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3369 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3371 | $as_echo "no" >&6; } |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3372 | fi |
| 3373 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3374 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3375 | fi |
| 3376 | if test -z "$CC"; then |
| 3377 | if test -n "$ac_tool_prefix"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3378 | for ac_prog in cl.exe |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3379 | do |
| 3380 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3381 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3382 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3383 | $as_echo_n "checking for $ac_word... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 3384 | if test "${ac_cv_prog_CC+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3385 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3386 | else |
| 3387 | if test -n "$CC"; then |
| 3388 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3389 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3390 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3391 | for as_dir in $PATH |
| 3392 | do |
| 3393 | IFS=$as_save_IFS |
| 3394 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3395 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3396 | 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] | 3397 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3398 | $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] | 3399 | break 2 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3400 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3401 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3402 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3403 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3404 | |
| 3405 | fi |
| 3406 | fi |
| 3407 | CC=$ac_cv_prog_CC |
| 3408 | if test -n "$CC"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3410 | $as_echo "$CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3411 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3413 | $as_echo "no" >&6; } |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3414 | fi |
| 3415 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3416 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3417 | test -n "$CC" && break |
| 3418 | done |
| 3419 | fi |
| 3420 | if test -z "$CC"; then |
| 3421 | ac_ct_CC=$CC |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3422 | for ac_prog in cl.exe |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3423 | do |
| 3424 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3425 | set dummy $ac_prog; ac_word=$2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3426 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3427 | $as_echo_n "checking for $ac_word... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 3428 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3429 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3430 | else |
| 3431 | if test -n "$ac_ct_CC"; then |
| 3432 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3433 | else |
| 3434 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3435 | for as_dir in $PATH |
| 3436 | do |
| 3437 | IFS=$as_save_IFS |
| 3438 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3439 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3440 | 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] | 3441 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3442 | $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] | 3443 | break 2 |
| 3444 | fi |
| 3445 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3446 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3447 | IFS=$as_save_IFS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3448 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3449 | fi |
| 3450 | fi |
| 3451 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3452 | if test -n "$ac_ct_CC"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3454 | $as_echo "$ac_ct_CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3455 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3457 | $as_echo "no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3458 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3459 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3460 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3461 | test -n "$ac_ct_CC" && break |
| 3462 | done |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3463 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3464 | if test "x$ac_ct_CC" = x; then |
| 3465 | CC="" |
| 3466 | else |
| 3467 | case $cross_compiling:$ac_tool_warned in |
| 3468 | yes:) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3469 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3470 | $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] | 3471 | ac_tool_warned=yes ;; |
| 3472 | esac |
| 3473 | CC=$ac_ct_CC |
| 3474 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3475 | fi |
| 3476 | |
| 3477 | fi |
| 3478 | |
| 3479 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3480 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3481 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 3482 | as_fn_error $? "no acceptable C compiler found in \$PATH |
| 3483 | See \`config.log' for more details" "$LINENO" 5 ; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3484 | |
| 3485 | # Provide some information about the compiler. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3486 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 3487 | set X $ac_compile |
| 3488 | ac_compiler=$2 |
| 3489 | for ac_option in --version -v -V -qversion; do |
| 3490 | { { ac_try="$ac_compiler $ac_option >&5" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3491 | case "(($ac_try" in |
| 3492 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3493 | *) ac_try_echo=$ac_try;; |
| 3494 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3495 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3496 | $as_echo "$ac_try_echo"; } >&5 |
| 3497 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3498 | ac_status=$? |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3499 | if test -s conftest.err; then |
| 3500 | sed '10a\ |
| 3501 | ... rest of stderr output deleted ... |
| 3502 | 10q' conftest.err >conftest.er1 |
| 3503 | cat conftest.er1 >&5 |
| 3504 | fi |
| 3505 | rm -f conftest.er1 conftest.err |
| 3506 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3507 | test $ac_status = 0; } |
| 3508 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3509 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3510 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3511 | /* end confdefs.h. */ |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3512 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3513 | int |
| 3514 | main () |
| 3515 | { |
| 3516 | |
| 3517 | ; |
| 3518 | return 0; |
| 3519 | } |
| 3520 | _ACEOF |
| 3521 | ac_clean_files_save=$ac_clean_files |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3522 | 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] | 3523 | # Try to create an executable without -o first, disregard a.out. |
| 3524 | # It will help us diagnose broken compilers, and finding out an intuition |
| 3525 | # of exeext. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3526 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 3527 | $as_echo_n "checking whether the C compiler works... " >&6; } |
| 3528 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 3529 | |
| 3530 | # The possible output files: |
| 3531 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 3532 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3533 | ac_rmfiles= |
| 3534 | for ac_file in $ac_files |
| 3535 | do |
| 3536 | case $ac_file in |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3537 | *.$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] | 3538 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 3539 | esac |
| 3540 | done |
| 3541 | rm -f $ac_rmfiles |
| 3542 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3543 | if { { ac_try="$ac_link_default" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3544 | case "(($ac_try" in |
| 3545 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3546 | *) ac_try_echo=$ac_try;; |
| 3547 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3548 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3549 | $as_echo "$ac_try_echo"; } >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3550 | (eval "$ac_link_default") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3551 | ac_status=$? |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3552 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3553 | test $ac_status = 0; }; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3554 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 3555 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 3556 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 3557 | # so that the user can short-circuit this test for compilers unknown to |
| 3558 | # Autoconf. |
| 3559 | for ac_file in $ac_files '' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3560 | do |
| 3561 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3562 | case $ac_file in |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3563 | *.$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] | 3564 | ;; |
| 3565 | [ab].out ) |
| 3566 | # We found the default executable, but exeext='' is most |
| 3567 | # certainly right. |
| 3568 | break;; |
| 3569 | *.* ) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3570 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3571 | then :; else |
| 3572 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3573 | fi |
| 3574 | # We set ac_cv_exeext here because the later test for it is not |
| 3575 | # safe: cross compilers may not add the suffix if given an `-o' |
| 3576 | # argument, so we may need to know it at that point already. |
| 3577 | # Even if this section looks crufty: it has the advantage of |
| 3578 | # actually working. |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 3579 | break;; |
| 3580 | * ) |
| 3581 | break;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3582 | esac |
| 3583 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3584 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 3585 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3586 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3587 | ac_file='' |
| 3588 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3589 | if test -z "$ac_file"; then : |
| 3590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3591 | $as_echo "no" >&6; } |
| 3592 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3593 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3594 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3595 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3596 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 3597 | as_fn_error 77 "C compiler cannot create executables |
| 3598 | See \`config.log' for more details" "$LINENO" 5 ; } |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3599 | else |
| 3600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3601 | $as_echo "yes" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3602 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3603 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 3604 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
| 3605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 3606 | $as_echo "$ac_file" >&6; } |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 3607 | ac_exeext=$ac_cv_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 3608 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3609 | 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] | 3610 | ac_clean_files=$ac_clean_files_save |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3611 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
| 3612 | $as_echo_n "checking for suffix of executables... " >&6; } |
| 3613 | if { { ac_try="$ac_link" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3614 | case "(($ac_try" in |
| 3615 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3616 | *) ac_try_echo=$ac_try;; |
| 3617 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3618 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3619 | $as_echo "$ac_try_echo"; } >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3620 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3621 | ac_status=$? |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3622 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3623 | test $ac_status = 0; }; then : |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 3624 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 3625 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 3626 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 3627 | # `rm'. |
| 3628 | for ac_file in conftest.exe conftest conftest.*; do |
| 3629 | test -f "$ac_file" || continue |
| 3630 | case $ac_file in |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3631 | *.$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] | 3632 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3633 | break;; |
| 3634 | * ) break;; |
| 3635 | esac |
| 3636 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3637 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3638 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3639 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 3640 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
| 3641 | See \`config.log' for more details" "$LINENO" 5 ; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3642 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3643 | rm -f conftest conftest$ac_cv_exeext |
| 3644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
| 3645 | $as_echo "$ac_cv_exeext" >&6; } |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 3646 | |
| 3647 | rm -f conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3648 | EXEEXT=$ac_cv_exeext |
| 3649 | ac_exeext=$EXEEXT |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3650 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3651 | /* end confdefs.h. */ |
| 3652 | #include <stdio.h> |
| 3653 | int |
| 3654 | main () |
| 3655 | { |
| 3656 | FILE *f = fopen ("conftest.out", "w"); |
| 3657 | return ferror (f) || fclose (f) != 0; |
| 3658 | |
| 3659 | ; |
| 3660 | return 0; |
| 3661 | } |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 3662 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3663 | ac_clean_files="$ac_clean_files conftest.out" |
| 3664 | # Check that the compiler produces executables we can run. If not, either |
| 3665 | # the compiler is broken, or we cross compile. |
| 3666 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 3667 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 3668 | if test "$cross_compiling" != yes; then |
| 3669 | { { ac_try="$ac_link" |
| 3670 | case "(($ac_try" in |
| 3671 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3672 | *) ac_try_echo=$ac_try;; |
| 3673 | esac |
| 3674 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3675 | $as_echo "$ac_try_echo"; } >&5 |
| 3676 | (eval "$ac_link") 2>&5 |
| 3677 | ac_status=$? |
| 3678 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3679 | test $ac_status = 0; } |
| 3680 | if { ac_try='./conftest$ac_cv_exeext' |
| 3681 | { { case "(($ac_try" in |
| 3682 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3683 | *) ac_try_echo=$ac_try;; |
| 3684 | esac |
| 3685 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3686 | $as_echo "$ac_try_echo"; } >&5 |
| 3687 | (eval "$ac_try") 2>&5 |
| 3688 | ac_status=$? |
| 3689 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3690 | test $ac_status = 0; }; }; then |
| 3691 | cross_compiling=no |
| 3692 | else |
| 3693 | if test "$cross_compiling" = maybe; then |
| 3694 | cross_compiling=yes |
| 3695 | else |
| 3696 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3697 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 3698 | as_fn_error $? "cannot run C compiled programs. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3699 | If you meant to cross compile, use \`--host'. |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 3700 | See \`config.log' for more details" "$LINENO" 5 ; } |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3701 | fi |
| 3702 | fi |
| 3703 | fi |
| 3704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 3705 | $as_echo "$cross_compiling" >&6; } |
| 3706 | |
| 3707 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
| 3708 | ac_clean_files=$ac_clean_files_save |
| 3709 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
| 3710 | $as_echo_n "checking for suffix of object files... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 3711 | if test "${ac_cv_objext+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3712 | $as_echo_n "(cached) " >&6 |
| 3713 | else |
| 3714 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 3715 | /* end confdefs.h. */ |
| 3716 | |
| 3717 | int |
| 3718 | main () |
| 3719 | { |
| 3720 | |
| 3721 | ; |
| 3722 | return 0; |
| 3723 | } |
| 3724 | _ACEOF |
| 3725 | rm -f conftest.o conftest.obj |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3726 | if { { ac_try="$ac_compile" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3727 | case "(($ac_try" in |
| 3728 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3729 | *) ac_try_echo=$ac_try;; |
| 3730 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3731 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3732 | $as_echo "$ac_try_echo"; } >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3733 | (eval "$ac_compile") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3734 | ac_status=$? |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3735 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3736 | test $ac_status = 0; }; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3737 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 3738 | test -f "$ac_file" || continue; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3739 | case $ac_file in |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3740 | *.$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] | 3741 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 3742 | break;; |
| 3743 | esac |
| 3744 | done |
| 3745 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3746 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3747 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3748 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3749 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3750 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 3751 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
| 3752 | See \`config.log' for more details" "$LINENO" 5 ; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3753 | fi |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 3754 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3755 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
| 3757 | $as_echo "$ac_cv_objext" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3758 | OBJEXT=$ac_cv_objext |
| 3759 | ac_objext=$OBJEXT |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3760 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
| 3761 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 3762 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3763 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3764 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3765 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3766 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3767 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3768 | int |
| 3769 | main () |
| 3770 | { |
| 3771 | #ifndef __GNUC__ |
| 3772 | choke me |
| 3773 | #endif |
| 3774 | |
| 3775 | ; |
| 3776 | return 0; |
| 3777 | } |
| 3778 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3779 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3780 | ac_compiler_gnu=yes |
| 3781 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3782 | ac_compiler_gnu=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3783 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3784 | 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] | 3785 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 3786 | |
| 3787 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 3789 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 3790 | if test $ac_compiler_gnu = yes; then |
| 3791 | GCC=yes |
| 3792 | else |
| 3793 | GCC= |
| 3794 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3795 | ac_test_CFLAGS=${CFLAGS+set} |
| 3796 | ac_save_CFLAGS=$CFLAGS |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3797 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 3798 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 3799 | if test "${ac_cv_prog_cc_g+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3800 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3801 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3802 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3803 | ac_c_werror_flag=yes |
| 3804 | ac_cv_prog_cc_g=no |
| 3805 | CFLAGS="-g" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3806 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3807 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3808 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3809 | int |
| 3810 | main () |
| 3811 | { |
| 3812 | |
| 3813 | ; |
| 3814 | return 0; |
| 3815 | } |
| 3816 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3817 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3818 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3819 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3820 | CFLAGS="" |
| 3821 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3822 | /* end confdefs.h. */ |
| 3823 | |
| 3824 | int |
| 3825 | main () |
| 3826 | { |
| 3827 | |
| 3828 | ; |
| 3829 | return 0; |
| 3830 | } |
| 3831 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3832 | if ac_fn_c_try_compile "$LINENO"; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3833 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3834 | else |
| 3835 | ac_c_werror_flag=$ac_save_c_werror_flag |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3836 | CFLAGS="-g" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3837 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3838 | /* end confdefs.h. */ |
| 3839 | |
| 3840 | int |
| 3841 | main () |
| 3842 | { |
| 3843 | |
| 3844 | ; |
| 3845 | return 0; |
| 3846 | } |
| 3847 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3848 | if ac_fn_c_try_compile "$LINENO"; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3849 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3850 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3851 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3852 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3853 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3854 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3855 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3856 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3857 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 3859 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3860 | if test "$ac_test_CFLAGS" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3861 | CFLAGS=$ac_save_CFLAGS |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3862 | elif test $ac_cv_prog_cc_g = yes; then |
| 3863 | if test "$GCC" = yes; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3864 | CFLAGS="-g -O2" |
| 3865 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3866 | CFLAGS="-g" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3867 | fi |
| 3868 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3869 | if test "$GCC" = yes; then |
| 3870 | CFLAGS="-O2" |
| 3871 | else |
| 3872 | CFLAGS= |
| 3873 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3874 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3875 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
| 3876 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 3877 | if test "${ac_cv_prog_cc_c89+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3878 | $as_echo_n "(cached) " >&6 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3879 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3880 | ac_cv_prog_cc_c89=no |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3881 | ac_save_CC=$CC |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3882 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3883 | /* end confdefs.h. */ |
| 3884 | #include <stdarg.h> |
| 3885 | #include <stdio.h> |
| 3886 | #include <sys/types.h> |
| 3887 | #include <sys/stat.h> |
| 3888 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3889 | struct buf { int x; }; |
| 3890 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3891 | static char *e (p, i) |
| 3892 | char **p; |
| 3893 | int i; |
| 3894 | { |
| 3895 | return p[i]; |
| 3896 | } |
| 3897 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3898 | { |
| 3899 | char *s; |
| 3900 | va_list v; |
| 3901 | va_start (v,p); |
| 3902 | s = g (p, va_arg (v,int)); |
| 3903 | va_end (v); |
| 3904 | return s; |
| 3905 | } |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3906 | |
| 3907 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3908 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3909 | These don't provoke an error unfortunately, instead are silently treated |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3910 | 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] | 3911 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3912 | 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] | 3913 | that's true only with -std. */ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3914 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3915 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3916 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3917 | inside strings and character constants. */ |
| 3918 | #define FOO(x) 'x' |
| 3919 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3920 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3921 | int test (int i, double x); |
| 3922 | struct s1 {int (*f) (int a);}; |
| 3923 | struct s2 {int (*f) (double a);}; |
| 3924 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3925 | int argc; |
| 3926 | char **argv; |
| 3927 | int |
| 3928 | main () |
| 3929 | { |
| 3930 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3931 | ; |
| 3932 | return 0; |
| 3933 | } |
| 3934 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3935 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3936 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3937 | do |
| 3938 | CC="$ac_save_CC $ac_arg" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3939 | if ac_fn_c_try_compile "$LINENO"; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3940 | ac_cv_prog_cc_c89=$ac_arg |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3941 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3942 | rm -f core conftest.err conftest.$ac_objext |
| 3943 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3944 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3945 | rm -f conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3946 | CC=$ac_save_CC |
| 3947 | |
| 3948 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3949 | # AC_CACHE_VAL |
| 3950 | case "x$ac_cv_prog_cc_c89" in |
| 3951 | x) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 3953 | $as_echo "none needed" >&6; } ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3954 | xno) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 3956 | $as_echo "unsupported" >&6; } ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3957 | *) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3958 | CC="$CC $ac_cv_prog_cc_c89" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 3960 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3961 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3962 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3963 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3964 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3965 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3966 | ac_ext=c |
| 3967 | ac_cpp='$CPP $CPPFLAGS' |
| 3968 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3969 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3970 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3971 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3972 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3973 | |
| 3974 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3975 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-cxx-main=<compiler>" >&5 |
| 3976 | $as_echo_n "checking for --with-cxx-main=<compiler>... " >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3977 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3978 | # Check whether --with-cxx_main was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3979 | if test "${with_cxx_main+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3980 | withval=$with_cxx_main; |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3981 | |
| 3982 | case $withval in |
| 3983 | no) with_cxx_main=no |
| 3984 | MAINCC='$(CC)';; |
| 3985 | yes) with_cxx_main=yes |
| 3986 | MAINCC='$(CXX)';; |
| 3987 | *) with_cxx_main=yes |
| 3988 | MAINCC=$withval |
| 3989 | if test -z "$CXX" |
| 3990 | then |
| 3991 | CXX=$withval |
| 3992 | fi;; |
| 3993 | esac |
| 3994 | else |
| 3995 | |
| 3996 | with_cxx_main=no |
| 3997 | MAINCC='$(CC)' |
| 3998 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3999 | fi |
| 4000 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_cxx_main" >&5 |
| 4002 | $as_echo "$with_cxx_main" >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4003 | |
| 4004 | preset_cxx="$CXX" |
| 4005 | if test -z "$CXX" |
| 4006 | then |
| 4007 | case "$CC" in |
| 4008 | gcc) # Extract the first word of "g++", so it can be a program name with args. |
| 4009 | set dummy g++; ac_word=$2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4010 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4011 | $as_echo_n "checking for $ac_word... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 4012 | if test "${ac_cv_path_CXX+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4013 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4014 | else |
| 4015 | case $CXX in |
| 4016 | [\\/]* | ?:[\\/]*) |
| 4017 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. |
| 4018 | ;; |
| 4019 | *) |
| 4020 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4021 | for as_dir in notfound |
| 4022 | do |
| 4023 | IFS=$as_save_IFS |
| 4024 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4025 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4026 | 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] | 4027 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4028 | $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] | 4029 | break 2 |
| 4030 | fi |
| 4031 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4032 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4033 | IFS=$as_save_IFS |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4034 | |
| 4035 | test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="g++" |
| 4036 | ;; |
| 4037 | esac |
| 4038 | fi |
| 4039 | CXX=$ac_cv_path_CXX |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4040 | if test -n "$CXX"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
| 4042 | $as_echo "$CXX" >&6; } |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4043 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4044 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4045 | $as_echo "no" >&6; } |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4046 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4047 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4048 | ;; |
| 4049 | cc) # Extract the first word of "c++", so it can be a program name with args. |
| 4050 | set dummy c++; ac_word=$2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4051 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4052 | $as_echo_n "checking for $ac_word... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 4053 | if test "${ac_cv_path_CXX+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4054 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4055 | else |
| 4056 | case $CXX in |
| 4057 | [\\/]* | ?:[\\/]*) |
| 4058 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. |
| 4059 | ;; |
| 4060 | *) |
| 4061 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4062 | for as_dir in notfound |
| 4063 | do |
| 4064 | IFS=$as_save_IFS |
| 4065 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4066 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4067 | 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] | 4068 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4069 | $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] | 4070 | break 2 |
| 4071 | fi |
| 4072 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4073 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4074 | IFS=$as_save_IFS |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4075 | |
| 4076 | test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="c++" |
| 4077 | ;; |
| 4078 | esac |
| 4079 | fi |
| 4080 | CXX=$ac_cv_path_CXX |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4081 | if test -n "$CXX"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
| 4083 | $as_echo "$CXX" >&6; } |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4084 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4086 | $as_echo "no" >&6; } |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4087 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4088 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4089 | ;; |
| 4090 | esac |
| 4091 | if test "$CXX" = "notfound" |
| 4092 | then |
| 4093 | CXX="" |
| 4094 | fi |
| 4095 | fi |
| 4096 | if test -z "$CXX" |
| 4097 | then |
| 4098 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
| 4099 | do |
| 4100 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4101 | set dummy $ac_prog; ac_word=$2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4102 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4103 | $as_echo_n "checking for $ac_word... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 4104 | if test "${ac_cv_prog_CXX+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4105 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4106 | else |
| 4107 | if test -n "$CXX"; then |
| 4108 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 4109 | else |
| 4110 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4111 | for as_dir in $PATH |
| 4112 | do |
| 4113 | IFS=$as_save_IFS |
| 4114 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4115 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4116 | 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] | 4117 | ac_cv_prog_CXX="$ac_prog" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4118 | $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] | 4119 | break 2 |
| 4120 | fi |
| 4121 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4122 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4123 | IFS=$as_save_IFS |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4124 | |
| 4125 | fi |
| 4126 | fi |
| 4127 | CXX=$ac_cv_prog_CXX |
| 4128 | if test -n "$CXX"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
| 4130 | $as_echo "$CXX" >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4131 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4133 | $as_echo "no" >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4134 | fi |
| 4135 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4136 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4137 | test -n "$CXX" && break |
| 4138 | done |
| 4139 | test -n "$CXX" || CXX="notfound" |
| 4140 | |
| 4141 | if test "$CXX" = "notfound" |
| 4142 | then |
| 4143 | CXX="" |
| 4144 | fi |
| 4145 | fi |
| 4146 | if test "$preset_cxx" != "$CXX" |
| 4147 | then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4148 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4149 | |
| 4150 | By default, distutils will build C++ extension modules with \"$CXX\". |
| 4151 | If this is not intended, then set CXX on the configure command line. |
| 4152 | " >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4153 | $as_echo "$as_me: WARNING: |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4154 | |
| 4155 | By default, distutils will build C++ extension modules with \"$CXX\". |
| 4156 | If this is not intended, then set CXX on the configure command line. |
| 4157 | " >&2;} |
| 4158 | fi |
| 4159 | |
| 4160 | |
Martin v. Löwis | 48e14d3 | 2011-05-09 07:37:45 +0200 | [diff] [blame] | 4161 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wl,--no-as-needed" >&5 |
| 4162 | $as_echo_n "checking for -Wl,--no-as-needed... " >&6; } |
| 4163 | save_LDFLAGS="$LDFLAGS" |
| 4164 | LDFLAGS="$LDFLAGS -Wl,--no-as-needed" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4165 | |
Martin v. Löwis | 48e14d3 | 2011-05-09 07:37:45 +0200 | [diff] [blame] | 4166 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4167 | /* end confdefs.h. */ |
| 4168 | |
| 4169 | int |
| 4170 | main () |
| 4171 | { |
| 4172 | |
| 4173 | ; |
| 4174 | return 0; |
| 4175 | } |
| 4176 | _ACEOF |
| 4177 | if ac_fn_c_try_link "$LINENO"; then : |
| 4178 | NO_AS_NEEDED="-Wl,--no-as-needed" |
| 4179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 4180 | $as_echo "yes" >&6; } |
| 4181 | else |
| 4182 | NO_AS_NEEDED="" |
| 4183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4184 | $as_echo "no" >&6; } |
| 4185 | fi |
| 4186 | rm -f core conftest.err conftest.$ac_objext \ |
| 4187 | conftest$ac_exeext conftest.$ac_ext |
| 4188 | LDFLAGS="$save_LDFLAGS" |
| 4189 | |
| 4190 | |
| 4191 | |
| 4192 | # checks for UNIX variants that set C preprocessor variables |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4193 | ac_ext=c |
| 4194 | ac_cpp='$CPP $CPPFLAGS' |
| 4195 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4196 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4197 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4198 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
| 4199 | $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] | 4200 | # On Suns, sometimes $CPP names a directory. |
| 4201 | if test -n "$CPP" && test -d "$CPP"; then |
| 4202 | CPP= |
| 4203 | fi |
| 4204 | if test -z "$CPP"; then |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 4205 | if test "${ac_cv_prog_CPP+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4206 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 4207 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4208 | # Double quotes because CPP needs to be expanded |
| 4209 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 4210 | do |
| 4211 | ac_preproc_ok=false |
| 4212 | for ac_c_preproc_warn_flag in '' yes |
| 4213 | do |
| 4214 | # Use a header file that comes with gcc, so configuring glibc |
| 4215 | # with a fresh cross-compiler works. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4216 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4217 | # <limits.h> exists even on freestanding compilers. |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 4218 | # 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] | 4219 | # not just through cpp. "Syntax error" is here to catch this case. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4220 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4221 | /* end confdefs.h. */ |
| 4222 | #ifdef __STDC__ |
| 4223 | # include <limits.h> |
| 4224 | #else |
| 4225 | # include <assert.h> |
| 4226 | #endif |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4227 | Syntax error |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4228 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4229 | if ac_fn_c_try_cpp "$LINENO"; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4230 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4231 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4232 | # Broken: fails on valid input. |
| 4233 | continue |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 4234 | fi |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 4235 | rm -f conftest.err conftest.i conftest.$ac_ext |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 4236 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4237 | # OK, works on sane cases. Now check whether nonexistent headers |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4238 | # can be detected and how. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4239 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4240 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4241 | #include <ac_nonexistent.h> |
| 4242 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4243 | if ac_fn_c_try_cpp "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4244 | # Broken: success on invalid input. |
| 4245 | continue |
| 4246 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4247 | # Passes both tests. |
| 4248 | ac_preproc_ok=: |
| 4249 | break |
| 4250 | fi |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 4251 | rm -f conftest.err conftest.i conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4252 | |
| 4253 | done |
| 4254 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 4255 | rm -f conftest.i conftest.err conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4256 | if $ac_preproc_ok; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4257 | break |
| 4258 | fi |
| 4259 | |
| 4260 | done |
| 4261 | ac_cv_prog_CPP=$CPP |
| 4262 | |
| 4263 | fi |
| 4264 | CPP=$ac_cv_prog_CPP |
| 4265 | else |
| 4266 | ac_cv_prog_CPP=$CPP |
| 4267 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4268 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
| 4269 | $as_echo "$CPP" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4270 | ac_preproc_ok=false |
| 4271 | for ac_c_preproc_warn_flag in '' yes |
| 4272 | do |
| 4273 | # Use a header file that comes with gcc, so configuring glibc |
| 4274 | # with a fresh cross-compiler works. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4275 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4276 | # <limits.h> exists even on freestanding compilers. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4277 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4278 | # not just through cpp. "Syntax error" is here to catch this case. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4279 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4280 | /* end confdefs.h. */ |
| 4281 | #ifdef __STDC__ |
| 4282 | # include <limits.h> |
| 4283 | #else |
| 4284 | # include <assert.h> |
| 4285 | #endif |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4286 | Syntax error |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4287 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4288 | if ac_fn_c_try_cpp "$LINENO"; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4289 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4290 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4291 | # Broken: fails on valid input. |
| 4292 | continue |
| 4293 | fi |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 4294 | rm -f conftest.err conftest.i conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4295 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4296 | # OK, works on sane cases. Now check whether nonexistent headers |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4297 | # can be detected and how. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4298 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4299 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4300 | #include <ac_nonexistent.h> |
| 4301 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4302 | if ac_fn_c_try_cpp "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4303 | # Broken: success on invalid input. |
| 4304 | continue |
| 4305 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4306 | # Passes both tests. |
| 4307 | ac_preproc_ok=: |
| 4308 | break |
| 4309 | fi |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 4310 | rm -f conftest.err conftest.i conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4311 | |
| 4312 | done |
| 4313 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 4314 | rm -f conftest.i conftest.err conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4315 | if $ac_preproc_ok; then : |
| 4316 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4317 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4318 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4319 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 4320 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
| 4321 | See \`config.log' for more details" "$LINENO" 5 ; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4322 | fi |
| 4323 | |
| 4324 | ac_ext=c |
| 4325 | ac_cpp='$CPP $CPPFLAGS' |
| 4326 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4327 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4328 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4329 | |
| 4330 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4331 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
| 4332 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 4333 | if test "${ac_cv_path_GREP+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4334 | $as_echo_n "(cached) " >&6 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4335 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4336 | if test -z "$GREP"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4337 | ac_path_GREP_found=false |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4338 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4339 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4340 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4341 | do |
| 4342 | IFS=$as_save_IFS |
| 4343 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4344 | for ac_prog in grep ggrep; do |
| 4345 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4346 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4347 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
| 4348 | # 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] | 4349 | # Check for GNU $ac_path_GREP |
| 4350 | case `"$ac_path_GREP" --version 2>&1` in |
| 4351 | *GNU*) |
| 4352 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 4353 | *) |
| 4354 | ac_count=0 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4355 | $as_echo_n 0123456789 >"conftest.in" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4356 | while : |
| 4357 | do |
| 4358 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4359 | mv "conftest.tmp" "conftest.in" |
| 4360 | cp "conftest.in" "conftest.nl" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4361 | $as_echo 'GREP' >> "conftest.nl" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4362 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4363 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4364 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4365 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 4366 | # Best one so far, save it but keep looking for a better one |
| 4367 | ac_cv_path_GREP="$ac_path_GREP" |
| 4368 | ac_path_GREP_max=$ac_count |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4369 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4370 | # 10*(2^10) chars as input seems more than enough |
| 4371 | test $ac_count -gt 10 && break |
| 4372 | done |
| 4373 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4374 | esac |
| 4375 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4376 | $ac_path_GREP_found && break 3 |
| 4377 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4378 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4379 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4380 | IFS=$as_save_IFS |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4381 | if test -z "$ac_cv_path_GREP"; then |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 4382 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4383 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4384 | else |
| 4385 | ac_cv_path_GREP=$GREP |
| 4386 | fi |
| 4387 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4388 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4389 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
| 4390 | $as_echo "$ac_cv_path_GREP" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4391 | GREP="$ac_cv_path_GREP" |
| 4392 | |
| 4393 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4394 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
| 4395 | $as_echo_n "checking for egrep... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 4396 | if test "${ac_cv_path_EGREP+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4397 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4398 | else |
| 4399 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 4400 | then ac_cv_path_EGREP="$GREP -E" |
| 4401 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4402 | if test -z "$EGREP"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4403 | ac_path_EGREP_found=false |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4404 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4405 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4406 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4407 | do |
| 4408 | IFS=$as_save_IFS |
| 4409 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4410 | for ac_prog in egrep; do |
| 4411 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4412 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4413 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
| 4414 | # 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] | 4415 | # Check for GNU $ac_path_EGREP |
| 4416 | case `"$ac_path_EGREP" --version 2>&1` in |
| 4417 | *GNU*) |
| 4418 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 4419 | *) |
| 4420 | ac_count=0 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4421 | $as_echo_n 0123456789 >"conftest.in" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4422 | while : |
| 4423 | do |
| 4424 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4425 | mv "conftest.tmp" "conftest.in" |
| 4426 | cp "conftest.in" "conftest.nl" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4427 | $as_echo 'EGREP' >> "conftest.nl" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4428 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4429 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4430 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4431 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 4432 | # Best one so far, save it but keep looking for a better one |
| 4433 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 4434 | ac_path_EGREP_max=$ac_count |
| 4435 | fi |
| 4436 | # 10*(2^10) chars as input seems more than enough |
| 4437 | test $ac_count -gt 10 && break |
| 4438 | done |
| 4439 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4440 | esac |
| 4441 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4442 | $ac_path_EGREP_found && break 3 |
| 4443 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4444 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4445 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4446 | IFS=$as_save_IFS |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4447 | if test -z "$ac_cv_path_EGREP"; then |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 4448 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4449 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4450 | else |
| 4451 | ac_cv_path_EGREP=$EGREP |
| 4452 | fi |
| 4453 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4454 | fi |
| 4455 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
| 4457 | $as_echo "$ac_cv_path_EGREP" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4458 | EGREP="$ac_cv_path_EGREP" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4459 | |
| 4460 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4461 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 4462 | $as_echo_n "checking for ANSI C header files... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 4463 | if test "${ac_cv_header_stdc+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4464 | $as_echo_n "(cached) " >&6 |
| 4465 | else |
| 4466 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 4467 | /* end confdefs.h. */ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4468 | #include <stdlib.h> |
| 4469 | #include <stdarg.h> |
| 4470 | #include <string.h> |
| 4471 | #include <float.h> |
| 4472 | |
| 4473 | int |
| 4474 | main () |
| 4475 | { |
| 4476 | |
| 4477 | ; |
| 4478 | return 0; |
| 4479 | } |
| 4480 | _ACEOF |
| 4481 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4482 | ac_cv_header_stdc=yes |
| 4483 | else |
| 4484 | ac_cv_header_stdc=no |
| 4485 | fi |
| 4486 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4487 | |
| 4488 | if test $ac_cv_header_stdc = yes; then |
| 4489 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 4490 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4491 | /* end confdefs.h. */ |
| 4492 | #include <string.h> |
Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 4493 | |
Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 4494 | _ACEOF |
Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 4495 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4496 | $EGREP "memchr" >/dev/null 2>&1; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4497 | |
Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 4498 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4499 | ac_cv_header_stdc=no |
Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 4500 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 4501 | rm -f conftest* |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4502 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4503 | fi |
| 4504 | |
| 4505 | if test $ac_cv_header_stdc = yes; then |
| 4506 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 4507 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4508 | /* end confdefs.h. */ |
| 4509 | #include <stdlib.h> |
| 4510 | |
| 4511 | _ACEOF |
| 4512 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4513 | $EGREP "free" >/dev/null 2>&1; then : |
| 4514 | |
| 4515 | else |
| 4516 | ac_cv_header_stdc=no |
| 4517 | fi |
| 4518 | rm -f conftest* |
| 4519 | |
| 4520 | fi |
| 4521 | |
| 4522 | if test $ac_cv_header_stdc = yes; then |
| 4523 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 4524 | if test "$cross_compiling" = yes; then : |
| 4525 | : |
| 4526 | else |
| 4527 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4528 | /* end confdefs.h. */ |
| 4529 | #include <ctype.h> |
| 4530 | #include <stdlib.h> |
| 4531 | #if ((' ' & 0x0FF) == 0x020) |
| 4532 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4533 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4534 | #else |
| 4535 | # define ISLOWER(c) \ |
| 4536 | (('a' <= (c) && (c) <= 'i') \ |
| 4537 | || ('j' <= (c) && (c) <= 'r') \ |
| 4538 | || ('s' <= (c) && (c) <= 'z')) |
| 4539 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 4540 | #endif |
| 4541 | |
| 4542 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4543 | int |
| 4544 | main () |
| 4545 | { |
| 4546 | int i; |
| 4547 | for (i = 0; i < 256; i++) |
| 4548 | if (XOR (islower (i), ISLOWER (i)) |
| 4549 | || toupper (i) != TOUPPER (i)) |
| 4550 | return 2; |
| 4551 | return 0; |
| 4552 | } |
| 4553 | _ACEOF |
| 4554 | if ac_fn_c_try_run "$LINENO"; then : |
| 4555 | |
| 4556 | else |
| 4557 | ac_cv_header_stdc=no |
| 4558 | fi |
| 4559 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 4560 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 4561 | fi |
| 4562 | |
| 4563 | fi |
| 4564 | fi |
| 4565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| 4566 | $as_echo "$ac_cv_header_stdc" >&6; } |
| 4567 | if test $ac_cv_header_stdc = yes; then |
| 4568 | |
| 4569 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
| 4570 | |
| 4571 | fi |
| 4572 | |
| 4573 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 4574 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 4575 | inttypes.h stdint.h unistd.h |
| 4576 | do : |
| 4577 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4578 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 4579 | " |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 4580 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4581 | cat >>confdefs.h <<_ACEOF |
| 4582 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4583 | _ACEOF |
| 4584 | |
| 4585 | fi |
| 4586 | |
| 4587 | done |
| 4588 | |
| 4589 | |
| 4590 | |
| 4591 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 4592 | if test "x$ac_cv_header_minix_config_h" = x""yes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4593 | MINIX=yes |
| 4594 | else |
| 4595 | MINIX= |
| 4596 | fi |
| 4597 | |
| 4598 | |
| 4599 | if test "$MINIX" = yes; then |
| 4600 | |
| 4601 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h |
| 4602 | |
| 4603 | |
| 4604 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h |
| 4605 | |
| 4606 | |
| 4607 | $as_echo "#define _MINIX 1" >>confdefs.h |
| 4608 | |
| 4609 | fi |
| 4610 | |
| 4611 | |
| 4612 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 |
| 4613 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 4614 | if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4615 | $as_echo_n "(cached) " >&6 |
| 4616 | else |
| 4617 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4618 | /* end confdefs.h. */ |
| 4619 | |
| 4620 | # define __EXTENSIONS__ 1 |
| 4621 | $ac_includes_default |
| 4622 | int |
| 4623 | main () |
| 4624 | { |
| 4625 | |
| 4626 | ; |
| 4627 | return 0; |
| 4628 | } |
| 4629 | _ACEOF |
| 4630 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4631 | ac_cv_safe_to_define___extensions__=yes |
| 4632 | else |
| 4633 | ac_cv_safe_to_define___extensions__=no |
| 4634 | fi |
| 4635 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4636 | fi |
| 4637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
| 4638 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } |
| 4639 | test $ac_cv_safe_to_define___extensions__ = yes && |
| 4640 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h |
| 4641 | |
| 4642 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
| 4643 | |
| 4644 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
| 4645 | |
| 4646 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
| 4647 | |
| 4648 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h |
| 4649 | |
| 4650 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4651 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4652 | # Check for unsupported systems |
| 4653 | case $ac_sys_system/$ac_sys_release in |
| 4654 | atheos*|Linux*/1*) |
| 4655 | echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported. |
| 4656 | echo See README for details. |
| 4657 | exit 1;; |
| 4658 | esac |
| 4659 | |
| 4660 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4661 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-suffix" >&5 |
| 4662 | $as_echo_n "checking for --with-suffix... " >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4663 | |
| 4664 | # Check whether --with-suffix was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4665 | if test "${with_suffix+set}" = set; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4666 | withval=$with_suffix; |
| 4667 | case $withval in |
| 4668 | no) EXEEXT=;; |
| 4669 | yes) EXEEXT=.exe;; |
| 4670 | *) EXEEXT=$withval;; |
| 4671 | esac |
| 4672 | fi |
| 4673 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXEEXT" >&5 |
| 4675 | $as_echo "$EXEEXT" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4676 | |
| 4677 | # Test whether we're running on a non-case-sensitive system, in which |
| 4678 | # case we give a warning if no ext is given |
| 4679 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4680 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for case-insensitive build directory" >&5 |
| 4681 | $as_echo_n "checking for case-insensitive build directory... " >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4682 | if test ! -d CaseSensitiveTestDir; then |
| 4683 | mkdir CaseSensitiveTestDir |
| 4684 | fi |
| 4685 | |
| 4686 | if test -d casesensitivetestdir |
| 4687 | then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 4689 | $as_echo "yes" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4690 | BUILDEXEEXT=.exe |
| 4691 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4693 | $as_echo "no" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4694 | BUILDEXEEXT=$EXEEXT |
| 4695 | fi |
| 4696 | rmdir CaseSensitiveTestDir |
| 4697 | |
| 4698 | case $MACHDEP in |
| 4699 | bsdos*) |
| 4700 | case $CC in |
| 4701 | gcc) CC="$CC -D_HAVE_BSDI";; |
| 4702 | esac;; |
| 4703 | esac |
| 4704 | |
| 4705 | case $ac_sys_system in |
| 4706 | hp*|HP*) |
| 4707 | case $CC in |
| 4708 | cc|*/cc) CC="$CC -Ae";; |
| 4709 | esac;; |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4710 | esac |
| 4711 | |
| 4712 | |
| 4713 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4714 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY" >&5 |
| 4715 | $as_echo_n "checking LIBRARY... " >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4716 | if test -z "$LIBRARY" |
| 4717 | then |
Barry Warsaw | f040d7d | 2010-10-18 17:09:07 +0000 | [diff] [blame] | 4718 | LIBRARY='libpython$(VERSION)$(ABIFLAGS).a' |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4719 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBRARY" >&5 |
| 4721 | $as_echo "$LIBRARY" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4722 | |
| 4723 | # LDLIBRARY is the name of the library to link against (as opposed to the |
| 4724 | # name of the library into which to insert object files). BLDLIBRARY is also |
| 4725 | # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY |
| 4726 | # is blank as the main program is not linked directly against LDLIBRARY. |
| 4727 | # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On |
| 4728 | # systems without shared libraries, LDLIBRARY is the same as LIBRARY |
| 4729 | # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, |
| 4730 | # DLLLIBRARY is the shared (i.e., DLL) library. |
| 4731 | # |
| 4732 | # RUNSHARED is used to run shared python without installed libraries |
| 4733 | # |
| 4734 | # INSTSONAME is the name of the shared library that will be use to install |
| 4735 | # on the system - some systems like version suffix, others don't |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 4736 | # |
| 4737 | # LDVERSION is the shared library version number, normally the Python version |
| 4738 | # with the ABI build flags appended. |
| 4739 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4740 | |
| 4741 | |
| 4742 | |
| 4743 | |
| 4744 | |
| 4745 | |
Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 +0000 | [diff] [blame] | 4746 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4747 | LDLIBRARY="$LIBRARY" |
| 4748 | BLDLIBRARY='$(LDLIBRARY)' |
| 4749 | INSTSONAME='$(LDLIBRARY)' |
| 4750 | DLLLIBRARY='' |
| 4751 | LDLIBRARYDIR='' |
| 4752 | RUNSHARED='' |
Barry Warsaw | 14d98ac | 2010-11-24 19:43:47 +0000 | [diff] [blame] | 4753 | LDVERSION="$VERSION" |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4754 | |
| 4755 | # LINKCC is the command that links the python executable -- default is $(CC). |
| 4756 | # If CXX is set, and if it is needed to link a main function that was |
| 4757 | # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: |
| 4758 | # python might then depend on the C++ runtime |
| 4759 | # This is altered for AIX in order to build the export list before |
| 4760 | # linking. |
| 4761 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4762 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKCC" >&5 |
| 4763 | $as_echo_n "checking LINKCC... " >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4764 | if test -z "$LINKCC" |
| 4765 | then |
| 4766 | LINKCC='$(PURIFY) $(MAINCC)' |
| 4767 | case $ac_sys_system in |
| 4768 | AIX*) |
| 4769 | exp_extra="\"\"" |
| 4770 | if test $ac_sys_release -ge 5 -o \ |
| 4771 | $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then |
| 4772 | exp_extra="." |
| 4773 | fi |
| 4774 | LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";; |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4775 | QNX*) |
| 4776 | # qcc must be used because the other compilers do not |
| 4777 | # support -N. |
| 4778 | LINKCC=qcc;; |
| 4779 | esac |
| 4780 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKCC" >&5 |
| 4782 | $as_echo "$LINKCC" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4783 | |
| 4784 | # GNULD is set to "yes" if the GNU linker is used. If this goes wrong |
| 4785 | # make sure we default having it set to "no": this is used by |
| 4786 | # distutils.unixccompiler to know if it should add --enable-new-dtags |
| 4787 | # to linker command lines, and failing to detect GNU ld simply results |
| 4788 | # in the same bahaviour as before. |
| 4789 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4790 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
| 4791 | $as_echo_n "checking for GNU ld... " >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4792 | ac_prog=ld |
| 4793 | if test "$GCC" = yes; then |
| 4794 | ac_prog=`$CC -print-prog-name=ld` |
| 4795 | fi |
| 4796 | case `"$ac_prog" -V 2>&1 < /dev/null` in |
| 4797 | *GNU*) |
| 4798 | GNULD=yes;; |
| 4799 | *) |
| 4800 | GNULD=no;; |
| 4801 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNULD" >&5 |
| 4803 | $as_echo "$GNULD" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4804 | |
Daniel Stutzbach | a606faa | 2010-08-31 19:51:07 +0000 | [diff] [blame] | 4805 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
| 4806 | $as_echo_n "checking for inline... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 4807 | if test "${ac_cv_c_inline+set}" = set; then : |
Daniel Stutzbach | a606faa | 2010-08-31 19:51:07 +0000 | [diff] [blame] | 4808 | $as_echo_n "(cached) " >&6 |
| 4809 | else |
| 4810 | ac_cv_c_inline=no |
| 4811 | for ac_kw in inline __inline__ __inline; do |
| 4812 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4813 | /* end confdefs.h. */ |
| 4814 | #ifndef __cplusplus |
| 4815 | typedef int foo_t; |
| 4816 | static $ac_kw foo_t static_foo () {return 0; } |
| 4817 | $ac_kw foo_t foo () {return 0; } |
| 4818 | #endif |
| 4819 | |
| 4820 | _ACEOF |
| 4821 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4822 | ac_cv_c_inline=$ac_kw |
| 4823 | fi |
| 4824 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4825 | test "$ac_cv_c_inline" != no && break |
| 4826 | done |
| 4827 | |
| 4828 | fi |
| 4829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 |
| 4830 | $as_echo "$ac_cv_c_inline" >&6; } |
| 4831 | |
| 4832 | case $ac_cv_c_inline in |
| 4833 | inline | yes) ;; |
| 4834 | *) |
| 4835 | case $ac_cv_c_inline in |
| 4836 | no) ac_val=;; |
| 4837 | *) ac_val=$ac_cv_c_inline;; |
| 4838 | esac |
| 4839 | cat >>confdefs.h <<_ACEOF |
| 4840 | #ifndef __cplusplus |
| 4841 | #define inline $ac_val |
| 4842 | #endif |
| 4843 | _ACEOF |
| 4844 | ;; |
| 4845 | esac |
| 4846 | |
| 4847 | if test "$ac_cv_c_inline" != no ; then |
Benjamin Peterson | d7f73e9 | 2010-09-05 00:09:07 +0000 | [diff] [blame] | 4848 | |
| 4849 | $as_echo "#define USE_INLINE 1" >>confdefs.h |
Daniel Stutzbach | a606faa | 2010-08-31 19:51:07 +0000 | [diff] [blame] | 4850 | |
| 4851 | |
| 4852 | fi |
| 4853 | |
| 4854 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4855 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-shared" >&5 |
| 4856 | $as_echo_n "checking for --enable-shared... " >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4857 | # Check whether --enable-shared was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4858 | if test "${enable_shared+set}" = set; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4859 | enableval=$enable_shared; |
| 4860 | fi |
| 4861 | |
| 4862 | |
| 4863 | if test -z "$enable_shared" |
| 4864 | then |
| 4865 | case $ac_sys_system in |
Antoine Pitrou | 6103ab1 | 2009-10-24 20:11:21 +0000 | [diff] [blame] | 4866 | CYGWIN*) |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4867 | enable_shared="yes";; |
| 4868 | *) |
| 4869 | enable_shared="no";; |
| 4870 | esac |
| 4871 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
| 4873 | $as_echo "$enable_shared" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4874 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4875 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-profiling" >&5 |
| 4876 | $as_echo_n "checking for --enable-profiling... " >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4877 | # Check whether --enable-profiling was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4878 | if test "${enable_profiling+set}" = set; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4879 | enableval=$enable_profiling; ac_save_cc="$CC" |
| 4880 | CC="$CC -pg" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4881 | if test "$cross_compiling" = yes; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4882 | ac_enable_profiling="no" |
| 4883 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4884 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4885 | /* end confdefs.h. */ |
| 4886 | int main() { return 0; } |
| 4887 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4888 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4889 | ac_enable_profiling="yes" |
| 4890 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4891 | ac_enable_profiling="no" |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4892 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4893 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 4894 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4895 | fi |
| 4896 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4897 | CC="$ac_save_cc" |
| 4898 | fi |
| 4899 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_profiling" >&5 |
| 4901 | $as_echo "$ac_enable_profiling" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4902 | |
| 4903 | case "$ac_enable_profiling" in |
| 4904 | "yes") |
| 4905 | BASECFLAGS="-pg $BASECFLAGS" |
| 4906 | LDFLAGS="-pg $LDFLAGS" |
| 4907 | ;; |
| 4908 | esac |
| 4909 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4910 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDLIBRARY" >&5 |
| 4911 | $as_echo_n "checking LDLIBRARY... " >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4912 | |
| 4913 | # MacOSX framework builds need more magic. LDLIBRARY is the dynamic |
| 4914 | # library that we build, but we do not want to link against it (we |
| 4915 | # will find it with a -framework option). For this reason there is an |
| 4916 | # extra variable BLDLIBRARY against which Python and the extension |
| 4917 | # modules are linked, BLDLIBRARY. This is normally the same as |
| 4918 | # LDLIBRARY, but empty for MacOSX framework builds. |
| 4919 | if test "$enable_framework" |
| 4920 | then |
| 4921 | LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 4922 | RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH" |
| 4923 | BLDLIBRARY='' |
| 4924 | else |
| 4925 | BLDLIBRARY='$(LDLIBRARY)' |
| 4926 | fi |
| 4927 | |
| 4928 | # Other platforms follow |
| 4929 | if test $enable_shared = "yes"; then |
| 4930 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4931 | $as_echo "#define Py_ENABLE_SHARED 1" >>confdefs.h |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4932 | |
| 4933 | case $ac_sys_system in |
| 4934 | CYGWIN*) |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 4935 | LDLIBRARY='libpython$(LDVERSION).dll.a' |
| 4936 | DLLLIBRARY='libpython$(LDVERSION).dll' |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4937 | ;; |
| 4938 | SunOS*) |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 4939 | LDLIBRARY='libpython$(LDVERSION).so' |
| 4940 | BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(LDVERSION)' |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4941 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
| 4942 | INSTSONAME="$LDLIBRARY".$SOVERSION |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 4943 | if test "$with_pydebug" != yes |
Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 +0000 | [diff] [blame] | 4944 | then |
| 4945 | PY3LIBRARY=libpython3.so |
| 4946 | fi |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4947 | ;; |
| 4948 | Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*) |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 4949 | LDLIBRARY='libpython$(LDVERSION).so' |
| 4950 | BLDLIBRARY='-L. -lpython$(LDVERSION)' |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4951 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
| 4952 | case $ac_sys_system in |
| 4953 | FreeBSD*) |
| 4954 | SOVERSION=`echo $SOVERSION|cut -d "." -f 1` |
| 4955 | ;; |
| 4956 | esac |
| 4957 | INSTSONAME="$LDLIBRARY".$SOVERSION |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 4958 | if test "$with_pydebug" != yes |
Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 +0000 | [diff] [blame] | 4959 | then |
| 4960 | PY3LIBRARY=libpython3.so |
| 4961 | fi |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4962 | ;; |
| 4963 | hp*|HP*) |
| 4964 | case `uname -m` in |
| 4965 | ia64) |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 4966 | LDLIBRARY='libpython$(LDVERSION).so' |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4967 | ;; |
| 4968 | *) |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 4969 | LDLIBRARY='libpython$(LDVERSION).sl' |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4970 | ;; |
| 4971 | esac |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 4972 | BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(LDVERSION)' |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4973 | RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH} |
| 4974 | ;; |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4975 | Darwin*) |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 4976 | LDLIBRARY='libpython$(LDVERSION).dylib' |
| 4977 | BLDLIBRARY='-L. -lpython$(LDVERSION)' |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4978 | RUNSHARED='DYLD_LIBRARY_PATH=`pwd`:${DYLD_LIBRARY_PATH}' |
| 4979 | ;; |
Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 4980 | AIX*) |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 4981 | LDLIBRARY='libpython$(LDVERSION).so' |
Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 4982 | RUNSHARED=LIBPATH=`pwd`:${LIBPATH} |
| 4983 | ;; |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4984 | |
| 4985 | esac |
| 4986 | else # shared is disabled |
| 4987 | case $ac_sys_system in |
| 4988 | CYGWIN*) |
| 4989 | BLDLIBRARY='$(LIBRARY)' |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 4990 | LDLIBRARY='libpython$(LDVERSION).dll.a' |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4991 | ;; |
| 4992 | esac |
| 4993 | fi |
| 4994 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDLIBRARY" >&5 |
| 4996 | $as_echo "$LDLIBRARY" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4997 | |
| 4998 | if test -n "$ac_tool_prefix"; then |
| 4999 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 5000 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5001 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5002 | $as_echo_n "checking for $ac_word... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 5003 | if test "${ac_cv_prog_RANLIB+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5004 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5005 | else |
| 5006 | if test -n "$RANLIB"; then |
| 5007 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 5008 | else |
| 5009 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5010 | for as_dir in $PATH |
| 5011 | do |
| 5012 | IFS=$as_save_IFS |
| 5013 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5014 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5015 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5016 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5017 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5018 | break 2 |
| 5019 | fi |
| 5020 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5021 | done |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5022 | IFS=$as_save_IFS |
| 5023 | |
| 5024 | fi |
| 5025 | fi |
| 5026 | RANLIB=$ac_cv_prog_RANLIB |
| 5027 | if test -n "$RANLIB"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
| 5029 | $as_echo "$RANLIB" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5030 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5032 | $as_echo "no" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5033 | fi |
| 5034 | |
| 5035 | |
| 5036 | fi |
| 5037 | if test -z "$ac_cv_prog_RANLIB"; then |
| 5038 | ac_ct_RANLIB=$RANLIB |
| 5039 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 5040 | set dummy ranlib; ac_word=$2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5041 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5042 | $as_echo_n "checking for $ac_word... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 5043 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5044 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5045 | else |
| 5046 | if test -n "$ac_ct_RANLIB"; then |
| 5047 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 5048 | else |
| 5049 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5050 | for as_dir in $PATH |
| 5051 | do |
| 5052 | IFS=$as_save_IFS |
| 5053 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5054 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5055 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5056 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5057 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5058 | break 2 |
| 5059 | fi |
| 5060 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5061 | done |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5062 | IFS=$as_save_IFS |
| 5063 | |
| 5064 | fi |
| 5065 | fi |
| 5066 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 5067 | if test -n "$ac_ct_RANLIB"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
| 5069 | $as_echo "$ac_ct_RANLIB" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5070 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5072 | $as_echo "no" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5073 | fi |
| 5074 | |
| 5075 | if test "x$ac_ct_RANLIB" = x; then |
| 5076 | RANLIB=":" |
| 5077 | else |
| 5078 | case $cross_compiling:$ac_tool_warned in |
| 5079 | yes:) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5080 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5081 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5082 | ac_tool_warned=yes ;; |
| 5083 | esac |
| 5084 | RANLIB=$ac_ct_RANLIB |
| 5085 | fi |
| 5086 | else |
| 5087 | RANLIB="$ac_cv_prog_RANLIB" |
| 5088 | fi |
| 5089 | |
| 5090 | |
| 5091 | for ac_prog in ar aal |
| 5092 | do |
| 5093 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5094 | set dummy $ac_prog; ac_word=$2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5095 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5096 | $as_echo_n "checking for $ac_word... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 5097 | if test "${ac_cv_prog_AR+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5098 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5099 | else |
| 5100 | if test -n "$AR"; then |
| 5101 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 5102 | else |
| 5103 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5104 | for as_dir in $PATH |
| 5105 | do |
| 5106 | IFS=$as_save_IFS |
| 5107 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5108 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5109 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5110 | ac_cv_prog_AR="$ac_prog" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5111 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5112 | break 2 |
| 5113 | fi |
| 5114 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5115 | done |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5116 | IFS=$as_save_IFS |
| 5117 | |
| 5118 | fi |
| 5119 | fi |
| 5120 | AR=$ac_cv_prog_AR |
| 5121 | if test -n "$AR"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
| 5123 | $as_echo "$AR" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5124 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5126 | $as_echo "no" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5127 | fi |
| 5128 | |
| 5129 | |
| 5130 | test -n "$AR" && break |
| 5131 | done |
| 5132 | test -n "$AR" || AR="ar" |
| 5133 | |
| 5134 | |
| 5135 | # tweak ARFLAGS only if the user didn't set it on the command line |
| 5136 | |
| 5137 | if test -z "$ARFLAGS" |
| 5138 | then |
| 5139 | ARFLAGS="rc" |
| 5140 | fi |
| 5141 | |
| 5142 | |
Georg Brandl | 1ca2e79 | 2011-03-05 20:51:24 +0100 | [diff] [blame] | 5143 | |
| 5144 | |
| 5145 | # Extract the first word of "hg", so it can be a program name with args. |
| 5146 | set dummy hg; ac_word=$2 |
| 5147 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5148 | $as_echo_n "checking for $ac_word... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 5149 | if test "${ac_cv_prog_HAS_HG+set}" = set; then : |
Georg Brandl | 1ca2e79 | 2011-03-05 20:51:24 +0100 | [diff] [blame] | 5150 | $as_echo_n "(cached) " >&6 |
| 5151 | else |
| 5152 | if test -n "$HAS_HG"; then |
| 5153 | ac_cv_prog_HAS_HG="$HAS_HG" # Let the user override the test. |
| 5154 | else |
| 5155 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5156 | for as_dir in $PATH |
| 5157 | do |
| 5158 | IFS=$as_save_IFS |
| 5159 | test -z "$as_dir" && as_dir=. |
| 5160 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5161 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5162 | ac_cv_prog_HAS_HG="found" |
| 5163 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5164 | break 2 |
| 5165 | fi |
| 5166 | done |
| 5167 | done |
| 5168 | IFS=$as_save_IFS |
| 5169 | |
| 5170 | test -z "$ac_cv_prog_HAS_HG" && ac_cv_prog_HAS_HG="not-found" |
| 5171 | fi |
| 5172 | fi |
| 5173 | HAS_HG=$ac_cv_prog_HAS_HG |
| 5174 | if test -n "$HAS_HG"; then |
| 5175 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAS_HG" >&5 |
| 5176 | $as_echo "$HAS_HG" >&6; } |
| 5177 | else |
| 5178 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5179 | $as_echo "no" >&6; } |
| 5180 | fi |
| 5181 | |
| 5182 | |
| 5183 | if test $HAS_HG = found |
| 5184 | then |
| 5185 | HGVERSION="hg id -i \$(srcdir)" |
| 5186 | HGTAG="hg id -t \$(srcdir)" |
| 5187 | HGBRANCH="hg id -b \$(srcdir)" |
| 5188 | else |
| 5189 | HGVERSION="" |
| 5190 | HGTAG="" |
| 5191 | HGBRANCH="" |
| 5192 | fi |
| 5193 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5194 | case $MACHDEP in |
| 5195 | bsdos*|hp*|HP*) |
| 5196 | # install -d does not work on BSDI or HP-UX |
| 5197 | if test -z "$INSTALL" |
| 5198 | then |
| 5199 | INSTALL="${srcdir}/install-sh -c" |
| 5200 | fi |
| 5201 | esac |
| 5202 | ac_aux_dir= |
| 5203 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 5204 | if test -f "$ac_dir/install-sh"; then |
| 5205 | ac_aux_dir=$ac_dir |
| 5206 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 5207 | break |
| 5208 | elif test -f "$ac_dir/install.sh"; then |
| 5209 | ac_aux_dir=$ac_dir |
| 5210 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 5211 | break |
| 5212 | elif test -f "$ac_dir/shtool"; then |
| 5213 | ac_aux_dir=$ac_dir |
| 5214 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 5215 | break |
| 5216 | fi |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5217 | done |
| 5218 | if test -z "$ac_aux_dir"; then |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 5219 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5220 | fi |
| 5221 | |
| 5222 | # These three variables are undocumented and unsupported, |
| 5223 | # and are intended to be withdrawn in a future Autoconf release. |
| 5224 | # They can cause serious problems if a builder's source tree is in a directory |
| 5225 | # whose full name contains unusual characters. |
| 5226 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 5227 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 5228 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 5229 | |
| 5230 | |
| 5231 | # Find a good install program. We prefer a C program (faster), |
| 5232 | # so one script is as good as another. But avoid the broken or |
| 5233 | # incompatible versions: |
| 5234 | # SysV /etc/install, /usr/sbin/install |
| 5235 | # SunOS /usr/etc/install |
| 5236 | # IRIX /sbin/install |
| 5237 | # AIX /bin/install |
| 5238 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 5239 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 5240 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 5241 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 5242 | # OS/2's system install, which has a completely different semantic |
| 5243 | # ./install, which can be erroneously created by make from ./install.sh. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5244 | # Reject install programs that cannot install multiple files. |
| 5245 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
| 5246 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5247 | if test -z "$INSTALL"; then |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 5248 | if test "${ac_cv_path_install+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5249 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5250 | else |
| 5251 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5252 | for as_dir in $PATH |
| 5253 | do |
| 5254 | IFS=$as_save_IFS |
| 5255 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5256 | # Account for people who put trailing slashes in PATH elements. |
| 5257 | case $as_dir/ in #(( |
| 5258 | ./ | .// | /[cC]/* | \ |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5259 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5260 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5261 | /usr/ucb/* ) ;; |
| 5262 | *) |
| 5263 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 5264 | # Don't use installbsd from OSF since it installs stuff as root |
| 5265 | # by default. |
| 5266 | for ac_prog in ginstall scoinst install; do |
| 5267 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5268 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
| 5269 | if test $ac_prog = install && |
| 5270 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 5271 | # AIX install. It has an incompatible calling convention. |
| 5272 | : |
| 5273 | elif test $ac_prog = install && |
| 5274 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 5275 | # program-specific install script used by HP pwplus--don't use. |
| 5276 | : |
| 5277 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5278 | rm -rf conftest.one conftest.two conftest.dir |
| 5279 | echo one > conftest.one |
| 5280 | echo two > conftest.two |
| 5281 | mkdir conftest.dir |
| 5282 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 5283 | test -s conftest.one && test -s conftest.two && |
| 5284 | test -s conftest.dir/conftest.one && |
| 5285 | test -s conftest.dir/conftest.two |
| 5286 | then |
| 5287 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 5288 | break 3 |
| 5289 | fi |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5290 | fi |
| 5291 | fi |
| 5292 | done |
| 5293 | done |
| 5294 | ;; |
| 5295 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5296 | |
| 5297 | done |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5298 | IFS=$as_save_IFS |
| 5299 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5300 | rm -rf conftest.one conftest.two conftest.dir |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5301 | |
| 5302 | fi |
| 5303 | if test "${ac_cv_path_install+set}" = set; then |
| 5304 | INSTALL=$ac_cv_path_install |
| 5305 | else |
| 5306 | # As a last resort, use the slow shell script. Don't cache a |
| 5307 | # value for INSTALL within a source directory, because that will |
| 5308 | # break other packages using the cache if that directory is |
| 5309 | # removed, or if the value is a relative name. |
| 5310 | INSTALL=$ac_install_sh |
| 5311 | fi |
| 5312 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
| 5314 | $as_echo "$INSTALL" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5315 | |
| 5316 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 5317 | # It thinks the first close brace ends the variable substitution. |
| 5318 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 5319 | |
| 5320 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 5321 | |
| 5322 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 5323 | |
| 5324 | |
| 5325 | # Not every filesystem supports hard links |
| 5326 | |
| 5327 | if test -z "$LN" ; then |
| 5328 | case $ac_sys_system in |
| 5329 | CYGWIN*) LN="ln -s";; |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5330 | *) LN=ln;; |
| 5331 | esac |
| 5332 | fi |
| 5333 | |
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 5334 | # For calculating the .so ABI tag. |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5335 | |
| 5336 | ABIFLAGS="" |
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 5337 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5338 | # Check for --with-pydebug |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5339 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pydebug" >&5 |
| 5340 | $as_echo_n "checking for --with-pydebug... " >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5341 | |
| 5342 | # Check whether --with-pydebug was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5343 | if test "${with_pydebug+set}" = set; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5344 | withval=$with_pydebug; |
| 5345 | if test "$withval" != no |
| 5346 | then |
| 5347 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5348 | $as_echo "#define Py_DEBUG 1" >>confdefs.h |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5349 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5351 | $as_echo "yes" >&6; }; |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5352 | Py_DEBUG='true' |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5353 | ABIFLAGS="${ABIFLAGS}d" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5354 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5355 | $as_echo "no" >&6; }; Py_DEBUG='false' |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5356 | fi |
| 5357 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5359 | $as_echo "no" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5360 | fi |
| 5361 | |
| 5362 | |
| 5363 | # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be |
| 5364 | # merged with this chunk of code? |
| 5365 | |
| 5366 | # Optimizer/debugger flags |
| 5367 | # ------------------------ |
| 5368 | # (The following bit of code is complicated enough - please keep things |
| 5369 | # indented properly. Just pretend you're editing Python code. ;-) |
| 5370 | |
| 5371 | # There are two parallel sets of case statements below, one that checks to |
| 5372 | # see if OPT was set and one that does BASECFLAGS setting based upon |
| 5373 | # compiler and platform. BASECFLAGS tweaks need to be made even if the |
| 5374 | # user set OPT. |
| 5375 | |
| 5376 | # tweak OPT based on compiler and platform, only if the user didn't set |
| 5377 | # it on the command line |
| 5378 | |
Benjamin Peterson | 65b4ec5 | 2010-03-23 21:02:34 +0000 | [diff] [blame] | 5379 | if test "${OPT-unset}" = "unset" |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5380 | then |
| 5381 | case $GCC in |
| 5382 | yes) |
| 5383 | if test "$CC" != 'g++' ; then |
| 5384 | STRICT_PROTO="-Wstrict-prototypes" |
| 5385 | fi |
| 5386 | # For gcc 4.x we need to use -fwrapv so lets check if its supported |
| 5387 | if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then |
| 5388 | WRAP="-fwrapv" |
| 5389 | fi |
| 5390 | case $ac_cv_prog_cc_g in |
| 5391 | yes) |
| 5392 | if test "$Py_DEBUG" = 'true' ; then |
| 5393 | # Optimization messes up debuggers, so turn it off for |
| 5394 | # debug builds. |
Mark Dickinson | b2153e9 | 2010-05-05 22:31:36 +0000 | [diff] [blame] | 5395 | OPT="-g -O0 -Wall $STRICT_PROTO" |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5396 | else |
| 5397 | OPT="-g $WRAP -O3 -Wall $STRICT_PROTO" |
| 5398 | fi |
| 5399 | ;; |
| 5400 | *) |
| 5401 | OPT="-O3 -Wall $STRICT_PROTO" |
| 5402 | ;; |
| 5403 | esac |
| 5404 | case $ac_sys_system in |
| 5405 | SCO_SV*) OPT="$OPT -m486 -DSCO5" |
| 5406 | ;; |
| 5407 | esac |
| 5408 | ;; |
| 5409 | |
| 5410 | *) |
| 5411 | OPT="-O" |
| 5412 | ;; |
| 5413 | esac |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5414 | fi |
| 5415 | |
| 5416 | |
| 5417 | |
| 5418 | # The -arch flags for universal builds on OSX |
| 5419 | UNIVERSAL_ARCH_FLAGS= |
| 5420 | |
| 5421 | |
| 5422 | # tweak BASECFLAGS based on compiler and platform |
| 5423 | case $GCC in |
| 5424 | yes) |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 5425 | # Python doesn't violate C99 aliasing rules, but older versions of |
| 5426 | # GCC produce warnings for legal Python code. Enable |
| 5427 | # -fno-strict-aliasing on versions of GCC that support but produce |
| 5428 | # warnings. See Issue3326 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5429 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts and needs -fno-strict-aliasing" >&5 |
| 5430 | $as_echo_n "checking whether $CC accepts and needs -fno-strict-aliasing... " >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5431 | ac_save_cc="$CC" |
| 5432 | CC="$CC -fno-strict-aliasing" |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 5433 | save_CFLAGS="$CFLAGS" |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 5434 | if test "${ac_cv_no_strict_aliasing+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5435 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 5436 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5437 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5438 | /* end confdefs.h. */ |
Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 +0000 | [diff] [blame] | 5439 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 5440 | |
Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 +0000 | [diff] [blame] | 5441 | int |
| 5442 | main () |
| 5443 | { |
Mark Dickinson | 8c2b6f1 | 2010-05-11 09:23:07 +0000 | [diff] [blame] | 5444 | |
Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 +0000 | [diff] [blame] | 5445 | ; |
| 5446 | return 0; |
| 5447 | } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 5448 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5449 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5450 | if ac_fn_c_try_compile "$LINENO"; then : |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 5451 | |
| 5452 | CC="$ac_save_cc -fstrict-aliasing" |
| 5453 | CFLAGS="$CFLAGS -Werror -Wstrict-aliasing" |
| 5454 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 5455 | /* end confdefs.h. */ |
| 5456 | |
Mark Dickinson | 8c2b6f1 | 2010-05-11 09:23:07 +0000 | [diff] [blame] | 5457 | void f(int **x) {} |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 5458 | int |
| 5459 | main () |
| 5460 | { |
Mark Dickinson | 8c2b6f1 | 2010-05-11 09:23:07 +0000 | [diff] [blame] | 5461 | double *x; f((int **) &x); |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 5462 | ; |
| 5463 | return 0; |
| 5464 | } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 5465 | |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 5466 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5467 | if ac_fn_c_try_compile "$LINENO"; then : |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 5468 | |
| 5469 | ac_cv_no_strict_aliasing=no |
| 5470 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5471 | else |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 5472 | |
| 5473 | ac_cv_no_strict_aliasing=yes |
| 5474 | |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 5475 | fi |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 5476 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 5477 | |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 5478 | else |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 5479 | |
| 5480 | ac_cv_no_strict_aliasing=no |
| 5481 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5482 | fi |
Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 +0000 | [diff] [blame] | 5483 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 5484 | fi |
| 5485 | |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 5486 | CFLAGS="$save_CFLAGS" |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5487 | CC="$ac_save_cc" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_no_strict_aliasing" >&5 |
| 5489 | $as_echo "$ac_cv_no_strict_aliasing" >&6; } |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 5490 | if test $ac_cv_no_strict_aliasing = yes |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5491 | then |
| 5492 | BASECFLAGS="$BASECFLAGS -fno-strict-aliasing" |
| 5493 | fi |
| 5494 | |
| 5495 | # if using gcc on alpha, use -mieee to get (near) full IEEE 754 |
| 5496 | # support. Without this, treatment of subnormals doesn't follow |
| 5497 | # the standard. |
| 5498 | case $ac_sys_machine in |
| 5499 | alpha*) |
| 5500 | BASECFLAGS="$BASECFLAGS -mieee" |
| 5501 | ;; |
| 5502 | esac |
| 5503 | |
| 5504 | case $ac_sys_system in |
| 5505 | SCO_SV*) |
| 5506 | BASECFLAGS="$BASECFLAGS -m486 -DSCO5" |
| 5507 | ;; |
| 5508 | # is there any other compiler on Darwin besides gcc? |
| 5509 | Darwin*) |
| 5510 | # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd |
| 5511 | # used to be here, but non-Apple gcc doesn't accept them. |
Ronald Oussoren | 666028b | 2010-04-18 19:07:43 +0000 | [diff] [blame] | 5512 | if test "${CC}" = gcc |
| 5513 | then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5514 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which compiler should be used" >&5 |
| 5515 | $as_echo_n "checking which compiler should be used... " >&6; } |
Ronald Oussoren | 666028b | 2010-04-18 19:07:43 +0000 | [diff] [blame] | 5516 | case "${UNIVERSALSDK}" in |
| 5517 | */MacOSX10.4u.sdk) |
| 5518 | # Build using 10.4 SDK, force usage of gcc when the |
| 5519 | # compiler is gcc, otherwise the user will get very |
| 5520 | # confusing error messages when building on OSX 10.6 |
| 5521 | CC=gcc-4.0 |
| 5522 | CPP=cpp-4.0 |
| 5523 | ;; |
| 5524 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 5526 | $as_echo "$CC" >&6; } |
Ronald Oussoren | 666028b | 2010-04-18 19:07:43 +0000 | [diff] [blame] | 5527 | fi |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5528 | |
| 5529 | |
| 5530 | if test "${enable_universalsdk}"; then |
| 5531 | UNIVERSAL_ARCH_FLAGS="" |
| 5532 | if test "$UNIVERSAL_ARCHS" = "32-bit" ; then |
| 5533 | UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386" |
| 5534 | ARCH_RUN_32BIT="" |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 5535 | LIPO_32BIT_FLAGS="" |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5536 | elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then |
| 5537 | UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64" |
Ronald Oussoren | 6f6c562 | 2009-12-24 14:03:19 +0000 | [diff] [blame] | 5538 | LIPO_32BIT_FLAGS="" |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 5539 | ARCH_RUN_32BIT="true" |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5540 | |
| 5541 | elif test "$UNIVERSAL_ARCHS" = "all" ; then |
| 5542 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64" |
Ronald Oussoren | 6f6c562 | 2009-12-24 14:03:19 +0000 | [diff] [blame] | 5543 | LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" |
Ronald Oussoren | 564f7f2 | 2010-02-11 13:23:08 +0000 | [diff] [blame] | 5544 | ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5545 | |
Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 5546 | elif test "$UNIVERSAL_ARCHS" = "intel" ; then |
| 5547 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64" |
Ronald Oussoren | 6f6c562 | 2009-12-24 14:03:19 +0000 | [diff] [blame] | 5548 | LIPO_32BIT_FLAGS="-extract i386" |
Ronald Oussoren | 564f7f2 | 2010-02-11 13:23:08 +0000 | [diff] [blame] | 5549 | ARCH_RUN_32BIT="/usr/bin/arch -i386" |
Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 5550 | |
| 5551 | elif test "$UNIVERSAL_ARCHS" = "3-way" ; then |
| 5552 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64" |
Ronald Oussoren | 6f6c562 | 2009-12-24 14:03:19 +0000 | [diff] [blame] | 5553 | LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" |
Ronald Oussoren | 564f7f2 | 2010-02-11 13:23:08 +0000 | [diff] [blame] | 5554 | ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" |
Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 5555 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5556 | else |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 5557 | as_fn_error $? "proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" "$LINENO" 5 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5558 | |
| 5559 | fi |
| 5560 | |
| 5561 | |
Ronald Oussoren | 666028b | 2010-04-18 19:07:43 +0000 | [diff] [blame] | 5562 | CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}" |
| 5563 | if test "${UNIVERSALSDK}" != "/" |
| 5564 | then |
| 5565 | CFLAGS="-isysroot ${UNIVERSALSDK} ${CFLAGS}" |
| 5566 | LDFLAGS="-isysroot ${UNIVERSALSDK} ${LDFLAGS}" |
Ronald Oussoren | 712979d | 2010-04-20 19:51:33 +0000 | [diff] [blame] | 5567 | CPPFLAGS="-isysroot ${UNIVERSALSDK} ${CPPFLAGS}" |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5568 | fi |
| 5569 | fi |
| 5570 | |
| 5571 | # Calculate the right deployment target for this build. |
| 5572 | # |
| 5573 | cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'` |
| 5574 | if test ${cur_target} '>' 10.2; then |
| 5575 | cur_target=10.3 |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 5576 | if test ${enable_universalsdk}; then |
| 5577 | if test "${UNIVERSAL_ARCHS}" = "all"; then |
| 5578 | # Ensure that the default platform for a |
| 5579 | # 4-way universal build is OSX 10.5, |
| 5580 | # that's the first OS release where |
| 5581 | # 4-way builds make sense. |
| 5582 | cur_target='10.5' |
Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 5583 | |
| 5584 | elif test "${UNIVERSAL_ARCHS}" = "3-way"; then |
| 5585 | cur_target='10.5' |
| 5586 | |
| 5587 | elif test "${UNIVERSAL_ARCHS}" = "intel"; then |
| 5588 | cur_target='10.5' |
| 5589 | |
| 5590 | elif test "${UNIVERSAL_ARCHS}" = "64-bit"; then |
| 5591 | cur_target='10.5' |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 5592 | fi |
| 5593 | else |
Ronald Oussoren | e3da75a | 2010-02-11 13:38:58 +0000 | [diff] [blame] | 5594 | if test `/usr/bin/arch` = "i386"; then |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 5595 | # On Intel macs default to a deployment |
| 5596 | # target of 10.4, that's the first OSX |
| 5597 | # release with Intel support. |
| 5598 | cur_target="10.4" |
| 5599 | fi |
| 5600 | fi |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5601 | fi |
| 5602 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}} |
| 5603 | |
| 5604 | # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the |
| 5605 | # environment with a value that is the same as what we'll use |
| 5606 | # in the Makefile to ensure that we'll get the same compiler |
| 5607 | # environment during configure and build time. |
| 5608 | MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET" |
| 5609 | export MACOSX_DEPLOYMENT_TARGET |
| 5610 | EXPORT_MACOSX_DEPLOYMENT_TARGET='' |
| 5611 | |
| 5612 | ;; |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5613 | esac |
| 5614 | ;; |
| 5615 | |
| 5616 | *) |
| 5617 | case $ac_sys_system in |
| 5618 | OpenUNIX*|UnixWare*) |
| 5619 | BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca " |
| 5620 | ;; |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5621 | SCO_SV*) |
| 5622 | BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5" |
| 5623 | ;; |
| 5624 | esac |
| 5625 | ;; |
| 5626 | esac |
| 5627 | |
| 5628 | if test "$Py_DEBUG" = 'true'; then |
| 5629 | : |
| 5630 | else |
| 5631 | OPT="-DNDEBUG $OPT" |
| 5632 | fi |
| 5633 | |
| 5634 | if test "$ac_arch_flags" |
| 5635 | then |
| 5636 | BASECFLAGS="$BASECFLAGS $ac_arch_flags" |
| 5637 | fi |
| 5638 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5639 | # Check whether GCC supports PyArg_ParseTuple format |
| 5640 | if test "$GCC" = "yes" |
| 5641 | then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5642 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc supports ParseTuple __format__" >&5 |
| 5643 | $as_echo_n "checking whether gcc supports ParseTuple __format__... " >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5644 | save_CFLAGS=$CFLAGS |
| 5645 | CFLAGS="$CFLAGS -Werror" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5646 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5647 | /* end confdefs.h. */ |
| 5648 | |
| 5649 | void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2))); |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5650 | int |
| 5651 | main () |
| 5652 | { |
| 5653 | |
| 5654 | ; |
| 5655 | return 0; |
| 5656 | } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 5657 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5658 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5659 | if ac_fn_c_try_compile "$LINENO"; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5660 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 5661 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5662 | $as_echo "#define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1" >>confdefs.h |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5663 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 5664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5665 | $as_echo "yes" >&6; } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 5666 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5667 | else |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 5668 | |
| 5669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5670 | $as_echo "no" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5671 | |
| 5672 | fi |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5673 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5674 | CFLAGS=$save_CFLAGS |
| 5675 | fi |
| 5676 | |
| 5677 | # On some compilers, pthreads are available without further options |
| 5678 | # (e.g. MacOS X). On some of these systems, the compiler will not |
| 5679 | # complain if unaccepted options are passed (e.g. gcc on Mac OS X). |
| 5680 | # So we have to see first whether pthreads are available without |
| 5681 | # options before we can check whether -Kpthread improves anything. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5682 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads are available without options" >&5 |
| 5683 | $as_echo_n "checking whether pthreads are available without options... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 5684 | if test "${ac_cv_pthread_is_default+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5685 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5686 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5687 | if test "$cross_compiling" = yes; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5688 | ac_cv_pthread_is_default=no |
| 5689 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5690 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5691 | /* end confdefs.h. */ |
| 5692 | |
| 5693 | #include <pthread.h> |
| 5694 | |
| 5695 | void* routine(void* p){return NULL;} |
| 5696 | |
| 5697 | int main(){ |
| 5698 | pthread_t p; |
| 5699 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 5700 | return 1; |
| 5701 | (void)pthread_detach(p); |
| 5702 | return 0; |
| 5703 | } |
| 5704 | |
| 5705 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5706 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5707 | |
| 5708 | ac_cv_pthread_is_default=yes |
| 5709 | ac_cv_kthread=no |
| 5710 | ac_cv_pthread=no |
| 5711 | |
| 5712 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5713 | ac_cv_pthread_is_default=no |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5714 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5715 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 5716 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5717 | fi |
| 5718 | |
| 5719 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5720 | fi |
| 5721 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_is_default" >&5 |
| 5723 | $as_echo "$ac_cv_pthread_is_default" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5724 | |
| 5725 | |
| 5726 | if test $ac_cv_pthread_is_default = yes |
| 5727 | then |
| 5728 | ac_cv_kpthread=no |
| 5729 | else |
| 5730 | # -Kpthread, if available, provides the right #defines |
| 5731 | # and linker options to make pthread_create available |
| 5732 | # Some compilers won't report that they do not support -Kpthread, |
| 5733 | # so we need to run a program to see whether it really made the |
| 5734 | # function available. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5735 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kpthread" >&5 |
| 5736 | $as_echo_n "checking whether $CC accepts -Kpthread... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 5737 | if test "${ac_cv_kpthread+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5738 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5739 | else |
| 5740 | ac_save_cc="$CC" |
| 5741 | CC="$CC -Kpthread" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5742 | if test "$cross_compiling" = yes; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5743 | ac_cv_kpthread=no |
| 5744 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5745 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5746 | /* end confdefs.h. */ |
| 5747 | |
| 5748 | #include <pthread.h> |
| 5749 | |
| 5750 | void* routine(void* p){return NULL;} |
| 5751 | |
| 5752 | int main(){ |
| 5753 | pthread_t p; |
| 5754 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 5755 | return 1; |
| 5756 | (void)pthread_detach(p); |
| 5757 | return 0; |
| 5758 | } |
| 5759 | |
| 5760 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5761 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5762 | ac_cv_kpthread=yes |
| 5763 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5764 | ac_cv_kpthread=no |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5765 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5766 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 5767 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5768 | fi |
| 5769 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5770 | CC="$ac_save_cc" |
| 5771 | fi |
| 5772 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kpthread" >&5 |
| 5774 | $as_echo "$ac_cv_kpthread" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5775 | fi |
| 5776 | |
| 5777 | if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no |
| 5778 | then |
| 5779 | # -Kthread, if available, provides the right #defines |
| 5780 | # and linker options to make pthread_create available |
| 5781 | # Some compilers won't report that they do not support -Kthread, |
| 5782 | # so we need to run a program to see whether it really made the |
| 5783 | # function available. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5784 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kthread" >&5 |
| 5785 | $as_echo_n "checking whether $CC accepts -Kthread... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 5786 | if test "${ac_cv_kthread+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5787 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5788 | else |
| 5789 | ac_save_cc="$CC" |
| 5790 | CC="$CC -Kthread" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5791 | if test "$cross_compiling" = yes; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5792 | ac_cv_kthread=no |
| 5793 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5794 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5795 | /* end confdefs.h. */ |
| 5796 | |
| 5797 | #include <pthread.h> |
| 5798 | |
| 5799 | void* routine(void* p){return NULL;} |
| 5800 | |
| 5801 | int main(){ |
| 5802 | pthread_t p; |
| 5803 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 5804 | return 1; |
| 5805 | (void)pthread_detach(p); |
| 5806 | return 0; |
| 5807 | } |
| 5808 | |
| 5809 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5810 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5811 | ac_cv_kthread=yes |
| 5812 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5813 | ac_cv_kthread=no |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5814 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5815 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 5816 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5817 | fi |
| 5818 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5819 | CC="$ac_save_cc" |
| 5820 | fi |
| 5821 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kthread" >&5 |
| 5823 | $as_echo "$ac_cv_kthread" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5824 | fi |
| 5825 | |
| 5826 | if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no |
| 5827 | then |
| 5828 | # -pthread, if available, provides the right #defines |
| 5829 | # and linker options to make pthread_create available |
| 5830 | # Some compilers won't report that they do not support -pthread, |
| 5831 | # so we need to run a program to see whether it really made the |
| 5832 | # function available. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5833 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -pthread" >&5 |
| 5834 | $as_echo_n "checking whether $CC accepts -pthread... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 5835 | if test "${ac_cv_thread+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5836 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5837 | else |
| 5838 | ac_save_cc="$CC" |
| 5839 | CC="$CC -pthread" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5840 | if test "$cross_compiling" = yes; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5841 | ac_cv_pthread=no |
| 5842 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5843 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5844 | /* end confdefs.h. */ |
| 5845 | |
| 5846 | #include <pthread.h> |
| 5847 | |
| 5848 | void* routine(void* p){return NULL;} |
| 5849 | |
| 5850 | int main(){ |
| 5851 | pthread_t p; |
| 5852 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 5853 | return 1; |
| 5854 | (void)pthread_detach(p); |
| 5855 | return 0; |
| 5856 | } |
| 5857 | |
| 5858 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5859 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5860 | ac_cv_pthread=yes |
| 5861 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5862 | ac_cv_pthread=no |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5863 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5864 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 5865 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5866 | fi |
| 5867 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5868 | CC="$ac_save_cc" |
| 5869 | fi |
| 5870 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread" >&5 |
| 5872 | $as_echo "$ac_cv_pthread" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5873 | fi |
| 5874 | |
| 5875 | # If we have set a CC compiler flag for thread support then |
| 5876 | # check if it works for CXX, too. |
| 5877 | ac_cv_cxx_thread=no |
| 5878 | if test ! -z "$CXX" |
| 5879 | then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5880 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX also accepts flags for thread support" >&5 |
| 5881 | $as_echo_n "checking whether $CXX also accepts flags for thread support... " >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5882 | ac_save_cxx="$CXX" |
| 5883 | |
| 5884 | if test "$ac_cv_kpthread" = "yes" |
| 5885 | then |
| 5886 | CXX="$CXX -Kpthread" |
| 5887 | ac_cv_cxx_thread=yes |
| 5888 | elif test "$ac_cv_kthread" = "yes" |
| 5889 | then |
| 5890 | CXX="$CXX -Kthread" |
| 5891 | ac_cv_cxx_thread=yes |
| 5892 | elif test "$ac_cv_pthread" = "yes" |
| 5893 | then |
| 5894 | CXX="$CXX -pthread" |
| 5895 | ac_cv_cxx_thread=yes |
| 5896 | fi |
| 5897 | |
| 5898 | if test $ac_cv_cxx_thread = yes |
| 5899 | then |
| 5900 | echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext |
| 5901 | $CXX -c conftest.$ac_ext 2>&5 |
| 5902 | if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ |
| 5903 | && test -s conftest$ac_exeext && ./conftest$ac_exeext |
| 5904 | then |
| 5905 | ac_cv_cxx_thread=yes |
| 5906 | else |
| 5907 | ac_cv_cxx_thread=no |
| 5908 | fi |
| 5909 | rm -fr conftest* |
| 5910 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5911 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_thread" >&5 |
| 5912 | $as_echo "$ac_cv_cxx_thread" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5913 | fi |
| 5914 | CXX="$ac_save_cxx" |
| 5915 | |
| 5916 | |
| 5917 | # checks for header files |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5918 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 5919 | $as_echo_n "checking for ANSI C header files... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 5920 | if test "${ac_cv_header_stdc+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5921 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5922 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5923 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5924 | /* end confdefs.h. */ |
| 5925 | #include <stdlib.h> |
| 5926 | #include <stdarg.h> |
| 5927 | #include <string.h> |
| 5928 | #include <float.h> |
| 5929 | |
| 5930 | int |
| 5931 | main () |
| 5932 | { |
| 5933 | |
| 5934 | ; |
| 5935 | return 0; |
| 5936 | } |
| 5937 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5938 | if ac_fn_c_try_compile "$LINENO"; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5939 | ac_cv_header_stdc=yes |
| 5940 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5941 | ac_cv_header_stdc=no |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5942 | fi |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5943 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5944 | |
| 5945 | if test $ac_cv_header_stdc = yes; then |
| 5946 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5947 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5948 | /* end confdefs.h. */ |
| 5949 | #include <string.h> |
| 5950 | |
| 5951 | _ACEOF |
| 5952 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5953 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 5954 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5955 | else |
| 5956 | ac_cv_header_stdc=no |
| 5957 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 5958 | rm -f conftest* |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5959 | |
| 5960 | fi |
| 5961 | |
| 5962 | if test $ac_cv_header_stdc = yes; then |
| 5963 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5964 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5965 | /* end confdefs.h. */ |
| 5966 | #include <stdlib.h> |
| 5967 | |
| 5968 | _ACEOF |
| 5969 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5970 | $EGREP "free" >/dev/null 2>&1; then : |
| 5971 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5972 | else |
| 5973 | ac_cv_header_stdc=no |
| 5974 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 5975 | rm -f conftest* |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5976 | |
| 5977 | fi |
| 5978 | |
| 5979 | if test $ac_cv_header_stdc = yes; then |
| 5980 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5981 | if test "$cross_compiling" = yes; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5982 | : |
| 5983 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5984 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5985 | /* end confdefs.h. */ |
| 5986 | #include <ctype.h> |
| 5987 | #include <stdlib.h> |
| 5988 | #if ((' ' & 0x0FF) == 0x020) |
| 5989 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 5990 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 5991 | #else |
| 5992 | # define ISLOWER(c) \ |
| 5993 | (('a' <= (c) && (c) <= 'i') \ |
| 5994 | || ('j' <= (c) && (c) <= 'r') \ |
| 5995 | || ('s' <= (c) && (c) <= 'z')) |
| 5996 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 5997 | #endif |
| 5998 | |
| 5999 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 6000 | int |
| 6001 | main () |
| 6002 | { |
| 6003 | int i; |
| 6004 | for (i = 0; i < 256; i++) |
| 6005 | if (XOR (islower (i), ISLOWER (i)) |
| 6006 | || toupper (i) != TOUPPER (i)) |
| 6007 | return 2; |
| 6008 | return 0; |
| 6009 | } |
| 6010 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6011 | if ac_fn_c_try_run "$LINENO"; then : |
| 6012 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6013 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6014 | ac_cv_header_stdc=no |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6015 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6016 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 6017 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6018 | fi |
| 6019 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6020 | fi |
| 6021 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| 6023 | $as_echo "$ac_cv_header_stdc" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6024 | if test $ac_cv_header_stdc = yes; then |
| 6025 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6026 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6027 | |
| 6028 | fi |
| 6029 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 6030 | for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \ |
| 6031 | fcntl.h grp.h \ |
Christian Heimes | bbe741d | 2008-03-28 10:53:29 +0000 | [diff] [blame] | 6032 | 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] | 6033 | 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] | 6034 | unistd.h utime.h \ |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 6035 | sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \ |
| 6036 | sys/lock.h sys/mkdev.h sys/modem.h \ |
Georg Brandl | 941f956 | 2011-02-25 15:21:47 +0000 | [diff] [blame] | 6037 | sys/param.h sys/poll.h sys/select.h sys/sendfile.h sys/socket.h sys/statvfs.h \ |
| 6038 | sys/stat.h sys/termio.h sys/time.h \ |
| 6039 | sys/times.h sys/types.h sys/uio.h sys/un.h sys/utsname.h sys/wait.h pty.h \ |
Gregory P. Smith | 3b1f2c3 | 2011-05-15 12:18:23 -0700 | [diff] [blame^] | 6040 | libutil.h sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \ |
Ronald Oussoren | 755740f | 2010-02-07 19:56:39 +0000 | [diff] [blame] | 6041 | bluetooth/bluetooth.h linux/tipc.h spawn.h util.h |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6042 | do : |
| 6043 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6044 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 6045 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6046 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6047 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6048 | _ACEOF |
| 6049 | |
| 6050 | fi |
| 6051 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6052 | done |
| 6053 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6054 | ac_header_dirent=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6055 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6056 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 6057 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 |
| 6058 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 6059 | if eval "test \"\${$as_ac_Header+set}\"" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6060 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6061 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6062 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6063 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6064 | #include <sys/types.h> |
| 6065 | #include <$ac_hdr> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6066 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6067 | int |
| 6068 | main () |
| 6069 | { |
| 6070 | if ((DIR *) 0) |
| 6071 | return 0; |
| 6072 | ; |
| 6073 | return 0; |
| 6074 | } |
| 6075 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6076 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6077 | eval "$as_ac_Header=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6078 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6079 | eval "$as_ac_Header=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6080 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6081 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6082 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6083 | eval ac_res=\$$as_ac_Header |
| 6084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 6085 | $as_echo "$ac_res" >&6; } |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 6086 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6087 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6088 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6089 | _ACEOF |
| 6090 | |
| 6091 | ac_header_dirent=$ac_hdr; break |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6092 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6093 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6094 | done |
| 6095 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 6096 | if test $ac_header_dirent = dirent.h; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6097 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
| 6098 | $as_echo_n "checking for library containing opendir... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 6099 | if test "${ac_cv_search_opendir+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6100 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6101 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6102 | ac_func_search_save_LIBS=$LIBS |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6103 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6104 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6105 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6106 | /* Override any GCC internal prototype to avoid an error. |
| 6107 | Use char because int might match the return type of a GCC |
| 6108 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6109 | #ifdef __cplusplus |
| 6110 | extern "C" |
| 6111 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6112 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6113 | int |
| 6114 | main () |
| 6115 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6116 | return opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6117 | ; |
| 6118 | return 0; |
| 6119 | } |
| 6120 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6121 | for ac_lib in '' dir; do |
| 6122 | if test -z "$ac_lib"; then |
| 6123 | ac_res="none required" |
| 6124 | else |
| 6125 | ac_res=-l$ac_lib |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 6126 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6127 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6128 | if ac_fn_c_try_link "$LINENO"; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6129 | ac_cv_search_opendir=$ac_res |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6130 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6131 | rm -f core conftest.err conftest.$ac_objext \ |
| 6132 | conftest$ac_exeext |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 6133 | if test "${ac_cv_search_opendir+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6134 | break |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 6135 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6136 | done |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 6137 | if test "${ac_cv_search_opendir+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6138 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6139 | else |
| 6140 | ac_cv_search_opendir=no |
| 6141 | fi |
| 6142 | rm conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6143 | LIBS=$ac_func_search_save_LIBS |
| 6144 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
| 6146 | $as_echo "$ac_cv_search_opendir" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6147 | ac_res=$ac_cv_search_opendir |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6148 | if test "$ac_res" != no; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6149 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6150 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6151 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6152 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6153 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6154 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
| 6155 | $as_echo_n "checking for library containing opendir... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 6156 | if test "${ac_cv_search_opendir+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6157 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6158 | else |
| 6159 | ac_func_search_save_LIBS=$LIBS |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6160 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6161 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6162 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6163 | /* Override any GCC internal prototype to avoid an error. |
| 6164 | Use char because int might match the return type of a GCC |
| 6165 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6166 | #ifdef __cplusplus |
| 6167 | extern "C" |
| 6168 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6169 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6170 | int |
| 6171 | main () |
| 6172 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6173 | return opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6174 | ; |
| 6175 | return 0; |
| 6176 | } |
| 6177 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6178 | for ac_lib in '' x; do |
| 6179 | if test -z "$ac_lib"; then |
| 6180 | ac_res="none required" |
| 6181 | else |
| 6182 | ac_res=-l$ac_lib |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 6183 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6184 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6185 | if ac_fn_c_try_link "$LINENO"; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6186 | ac_cv_search_opendir=$ac_res |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6187 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6188 | rm -f core conftest.err conftest.$ac_objext \ |
| 6189 | conftest$ac_exeext |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 6190 | if test "${ac_cv_search_opendir+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6191 | break |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 6192 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6193 | done |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 6194 | if test "${ac_cv_search_opendir+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6195 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6196 | else |
| 6197 | ac_cv_search_opendir=no |
| 6198 | fi |
| 6199 | rm conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6200 | LIBS=$ac_func_search_save_LIBS |
| 6201 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
| 6203 | $as_echo "$ac_cv_search_opendir" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6204 | ac_res=$ac_cv_search_opendir |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6205 | if test "$ac_res" != no; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6206 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6207 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6208 | fi |
| 6209 | |
| 6210 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6211 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6212 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5 |
| 6213 | $as_echo_n "checking whether sys/types.h defines makedev... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 6214 | if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6215 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6216 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6217 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6218 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6219 | #include <sys/types.h> |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6220 | int |
| 6221 | main () |
| 6222 | { |
| 6223 | return makedev(0, 0); |
| 6224 | ; |
| 6225 | return 0; |
| 6226 | } |
| 6227 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6228 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6229 | ac_cv_header_sys_types_h_makedev=yes |
| 6230 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6231 | ac_cv_header_sys_types_h_makedev=no |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6232 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6233 | rm -f core conftest.err conftest.$ac_objext \ |
| 6234 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6235 | |
| 6236 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5 |
| 6238 | $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6239 | |
| 6240 | if test $ac_cv_header_sys_types_h_makedev = no; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6241 | ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default" |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 6242 | if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6243 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6244 | $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6245 | |
| 6246 | fi |
| 6247 | |
| 6248 | |
| 6249 | |
| 6250 | if test $ac_cv_header_sys_mkdev_h = no; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6251 | ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default" |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 6252 | if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6253 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6254 | $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6255 | |
| 6256 | fi |
| 6257 | |
| 6258 | |
| 6259 | fi |
| 6260 | fi |
| 6261 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6262 | |
Gregory P. Smith | 3b1f2c3 | 2011-05-15 12:18:23 -0700 | [diff] [blame^] | 6263 | # On Darwin (OS X) net/if.h requires sys/socket.h to be imported first. |
| 6264 | for ac_header in net/if.h |
| 6265 | do : |
| 6266 | ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#include <stdio.h> |
| 6267 | #ifdef STDC_HEADERS |
| 6268 | # include <stdlib.h> |
| 6269 | # include <stddef.h> |
| 6270 | #else |
| 6271 | # ifdef HAVE_STDLIB_H |
| 6272 | # include <stdlib.h> |
| 6273 | # endif |
| 6274 | #endif |
| 6275 | #ifdef HAVE_SYS_SOCKET_H |
| 6276 | # include <sys/socket.h> |
| 6277 | #endif |
| 6278 | |
| 6279 | " |
| 6280 | if test "x$ac_cv_header_net_if_h" = x""yes; then : |
| 6281 | cat >>confdefs.h <<_ACEOF |
| 6282 | #define HAVE_NET_IF_H 1 |
| 6283 | _ACEOF |
| 6284 | |
| 6285 | fi |
| 6286 | |
| 6287 | done |
| 6288 | |
| 6289 | |
| 6290 | |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6291 | # On Solaris, term.h requires curses.h |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6292 | for ac_header in term.h |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6293 | do : |
| 6294 | 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] | 6295 | #ifdef HAVE_CURSES_H |
| 6296 | #include <curses.h> |
| 6297 | #endif |
| 6298 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6299 | " |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 6300 | if test "x$ac_cv_header_term_h" = x""yes; then : |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6301 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6302 | #define HAVE_TERM_H 1 |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6303 | _ACEOF |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6304 | |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6305 | fi |
| 6306 | |
| 6307 | done |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6308 | |
| 6309 | |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6310 | # On Linux, netlink.h requires asm/types.h |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6311 | for ac_header in linux/netlink.h |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6312 | do : |
| 6313 | 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] | 6314 | #ifdef HAVE_ASM_TYPES_H |
| 6315 | #include <asm/types.h> |
| 6316 | #endif |
| 6317 | #ifdef HAVE_SYS_SOCKET_H |
| 6318 | #include <sys/socket.h> |
| 6319 | #endif |
| 6320 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6321 | " |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 6322 | if test "x$ac_cv_header_linux_netlink_h" = x""yes; then : |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6323 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6324 | #define HAVE_LINUX_NETLINK_H 1 |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6325 | _ACEOF |
| 6326 | |
| 6327 | fi |
| 6328 | |
| 6329 | done |
| 6330 | |
| 6331 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6332 | # checks for typedefs |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6333 | was_it_defined=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6334 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t in time.h" >&5 |
| 6335 | $as_echo_n "checking for clock_t in time.h... " >&6; } |
| 6336 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6337 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6338 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6339 | |
| 6340 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6341 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6342 | $EGREP "clock_t" >/dev/null 2>&1; then : |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6343 | was_it_defined=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6344 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6345 | |
| 6346 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6347 | $as_echo "#define clock_t long" >>confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6348 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 6349 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6350 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 6351 | rm -f conftest* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6352 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5 |
| 6354 | $as_echo "$was_it_defined" >&6; } |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6355 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6356 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for makedev" >&5 |
| 6357 | $as_echo_n "checking for makedev... " >&6; } |
| 6358 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6359 | /* end confdefs.h. */ |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6360 | |
Jesus Cea | 740f53a | 2010-04-28 11:35:30 +0000 | [diff] [blame] | 6361 | #if defined(MAJOR_IN_MKDEV) |
| 6362 | #include <sys/mkdev.h> |
| 6363 | #elif defined(MAJOR_IN_SYSMACROS) |
| 6364 | #include <sys/sysmacros.h> |
| 6365 | #else |
| 6366 | #include <sys/types.h> |
| 6367 | #endif |
| 6368 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6369 | int |
| 6370 | main () |
| 6371 | { |
Jesus Cea | 740f53a | 2010-04-28 11:35:30 +0000 | [diff] [blame] | 6372 | |
| 6373 | makedev(0, 0) |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6374 | ; |
| 6375 | return 0; |
| 6376 | } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6377 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6378 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6379 | if ac_fn_c_try_link "$LINENO"; then : |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6380 | ac_cv_has_makedev=yes |
| 6381 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6382 | ac_cv_has_makedev=no |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6383 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6384 | rm -f core conftest.err conftest.$ac_objext \ |
| 6385 | conftest$ac_exeext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_makedev" >&5 |
| 6387 | $as_echo "$ac_cv_has_makedev" >&6; } |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6388 | if test "$ac_cv_has_makedev" = "yes"; then |
| 6389 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6390 | $as_echo "#define HAVE_MAKEDEV 1" >>confdefs.h |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6391 | |
| 6392 | fi |
| 6393 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6394 | # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in |
| 6395 | # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are |
| 6396 | # defined, but the compiler does not support pragma redefine_extname, |
| 6397 | # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit |
| 6398 | # structures (such as rlimit64) without declaring them. As a |
| 6399 | # work-around, disable LFS on such configurations |
| 6400 | |
| 6401 | use_lfs=yes |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6402 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking Solaris LFS bug" >&5 |
| 6403 | $as_echo_n "checking Solaris LFS bug... " >&6; } |
| 6404 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6405 | /* end confdefs.h. */ |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6406 | |
| 6407 | #define _LARGEFILE_SOURCE 1 |
| 6408 | #define _FILE_OFFSET_BITS 64 |
| 6409 | #include <sys/resource.h> |
| 6410 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6411 | int |
| 6412 | main () |
| 6413 | { |
| 6414 | struct rlimit foo; |
| 6415 | ; |
| 6416 | return 0; |
| 6417 | } |
| 6418 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6419 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6420 | sol_lfs_bug=no |
| 6421 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6422 | sol_lfs_bug=yes |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6423 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6424 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sol_lfs_bug" >&5 |
| 6426 | $as_echo "$sol_lfs_bug" >&6; } |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6427 | if test "$sol_lfs_bug" = "yes"; then |
| 6428 | use_lfs=no |
| 6429 | fi |
| 6430 | |
| 6431 | if test "$use_lfs" = "yes"; then |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6432 | # Two defines needed to enable largefile support on various platforms |
| 6433 | # These may affect some typedefs |
Georg Brandl | 216e404 | 2011-02-19 08:58:23 +0000 | [diff] [blame] | 6434 | case $ac_sys_system/$ac_sys_release in |
| 6435 | AIX*) |
| 6436 | |
| 6437 | $as_echo "#define _LARGE_FILES 1" >>confdefs.h |
| 6438 | |
| 6439 | ;; |
| 6440 | esac |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6441 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6442 | $as_echo "#define _LARGEFILE_SOURCE 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6443 | |
| 6444 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6445 | $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6446 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6447 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6448 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 6449 | # Add some code to confdefs.h so that the test for off_t works on SCO |
| 6450 | cat >> confdefs.h <<\EOF |
| 6451 | #if defined(SCO_DS) |
| 6452 | #undef _OFF_T |
| 6453 | #endif |
| 6454 | EOF |
| 6455 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6456 | # Type availability checks |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6457 | ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 6458 | if test "x$ac_cv_type_mode_t" = x""yes; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6459 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6460 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6461 | |
| 6462 | cat >>confdefs.h <<_ACEOF |
| 6463 | #define mode_t int |
| 6464 | _ACEOF |
| 6465 | |
| 6466 | fi |
| 6467 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6468 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 6469 | if test "x$ac_cv_type_off_t" = x""yes; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6470 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6471 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6472 | |
| 6473 | cat >>confdefs.h <<_ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6474 | #define off_t long int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6475 | _ACEOF |
| 6476 | |
| 6477 | fi |
| 6478 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6479 | ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 6480 | if test "x$ac_cv_type_pid_t" = x""yes; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6481 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6482 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6483 | |
| 6484 | cat >>confdefs.h <<_ACEOF |
| 6485 | #define pid_t int |
| 6486 | _ACEOF |
| 6487 | |
| 6488 | fi |
| 6489 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6490 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6491 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | bada4c3 | 2010-04-25 21:18:48 +0000 | [diff] [blame] | 6492 | #define RETSIGTYPE void |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6493 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6494 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6495 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 6496 | if test "x$ac_cv_type_size_t" = x""yes; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6497 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6498 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6499 | |
| 6500 | cat >>confdefs.h <<_ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6501 | #define size_t unsigned int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6502 | _ACEOF |
| 6503 | |
| 6504 | fi |
| 6505 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6506 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 |
| 6507 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 6508 | if test "${ac_cv_type_uid_t+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6509 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6510 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6511 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6512 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6513 | #include <sys/types.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6514 | |
| 6515 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6516 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6517 | $EGREP "uid_t" >/dev/null 2>&1; then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6518 | ac_cv_type_uid_t=yes |
| 6519 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6520 | ac_cv_type_uid_t=no |
| 6521 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 6522 | rm -f conftest* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6523 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6524 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 |
| 6526 | $as_echo "$ac_cv_type_uid_t" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6527 | if test $ac_cv_type_uid_t = no; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6528 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6529 | $as_echo "#define uid_t int" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6530 | |
| 6531 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6532 | $as_echo "#define gid_t int" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6533 | |
| 6534 | fi |
| 6535 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6536 | ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" |
| 6537 | case $ac_cv_c_uint32_t in #( |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 6538 | no|yes) ;; #( |
| 6539 | *) |
| 6540 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6541 | $as_echo "#define _UINT32_T 1" >>confdefs.h |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 6542 | |
| 6543 | |
| 6544 | cat >>confdefs.h <<_ACEOF |
| 6545 | #define uint32_t $ac_cv_c_uint32_t |
| 6546 | _ACEOF |
| 6547 | ;; |
| 6548 | esac |
| 6549 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6550 | ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t" |
| 6551 | case $ac_cv_c_uint64_t in #( |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 6552 | no|yes) ;; #( |
| 6553 | *) |
| 6554 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6555 | $as_echo "#define _UINT64_T 1" >>confdefs.h |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 6556 | |
| 6557 | |
| 6558 | cat >>confdefs.h <<_ACEOF |
| 6559 | #define uint64_t $ac_cv_c_uint64_t |
| 6560 | _ACEOF |
| 6561 | ;; |
| 6562 | esac |
| 6563 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6564 | ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" |
| 6565 | case $ac_cv_c_int32_t in #( |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 6566 | no|yes) ;; #( |
| 6567 | *) |
| 6568 | |
| 6569 | cat >>confdefs.h <<_ACEOF |
| 6570 | #define int32_t $ac_cv_c_int32_t |
| 6571 | _ACEOF |
| 6572 | ;; |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 6573 | esac |
| 6574 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6575 | ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t" |
| 6576 | case $ac_cv_c_int64_t in #( |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 6577 | no|yes) ;; #( |
| 6578 | *) |
| 6579 | |
| 6580 | cat >>confdefs.h <<_ACEOF |
| 6581 | #define int64_t $ac_cv_c_int64_t |
| 6582 | _ACEOF |
| 6583 | ;; |
Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 6584 | esac |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6585 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6586 | ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 6587 | if test "x$ac_cv_type_ssize_t" = x""yes; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6588 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6589 | $as_echo "#define HAVE_SSIZE_T 1" >>confdefs.h |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6590 | |
| 6591 | fi |
| 6592 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 6593 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6594 | # Sizes of various common basic types |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 6595 | # ANSI C requires sizeof(char) == 1, so no need to check it |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6596 | # The cast to long int works around a bug in the HP C Compiler |
| 6597 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6598 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6599 | # This bug is HP SR number 8606223364. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6600 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 |
| 6601 | $as_echo_n "checking size of int... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 6602 | if test "${ac_cv_sizeof_int+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6603 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6604 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6605 | 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] | 6606 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6607 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6608 | if test "$ac_cv_type_int" = yes; then |
| 6609 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 6610 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 6611 | as_fn_error 77 "cannot compute sizeof (int) |
| 6612 | See \`config.log' for more details" "$LINENO" 5 ; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6613 | else |
| 6614 | ac_cv_sizeof_int=0 |
| 6615 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6616 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6617 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6618 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 |
| 6620 | $as_echo "$ac_cv_sizeof_int" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6621 | |
| 6622 | |
| 6623 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6624 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6625 | #define SIZEOF_INT $ac_cv_sizeof_int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6626 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6627 | |
| 6628 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6629 | # The cast to long int works around a bug in the HP C Compiler |
| 6630 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6631 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6632 | # This bug is HP SR number 8606223364. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6633 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 |
| 6634 | $as_echo_n "checking size of long... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 6635 | if test "${ac_cv_sizeof_long+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6636 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6637 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6638 | 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] | 6639 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6640 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6641 | if test "$ac_cv_type_long" = yes; then |
| 6642 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 6643 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 6644 | as_fn_error 77 "cannot compute sizeof (long) |
| 6645 | See \`config.log' for more details" "$LINENO" 5 ; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6646 | else |
| 6647 | ac_cv_sizeof_long=0 |
| 6648 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6649 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6650 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6651 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 |
| 6653 | $as_echo "$ac_cv_sizeof_long" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6654 | |
| 6655 | |
| 6656 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6657 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6658 | #define SIZEOF_LONG $ac_cv_sizeof_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6659 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6660 | |
| 6661 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6662 | # The cast to long int works around a bug in the HP C Compiler |
| 6663 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6664 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6665 | # This bug is HP SR number 8606223364. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6666 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 |
| 6667 | $as_echo_n "checking size of void *... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 6668 | if test "${ac_cv_sizeof_void_p+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6669 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6670 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6671 | 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] | 6672 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6673 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6674 | if test "$ac_cv_type_void_p" = yes; then |
| 6675 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 6676 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 6677 | as_fn_error 77 "cannot compute sizeof (void *) |
| 6678 | See \`config.log' for more details" "$LINENO" 5 ; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6679 | else |
| 6680 | ac_cv_sizeof_void_p=0 |
| 6681 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6682 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6683 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6684 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 |
| 6686 | $as_echo "$ac_cv_sizeof_void_p" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6687 | |
| 6688 | |
| 6689 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6690 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6691 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6692 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6693 | |
| 6694 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6695 | # The cast to long int works around a bug in the HP C Compiler |
| 6696 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6697 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6698 | # This bug is HP SR number 8606223364. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6699 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 |
| 6700 | $as_echo_n "checking size of short... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 6701 | if test "${ac_cv_sizeof_short+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6702 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6703 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6704 | 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] | 6705 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6706 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6707 | if test "$ac_cv_type_short" = yes; then |
| 6708 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 6709 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 6710 | as_fn_error 77 "cannot compute sizeof (short) |
| 6711 | See \`config.log' for more details" "$LINENO" 5 ; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6712 | else |
| 6713 | ac_cv_sizeof_short=0 |
| 6714 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6715 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6716 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6717 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 |
| 6719 | $as_echo "$ac_cv_sizeof_short" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6720 | |
| 6721 | |
| 6722 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6723 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6724 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6725 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6726 | |
| 6727 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6728 | # The cast to long int works around a bug in the HP C Compiler |
| 6729 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6730 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6731 | # This bug is HP SR number 8606223364. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6732 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5 |
| 6733 | $as_echo_n "checking size of float... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 6734 | if test "${ac_cv_sizeof_float+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6735 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6736 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6737 | 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] | 6738 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6739 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6740 | if test "$ac_cv_type_float" = yes; then |
| 6741 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 6742 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 6743 | as_fn_error 77 "cannot compute sizeof (float) |
| 6744 | See \`config.log' for more details" "$LINENO" 5 ; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6745 | else |
| 6746 | ac_cv_sizeof_float=0 |
| 6747 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6748 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6749 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6750 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5 |
| 6752 | $as_echo "$ac_cv_sizeof_float" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6753 | |
| 6754 | |
| 6755 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6756 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6757 | #define SIZEOF_FLOAT $ac_cv_sizeof_float |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6758 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6759 | |
| 6760 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6761 | # The cast to long int works around a bug in the HP C Compiler |
| 6762 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6763 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6764 | # This bug is HP SR number 8606223364. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6765 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5 |
| 6766 | $as_echo_n "checking size of double... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 6767 | if test "${ac_cv_sizeof_double+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6768 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6769 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6770 | 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] | 6771 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6772 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6773 | if test "$ac_cv_type_double" = yes; then |
| 6774 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 6775 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 6776 | as_fn_error 77 "cannot compute sizeof (double) |
| 6777 | See \`config.log' for more details" "$LINENO" 5 ; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6778 | else |
| 6779 | ac_cv_sizeof_double=0 |
| 6780 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6781 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6782 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6783 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5 |
| 6785 | $as_echo "$ac_cv_sizeof_double" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6786 | |
| 6787 | |
| 6788 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6789 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6790 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6791 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6792 | |
| 6793 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6794 | # The cast to long int works around a bug in the HP C Compiler |
| 6795 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6796 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6797 | # This bug is HP SR number 8606223364. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6798 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of fpos_t" >&5 |
| 6799 | $as_echo_n "checking size of fpos_t... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 6800 | if test "${ac_cv_sizeof_fpos_t+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6801 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6802 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6803 | 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] | 6804 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6805 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6806 | if test "$ac_cv_type_fpos_t" = yes; then |
| 6807 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 6808 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 6809 | as_fn_error 77 "cannot compute sizeof (fpos_t) |
| 6810 | See \`config.log' for more details" "$LINENO" 5 ; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6811 | else |
| 6812 | ac_cv_sizeof_fpos_t=0 |
| 6813 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6814 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6815 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6816 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_fpos_t" >&5 |
| 6818 | $as_echo "$ac_cv_sizeof_fpos_t" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6819 | |
| 6820 | |
| 6821 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6822 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 6823 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6824 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 6825 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6826 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6827 | # The cast to long int works around a bug in the HP C Compiler |
| 6828 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6829 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6830 | # This bug is HP SR number 8606223364. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6831 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 |
| 6832 | $as_echo_n "checking size of size_t... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 6833 | if test "${ac_cv_sizeof_size_t+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6834 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6835 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6836 | 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] | 6837 | |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6838 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6839 | if test "$ac_cv_type_size_t" = yes; then |
| 6840 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 6841 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 6842 | as_fn_error 77 "cannot compute sizeof (size_t) |
| 6843 | See \`config.log' for more details" "$LINENO" 5 ; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6844 | else |
| 6845 | ac_cv_sizeof_size_t=0 |
| 6846 | fi |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6847 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6848 | |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6849 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 |
| 6851 | $as_echo "$ac_cv_sizeof_size_t" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6852 | |
| 6853 | |
| 6854 | |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6855 | cat >>confdefs.h <<_ACEOF |
| 6856 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t |
| 6857 | _ACEOF |
| 6858 | |
| 6859 | |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 6860 | # The cast to long int works around a bug in the HP C Compiler |
| 6861 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6862 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6863 | # This bug is HP SR number 8606223364. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6864 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pid_t" >&5 |
| 6865 | $as_echo_n "checking size of pid_t... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 6866 | if test "${ac_cv_sizeof_pid_t+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6867 | $as_echo_n "(cached) " >&6 |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 6868 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6869 | 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] | 6870 | |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 6871 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6872 | if test "$ac_cv_type_pid_t" = yes; then |
| 6873 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 6874 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 6875 | as_fn_error 77 "cannot compute sizeof (pid_t) |
| 6876 | See \`config.log' for more details" "$LINENO" 5 ; } |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 6877 | else |
| 6878 | ac_cv_sizeof_pid_t=0 |
| 6879 | fi |
| 6880 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6881 | |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 6882 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pid_t" >&5 |
| 6884 | $as_echo "$ac_cv_sizeof_pid_t" >&6; } |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 6885 | |
| 6886 | |
| 6887 | |
| 6888 | cat >>confdefs.h <<_ACEOF |
| 6889 | #define SIZEOF_PID_T $ac_cv_sizeof_pid_t |
| 6890 | _ACEOF |
| 6891 | |
| 6892 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6893 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6894 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support" >&5 |
| 6895 | $as_echo_n "checking for long long support... " >&6; } |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 6896 | have_long_long=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6897 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6898 | /* end confdefs.h. */ |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 6899 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6900 | int |
| 6901 | main () |
| 6902 | { |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 6903 | long long x; x = (long long)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6904 | ; |
| 6905 | return 0; |
| 6906 | } |
| 6907 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6908 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6909 | |
| 6910 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6911 | $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6912 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 6913 | have_long_long=yes |
| 6914 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 6915 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6916 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_long_long" >&5 |
| 6918 | $as_echo "$have_long_long" >&6; } |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 6919 | if test "$have_long_long" = yes ; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6920 | # The cast to long int works around a bug in the HP C Compiler |
| 6921 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6922 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6923 | # This bug is HP SR number 8606223364. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6924 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 |
| 6925 | $as_echo_n "checking size of long long... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 6926 | if test "${ac_cv_sizeof_long_long+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6927 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6928 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6929 | 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] | 6930 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6931 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6932 | if test "$ac_cv_type_long_long" = yes; then |
| 6933 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 6934 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 6935 | as_fn_error 77 "cannot compute sizeof (long long) |
| 6936 | See \`config.log' for more details" "$LINENO" 5 ; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6937 | else |
| 6938 | ac_cv_sizeof_long_long=0 |
| 6939 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6940 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6941 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6942 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 |
| 6944 | $as_echo "$ac_cv_sizeof_long_long" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6945 | |
| 6946 | |
| 6947 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6948 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 6949 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6950 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 6951 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6952 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 6953 | fi |
| 6954 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6955 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support" >&5 |
| 6956 | $as_echo_n "checking for long double support... " >&6; } |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 6957 | have_long_double=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6958 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 6959 | /* end confdefs.h. */ |
| 6960 | |
| 6961 | int |
| 6962 | main () |
| 6963 | { |
| 6964 | long double x; x = (long double)0; |
| 6965 | ; |
| 6966 | return 0; |
| 6967 | } |
| 6968 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6969 | if ac_fn_c_try_compile "$LINENO"; then : |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 6970 | |
| 6971 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6972 | $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 6973 | |
| 6974 | have_long_double=yes |
| 6975 | |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 6976 | fi |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 6977 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_long_double" >&5 |
| 6979 | $as_echo "$have_long_double" >&6; } |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 6980 | if test "$have_long_double" = yes ; then |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 6981 | # The cast to long int works around a bug in the HP C Compiler |
| 6982 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6983 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6984 | # This bug is HP SR number 8606223364. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6985 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5 |
| 6986 | $as_echo_n "checking size of long double... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 6987 | if test "${ac_cv_sizeof_long_double+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6988 | $as_echo_n "(cached) " >&6 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 6989 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6990 | 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] | 6991 | |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 6992 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6993 | if test "$ac_cv_type_long_double" = yes; then |
| 6994 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 6995 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 6996 | as_fn_error 77 "cannot compute sizeof (long double) |
| 6997 | See \`config.log' for more details" "$LINENO" 5 ; } |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 6998 | else |
| 6999 | ac_cv_sizeof_long_double=0 |
| 7000 | fi |
| 7001 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7002 | |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 7003 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5 |
| 7005 | $as_echo "$ac_cv_sizeof_long_double" >&6; } |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 7006 | |
| 7007 | |
| 7008 | |
| 7009 | cat >>confdefs.h <<_ACEOF |
| 7010 | #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double |
| 7011 | _ACEOF |
| 7012 | |
| 7013 | |
| 7014 | fi |
| 7015 | |
| 7016 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7017 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Bool support" >&5 |
| 7018 | $as_echo_n "checking for _Bool support... " >&6; } |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 7019 | have_c99_bool=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7020 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 7021 | /* end confdefs.h. */ |
| 7022 | |
| 7023 | int |
| 7024 | main () |
| 7025 | { |
| 7026 | _Bool x; x = (_Bool)0; |
| 7027 | ; |
| 7028 | return 0; |
| 7029 | } |
| 7030 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7031 | if ac_fn_c_try_compile "$LINENO"; then : |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 7032 | |
| 7033 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7034 | $as_echo "#define HAVE_C99_BOOL 1" >>confdefs.h |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 7035 | |
| 7036 | have_c99_bool=yes |
| 7037 | |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 7038 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7039 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_c99_bool" >&5 |
| 7041 | $as_echo "$have_c99_bool" >&6; } |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 7042 | if test "$have_c99_bool" = yes ; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7043 | # The cast to long int works around a bug in the HP C Compiler |
| 7044 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7045 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7046 | # This bug is HP SR number 8606223364. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7047 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of _Bool" >&5 |
| 7048 | $as_echo_n "checking size of _Bool... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 7049 | if test "${ac_cv_sizeof__Bool+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7050 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 7051 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7052 | 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] | 7053 | |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 7054 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7055 | if test "$ac_cv_type__Bool" = yes; then |
| 7056 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 7057 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 7058 | as_fn_error 77 "cannot compute sizeof (_Bool) |
| 7059 | See \`config.log' for more details" "$LINENO" 5 ; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7060 | else |
| 7061 | ac_cv_sizeof__Bool=0 |
| 7062 | fi |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 7063 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7064 | |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 7065 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof__Bool" >&5 |
| 7067 | $as_echo "$ac_cv_sizeof__Bool" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7068 | |
| 7069 | |
| 7070 | |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 7071 | cat >>confdefs.h <<_ACEOF |
| 7072 | #define SIZEOF__BOOL $ac_cv_sizeof__Bool |
| 7073 | _ACEOF |
| 7074 | |
| 7075 | |
| 7076 | fi |
| 7077 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7078 | ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#ifdef HAVE_STDINT_H |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 7079 | #include <stdint.h> |
| 7080 | #endif |
Antoine Pitrou | 1bf29b7 | 2010-10-10 08:10:16 +0000 | [diff] [blame] | 7081 | #ifdef HAVE_INTTYPES_H |
| 7082 | #include <inttypes.h> |
| 7083 | #endif |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7084 | " |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 7085 | if test "x$ac_cv_type_uintptr_t" = x""yes; then : |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 7086 | |
| 7087 | cat >>confdefs.h <<_ACEOF |
| 7088 | #define HAVE_UINTPTR_T 1 |
| 7089 | _ACEOF |
| 7090 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7091 | # The cast to long int works around a bug in the HP C Compiler |
| 7092 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7093 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7094 | # This bug is HP SR number 8606223364. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7095 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uintptr_t" >&5 |
| 7096 | $as_echo_n "checking size of uintptr_t... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 7097 | if test "${ac_cv_sizeof_uintptr_t+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7098 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7099 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7100 | 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] | 7101 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7102 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7103 | if test "$ac_cv_type_uintptr_t" = yes; then |
| 7104 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 7105 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 7106 | as_fn_error 77 "cannot compute sizeof (uintptr_t) |
| 7107 | See \`config.log' for more details" "$LINENO" 5 ; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7108 | else |
| 7109 | ac_cv_sizeof_uintptr_t=0 |
| 7110 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7111 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7112 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7113 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7114 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uintptr_t" >&5 |
| 7115 | $as_echo "$ac_cv_sizeof_uintptr_t" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7116 | |
| 7117 | |
| 7118 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7119 | cat >>confdefs.h <<_ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 7120 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7121 | _ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 7122 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7123 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 7124 | fi |
| 7125 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 7126 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7127 | # The cast to long int works around a bug in the HP C Compiler |
| 7128 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7129 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7130 | # This bug is HP SR number 8606223364. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7131 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 |
| 7132 | $as_echo_n "checking size of off_t... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 7133 | if test "${ac_cv_sizeof_off_t+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7134 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7135 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7136 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" " |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7137 | #ifdef HAVE_SYS_TYPES_H |
| 7138 | #include <sys/types.h> |
| 7139 | #endif |
| 7140 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7141 | "; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7142 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7143 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7144 | if test "$ac_cv_type_off_t" = yes; then |
| 7145 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 7146 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 7147 | as_fn_error 77 "cannot compute sizeof (off_t) |
| 7148 | See \`config.log' for more details" "$LINENO" 5 ; } |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7149 | else |
| 7150 | ac_cv_sizeof_off_t=0 |
| 7151 | fi |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7152 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7153 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7154 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 |
| 7156 | $as_echo "$ac_cv_sizeof_off_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7157 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7158 | |
| 7159 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7160 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7161 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7162 | _ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7163 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7164 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7165 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7166 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable large file support" >&5 |
| 7167 | $as_echo_n "checking whether to enable large file support... " >&6; } |
Mark Dickinson | 2df5d28 | 2009-12-31 21:22:50 +0000 | [diff] [blame] | 7168 | if test "$have_long_long" = yes |
| 7169 | then |
| 7170 | 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] | 7171 | "$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] | 7172 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7173 | $as_echo "#define HAVE_LARGEFILE_SUPPORT 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7174 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7175 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 7176 | $as_echo "yes" >&6; } |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7177 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7178 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7179 | $as_echo "no" >&6; } |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7180 | fi |
Mark Dickinson | 2df5d28 | 2009-12-31 21:22:50 +0000 | [diff] [blame] | 7181 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7183 | $as_echo "no" >&6; } |
Mark Dickinson | 2df5d28 | 2009-12-31 21:22:50 +0000 | [diff] [blame] | 7184 | fi |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7185 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7186 | # The cast to long int works around a bug in the HP C Compiler |
| 7187 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7188 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7189 | # This bug is HP SR number 8606223364. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7190 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 |
| 7191 | $as_echo_n "checking size of time_t... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 7192 | if test "${ac_cv_sizeof_time_t+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7193 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7194 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7195 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" " |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7196 | #ifdef HAVE_SYS_TYPES_H |
| 7197 | #include <sys/types.h> |
| 7198 | #endif |
| 7199 | #ifdef HAVE_TIME_H |
| 7200 | #include <time.h> |
| 7201 | #endif |
| 7202 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7203 | "; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7204 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7205 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7206 | if test "$ac_cv_type_time_t" = yes; then |
| 7207 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 7208 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 7209 | as_fn_error 77 "cannot compute sizeof (time_t) |
| 7210 | See \`config.log' for more details" "$LINENO" 5 ; } |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7211 | else |
| 7212 | ac_cv_sizeof_time_t=0 |
| 7213 | fi |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7214 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7215 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7216 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7217 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 |
| 7218 | $as_echo "$ac_cv_sizeof_time_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7219 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7220 | |
| 7221 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7222 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7223 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7224 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7225 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7226 | |
| 7227 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7228 | # if have pthread_t then define SIZEOF_PTHREAD_T |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 7229 | ac_save_cc="$CC" |
| 7230 | if test "$ac_cv_kpthread" = "yes" |
| 7231 | then CC="$CC -Kpthread" |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 7232 | elif test "$ac_cv_kthread" = "yes" |
| 7233 | then CC="$CC -Kthread" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 7234 | elif test "$ac_cv_pthread" = "yes" |
| 7235 | then CC="$CC -pthread" |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 7236 | fi |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7237 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7238 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_t" >&5 |
| 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 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +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. */ |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 7243 | |
| 7244 | #include <pthread.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7245 | int |
| 7246 | main () |
| 7247 | { |
Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 7248 | pthread_t x; x = *(pthread_t*)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7249 | ; |
| 7250 | return 0; |
| 7251 | } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 7252 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7253 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7254 | if ac_fn_c_try_compile "$LINENO"; then : |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7255 | have_pthread_t=yes |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7256 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7257 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_t" >&5 |
| 7259 | $as_echo "$have_pthread_t" >&6; } |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7260 | if test "$have_pthread_t" = yes ; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7261 | # The cast to long int works around a bug in the HP C Compiler |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7262 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7263 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7264 | # This bug is HP SR number 8606223364. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7265 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5 |
| 7266 | $as_echo_n "checking size of pthread_t... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 7267 | if test "${ac_cv_sizeof_pthread_t+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7268 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7269 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7270 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t" " |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7271 | #ifdef HAVE_PTHREAD_H |
| 7272 | #include <pthread.h> |
| 7273 | #endif |
| 7274 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7275 | "; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7276 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7277 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7278 | if test "$ac_cv_type_pthread_t" = yes; then |
| 7279 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 7280 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 7281 | as_fn_error 77 "cannot compute sizeof (pthread_t) |
| 7282 | See \`config.log' for more details" "$LINENO" 5 ; } |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7283 | else |
| 7284 | ac_cv_sizeof_pthread_t=0 |
| 7285 | fi |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7286 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7287 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7288 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5 |
| 7290 | $as_echo "$ac_cv_sizeof_pthread_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7291 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7292 | |
| 7293 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7294 | cat >>confdefs.h <<_ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7295 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7296 | _ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7297 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7298 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 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 | case $ac_sys_system/$ac_sys_release in |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 7304 | Darwin/[01567]\..*) |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 7305 | OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000" |
| 7306 | ;; |
| 7307 | Darwin/*) |
| 7308 | OTHER_LIBTOOL_OPT="" |
| 7309 | ;; |
| 7310 | esac |
| 7311 | |
| 7312 | |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 7313 | ARCH_RUN_32BIT="" |
| 7314 | |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 7315 | case $ac_sys_system/$ac_sys_release in |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 7316 | Darwin/[01567]\..*) |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7317 | LIBTOOL_CRUFT="-framework System -lcc_dynamic" |
| 7318 | if test "${enable_universalsdk}"; then |
| 7319 | : |
| 7320 | else |
Ronald Oussoren | e3da75a | 2010-02-11 13:38:58 +0000 | [diff] [blame] | 7321 | LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `/usr/bin/arch`" |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7322 | fi |
Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 7323 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 7324 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 7325 | Darwin/*) |
Ronald Oussoren | 9812a6c | 2010-02-07 11:53:18 +0000 | [diff] [blame] | 7326 | gcc_version=`gcc -dumpversion` |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 7327 | if test ${gcc_version} '<' 4.0 |
| 7328 | then |
| 7329 | LIBTOOL_CRUFT="-lcc_dynamic" |
| 7330 | else |
| 7331 | LIBTOOL_CRUFT="" |
| 7332 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7333 | if test "$cross_compiling" = yes; then : |
Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 7334 | ac_osx_32bit=yes |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 7335 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7336 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 7337 | /* end confdefs.h. */ |
Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 7338 | |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 7339 | #include <unistd.h> |
| 7340 | int main(int argc, char*argv[]) |
| 7341 | { |
| 7342 | if (sizeof(long) == 4) { |
| 7343 | return 0; |
| 7344 | } else { |
| 7345 | return 1; |
| 7346 | } |
Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 7347 | } |
| 7348 | |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 7349 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7350 | if ac_fn_c_try_run "$LINENO"; then : |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 7351 | ac_osx_32bit=yes |
| 7352 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7353 | ac_osx_32bit=no |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 7354 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7355 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7356 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 7357 | fi |
| 7358 | |
| 7359 | |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 7360 | if test "${ac_osx_32bit}" = "yes"; then |
Ronald Oussoren | e3da75a | 2010-02-11 13:38:58 +0000 | [diff] [blame] | 7361 | case `/usr/bin/arch` in |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 7362 | i386) |
| 7363 | MACOSX_DEFAULT_ARCH="i386" |
| 7364 | ;; |
| 7365 | ppc) |
| 7366 | MACOSX_DEFAULT_ARCH="ppc" |
| 7367 | ;; |
| 7368 | *) |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 7369 | as_fn_error $? "Unexpected output of 'arch' on OSX" "$LINENO" 5 |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 7370 | ;; |
| 7371 | esac |
| 7372 | else |
Ronald Oussoren | e3da75a | 2010-02-11 13:38:58 +0000 | [diff] [blame] | 7373 | case `/usr/bin/arch` in |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 7374 | i386) |
| 7375 | MACOSX_DEFAULT_ARCH="x86_64" |
| 7376 | ;; |
| 7377 | ppc) |
| 7378 | MACOSX_DEFAULT_ARCH="ppc64" |
| 7379 | ;; |
| 7380 | *) |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 7381 | as_fn_error $? "Unexpected output of 'arch' on OSX" "$LINENO" 5 |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 7382 | ;; |
| 7383 | esac |
| 7384 | |
| 7385 | #ARCH_RUN_32BIT="true" |
| 7386 | fi |
| 7387 | |
| 7388 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}" |
Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 7389 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7390 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7391 | esac |
| 7392 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7393 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-framework" >&5 |
| 7394 | $as_echo_n "checking for --enable-framework... " >&6; } |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7395 | if test "$enable_framework" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7396 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 7397 | BASECFLAGS="$BASECFLAGS -fno-common -dynamic" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7398 | # -F. is needed to allow linking to the framework while |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7399 | # in the build location. |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7400 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7401 | $as_echo "#define WITH_NEXT_FRAMEWORK 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7402 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 7404 | $as_echo "yes" >&6; } |
Ronald Oussoren | 99aab65 | 2009-06-08 21:22:57 +0000 | [diff] [blame] | 7405 | if test $enable_shared = "yes" |
| 7406 | then |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 7407 | 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] | 7408 | fi |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7409 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7410 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7411 | $as_echo "no" >&6; } |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7412 | fi |
| 7413 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7414 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dyld" >&5 |
| 7415 | $as_echo_n "checking for dyld... " >&6; } |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 7416 | case $ac_sys_system/$ac_sys_release in |
| 7417 | Darwin/*) |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7418 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7419 | $as_echo "#define WITH_DYLD 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7420 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: always on for Darwin" >&5 |
| 7422 | $as_echo "always on for Darwin" >&6; } |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 7423 | ;; |
| 7424 | *) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7426 | $as_echo "no" >&6; } |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7427 | ;; |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 7428 | esac |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7429 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7430 | # Set info about shared libraries. |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7431 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7432 | |
| 7433 | |
| 7434 | |
| 7435 | |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 7436 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7437 | |
Georg Brandl | b1441c7 | 2009-01-03 22:33:39 +0000 | [diff] [blame] | 7438 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7439 | cat >>confdefs.h <<_ACEOF |
| 7440 | #define SHLIB_EXT "$SO" |
| 7441 | _ACEOF |
| 7442 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7443 | # LDSHARED is the ld *command* used to create shared library |
Martin v. Löwis | 12af048 | 2004-01-31 12:34:17 +0000 | [diff] [blame] | 7444 | # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7445 | # (Shared libraries in this instance are shared modules to be loaded into |
| 7446 | # Python, as opposed to building Python itself as a shared library.) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7447 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDSHARED" >&5 |
| 7448 | $as_echo_n "checking LDSHARED... " >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7449 | if test -z "$LDSHARED" |
| 7450 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7451 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 7452 | AIX*) |
Georg Brandl | 9a829be | 2011-02-15 15:44:51 +0000 | [diff] [blame] | 7453 | 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] | 7454 | LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 7455 | ;; |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 7456 | IRIX/5*) LDSHARED="ld -shared";; |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 7457 | IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7458 | SunOS/5*) |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 7459 | if test "$GCC" = "yes" ; then |
| 7460 | LDSHARED='$(CC) -shared' |
| 7461 | LDCXXSHARED='$(CXX) -shared' |
| 7462 | else |
| 7463 | LDSHARED='$(CC) -G' |
| 7464 | LDCXXSHARED='$(CXX) -G' |
Greg Ward | 57c9a663 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 7465 | fi ;; |
Thomas Heller | f44b9a1 | 2008-04-04 10:18:23 +0000 | [diff] [blame] | 7466 | hp*|HP*) |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 7467 | if test "$GCC" = "yes" ; then |
| 7468 | LDSHARED='$(CC) -shared' |
| 7469 | LDCXXSHARED='$(CXX) -shared' |
| 7470 | else |
| 7471 | LDSHARED='ld -b' |
Thomas Heller | f44b9a1 | 2008-04-04 10:18:23 +0000 | [diff] [blame] | 7472 | fi ;; |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 7473 | Darwin/1.3*) |
Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 7474 | LDSHARED='$(CC) -bundle' |
| 7475 | LDCXXSHARED='$(CXX) -bundle' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 7476 | if test "$enable_framework" ; then |
| 7477 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 7478 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 7479 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 7480 | LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 7481 | else |
| 7482 | # No framework. Ignore undefined symbols, assuming they come from Python |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 7483 | LDSHARED="$LDSHARED -undefined suppress" |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 7484 | LDCXXSHARED="$LDCXXSHARED -undefined suppress" |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 7485 | fi ;; |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 7486 | Darwin/1.4*|Darwin/5.*|Darwin/6.*) |
Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 7487 | LDSHARED='$(CC) -bundle' |
| 7488 | LDCXXSHARED='$(CXX) -bundle' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7489 | if test "$enable_framework" ; then |
| 7490 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 7491 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 7492 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 7493 | LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7494 | else |
Michael W. Hudson | 594bc80 | 2002-03-07 09:59:15 +0000 | [diff] [blame] | 7495 | # No framework, use the Python app as bundle-loader |
| 7496 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
Jack Jansen | c28fc37 | 2003-02-25 13:14:43 +0000 | [diff] [blame] | 7497 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 7498 | LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7499 | fi ;; |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 7500 | Darwin/*) |
| 7501 | # Use -undefined dynamic_lookup whenever possible (10.3 and later). |
| 7502 | # This allows an extension to be used in any Python |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 7503 | |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 7504 | if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2 |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 7505 | then |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7506 | if test "${enable_universalsdk}"; then |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 7507 | LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}" |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7508 | fi |
Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 7509 | LDSHARED='$(CC) -bundle -undefined dynamic_lookup' |
| 7510 | LDCXXSHARED='$(CXX) -bundle -undefined dynamic_lookup' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 7511 | BLDSHARED="$LDSHARED" |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 7512 | else |
Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 7513 | LDSHARED='$(CC) -bundle' |
| 7514 | LDCXXSHARED='$(CXX) -bundle' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 7515 | if test "$enable_framework" ; then |
| 7516 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 7517 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 7518 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 7519 | LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 7520 | else |
| 7521 | # No framework, use the Python app as bundle-loader |
| 7522 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
| 7523 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 7524 | LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 7525 | fi |
| 7526 | fi |
| 7527 | ;; |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 7528 | Linux*|GNU*|QNX*) |
| 7529 | LDSHARED='$(CC) -shared' |
| 7530 | LDCXXSHARED='$(CXX) -shared';; |
| 7531 | BSD/OS*/4*) |
| 7532 | LDSHARED="gcc -shared" |
| 7533 | LDCXXSHARED="g++ -shared";; |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 7534 | FreeBSD*) |
Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 7535 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 7536 | then |
Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 7537 | LDSHARED='$(CC) -shared' |
| 7538 | LDCXXSHARED='$(CXX) -shared' |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 7539 | else |
Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 7540 | LDSHARED="ld -Bshareable" |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 7541 | fi;; |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 7542 | OpenBSD*) |
| 7543 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 7544 | then |
Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 7545 | LDSHARED='$(CC) -shared $(CCSHARED)' |
| 7546 | LDCXXSHARED='$(CXX) -shared $(CCSHARED)' |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 7547 | else |
| 7548 | case `uname -r` in |
| 7549 | [01].* | 2.[0-7] | 2.[0-7].*) |
| 7550 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 7551 | ;; |
| 7552 | *) |
Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 7553 | LDSHARED='$(CC) -shared $(CCSHARED)' |
| 7554 | LDCXXSHARED='$(CXX) -shared $(CCSHARED)' |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 7555 | ;; |
| 7556 | esac |
| 7557 | fi;; |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 7558 | NetBSD*|DragonFly*) |
Antoine Pitrou | ece919e | 2011-01-02 20:45:21 +0000 | [diff] [blame] | 7559 | LDSHARED='$(CC) -shared' |
| 7560 | LDCXXSHARED='$(CXX) -shared';; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 7561 | OpenUNIX*|UnixWare*) |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 7562 | if test "$GCC" = "yes" ; then |
| 7563 | LDSHARED='$(CC) -shared' |
| 7564 | LDCXXSHARED='$(CXX) -shared' |
| 7565 | else |
| 7566 | LDSHARED='$(CC) -G' |
| 7567 | LDCXXSHARED='$(CXX) -G' |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 7568 | fi;; |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 7569 | SCO_SV*) |
| 7570 | LDSHARED='$(CC) -Wl,-G,-Bexport' |
| 7571 | LDCXXSHARED='$(CXX) -Wl,-G,-Bexport';; |
| 7572 | CYGWIN*) |
| 7573 | LDSHARED="gcc -shared -Wl,--enable-auto-image-base" |
| 7574 | LDCXXSHARED="g++ -shared -Wl,--enable-auto-image-base";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7575 | *) LDSHARED="ld";; |
| 7576 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7577 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDSHARED" >&5 |
| 7579 | $as_echo "$LDSHARED" >&6; } |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 7580 | LDCXXSHARED=${LDCXXSHARED-$LDSHARED} |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 7581 | BLDSHARED=${BLDSHARED-$LDSHARED} |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7582 | # 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] | 7583 | # library (module) -- this is only needed for a few systems |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7584 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CCSHARED" >&5 |
| 7585 | $as_echo_n "checking CCSHARED... " >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7586 | if test -z "$CCSHARED" |
| 7587 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 7588 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 7589 | SunOS*) if test "$GCC" = yes; |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 7590 | then CCSHARED="-fPIC"; |
| 7591 | elif test `uname -p` = sparc; |
| 7592 | then CCSHARED="-xcode=pic32"; |
| 7593 | else CCSHARED="-Kpic"; |
| 7594 | fi;; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 7595 | hp*|HP*) if test "$GCC" = yes; |
Martin v. Löwis | 703ad70 | 2001-09-05 08:36:52 +0000 | [diff] [blame] | 7596 | then CCSHARED="-fPIC"; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 7597 | else CCSHARED="+z"; |
| 7598 | fi;; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 7599 | Linux*|GNU*) CCSHARED="-fPIC";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 7600 | BSD/OS*/4*) CCSHARED="-fpic";; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 7601 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 7602 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 7603 | if test "$GCC" = "yes" |
| 7604 | then CCSHARED="-fPIC" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 7605 | else CCSHARED="-KPIC" |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 7606 | fi;; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 7607 | SCO_SV*) |
| 7608 | if test "$GCC" = "yes" |
| 7609 | then CCSHARED="-fPIC" |
| 7610 | else CCSHARED="-Kpic -belf" |
| 7611 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 7612 | IRIX*/6*) case $CC in |
| 7613 | *gcc*) CCSHARED="-shared";; |
Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 7614 | *) CCSHARED="";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 7615 | esac;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7616 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7617 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCSHARED" >&5 |
| 7619 | $as_echo "$CCSHARED" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7620 | # LINKFORSHARED are the flags passed to the $(CC) command that links |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7621 | # the python executable -- this is only needed for a few systems |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7622 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKFORSHARED" >&5 |
| 7623 | $as_echo_n "checking LINKFORSHARED... " >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7624 | if test -z "$LINKFORSHARED" |
| 7625 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 7626 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 7627 | AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7628 | hp*|HP*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 7629 | LINKFORSHARED="-Wl,-E -Wl,+s";; |
| 7630 | # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 7631 | BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 7632 | Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7633 | # -u libsys_s pulls in all symbols in libsys |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7634 | Darwin/*) |
Benjamin Peterson | 9c80cac | 2009-05-23 16:34:23 +0000 | [diff] [blame] | 7635 | LINKFORSHARED="$extra_undefs -framework CoreFoundation" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7636 | if test "$enable_framework" |
| 7637 | then |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 7638 | LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7639 | fi |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 7640 | LINKFORSHARED="$LINKFORSHARED";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 7641 | OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 7642 | SCO_SV*) LINKFORSHARED="-Wl,-Bexport";; |
Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 7643 | ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 7644 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 7645 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 7646 | then |
| 7647 | LINKFORSHARED="-Wl,--export-dynamic" |
| 7648 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 7649 | SunOS/5*) case $CC in |
| 7650 | *gcc*) |
Martin v. Löwis | a454857 | 2002-04-18 14:51:36 +0000 | [diff] [blame] | 7651 | if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null |
Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 7652 | then |
| 7653 | LINKFORSHARED="-Xlinker --export-dynamic" |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 7654 | fi;; |
| 7655 | esac;; |
Jason Tishler | 3076559 | 2003-09-04 11:04:06 +0000 | [diff] [blame] | 7656 | CYGWIN*) |
| 7657 | if test $enable_shared = "no" |
| 7658 | then |
| 7659 | LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)' |
| 7660 | fi;; |
Benjamin Peterson | de9c869 | 2008-07-01 18:23:09 +0000 | [diff] [blame] | 7661 | QNX*) |
| 7662 | # -Wl,-E causes the symbols to be added to the dynamic |
| 7663 | # symbol table so that they can be found when a module |
| 7664 | # is loaded. -N 2048K causes the stack size to be set |
| 7665 | # to 2048 kilobytes so that the stack doesn't overflow |
| 7666 | # when running test_compile.py. |
| 7667 | LINKFORSHARED='-Wl,-E -N 2048K';; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7668 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7669 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKFORSHARED" >&5 |
| 7671 | $as_echo "$LINKFORSHARED" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7672 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7673 | |
Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 7674 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7675 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGSFORSHARED" >&5 |
| 7676 | $as_echo_n "checking CFLAGSFORSHARED... " >&6; } |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 7677 | if test ! "$LIBRARY" = "$LDLIBRARY" |
| 7678 | then |
Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 +0000 | [diff] [blame] | 7679 | case $ac_sys_system in |
| 7680 | CYGWIN*) |
| 7681 | # Cygwin needs CCSHARED when building extension DLLs |
| 7682 | # but not when building the interpreter DLL. |
| 7683 | CFLAGSFORSHARED='';; |
| 7684 | *) |
| 7685 | CFLAGSFORSHARED='$(CCSHARED)' |
| 7686 | esac |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 7687 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLAGSFORSHARED" >&5 |
| 7689 | $as_echo "$CFLAGSFORSHARED" >&6; } |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 7690 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 7691 | # SHLIBS are libraries (except -lc and -lm) to link to the python shared |
| 7692 | # library (with --enable-shared). |
| 7693 | # 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] | 7694 | # symbols, this must be set to $(LIBS) (expanded by make). We do this even |
| 7695 | # if it is not required, since it creates a dependency of the shared library |
| 7696 | # to LIBS. This, in turn, means that applications linking the shared libpython |
| 7697 | # don't need to link LIBS explicitly. The default should be only changed |
| 7698 | # on systems where this approach causes problems. |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 7699 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7700 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking SHLIBS" >&5 |
| 7701 | $as_echo_n "checking SHLIBS... " >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 7702 | case "$ac_sys_system" in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 7703 | *) |
Martin v. Löwis | d6359c5 | 2002-08-04 12:38:50 +0000 | [diff] [blame] | 7704 | SHLIBS='$(LIBS)';; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 7705 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIBS" >&5 |
| 7707 | $as_echo "$SHLIBS" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 7708 | |
| 7709 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7710 | # checks for libraries |
Georg Brandl | 941f956 | 2011-02-25 15:21:47 +0000 | [diff] [blame] | 7711 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendfile in -lsendfile" >&5 |
| 7712 | $as_echo_n "checking for sendfile in -lsendfile... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 7713 | if test "${ac_cv_lib_sendfile_sendfile+set}" = set; then : |
Georg Brandl | 941f956 | 2011-02-25 15:21:47 +0000 | [diff] [blame] | 7714 | $as_echo_n "(cached) " >&6 |
| 7715 | else |
| 7716 | ac_check_lib_save_LIBS=$LIBS |
| 7717 | LIBS="-lsendfile $LIBS" |
| 7718 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7719 | /* end confdefs.h. */ |
| 7720 | |
| 7721 | /* Override any GCC internal prototype to avoid an error. |
| 7722 | Use char because int might match the return type of a GCC |
| 7723 | builtin and then its argument prototype would still apply. */ |
| 7724 | #ifdef __cplusplus |
| 7725 | extern "C" |
| 7726 | #endif |
| 7727 | char sendfile (); |
| 7728 | int |
| 7729 | main () |
| 7730 | { |
| 7731 | return sendfile (); |
| 7732 | ; |
| 7733 | return 0; |
| 7734 | } |
| 7735 | _ACEOF |
| 7736 | if ac_fn_c_try_link "$LINENO"; then : |
| 7737 | ac_cv_lib_sendfile_sendfile=yes |
| 7738 | else |
| 7739 | ac_cv_lib_sendfile_sendfile=no |
| 7740 | fi |
| 7741 | rm -f core conftest.err conftest.$ac_objext \ |
| 7742 | conftest$ac_exeext conftest.$ac_ext |
| 7743 | LIBS=$ac_check_lib_save_LIBS |
| 7744 | fi |
| 7745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sendfile_sendfile" >&5 |
| 7746 | $as_echo "$ac_cv_lib_sendfile_sendfile" >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 7747 | if test "x$ac_cv_lib_sendfile_sendfile" = x""yes; then : |
Georg Brandl | 941f956 | 2011-02-25 15:21:47 +0000 | [diff] [blame] | 7748 | cat >>confdefs.h <<_ACEOF |
| 7749 | #define HAVE_LIBSENDFILE 1 |
| 7750 | _ACEOF |
| 7751 | |
| 7752 | LIBS="-lsendfile $LIBS" |
| 7753 | |
| 7754 | fi |
| 7755 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7756 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| 7757 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 7758 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7759 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7760 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7761 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7762 | LIBS="-ldl $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7763 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7764 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7765 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7766 | /* Override any GCC internal prototype to avoid an error. |
| 7767 | Use char because int might match the return type of a GCC |
| 7768 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7769 | #ifdef __cplusplus |
| 7770 | extern "C" |
| 7771 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7772 | char dlopen (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7773 | int |
| 7774 | main () |
| 7775 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7776 | return dlopen (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7777 | ; |
| 7778 | return 0; |
| 7779 | } |
| 7780 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7781 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7782 | ac_cv_lib_dl_dlopen=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7783 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7784 | ac_cv_lib_dl_dlopen=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7785 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7786 | rm -f core conftest.err conftest.$ac_objext \ |
| 7787 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7788 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7789 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| 7791 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 7792 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7793 | cat >>confdefs.h <<_ACEOF |
| 7794 | #define HAVE_LIBDL 1 |
| 7795 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7796 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7797 | LIBS="-ldl $LIBS" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7798 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7799 | fi |
| 7800 | # Dynamic linking for SunOS/Solaris and SYSV |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7801 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
| 7802 | $as_echo_n "checking for shl_load in -ldld... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 7803 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7804 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7805 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7806 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7807 | LIBS="-ldld $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7808 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7809 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7810 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7811 | /* Override any GCC internal prototype to avoid an error. |
| 7812 | Use char because int might match the return type of a GCC |
| 7813 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7814 | #ifdef __cplusplus |
| 7815 | extern "C" |
| 7816 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7817 | char shl_load (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7818 | int |
| 7819 | main () |
| 7820 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7821 | return shl_load (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7822 | ; |
| 7823 | return 0; |
| 7824 | } |
| 7825 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7826 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7827 | ac_cv_lib_dld_shl_load=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7828 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7829 | ac_cv_lib_dld_shl_load=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7830 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7831 | rm -f core conftest.err conftest.$ac_objext \ |
| 7832 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7833 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7834 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
| 7836 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 7837 | if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7838 | cat >>confdefs.h <<_ACEOF |
| 7839 | #define HAVE_LIBDLD 1 |
| 7840 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7841 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7842 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7843 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7844 | fi |
| 7845 | # Dynamic linking for HP-UX |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 7846 | |
Georg Brandl | b1441c7 | 2009-01-03 22:33:39 +0000 | [diff] [blame] | 7847 | # only check for sem_init if thread support is requested |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 7848 | if test "$with_threads" = "yes" -o -z "$with_threads"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7849 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5 |
| 7850 | $as_echo_n "checking for library containing sem_init... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 7851 | if test "${ac_cv_search_sem_init+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7852 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 7853 | else |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 7854 | ac_func_search_save_LIBS=$LIBS |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7855 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7856 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7857 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7858 | /* Override any GCC internal prototype to avoid an error. |
| 7859 | Use char because int might match the return type of a GCC |
| 7860 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7861 | #ifdef __cplusplus |
| 7862 | extern "C" |
| 7863 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7864 | char sem_init (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7865 | int |
| 7866 | main () |
| 7867 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7868 | return sem_init (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7869 | ; |
| 7870 | return 0; |
| 7871 | } |
| 7872 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7873 | for ac_lib in '' pthread rt posix4; do |
| 7874 | if test -z "$ac_lib"; then |
| 7875 | ac_res="none required" |
| 7876 | else |
| 7877 | ac_res=-l$ac_lib |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 7878 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7879 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7880 | if ac_fn_c_try_link "$LINENO"; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7881 | ac_cv_search_sem_init=$ac_res |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7882 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7883 | rm -f core conftest.err conftest.$ac_objext \ |
| 7884 | conftest$ac_exeext |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 7885 | if test "${ac_cv_search_sem_init+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7886 | break |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 7887 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7888 | done |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 7889 | if test "${ac_cv_search_sem_init+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7890 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7891 | else |
| 7892 | ac_cv_search_sem_init=no |
| 7893 | fi |
| 7894 | rm conftest.$ac_ext |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 7895 | LIBS=$ac_func_search_save_LIBS |
| 7896 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5 |
| 7898 | $as_echo "$ac_cv_search_sem_init" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7899 | ac_res=$ac_cv_search_sem_init |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7900 | if test "$ac_res" != no; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7901 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 7902 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 7903 | fi |
Martin v. Löwis | d3545ec | 2003-05-03 11:25:43 +0000 | [diff] [blame] | 7904 | # 'Real Time' functions on Solaris |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 7905 | # posix4 on Solaris 2.6 |
| 7906 | # pthread (first!) on Linux |
| 7907 | fi |
| 7908 | |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 7909 | # check if we need libintl for locale functions |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7910 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for textdomain in -lintl" >&5 |
| 7911 | $as_echo_n "checking for textdomain in -lintl... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 7912 | if test "${ac_cv_lib_intl_textdomain+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7913 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 7914 | else |
| 7915 | ac_check_lib_save_LIBS=$LIBS |
| 7916 | LIBS="-lintl $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7917 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7918 | /* end confdefs.h. */ |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 7919 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7920 | /* Override any GCC internal prototype to avoid an error. |
| 7921 | Use char because int might match the return type of a GCC |
| 7922 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 7923 | #ifdef __cplusplus |
| 7924 | extern "C" |
| 7925 | #endif |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 7926 | char textdomain (); |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 7927 | int |
| 7928 | main () |
| 7929 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7930 | return textdomain (); |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 7931 | ; |
| 7932 | return 0; |
| 7933 | } |
| 7934 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7935 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 7936 | ac_cv_lib_intl_textdomain=yes |
| 7937 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7938 | ac_cv_lib_intl_textdomain=no |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 7939 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7940 | rm -f core conftest.err conftest.$ac_objext \ |
| 7941 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 7942 | LIBS=$ac_check_lib_save_LIBS |
| 7943 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_textdomain" >&5 |
| 7945 | $as_echo "$ac_cv_lib_intl_textdomain" >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 7946 | if test "x$ac_cv_lib_intl_textdomain" = x""yes; then : |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 7947 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7948 | $as_echo "#define WITH_LIBINTL 1" >>confdefs.h |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 7949 | |
Brett Cannon | c6d936e | 2009-06-07 20:09:53 +0000 | [diff] [blame] | 7950 | LIBS="-lintl $LIBS" |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 7951 | fi |
| 7952 | |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 7953 | |
| 7954 | # checks for system dependent C++ extensions support |
| 7955 | case "$ac_sys_system" in |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7956 | AIX*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for genuine AIX C++ extensions support" >&5 |
| 7957 | $as_echo_n "checking for genuine AIX C++ extensions support... " >&6; } |
| 7958 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7959 | /* end confdefs.h. */ |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 7960 | |
Georg Brandl | 59e87bd | 2011-02-15 19:48:59 +0000 | [diff] [blame] | 7961 | #include <load.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7962 | int |
| 7963 | main () |
| 7964 | { |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 7965 | loadAndInit("", 0, "") |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7966 | ; |
| 7967 | return 0; |
| 7968 | } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 7969 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7970 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7971 | if ac_fn_c_try_link "$LINENO"; then : |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 7972 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 7973 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7974 | $as_echo "#define AIX_GENUINE_CPLUSPLUS 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7975 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 7976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7977 | $as_echo "yes" >&6; } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 7978 | |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 7979 | else |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 7980 | |
| 7981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7982 | $as_echo "no" >&6; } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 7983 | |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 7984 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7985 | rm -f core conftest.err conftest.$ac_objext \ |
| 7986 | conftest$ac_exeext conftest.$ac_ext;; |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 7987 | *) ;; |
| 7988 | esac |
| 7989 | |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 7990 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7991 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_open in -lnsl" >&5 |
| 7992 | $as_echo_n "checking for t_open in -lnsl... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 7993 | if test "${ac_cv_lib_nsl_t_open+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7994 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 7995 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7996 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7997 | LIBS="-lnsl $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7998 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7999 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8000 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8001 | /* Override any GCC internal prototype to avoid an error. |
| 8002 | Use char because int might match the return type of a GCC |
| 8003 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8004 | #ifdef __cplusplus |
| 8005 | extern "C" |
| 8006 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8007 | char t_open (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8008 | int |
| 8009 | main () |
| 8010 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8011 | return t_open (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8012 | ; |
| 8013 | return 0; |
| 8014 | } |
| 8015 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8016 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8017 | ac_cv_lib_nsl_t_open=yes |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 8018 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8019 | ac_cv_lib_nsl_t_open=no |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 8020 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8021 | rm -f core conftest.err conftest.$ac_objext \ |
| 8022 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8023 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 8024 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_t_open" >&5 |
| 8026 | $as_echo "$ac_cv_lib_nsl_t_open" >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 8027 | if test "x$ac_cv_lib_nsl_t_open" = x""yes; then : |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 8028 | LIBS="-lnsl $LIBS" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 8029 | fi |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 8030 | # SVR4 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8031 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 |
| 8032 | $as_echo_n "checking for socket in -lsocket... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 8033 | if test "${ac_cv_lib_socket_socket+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8034 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8035 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8036 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8037 | LIBS="-lsocket $LIBS $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8038 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8039 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8040 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8041 | /* Override any GCC internal prototype to avoid an error. |
| 8042 | Use char because int might match the return type of a GCC |
| 8043 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8044 | #ifdef __cplusplus |
| 8045 | extern "C" |
| 8046 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8047 | char socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8048 | int |
| 8049 | main () |
| 8050 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8051 | return socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8052 | ; |
| 8053 | return 0; |
| 8054 | } |
| 8055 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8056 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8057 | ac_cv_lib_socket_socket=yes |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8058 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8059 | ac_cv_lib_socket_socket=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8060 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8061 | rm -f core conftest.err conftest.$ac_objext \ |
| 8062 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8063 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8064 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 |
| 8066 | $as_echo "$ac_cv_lib_socket_socket" >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 8067 | if test "x$ac_cv_lib_socket_socket" = x""yes; then : |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8068 | LIBS="-lsocket $LIBS" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8069 | fi |
| 8070 | # SVR4 sockets |
Skip Montanaro | b9949db | 2004-01-17 04:04:13 +0000 | [diff] [blame] | 8071 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8072 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libs" >&5 |
| 8073 | $as_echo_n "checking for --with-libs... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8074 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8075 | # Check whether --with-libs was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8076 | if test "${with_libs+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8077 | withval=$with_libs; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 |
| 8079 | $as_echo "$withval" >&6; } |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 8080 | LIBS="$withval $LIBS" |
| 8081 | |
| 8082 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8084 | $as_echo "no" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8085 | fi |
| 8086 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 8087 | |
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 8088 | if test -n "$ac_tool_prefix"; then |
Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 8089 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 8090 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8091 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8092 | $as_echo_n "checking for $ac_word... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 8093 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8094 | $as_echo_n "(cached) " >&6 |
Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 8095 | else |
| 8096 | case $PKG_CONFIG in |
| 8097 | [\\/]* | ?:[\\/]*) |
| 8098 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 8099 | ;; |
| 8100 | *) |
| 8101 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8102 | for as_dir in $PATH |
| 8103 | do |
| 8104 | IFS=$as_save_IFS |
| 8105 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8106 | for ac_exec_ext in '' $ac_executable_extensions; do |
Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 8107 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 8108 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8109 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 8110 | break 2 |
| 8111 | fi |
| 8112 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8113 | done |
Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 8114 | IFS=$as_save_IFS |
| 8115 | |
| 8116 | ;; |
| 8117 | esac |
| 8118 | fi |
| 8119 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 8120 | if test -n "$PKG_CONFIG"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
| 8122 | $as_echo "$PKG_CONFIG" >&6; } |
Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 8123 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8124 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8125 | $as_echo "no" >&6; } |
Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 8126 | fi |
| 8127 | |
| 8128 | |
| 8129 | fi |
| 8130 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 8131 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 8132 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 8133 | set dummy pkg-config; ac_word=$2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8134 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8135 | $as_echo_n "checking for $ac_word... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 8136 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8137 | $as_echo_n "(cached) " >&6 |
Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 8138 | else |
| 8139 | case $ac_pt_PKG_CONFIG in |
| 8140 | [\\/]* | ?:[\\/]*) |
| 8141 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 8142 | ;; |
| 8143 | *) |
| 8144 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8145 | for as_dir in $PATH |
| 8146 | do |
| 8147 | IFS=$as_save_IFS |
| 8148 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8149 | for ac_exec_ext in '' $ac_executable_extensions; do |
Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 8150 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 8151 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8152 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 8153 | break 2 |
| 8154 | fi |
| 8155 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8156 | done |
Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 8157 | IFS=$as_save_IFS |
| 8158 | |
| 8159 | ;; |
| 8160 | esac |
| 8161 | fi |
| 8162 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 8163 | if test -n "$ac_pt_PKG_CONFIG"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
| 8165 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } |
Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 8166 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8168 | $as_echo "no" >&6; } |
Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 8169 | fi |
| 8170 | |
| 8171 | if test "x$ac_pt_PKG_CONFIG" = x; then |
| 8172 | PKG_CONFIG="" |
| 8173 | else |
| 8174 | case $cross_compiling:$ac_tool_warned in |
| 8175 | yes:) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8176 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 8177 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 8178 | ac_tool_warned=yes ;; |
| 8179 | esac |
| 8180 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 8181 | fi |
| 8182 | else |
| 8183 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 8184 | fi |
| 8185 | |
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 8186 | |
| 8187 | # Check for use of the system expat library |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8188 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-expat" >&5 |
| 8189 | $as_echo_n "checking for --with-system-expat... " >&6; } |
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 8190 | |
| 8191 | # Check whether --with-system_expat was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8192 | if test "${with_system_expat+set}" = set; then : |
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 8193 | withval=$with_system_expat; |
Benjamin Peterson | 7926325 | 2010-10-31 16:50:44 +0000 | [diff] [blame] | 8194 | else |
| 8195 | with_system_expat="no" |
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 8196 | fi |
| 8197 | |
| 8198 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_expat" >&5 |
| 8200 | $as_echo "$with_system_expat" >&6; } |
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 8201 | |
| 8202 | # Check for use of the system libffi library |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8203 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-ffi" >&5 |
| 8204 | $as_echo_n "checking for --with-system-ffi... " >&6; } |
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 8205 | |
| 8206 | # Check whether --with-system_ffi was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8207 | if test "${with_system_ffi+set}" = set; then : |
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 8208 | withval=$with_system_ffi; |
Benjamin Peterson | 7926325 | 2010-10-31 16:50:44 +0000 | [diff] [blame] | 8209 | else |
| 8210 | with_system_ffi="no" |
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 8211 | fi |
| 8212 | |
| 8213 | |
| 8214 | if test "$with_system_ffi" = "yes" && test -n "$PKG_CONFIG"; then |
Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 8215 | LIBFFI_INCLUDEDIR="`"$PKG_CONFIG" libffi --cflags-only-I 2>/dev/null | sed -e 's/^-I//;s/ *$//'`" |
| 8216 | else |
| 8217 | LIBFFI_INCLUDEDIR="" |
| 8218 | fi |
| 8219 | |
| 8220 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_ffi" >&5 |
| 8222 | $as_echo "$with_system_ffi" >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 8223 | |
Benjamin Peterson | 076ed00 | 2010-10-31 17:11:02 +0000 | [diff] [blame] | 8224 | # Check for support for loadable sqlite extensions |
| 8225 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-loadable-sqlite-extensions" >&5 |
| 8226 | $as_echo_n "checking for --enable-loadable-sqlite-extensions... " >&6; } |
| 8227 | # Check whether --enable-loadable-sqlite-extensions was given. |
| 8228 | if test "${enable_loadable_sqlite_extensions+set}" = set; then : |
| 8229 | enableval=$enable_loadable_sqlite_extensions; |
| 8230 | else |
| 8231 | enable_loadable_sqlite_extensions="no" |
| 8232 | fi |
| 8233 | |
| 8234 | |
| 8235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_loadable_sqlite_extensions" >&5 |
| 8236 | $as_echo "$enable_loadable_sqlite_extensions" >&6; } |
| 8237 | |
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 8238 | # Check for --with-dbmliborder |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8239 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dbmliborder" >&5 |
| 8240 | $as_echo_n "checking for --with-dbmliborder... " >&6; } |
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 8241 | |
| 8242 | # Check whether --with-dbmliborder was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8243 | if test "${with_dbmliborder+set}" = set; then : |
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 8244 | withval=$with_dbmliborder; |
| 8245 | if test x$with_dbmliborder = xyes |
| 8246 | then |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 8247 | as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5 |
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 8248 | else |
| 8249 | for db in `echo $with_dbmliborder | sed 's/:/ /g'`; do |
| 8250 | if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb |
| 8251 | then |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 8252 | as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5 |
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 8253 | fi |
| 8254 | done |
| 8255 | fi |
| 8256 | fi |
| 8257 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_dbmliborder" >&5 |
| 8259 | $as_echo "$with_dbmliborder" >&6; } |
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 8260 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 8261 | # Determine if signalmodule should be used. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 8262 | |
| 8263 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8264 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-signal-module" >&5 |
| 8265 | $as_echo_n "checking for --with-signal-module... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8266 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8267 | # Check whether --with-signal-module was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8268 | if test "${with_signal_module+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8269 | withval=$with_signal_module; |
| 8270 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 8271 | |
| 8272 | |
| 8273 | if test -z "$with_signal_module" |
| 8274 | then with_signal_module="yes" |
| 8275 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_signal_module" >&5 |
| 8277 | $as_echo "$with_signal_module" >&6; } |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 8278 | |
| 8279 | if test "${with_signal_module}" = "yes"; then |
| 8280 | USE_SIGNAL_MODULE="" |
| 8281 | SIGNAL_OBJS="" |
| 8282 | else |
| 8283 | USE_SIGNAL_MODULE="#" |
| 8284 | SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o" |
| 8285 | fi |
| 8286 | |
Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 8287 | # This is used to generate Setup.config |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 8288 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 8289 | USE_THREAD_MODULE="" |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 8290 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8291 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8292 | |
| 8293 | # Templates for things AC_DEFINEd more than once. |
| 8294 | # For a single AC_DEFINE, no template is needed. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 8295 | |
| 8296 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8297 | |
| 8298 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8299 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-threads" >&5 |
| 8300 | $as_echo_n "checking for --with-threads... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8301 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8302 | # Check whether --with-threads was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8303 | if test "${with_threads+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8304 | withval=$with_threads; |
| 8305 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 8306 | |
| 8307 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 8308 | # --with-thread is deprecated, but check for it anyway |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8309 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8310 | # Check whether --with-thread was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8311 | if test "${with_thread+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8312 | withval=$with_thread; with_threads=$with_thread |
| 8313 | fi |
| 8314 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 8315 | |
| 8316 | if test -z "$with_threads" |
| 8317 | then with_threads="yes" |
| 8318 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8319 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_threads" >&5 |
| 8320 | $as_echo "$with_threads" >&6; } |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 8321 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8322 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 8323 | if test "$with_threads" = "no" |
| 8324 | then |
| 8325 | USE_THREAD_MODULE="#" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 8326 | elif test "$ac_cv_pthread_is_default" = yes |
| 8327 | then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8328 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 8329 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 8330 | # Defining _REENTRANT on system with POSIX threads should not hurt. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8331 | $as_echo "#define _REENTRANT 1" >>confdefs.h |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 8332 | |
| 8333 | posix_threads=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8334 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8335 | elif test "$ac_cv_kpthread" = "yes" |
| 8336 | then |
| 8337 | CC="$CC -Kpthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 8338 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 8339 | CXX="$CXX -Kpthread" |
| 8340 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8341 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 8342 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 8343 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8344 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 8345 | elif test "$ac_cv_kthread" = "yes" |
| 8346 | then |
| 8347 | CC="$CC -Kthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 8348 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 8349 | CXX="$CXX -Kthread" |
| 8350 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8351 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 8352 | |
| 8353 | posix_threads=yes |
| 8354 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8355 | elif test "$ac_cv_pthread" = "yes" |
| 8356 | then |
| 8357 | CC="$CC -pthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 8358 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 8359 | CXX="$CXX -pthread" |
| 8360 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8361 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8362 | |
| 8363 | posix_threads=yes |
| 8364 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8365 | else |
| 8366 | if test ! -z "$with_threads" -a -d "$with_threads" |
| 8367 | then LDFLAGS="$LDFLAGS -L$with_threads" |
| 8368 | fi |
| 8369 | if test ! -z "$withval" -a -d "$withval" |
| 8370 | then LDFLAGS="$LDFLAGS -L$withval" |
| 8371 | fi |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8372 | |
| 8373 | # According to the POSIX spec, a pthreads implementation must |
Matthias Klose | a2542be | 2004-08-16 11:35:51 +0000 | [diff] [blame] | 8374 | # define _POSIX_THREADS in unistd.h. Some apparently don't |
| 8375 | # (e.g. gnu pth with pthread emulation) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8376 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _POSIX_THREADS in unistd.h" >&5 |
| 8377 | $as_echo_n "checking for _POSIX_THREADS in unistd.h... " >&6; } |
| 8378 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8379 | /* end confdefs.h. */ |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 8380 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8381 | #include <unistd.h> |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 8382 | #ifdef _POSIX_THREADS |
| 8383 | yes |
| 8384 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8385 | |
| 8386 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8387 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8388 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8389 | unistd_defines_pthreads=yes |
| 8390 | else |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8391 | unistd_defines_pthreads=no |
| 8392 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 8393 | rm -f conftest* |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8394 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unistd_defines_pthreads" >&5 |
| 8396 | $as_echo "$unistd_defines_pthreads" >&6; } |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8397 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8398 | $as_echo "#define _REENTRANT 1" >>confdefs.h |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 8399 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8400 | ac_fn_c_check_header_mongrel "$LINENO" "cthreads.h" "ac_cv_header_cthreads_h" "$ac_includes_default" |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 8401 | if test "x$ac_cv_header_cthreads_h" = x""yes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8402 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8403 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8404 | $as_echo "#define C_THREADS 1" >>confdefs.h |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 8405 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8406 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8407 | $as_echo "#define HURD_C_THREADS 1" >>confdefs.h |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8408 | |
| 8409 | LIBS="$LIBS -lthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8410 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8411 | else |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8412 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8413 | ac_fn_c_check_header_mongrel "$LINENO" "mach/cthreads.h" "ac_cv_header_mach_cthreads_h" "$ac_includes_default" |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 8414 | if test "x$ac_cv_header_mach_cthreads_h" = x""yes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8415 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8416 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8417 | $as_echo "#define C_THREADS 1" >>confdefs.h |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8418 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8419 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8420 | $as_echo "#define MACH_C_THREADS 1" >>confdefs.h |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8421 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8422 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 8423 | else |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 8424 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 8425 | # Just looking for pthread_create in libpthread is not enough: |
| 8426 | # on HP/UX, pthread.h renames pthread_create to a different symbol name. |
| 8427 | # So we really have to include pthread.h, and then link. |
| 8428 | _libs=$LIBS |
| 8429 | LIBS="$LIBS -lpthread" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8430 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 |
| 8431 | $as_echo_n "checking for pthread_create in -lpthread... " >&6; } |
| 8432 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8433 | /* end confdefs.h. */ |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 8434 | #include <pthread.h> |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 8435 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 8436 | void * start_routine (void *arg) { exit (0); } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8437 | int |
| 8438 | main () |
| 8439 | { |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 8440 | |
| 8441 | pthread_create (NULL, NULL, start_routine, NULL) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8442 | ; |
| 8443 | return 0; |
| 8444 | } |
| 8445 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8446 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8447 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 8449 | $as_echo "yes" >&6; } |
| 8450 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 8451 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8452 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8453 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 8454 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8455 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 8456 | LIBS=$_libs |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8457 | ac_fn_c_check_func "$LINENO" "pthread_detach" "ac_cv_func_pthread_detach" |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 8458 | if test "x$ac_cv_func_pthread_detach" = x""yes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8459 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8460 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8461 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8462 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8463 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8464 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8465 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5 |
| 8466 | $as_echo_n "checking for pthread_create in -lpthreads... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 8467 | if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8468 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8469 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8470 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8471 | LIBS="-lpthreads $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8472 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8473 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8474 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8475 | /* Override any GCC internal prototype to avoid an error. |
| 8476 | Use char because int might match the return type of a GCC |
| 8477 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8478 | #ifdef __cplusplus |
| 8479 | extern "C" |
| 8480 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8481 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8482 | int |
| 8483 | main () |
| 8484 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8485 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8486 | ; |
| 8487 | return 0; |
| 8488 | } |
| 8489 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8490 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8491 | ac_cv_lib_pthreads_pthread_create=yes |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 8492 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8493 | ac_cv_lib_pthreads_pthread_create=no |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 8494 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8495 | rm -f core conftest.err conftest.$ac_objext \ |
| 8496 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8497 | LIBS=$ac_check_lib_save_LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 8498 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8499 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5 |
| 8500 | $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 8501 | if test "x$ac_cv_lib_pthreads_pthread_create" = x""yes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8502 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 8503 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 8504 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8505 | LIBS="$LIBS -lpthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8506 | THREADOBJ="Python/thread.o" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 8507 | else |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 8508 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8509 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5 |
| 8510 | $as_echo_n "checking for pthread_create in -lc_r... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 8511 | if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8512 | $as_echo_n "(cached) " >&6 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 8513 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8514 | ac_check_lib_save_LIBS=$LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 8515 | LIBS="-lc_r $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8516 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8517 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8518 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8519 | /* Override any GCC internal prototype to avoid an error. |
| 8520 | Use char because int might match the return type of a GCC |
| 8521 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8522 | #ifdef __cplusplus |
| 8523 | extern "C" |
| 8524 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8525 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8526 | int |
| 8527 | main () |
| 8528 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8529 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8530 | ; |
| 8531 | return 0; |
| 8532 | } |
| 8533 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8534 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8535 | ac_cv_lib_c_r_pthread_create=yes |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 8536 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8537 | ac_cv_lib_c_r_pthread_create=no |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 8538 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8539 | rm -f core conftest.err conftest.$ac_objext \ |
| 8540 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8541 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 8542 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5 |
| 8544 | $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 8545 | if test "x$ac_cv_lib_c_r_pthread_create" = x""yes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8546 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 8547 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 8548 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8549 | LIBS="$LIBS -lc_r" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8550 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 8551 | else |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 8552 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8553 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __pthread_create_system in -lpthread" >&5 |
| 8554 | $as_echo_n "checking for __pthread_create_system in -lpthread... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 8555 | if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8556 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 8557 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8558 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 8559 | LIBS="-lpthread $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8560 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8561 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8562 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8563 | /* Override any GCC internal prototype to avoid an error. |
| 8564 | Use char because int might match the return type of a GCC |
| 8565 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8566 | #ifdef __cplusplus |
| 8567 | extern "C" |
| 8568 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8569 | char __pthread_create_system (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8570 | int |
| 8571 | main () |
| 8572 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8573 | return __pthread_create_system (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8574 | ; |
| 8575 | return 0; |
| 8576 | } |
| 8577 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8578 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8579 | ac_cv_lib_pthread___pthread_create_system=yes |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 8580 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8581 | ac_cv_lib_pthread___pthread_create_system=no |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 8582 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8583 | rm -f core conftest.err conftest.$ac_objext \ |
| 8584 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8585 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 8586 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_create_system" >&5 |
| 8588 | $as_echo "$ac_cv_lib_pthread___pthread_create_system" >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 8589 | if test "x$ac_cv_lib_pthread___pthread_create_system" = x""yes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8590 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 8591 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 8592 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8593 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8594 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 8595 | else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 8596 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8597 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lcma" >&5 |
| 8598 | $as_echo_n "checking for pthread_create in -lcma... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 8599 | if test "${ac_cv_lib_cma_pthread_create+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8600 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 8601 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8602 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 8603 | LIBS="-lcma $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8604 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8605 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8606 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8607 | /* Override any GCC internal prototype to avoid an error. |
| 8608 | Use char because int might match the return type of a GCC |
| 8609 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8610 | #ifdef __cplusplus |
| 8611 | extern "C" |
| 8612 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8613 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8614 | int |
| 8615 | main () |
| 8616 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8617 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8618 | ; |
| 8619 | return 0; |
| 8620 | } |
| 8621 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8622 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8623 | ac_cv_lib_cma_pthread_create=yes |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 8624 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8625 | ac_cv_lib_cma_pthread_create=no |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 8626 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8627 | rm -f core conftest.err conftest.$ac_objext \ |
| 8628 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8629 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 8630 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cma_pthread_create" >&5 |
| 8632 | $as_echo "$ac_cv_lib_cma_pthread_create" >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 8633 | if test "x$ac_cv_lib_cma_pthread_create" = x""yes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8634 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 8635 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 8636 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8637 | LIBS="$LIBS -lcma" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8638 | THREADOBJ="Python/thread.o" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 8639 | else |
Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 8640 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8641 | USE_THREAD_MODULE="#" |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 8642 | fi |
| 8643 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8644 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 8645 | fi |
| 8646 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 8647 | fi |
| 8648 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 8649 | fi |
| 8650 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 8651 | fi |
| 8652 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 8653 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8654 | rm -f core conftest.err conftest.$ac_objext \ |
| 8655 | conftest$ac_exeext conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8656 | fi |
| 8657 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8658 | |
| 8659 | fi |
| 8660 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8661 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8662 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8663 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usconfig in -lmpc" >&5 |
| 8664 | $as_echo_n "checking for usconfig in -lmpc... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 8665 | if test "${ac_cv_lib_mpc_usconfig+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8666 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8667 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8668 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8669 | LIBS="-lmpc $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8670 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8671 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8672 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8673 | /* Override any GCC internal prototype to avoid an error. |
| 8674 | Use char because int might match the return type of a GCC |
| 8675 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8676 | #ifdef __cplusplus |
| 8677 | extern "C" |
| 8678 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8679 | char usconfig (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8680 | int |
| 8681 | main () |
| 8682 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8683 | return usconfig (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8684 | ; |
| 8685 | return 0; |
| 8686 | } |
| 8687 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8688 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8689 | ac_cv_lib_mpc_usconfig=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8690 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8691 | ac_cv_lib_mpc_usconfig=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8692 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8693 | rm -f core conftest.err conftest.$ac_objext \ |
| 8694 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8695 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8696 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpc_usconfig" >&5 |
| 8698 | $as_echo "$ac_cv_lib_mpc_usconfig" >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 8699 | if test "x$ac_cv_lib_mpc_usconfig" = x""yes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8700 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8701 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8702 | LIBS="$LIBS -lmpc" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8703 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8704 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8705 | fi |
| 8706 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 8707 | |
Neal Norwitz | a978ab0 | 2002-11-02 16:58:05 +0000 | [diff] [blame] | 8708 | if test "$posix_threads" != "yes"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8709 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5 |
| 8710 | $as_echo_n "checking for thr_create in -lthread... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 8711 | if test "${ac_cv_lib_thread_thr_create+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8712 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8713 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8714 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8715 | LIBS="-lthread $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8716 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8717 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8718 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8719 | /* Override any GCC internal prototype to avoid an error. |
| 8720 | Use char because int might match the return type of a GCC |
| 8721 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8722 | #ifdef __cplusplus |
| 8723 | extern "C" |
| 8724 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8725 | char thr_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8726 | int |
| 8727 | main () |
| 8728 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8729 | return thr_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8730 | ; |
| 8731 | return 0; |
| 8732 | } |
| 8733 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8734 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8735 | ac_cv_lib_thread_thr_create=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8736 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8737 | ac_cv_lib_thread_thr_create=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8738 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8739 | rm -f core conftest.err conftest.$ac_objext \ |
| 8740 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8741 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8742 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5 |
| 8744 | $as_echo "$ac_cv_lib_thread_thr_create" >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 8745 | if test "x$ac_cv_lib_thread_thr_create" = x""yes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8746 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8747 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 8748 | LIBS="$LIBS -lthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8749 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 8750 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8751 | fi |
| 8752 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 8753 | fi |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8754 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 8755 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8756 | if test "$posix_threads" = "yes"; then |
| 8757 | if test "$unistd_defines_pthreads" = "no"; then |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 8758 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8759 | $as_echo "#define _POSIX_THREADS 1" >>confdefs.h |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8760 | |
| 8761 | fi |
| 8762 | |
| 8763 | # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8. |
| 8764 | case $ac_sys_system/$ac_sys_release in |
| 8765 | SunOS/5.6) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8766 | $as_echo "#define HAVE_PTHREAD_DESTRUCTOR 1" >>confdefs.h |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 8767 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8768 | ;; |
| 8769 | SunOS/5.8) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8770 | $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8771 | |
| 8772 | ;; |
Christian Heimes | 7b3ce6a | 2008-01-31 14:31:45 +0000 | [diff] [blame] | 8773 | AIX/5) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8774 | $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h |
Christian Heimes | 7b3ce6a | 2008-01-31 14:31:45 +0000 | [diff] [blame] | 8775 | |
| 8776 | ;; |
Antoine Pitrou | 33a2994 | 2010-08-30 14:52:00 +0000 | [diff] [blame] | 8777 | AIX/6) |
| 8778 | $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h |
| 8779 | |
| 8780 | ;; |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8781 | esac |
| 8782 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8783 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 |
| 8784 | $as_echo_n "checking if PTHREAD_SCOPE_SYSTEM is supported... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 8785 | if test "${ac_cv_pthread_system_supported+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8786 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8787 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8788 | if test "$cross_compiling" = yes; then : |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8789 | ac_cv_pthread_system_supported=no |
| 8790 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8791 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8792 | /* end confdefs.h. */ |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8793 | #include <pthread.h> |
| 8794 | void *foo(void *parm) { |
| 8795 | return NULL; |
| 8796 | } |
| 8797 | main() { |
| 8798 | pthread_attr_t attr; |
| 8799 | pthread_t id; |
| 8800 | if (pthread_attr_init(&attr)) exit(-1); |
| 8801 | if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1); |
| 8802 | if (pthread_create(&id, &attr, foo, NULL)) exit(-1); |
| 8803 | exit(0); |
| 8804 | } |
| 8805 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8806 | if ac_fn_c_try_run "$LINENO"; then : |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8807 | ac_cv_pthread_system_supported=yes |
| 8808 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8809 | ac_cv_pthread_system_supported=no |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8810 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8811 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 8812 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8813 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 8814 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8815 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8816 | fi |
| 8817 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_system_supported" >&5 |
| 8819 | $as_echo "$ac_cv_pthread_system_supported" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8820 | if test "$ac_cv_pthread_system_supported" = "yes"; then |
| 8821 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8822 | $as_echo "#define PTHREAD_SYSTEM_SCHED_SUPPORTED 1" >>confdefs.h |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8823 | |
| 8824 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8825 | for ac_func in pthread_sigmask |
| 8826 | do : |
| 8827 | ac_fn_c_check_func "$LINENO" "pthread_sigmask" "ac_cv_func_pthread_sigmask" |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 8828 | if test "x$ac_cv_func_pthread_sigmask" = x""yes; then : |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8829 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8830 | #define HAVE_PTHREAD_SIGMASK 1 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8831 | _ACEOF |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 8832 | case $ac_sys_system in |
| 8833 | CYGWIN*) |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8834 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8835 | $as_echo "#define HAVE_BROKEN_PTHREAD_SIGMASK 1" >>confdefs.h |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 8836 | |
| 8837 | ;; |
| 8838 | esac |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8839 | fi |
| 8840 | done |
| 8841 | |
| 8842 | fi |
| 8843 | |
| 8844 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8845 | # Check for enable-ipv6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8846 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8847 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-ipv6 is specified" >&5 |
| 8848 | $as_echo_n "checking if --enable-ipv6 is specified... " >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8849 | # Check whether --enable-ipv6 was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8850 | if test "${enable_ipv6+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8851 | enableval=$enable_ipv6; case "$enableval" in |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8852 | no) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8854 | $as_echo "no" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8855 | ipv6=no |
| 8856 | ;; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8857 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 8858 | $as_echo "yes" >&6; } |
| 8859 | $as_echo "#define ENABLE_IPV6 1" >>confdefs.h |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8860 | |
| 8861 | ipv6=yes |
| 8862 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8863 | esac |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8864 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8865 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8866 | if test "$cross_compiling" = yes; then : |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8867 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8868 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8869 | $as_echo "no" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8870 | ipv6=no |
| 8871 | |
| 8872 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8873 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8874 | /* end confdefs.h. */ |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8875 | /* AF_INET6 available check */ |
| 8876 | #include <sys/types.h> |
| 8877 | #include <sys/socket.h> |
| 8878 | main() |
| 8879 | { |
| 8880 | if (socket(AF_INET6, SOCK_STREAM, 0) < 0) |
| 8881 | exit(1); |
| 8882 | else |
| 8883 | exit(0); |
| 8884 | } |
| 8885 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8886 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8887 | if ac_fn_c_try_run "$LINENO"; then : |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8888 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 8890 | $as_echo "yes" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8891 | ipv6=yes |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8892 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8893 | else |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8894 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8896 | $as_echo "no" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8897 | ipv6=no |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8898 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8899 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8900 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 8901 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8902 | fi |
| 8903 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8904 | |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 8905 | if test "$ipv6" = "yes"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8906 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RFC2553 API is available" >&5 |
| 8907 | $as_echo_n "checking if RFC2553 API is available... " >&6; } |
| 8908 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8909 | /* end confdefs.h. */ |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8910 | |
| 8911 | #include <sys/types.h> |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 8912 | #include <netinet/in.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8913 | int |
| 8914 | main () |
| 8915 | { |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 8916 | struct sockaddr_in6 x; |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8917 | x.sin6_scope_id; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8918 | ; |
| 8919 | return 0; |
| 8920 | } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8921 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8922 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8923 | if ac_fn_c_try_compile "$LINENO"; then : |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8924 | |
| 8925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8926 | $as_echo "yes" >&6; } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8927 | ipv6=yes |
| 8928 | |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 8929 | else |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8930 | |
| 8931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8932 | $as_echo "no" >&6; } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8933 | ipv6=no |
| 8934 | |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 8935 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8936 | 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] | 8937 | fi |
| 8938 | |
| 8939 | if test "$ipv6" = "yes"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8940 | $as_echo "#define ENABLE_IPV6 1" >>confdefs.h |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 8941 | |
| 8942 | fi |
| 8943 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8944 | fi |
| 8945 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8946 | |
| 8947 | ipv6type=unknown |
| 8948 | ipv6lib=none |
| 8949 | ipv6trylibc=no |
| 8950 | |
| 8951 | if test "$ipv6" = "yes"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8952 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking ipv6 stack type" >&5 |
| 8953 | $as_echo_n "checking ipv6 stack type... " >&6; } |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 8954 | for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; |
| 8955 | do |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8956 | case $i in |
| 8957 | inria) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8958 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8959 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 8960 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8961 | #include <netinet/in.h> |
| 8962 | #ifdef IPV6_INRIA_VERSION |
| 8963 | yes |
| 8964 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8965 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8966 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8967 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 8968 | ipv6type=$i |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8969 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 8970 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8971 | |
| 8972 | ;; |
| 8973 | kame) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8974 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8975 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 8976 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8977 | #include <netinet/in.h> |
| 8978 | #ifdef __KAME__ |
| 8979 | yes |
| 8980 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8981 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8982 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8983 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8984 | ipv6type=$i; |
| 8985 | ipv6lib=inet6 |
| 8986 | ipv6libdir=/usr/local/v6/lib |
| 8987 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8988 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 8989 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8990 | |
| 8991 | ;; |
| 8992 | linux-glibc) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8993 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8994 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 8995 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8996 | #include <features.h> |
| 8997 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) |
| 8998 | yes |
| 8999 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9000 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9001 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9002 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9003 | ipv6type=$i; |
| 9004 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9005 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 9006 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9007 | |
| 9008 | ;; |
| 9009 | linux-inet6) |
| 9010 | if test -d /usr/inet6; then |
| 9011 | ipv6type=$i |
| 9012 | ipv6lib=inet6 |
| 9013 | ipv6libdir=/usr/inet6/lib |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 9014 | BASECFLAGS="-I/usr/inet6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9015 | fi |
| 9016 | ;; |
| 9017 | solaris) |
| 9018 | if test -f /etc/netconfig; then |
Antoine Pitrou | f3fcd9f | 2011-01-03 18:53:50 +0000 | [diff] [blame] | 9019 | if $GREP -q tcp6 /etc/netconfig; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9020 | ipv6type=$i |
| 9021 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9022 | fi |
| 9023 | fi |
| 9024 | ;; |
| 9025 | toshiba) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9026 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9027 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9028 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9029 | #include <sys/param.h> |
| 9030 | #ifdef _TOSHIBA_INET6 |
| 9031 | yes |
| 9032 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9033 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9034 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9035 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9036 | ipv6type=$i; |
| 9037 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 9038 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9039 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 9040 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9041 | |
| 9042 | ;; |
| 9043 | v6d) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9044 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9045 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9046 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9047 | #include </usr/local/v6/include/sys/v6config.h> |
| 9048 | #ifdef __V6D__ |
| 9049 | yes |
| 9050 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9051 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9052 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9053 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9054 | ipv6type=$i; |
| 9055 | ipv6lib=v6; |
| 9056 | ipv6libdir=/usr/local/v6/lib; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 9057 | BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9058 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 9059 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9060 | |
| 9061 | ;; |
| 9062 | zeta) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9063 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9064 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9065 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9066 | #include <sys/param.h> |
| 9067 | #ifdef _ZETA_MINAMI_INET6 |
| 9068 | yes |
| 9069 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9070 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9071 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9072 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9073 | ipv6type=$i; |
| 9074 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 9075 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9076 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 9077 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9078 | |
| 9079 | ;; |
| 9080 | esac |
| 9081 | if test "$ipv6type" != "unknown"; then |
| 9082 | break |
| 9083 | fi |
| 9084 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6type" >&5 |
| 9086 | $as_echo "$ipv6type" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9087 | fi |
| 9088 | |
| 9089 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then |
| 9090 | if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then |
| 9091 | LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" |
| 9092 | echo "using lib$ipv6lib" |
| 9093 | else |
| 9094 | if test $ipv6trylibc = "yes"; then |
| 9095 | echo "using libc" |
| 9096 | else |
| 9097 | echo 'Fatal: no $ipv6lib library found. cannot continue.' |
| 9098 | echo "You need to fetch lib$ipv6lib.a from appropriate" |
| 9099 | echo 'ipv6 kit and compile beforehand.' |
| 9100 | exit 1 |
| 9101 | fi |
| 9102 | fi |
| 9103 | fi |
| 9104 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9105 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSX 10.5 SDK or later" >&5 |
| 9106 | $as_echo_n "checking for OSX 10.5 SDK or later... " >&6; } |
| 9107 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 9108 | /* end confdefs.h. */ |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9109 | |
| 9110 | #include <Carbon/Carbon.h> |
Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 9111 | int |
| 9112 | main () |
| 9113 | { |
| 9114 | FSIORefNum fRef = 0 |
| 9115 | ; |
| 9116 | return 0; |
| 9117 | } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9118 | |
Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 9119 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9120 | if ac_fn_c_try_compile "$LINENO"; then : |
Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 9121 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9122 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9123 | $as_echo "#define HAVE_OSX105_SDK 1" >>confdefs.h |
Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 9124 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 9126 | $as_echo "yes" >&6; } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9127 | |
Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 9128 | else |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9129 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9131 | $as_echo "no" >&6; } |
Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 9132 | |
| 9133 | fi |
Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 9134 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9135 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 9136 | # Check for --with-doc-strings |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9137 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-doc-strings" >&5 |
| 9138 | $as_echo_n "checking for --with-doc-strings... " >&6; } |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 9139 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9140 | # Check whether --with-doc-strings was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9141 | if test "${with_doc_strings+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9142 | withval=$with_doc_strings; |
| 9143 | fi |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 9144 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 9145 | |
| 9146 | if test -z "$with_doc_strings" |
| 9147 | then with_doc_strings="yes" |
| 9148 | fi |
| 9149 | if test "$with_doc_strings" != "no" |
| 9150 | then |
| 9151 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9152 | $as_echo "#define WITH_DOC_STRINGS 1" >>confdefs.h |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 9153 | |
| 9154 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_doc_strings" >&5 |
| 9156 | $as_echo "$with_doc_strings" >&6; } |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 9157 | |
Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 9158 | # Check if eval loop should use timestamp counter profiling |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9159 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tsc" >&5 |
| 9160 | $as_echo_n "checking for --with-tsc... " >&6; } |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 9161 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9162 | # Check whether --with-tsc was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9163 | if test "${with_tsc+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9164 | withval=$with_tsc; |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 9165 | if test "$withval" != no |
| 9166 | then |
| 9167 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9168 | $as_echo "#define WITH_TSC 1" >>confdefs.h |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 9169 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 9171 | $as_echo "yes" >&6; } |
| 9172 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9173 | $as_echo "no" >&6; } |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 9174 | fi |
| 9175 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9177 | $as_echo "no" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9178 | fi |
| 9179 | |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 9180 | |
| 9181 | # Check for Python-specific malloc support |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9182 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pymalloc" >&5 |
| 9183 | $as_echo_n "checking for --with-pymalloc... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9184 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9185 | # Check whether --with-pymalloc was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9186 | if test "${with_pymalloc+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9187 | withval=$with_pymalloc; |
| 9188 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9189 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 9190 | |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 9191 | if test -z "$with_pymalloc" |
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 9192 | then |
| 9193 | with_pymalloc="yes" |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 9194 | ABIFLAGS="${ABIFLAGS}m" |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 9195 | fi |
| 9196 | if test "$with_pymalloc" != "no" |
| 9197 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9198 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9199 | $as_echo "#define WITH_PYMALLOC 1" >>confdefs.h |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 9200 | |
| 9201 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pymalloc" >&5 |
| 9203 | $as_echo "$with_pymalloc" >&6; } |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 9204 | |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 9205 | # Check for Valgrind support |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9206 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-valgrind" >&5 |
| 9207 | $as_echo_n "checking for --with-valgrind... " >&6; } |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 9208 | |
| 9209 | # Check whether --with-valgrind was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9210 | if test "${with_valgrind+set}" = set; then : |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 9211 | withval=$with_valgrind; |
| 9212 | else |
| 9213 | with_valgrind=no |
| 9214 | fi |
| 9215 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_valgrind" >&5 |
| 9217 | $as_echo "$with_valgrind" >&6; } |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 9218 | if test "$with_valgrind" != no; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9219 | ac_fn_c_check_header_mongrel "$LINENO" "valgrind/valgrind.h" "ac_cv_header_valgrind_valgrind_h" "$ac_includes_default" |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 9220 | if test "x$ac_cv_header_valgrind_valgrind_h" = x""yes; then : |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 9221 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9222 | $as_echo "#define WITH_VALGRIND 1" >>confdefs.h |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 9223 | |
| 9224 | else |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 9225 | as_fn_error $? "Valgrind support requested but headers not available" "$LINENO" 5 |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 9226 | |
| 9227 | fi |
| 9228 | |
| 9229 | |
Jeffrey Yasskin | 3937083 | 2010-05-03 19:29:34 +0000 | [diff] [blame] | 9230 | OPT="-DDYNAMIC_ANNOTATIONS_ENABLED=1 $OPT" |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 9231 | fi |
| 9232 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9233 | # -I${DLINCLDIR} is added to the compile rule for importdl.o |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 9234 | |
Guido van Rossum | 98935bf | 2001-09-05 19:13:16 +0000 | [diff] [blame] | 9235 | DLINCLDIR=. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 9236 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9237 | # the dlopen() function means we might want to use dynload_shlib.o. some |
| 9238 | # 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] | 9239 | for ac_func in dlopen |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9240 | do : |
| 9241 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 9242 | if test "x$ac_cv_func_dlopen" = x""yes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9243 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9244 | #define HAVE_DLOPEN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9245 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9246 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9247 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 9248 | done |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9249 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9250 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9251 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic |
| 9252 | # loading of modules. |
| 9253 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9254 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking DYNLOADFILE" >&5 |
| 9255 | $as_echo_n "checking DYNLOADFILE... " >&6; } |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9256 | if test -z "$DYNLOADFILE" |
| 9257 | then |
| 9258 | case $ac_sys_system/$ac_sys_release in |
Martin v. Löwis | c19c5a6 | 2003-11-18 20:00:44 +0000 | [diff] [blame] | 9259 | AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c |
| 9260 | if test "$ac_cv_func_dlopen" = yes |
| 9261 | then DYNLOADFILE="dynload_shlib.o" |
| 9262 | else DYNLOADFILE="dynload_aix.o" |
| 9263 | fi |
| 9264 | ;; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9265 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 9266 | # Use dynload_next.c only on 10.2 and below, which don't have native dlopen() |
| 9267 | Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9268 | *) |
| 9269 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub |
| 9270 | # out any dynamic loading |
| 9271 | if test "$ac_cv_func_dlopen" = yes |
| 9272 | then DYNLOADFILE="dynload_shlib.o" |
| 9273 | else DYNLOADFILE="dynload_stub.o" |
| 9274 | fi |
| 9275 | ;; |
| 9276 | esac |
| 9277 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DYNLOADFILE" >&5 |
| 9279 | $as_echo "$DYNLOADFILE" >&6; } |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9280 | if test "$DYNLOADFILE" != "dynload_stub.o" |
| 9281 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9282 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9283 | $as_echo "#define HAVE_DYNAMIC_LOADING 1" >>confdefs.h |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9284 | |
| 9285 | fi |
| 9286 | |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 9287 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python |
| 9288 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9289 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9290 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP_OBJS" >&5 |
| 9291 | $as_echo_n "checking MACHDEP_OBJS... " >&6; } |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 9292 | if test -z "$MACHDEP_OBJS" |
| 9293 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9294 | MACHDEP_OBJS=$extra_machdep_objs |
| 9295 | else |
| 9296 | MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 9297 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: MACHDEP_OBJS" >&5 |
| 9299 | $as_echo "MACHDEP_OBJS" >&6; } |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 9300 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9301 | # checks for library functions |
Antoine Pitrou | b1c5496 | 2010-10-14 15:05:38 +0000 | [diff] [blame] | 9302 | for ac_func in alarm accept4 setitimer getitimer bind_textdomain_codeset chown \ |
Antoine Pitrou | 8250e23 | 2011-02-25 23:41:16 +0000 | [diff] [blame] | 9303 | clock confstr ctermid execv faccessat fchmod fchmodat fchown fchownat \ |
Ross Lagerwall | 7807c35 | 2011-03-17 20:20:30 +0200 | [diff] [blame] | 9304 | fexecve fdopendir fork fpathconf fstatat ftime ftruncate futimesat \ |
| 9305 | futimens futimes \ |
Martin v. Löwis | 438b534 | 2002-12-27 10:16:42 +0000 | [diff] [blame] | 9306 | gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \ |
Martin v. Löwis | 7aed61a | 2009-11-27 14:09:49 +0000 | [diff] [blame] | 9307 | getpriority getresuid getresgid getpwent getspnam getspent getsid getwd \ |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 9308 | if_nameindex \ |
Ross Lagerwall | 7807c35 | 2011-03-17 20:20:30 +0200 | [diff] [blame] | 9309 | initgroups kill killpg lchmod lchown lockf linkat lstat lutimes mbrtowc mkdirat mkfifo \ |
Antoine Pitrou | f65132d | 2011-02-25 23:25:17 +0000 | [diff] [blame] | 9310 | mkfifoat mknod mknodat mktime mremap nice openat pathconf pause plock poll \ |
Ross Lagerwall | 7807c35 | 2011-03-17 20:20:30 +0200 | [diff] [blame] | 9311 | posix_fallocate posix_fadvise pread \ |
Victor Stinner | b3e7219 | 2011-05-08 01:46:11 +0200 | [diff] [blame] | 9312 | pthread_init pthread_kill putenv pwrite readlink readlinkat readv realpath renameat \ |
Georg Brandl | 941f956 | 2011-02-25 15:21:47 +0000 | [diff] [blame] | 9313 | select sem_open sem_timedwait sem_getvalue sem_unlink sendfile setegid seteuid \ |
Antoine Pitrou | 061cfb5 | 2011-02-28 22:25:22 +0000 | [diff] [blame] | 9314 | setgid sethostname \ |
Giampaolo Rodolà | 18e8bcb | 2011-02-25 20:57:54 +0000 | [diff] [blame] | 9315 | setlocale setregid setreuid setresuid setresgid setsid setpgid setpgrp setpriority setuid setvbuf \ |
Victor Stinner | b3e7219 | 2011-05-08 01:46:11 +0200 | [diff] [blame] | 9316 | sigaction sigaltstack siginterrupt sigpending \ |
| 9317 | sigrelse sigwait snprintf strftime strlcpy symlinkat sync \ |
Michael W. Hudson | 34f20ea | 2002-05-27 15:08:24 +0000 | [diff] [blame] | 9318 | sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ |
Ross Lagerwall | 7807c35 | 2011-03-17 20:20:30 +0200 | [diff] [blame] | 9319 | truncate uname unlinkat unsetenv utimensat utimes waitid waitpid wait3 wait4 \ |
| 9320 | wcscoll wcsftime wcsxfrm writev _getpty |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9321 | do : |
| 9322 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 9323 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 9324 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9325 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9326 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9327 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 9328 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 9329 | fi |
| 9330 | done |
| 9331 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9332 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9333 | # For some functions, having a definition is not sufficient, since |
| 9334 | # we want to take their address. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9335 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chroot" >&5 |
| 9336 | $as_echo_n "checking for chroot... " >&6; } |
| 9337 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9338 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9339 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9340 | int |
| 9341 | main () |
| 9342 | { |
| 9343 | void *x=chroot |
| 9344 | ; |
| 9345 | return 0; |
| 9346 | } |
| 9347 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9348 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9349 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9350 | $as_echo "#define HAVE_CHROOT 1" >>confdefs.h |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9351 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9353 | $as_echo "yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9354 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9356 | $as_echo "no" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9357 | |
| 9358 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9359 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9360 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for link" >&5 |
| 9361 | $as_echo_n "checking for link... " >&6; } |
| 9362 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9363 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9364 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9365 | int |
| 9366 | main () |
| 9367 | { |
| 9368 | void *x=link |
| 9369 | ; |
| 9370 | return 0; |
| 9371 | } |
| 9372 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9373 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9374 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9375 | $as_echo "#define HAVE_LINK 1" >>confdefs.h |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9376 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9378 | $as_echo "yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9379 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9381 | $as_echo "no" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9382 | |
| 9383 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9384 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9385 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for symlink" >&5 |
| 9386 | $as_echo_n "checking for symlink... " >&6; } |
| 9387 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9388 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9389 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9390 | int |
| 9391 | main () |
| 9392 | { |
| 9393 | void *x=symlink |
| 9394 | ; |
| 9395 | return 0; |
| 9396 | } |
| 9397 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9398 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9399 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9400 | $as_echo "#define HAVE_SYMLINK 1" >>confdefs.h |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9401 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9403 | $as_echo "yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9404 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9406 | $as_echo "no" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9407 | |
| 9408 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9409 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9410 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fchdir" >&5 |
| 9411 | $as_echo_n "checking for fchdir... " >&6; } |
| 9412 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9413 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9414 | #include <unistd.h> |
| 9415 | int |
| 9416 | main () |
| 9417 | { |
| 9418 | void *x=fchdir |
| 9419 | ; |
| 9420 | return 0; |
| 9421 | } |
| 9422 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9423 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9424 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9425 | $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9426 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9428 | $as_echo "yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9429 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9431 | $as_echo "no" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9432 | |
| 9433 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9434 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9435 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fsync" >&5 |
| 9436 | $as_echo_n "checking for fsync... " >&6; } |
| 9437 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9438 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9439 | #include <unistd.h> |
| 9440 | int |
| 9441 | main () |
| 9442 | { |
| 9443 | void *x=fsync |
| 9444 | ; |
| 9445 | return 0; |
| 9446 | } |
| 9447 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9448 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9449 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9450 | $as_echo "#define HAVE_FSYNC 1" >>confdefs.h |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9451 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9453 | $as_echo "yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9454 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9456 | $as_echo "no" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9457 | |
| 9458 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9459 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9460 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fdatasync" >&5 |
| 9461 | $as_echo_n "checking for fdatasync... " >&6; } |
| 9462 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9463 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9464 | #include <unistd.h> |
| 9465 | int |
| 9466 | main () |
| 9467 | { |
| 9468 | void *x=fdatasync |
| 9469 | ; |
| 9470 | return 0; |
| 9471 | } |
| 9472 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9473 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9474 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9475 | $as_echo "#define HAVE_FDATASYNC 1" >>confdefs.h |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9476 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9477 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9478 | $as_echo "yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9479 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9481 | $as_echo "no" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9482 | |
| 9483 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9484 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9485 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll" >&5 |
| 9486 | $as_echo_n "checking for epoll... " >&6; } |
| 9487 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 9488 | /* end confdefs.h. */ |
| 9489 | #include <sys/epoll.h> |
| 9490 | int |
| 9491 | main () |
| 9492 | { |
| 9493 | void *x=epoll_create |
| 9494 | ; |
| 9495 | return 0; |
| 9496 | } |
| 9497 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9498 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9499 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9500 | $as_echo "#define HAVE_EPOLL 1" >>confdefs.h |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 9501 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9502 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9503 | $as_echo "yes" >&6; } |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 9504 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9506 | $as_echo "no" >&6; } |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 9507 | |
| 9508 | fi |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 9509 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9510 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kqueue" >&5 |
| 9511 | $as_echo_n "checking for kqueue... " >&6; } |
| 9512 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 9513 | /* end confdefs.h. */ |
| 9514 | |
| 9515 | #include <sys/types.h> |
| 9516 | #include <sys/event.h> |
| 9517 | |
| 9518 | int |
| 9519 | main () |
| 9520 | { |
| 9521 | int x=kqueue() |
| 9522 | ; |
| 9523 | return 0; |
| 9524 | } |
| 9525 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9526 | if ac_fn_c_try_compile "$LINENO"; then : |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 9527 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9528 | $as_echo "#define HAVE_KQUEUE 1" >>confdefs.h |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 9529 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9531 | $as_echo "yes" >&6; } |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 9532 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9534 | $as_echo "no" >&6; } |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 9535 | |
| 9536 | fi |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 9537 | 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] | 9538 | # On some systems (eg. FreeBSD 5), we would find a definition of the |
| 9539 | # functions ctermid_r, setgroups in the library, but no prototype |
| 9540 | # (e.g. because we use _XOPEN_SOURCE). See whether we can take their |
| 9541 | # address to avoid compiler warnings and potential miscompilations |
| 9542 | # because of the missing prototypes. |
| 9543 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9544 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctermid_r" >&5 |
| 9545 | $as_echo_n "checking for ctermid_r... " >&6; } |
| 9546 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9547 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 9548 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 9549 | #include <stdio.h> |
| 9550 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 9551 | int |
| 9552 | main () |
| 9553 | { |
| 9554 | void* p = ctermid_r |
| 9555 | ; |
| 9556 | return 0; |
| 9557 | } |
| 9558 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9559 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 9560 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9561 | $as_echo "#define HAVE_CTERMID_R 1" >>confdefs.h |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 9562 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9564 | $as_echo "yes" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 9565 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9566 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9567 | $as_echo "no" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 9568 | |
| 9569 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9570 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9571 | |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 9572 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock declaration" >&5 |
| 9573 | $as_echo_n "checking for flock declaration... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 9574 | if test "${ac_cv_flock_decl+set}" = set; then : |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 9575 | $as_echo_n "(cached) " >&6 |
| 9576 | else |
| 9577 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9578 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9579 | #include <sys/file.h> |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9580 | int |
| 9581 | main () |
| 9582 | { |
| 9583 | void* p = flock |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 9584 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9585 | ; |
| 9586 | return 0; |
| 9587 | } |
| 9588 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9589 | if ac_fn_c_try_compile "$LINENO"; then : |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 9590 | ac_cv_flock_decl=yes |
| 9591 | else |
| 9592 | ac_cv_flock_decl=no |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9593 | |
| 9594 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9595 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 9596 | |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 9597 | fi |
| 9598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flock_decl" >&5 |
| 9599 | $as_echo "$ac_cv_flock_decl" >&6; } |
| 9600 | if test "x${ac_cv_flock_decl}" = xyes; then |
| 9601 | for ac_func in flock |
| 9602 | do : |
| 9603 | ac_fn_c_check_func "$LINENO" "flock" "ac_cv_func_flock" |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 9604 | if test "x$ac_cv_func_flock" = x""yes; then : |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 9605 | cat >>confdefs.h <<_ACEOF |
| 9606 | #define HAVE_FLOCK 1 |
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 9607 | _ACEOF |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 9608 | |
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 9609 | else |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 9610 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock in -lbsd" >&5 |
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 9611 | $as_echo_n "checking for flock in -lbsd... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 9612 | if test "${ac_cv_lib_bsd_flock+set}" = set; then : |
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 9613 | $as_echo_n "(cached) " >&6 |
| 9614 | else |
| 9615 | ac_check_lib_save_LIBS=$LIBS |
| 9616 | LIBS="-lbsd $LIBS" |
| 9617 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9618 | /* end confdefs.h. */ |
| 9619 | |
| 9620 | /* Override any GCC internal prototype to avoid an error. |
| 9621 | Use char because int might match the return type of a GCC |
| 9622 | builtin and then its argument prototype would still apply. */ |
| 9623 | #ifdef __cplusplus |
| 9624 | extern "C" |
| 9625 | #endif |
| 9626 | char flock (); |
| 9627 | int |
| 9628 | main () |
| 9629 | { |
| 9630 | return flock (); |
| 9631 | ; |
| 9632 | return 0; |
| 9633 | } |
| 9634 | _ACEOF |
| 9635 | if ac_fn_c_try_link "$LINENO"; then : |
| 9636 | ac_cv_lib_bsd_flock=yes |
| 9637 | else |
| 9638 | ac_cv_lib_bsd_flock=no |
| 9639 | fi |
| 9640 | rm -f core conftest.err conftest.$ac_objext \ |
| 9641 | conftest$ac_exeext conftest.$ac_ext |
| 9642 | LIBS=$ac_check_lib_save_LIBS |
| 9643 | fi |
| 9644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_flock" >&5 |
| 9645 | $as_echo "$ac_cv_lib_bsd_flock" >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 9646 | if test "x$ac_cv_lib_bsd_flock" = x""yes; then : |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 9647 | $as_echo "#define HAVE_FLOCK 1" >>confdefs.h |
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 9648 | |
| 9649 | |
| 9650 | $as_echo "#define FLOCK_NEEDS_LIBBSD 1" >>confdefs.h |
| 9651 | |
| 9652 | |
| 9653 | fi |
| 9654 | |
| 9655 | |
| 9656 | fi |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 9657 | done |
| 9658 | |
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 9659 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9660 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9661 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize" >&5 |
| 9662 | $as_echo_n "checking for getpagesize... " >&6; } |
| 9663 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9664 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9665 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9666 | #include <unistd.h> |
| 9667 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9668 | int |
| 9669 | main () |
| 9670 | { |
| 9671 | void* p = getpagesize |
| 9672 | ; |
| 9673 | return 0; |
| 9674 | } |
| 9675 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9676 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9677 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9678 | $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9679 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9681 | $as_echo "yes" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9682 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9684 | $as_echo "no" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9685 | |
| 9686 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9687 | 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] | 9688 | |
Antoine Pitrou | 6f26be0 | 2011-05-03 18:18:59 +0200 | [diff] [blame] | 9689 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mallopt can set malloc mmap threshold" >&5 |
| 9690 | $as_echo_n "checking whether mallopt can set malloc mmap threshold... " >&6; } |
| 9691 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9692 | /* end confdefs.h. */ |
| 9693 | |
| 9694 | #include <malloc.h> |
| 9695 | |
| 9696 | int |
| 9697 | main () |
| 9698 | { |
| 9699 | mallopt(M_MMAP_THRESHOLD, 256 * 1024) |
| 9700 | ; |
| 9701 | return 0; |
| 9702 | } |
| 9703 | _ACEOF |
| 9704 | if ac_fn_c_try_compile "$LINENO"; then : |
| 9705 | |
| 9706 | $as_echo "#define HAVE_MALLOPT_MMAP_THRESHOLD 1" >>confdefs.h |
| 9707 | |
| 9708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 9709 | $as_echo "yes" >&6; } |
| 9710 | else |
| 9711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9712 | $as_echo "no" >&6; } |
| 9713 | |
| 9714 | fi |
| 9715 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9716 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9717 | for ac_prog in true |
| 9718 | do |
| 9719 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 9720 | set dummy $ac_prog; ac_word=$2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9721 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9722 | $as_echo_n "checking for $ac_word... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 9723 | if test "${ac_cv_prog_TRUE+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9724 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9725 | else |
| 9726 | if test -n "$TRUE"; then |
| 9727 | ac_cv_prog_TRUE="$TRUE" # Let the user override the test. |
| 9728 | else |
| 9729 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9730 | for as_dir in $PATH |
| 9731 | do |
| 9732 | IFS=$as_save_IFS |
| 9733 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9734 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9735 | 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] | 9736 | ac_cv_prog_TRUE="$ac_prog" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9737 | $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] | 9738 | break 2 |
| 9739 | fi |
| 9740 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9741 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9742 | IFS=$as_save_IFS |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9743 | |
| 9744 | fi |
| 9745 | fi |
| 9746 | TRUE=$ac_cv_prog_TRUE |
| 9747 | if test -n "$TRUE"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUE" >&5 |
| 9749 | $as_echo "$TRUE" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9750 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9752 | $as_echo "no" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9753 | fi |
| 9754 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9755 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9756 | test -n "$TRUE" && break |
| 9757 | done |
| 9758 | test -n "$TRUE" || TRUE="/bin/true" |
| 9759 | |
| 9760 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9761 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lc" >&5 |
| 9762 | $as_echo_n "checking for inet_aton in -lc... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 9763 | if test "${ac_cv_lib_c_inet_aton+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9764 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9765 | else |
| 9766 | ac_check_lib_save_LIBS=$LIBS |
| 9767 | LIBS="-lc $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9768 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9769 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9770 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9771 | /* Override any GCC internal prototype to avoid an error. |
| 9772 | Use char because int might match the return type of a GCC |
| 9773 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9774 | #ifdef __cplusplus |
| 9775 | extern "C" |
| 9776 | #endif |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9777 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9778 | int |
| 9779 | main () |
| 9780 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9781 | return inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9782 | ; |
| 9783 | return 0; |
| 9784 | } |
| 9785 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9786 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9787 | ac_cv_lib_c_inet_aton=yes |
| 9788 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9789 | ac_cv_lib_c_inet_aton=no |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9790 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9791 | rm -f core conftest.err conftest.$ac_objext \ |
| 9792 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9793 | LIBS=$ac_check_lib_save_LIBS |
| 9794 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_inet_aton" >&5 |
| 9796 | $as_echo "$ac_cv_lib_c_inet_aton" >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 9797 | if test "x$ac_cv_lib_c_inet_aton" = x""yes; then : |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9798 | $ac_cv_prog_TRUE |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9799 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9800 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5 |
| 9801 | $as_echo_n "checking for inet_aton in -lresolv... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 9802 | if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9803 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9804 | else |
| 9805 | ac_check_lib_save_LIBS=$LIBS |
| 9806 | LIBS="-lresolv $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9807 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9808 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9809 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9810 | /* Override any GCC internal prototype to avoid an error. |
| 9811 | Use char because int might match the return type of a GCC |
| 9812 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9813 | #ifdef __cplusplus |
| 9814 | extern "C" |
| 9815 | #endif |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9816 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9817 | int |
| 9818 | main () |
| 9819 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9820 | return inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9821 | ; |
| 9822 | return 0; |
| 9823 | } |
| 9824 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9825 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9826 | ac_cv_lib_resolv_inet_aton=yes |
| 9827 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9828 | ac_cv_lib_resolv_inet_aton=no |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9829 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9830 | rm -f core conftest.err conftest.$ac_objext \ |
| 9831 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9832 | LIBS=$ac_check_lib_save_LIBS |
| 9833 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5 |
| 9835 | $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 9836 | if test "x$ac_cv_lib_resolv_inet_aton" = x""yes; then : |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9837 | cat >>confdefs.h <<_ACEOF |
| 9838 | #define HAVE_LIBRESOLV 1 |
| 9839 | _ACEOF |
| 9840 | |
| 9841 | LIBS="-lresolv $LIBS" |
| 9842 | |
| 9843 | fi |
| 9844 | |
| 9845 | |
| 9846 | fi |
| 9847 | |
| 9848 | |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 9849 | # On Tru64, chflags seems to be present, but calling it will |
| 9850 | # exit Python |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9851 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chflags" >&5 |
| 9852 | $as_echo_n "checking for chflags... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 9853 | if test "${ac_cv_have_chflags+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9854 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9855 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9856 | if test "$cross_compiling" = yes; then : |
Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 9857 | ac_cv_have_chflags=cross |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 9858 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9859 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 9860 | /* end confdefs.h. */ |
Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 9861 | [ |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 9862 | #include <sys/stat.h> |
| 9863 | #include <unistd.h> |
| 9864 | int main(int argc, char*argv[]) |
| 9865 | { |
| 9866 | if(chflags(argv[0], 0) != 0) |
| 9867 | return 1; |
| 9868 | return 0; |
| 9869 | } |
Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 9870 | ] |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 9871 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9872 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9873 | ac_cv_have_chflags=yes |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9874 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9875 | ac_cv_have_chflags=no |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9876 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9877 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 9878 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 9879 | fi |
| 9880 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9881 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9882 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_chflags" >&5 |
| 9884 | $as_echo "$ac_cv_have_chflags" >&6; } |
Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 9885 | if test "$ac_cv_have_chflags" = cross ; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9886 | ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags" |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 9887 | if test "x$ac_cv_func_chflags" = x""yes; then : |
Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 9888 | ac_cv_have_chflags="yes" |
| 9889 | else |
| 9890 | ac_cv_have_chflags="no" |
| 9891 | fi |
| 9892 | |
| 9893 | fi |
| 9894 | if test "$ac_cv_have_chflags" = yes ; then |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9895 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9896 | $as_echo "#define HAVE_CHFLAGS 1" >>confdefs.h |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9897 | |
| 9898 | fi |
| 9899 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9900 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lchflags" >&5 |
| 9901 | $as_echo_n "checking for lchflags... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 9902 | if test "${ac_cv_have_lchflags+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9903 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9904 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9905 | if test "$cross_compiling" = yes; then : |
Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 9906 | ac_cv_have_lchflags=cross |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 9907 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9908 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 9909 | /* end confdefs.h. */ |
Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 9910 | [ |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 9911 | #include <sys/stat.h> |
| 9912 | #include <unistd.h> |
| 9913 | int main(int argc, char*argv[]) |
| 9914 | { |
| 9915 | if(lchflags(argv[0], 0) != 0) |
| 9916 | return 1; |
| 9917 | return 0; |
| 9918 | } |
Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 9919 | ] |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 9920 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9921 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9922 | ac_cv_have_lchflags=yes |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9923 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9924 | ac_cv_have_lchflags=no |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 9925 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9926 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 9927 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9928 | fi |
| 9929 | |
| 9930 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9931 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_lchflags" >&5 |
| 9933 | $as_echo "$ac_cv_have_lchflags" >&6; } |
Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 9934 | if test "$ac_cv_have_lchflags" = cross ; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9935 | ac_fn_c_check_func "$LINENO" "lchflags" "ac_cv_func_lchflags" |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 9936 | if test "x$ac_cv_func_lchflags" = x""yes; then : |
Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 9937 | ac_cv_have_lchflags="yes" |
| 9938 | else |
| 9939 | ac_cv_have_lchflags="no" |
| 9940 | fi |
| 9941 | |
| 9942 | fi |
| 9943 | if test "$ac_cv_have_lchflags" = yes ; then |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9944 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9945 | $as_echo "#define HAVE_LCHFLAGS 1" >>confdefs.h |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9946 | |
| 9947 | fi |
| 9948 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 9949 | case $ac_sys_system/$ac_sys_release in |
| 9950 | Darwin/*) |
| 9951 | _CUR_CFLAGS="${CFLAGS}" |
| 9952 | _CUR_LDFLAGS="${LDFLAGS}" |
| 9953 | CFLAGS="${CFLAGS} -Wl,-search_paths_first" |
| 9954 | LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib" |
| 9955 | ;; |
| 9956 | esac |
| 9957 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9958 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5 |
| 9959 | $as_echo_n "checking for inflateCopy in -lz... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 9960 | if test "${ac_cv_lib_z_inflateCopy+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9961 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 9962 | else |
| 9963 | ac_check_lib_save_LIBS=$LIBS |
| 9964 | LIBS="-lz $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9965 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 9966 | /* end confdefs.h. */ |
| 9967 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9968 | /* Override any GCC internal prototype to avoid an error. |
| 9969 | Use char because int might match the return type of a GCC |
| 9970 | builtin and then its argument prototype would still apply. */ |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 9971 | #ifdef __cplusplus |
| 9972 | extern "C" |
| 9973 | #endif |
| 9974 | char inflateCopy (); |
| 9975 | int |
| 9976 | main () |
| 9977 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9978 | return inflateCopy (); |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 9979 | ; |
| 9980 | return 0; |
| 9981 | } |
| 9982 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9983 | if ac_fn_c_try_link "$LINENO"; then : |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 9984 | ac_cv_lib_z_inflateCopy=yes |
| 9985 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9986 | ac_cv_lib_z_inflateCopy=no |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 9987 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9988 | rm -f core conftest.err conftest.$ac_objext \ |
| 9989 | conftest$ac_exeext conftest.$ac_ext |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 9990 | LIBS=$ac_check_lib_save_LIBS |
| 9991 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5 |
| 9993 | $as_echo "$ac_cv_lib_z_inflateCopy" >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 9994 | if test "x$ac_cv_lib_z_inflateCopy" = x""yes; then : |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 9995 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9996 | $as_echo "#define HAVE_ZLIB_COPY 1" >>confdefs.h |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 9997 | |
| 9998 | fi |
| 9999 | |
| 10000 | |
| 10001 | case $ac_sys_system/$ac_sys_release in |
| 10002 | Darwin/*) |
| 10003 | CFLAGS="${_CUR_CFLAGS}" |
| 10004 | LDFLAGS="${_CUR_LDFLAGS}" |
| 10005 | ;; |
| 10006 | esac |
| 10007 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10008 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hstrerror" >&5 |
| 10009 | $as_echo_n "checking for hstrerror... " >&6; } |
| 10010 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10011 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10012 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10013 | #include <netdb.h> |
| 10014 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10015 | int |
| 10016 | main () |
| 10017 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10018 | void* p = hstrerror; hstrerror(0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10019 | ; |
| 10020 | return 0; |
| 10021 | } |
| 10022 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10023 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10024 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10025 | $as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10026 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10028 | $as_echo "yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10029 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10031 | $as_echo "no" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10032 | |
| 10033 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10034 | rm -f core conftest.err conftest.$ac_objext \ |
| 10035 | conftest$ac_exeext conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10036 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10037 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton" >&5 |
| 10038 | $as_echo_n "checking for inet_aton... " >&6; } |
| 10039 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10040 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10041 | |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 10042 | #include <sys/types.h> |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10043 | #include <sys/socket.h> |
| 10044 | #include <netinet/in.h> |
| 10045 | #include <arpa/inet.h> |
| 10046 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10047 | int |
| 10048 | main () |
| 10049 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10050 | void* p = inet_aton;inet_aton(0,0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10051 | ; |
| 10052 | return 0; |
| 10053 | } |
| 10054 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10055 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10056 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10057 | $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10058 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10060 | $as_echo "yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10061 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10063 | $as_echo "no" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10064 | |
| 10065 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10066 | rm -f core conftest.err conftest.$ac_objext \ |
| 10067 | conftest$ac_exeext conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10068 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10069 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_pton" >&5 |
| 10070 | $as_echo_n "checking for inet_pton... " >&6; } |
| 10071 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10072 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10073 | |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 10074 | #include <sys/types.h> |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10075 | #include <sys/socket.h> |
| 10076 | #include <netinet/in.h> |
| 10077 | #include <arpa/inet.h> |
| 10078 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10079 | int |
| 10080 | main () |
| 10081 | { |
| 10082 | void* p = inet_pton |
| 10083 | ; |
| 10084 | return 0; |
| 10085 | } |
| 10086 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10087 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10088 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10089 | $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10090 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10092 | $as_echo "yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10093 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10095 | $as_echo "no" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10096 | |
| 10097 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10098 | 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] | 10099 | |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 10100 | # On some systems, setgroups is in unistd.h, on others, in grp.h |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10101 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setgroups" >&5 |
| 10102 | $as_echo_n "checking for setgroups... " >&6; } |
| 10103 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10104 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10105 | |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 10106 | #include <unistd.h> |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 10107 | #ifdef HAVE_GRP_H |
| 10108 | #include <grp.h> |
| 10109 | #endif |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10110 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10111 | int |
| 10112 | main () |
| 10113 | { |
| 10114 | void* p = setgroups |
| 10115 | ; |
| 10116 | return 0; |
| 10117 | } |
| 10118 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10119 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10120 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10121 | $as_echo "#define HAVE_SETGROUPS 1" >>confdefs.h |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10122 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10124 | $as_echo "yes" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10125 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10127 | $as_echo "no" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10128 | |
| 10129 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10130 | 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] | 10131 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10132 | # check for openpty and forkpty |
| 10133 | |
| 10134 | for ac_func in openpty |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10135 | do : |
| 10136 | ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty" |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 10137 | if test "x$ac_cv_func_openpty" = x""yes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10138 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10139 | #define HAVE_OPENPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10140 | _ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10141 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10142 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10143 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5 |
| 10144 | $as_echo_n "checking for openpty in -lutil... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 10145 | if test "${ac_cv_lib_util_openpty+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10146 | $as_echo_n "(cached) " >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10147 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10148 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10149 | LIBS="-lutil $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10150 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10151 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10152 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10153 | /* Override any GCC internal prototype to avoid an error. |
| 10154 | Use char because int might match the return type of a GCC |
| 10155 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10156 | #ifdef __cplusplus |
| 10157 | extern "C" |
| 10158 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10159 | char openpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10160 | int |
| 10161 | main () |
| 10162 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10163 | return openpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10164 | ; |
| 10165 | return 0; |
| 10166 | } |
| 10167 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10168 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10169 | ac_cv_lib_util_openpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10170 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10171 | ac_cv_lib_util_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10172 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10173 | rm -f core conftest.err conftest.$ac_objext \ |
| 10174 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10175 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10176 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5 |
| 10178 | $as_echo "$ac_cv_lib_util_openpty" >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 10179 | if test "x$ac_cv_lib_util_openpty" = x""yes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10180 | $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10181 | LIBS="$LIBS -lutil" |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10182 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10183 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lbsd" >&5 |
| 10184 | $as_echo_n "checking for openpty in -lbsd... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 10185 | if test "${ac_cv_lib_bsd_openpty+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10186 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10187 | else |
| 10188 | ac_check_lib_save_LIBS=$LIBS |
| 10189 | LIBS="-lbsd $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10190 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10191 | /* end confdefs.h. */ |
| 10192 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10193 | /* Override any GCC internal prototype to avoid an error. |
| 10194 | Use char because int might match the return type of a GCC |
| 10195 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10196 | #ifdef __cplusplus |
| 10197 | extern "C" |
| 10198 | #endif |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10199 | char openpty (); |
| 10200 | int |
| 10201 | main () |
| 10202 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10203 | return openpty (); |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10204 | ; |
| 10205 | return 0; |
| 10206 | } |
| 10207 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10208 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10209 | ac_cv_lib_bsd_openpty=yes |
| 10210 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10211 | ac_cv_lib_bsd_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10212 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10213 | rm -f core conftest.err conftest.$ac_objext \ |
| 10214 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10215 | LIBS=$ac_check_lib_save_LIBS |
| 10216 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10217 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_openpty" >&5 |
| 10218 | $as_echo "$ac_cv_lib_bsd_openpty" >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 10219 | if test "x$ac_cv_lib_bsd_openpty" = x""yes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10220 | $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10221 | LIBS="$LIBS -lbsd" |
| 10222 | fi |
| 10223 | |
| 10224 | |
| 10225 | fi |
| 10226 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10227 | |
| 10228 | fi |
| 10229 | done |
| 10230 | |
| 10231 | for ac_func in forkpty |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10232 | do : |
| 10233 | ac_fn_c_check_func "$LINENO" "forkpty" "ac_cv_func_forkpty" |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 10234 | if test "x$ac_cv_func_forkpty" = x""yes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10235 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10236 | #define HAVE_FORKPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10237 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10238 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10239 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10240 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lutil" >&5 |
| 10241 | $as_echo_n "checking for forkpty in -lutil... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 10242 | if test "${ac_cv_lib_util_forkpty+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10243 | $as_echo_n "(cached) " >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10244 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10245 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10246 | LIBS="-lutil $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10247 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10248 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10249 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10250 | /* Override any GCC internal prototype to avoid an error. |
| 10251 | Use char because int might match the return type of a GCC |
| 10252 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10253 | #ifdef __cplusplus |
| 10254 | extern "C" |
| 10255 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10256 | char forkpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10257 | int |
| 10258 | main () |
| 10259 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10260 | return forkpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10261 | ; |
| 10262 | return 0; |
| 10263 | } |
| 10264 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10265 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10266 | ac_cv_lib_util_forkpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10267 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10268 | ac_cv_lib_util_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10269 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10270 | rm -f core conftest.err conftest.$ac_objext \ |
| 10271 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10272 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10273 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_forkpty" >&5 |
| 10275 | $as_echo "$ac_cv_lib_util_forkpty" >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 10276 | if test "x$ac_cv_lib_util_forkpty" = x""yes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10277 | $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10278 | LIBS="$LIBS -lutil" |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10279 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10280 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lbsd" >&5 |
| 10281 | $as_echo_n "checking for forkpty in -lbsd... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 10282 | if test "${ac_cv_lib_bsd_forkpty+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10283 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10284 | else |
| 10285 | ac_check_lib_save_LIBS=$LIBS |
| 10286 | LIBS="-lbsd $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10287 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10288 | /* end confdefs.h. */ |
| 10289 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10290 | /* Override any GCC internal prototype to avoid an error. |
| 10291 | Use char because int might match the return type of a GCC |
| 10292 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10293 | #ifdef __cplusplus |
| 10294 | extern "C" |
| 10295 | #endif |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10296 | char forkpty (); |
| 10297 | int |
| 10298 | main () |
| 10299 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10300 | return forkpty (); |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10301 | ; |
| 10302 | return 0; |
| 10303 | } |
| 10304 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10305 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10306 | ac_cv_lib_bsd_forkpty=yes |
| 10307 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10308 | ac_cv_lib_bsd_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10309 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10310 | rm -f core conftest.err conftest.$ac_objext \ |
| 10311 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10312 | LIBS=$ac_check_lib_save_LIBS |
| 10313 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_forkpty" >&5 |
| 10315 | $as_echo "$ac_cv_lib_bsd_forkpty" >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 10316 | if test "x$ac_cv_lib_bsd_forkpty" = x""yes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10317 | $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10318 | LIBS="$LIBS -lbsd" |
| 10319 | fi |
| 10320 | |
| 10321 | |
| 10322 | fi |
| 10323 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10324 | |
| 10325 | fi |
| 10326 | done |
| 10327 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 10328 | |
Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 10329 | # Stuff for expat. |
Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 10330 | for ac_func in memmove |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10331 | do : |
| 10332 | ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove" |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 10333 | if test "x$ac_cv_func_memmove" = x""yes; then : |
Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 10334 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10335 | #define HAVE_MEMMOVE 1 |
Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 10336 | _ACEOF |
| 10337 | |
| 10338 | fi |
| 10339 | done |
| 10340 | |
| 10341 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10342 | # check for long file support functions |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10343 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10344 | do : |
| 10345 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 10346 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 10347 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10348 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10349 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10350 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10351 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10352 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10353 | done |
| 10354 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10355 | |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 10356 | ac_fn_c_check_func "$LINENO" "dup2" "ac_cv_func_dup2" |
| 10357 | if test "x$ac_cv_func_dup2" = x""yes; then : |
| 10358 | $as_echo "#define HAVE_DUP2 1" >>confdefs.h |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 10359 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 10360 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10361 | case " $LIBOBJS " in |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 10362 | *" dup2.$ac_objext "* ) ;; |
| 10363 | *) LIBOBJS="$LIBOBJS dup2.$ac_objext" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10364 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10365 | esac |
| 10366 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 10367 | fi |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 10368 | |
| 10369 | ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd" |
| 10370 | if test "x$ac_cv_func_getcwd" = x""yes; then : |
| 10371 | $as_echo "#define HAVE_GETCWD 1" >>confdefs.h |
| 10372 | |
| 10373 | else |
| 10374 | case " $LIBOBJS " in |
| 10375 | *" getcwd.$ac_objext "* ) ;; |
| 10376 | *) LIBOBJS="$LIBOBJS getcwd.$ac_objext" |
| 10377 | ;; |
| 10378 | esac |
| 10379 | |
| 10380 | fi |
| 10381 | |
| 10382 | ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup" |
| 10383 | if test "x$ac_cv_func_strdup" = x""yes; then : |
| 10384 | $as_echo "#define HAVE_STRDUP 1" >>confdefs.h |
| 10385 | |
| 10386 | else |
| 10387 | case " $LIBOBJS " in |
| 10388 | *" strdup.$ac_objext "* ) ;; |
| 10389 | *) LIBOBJS="$LIBOBJS strdup.$ac_objext" |
| 10390 | ;; |
| 10391 | esac |
| 10392 | |
| 10393 | fi |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 10394 | |
| 10395 | |
| 10396 | for ac_func in getpgrp |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10397 | do : |
| 10398 | ac_fn_c_check_func "$LINENO" "getpgrp" "ac_cv_func_getpgrp" |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 10399 | if test "x$ac_cv_func_getpgrp" = x""yes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10400 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10401 | #define HAVE_GETPGRP 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10402 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10403 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10404 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10405 | #include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10406 | int |
| 10407 | main () |
| 10408 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10409 | getpgrp(0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10410 | ; |
| 10411 | return 0; |
| 10412 | } |
| 10413 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10414 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10415 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10416 | $as_echo "#define GETPGRP_HAVE_ARG 1" >>confdefs.h |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10417 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10418 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10419 | 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] | 10420 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10421 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 10422 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10423 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 10424 | for ac_func in setpgrp |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10425 | do : |
| 10426 | ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp" |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 10427 | if test "x$ac_cv_func_setpgrp" = x""yes; then : |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 10428 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10429 | #define HAVE_SETPGRP 1 |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 10430 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10431 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10432 | /* end confdefs.h. */ |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 10433 | #include <unistd.h> |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 10434 | int |
| 10435 | main () |
| 10436 | { |
| 10437 | setpgrp(0,0); |
| 10438 | ; |
| 10439 | return 0; |
| 10440 | } |
| 10441 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10442 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10443 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10444 | $as_echo "#define SETPGRP_HAVE_ARG 1" >>confdefs.h |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10445 | |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 10446 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10447 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 10448 | |
| 10449 | fi |
| 10450 | done |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 10451 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 10452 | for ac_func in gettimeofday |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10453 | do : |
| 10454 | ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 10455 | if test "x$ac_cv_func_gettimeofday" = x""yes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10456 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10457 | #define HAVE_GETTIMEOFDAY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10458 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10459 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10460 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10461 | #include <sys/time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10462 | int |
| 10463 | main () |
| 10464 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10465 | gettimeofday((struct timeval*)0,(struct timezone*)0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10466 | ; |
| 10467 | return 0; |
| 10468 | } |
| 10469 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10470 | if ac_fn_c_try_compile "$LINENO"; then : |
| 10471 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10472 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10473 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10474 | $as_echo "#define GETTIMEOFDAY_NO_TZ 1" >>confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10475 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10476 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10477 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10478 | 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] | 10479 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10480 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 10481 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10482 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10483 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10484 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for major" >&5 |
| 10485 | $as_echo_n "checking for major... " >&6; } |
| 10486 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10487 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 10488 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 10489 | #if defined(MAJOR_IN_MKDEV) |
| 10490 | #include <sys/mkdev.h> |
| 10491 | #elif defined(MAJOR_IN_SYSMACROS) |
| 10492 | #include <sys/sysmacros.h> |
| 10493 | #else |
| 10494 | #include <sys/types.h> |
| 10495 | #endif |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 10496 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 10497 | int |
| 10498 | main () |
| 10499 | { |
| 10500 | |
| 10501 | makedev(major(0),minor(0)); |
| 10502 | |
| 10503 | ; |
| 10504 | return 0; |
| 10505 | } |
| 10506 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10507 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 10508 | |
| 10509 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10510 | $as_echo "#define HAVE_DEVICE_MACROS 1" >>confdefs.h |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 10511 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 10513 | $as_echo "yes" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 10514 | |
| 10515 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10516 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10518 | $as_echo "no" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 10519 | |
| 10520 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10521 | rm -f core conftest.err conftest.$ac_objext \ |
| 10522 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10523 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 10524 | # 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] | 10525 | # for [no]getaddrinfo in netdb.h. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10526 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5 |
| 10527 | $as_echo_n "checking for getaddrinfo... " >&6; } |
| 10528 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10529 | /* end confdefs.h. */ |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 10530 | |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 10531 | #include <sys/types.h> |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 10532 | #include <sys/socket.h> |
| 10533 | #include <netdb.h> |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 10534 | #include <stdio.h> |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10535 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10536 | int |
| 10537 | main () |
| 10538 | { |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 10539 | getaddrinfo(NULL, NULL, NULL, NULL); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10540 | ; |
| 10541 | return 0; |
| 10542 | } |
| 10543 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10544 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10545 | have_getaddrinfo=yes |
| 10546 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10547 | have_getaddrinfo=no |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10548 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10549 | rm -f core conftest.err conftest.$ac_objext \ |
| 10550 | conftest$ac_exeext conftest.$ac_ext |
| 10551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getaddrinfo" >&5 |
| 10552 | $as_echo "$have_getaddrinfo" >&6; } |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10553 | if test $have_getaddrinfo = yes |
| 10554 | then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10555 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking getaddrinfo bug" >&5 |
| 10556 | $as_echo_n "checking getaddrinfo bug... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 10557 | if test "${ac_cv_buggy_getaddrinfo+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10558 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10559 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10560 | if test "$cross_compiling" = yes; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10561 | ac_cv_buggy_getaddrinfo=yes |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10562 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10563 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10564 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10565 | |
| 10566 | #include <sys/types.h> |
| 10567 | #include <netdb.h> |
| 10568 | #include <string.h> |
| 10569 | #include <sys/socket.h> |
| 10570 | #include <netinet/in.h> |
| 10571 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10572 | int main() |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10573 | { |
| 10574 | int passive, gaierr, inet4 = 0, inet6 = 0; |
| 10575 | struct addrinfo hints, *ai, *aitop; |
| 10576 | char straddr[INET6_ADDRSTRLEN], strport[16]; |
| 10577 | |
| 10578 | for (passive = 0; passive <= 1; passive++) { |
| 10579 | memset(&hints, 0, sizeof(hints)); |
| 10580 | hints.ai_family = AF_UNSPEC; |
| 10581 | hints.ai_flags = passive ? AI_PASSIVE : 0; |
| 10582 | hints.ai_socktype = SOCK_STREAM; |
Hye-Shik Chang | 54f9439 | 2004-04-14 07:55:31 +0000 | [diff] [blame] | 10583 | hints.ai_protocol = IPPROTO_TCP; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10584 | if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { |
| 10585 | (void)gai_strerror(gaierr); |
| 10586 | goto bad; |
| 10587 | } |
| 10588 | for (ai = aitop; ai; ai = ai->ai_next) { |
| 10589 | if (ai->ai_addr == NULL || |
| 10590 | ai->ai_addrlen == 0 || |
| 10591 | getnameinfo(ai->ai_addr, ai->ai_addrlen, |
| 10592 | straddr, sizeof(straddr), strport, sizeof(strport), |
| 10593 | NI_NUMERICHOST|NI_NUMERICSERV) != 0) { |
| 10594 | goto bad; |
| 10595 | } |
| 10596 | switch (ai->ai_family) { |
| 10597 | case AF_INET: |
| 10598 | if (strcmp(strport, "54321") != 0) { |
| 10599 | goto bad; |
| 10600 | } |
| 10601 | if (passive) { |
| 10602 | if (strcmp(straddr, "0.0.0.0") != 0) { |
| 10603 | goto bad; |
| 10604 | } |
| 10605 | } else { |
| 10606 | if (strcmp(straddr, "127.0.0.1") != 0) { |
| 10607 | goto bad; |
| 10608 | } |
| 10609 | } |
| 10610 | inet4++; |
| 10611 | break; |
| 10612 | case AF_INET6: |
| 10613 | if (strcmp(strport, "54321") != 0) { |
| 10614 | goto bad; |
| 10615 | } |
| 10616 | if (passive) { |
| 10617 | if (strcmp(straddr, "::") != 0) { |
| 10618 | goto bad; |
| 10619 | } |
| 10620 | } else { |
| 10621 | if (strcmp(straddr, "::1") != 0) { |
| 10622 | goto bad; |
| 10623 | } |
| 10624 | } |
| 10625 | inet6++; |
| 10626 | break; |
| 10627 | case AF_UNSPEC: |
| 10628 | goto bad; |
| 10629 | break; |
| 10630 | default: |
| 10631 | /* another family support? */ |
| 10632 | break; |
| 10633 | } |
| 10634 | } |
| 10635 | } |
| 10636 | |
| 10637 | if (!(inet4 == 0 || inet4 == 2)) |
| 10638 | goto bad; |
| 10639 | if (!(inet6 == 0 || inet6 == 2)) |
| 10640 | goto bad; |
| 10641 | |
| 10642 | if (aitop) |
| 10643 | freeaddrinfo(aitop); |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10644 | return 0; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10645 | |
| 10646 | bad: |
| 10647 | if (aitop) |
| 10648 | freeaddrinfo(aitop); |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10649 | return 1; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10650 | } |
| 10651 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10652 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10653 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10654 | ac_cv_buggy_getaddrinfo=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10655 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10656 | ac_cv_buggy_getaddrinfo=yes |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10657 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10658 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 10659 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10660 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10661 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10662 | fi |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10663 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 10664 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10665 | |
Benjamin Peterson | d4694ed | 2010-11-01 01:44:30 +0000 | [diff] [blame] | 10666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_buggy_getaddrinfo" >&5 |
| 10667 | $as_echo "$ac_cv_buggy_getaddrinfo" >&6; } |
| 10668 | |
Mark Dickinson | 2df5d28 | 2009-12-31 21:22:50 +0000 | [diff] [blame] | 10669 | if test $have_getaddrinfo = no -o "$ac_cv_buggy_getaddrinfo" = yes |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10670 | then |
| 10671 | if test $ipv6 = yes |
| 10672 | then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10673 | echo 'Fatal: You must get working getaddrinfo() function.' |
| 10674 | echo ' or you can specify "--disable-ipv6"'. |
| 10675 | exit 1 |
| 10676 | fi |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 10677 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10678 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10679 | $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 10680 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10681 | fi |
Benjamin Peterson | d4694ed | 2010-11-01 01:44:30 +0000 | [diff] [blame] | 10682 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 10683 | for ac_func in getnameinfo |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10684 | do : |
| 10685 | ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo" |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 10686 | if test "x$ac_cv_func_getnameinfo" = x""yes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10687 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10688 | #define HAVE_GETNAMEINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10689 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10690 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10691 | fi |
| 10692 | done |
| 10693 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10694 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10695 | # checks for structures |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10696 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 |
| 10697 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 10698 | if test "${ac_cv_header_time+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10699 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10700 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10701 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10702 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10703 | #include <sys/types.h> |
| 10704 | #include <sys/time.h> |
| 10705 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10706 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10707 | int |
| 10708 | main () |
| 10709 | { |
| 10710 | if ((struct tm *) 0) |
| 10711 | return 0; |
| 10712 | ; |
| 10713 | return 0; |
| 10714 | } |
| 10715 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10716 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10717 | ac_cv_header_time=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10718 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10719 | ac_cv_header_time=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10720 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10721 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10722 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 |
| 10724 | $as_echo "$ac_cv_header_time" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10725 | if test $ac_cv_header_time = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10726 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10727 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10728 | |
| 10729 | fi |
| 10730 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10731 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 10732 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 10733 | if test "${ac_cv_struct_tm+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10734 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10735 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10736 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10737 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10738 | #include <sys/types.h> |
| 10739 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10740 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10741 | int |
| 10742 | main () |
| 10743 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10744 | struct tm tm; |
| 10745 | int *p = &tm.tm_sec; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10746 | return !p; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10747 | ; |
| 10748 | return 0; |
| 10749 | } |
| 10750 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10751 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10752 | ac_cv_struct_tm=time.h |
| 10753 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10754 | ac_cv_struct_tm=sys/time.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10755 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10756 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10757 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 |
| 10759 | $as_echo "$ac_cv_struct_tm" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10760 | if test $ac_cv_struct_tm = sys/time.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10761 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10762 | $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10763 | |
| 10764 | fi |
| 10765 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10766 | 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] | 10767 | #include <$ac_cv_struct_tm> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10768 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10769 | " |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 10770 | if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10771 | |
| 10772 | cat >>confdefs.h <<_ACEOF |
| 10773 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 10774 | _ACEOF |
| 10775 | |
| 10776 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10777 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10778 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10779 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 10780 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10781 | $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10782 | |
| 10783 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10784 | ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> |
| 10785 | " |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 10786 | if test "x$ac_cv_have_decl_tzname" = x""yes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10787 | ac_have_decl=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10788 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10789 | ac_have_decl=0 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10790 | fi |
| 10791 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10792 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10793 | #define HAVE_DECL_TZNAME $ac_have_decl |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10794 | _ACEOF |
| 10795 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10796 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 |
| 10797 | $as_echo_n "checking for tzname... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 10798 | if test "${ac_cv_var_tzname+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10799 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10800 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10801 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10802 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10803 | #include <time.h> |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10804 | #if !HAVE_DECL_TZNAME |
| 10805 | extern char *tzname[]; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10806 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10807 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10808 | int |
| 10809 | main () |
| 10810 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10811 | return tzname[0][0]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10812 | ; |
| 10813 | return 0; |
| 10814 | } |
| 10815 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10816 | if ac_fn_c_try_link "$LINENO"; then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10817 | ac_cv_var_tzname=yes |
| 10818 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10819 | ac_cv_var_tzname=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10820 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10821 | rm -f core conftest.err conftest.$ac_objext \ |
| 10822 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10823 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 |
| 10825 | $as_echo "$ac_cv_var_tzname" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10826 | if test $ac_cv_var_tzname = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10827 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10828 | $as_echo "#define HAVE_TZNAME 1" >>confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10829 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10830 | fi |
| 10831 | fi |
| 10832 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10833 | ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 10834 | if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10835 | |
| 10836 | cat >>confdefs.h <<_ACEOF |
| 10837 | #define HAVE_STRUCT_STAT_ST_RDEV 1 |
| 10838 | _ACEOF |
| 10839 | |
| 10840 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 10841 | fi |
| 10842 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10843 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default" |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 10844 | if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then : |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 10845 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10846 | cat >>confdefs.h <<_ACEOF |
| 10847 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 |
| 10848 | _ACEOF |
| 10849 | |
| 10850 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 10851 | fi |
| 10852 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10853 | ac_fn_c_check_member "$LINENO" "struct stat" "st_flags" "ac_cv_member_struct_stat_st_flags" "$ac_includes_default" |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 10854 | if test "x$ac_cv_member_struct_stat_st_flags" = x""yes; then : |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 10855 | |
| 10856 | cat >>confdefs.h <<_ACEOF |
| 10857 | #define HAVE_STRUCT_STAT_ST_FLAGS 1 |
| 10858 | _ACEOF |
| 10859 | |
| 10860 | |
| 10861 | fi |
| 10862 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10863 | ac_fn_c_check_member "$LINENO" "struct stat" "st_gen" "ac_cv_member_struct_stat_st_gen" "$ac_includes_default" |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 10864 | if test "x$ac_cv_member_struct_stat_st_gen" = x""yes; then : |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 10865 | |
| 10866 | cat >>confdefs.h <<_ACEOF |
| 10867 | #define HAVE_STRUCT_STAT_ST_GEN 1 |
| 10868 | _ACEOF |
| 10869 | |
| 10870 | |
| 10871 | fi |
| 10872 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10873 | ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "$ac_includes_default" |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 10874 | if test "x$ac_cv_member_struct_stat_st_birthtime" = x""yes; then : |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 10875 | |
| 10876 | cat >>confdefs.h <<_ACEOF |
| 10877 | #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1 |
| 10878 | _ACEOF |
| 10879 | |
| 10880 | |
| 10881 | fi |
| 10882 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10883 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default" |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 10884 | if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then : |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 10885 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10886 | cat >>confdefs.h <<_ACEOF |
| 10887 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 |
| 10888 | _ACEOF |
| 10889 | |
| 10890 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10891 | $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 10892 | |
| 10893 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10894 | case " $LIBOBJS " in |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10895 | *" fileblocks.$ac_objext "* ) ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10896 | *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" |
| 10897 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10898 | esac |
| 10899 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 10900 | fi |
| 10901 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10902 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10903 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10904 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for time.h that defines altzone" >&5 |
| 10905 | $as_echo_n "checking for time.h that defines altzone... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 10906 | if test "${ac_cv_header_time_altzone+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10907 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10908 | else |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10909 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10910 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10911 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 10912 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10913 | int |
| 10914 | main () |
| 10915 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10916 | return altzone; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10917 | ; |
| 10918 | return 0; |
| 10919 | } |
| 10920 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10921 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10922 | ac_cv_header_time_altzone=yes |
| 10923 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10924 | ac_cv_header_time_altzone=no |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 10925 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10926 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10927 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10928 | fi |
| 10929 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time_altzone" >&5 |
| 10931 | $as_echo "$ac_cv_header_time_altzone" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10932 | if test $ac_cv_header_time_altzone = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10933 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10934 | $as_echo "#define HAVE_ALTZONE 1" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10935 | |
| 10936 | fi |
| 10937 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 10938 | was_it_defined=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10939 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be included" >&5 |
| 10940 | $as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; } |
| 10941 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10942 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 10943 | |
| 10944 | #include <sys/types.h> |
| 10945 | #include <sys/select.h> |
| 10946 | #include <sys/time.h> |
| 10947 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10948 | int |
| 10949 | main () |
| 10950 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10951 | ; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10952 | ; |
| 10953 | return 0; |
| 10954 | } |
| 10955 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10956 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10957 | |
| 10958 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10959 | $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] | 10960 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 10961 | was_it_defined=yes |
| 10962 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10963 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10964 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5 |
| 10966 | $as_echo "$was_it_defined" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10967 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10968 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for addrinfo" >&5 |
| 10969 | $as_echo_n "checking for addrinfo... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 10970 | if test "${ac_cv_struct_addrinfo+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10971 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10972 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10973 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10974 | /* end confdefs.h. */ |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10975 | #include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10976 | int |
| 10977 | main () |
| 10978 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10979 | struct addrinfo a |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10980 | ; |
| 10981 | return 0; |
| 10982 | } |
| 10983 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10984 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10985 | ac_cv_struct_addrinfo=yes |
| 10986 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10987 | ac_cv_struct_addrinfo=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10988 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10989 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10990 | fi |
| 10991 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_addrinfo" >&5 |
| 10993 | $as_echo "$ac_cv_struct_addrinfo" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10994 | if test $ac_cv_struct_addrinfo = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10995 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10996 | $as_echo "#define HAVE_ADDRINFO 1" >>confdefs.h |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10997 | |
| 10998 | fi |
| 10999 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11000 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage" >&5 |
| 11001 | $as_echo_n "checking for sockaddr_storage... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 11002 | if test "${ac_cv_struct_sockaddr_storage+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11003 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11004 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11005 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11006 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11007 | |
| 11008 | # include <sys/types.h> |
| 11009 | # include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11010 | int |
| 11011 | main () |
| 11012 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11013 | struct sockaddr_storage s |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11014 | ; |
| 11015 | return 0; |
| 11016 | } |
| 11017 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11018 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11019 | ac_cv_struct_sockaddr_storage=yes |
| 11020 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11021 | ac_cv_struct_sockaddr_storage=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11022 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11023 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11024 | fi |
| 11025 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_storage" >&5 |
| 11027 | $as_echo "$ac_cv_struct_sockaddr_storage" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11028 | if test $ac_cv_struct_sockaddr_storage = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11029 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11030 | $as_echo "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11031 | |
| 11032 | fi |
| 11033 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11034 | # checks for compiler characteristics |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11035 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11036 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5 |
| 11037 | $as_echo_n "checking whether char is unsigned... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 11038 | if test "${ac_cv_c_char_unsigned+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11039 | $as_echo_n "(cached) " >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 11040 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11041 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11042 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11043 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11044 | int |
| 11045 | main () |
| 11046 | { |
| 11047 | static int test_array [1 - 2 * !(((char) -1) < 0)]; |
| 11048 | test_array [0] = 0 |
| 11049 | |
| 11050 | ; |
| 11051 | return 0; |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11052 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11053 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11054 | if ac_fn_c_try_compile "$LINENO"; then : |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11055 | ac_cv_c_char_unsigned=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11056 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11057 | ac_cv_c_char_unsigned=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11058 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11059 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11060 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5 |
| 11062 | $as_echo "$ac_cv_c_char_unsigned" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11063 | if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11064 | $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11065 | |
| 11066 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11067 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11068 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
| 11069 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 11070 | if test "${ac_cv_c_const+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11071 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11072 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11073 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11074 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11075 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11076 | int |
| 11077 | main () |
| 11078 | { |
| 11079 | /* FIXME: Include the comments suggested by Paul. */ |
| 11080 | #ifndef __cplusplus |
| 11081 | /* Ultrix mips cc rejects this. */ |
| 11082 | typedef int charset[2]; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11083 | const charset cs; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11084 | /* SunOS 4.1.1 cc rejects this. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11085 | char const *const *pcpcc; |
| 11086 | char **ppc; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11087 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 11088 | struct point {int x, y;}; |
| 11089 | static struct point const zero = {0,0}; |
| 11090 | /* AIX XL C 1.02.0.0 rejects this. |
| 11091 | It does not let you subtract one const X* pointer from another in |
| 11092 | an arm of an if-expression whose if-part is not a constant |
| 11093 | expression */ |
| 11094 | const char *g = "string"; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11095 | pcpcc = &g + (g ? g-g : 0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11096 | /* HPUX 7.0 cc rejects these. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11097 | ++pcpcc; |
| 11098 | ppc = (char**) pcpcc; |
| 11099 | pcpcc = (char const *const *) ppc; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11100 | { /* SCO 3.2v4 cc rejects this. */ |
| 11101 | char *t; |
| 11102 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11103 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11104 | *t++ = 0; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11105 | if (s) return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11106 | } |
| 11107 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 11108 | int x[] = {25, 17}; |
| 11109 | const int *foo = &x[0]; |
| 11110 | ++foo; |
| 11111 | } |
| 11112 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 11113 | typedef const int *iptr; |
| 11114 | iptr p = 0; |
| 11115 | ++p; |
| 11116 | } |
| 11117 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 11118 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 11119 | struct s { int j; const int *ap[3]; }; |
| 11120 | struct s *b; b->j = 5; |
| 11121 | } |
| 11122 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 11123 | const int foo = 10; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11124 | if (!foo) return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11125 | } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11126 | return !cs[0] && !zero.x; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11127 | #endif |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11128 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11129 | ; |
| 11130 | return 0; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11131 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11132 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11133 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11134 | ac_cv_c_const=yes |
| 11135 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11136 | ac_cv_c_const=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11137 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11138 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11139 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
| 11141 | $as_echo "$ac_cv_c_const" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11142 | if test $ac_cv_c_const = no; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11143 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11144 | $as_echo "#define const /**/" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11145 | |
| 11146 | fi |
| 11147 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11148 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11149 | works=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11150 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 |
| 11151 | $as_echo_n "checking for working volatile... " >&6; } |
| 11152 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11153 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11154 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11155 | int |
| 11156 | main () |
| 11157 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11158 | volatile int x; x = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11159 | ; |
| 11160 | return 0; |
| 11161 | } |
| 11162 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11163 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11164 | works=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11165 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11166 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11167 | $as_echo "#define volatile /**/" >>confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11168 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 11169 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11170 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11171 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 |
| 11173 | $as_echo "$works" >&6; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11174 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11175 | works=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11176 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working signed char" >&5 |
| 11177 | $as_echo_n "checking for working signed char... " >&6; } |
| 11178 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11179 | /* end confdefs.h. */ |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 11180 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11181 | int |
| 11182 | main () |
| 11183 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11184 | signed char c; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11185 | ; |
| 11186 | return 0; |
| 11187 | } |
| 11188 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11189 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11190 | works=yes |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 11191 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11192 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11193 | $as_echo "#define signed /**/" >>confdefs.h |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11194 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 11195 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11196 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11197 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 |
| 11199 | $as_echo "$works" >&6; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11200 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11201 | have_prototypes=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11202 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prototypes" >&5 |
| 11203 | $as_echo_n "checking for prototypes... " >&6; } |
| 11204 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11205 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11206 | int foo(int x) { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11207 | int |
| 11208 | main () |
| 11209 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11210 | return foo(10); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11211 | ; |
| 11212 | return 0; |
| 11213 | } |
| 11214 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11215 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11216 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11217 | $as_echo "#define HAVE_PROTOTYPES 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11218 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11219 | have_prototypes=yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11220 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11221 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_prototypes" >&5 |
| 11223 | $as_echo "$have_prototypes" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11224 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11225 | works=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11226 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for variable length prototypes and stdarg.h" >&5 |
| 11227 | $as_echo_n "checking for variable length prototypes and stdarg.h... " >&6; } |
| 11228 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11229 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11230 | |
| 11231 | #include <stdarg.h> |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 11232 | int foo(int x, ...) { |
| 11233 | va_list va; |
| 11234 | va_start(va, x); |
| 11235 | va_arg(va, int); |
| 11236 | va_arg(va, char *); |
| 11237 | va_arg(va, double); |
| 11238 | return 0; |
| 11239 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11240 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11241 | int |
| 11242 | main () |
| 11243 | { |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 11244 | return foo(10, "", 3.14); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11245 | ; |
| 11246 | return 0; |
| 11247 | } |
| 11248 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11249 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11250 | |
| 11251 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11252 | $as_echo "#define HAVE_STDARG_PROTOTYPES 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11253 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 11254 | works=yes |
| 11255 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11256 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11257 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 |
| 11259 | $as_echo "$works" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11260 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 11261 | # check for socketpair |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11262 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socketpair" >&5 |
| 11263 | $as_echo_n "checking for socketpair... " >&6; } |
| 11264 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 11265 | /* end confdefs.h. */ |
| 11266 | |
| 11267 | #include <sys/types.h> |
| 11268 | #include <sys/socket.h> |
| 11269 | |
| 11270 | int |
| 11271 | main () |
| 11272 | { |
| 11273 | void *x=socketpair |
| 11274 | ; |
| 11275 | return 0; |
| 11276 | } |
| 11277 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11278 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 11279 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11280 | $as_echo "#define HAVE_SOCKETPAIR 1" >>confdefs.h |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 11281 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11283 | $as_echo "yes" >&6; } |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 11284 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11286 | $as_echo "no" >&6; } |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 11287 | |
| 11288 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11289 | 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] | 11290 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11291 | # check if sockaddr has sa_len member |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11292 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr has sa_len member" >&5 |
| 11293 | $as_echo_n "checking if sockaddr has sa_len member... " >&6; } |
| 11294 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11295 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11296 | #include <sys/types.h> |
| 11297 | #include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11298 | int |
| 11299 | main () |
| 11300 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11301 | struct sockaddr x; |
| 11302 | x.sa_len = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11303 | ; |
| 11304 | return 0; |
| 11305 | } |
| 11306 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11307 | if ac_fn_c_try_compile "$LINENO"; then : |
| 11308 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11309 | $as_echo "yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11310 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11311 | $as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11312 | |
| 11313 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11315 | $as_echo "no" >&6; } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11316 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11317 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11318 | 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] | 11319 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11320 | va_list_is_array=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11321 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether va_list is an array" >&5 |
| 11322 | $as_echo_n "checking whether va_list is an array... " >&6; } |
| 11323 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11324 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11325 | |
| 11326 | #ifdef HAVE_STDARG_PROTOTYPES |
| 11327 | #include <stdarg.h> |
| 11328 | #else |
| 11329 | #include <varargs.h> |
| 11330 | #endif |
| 11331 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11332 | int |
| 11333 | main () |
| 11334 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11335 | va_list list1, list2; list1 = list2; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11336 | ; |
| 11337 | return 0; |
| 11338 | } |
| 11339 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11340 | if ac_fn_c_try_compile "$LINENO"; then : |
| 11341 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11342 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11343 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11344 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11345 | $as_echo "#define VA_LIST_IS_ARRAY 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11346 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11347 | va_list_is_array=yes |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 11348 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11349 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11350 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $va_list_is_array" >&5 |
| 11352 | $as_echo "$va_list_is_array" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11353 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11354 | # 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] | 11355 | |
| 11356 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11357 | ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r" |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 11358 | if test "x$ac_cv_func_gethostbyname_r" = x""yes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11359 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11360 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 11361 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11362 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 6 args" >&5 |
| 11363 | $as_echo_n "checking gethostbyname_r with 6 args... " >&6; } |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11364 | OLD_CFLAGS=$CFLAGS |
| 11365 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11366 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11367 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11368 | |
| 11369 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11370 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11371 | int |
| 11372 | main () |
| 11373 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11374 | |
| 11375 | char *name; |
| 11376 | struct hostent *he, *res; |
| 11377 | char buffer[2048]; |
| 11378 | int buflen = 2048; |
| 11379 | int h_errnop; |
| 11380 | |
| 11381 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11382 | |
| 11383 | ; |
| 11384 | return 0; |
| 11385 | } |
| 11386 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11387 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11388 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11389 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 11390 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11391 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11392 | $as_echo "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11393 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11395 | $as_echo "yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11396 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11397 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11398 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11400 | $as_echo "no" >&6; } |
| 11401 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 5 args" >&5 |
| 11402 | $as_echo_n "checking gethostbyname_r with 5 args... " >&6; } |
| 11403 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11404 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11405 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11406 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11407 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11408 | int |
| 11409 | main () |
| 11410 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11411 | |
| 11412 | char *name; |
| 11413 | struct hostent *he; |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11414 | char buffer[2048]; |
| 11415 | int buflen = 2048; |
| 11416 | int h_errnop; |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11417 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11418 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11419 | |
| 11420 | ; |
| 11421 | return 0; |
| 11422 | } |
| 11423 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11424 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11425 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11426 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 11427 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11428 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11429 | $as_echo "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11430 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11432 | $as_echo "yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11433 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11434 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11435 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11436 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11437 | $as_echo "no" >&6; } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11438 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 3 args" >&5 |
| 11439 | $as_echo_n "checking gethostbyname_r with 3 args... " >&6; } |
| 11440 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11441 | /* end confdefs.h. */ |
| 11442 | |
| 11443 | # include <netdb.h> |
| 11444 | |
| 11445 | int |
| 11446 | main () |
| 11447 | { |
| 11448 | |
| 11449 | char *name; |
| 11450 | struct hostent *he; |
| 11451 | struct hostent_data data; |
| 11452 | |
| 11453 | (void) gethostbyname_r(name, he, &data); |
| 11454 | |
| 11455 | ; |
| 11456 | return 0; |
| 11457 | } |
| 11458 | _ACEOF |
| 11459 | if ac_fn_c_try_compile "$LINENO"; then : |
| 11460 | |
| 11461 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h |
| 11462 | |
| 11463 | |
| 11464 | $as_echo "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h |
| 11465 | |
| 11466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11467 | $as_echo "yes" >&6; } |
| 11468 | |
| 11469 | else |
| 11470 | |
| 11471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11472 | $as_echo "no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11473 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11474 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11475 | 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] | 11476 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11477 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11478 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11479 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11480 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11481 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11482 | CFLAGS=$OLD_CFLAGS |
| 11483 | |
| 11484 | else |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11485 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11486 | for ac_func in gethostbyname |
| 11487 | do : |
| 11488 | ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 11489 | if test "x$ac_cv_func_gethostbyname" = x""yes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11490 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11491 | #define HAVE_GETHOSTBYNAME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11492 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11493 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11494 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11495 | done |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11496 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11497 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11498 | fi |
| 11499 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11500 | |
| 11501 | |
| 11502 | |
| 11503 | |
| 11504 | |
| 11505 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11506 | # checks for system services |
| 11507 | # (none yet) |
| 11508 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11509 | # Linux requires this for correct f.p. operations |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11510 | ac_fn_c_check_func "$LINENO" "__fpu_control" "ac_cv_func___fpu_control" |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 11511 | if test "x$ac_cv_func___fpu_control" = x""yes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11512 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 11513 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11514 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __fpu_control in -lieee" >&5 |
| 11515 | $as_echo_n "checking for __fpu_control in -lieee... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 11516 | if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11517 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11518 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11519 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11520 | LIBS="-lieee $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11521 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11522 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11523 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11524 | /* Override any GCC internal prototype to avoid an error. |
| 11525 | Use char because int might match the return type of a GCC |
| 11526 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11527 | #ifdef __cplusplus |
| 11528 | extern "C" |
| 11529 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11530 | char __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11531 | int |
| 11532 | main () |
| 11533 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11534 | return __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11535 | ; |
| 11536 | return 0; |
| 11537 | } |
| 11538 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11539 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11540 | ac_cv_lib_ieee___fpu_control=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11541 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11542 | ac_cv_lib_ieee___fpu_control=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11543 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11544 | rm -f core conftest.err conftest.$ac_objext \ |
| 11545 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11546 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11547 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ieee___fpu_control" >&5 |
| 11549 | $as_echo "$ac_cv_lib_ieee___fpu_control" >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 11550 | if test "x$ac_cv_lib_ieee___fpu_control" = x""yes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11551 | cat >>confdefs.h <<_ACEOF |
| 11552 | #define HAVE_LIBIEEE 1 |
| 11553 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11554 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11555 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11556 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11557 | fi |
| 11558 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11559 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 11560 | fi |
| 11561 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11562 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11563 | # Check for --with-fpectl |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11564 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-fpectl" >&5 |
| 11565 | $as_echo_n "checking for --with-fpectl... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11566 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11567 | # Check whether --with-fpectl was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11568 | if test "${with_fpectl+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11569 | withval=$with_fpectl; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11570 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11571 | then |
| 11572 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11573 | $as_echo "#define WANT_SIGFPE_HANDLER 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11574 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11576 | $as_echo "yes" >&6; } |
| 11577 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11578 | $as_echo "no" >&6; } |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11579 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 11580 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11582 | $as_echo "no" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11583 | fi |
| 11584 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11585 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11586 | # check for --with-libm=... |
| 11587 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 11588 | case $ac_sys_system in |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 11589 | Darwin) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 11590 | *) LIBM=-lm |
| 11591 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11592 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libm=STRING" >&5 |
| 11593 | $as_echo_n "checking for --with-libm=STRING... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11594 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11595 | # Check whether --with-libm was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11596 | if test "${with_libm+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11597 | withval=$with_libm; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11598 | if test "$withval" = no |
| 11599 | then LIBM= |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBM empty" >&5 |
| 11601 | $as_echo "force LIBM empty" >&6; } |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11602 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11603 | then LIBM=$withval |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBM=\"$withval\"" >&5 |
| 11605 | $as_echo "set LIBM=\"$withval\"" >&6; } |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 11606 | 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] | 11607 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11608 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBM=\"$LIBM\"" >&5 |
| 11610 | $as_echo "default LIBM=\"$LIBM\"" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11611 | fi |
| 11612 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11613 | |
| 11614 | # check for --with-libc=... |
| 11615 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11616 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libc=STRING" >&5 |
| 11617 | $as_echo_n "checking for --with-libc=STRING... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11618 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11619 | # Check whether --with-libc was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11620 | if test "${with_libc+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11621 | withval=$with_libc; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11622 | if test "$withval" = no |
| 11623 | then LIBC= |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBC empty" >&5 |
| 11625 | $as_echo "force LIBC empty" >&6; } |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11626 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11627 | then LIBC=$withval |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBC=\"$withval\"" >&5 |
| 11629 | $as_echo "set LIBC=\"$withval\"" >&6; } |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 11630 | 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] | 11631 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11632 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBC=\"$LIBC\"" >&5 |
| 11634 | $as_echo "default LIBC=\"$LIBC\"" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11635 | fi |
| 11636 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11637 | |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11638 | # ************************************************** |
| 11639 | # * Check for various properties of floating point * |
| 11640 | # ************************************************** |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 11641 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11642 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are little-endian IEEE 754 binary64" >&5 |
| 11643 | $as_echo_n "checking whether C doubles are little-endian IEEE 754 binary64... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 11644 | if test "${ac_cv_little_endian_double+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11645 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11646 | else |
| 11647 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11648 | if test "$cross_compiling" = yes; then : |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11649 | ac_cv_little_endian_double=no |
| 11650 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11651 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11652 | /* end confdefs.h. */ |
| 11653 | |
| 11654 | #include <string.h> |
| 11655 | int main() { |
| 11656 | double x = 9006104071832581.0; |
| 11657 | if (memcmp(&x, "\x05\x04\x03\x02\x01\xff\x3f\x43", 8) == 0) |
| 11658 | return 0; |
| 11659 | else |
| 11660 | return 1; |
| 11661 | } |
| 11662 | |
| 11663 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11664 | if ac_fn_c_try_run "$LINENO"; then : |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11665 | ac_cv_little_endian_double=yes |
| 11666 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11667 | ac_cv_little_endian_double=no |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11668 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11669 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 11670 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11671 | fi |
| 11672 | |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11673 | fi |
| 11674 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_little_endian_double" >&5 |
| 11676 | $as_echo "$ac_cv_little_endian_double" >&6; } |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11677 | if test "$ac_cv_little_endian_double" = yes |
| 11678 | then |
| 11679 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11680 | $as_echo "#define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1" >>confdefs.h |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11681 | |
| 11682 | fi |
| 11683 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11684 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are big-endian IEEE 754 binary64" >&5 |
| 11685 | $as_echo_n "checking whether C doubles are big-endian IEEE 754 binary64... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 11686 | if test "${ac_cv_big_endian_double+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11687 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11688 | else |
| 11689 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11690 | if test "$cross_compiling" = yes; then : |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11691 | ac_cv_big_endian_double=no |
| 11692 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11693 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11694 | /* end confdefs.h. */ |
| 11695 | |
| 11696 | #include <string.h> |
| 11697 | int main() { |
| 11698 | double x = 9006104071832581.0; |
| 11699 | if (memcmp(&x, "\x43\x3f\xff\x01\x02\x03\x04\x05", 8) == 0) |
| 11700 | return 0; |
| 11701 | else |
| 11702 | return 1; |
| 11703 | } |
| 11704 | |
| 11705 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11706 | if ac_fn_c_try_run "$LINENO"; then : |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11707 | ac_cv_big_endian_double=yes |
| 11708 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11709 | ac_cv_big_endian_double=no |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11710 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11711 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 11712 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11713 | fi |
| 11714 | |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11715 | fi |
| 11716 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_big_endian_double" >&5 |
| 11718 | $as_echo "$ac_cv_big_endian_double" >&6; } |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11719 | if test "$ac_cv_big_endian_double" = yes |
| 11720 | then |
| 11721 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11722 | $as_echo "#define DOUBLE_IS_BIG_ENDIAN_IEEE754 1" >>confdefs.h |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11723 | |
| 11724 | fi |
| 11725 | |
| 11726 | # Some ARM platforms use a mixed-endian representation for doubles. |
| 11727 | # While Python doesn't currently have full support for these platforms |
| 11728 | # (see e.g., issue 1762561), we can at least make sure that float <-> string |
| 11729 | # conversions work. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11730 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are ARM mixed-endian IEEE 754 binary64" >&5 |
| 11731 | $as_echo_n "checking whether C doubles are ARM mixed-endian IEEE 754 binary64... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 11732 | if test "${ac_cv_mixed_endian_double+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11733 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11734 | else |
| 11735 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11736 | if test "$cross_compiling" = yes; then : |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11737 | ac_cv_mixed_endian_double=no |
| 11738 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11739 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11740 | /* end confdefs.h. */ |
| 11741 | |
| 11742 | #include <string.h> |
| 11743 | int main() { |
| 11744 | double x = 9006104071832581.0; |
| 11745 | if (memcmp(&x, "\x01\xff\x3f\x43\x05\x04\x03\x02", 8) == 0) |
| 11746 | return 0; |
| 11747 | else |
| 11748 | return 1; |
| 11749 | } |
| 11750 | |
| 11751 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11752 | if ac_fn_c_try_run "$LINENO"; then : |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11753 | ac_cv_mixed_endian_double=yes |
| 11754 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11755 | ac_cv_mixed_endian_double=no |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11756 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11757 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 11758 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11759 | fi |
| 11760 | |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11761 | fi |
| 11762 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mixed_endian_double" >&5 |
| 11764 | $as_echo "$ac_cv_mixed_endian_double" >&6; } |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11765 | if test "$ac_cv_mixed_endian_double" = yes |
| 11766 | then |
| 11767 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11768 | $as_echo "#define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1" >>confdefs.h |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11769 | |
| 11770 | fi |
| 11771 | |
Mark Dickinson | 7abf8d4 | 2009-04-18 20:17:52 +0000 | [diff] [blame] | 11772 | # The short float repr introduced in Python 3.1 requires the |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 11773 | # correctly-rounded string <-> double conversion functions from |
Mark Dickinson | 7abf8d4 | 2009-04-18 20:17:52 +0000 | [diff] [blame] | 11774 | # 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] | 11775 | # rounding; this is a problem on x86, where the x87 FPU has a default |
Mark Dickinson | f4243f6 | 2009-11-15 13:47:27 +0000 | [diff] [blame] | 11776 | # rounding precision of 64 bits. For gcc/x86, we can fix this by |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 11777 | # using inline assembler to get and set the x87 FPU control word. |
Mark Dickinson | f4243f6 | 2009-11-15 13:47:27 +0000 | [diff] [blame] | 11778 | |
| 11779 | # This inline assembler syntax may also work for suncc and icc, |
| 11780 | # so we try it on all platforms. |
| 11781 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11782 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set x87 control word" >&5 |
| 11783 | $as_echo_n "checking whether we can use gcc inline assembler to get and set x87 control word... " >&6; } |
| 11784 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11785 | /* end confdefs.h. */ |
| 11786 | |
| 11787 | int |
| 11788 | main () |
| 11789 | { |
| 11790 | |
Mark Dickinson | f4243f6 | 2009-11-15 13:47:27 +0000 | [diff] [blame] | 11791 | unsigned short cw; |
| 11792 | __asm__ __volatile__ ("fnstcw %0" : "=m" (cw)); |
| 11793 | __asm__ __volatile__ ("fldcw %0" : : "m" (cw)); |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11794 | |
| 11795 | ; |
| 11796 | return 0; |
| 11797 | } |
| 11798 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11799 | if ac_fn_c_try_compile "$LINENO"; then : |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11800 | have_gcc_asm_for_x87=yes |
| 11801 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11802 | have_gcc_asm_for_x87=no |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11803 | fi |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11804 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_x87" >&5 |
| 11806 | $as_echo "$have_gcc_asm_for_x87" >&6; } |
Mark Dickinson | f4243f6 | 2009-11-15 13:47:27 +0000 | [diff] [blame] | 11807 | if test "$have_gcc_asm_for_x87" = yes |
| 11808 | then |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11809 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11810 | $as_echo "#define HAVE_GCC_ASM_FOR_X87 1" >>confdefs.h |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11811 | |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11812 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11813 | |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 11814 | # Detect whether system arithmetic is subject to x87-style double |
| 11815 | # rounding issues. The result of this test has little meaning on non |
| 11816 | # IEEE 754 platforms. On IEEE 754, test should return 1 if rounding |
| 11817 | # mode is round-to-nearest and double rounding issues are present, and |
| 11818 | # 0 otherwise. See http://bugs.python.org/issue2937 for more info. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11819 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x87-style double rounding" >&5 |
| 11820 | $as_echo_n "checking for x87-style double rounding... " >&6; } |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11821 | # $BASECFLAGS may affect the result |
| 11822 | ac_save_cc="$CC" |
| 11823 | CC="$CC $BASECFLAGS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11824 | if test "$cross_compiling" = yes; then : |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 11825 | ac_cv_x87_double_rounding=no |
| 11826 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11827 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 11828 | /* end confdefs.h. */ |
| 11829 | |
| 11830 | #include <stdlib.h> |
| 11831 | #include <math.h> |
| 11832 | int main() { |
| 11833 | volatile double x, y, z; |
| 11834 | /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */ |
| 11835 | x = 0.99999999999999989; /* 1-2**-53 */ |
| 11836 | y = 1./x; |
| 11837 | if (y != 1.) |
| 11838 | exit(0); |
| 11839 | /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */ |
| 11840 | x = 1e16; |
| 11841 | y = 2.99999; |
| 11842 | z = x + y; |
| 11843 | if (z != 1e16+4.) |
| 11844 | exit(0); |
| 11845 | /* both tests show evidence of double rounding */ |
| 11846 | exit(1); |
| 11847 | } |
| 11848 | |
| 11849 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11850 | if ac_fn_c_try_run "$LINENO"; then : |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 11851 | ac_cv_x87_double_rounding=no |
| 11852 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11853 | ac_cv_x87_double_rounding=yes |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 11854 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11855 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 11856 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 11857 | fi |
| 11858 | |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11859 | CC="$ac_save_cc" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_x87_double_rounding" >&5 |
| 11861 | $as_echo "$ac_cv_x87_double_rounding" >&6; } |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 11862 | if test "$ac_cv_x87_double_rounding" = yes |
| 11863 | then |
| 11864 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11865 | $as_echo "#define X87_DOUBLE_ROUNDING 1" >>confdefs.h |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 11866 | |
| 11867 | fi |
| 11868 | |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11869 | # ************************************ |
| 11870 | # * Check for mathematical functions * |
| 11871 | # ************************************ |
| 11872 | |
| 11873 | LIBS_SAVE=$LIBS |
| 11874 | LIBS="$LIBS $LIBM" |
| 11875 | |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 11876 | for ac_func in acosh asinh atanh copysign erf erfc expm1 finite gamma |
| 11877 | do : |
| 11878 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11879 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 11880 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 11881 | cat >>confdefs.h <<_ACEOF |
| 11882 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11883 | _ACEOF |
| 11884 | |
| 11885 | fi |
| 11886 | done |
| 11887 | |
Victor Stinner | 8f9f8d6 | 2011-05-09 12:45:41 +0200 | [diff] [blame] | 11888 | for ac_func in hypot lgamma log1p log2 round tgamma |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 11889 | do : |
| 11890 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11891 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 11892 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 11893 | cat >>confdefs.h <<_ACEOF |
| 11894 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11895 | _ACEOF |
| 11896 | |
| 11897 | fi |
| 11898 | done |
| 11899 | |
| 11900 | ac_fn_c_check_decl "$LINENO" "isinf" "ac_cv_have_decl_isinf" "#include <math.h> |
| 11901 | " |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 11902 | if test "x$ac_cv_have_decl_isinf" = x""yes; then : |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 11903 | ac_have_decl=1 |
| 11904 | else |
| 11905 | ac_have_decl=0 |
| 11906 | fi |
| 11907 | |
| 11908 | cat >>confdefs.h <<_ACEOF |
| 11909 | #define HAVE_DECL_ISINF $ac_have_decl |
| 11910 | _ACEOF |
| 11911 | ac_fn_c_check_decl "$LINENO" "isnan" "ac_cv_have_decl_isnan" "#include <math.h> |
| 11912 | " |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 11913 | if test "x$ac_cv_have_decl_isnan" = x""yes; then : |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 11914 | ac_have_decl=1 |
| 11915 | else |
| 11916 | ac_have_decl=0 |
| 11917 | fi |
| 11918 | |
| 11919 | cat >>confdefs.h <<_ACEOF |
| 11920 | #define HAVE_DECL_ISNAN $ac_have_decl |
| 11921 | _ACEOF |
| 11922 | ac_fn_c_check_decl "$LINENO" "isfinite" "ac_cv_have_decl_isfinite" "#include <math.h> |
| 11923 | " |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 11924 | if test "x$ac_cv_have_decl_isfinite" = x""yes; then : |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 11925 | ac_have_decl=1 |
| 11926 | else |
| 11927 | ac_have_decl=0 |
| 11928 | fi |
| 11929 | |
| 11930 | cat >>confdefs.h <<_ACEOF |
| 11931 | #define HAVE_DECL_ISFINITE $ac_have_decl |
| 11932 | _ACEOF |
| 11933 | |
| 11934 | |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 11935 | # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of |
| 11936 | # -0. on some architectures. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11937 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tanh preserves the sign of zero" >&5 |
| 11938 | $as_echo_n "checking whether tanh preserves the sign of zero... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 11939 | if test "${ac_cv_tanh_preserves_zero_sign+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11940 | $as_echo_n "(cached) " >&6 |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 11941 | else |
| 11942 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11943 | if test "$cross_compiling" = yes; then : |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 11944 | ac_cv_tanh_preserves_zero_sign=no |
| 11945 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11946 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 11947 | /* end confdefs.h. */ |
| 11948 | |
| 11949 | #include <math.h> |
| 11950 | #include <stdlib.h> |
| 11951 | int main() { |
| 11952 | /* return 0 if either negative zeros don't exist |
| 11953 | on this platform or if negative zeros exist |
| 11954 | and tanh(-0.) == -0. */ |
| 11955 | if (atan2(0., -1.) == atan2(-0., -1.) || |
| 11956 | atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0); |
| 11957 | else exit(1); |
| 11958 | } |
| 11959 | |
| 11960 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11961 | if ac_fn_c_try_run "$LINENO"; then : |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 11962 | ac_cv_tanh_preserves_zero_sign=yes |
| 11963 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11964 | ac_cv_tanh_preserves_zero_sign=no |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 11965 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11966 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 11967 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 11968 | fi |
| 11969 | |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 11970 | fi |
| 11971 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tanh_preserves_zero_sign" >&5 |
| 11973 | $as_echo "$ac_cv_tanh_preserves_zero_sign" >&6; } |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 11974 | if test "$ac_cv_tanh_preserves_zero_sign" = yes |
| 11975 | then |
| 11976 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11977 | $as_echo "#define TANH_PRESERVES_ZERO_SIGN 1" >>confdefs.h |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 11978 | |
| 11979 | fi |
| 11980 | |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 11981 | if test "$ac_cv_func_log1p" = yes |
| 11982 | then |
| 11983 | # On some versions of AIX, log1p(-0.) returns 0. instead of |
| 11984 | # -0. See issue #9920. |
| 11985 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether log1p drops the sign of negative zero" >&5 |
| 11986 | $as_echo_n "checking whether log1p drops the sign of negative zero... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 11987 | if test "${ac_cv_log1p_drops_zero_sign+set}" = set; then : |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 11988 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 11989 | else |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 11990 | |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 11991 | if test "$cross_compiling" = yes; then : |
| 11992 | ac_cv_log1p_drops_zero_sign=no |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 11993 | else |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 11994 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11995 | /* end confdefs.h. */ |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 11996 | |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 11997 | #include <math.h> |
| 11998 | #include <stdlib.h> |
| 11999 | int main() { |
| 12000 | /* Fail if the signs of log1p(-0.) and -0. can be |
| 12001 | distinguished. */ |
| 12002 | if (atan2(log1p(-0.), -1.) == atan2(-0., -1.)) |
| 12003 | return 0; |
| 12004 | else |
| 12005 | return 1; |
| 12006 | } |
| 12007 | |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 12008 | _ACEOF |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 12009 | if ac_fn_c_try_run "$LINENO"; then : |
| 12010 | ac_cv_log1p_drops_zero_sign=no |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 12011 | else |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 12012 | ac_cv_log1p_drops_zero_sign=yes |
| 12013 | fi |
| 12014 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 12015 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 12016 | fi |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 12017 | |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 12018 | fi |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 12019 | |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 12020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_log1p_drops_zero_sign" >&5 |
| 12021 | $as_echo "$ac_cv_log1p_drops_zero_sign" >&6; } |
| 12022 | fi |
| 12023 | if test "$ac_cv_log1p_drops_zero_sign" = yes |
| 12024 | then |
| 12025 | |
| 12026 | $as_echo "#define LOG1P_DROPS_ZERO_SIGN 1" >>confdefs.h |
| 12027 | |
| 12028 | fi |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 12029 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 12030 | LIBS=$LIBS_SAVE |
| 12031 | |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 12032 | # For multiprocessing module, check that sem_open |
| 12033 | # actually works. For FreeBSD versions <= 7.2, |
| 12034 | # the kernel module that provides POSIX semaphores |
| 12035 | # isn't loaded by default, so an attempt to call |
| 12036 | # sem_open results in a 'Signal 12' error. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12037 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX semaphores are enabled" >&5 |
| 12038 | $as_echo_n "checking whether POSIX semaphores are enabled... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 12039 | if test "${ac_cv_posix_semaphores_enabled+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12040 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 12041 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12042 | if test "$cross_compiling" = yes; then : |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 12043 | ac_cv_posix_semaphores_enabled=yes |
| 12044 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12045 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 12046 | /* end confdefs.h. */ |
| 12047 | |
| 12048 | #include <unistd.h> |
| 12049 | #include <fcntl.h> |
| 12050 | #include <stdio.h> |
| 12051 | #include <semaphore.h> |
| 12052 | #include <sys/stat.h> |
| 12053 | |
| 12054 | int main(void) { |
| 12055 | sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0); |
| 12056 | if (a == SEM_FAILED) { |
| 12057 | perror("sem_open"); |
| 12058 | return 1; |
| 12059 | } |
| 12060 | sem_close(a); |
Mark Dickinson | ba79b35 | 2009-12-13 21:10:57 +0000 | [diff] [blame] | 12061 | sem_unlink("/autoconf"); |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 12062 | return 0; |
| 12063 | } |
| 12064 | |
| 12065 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12066 | if ac_fn_c_try_run "$LINENO"; then : |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 12067 | ac_cv_posix_semaphores_enabled=yes |
| 12068 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12069 | ac_cv_posix_semaphores_enabled=no |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 12070 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12071 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 12072 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 12073 | fi |
| 12074 | |
| 12075 | |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 12076 | fi |
| 12077 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_semaphores_enabled" >&5 |
| 12079 | $as_echo "$ac_cv_posix_semaphores_enabled" >&6; } |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 12080 | if test $ac_cv_posix_semaphores_enabled = no |
| 12081 | then |
| 12082 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12083 | $as_echo "#define POSIX_SEMAPHORES_NOT_ENABLED 1" >>confdefs.h |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 12084 | |
| 12085 | fi |
| 12086 | |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 12087 | # Multiprocessing check for broken sem_getvalue |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12088 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken sem_getvalue" >&5 |
| 12089 | $as_echo_n "checking for broken sem_getvalue... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 12090 | if test "${ac_cv_broken_sem_getvalue+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12091 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12092 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12093 | if test "$cross_compiling" = yes; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12094 | ac_cv_broken_sem_getvalue=yes |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 12095 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12096 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 12097 | /* end confdefs.h. */ |
| 12098 | |
| 12099 | #include <unistd.h> |
| 12100 | #include <fcntl.h> |
| 12101 | #include <stdio.h> |
| 12102 | #include <semaphore.h> |
| 12103 | #include <sys/stat.h> |
| 12104 | |
| 12105 | int main(void){ |
Mark Dickinson | ba79b35 | 2009-12-13 21:10:57 +0000 | [diff] [blame] | 12106 | 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] | 12107 | int count; |
| 12108 | int res; |
| 12109 | if(a==SEM_FAILED){ |
| 12110 | perror("sem_open"); |
| 12111 | return 1; |
| 12112 | |
| 12113 | } |
| 12114 | res = sem_getvalue(a, &count); |
| 12115 | sem_close(a); |
Mark Dickinson | ba79b35 | 2009-12-13 21:10:57 +0000 | [diff] [blame] | 12116 | sem_unlink("/autocftw"); |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 12117 | return res==-1 ? 1 : 0; |
| 12118 | } |
| 12119 | |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 12120 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12121 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12122 | ac_cv_broken_sem_getvalue=no |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 12123 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12124 | ac_cv_broken_sem_getvalue=yes |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12125 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12126 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 12127 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 12128 | fi |
| 12129 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12130 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12131 | fi |
| 12132 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_sem_getvalue" >&5 |
| 12134 | $as_echo "$ac_cv_broken_sem_getvalue" >&6; } |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12135 | if test $ac_cv_broken_sem_getvalue = yes |
| 12136 | then |
| 12137 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12138 | $as_echo "#define HAVE_BROKEN_SEM_GETVALUE 1" >>confdefs.h |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12139 | |
| 12140 | fi |
| 12141 | |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 12142 | # determine what size digit to use for Python's longs |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12143 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking digit size for Python's longs" >&5 |
| 12144 | $as_echo_n "checking digit size for Python's longs... " >&6; } |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 12145 | # Check whether --enable-big-digits was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12146 | if test "${enable_big_digits+set}" = set; then : |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 12147 | enableval=$enable_big_digits; case $enable_big_digits in |
| 12148 | yes) |
| 12149 | enable_big_digits=30 ;; |
| 12150 | no) |
| 12151 | enable_big_digits=15 ;; |
| 12152 | 15|30) |
| 12153 | ;; |
| 12154 | *) |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 12155 | 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] | 12156 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_big_digits" >&5 |
| 12158 | $as_echo "$enable_big_digits" >&6; } |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 12159 | |
| 12160 | cat >>confdefs.h <<_ACEOF |
| 12161 | #define PYLONG_BITS_IN_DIGIT $enable_big_digits |
| 12162 | _ACEOF |
| 12163 | |
| 12164 | |
| 12165 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5 |
| 12167 | $as_echo "no value specified" >&6; } |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 12168 | fi |
| 12169 | |
| 12170 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12171 | # check for wchar.h |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12172 | ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default" |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 12173 | if test "x$ac_cv_header_wchar_h" = x""yes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12174 | |
| 12175 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12176 | $as_echo "#define HAVE_WCHAR_H 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12177 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 12178 | wchar_h="yes" |
| 12179 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12180 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12181 | wchar_h="no" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12182 | |
| 12183 | fi |
| 12184 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12185 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12186 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12187 | # determine wchar_t size |
| 12188 | if test "$wchar_h" = yes |
| 12189 | then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12190 | # 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] | 12191 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 12192 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 12193 | # This bug is HP SR number 8606223364. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12194 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5 |
| 12195 | $as_echo_n "checking size of wchar_t... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 12196 | if test "${ac_cv_sizeof_wchar_t+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12197 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12198 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12199 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" "#include <wchar.h> |
| 12200 | "; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12201 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12202 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12203 | if test "$ac_cv_type_wchar_t" = yes; then |
| 12204 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 12205 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 12206 | as_fn_error 77 "cannot compute sizeof (wchar_t) |
| 12207 | See \`config.log' for more details" "$LINENO" 5 ; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12208 | else |
| 12209 | ac_cv_sizeof_wchar_t=0 |
| 12210 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12211 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12212 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12213 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5 |
| 12215 | $as_echo "$ac_cv_sizeof_wchar_t" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12216 | |
| 12217 | |
| 12218 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12219 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12220 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12221 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12222 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12223 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12224 | fi |
| 12225 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12226 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UCS-4 tcl" >&5 |
| 12227 | $as_echo_n "checking for UCS-4 tcl... " >&6; } |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 12228 | have_ucs4_tcl=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12229 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12230 | /* end confdefs.h. */ |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 12231 | |
| 12232 | #include <tcl.h> |
| 12233 | #if TCL_UTF_MAX != 6 |
| 12234 | # error "NOT UCS4_TCL" |
| 12235 | #endif |
| 12236 | int |
| 12237 | main () |
| 12238 | { |
| 12239 | |
| 12240 | ; |
| 12241 | return 0; |
| 12242 | } |
| 12243 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12244 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 12245 | |
| 12246 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12247 | $as_echo "#define HAVE_UCS4_TCL 1" >>confdefs.h |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 12248 | |
| 12249 | have_ucs4_tcl=yes |
| 12250 | |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 12251 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12252 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ucs4_tcl" >&5 |
| 12254 | $as_echo "$have_ucs4_tcl" >&6; } |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 12255 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12256 | # check whether wchar_t is signed or not |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12257 | if test "$wchar_h" = yes |
| 12258 | then |
| 12259 | # check whether wchar_t is signed or not |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12260 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wchar_t is signed" >&5 |
| 12261 | $as_echo_n "checking whether wchar_t is signed... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 12262 | if test "${ac_cv_wchar_t_signed+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12263 | $as_echo_n "(cached) " >&6 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12264 | else |
| 12265 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12266 | if test "$cross_compiling" = yes; then : |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12267 | ac_cv_wchar_t_signed=yes |
| 12268 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12269 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12270 | /* end confdefs.h. */ |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12271 | |
| 12272 | #include <wchar.h> |
| 12273 | int main() |
| 12274 | { |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 12275 | /* Success: exit code 0 */ |
| 12276 | exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1); |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12277 | } |
| 12278 | |
| 12279 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12280 | if ac_fn_c_try_run "$LINENO"; then : |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12281 | ac_cv_wchar_t_signed=yes |
| 12282 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12283 | ac_cv_wchar_t_signed=no |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12284 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12285 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 12286 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12287 | fi |
| 12288 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12289 | fi |
| 12290 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_wchar_t_signed" >&5 |
| 12292 | $as_echo "$ac_cv_wchar_t_signed" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12293 | fi |
| 12294 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12295 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking what type to use for str" >&5 |
| 12296 | $as_echo_n "checking what type to use for str... " >&6; } |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 12297 | |
| 12298 | # Check whether --with-wide-unicode was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12299 | if test "${with_wide_unicode+set}" = set; then : |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 12300 | withval=$with_wide_unicode; |
| 12301 | if test "$withval" != no |
| 12302 | then unicode_size="4" |
| 12303 | else unicode_size="2" |
| 12304 | fi |
| 12305 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12306 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12307 | |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 12308 | case "$have_ucs4_tcl" in |
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 12309 | yes) unicode_size="4";; |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 12310 | *) unicode_size="2" ;; |
| 12311 | esac |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12312 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12313 | fi |
| 12314 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 12315 | |
| 12316 | |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 12317 | case "$unicode_size" in |
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 12318 | 4) |
| 12319 | $as_echo "#define Py_UNICODE_SIZE 4" >>confdefs.h |
| 12320 | |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 12321 | ABIFLAGS="${ABIFLAGS}u" |
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 12322 | ;; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12323 | *) $as_echo "#define Py_UNICODE_SIZE 2" >>confdefs.h |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 12324 | ;; |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12325 | esac |
| 12326 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12327 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12328 | |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 12329 | # wchar_t is only usable if it maps to an unsigned type |
| 12330 | if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \ |
Matthias Klose | 7dbeed7 | 2004-12-24 08:22:17 +0000 | [diff] [blame] | 12331 | -a "$ac_cv_wchar_t_signed" = "no" |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 12332 | then |
| 12333 | PY_UNICODE_TYPE="wchar_t" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12334 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12335 | $as_echo "#define HAVE_USABLE_WCHAR_T 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12336 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12337 | $as_echo "#define PY_UNICODE_TYPE wchar_t" >>confdefs.h |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12338 | |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 12339 | elif test "$ac_cv_sizeof_short" = "$unicode_size" |
| 12340 | then |
| 12341 | PY_UNICODE_TYPE="unsigned short" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12342 | $as_echo "#define PY_UNICODE_TYPE unsigned short" >>confdefs.h |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12343 | |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 12344 | elif test "$ac_cv_sizeof_long" = "$unicode_size" |
| 12345 | then |
| 12346 | PY_UNICODE_TYPE="unsigned long" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12347 | $as_echo "#define PY_UNICODE_TYPE unsigned long" >>confdefs.h |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12348 | |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 12349 | else |
| 12350 | PY_UNICODE_TYPE="no type found" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12351 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PY_UNICODE_TYPE" >&5 |
| 12353 | $as_echo "$PY_UNICODE_TYPE" >&6; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12354 | |
| 12355 | # check for endianness |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12356 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
| 12357 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 12358 | if test "${ac_cv_c_bigendian+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12359 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12360 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12361 | ac_cv_c_bigendian=unknown |
| 12362 | # See if we're dealing with a universal compiler. |
| 12363 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12364 | /* end confdefs.h. */ |
| 12365 | #ifndef __APPLE_CC__ |
| 12366 | not a universal capable compiler |
| 12367 | #endif |
| 12368 | typedef int dummy; |
| 12369 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12370 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12371 | if ac_fn_c_try_compile "$LINENO"; then : |
| 12372 | |
| 12373 | # Check for potential -arch flags. It is not universal unless |
| 12374 | # there are at least two -arch flags with different values. |
| 12375 | ac_arch= |
| 12376 | ac_prev= |
| 12377 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do |
| 12378 | if test -n "$ac_prev"; then |
| 12379 | case $ac_word in |
| 12380 | i?86 | x86_64 | ppc | ppc64) |
| 12381 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then |
| 12382 | ac_arch=$ac_word |
| 12383 | else |
| 12384 | ac_cv_c_bigendian=universal |
| 12385 | break |
| 12386 | fi |
| 12387 | ;; |
| 12388 | esac |
| 12389 | ac_prev= |
| 12390 | elif test "x$ac_word" = "x-arch"; then |
| 12391 | ac_prev=arch |
| 12392 | fi |
| 12393 | done |
| 12394 | fi |
| 12395 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12396 | if test $ac_cv_c_bigendian = unknown; then |
| 12397 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 12398 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12399 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12400 | #include <sys/types.h> |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12401 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12402 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12403 | int |
| 12404 | main () |
| 12405 | { |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12406 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
| 12407 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ |
| 12408 | && LITTLE_ENDIAN) |
| 12409 | bogus endian macros |
| 12410 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12411 | |
| 12412 | ; |
| 12413 | return 0; |
| 12414 | } |
| 12415 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12416 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12417 | # It does; now see whether it defined to BIG_ENDIAN or not. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12418 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12419 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12420 | #include <sys/types.h> |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12421 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12422 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12423 | int |
| 12424 | main () |
| 12425 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12426 | #if BYTE_ORDER != BIG_ENDIAN |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12427 | not big endian |
| 12428 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12429 | |
| 12430 | ; |
| 12431 | return 0; |
| 12432 | } |
| 12433 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12434 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12435 | ac_cv_c_bigendian=yes |
| 12436 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12437 | ac_cv_c_bigendian=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12438 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12439 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12440 | fi |
| 12441 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12442 | fi |
| 12443 | if test $ac_cv_c_bigendian = unknown; then |
| 12444 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). |
| 12445 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12446 | /* end confdefs.h. */ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12447 | #include <limits.h> |
| 12448 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12449 | int |
| 12450 | main () |
| 12451 | { |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12452 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
| 12453 | bogus endian macros |
| 12454 | #endif |
| 12455 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12456 | ; |
| 12457 | return 0; |
| 12458 | } |
| 12459 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12460 | if ac_fn_c_try_compile "$LINENO"; then : |
| 12461 | # It does; now see whether it defined to _BIG_ENDIAN or not. |
| 12462 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12463 | /* end confdefs.h. */ |
| 12464 | #include <limits.h> |
| 12465 | |
| 12466 | int |
| 12467 | main () |
| 12468 | { |
| 12469 | #ifndef _BIG_ENDIAN |
| 12470 | not big endian |
| 12471 | #endif |
| 12472 | |
| 12473 | ; |
| 12474 | return 0; |
| 12475 | } |
| 12476 | _ACEOF |
| 12477 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12478 | ac_cv_c_bigendian=yes |
Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 12479 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12480 | ac_cv_c_bigendian=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12481 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12482 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12483 | fi |
| 12484 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12485 | fi |
| 12486 | if test $ac_cv_c_bigendian = unknown; then |
| 12487 | # Compile a test program. |
| 12488 | if test "$cross_compiling" = yes; then : |
| 12489 | # Try to guess by grepping values from an object file. |
| 12490 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12491 | /* end confdefs.h. */ |
| 12492 | short int ascii_mm[] = |
| 12493 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 12494 | short int ascii_ii[] = |
| 12495 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 12496 | int use_ascii (int i) { |
| 12497 | return ascii_mm[i] + ascii_ii[i]; |
| 12498 | } |
| 12499 | short int ebcdic_ii[] = |
| 12500 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 12501 | short int ebcdic_mm[] = |
| 12502 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 12503 | int use_ebcdic (int i) { |
| 12504 | return ebcdic_mm[i] + ebcdic_ii[i]; |
| 12505 | } |
| 12506 | extern int foo; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12507 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12508 | int |
| 12509 | main () |
| 12510 | { |
| 12511 | return use_ascii (foo) == use_ebcdic (foo); |
| 12512 | ; |
| 12513 | return 0; |
| 12514 | } |
| 12515 | _ACEOF |
| 12516 | if ac_fn_c_try_compile "$LINENO"; then : |
| 12517 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then |
| 12518 | ac_cv_c_bigendian=yes |
| 12519 | fi |
| 12520 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 12521 | if test "$ac_cv_c_bigendian" = unknown; then |
| 12522 | ac_cv_c_bigendian=no |
| 12523 | else |
| 12524 | # finding both strings is unlikely to happen, but who knows? |
| 12525 | ac_cv_c_bigendian=unknown |
| 12526 | fi |
| 12527 | fi |
| 12528 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12529 | 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] | 12530 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12531 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12532 | /* end confdefs.h. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12533 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12534 | int |
| 12535 | main () |
| 12536 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12537 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12538 | /* Are we little or big endian? From Harbison&Steele. */ |
| 12539 | union |
| 12540 | { |
| 12541 | long int l; |
| 12542 | char c[sizeof (long int)]; |
| 12543 | } u; |
| 12544 | u.l = 1; |
| 12545 | return u.c[sizeof (long int) - 1] == 1; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12546 | |
| 12547 | ; |
| 12548 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12549 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12550 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12551 | if ac_fn_c_try_run "$LINENO"; then : |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12552 | ac_cv_c_bigendian=no |
| 12553 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12554 | ac_cv_c_bigendian=yes |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12555 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12556 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 12557 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12558 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12559 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12560 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12561 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
| 12563 | $as_echo "$ac_cv_c_bigendian" >&6; } |
| 12564 | case $ac_cv_c_bigendian in #( |
| 12565 | yes) |
| 12566 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h |
| 12567 | ;; #( |
| 12568 | no) |
| 12569 | ;; #( |
| 12570 | universal) |
Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 12571 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12572 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 12573 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12574 | ;; #( |
| 12575 | *) |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 12576 | as_fn_error $? "unknown endianness |
| 12577 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12578 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12579 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12580 | |
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 12581 | # ABI version string for Python extension modules. This appears between the |
| 12582 | # periods in shared library file names, e.g. foo.<SOABI>.so. It is calculated |
| 12583 | # from the following attributes which affect the ABI of this Python build (in |
| 12584 | # this order): |
| 12585 | # |
| 12586 | # * The Python implementation (always 'cpython-' for us) |
| 12587 | # * The major and minor version numbers |
| 12588 | # * --with-pydebug (adds a 'd') |
| 12589 | # * --with-pymalloc (adds a 'm') |
| 12590 | # * --with-wide-unicode (adds a 'u') |
| 12591 | # |
| 12592 | # Thus for example, Python 3.2 built with wide unicode, pydebug, and pymalloc, |
Benjamin Peterson | d7f73e9 | 2010-09-05 00:09:07 +0000 | [diff] [blame] | 12593 | # would get a shared library ABI version tag of 'cpython-32dmu' and shared |
| 12594 | # libraries would be named 'foo.cpython-32dmu.so'. |
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 12595 | |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 12596 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking ABIFLAGS" >&5 |
| 12597 | $as_echo_n "checking ABIFLAGS... " >&6; } |
| 12598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ABIFLAGS" >&5 |
| 12599 | $as_echo "$ABIFLAGS" >&6; } |
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 12600 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking SOABI" >&5 |
| 12601 | $as_echo_n "checking SOABI... " >&6; } |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 12602 | SOABI='cpython-'`echo $VERSION | tr -d .`${ABIFLAGS} |
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 12603 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SOABI" >&5 |
| 12604 | $as_echo "$SOABI" >&6; } |
| 12605 | |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 12606 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDVERSION" >&5 |
| 12607 | $as_echo_n "checking LDVERSION... " >&6; } |
| 12608 | LDVERSION='$(VERSION)$(ABIFLAGS)' |
| 12609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDVERSION" >&5 |
| 12610 | $as_echo "$LDVERSION" >&6; } |
| 12611 | |
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 12612 | # SO is the extension of shared libraries `(including the dot!) |
| 12613 | # -- usually .so, .sl on HP-UX, .dll on Cygwin |
| 12614 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking SO" >&5 |
| 12615 | $as_echo_n "checking SO... " >&6; } |
| 12616 | if test -z "$SO" |
| 12617 | then |
| 12618 | case $ac_sys_system in |
| 12619 | hp*|HP*) |
| 12620 | case `uname -m` in |
| 12621 | ia64) SO=.so;; |
| 12622 | *) SO=.sl;; |
| 12623 | esac |
| 12624 | ;; |
| 12625 | CYGWIN*) SO=.dll;; |
Barry Warsaw | 278266f | 2010-10-14 17:38:46 +0000 | [diff] [blame] | 12626 | Linux*|GNU*) |
| 12627 | SO=.${SOABI}.so;; |
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 12628 | *) SO=.so;; |
| 12629 | esac |
| 12630 | else |
| 12631 | # this might also be a termcap variable, see #610332 |
Benjamin Peterson | d7f73e9 | 2010-09-05 00:09:07 +0000 | [diff] [blame] | 12632 | echo |
| 12633 | echo '=====================================================================' |
| 12634 | echo '+ +' |
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 12635 | echo '+ WARNING: You have set SO in your environment. +' |
Benjamin Peterson | d7f73e9 | 2010-09-05 00:09:07 +0000 | [diff] [blame] | 12636 | echo '+ Do you really mean to change the extension for shared libraries? +' |
| 12637 | echo '+ Continuing in 10 seconds to let you to ponder. +' |
| 12638 | echo '+ +' |
| 12639 | echo '=====================================================================' |
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 12640 | sleep 10 |
| 12641 | fi |
| 12642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SO" >&5 |
| 12643 | $as_echo "$SO" >&6; } |
| 12644 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 12645 | # Check whether right shifting a negative integer extends the sign bit |
| 12646 | # or fills with zeros (like the Cray J90, according to Tim Peters). |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12647 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether right shift extends the sign bit" >&5 |
| 12648 | $as_echo_n "checking whether right shift extends the sign bit... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 12649 | if test "${ac_cv_rshift_extends_sign+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12650 | $as_echo_n "(cached) " >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 12651 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12652 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12653 | if test "$cross_compiling" = yes; then : |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 12654 | ac_cv_rshift_extends_sign=yes |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 12655 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12656 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12657 | /* end confdefs.h. */ |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 12658 | |
| 12659 | int main() |
| 12660 | { |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 12661 | exit(((-1)>>3 == -1) ? 0 : 1); |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 12662 | } |
| 12663 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12664 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12665 | if ac_fn_c_try_run "$LINENO"; then : |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 12666 | ac_cv_rshift_extends_sign=yes |
| 12667 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12668 | ac_cv_rshift_extends_sign=no |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 12669 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12670 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 12671 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 12672 | fi |
| 12673 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12674 | fi |
| 12675 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rshift_extends_sign" >&5 |
| 12677 | $as_echo "$ac_cv_rshift_extends_sign" >&6; } |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 12678 | if test "$ac_cv_rshift_extends_sign" = no |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 12679 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12680 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12681 | $as_echo "#define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1" >>confdefs.h |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 12682 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 12683 | fi |
| 12684 | |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 12685 | # check for getc_unlocked and related locking functions |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12686 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getc_unlocked() and friends" >&5 |
| 12687 | $as_echo_n "checking for getc_unlocked() and friends... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 12688 | if test "${ac_cv_have_getc_unlocked+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12689 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 12690 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12691 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12692 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12693 | /* end confdefs.h. */ |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 12694 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12695 | int |
| 12696 | main () |
| 12697 | { |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 12698 | |
| 12699 | FILE *f = fopen("/dev/null", "r"); |
| 12700 | flockfile(f); |
| 12701 | getc_unlocked(f); |
| 12702 | funlockfile(f); |
| 12703 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12704 | ; |
| 12705 | return 0; |
| 12706 | } |
| 12707 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12708 | if ac_fn_c_try_link "$LINENO"; then : |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 12709 | ac_cv_have_getc_unlocked=yes |
| 12710 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12711 | ac_cv_have_getc_unlocked=no |
| 12712 | fi |
| 12713 | rm -f core conftest.err conftest.$ac_objext \ |
| 12714 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 12715 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12716 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getc_unlocked" >&5 |
| 12718 | $as_echo "$ac_cv_have_getc_unlocked" >&6; } |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 12719 | if test "$ac_cv_have_getc_unlocked" = yes |
| 12720 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12721 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12722 | $as_echo "#define HAVE_GETC_UNLOCKED 1" >>confdefs.h |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 12723 | |
| 12724 | fi |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 12725 | |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 12726 | # check where readline lives |
Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 12727 | # save the value of LIBS so we don't actually link Python with readline |
| 12728 | LIBS_no_readline=$LIBS |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 12729 | |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 12730 | # On some systems we need to link readline to a termcap compatible |
| 12731 | # library. NOTE: Keep the precedence of listed libraries synchronised |
| 12732 | # with setup.py. |
| 12733 | py_cv_lib_readline=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12734 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link readline libs" >&5 |
| 12735 | $as_echo_n "checking how to link readline libs... " >&6; } |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 12736 | for py_libtermcap in "" ncursesw ncurses curses termcap; do |
| 12737 | if test -z "$py_libtermcap"; then |
| 12738 | READLINE_LIBS="-lreadline" |
| 12739 | else |
| 12740 | READLINE_LIBS="-lreadline -l$py_libtermcap" |
| 12741 | fi |
| 12742 | LIBS="$READLINE_LIBS $LIBS_no_readline" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12743 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 12744 | /* end confdefs.h. */ |
| 12745 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12746 | /* Override any GCC internal prototype to avoid an error. |
| 12747 | Use char because int might match the return type of a GCC |
| 12748 | builtin and then its argument prototype would still apply. */ |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 12749 | #ifdef __cplusplus |
| 12750 | extern "C" |
| 12751 | #endif |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 12752 | char readline (); |
| 12753 | int |
| 12754 | main () |
| 12755 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12756 | return readline (); |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 12757 | ; |
| 12758 | return 0; |
| 12759 | } |
| 12760 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12761 | if ac_fn_c_try_link "$LINENO"; then : |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 12762 | py_cv_lib_readline=yes |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 12763 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12764 | rm -f core conftest.err conftest.$ac_objext \ |
| 12765 | conftest$ac_exeext conftest.$ac_ext |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 12766 | if test $py_cv_lib_readline = yes; then |
| 12767 | break |
| 12768 | fi |
| 12769 | done |
| 12770 | # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts |
| 12771 | #AC_SUBST([READLINE_LIBS]) |
Gregory P. Smith | 3856c37 | 2008-09-07 19:24:00 +0000 | [diff] [blame] | 12772 | if test $py_cv_lib_readline = no; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
| 12774 | $as_echo "none" >&6; } |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 12775 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE_LIBS" >&5 |
| 12777 | $as_echo "$READLINE_LIBS" >&6; } |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 12778 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12779 | $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 12780 | |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 12781 | fi |
| 12782 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12783 | # check for readline 2.1 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12784 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_callback_handler_install in -lreadline" >&5 |
| 12785 | $as_echo_n "checking for rl_callback_handler_install in -lreadline... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 12786 | if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12787 | $as_echo_n "(cached) " >&6 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12788 | else |
| 12789 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 12790 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12791 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12792 | /* end confdefs.h. */ |
| 12793 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12794 | /* Override any GCC internal prototype to avoid an error. |
| 12795 | Use char because int might match the return type of a GCC |
| 12796 | builtin and then its argument prototype would still apply. */ |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12797 | #ifdef __cplusplus |
| 12798 | extern "C" |
| 12799 | #endif |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12800 | char rl_callback_handler_install (); |
| 12801 | int |
| 12802 | main () |
| 12803 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12804 | return rl_callback_handler_install (); |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12805 | ; |
| 12806 | return 0; |
| 12807 | } |
| 12808 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12809 | if ac_fn_c_try_link "$LINENO"; then : |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12810 | ac_cv_lib_readline_rl_callback_handler_install=yes |
| 12811 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12812 | ac_cv_lib_readline_rl_callback_handler_install=no |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12813 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12814 | rm -f core conftest.err conftest.$ac_objext \ |
| 12815 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12816 | LIBS=$ac_check_lib_save_LIBS |
| 12817 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5 |
| 12819 | $as_echo "$ac_cv_lib_readline_rl_callback_handler_install" >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 12820 | if test "x$ac_cv_lib_readline_rl_callback_handler_install" = x""yes; then : |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12821 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12822 | $as_echo "#define HAVE_RL_CALLBACK 1" >>confdefs.h |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12823 | |
| 12824 | fi |
| 12825 | |
| 12826 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 12827 | # check for readline 2.2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12828 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12829 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 12830 | #include <readline/readline.h> |
| 12831 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12832 | if ac_fn_c_try_cpp "$LINENO"; then : |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 12833 | have_readline=yes |
| 12834 | else |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 12835 | have_readline=no |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 12836 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 12837 | fi |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 12838 | rm -f conftest.err conftest.i conftest.$ac_ext |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 12839 | if test $have_readline = yes |
| 12840 | then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12841 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12842 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 12843 | #include <readline/readline.h> |
| 12844 | |
| 12845 | _ACEOF |
| 12846 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12847 | $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] | 12848 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12849 | $as_echo "#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1" >>confdefs.h |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 12850 | |
| 12851 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 12852 | rm -f conftest* |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 12853 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12854 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Antoine Pitrou | d513177 | 2009-10-26 19:22:14 +0000 | [diff] [blame] | 12855 | /* end confdefs.h. */ |
| 12856 | #include <readline/readline.h> |
| 12857 | |
| 12858 | _ACEOF |
| 12859 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12860 | $EGREP "extern int rl_completion_suppress_append;" >/dev/null 2>&1; then : |
Antoine Pitrou | d513177 | 2009-10-26 19:22:14 +0000 | [diff] [blame] | 12861 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12862 | $as_echo "#define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1" >>confdefs.h |
Antoine Pitrou | d513177 | 2009-10-26 19:22:14 +0000 | [diff] [blame] | 12863 | |
| 12864 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 12865 | rm -f conftest* |
Antoine Pitrou | d513177 | 2009-10-26 19:22:14 +0000 | [diff] [blame] | 12866 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 12867 | fi |
| 12868 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 12869 | # check for readline 4.0 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12870 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_pre_input_hook in -lreadline" >&5 |
| 12871 | $as_echo_n "checking for rl_pre_input_hook in -lreadline... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 12872 | if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12873 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 12874 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12875 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 12876 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12877 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12878 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12879 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12880 | /* Override any GCC internal prototype to avoid an error. |
| 12881 | Use char because int might match the return type of a GCC |
| 12882 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12883 | #ifdef __cplusplus |
| 12884 | extern "C" |
| 12885 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12886 | char rl_pre_input_hook (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12887 | int |
| 12888 | main () |
| 12889 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12890 | return rl_pre_input_hook (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12891 | ; |
| 12892 | return 0; |
| 12893 | } |
| 12894 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12895 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12896 | ac_cv_lib_readline_rl_pre_input_hook=yes |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 12897 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12898 | ac_cv_lib_readline_rl_pre_input_hook=no |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 12899 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12900 | rm -f core conftest.err conftest.$ac_objext \ |
| 12901 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12902 | LIBS=$ac_check_lib_save_LIBS |
| 12903 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5 |
| 12905 | $as_echo "$ac_cv_lib_readline_rl_pre_input_hook" >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 12906 | if test "x$ac_cv_lib_readline_rl_pre_input_hook" = x""yes; then : |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12907 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12908 | $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] | 12909 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 12910 | fi |
| 12911 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12912 | |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 12913 | # also in 4.0 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12914 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_display_matches_hook in -lreadline" >&5 |
| 12915 | $as_echo_n "checking for rl_completion_display_matches_hook in -lreadline... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 12916 | if test "${ac_cv_lib_readline_rl_completion_display_matches_hook+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12917 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 12918 | else |
| 12919 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 12920 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12921 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 12922 | /* end confdefs.h. */ |
| 12923 | |
| 12924 | /* Override any GCC internal prototype to avoid an error. |
| 12925 | Use char because int might match the return type of a GCC |
| 12926 | builtin and then its argument prototype would still apply. */ |
| 12927 | #ifdef __cplusplus |
| 12928 | extern "C" |
| 12929 | #endif |
| 12930 | char rl_completion_display_matches_hook (); |
| 12931 | int |
| 12932 | main () |
| 12933 | { |
| 12934 | return rl_completion_display_matches_hook (); |
| 12935 | ; |
| 12936 | return 0; |
| 12937 | } |
| 12938 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12939 | if ac_fn_c_try_link "$LINENO"; then : |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 12940 | ac_cv_lib_readline_rl_completion_display_matches_hook=yes |
| 12941 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12942 | ac_cv_lib_readline_rl_completion_display_matches_hook=no |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 12943 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12944 | rm -f core conftest.err conftest.$ac_objext \ |
| 12945 | conftest$ac_exeext conftest.$ac_ext |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 12946 | LIBS=$ac_check_lib_save_LIBS |
| 12947 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12948 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5 |
| 12949 | $as_echo "$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 12950 | if test "x$ac_cv_lib_readline_rl_completion_display_matches_hook" = x""yes; then : |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 12951 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12952 | $as_echo "#define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1" >>confdefs.h |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 12953 | |
| 12954 | fi |
| 12955 | |
| 12956 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 12957 | # check for readline 4.2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12958 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_matches in -lreadline" >&5 |
| 12959 | $as_echo_n "checking for rl_completion_matches in -lreadline... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 12960 | if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12961 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 12962 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12963 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 12964 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12965 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12966 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12967 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12968 | /* Override any GCC internal prototype to avoid an error. |
| 12969 | Use char because int might match the return type of a GCC |
| 12970 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12971 | #ifdef __cplusplus |
| 12972 | extern "C" |
| 12973 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12974 | char rl_completion_matches (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12975 | int |
| 12976 | main () |
| 12977 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12978 | return rl_completion_matches (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12979 | ; |
| 12980 | return 0; |
| 12981 | } |
| 12982 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12983 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12984 | ac_cv_lib_readline_rl_completion_matches=yes |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 12985 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12986 | ac_cv_lib_readline_rl_completion_matches=no |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 12987 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12988 | rm -f core conftest.err conftest.$ac_objext \ |
| 12989 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12990 | LIBS=$ac_check_lib_save_LIBS |
| 12991 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_matches" >&5 |
| 12993 | $as_echo "$ac_cv_lib_readline_rl_completion_matches" >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 12994 | if test "x$ac_cv_lib_readline_rl_completion_matches" = x""yes; then : |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12995 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12996 | $as_echo "#define HAVE_RL_COMPLETION_MATCHES 1" >>confdefs.h |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 12997 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 12998 | fi |
| 12999 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 13000 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13001 | # also in readline 4.2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13002 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13003 | /* end confdefs.h. */ |
| 13004 | #include <readline/readline.h> |
| 13005 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13006 | if ac_fn_c_try_cpp "$LINENO"; then : |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13007 | have_readline=yes |
| 13008 | else |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13009 | have_readline=no |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13010 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13011 | fi |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 13012 | rm -f conftest.err conftest.i conftest.$ac_ext |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13013 | if test $have_readline = yes |
| 13014 | then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13015 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13016 | /* end confdefs.h. */ |
| 13017 | #include <readline/readline.h> |
| 13018 | |
| 13019 | _ACEOF |
| 13020 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13021 | $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then : |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13022 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13023 | $as_echo "#define HAVE_RL_CATCH_SIGNAL 1" >>confdefs.h |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13024 | |
| 13025 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 13026 | rm -f conftest* |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13027 | |
| 13028 | fi |
| 13029 | |
Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 13030 | # End of readline checks: restore LIBS |
| 13031 | LIBS=$LIBS_no_readline |
| 13032 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13033 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken nice()" >&5 |
| 13034 | $as_echo_n "checking for broken nice()... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 13035 | if test "${ac_cv_broken_nice+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13036 | $as_echo_n "(cached) " >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13037 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13038 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13039 | if test "$cross_compiling" = yes; then : |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 13040 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 13041 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13042 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13043 | /* end confdefs.h. */ |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 13044 | |
| 13045 | int main() |
| 13046 | { |
| 13047 | int val1 = nice(1); |
| 13048 | if (val1 != -1 && val1 == nice(2)) |
| 13049 | exit(0); |
| 13050 | exit(1); |
| 13051 | } |
| 13052 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13053 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13054 | if ac_fn_c_try_run "$LINENO"; then : |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 13055 | ac_cv_broken_nice=yes |
| 13056 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13057 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 13058 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13059 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 13060 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 13061 | fi |
| 13062 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13063 | fi |
| 13064 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_nice" >&5 |
| 13066 | $as_echo "$ac_cv_broken_nice" >&6; } |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 13067 | if test "$ac_cv_broken_nice" = yes |
| 13068 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13069 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13070 | $as_echo "#define HAVE_BROKEN_NICE 1" >>confdefs.h |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 13071 | |
| 13072 | fi |
| 13073 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13074 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken poll()" >&5 |
| 13075 | $as_echo_n "checking for broken poll()... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 13076 | if test "${ac_cv_broken_poll+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13077 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13078 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13079 | if test "$cross_compiling" = yes; then : |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13080 | ac_cv_broken_poll=no |
| 13081 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13082 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13083 | /* end confdefs.h. */ |
| 13084 | |
| 13085 | #include <poll.h> |
| 13086 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13087 | int main() |
| 13088 | { |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13089 | struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 }; |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13090 | int poll_test; |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13091 | |
| 13092 | close (42); |
| 13093 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13094 | poll_test = poll(&poll_struct, 1, 0); |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13095 | if (poll_test < 0) |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13096 | return 0; |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13097 | else if (poll_test == 0 && poll_struct.revents != POLLNVAL) |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13098 | return 0; |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13099 | else |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13100 | return 1; |
| 13101 | } |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13102 | |
| 13103 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13104 | if ac_fn_c_try_run "$LINENO"; then : |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13105 | ac_cv_broken_poll=yes |
| 13106 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13107 | ac_cv_broken_poll=no |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13108 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13109 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 13110 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13111 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13112 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13113 | fi |
| 13114 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_poll" >&5 |
| 13116 | $as_echo "$ac_cv_broken_poll" >&6; } |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13117 | if test "$ac_cv_broken_poll" = yes |
| 13118 | then |
| 13119 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13120 | $as_echo "#define HAVE_BROKEN_POLL 1" >>confdefs.h |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13121 | |
| 13122 | fi |
| 13123 | |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13124 | # 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] | 13125 | # (which is not required by ISO C or UNIX spec) and/or if we support |
| 13126 | # tzname[] |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13127 | 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] | 13128 | #include <$ac_cv_struct_tm> |
| 13129 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13130 | " |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 13131 | if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then : |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13132 | |
| 13133 | cat >>confdefs.h <<_ACEOF |
| 13134 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 13135 | _ACEOF |
| 13136 | |
| 13137 | |
| 13138 | fi |
| 13139 | |
| 13140 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 13141 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13142 | $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13143 | |
| 13144 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13145 | ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> |
| 13146 | " |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 13147 | if test "x$ac_cv_have_decl_tzname" = x""yes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13148 | ac_have_decl=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13149 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13150 | ac_have_decl=0 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13151 | fi |
| 13152 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13153 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13154 | #define HAVE_DECL_TZNAME $ac_have_decl |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13155 | _ACEOF |
| 13156 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13157 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 |
| 13158 | $as_echo_n "checking for tzname... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 13159 | if test "${ac_cv_var_tzname+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13160 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13161 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13162 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13163 | /* end confdefs.h. */ |
| 13164 | #include <time.h> |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13165 | #if !HAVE_DECL_TZNAME |
| 13166 | extern char *tzname[]; |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13167 | #endif |
| 13168 | |
| 13169 | int |
| 13170 | main () |
| 13171 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13172 | return tzname[0][0]; |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13173 | ; |
| 13174 | return 0; |
| 13175 | } |
| 13176 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13177 | if ac_fn_c_try_link "$LINENO"; then : |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13178 | ac_cv_var_tzname=yes |
| 13179 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13180 | ac_cv_var_tzname=no |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13181 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13182 | rm -f core conftest.err conftest.$ac_objext \ |
| 13183 | conftest$ac_exeext conftest.$ac_ext |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13184 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 |
| 13186 | $as_echo "$ac_cv_var_tzname" >&6; } |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13187 | if test $ac_cv_var_tzname = yes; then |
| 13188 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13189 | $as_echo "#define HAVE_TZNAME 1" >>confdefs.h |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13190 | |
| 13191 | fi |
| 13192 | fi |
| 13193 | |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13194 | |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 13195 | # check tzset(3) exists and works like we expect it to |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13196 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working tzset()" >&5 |
| 13197 | $as_echo_n "checking for working tzset()... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 13198 | if test "${ac_cv_working_tzset+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13199 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13200 | else |
| 13201 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13202 | if test "$cross_compiling" = yes; then : |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13203 | ac_cv_working_tzset=no |
| 13204 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13205 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13206 | /* end confdefs.h. */ |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13207 | |
| 13208 | #include <stdlib.h> |
| 13209 | #include <time.h> |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13210 | #include <string.h> |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13211 | |
| 13212 | #if HAVE_TZNAME |
| 13213 | extern char *tzname[]; |
| 13214 | #endif |
| 13215 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13216 | int main() |
| 13217 | { |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13218 | /* Note that we need to ensure that not only does tzset(3) |
| 13219 | do 'something' with localtime, but it works as documented |
| 13220 | 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] | 13221 | This includes making sure that tzname is set properly if |
| 13222 | tm->tm_zone does not exist since it is the alternative way |
| 13223 | of getting timezone info. |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13224 | |
| 13225 | Red Hat 6.2 doesn't understand the southern hemisphere |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 13226 | after New Year's Day. |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13227 | */ |
| 13228 | |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 13229 | time_t groundhogday = 1044144000; /* GMT-based */ |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13230 | time_t midyear = groundhogday + (365 * 24 * 3600 / 2); |
| 13231 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 13232 | putenv("TZ=UTC+0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13233 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13234 | if (localtime(&groundhogday)->tm_hour != 0) |
| 13235 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13236 | #if HAVE_TZNAME |
| 13237 | /* For UTC, tzname[1] is sometimes "", sometimes " " */ |
| 13238 | if (strcmp(tzname[0], "UTC") || |
| 13239 | (tzname[1][0] != 0 && tzname[1][0] != ' ')) |
| 13240 | exit(1); |
| 13241 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13242 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 13243 | putenv("TZ=EST+5EDT,M4.1.0,M10.5.0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13244 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13245 | if (localtime(&groundhogday)->tm_hour != 19) |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13246 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13247 | #if HAVE_TZNAME |
| 13248 | if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT")) |
| 13249 | exit(1); |
| 13250 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13251 | |
| 13252 | putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0"); |
| 13253 | tzset(); |
| 13254 | if (localtime(&groundhogday)->tm_hour != 11) |
| 13255 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13256 | #if HAVE_TZNAME |
| 13257 | if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT")) |
| 13258 | exit(1); |
| 13259 | #endif |
| 13260 | |
| 13261 | #if HAVE_STRUCT_TM_TM_ZONE |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13262 | if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT")) |
| 13263 | exit(1); |
| 13264 | if (strcmp(localtime(&midyear)->tm_zone, "AEST")) |
| 13265 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13266 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13267 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13268 | exit(0); |
| 13269 | } |
| 13270 | |
| 13271 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13272 | if ac_fn_c_try_run "$LINENO"; then : |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13273 | ac_cv_working_tzset=yes |
| 13274 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13275 | ac_cv_working_tzset=no |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13276 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13277 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 13278 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13279 | fi |
| 13280 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13281 | fi |
| 13282 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_tzset" >&5 |
| 13284 | $as_echo "$ac_cv_working_tzset" >&6; } |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13285 | if test "$ac_cv_working_tzset" = yes |
| 13286 | then |
| 13287 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13288 | $as_echo "#define HAVE_WORKING_TZSET 1" >>confdefs.h |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13289 | |
| 13290 | fi |
| 13291 | |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 13292 | # Look for subsecond timestamps in struct stat |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13293 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec in struct stat" >&5 |
| 13294 | $as_echo_n "checking for tv_nsec in struct stat... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 13295 | if test "${ac_cv_stat_tv_nsec+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13296 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 13297 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13298 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13299 | /* end confdefs.h. */ |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 13300 | #include <sys/stat.h> |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 13301 | int |
| 13302 | main () |
| 13303 | { |
| 13304 | |
| 13305 | struct stat st; |
| 13306 | st.st_mtim.tv_nsec = 1; |
| 13307 | |
| 13308 | ; |
| 13309 | return 0; |
| 13310 | } |
| 13311 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13312 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | a32c994 | 2002-09-09 16:17:47 +0000 | [diff] [blame] | 13313 | ac_cv_stat_tv_nsec=yes |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 13314 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13315 | ac_cv_stat_tv_nsec=no |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 13316 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13317 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13318 | fi |
| 13319 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13320 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec" >&5 |
| 13321 | $as_echo "$ac_cv_stat_tv_nsec" >&6; } |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 13322 | if test "$ac_cv_stat_tv_nsec" = yes |
| 13323 | then |
| 13324 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13325 | $as_echo "#define HAVE_STAT_TV_NSEC 1" >>confdefs.h |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 13326 | |
| 13327 | fi |
| 13328 | |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 13329 | # Look for BSD style subsecond timestamps in struct stat |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13330 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec2 in struct stat" >&5 |
| 13331 | $as_echo_n "checking for tv_nsec2 in struct stat... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 13332 | if test "${ac_cv_stat_tv_nsec2+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13333 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 13334 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13335 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 13336 | /* end confdefs.h. */ |
| 13337 | #include <sys/stat.h> |
| 13338 | int |
| 13339 | main () |
| 13340 | { |
| 13341 | |
| 13342 | struct stat st; |
| 13343 | st.st_mtimespec.tv_nsec = 1; |
| 13344 | |
| 13345 | ; |
| 13346 | return 0; |
| 13347 | } |
| 13348 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13349 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 13350 | ac_cv_stat_tv_nsec2=yes |
| 13351 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13352 | ac_cv_stat_tv_nsec2=no |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 13353 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13354 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13355 | fi |
| 13356 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13357 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec2" >&5 |
| 13358 | $as_echo "$ac_cv_stat_tv_nsec2" >&6; } |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 13359 | if test "$ac_cv_stat_tv_nsec2" = yes |
| 13360 | then |
| 13361 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13362 | $as_echo "#define HAVE_STAT_TV_NSEC2 1" >>confdefs.h |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 13363 | |
| 13364 | fi |
| 13365 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13366 | # On HP/UX 11.0, mvwdelch is a block with a return statement |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13367 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mvwdelch is an expression" >&5 |
| 13368 | $as_echo_n "checking whether mvwdelch is an expression... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 13369 | if test "${ac_cv_mvwdelch_is_expression+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13370 | $as_echo_n "(cached) " >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13371 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13372 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13373 | /* end confdefs.h. */ |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13374 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13375 | int |
| 13376 | main () |
| 13377 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13378 | |
| 13379 | int rtn; |
| 13380 | rtn = mvwdelch(0,0,0); |
| 13381 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13382 | ; |
| 13383 | return 0; |
| 13384 | } |
| 13385 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13386 | if ac_fn_c_try_compile "$LINENO"; then : |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13387 | ac_cv_mvwdelch_is_expression=yes |
| 13388 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13389 | ac_cv_mvwdelch_is_expression=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13390 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13391 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13392 | fi |
| 13393 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mvwdelch_is_expression" >&5 |
| 13395 | $as_echo "$ac_cv_mvwdelch_is_expression" >&6; } |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13396 | |
| 13397 | if test "$ac_cv_mvwdelch_is_expression" = yes |
| 13398 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13399 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13400 | $as_echo "#define MVWDELCH_IS_EXPRESSION 1" >>confdefs.h |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13401 | |
| 13402 | fi |
| 13403 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13404 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether WINDOW has _flags" >&5 |
| 13405 | $as_echo_n "checking whether WINDOW has _flags... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 13406 | if test "${ac_cv_window_has_flags+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13407 | $as_echo_n "(cached) " >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13408 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13409 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13410 | /* end confdefs.h. */ |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13411 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13412 | int |
| 13413 | main () |
| 13414 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13415 | |
| 13416 | WINDOW *w; |
| 13417 | w->_flags = 0; |
| 13418 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13419 | ; |
| 13420 | return 0; |
| 13421 | } |
| 13422 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13423 | if ac_fn_c_try_compile "$LINENO"; then : |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13424 | ac_cv_window_has_flags=yes |
| 13425 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13426 | ac_cv_window_has_flags=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13427 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13428 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13429 | fi |
| 13430 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_window_has_flags" >&5 |
| 13432 | $as_echo "$ac_cv_window_has_flags" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13433 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13434 | |
| 13435 | if test "$ac_cv_window_has_flags" = yes |
| 13436 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13437 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13438 | $as_echo "#define WINDOW_HAS_FLAGS 1" >>confdefs.h |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13439 | |
| 13440 | fi |
| 13441 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13442 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_term_resized" >&5 |
| 13443 | $as_echo_n "checking for is_term_resized... " >&6; } |
| 13444 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13445 | /* end confdefs.h. */ |
| 13446 | #include <curses.h> |
| 13447 | int |
| 13448 | main () |
| 13449 | { |
| 13450 | void *x=is_term_resized |
| 13451 | ; |
| 13452 | return 0; |
| 13453 | } |
| 13454 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13455 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 13456 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13457 | $as_echo "#define HAVE_CURSES_IS_TERM_RESIZED 1" >>confdefs.h |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13458 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13460 | $as_echo "yes" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13461 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13462 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13463 | $as_echo "no" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13464 | |
| 13465 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13466 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13467 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13468 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resize_term" >&5 |
| 13469 | $as_echo_n "checking for resize_term... " >&6; } |
| 13470 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13471 | /* end confdefs.h. */ |
| 13472 | #include <curses.h> |
| 13473 | int |
| 13474 | main () |
| 13475 | { |
| 13476 | void *x=resize_term |
| 13477 | ; |
| 13478 | return 0; |
| 13479 | } |
| 13480 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13481 | if ac_fn_c_try_compile "$LINENO"; then : |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13482 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13483 | $as_echo "#define HAVE_CURSES_RESIZE_TERM 1" >>confdefs.h |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13484 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13486 | $as_echo "yes" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13487 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13489 | $as_echo "no" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13490 | |
| 13491 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13492 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13493 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13494 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resizeterm" >&5 |
| 13495 | $as_echo_n "checking for resizeterm... " >&6; } |
| 13496 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13497 | /* end confdefs.h. */ |
| 13498 | #include <curses.h> |
| 13499 | int |
| 13500 | main () |
| 13501 | { |
| 13502 | void *x=resizeterm |
| 13503 | ; |
| 13504 | return 0; |
| 13505 | } |
| 13506 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13507 | if ac_fn_c_try_compile "$LINENO"; then : |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13508 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13509 | $as_echo "#define HAVE_CURSES_RESIZETERM 1" >>confdefs.h |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13510 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13512 | $as_echo "yes" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13513 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13514 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13515 | $as_echo "no" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13516 | |
| 13517 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13518 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13519 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13520 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5 |
| 13521 | $as_echo_n "checking for /dev/ptmx... " >&6; } |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 13522 | |
| 13523 | if test -r /dev/ptmx |
| 13524 | then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 13526 | $as_echo "yes" >&6; } |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 13527 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13528 | $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 13529 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 13530 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13532 | $as_echo "no" >&6; } |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 13533 | fi |
| 13534 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13535 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5 |
| 13536 | $as_echo_n "checking for /dev/ptc... " >&6; } |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 13537 | |
| 13538 | if test -r /dev/ptc |
| 13539 | then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 13541 | $as_echo "yes" >&6; } |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 13542 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13543 | $as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 13544 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 13545 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13547 | $as_echo "no" >&6; } |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 13548 | fi |
| 13549 | |
Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 13550 | if test "$have_long_long" = yes |
| 13551 | then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13552 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for %lld and %llu printf() format support" >&5 |
| 13553 | $as_echo_n "checking for %lld and %llu printf() format support... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 13554 | if test "${ac_cv_have_long_long_format+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13555 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 13556 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13557 | if test "$cross_compiling" = yes; then : |
Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 13558 | ac_cv_have_long_long_format=no |
| 13559 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13560 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 13561 | /* end confdefs.h. */ |
| 13562 | |
| 13563 | #include <stdio.h> |
| 13564 | #include <stddef.h> |
| 13565 | #include <string.h> |
| 13566 | |
| 13567 | #ifdef HAVE_SYS_TYPES_H |
| 13568 | #include <sys/types.h> |
| 13569 | #endif |
| 13570 | |
| 13571 | int main() |
| 13572 | { |
| 13573 | char buffer[256]; |
| 13574 | |
| 13575 | if (sprintf(buffer, "%lld", (long long)123) < 0) |
| 13576 | return 1; |
| 13577 | if (strcmp(buffer, "123")) |
| 13578 | return 1; |
| 13579 | |
| 13580 | if (sprintf(buffer, "%lld", (long long)-123) < 0) |
| 13581 | return 1; |
| 13582 | if (strcmp(buffer, "-123")) |
| 13583 | return 1; |
| 13584 | |
| 13585 | if (sprintf(buffer, "%llu", (unsigned long long)123) < 0) |
| 13586 | return 1; |
| 13587 | if (strcmp(buffer, "123")) |
| 13588 | return 1; |
| 13589 | |
| 13590 | return 0; |
| 13591 | } |
| 13592 | |
| 13593 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13594 | if ac_fn_c_try_run "$LINENO"; then : |
Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 13595 | ac_cv_have_long_long_format=yes |
| 13596 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13597 | ac_cv_have_long_long_format=no |
Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 13598 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13599 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 13600 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 13601 | fi |
| 13602 | |
| 13603 | |
Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 13604 | fi |
| 13605 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_long_long_format" >&5 |
| 13607 | $as_echo "$ac_cv_have_long_long_format" >&6; } |
Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 13608 | fi |
| 13609 | |
Mark Dickinson | 89d7d41 | 2009-12-31 20:50:59 +0000 | [diff] [blame] | 13610 | if test "$ac_cv_have_long_long_format" = yes |
Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 13611 | then |
| 13612 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13613 | $as_echo "#define PY_FORMAT_LONG_LONG \"ll\"" >>confdefs.h |
Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 13614 | |
| 13615 | fi |
| 13616 | |
Ronald Oussoren | 3c1928a | 2009-11-19 17:15:31 +0000 | [diff] [blame] | 13617 | if test $ac_sys_system = Darwin |
| 13618 | then |
| 13619 | LIBS="$LIBS -framework CoreFoundation" |
| 13620 | fi |
Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 13621 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13622 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for %zd printf() format support" >&5 |
| 13623 | $as_echo_n "checking for %zd printf() format support... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 13624 | if test "${ac_cv_have_size_t_format+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13625 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13626 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13627 | if test "$cross_compiling" = yes; then : |
Benjamin Peterson | 8f326b2 | 2009-12-13 02:10:36 +0000 | [diff] [blame] | 13628 | ac_cv_have_size_t_format="cross -- assuming yes" |
| 13629 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13630 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13631 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13632 | /* end confdefs.h. */ |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13633 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13634 | #include <stdio.h> |
| 13635 | #include <stddef.h> |
| 13636 | #include <string.h> |
| 13637 | |
Christian Heimes | 2c18161 | 2007-12-17 20:04:13 +0000 | [diff] [blame] | 13638 | #ifdef HAVE_SYS_TYPES_H |
| 13639 | #include <sys/types.h> |
| 13640 | #endif |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 13641 | |
| 13642 | #ifdef HAVE_SSIZE_T |
| 13643 | typedef ssize_t Py_ssize_t; |
| 13644 | #elif SIZEOF_VOID_P == SIZEOF_LONG |
| 13645 | typedef long Py_ssize_t; |
| 13646 | #else |
| 13647 | typedef int Py_ssize_t; |
| 13648 | #endif |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13649 | |
Christian Heimes | 2c18161 | 2007-12-17 20:04:13 +0000 | [diff] [blame] | 13650 | int main() |
| 13651 | { |
| 13652 | char buffer[256]; |
| 13653 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13654 | if(sprintf(buffer, "%zd", (size_t)123) < 0) |
| 13655 | return 1; |
| 13656 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 13657 | if (strcmp(buffer, "123")) |
| 13658 | return 1; |
| 13659 | |
| 13660 | if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0) |
| 13661 | return 1; |
| 13662 | |
| 13663 | if (strcmp(buffer, "-123")) |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13664 | return 1; |
| 13665 | |
| 13666 | return 0; |
| 13667 | } |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13668 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13669 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13670 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13671 | ac_cv_have_size_t_format=yes |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 13672 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13673 | ac_cv_have_size_t_format=no |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 13674 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13675 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 13676 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 13677 | fi |
| 13678 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13679 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_size_t_format" >&5 |
| 13681 | $as_echo "$ac_cv_have_size_t_format" >&6; } |
Benjamin Peterson | 8f326b2 | 2009-12-13 02:10:36 +0000 | [diff] [blame] | 13682 | if test "$ac_cv_have_size_t_format" != no ; then |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13683 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13684 | $as_echo "#define PY_FORMAT_SIZE_T \"z\"" >>confdefs.h |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13685 | |
| 13686 | fi |
| 13687 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13688 | ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 13689 | #ifdef HAVE_SYS_TYPES_H |
| 13690 | #include <sys/types.h> |
| 13691 | #endif |
| 13692 | #ifdef HAVE_SYS_SOCKET_H |
| 13693 | #include <sys/socket.h> |
| 13694 | #endif |
| 13695 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13696 | " |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 13697 | if test "x$ac_cv_type_socklen_t" = x""yes; then : |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 13698 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13699 | else |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 13700 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13701 | $as_echo "#define socklen_t int" >>confdefs.h |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 13702 | |
| 13703 | fi |
| 13704 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13705 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13706 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken mbstowcs" >&5 |
| 13707 | $as_echo_n "checking for broken mbstowcs... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 13708 | if test "${ac_cv_broken_mbstowcs+set}" = set; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13709 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13710 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13711 | if test "$cross_compiling" = yes; then : |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 13712 | ac_cv_broken_mbstowcs=no |
| 13713 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13714 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 13715 | /* end confdefs.h. */ |
| 13716 | |
| 13717 | #include<stdlib.h> |
| 13718 | int main() { |
| 13719 | size_t len = -1; |
| 13720 | const char *str = "text"; |
| 13721 | len = mbstowcs(NULL, str, 0); |
| 13722 | return (len != 4); |
| 13723 | } |
| 13724 | |
| 13725 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13726 | if ac_fn_c_try_run "$LINENO"; then : |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 13727 | ac_cv_broken_mbstowcs=no |
| 13728 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13729 | ac_cv_broken_mbstowcs=yes |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 13730 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13731 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 13732 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 13733 | fi |
| 13734 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13735 | fi |
| 13736 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_mbstowcs" >&5 |
| 13738 | $as_echo "$ac_cv_broken_mbstowcs" >&6; } |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 13739 | if test "$ac_cv_broken_mbstowcs" = yes |
| 13740 | then |
| 13741 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13742 | $as_echo "#define HAVE_BROKEN_MBSTOWCS 1" >>confdefs.h |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 13743 | |
| 13744 | fi |
| 13745 | |
Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 13746 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports computed gotos" >&5 |
| 13747 | $as_echo_n "checking whether $CC supports computed gotos... " >&6; } |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 13748 | if test "${ac_cv_computed_gotos+set}" = set; then : |
Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 13749 | $as_echo_n "(cached) " >&6 |
| 13750 | else |
| 13751 | if test "$cross_compiling" = yes; then : |
| 13752 | ac_cv_computed_gotos=no |
| 13753 | else |
| 13754 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13755 | /* end confdefs.h. */ |
| 13756 | |
| 13757 | int main(int argc, char **argv) |
| 13758 | { |
| 13759 | static void *targets[1] = { &&LABEL1 }; |
| 13760 | goto LABEL2; |
| 13761 | LABEL1: |
| 13762 | return 0; |
| 13763 | LABEL2: |
| 13764 | goto *targets[0]; |
| 13765 | return 1; |
| 13766 | } |
| 13767 | |
| 13768 | _ACEOF |
| 13769 | if ac_fn_c_try_run "$LINENO"; then : |
| 13770 | ac_cv_computed_gotos=yes |
| 13771 | else |
| 13772 | ac_cv_computed_gotos=no |
| 13773 | fi |
| 13774 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 13775 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 13776 | fi |
| 13777 | |
| 13778 | fi |
| 13779 | |
| 13780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_computed_gotos" >&5 |
| 13781 | $as_echo "$ac_cv_computed_gotos" >&6; } |
| 13782 | if test "$ac_cv_computed_gotos" = yes |
| 13783 | then |
| 13784 | |
| 13785 | $as_echo "#define HAVE_COMPUTED_GOTOS 1" >>confdefs.h |
| 13786 | |
| 13787 | fi |
| 13788 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13789 | # Check for --with-computed-gotos |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13790 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-computed-gotos" >&5 |
| 13791 | $as_echo_n "checking for --with-computed-gotos... " >&6; } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13792 | |
| 13793 | # Check whether --with-computed-gotos was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13794 | if test "${with_computed_gotos+set}" = set; then : |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13795 | withval=$with_computed_gotos; |
Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 13796 | if test "$withval" = yes |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13797 | then |
| 13798 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13799 | $as_echo "#define USE_COMPUTED_GOTOS 1" >>confdefs.h |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13800 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 13802 | $as_echo "yes" >&6; } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13803 | fi |
Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 13804 | if test "$withval" = no |
| 13805 | then |
| 13806 | |
| 13807 | $as_echo "#define USE_COMPUTED_GOTOS 0" >>confdefs.h |
| 13808 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13810 | $as_echo "no" >&6; } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13811 | fi |
| 13812 | |
Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 13813 | else |
| 13814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5 |
| 13815 | $as_echo "no value specified" >&6; } |
| 13816 | fi |
| 13817 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13818 | |
Benjamin Peterson | d8d835b | 2010-10-15 23:14:46 +0000 | [diff] [blame] | 13819 | case $ac_sys_system in |
| 13820 | AIX*) |
| 13821 | |
| 13822 | $as_echo "#define HAVE_BROKEN_PIPE_BUF 1" >>confdefs.h |
| 13823 | ;; |
| 13824 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13825 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13826 | |
Gregory P. Smith | 138fa43 | 2010-12-13 08:00:52 +0000 | [diff] [blame] | 13827 | ac_fn_c_check_func "$LINENO" "pipe2" "ac_cv_func_pipe2" |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 13828 | if test "x$ac_cv_func_pipe2" = x""yes; then : |
Gregory P. Smith | 138fa43 | 2010-12-13 08:00:52 +0000 | [diff] [blame] | 13829 | |
| 13830 | $as_echo "#define HAVE_PIPE2 1" >>confdefs.h |
| 13831 | |
| 13832 | fi |
Jesus Cea | 6a79229 | 2010-05-03 21:18:48 +0000 | [diff] [blame] | 13833 | |
| 13834 | |
Mark Dickinson | b2153e9 | 2010-05-05 22:31:36 +0000 | [diff] [blame] | 13835 | |
| 13836 | |
Martin v. Löwis | 06f15bb | 2001-12-02 13:02:32 +0000 | [diff] [blame] | 13837 | for h in `(cd $srcdir;echo Python/thread_*.h)` |
| 13838 | do |
| 13839 | THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" |
| 13840 | done |
| 13841 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13842 | |
Neal Norwitz | d24499d | 2005-12-18 21:36:39 +0000 | [diff] [blame] | 13843 | SRCDIRS="Parser Grammar Objects Python Modules Mac" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13844 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build directories" >&5 |
| 13845 | $as_echo_n "checking for build directories... " >&6; } |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 13846 | for dir in $SRCDIRS; do |
| 13847 | if test ! -d $dir; then |
| 13848 | mkdir $dir |
Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 13849 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 13850 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 |
| 13852 | $as_echo "done" >&6; } |
Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 13853 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13854 | # generate output files |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 13855 | 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] | 13856 | |
Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 13857 | ac_config_files="$ac_config_files Modules/ld_so_aix" |
| 13858 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13859 | cat >confcache <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13860 | # This file is a shell script that caches the results of configure |
| 13861 | # 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] | 13862 | # scripts and configure runs, see configure's option --config-cache. |
| 13863 | # It is not useful on other systems. If it contains results you don't |
| 13864 | # want to keep, you may remove or edit it. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13865 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13866 | # config.status only pays attention to the cache file if you give it |
| 13867 | # the --recheck option to rerun configure. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13868 | # |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13869 | # `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] | 13870 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 13871 | # following values. |
| 13872 | |
| 13873 | _ACEOF |
| 13874 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 13875 | # The following way of writing the cache mishandles newlines in values, |
| 13876 | # but we know of no workaround that is simple, portable, and efficient. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13877 | # So, we kill variables containing newlines. |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13878 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 13879 | # 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] | 13880 | ( |
| 13881 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 13882 | eval ac_val=\$$ac_var |
| 13883 | case $ac_val in #( |
| 13884 | *${as_nl}*) |
| 13885 | case $ac_var in #( |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13886 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 13887 | $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] | 13888 | esac |
| 13889 | case $ac_var in #( |
| 13890 | _ | IFS | as_nl) ;; #( |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13891 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 13892 | *) { eval $ac_var=; unset $ac_var;} ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13893 | esac ;; |
| 13894 | esac |
| 13895 | done |
| 13896 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13897 | (set) 2>&1 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13898 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 13899 | *${as_nl}ac_space=\ *) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13900 | # `set' does not quote correctly, so add quotes: double-quote |
| 13901 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13902 | sed -n \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13903 | "s/'/'\\\\''/g; |
| 13904 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13905 | ;; #( |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13906 | *) |
| 13907 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13908 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13909 | ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13910 | esac | |
| 13911 | sort |
| 13912 | ) | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13913 | sed ' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13914 | /^ac_cv_env_/b end |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13915 | t clear |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13916 | :clear |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13917 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 13918 | t end |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13919 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 13920 | :end' >>confcache |
| 13921 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 13922 | if test -w "$cache_file"; then |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 13923 | test "x$cache_file" != "x/dev/null" && |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13924 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
| 13925 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 13926 | cat confcache >$cache_file |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13927 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13928 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
| 13929 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13930 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13931 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13932 | rm -f confcache |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13933 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13934 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 13935 | # Let make expand exec_prefix. |
| 13936 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13937 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13938 | DEFS=-DHAVE_CONFIG_H |
| 13939 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13940 | ac_libobjs= |
| 13941 | ac_ltlibobjs= |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 13942 | U= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13943 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 13944 | # 1. Remove the extension, and $U if already installed. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13945 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13946 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13947 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 13948 | # will be set to the directory where LIBOBJS objects are built. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13949 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 13950 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13951 | done |
| 13952 | LIBOBJS=$ac_libobjs |
| 13953 | |
| 13954 | LTLIBOBJS=$ac_ltlibobjs |
| 13955 | |
| 13956 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13957 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13958 | |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 13959 | : ${CONFIG_STATUS=./config.status} |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13960 | ac_write_fail=0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13961 | ac_clean_files_save=$ac_clean_files |
| 13962 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13963 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
| 13964 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 13965 | as_write_fail=0 |
| 13966 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13967 | #! $SHELL |
| 13968 | # Generated by $as_me. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13969 | # Run this file to recreate the current configuration. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13970 | # Compiler output produced by configure, useful for debugging |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13971 | # configure, is in config.log if it exists. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13972 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13973 | debug=false |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13974 | ac_cs_recheck=false |
| 13975 | ac_cs_silent=false |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 13976 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13977 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 13978 | export SHELL |
| 13979 | _ASEOF |
| 13980 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 13981 | ## -------------------- ## |
| 13982 | ## M4sh Initialization. ## |
| 13983 | ## -------------------- ## |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 13984 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13985 | # Be more Bourne compatible |
| 13986 | DUALCASE=1; export DUALCASE # for MKS sh |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13987 | 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] | 13988 | emulate sh |
| 13989 | NULLCMD=: |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13990 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13991 | # is contrary to our usage. Disable this feature. |
| 13992 | alias -g '${1+"$@"}'='"$@"' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13993 | setopt NO_GLOB_SUBST |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 13994 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13995 | case `(set -o) 2>/dev/null` in #( |
| 13996 | *posix*) : |
| 13997 | set -o posix ;; #( |
| 13998 | *) : |
| 13999 | ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14000 | esac |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14001 | fi |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 14002 | |
| 14003 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14004 | as_nl=' |
| 14005 | ' |
| 14006 | export as_nl |
| 14007 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 14008 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 14009 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 14010 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 14011 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 14012 | # but without wasting forks for bash or zsh. |
| 14013 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 14014 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 14015 | as_echo='print -r --' |
| 14016 | as_echo_n='print -rn --' |
| 14017 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 14018 | as_echo='printf %s\n' |
| 14019 | as_echo_n='printf %s' |
| 14020 | else |
| 14021 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 14022 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 14023 | as_echo_n='/usr/ucb/echo -n' |
| 14024 | else |
| 14025 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 14026 | as_echo_n_body='eval |
| 14027 | arg=$1; |
| 14028 | case $arg in #( |
| 14029 | *"$as_nl"*) |
| 14030 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 14031 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 14032 | esac; |
| 14033 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 14034 | ' |
| 14035 | export as_echo_n_body |
| 14036 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 14037 | fi |
| 14038 | export as_echo_body |
| 14039 | as_echo='sh -c $as_echo_body as_echo' |
| 14040 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14041 | |
| 14042 | # The user is always right. |
| 14043 | if test "${PATH_SEPARATOR+set}" != set; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14044 | PATH_SEPARATOR=: |
| 14045 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 14046 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 14047 | PATH_SEPARATOR=';' |
| 14048 | } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14049 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14050 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14051 | |
| 14052 | # IFS |
| 14053 | # We need space, tab and new line, in precisely that order. Quoting is |
| 14054 | # there to prevent editors from complaining about space-tab. |
| 14055 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 14056 | # splitting by setting IFS to empty value.) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14057 | IFS=" "" $as_nl" |
| 14058 | |
| 14059 | # Find who we are. Look in the path if we contain no directory separator. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14060 | case $0 in #(( |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14061 | *[\\/]* ) as_myself=$0 ;; |
| 14062 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14063 | for as_dir in $PATH |
| 14064 | do |
| 14065 | IFS=$as_save_IFS |
| 14066 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14067 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 14068 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14069 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14070 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14071 | ;; |
| 14072 | esac |
| 14073 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 14074 | # in which case we are not to be found in the path. |
| 14075 | if test "x$as_myself" = x; then |
| 14076 | as_myself=$0 |
| 14077 | fi |
| 14078 | if test ! -f "$as_myself"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14079 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 14080 | exit 1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14081 | fi |
| 14082 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14083 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 14084 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 14085 | # suppresses any "Segmentation fault" message there. '((' could |
| 14086 | # trigger a bug in pdksh 5.2.14. |
| 14087 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 14088 | do eval test x\${$as_var+set} = xset \ |
| 14089 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14090 | done |
| 14091 | PS1='$ ' |
| 14092 | PS2='> ' |
| 14093 | PS4='+ ' |
| 14094 | |
| 14095 | # NLS nuisances. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14096 | LC_ALL=C |
| 14097 | export LC_ALL |
| 14098 | LANGUAGE=C |
| 14099 | export LANGUAGE |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14100 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14101 | # CDPATH. |
| 14102 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 14103 | |
| 14104 | |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 14105 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 14106 | # ---------------------------------------- |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14107 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 14108 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 14109 | # script with STATUS, using 1 if that was 0. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14110 | as_fn_error () |
| 14111 | { |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 14112 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 14113 | if test "$4"; then |
| 14114 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 14115 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14116 | fi |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 14117 | $as_echo "$as_me: error: $2" >&2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14118 | as_fn_exit $as_status |
| 14119 | } # as_fn_error |
| 14120 | |
| 14121 | |
| 14122 | # as_fn_set_status STATUS |
| 14123 | # ----------------------- |
| 14124 | # Set $? to STATUS, without forking. |
| 14125 | as_fn_set_status () |
| 14126 | { |
| 14127 | return $1 |
| 14128 | } # as_fn_set_status |
| 14129 | |
| 14130 | # as_fn_exit STATUS |
| 14131 | # ----------------- |
| 14132 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 14133 | as_fn_exit () |
| 14134 | { |
| 14135 | set +e |
| 14136 | as_fn_set_status $1 |
| 14137 | exit $1 |
| 14138 | } # as_fn_exit |
| 14139 | |
| 14140 | # as_fn_unset VAR |
| 14141 | # --------------- |
| 14142 | # Portably unset VAR. |
| 14143 | as_fn_unset () |
| 14144 | { |
| 14145 | { eval $1=; unset $1;} |
| 14146 | } |
| 14147 | as_unset=as_fn_unset |
| 14148 | # as_fn_append VAR VALUE |
| 14149 | # ---------------------- |
| 14150 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 14151 | # advantage of any shell optimizations that allow amortized linear growth over |
| 14152 | # repeated appends, instead of the typical quadratic growth present in naive |
| 14153 | # implementations. |
| 14154 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 14155 | eval 'as_fn_append () |
| 14156 | { |
| 14157 | eval $1+=\$2 |
| 14158 | }' |
| 14159 | else |
| 14160 | as_fn_append () |
| 14161 | { |
| 14162 | eval $1=\$$1\$2 |
| 14163 | } |
| 14164 | fi # as_fn_append |
| 14165 | |
| 14166 | # as_fn_arith ARG... |
| 14167 | # ------------------ |
| 14168 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 14169 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 14170 | # must be portable across $(()) and expr. |
| 14171 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 14172 | eval 'as_fn_arith () |
| 14173 | { |
| 14174 | as_val=$(( $* )) |
| 14175 | }' |
| 14176 | else |
| 14177 | as_fn_arith () |
| 14178 | { |
| 14179 | as_val=`expr "$@" || test $? -eq 1` |
| 14180 | } |
| 14181 | fi # as_fn_arith |
| 14182 | |
| 14183 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14184 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 14185 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 14186 | as_expr=expr |
| 14187 | else |
| 14188 | as_expr=false |
| 14189 | fi |
| 14190 | |
| 14191 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 14192 | as_basename=basename |
| 14193 | else |
| 14194 | as_basename=false |
| 14195 | fi |
| 14196 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14197 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 14198 | as_dirname=dirname |
| 14199 | else |
| 14200 | as_dirname=false |
| 14201 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14202 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14203 | as_me=`$as_basename -- "$0" || |
| 14204 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 14205 | X"$0" : 'X\(//\)$' \| \ |
| 14206 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14207 | $as_echo X/"$0" | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14208 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 14209 | s//\1/ |
| 14210 | q |
| 14211 | } |
| 14212 | /^X\/\(\/\/\)$/{ |
| 14213 | s//\1/ |
| 14214 | q |
| 14215 | } |
| 14216 | /^X\/\(\/\).*/{ |
| 14217 | s//\1/ |
| 14218 | q |
| 14219 | } |
| 14220 | s/.*/./; q'` |
| 14221 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14222 | # Avoid depending upon Character Ranges. |
| 14223 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 14224 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 14225 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 14226 | as_cr_digits='0123456789' |
| 14227 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14228 | |
| 14229 | ECHO_C= ECHO_N= ECHO_T= |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14230 | case `echo -n x` in #((((( |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14231 | -n*) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14232 | case `echo 'xy\c'` in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14233 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14234 | xy) ECHO_C='\c';; |
| 14235 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 14236 | ECHO_T=' ';; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14237 | esac;; |
| 14238 | *) |
| 14239 | ECHO_N='-n';; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14240 | esac |
Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 14241 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14242 | rm -f conf$$ conf$$.exe conf$$.file |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14243 | if test -d conf$$.dir; then |
| 14244 | rm -f conf$$.dir/conf$$.file |
| 14245 | else |
| 14246 | rm -f conf$$.dir |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14247 | mkdir conf$$.dir 2>/dev/null |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14248 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14249 | if (echo >conf$$.file) 2>/dev/null; then |
| 14250 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 14251 | as_ln_s='ln -s' |
| 14252 | # ... but there are two gotchas: |
| 14253 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 14254 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 14255 | # In both cases, we have to default to `cp -p'. |
| 14256 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 14257 | as_ln_s='cp -p' |
| 14258 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 14259 | as_ln_s=ln |
| 14260 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14261 | as_ln_s='cp -p' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14262 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14263 | else |
| 14264 | as_ln_s='cp -p' |
| 14265 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14266 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 14267 | rmdir conf$$.dir 2>/dev/null |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14268 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14269 | |
| 14270 | # as_fn_mkdir_p |
| 14271 | # ------------- |
| 14272 | # Create "$as_dir" as a directory, including parents if necessary. |
| 14273 | as_fn_mkdir_p () |
| 14274 | { |
| 14275 | |
| 14276 | case $as_dir in #( |
| 14277 | -*) as_dir=./$as_dir;; |
| 14278 | esac |
| 14279 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 14280 | as_dirs= |
| 14281 | while :; do |
| 14282 | case $as_dir in #( |
| 14283 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 14284 | *) as_qdir=$as_dir;; |
| 14285 | esac |
| 14286 | as_dirs="'$as_qdir' $as_dirs" |
| 14287 | as_dir=`$as_dirname -- "$as_dir" || |
| 14288 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 14289 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 14290 | X"$as_dir" : 'X\(//\)$' \| \ |
| 14291 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 14292 | $as_echo X"$as_dir" | |
| 14293 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 14294 | s//\1/ |
| 14295 | q |
| 14296 | } |
| 14297 | /^X\(\/\/\)[^/].*/{ |
| 14298 | s//\1/ |
| 14299 | q |
| 14300 | } |
| 14301 | /^X\(\/\/\)$/{ |
| 14302 | s//\1/ |
| 14303 | q |
| 14304 | } |
| 14305 | /^X\(\/\).*/{ |
| 14306 | s//\1/ |
| 14307 | q |
| 14308 | } |
| 14309 | s/.*/./; q'` |
| 14310 | test -d "$as_dir" && break |
| 14311 | done |
| 14312 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 14313 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14314 | |
| 14315 | |
| 14316 | } # as_fn_mkdir_p |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14317 | if mkdir -p . 2>/dev/null; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14318 | as_mkdir_p='mkdir -p "$as_dir"' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14319 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14320 | test -d ./-p && rmdir ./-p |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14321 | as_mkdir_p=false |
| 14322 | fi |
| 14323 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14324 | if test -x / >/dev/null 2>&1; then |
| 14325 | as_test_x='test -x' |
| 14326 | else |
| 14327 | if ls -dL / >/dev/null 2>&1; then |
| 14328 | as_ls_L_option=L |
| 14329 | else |
| 14330 | as_ls_L_option= |
| 14331 | fi |
| 14332 | as_test_x=' |
| 14333 | eval sh -c '\'' |
| 14334 | if test -d "$1"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14335 | test -d "$1/."; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14336 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14337 | case $1 in #( |
| 14338 | -*)set "./$1";; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14339 | esac; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14340 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14341 | ???[sx]*):;;*)false;;esac;fi |
| 14342 | '\'' sh |
| 14343 | ' |
| 14344 | fi |
| 14345 | as_executable_p=$as_test_x |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14346 | |
| 14347 | # Sed expression to map a string onto a valid CPP name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14348 | 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] | 14349 | |
| 14350 | # Sed expression to map a string onto a valid variable name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14351 | 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] | 14352 | |
| 14353 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14354 | exec 6>&1 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14355 | ## ----------------------------------- ## |
| 14356 | ## Main body of $CONFIG_STATUS script. ## |
| 14357 | ## ----------------------------------- ## |
| 14358 | _ASEOF |
| 14359 | 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] | 14360 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14361 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 14362 | # 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] | 14363 | # report actual input values of CONFIG_FILES etc. instead of their |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14364 | # values after options handling. |
| 14365 | ac_log=" |
Georg Brandl | 3ebb6b3 | 2011-02-20 10:37:07 +0000 | [diff] [blame] | 14366 | This file was extended by python $as_me 3.3, which was |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 14367 | generated by GNU Autoconf 2.67. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14368 | |
| 14369 | CONFIG_FILES = $CONFIG_FILES |
| 14370 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 14371 | CONFIG_LINKS = $CONFIG_LINKS |
| 14372 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 14373 | $ $0 $@ |
| 14374 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14375 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 14376 | " |
| 14377 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14378 | _ACEOF |
| 14379 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14380 | case $ac_config_files in *" |
| 14381 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 14382 | esac |
| 14383 | |
| 14384 | case $ac_config_headers in *" |
| 14385 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 14386 | esac |
| 14387 | |
| 14388 | |
| 14389 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14390 | # Files that config.status was made for. |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 14391 | config_files="$ac_config_files" |
| 14392 | config_headers="$ac_config_headers" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14393 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14394 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14395 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14396 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14397 | ac_cs_usage="\ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14398 | \`$as_me' instantiates files and other configuration actions |
| 14399 | from templates according to the current configuration. Unless the files |
| 14400 | 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] | 14401 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14402 | Usage: $0 [OPTION]... [TAG]... |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14403 | |
| 14404 | -h, --help print this help, then exit |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14405 | -V, --version print version number and configuration settings, then exit |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14406 | --config print configuration, then exit |
| 14407 | -q, --quiet, --silent |
| 14408 | do not print progress messages |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14409 | -d, --debug don't remove temporary files |
| 14410 | --recheck update $as_me by reconfiguring in the same conditions |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14411 | --file=FILE[:TEMPLATE] |
| 14412 | instantiate the configuration file FILE |
| 14413 | --header=FILE[:TEMPLATE] |
| 14414 | instantiate the configuration header FILE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14415 | |
| 14416 | Configuration files: |
| 14417 | $config_files |
| 14418 | |
| 14419 | Configuration headers: |
| 14420 | $config_headers |
| 14421 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14422 | Report bugs to <http://bugs.python.org/>." |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 14423 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14424 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14425 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 14426 | 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] | 14427 | ac_cs_version="\\ |
Georg Brandl | 3ebb6b3 | 2011-02-20 10:37:07 +0000 | [diff] [blame] | 14428 | python config.status 3.3 |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 14429 | configured by $0, generated by GNU Autoconf 2.67, |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14430 | with options \\"\$ac_cs_config\\" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14431 | |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 14432 | Copyright (C) 2010 Free Software Foundation, Inc. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14433 | This config.status script is free software; the Free Software Foundation |
| 14434 | gives unlimited permission to copy, distribute and modify it." |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14435 | |
| 14436 | ac_pwd='$ac_pwd' |
| 14437 | srcdir='$srcdir' |
| 14438 | INSTALL='$INSTALL' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14439 | test -n "\$AWK" || AWK=awk |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14440 | _ACEOF |
| 14441 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14442 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 14443 | # 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] | 14444 | ac_need_defaults=: |
| 14445 | while test $# != 0 |
| 14446 | do |
| 14447 | case $1 in |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 14448 | --*=?*) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14449 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 14450 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14451 | ac_shift=: |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14452 | ;; |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 14453 | --*=) |
| 14454 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 14455 | ac_optarg= |
| 14456 | ac_shift=: |
| 14457 | ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14458 | *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14459 | ac_option=$1 |
| 14460 | ac_optarg=$2 |
| 14461 | ac_shift=shift |
| 14462 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14463 | esac |
| 14464 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14465 | case $ac_option in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14466 | # Handling of the options. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14467 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 14468 | ac_cs_recheck=: ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14469 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14470 | $as_echo "$ac_cs_version"; exit ;; |
| 14471 | --config | --confi | --conf | --con | --co | --c ) |
| 14472 | $as_echo "$ac_cs_config"; exit ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14473 | --debug | --debu | --deb | --de | --d | -d ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14474 | debug=: ;; |
| 14475 | --file | --fil | --fi | --f ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14476 | $ac_shift |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14477 | case $ac_optarg in |
| 14478 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 14479 | '') as_fn_error $? "missing file argument" ;; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14480 | esac |
| 14481 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14482 | ac_need_defaults=false;; |
| 14483 | --header | --heade | --head | --hea ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14484 | $ac_shift |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14485 | case $ac_optarg in |
| 14486 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 14487 | esac |
| 14488 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14489 | ac_need_defaults=false;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14490 | --he | --h) |
| 14491 | # Conflict between --help and --header |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 14492 | as_fn_error $? "ambiguous option: \`$1' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14493 | Try \`$0 --help' for more information.";; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14494 | --help | --hel | -h ) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14495 | $as_echo "$ac_cs_usage"; exit ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14496 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 14497 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 14498 | ac_cs_silent=: ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14499 | |
| 14500 | # This is an error. |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 14501 | -*) as_fn_error $? "unrecognized option: \`$1' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14502 | Try \`$0 --help' for more information." ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14503 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14504 | *) as_fn_append ac_config_targets " $1" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14505 | ac_need_defaults=false ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14506 | |
| 14507 | esac |
| 14508 | shift |
| 14509 | done |
| 14510 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14511 | ac_configure_extra_args= |
| 14512 | |
| 14513 | if $ac_cs_silent; then |
| 14514 | exec 6>/dev/null |
| 14515 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 14516 | fi |
| 14517 | |
| 14518 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14519 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14520 | if \$ac_cs_recheck; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14521 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 14522 | shift |
| 14523 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 14524 | CONFIG_SHELL='$SHELL' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14525 | export CONFIG_SHELL |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14526 | exec "\$@" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14527 | fi |
| 14528 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14529 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14530 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14531 | exec 5>>config.log |
| 14532 | { |
| 14533 | echo |
| 14534 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 14535 | ## Running $as_me. ## |
| 14536 | _ASBOX |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14537 | $as_echo "$ac_log" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14538 | } >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14539 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14540 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14541 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14542 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14543 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14544 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14545 | |
| 14546 | # Handling of arguments. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14547 | for ac_config_target in $ac_config_targets |
| 14548 | do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14549 | case $ac_config_target in |
| 14550 | "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; |
| 14551 | "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;; |
| 14552 | "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;; |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14553 | "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;; |
| 14554 | "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] | 14555 | "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; |
| 14556 | "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;; |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14557 | "Misc/python.pc") CONFIG_FILES="$CONFIG_FILES Misc/python.pc" ;; |
Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 14558 | "Modules/ld_so_aix") CONFIG_FILES="$CONFIG_FILES Modules/ld_so_aix" ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14559 | |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 14560 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14561 | esac |
| 14562 | done |
| 14563 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14564 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14565 | # If the user did not use the arguments to specify the items to instantiate, |
| 14566 | # then the envvar interface is used. Set only those that are not. |
| 14567 | # We use the long form for the default assignment because of an extremely |
| 14568 | # bizarre bug on SunOS 4.1.3. |
| 14569 | if $ac_need_defaults; then |
| 14570 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 14571 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 14572 | fi |
| 14573 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14574 | # Have a temporary directory for convenience. Make it in the build tree |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14575 | # 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] | 14576 | # creating and moving files from /tmp can sometimes cause problems. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14577 | # Hook for its removal unless debugging. |
| 14578 | # Note that there is a small window in which the directory will not be cleaned: |
| 14579 | # 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] | 14580 | $debug || |
| 14581 | { |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 14582 | tmp= |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14583 | trap 'exit_status=$? |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 14584 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14585 | ' 0 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14586 | trap 'as_fn_exit 1' 1 2 13 15 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14587 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14588 | # Create a (secure) tmp directory for tmp files. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14589 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14590 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14591 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 14592 | test -n "$tmp" && test -d "$tmp" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14593 | } || |
| 14594 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14595 | tmp=./conf$$-$RANDOM |
| 14596 | (umask 077 && mkdir "$tmp") |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 14597 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14598 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14599 | # Set up the scripts for CONFIG_FILES section. |
| 14600 | # No need to generate them if there are no CONFIG_FILES. |
| 14601 | # This happens for instance with `./config.status config.h'. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14602 | if test -n "$CONFIG_FILES"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14603 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14604 | |
| 14605 | ac_cr=`echo X | tr X '\015'` |
| 14606 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 14607 | # But we know of no other shell where ac_cr would be empty at this |
| 14608 | # point, so we can use a bashism as a fallback. |
| 14609 | if test "x$ac_cr" = x; then |
| 14610 | eval ac_cr=\$\'\\r\' |
| 14611 | fi |
| 14612 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 14613 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 14614 | ac_cs_awk_cr='\\r' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14615 | else |
| 14616 | ac_cs_awk_cr=$ac_cr |
| 14617 | fi |
| 14618 | |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 14619 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14620 | _ACEOF |
| 14621 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14622 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14623 | { |
| 14624 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 14625 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 14626 | echo "_ACEOF" |
| 14627 | } >conf$$subs.sh || |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 14628 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 14629 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14630 | ac_delim='%!_!# ' |
| 14631 | for ac_last_try in false false false false false :; do |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14632 | . ./conf$$subs.sh || |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 14633 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14634 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14635 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 14636 | if test $ac_delim_n = $ac_delim_num; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14637 | break |
| 14638 | elif $ac_last_try; then |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 14639 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14640 | else |
| 14641 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14642 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14643 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14644 | rm -f conf$$subs.sh |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14645 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14646 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 14647 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14648 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14649 | sed -n ' |
| 14650 | h |
| 14651 | s/^/S["/; s/!.*/"]=/ |
| 14652 | p |
| 14653 | g |
| 14654 | s/^[^!]*!// |
| 14655 | :repl |
| 14656 | t repl |
| 14657 | s/'"$ac_delim"'$// |
| 14658 | t delim |
| 14659 | :nl |
| 14660 | h |
| 14661 | s/\(.\{148\}\)..*/\1/ |
| 14662 | t more1 |
| 14663 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 14664 | p |
| 14665 | n |
| 14666 | b repl |
| 14667 | :more1 |
| 14668 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 14669 | p |
| 14670 | g |
| 14671 | s/.\{148\}// |
| 14672 | t nl |
| 14673 | :delim |
| 14674 | h |
| 14675 | s/\(.\{148\}\)..*/\1/ |
| 14676 | t more2 |
| 14677 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 14678 | p |
| 14679 | b |
| 14680 | :more2 |
| 14681 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 14682 | p |
| 14683 | g |
| 14684 | s/.\{148\}// |
| 14685 | t delim |
| 14686 | ' <conf$$subs.awk | sed ' |
| 14687 | /^[^""]/{ |
| 14688 | N |
| 14689 | s/\n// |
| 14690 | } |
| 14691 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 14692 | rm -f conf$$subs.awk |
| 14693 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 14694 | _ACAWK |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 14695 | cat >>"\$tmp/subs1.awk" <<_ACAWK && |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14696 | for (key in S) S_is_set[key] = 1 |
| 14697 | FS = "" |
| 14698 | |
| 14699 | } |
| 14700 | { |
| 14701 | line = $ 0 |
| 14702 | nfields = split(line, field, "@") |
| 14703 | substed = 0 |
| 14704 | len = length(field[1]) |
| 14705 | for (i = 2; i < nfields; i++) { |
| 14706 | key = field[i] |
| 14707 | keylen = length(key) |
| 14708 | if (S_is_set[key]) { |
| 14709 | value = S[key] |
| 14710 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 14711 | len += length(value) + length(field[++i]) |
| 14712 | substed = 1 |
| 14713 | } else |
| 14714 | len += 1 + keylen |
| 14715 | } |
| 14716 | |
| 14717 | print line |
| 14718 | } |
| 14719 | |
| 14720 | _ACAWK |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14721 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14722 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 14723 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 14724 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 14725 | else |
| 14726 | cat |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 14727 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 14728 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 14729 | _ACEOF |
| 14730 | |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 14731 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
| 14732 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14733 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 14734 | # (actually we leave an empty line to preserve line numbers). |
| 14735 | if test "x$srcdir" = x.; then |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 14736 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
| 14737 | h |
| 14738 | s/// |
| 14739 | s/^/:/ |
| 14740 | s/[ ]*$/:/ |
| 14741 | s/:\$(srcdir):/:/g |
| 14742 | s/:\${srcdir}:/:/g |
| 14743 | s/:@srcdir@:/:/g |
| 14744 | s/^:*// |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14745 | s/:*$// |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 14746 | x |
| 14747 | s/\(=[ ]*\).*/\1/ |
| 14748 | G |
| 14749 | s/\n// |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14750 | s/^[^=]*=[ ]*$// |
| 14751 | }' |
| 14752 | fi |
| 14753 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14754 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14755 | fi # test -n "$CONFIG_FILES" |
| 14756 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14757 | # Set up the scripts for CONFIG_HEADERS section. |
| 14758 | # No need to generate them if there are no CONFIG_HEADERS. |
| 14759 | # This happens for instance with `./config.status Makefile'. |
| 14760 | if test -n "$CONFIG_HEADERS"; then |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 14761 | cat >"$tmp/defines.awk" <<\_ACAWK || |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14762 | BEGIN { |
| 14763 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14764 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14765 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 14766 | # here-document in config.status, that substitutes the proper values into |
| 14767 | # config.h.in to produce config.h. |
| 14768 | |
| 14769 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 14770 | # handling of long lines. |
| 14771 | ac_delim='%!_!# ' |
| 14772 | for ac_last_try in false false :; do |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 14773 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` |
| 14774 | if test -z "$ac_t"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14775 | break |
| 14776 | elif $ac_last_try; then |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 14777 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14778 | else |
| 14779 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 14780 | fi |
| 14781 | done |
| 14782 | |
| 14783 | # For the awk script, D is an array of macro values keyed by name, |
| 14784 | # likewise P contains macro parameters if any. Preserve backslash |
| 14785 | # newline sequences. |
| 14786 | |
| 14787 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 14788 | sed -n ' |
| 14789 | s/.\{148\}/&'"$ac_delim"'/g |
| 14790 | t rset |
| 14791 | :rset |
| 14792 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 14793 | t def |
| 14794 | d |
| 14795 | :def |
| 14796 | s/\\$// |
| 14797 | t bsnl |
| 14798 | s/["\\]/\\&/g |
| 14799 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 14800 | D["\1"]=" \3"/p |
| 14801 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 14802 | d |
| 14803 | :bsnl |
| 14804 | s/["\\]/\\&/g |
| 14805 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 14806 | D["\1"]=" \3\\\\\\n"\\/p |
| 14807 | t cont |
| 14808 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 14809 | t cont |
| 14810 | d |
| 14811 | :cont |
| 14812 | n |
| 14813 | s/.\{148\}/&'"$ac_delim"'/g |
| 14814 | t clear |
| 14815 | :clear |
| 14816 | s/\\$// |
| 14817 | t bsnlc |
| 14818 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 14819 | d |
| 14820 | :bsnlc |
| 14821 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 14822 | b cont |
| 14823 | ' <confdefs.h | sed ' |
| 14824 | s/'"$ac_delim"'/"\\\ |
| 14825 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 14826 | |
| 14827 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 14828 | for (key in D) D_is_set[key] = 1 |
| 14829 | FS = "" |
| 14830 | } |
| 14831 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 14832 | line = \$ 0 |
| 14833 | split(line, arg, " ") |
| 14834 | if (arg[1] == "#") { |
| 14835 | defundef = arg[2] |
| 14836 | mac1 = arg[3] |
| 14837 | } else { |
| 14838 | defundef = substr(arg[1], 2) |
| 14839 | mac1 = arg[2] |
| 14840 | } |
| 14841 | split(mac1, mac2, "(") #) |
| 14842 | macro = mac2[1] |
| 14843 | prefix = substr(line, 1, index(line, defundef) - 1) |
| 14844 | if (D_is_set[macro]) { |
| 14845 | # Preserve the white space surrounding the "#". |
| 14846 | print prefix "define", macro P[macro] D[macro] |
| 14847 | next |
| 14848 | } else { |
| 14849 | # Replace #undef with comments. This is necessary, for example, |
| 14850 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 14851 | # on some systems where configure will not decide to define it. |
| 14852 | if (defundef == "undef") { |
| 14853 | print "/*", prefix defundef, macro, "*/" |
| 14854 | next |
| 14855 | } |
| 14856 | } |
| 14857 | } |
| 14858 | { print } |
| 14859 | _ACAWK |
| 14860 | _ACEOF |
| 14861 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 14862 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14863 | fi # test -n "$CONFIG_HEADERS" |
| 14864 | |
| 14865 | |
| 14866 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " |
| 14867 | shift |
| 14868 | for ac_tag |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14869 | do |
| 14870 | case $ac_tag in |
| 14871 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 14872 | esac |
| 14873 | case $ac_mode$ac_tag in |
| 14874 | :[FHL]*:*);; |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 14875 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14876 | :[FH]-) ac_tag=-:-;; |
| 14877 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 14878 | esac |
| 14879 | ac_save_IFS=$IFS |
| 14880 | IFS=: |
| 14881 | set x $ac_tag |
| 14882 | IFS=$ac_save_IFS |
| 14883 | shift |
| 14884 | ac_file=$1 |
| 14885 | shift |
| 14886 | |
| 14887 | case $ac_mode in |
| 14888 | :L) ac_source=$1;; |
| 14889 | :[FH]) |
| 14890 | ac_file_inputs= |
| 14891 | for ac_f |
| 14892 | do |
| 14893 | case $ac_f in |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 14894 | -) ac_f="$tmp/stdin";; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14895 | *) # Look for the file first in the build tree, then in the source tree |
| 14896 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 14897 | # because $ac_f cannot contain `:'. |
| 14898 | test -f "$ac_f" || |
| 14899 | case $ac_f in |
| 14900 | [\\/$]*) false;; |
| 14901 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 14902 | esac || |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 14903 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14904 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14905 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
| 14906 | as_fn_append ac_file_inputs " '$ac_f'" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14907 | done |
| 14908 | |
| 14909 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 14910 | # use $as_me), people would be surprised to read: |
| 14911 | # /* config.h. Generated by config.status. */ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14912 | configure_input='Generated from '` |
| 14913 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 14914 | `' by configure.' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14915 | if test x"$ac_file" != x-; then |
| 14916 | configure_input="$ac_file. $configure_input" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14917 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
| 14918 | $as_echo "$as_me: creating $ac_file" >&6;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14919 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14920 | # Neutralize special characters interpreted by sed in replacement strings. |
| 14921 | case $configure_input in #( |
| 14922 | *\&* | *\|* | *\\* ) |
| 14923 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 14924 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 14925 | *) ac_sed_conf_input=$configure_input;; |
| 14926 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14927 | |
| 14928 | case $ac_tag in |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 14929 | *:-:* | *:-) cat >"$tmp/stdin" \ |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 14930 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14931 | esac |
| 14932 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14933 | esac |
| 14934 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14935 | ac_dir=`$as_dirname -- "$ac_file" || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14936 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14937 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 14938 | X"$ac_file" : 'X\(//\)$' \| \ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14939 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14940 | $as_echo X"$ac_file" | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14941 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 14942 | s//\1/ |
| 14943 | q |
| 14944 | } |
| 14945 | /^X\(\/\/\)[^/].*/{ |
| 14946 | s//\1/ |
| 14947 | q |
| 14948 | } |
| 14949 | /^X\(\/\/\)$/{ |
| 14950 | s//\1/ |
| 14951 | q |
| 14952 | } |
| 14953 | /^X\(\/\).*/{ |
| 14954 | s//\1/ |
| 14955 | q |
| 14956 | } |
| 14957 | s/.*/./; q'` |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14958 | as_dir="$ac_dir"; as_fn_mkdir_p |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14959 | ac_builddir=. |
| 14960 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14961 | case "$ac_dir" in |
| 14962 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 14963 | *) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14964 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14965 | # A ".." for each directory in $ac_dir_suffix. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14966 | 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] | 14967 | case $ac_top_builddir_sub in |
| 14968 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 14969 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 14970 | esac ;; |
| 14971 | esac |
| 14972 | ac_abs_top_builddir=$ac_pwd |
| 14973 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 14974 | # for backward compatibility: |
| 14975 | ac_top_builddir=$ac_top_build_prefix |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14976 | |
| 14977 | case $srcdir in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14978 | .) # We are building in place. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14979 | ac_srcdir=. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14980 | ac_top_srcdir=$ac_top_builddir_sub |
| 14981 | ac_abs_top_srcdir=$ac_pwd ;; |
| 14982 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14983 | ac_srcdir=$srcdir$ac_dir_suffix; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14984 | ac_top_srcdir=$srcdir |
| 14985 | ac_abs_top_srcdir=$srcdir ;; |
| 14986 | *) # Relative name. |
| 14987 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 14988 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 14989 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14990 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14991 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14992 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14993 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14994 | case $ac_mode in |
| 14995 | :F) |
| 14996 | # |
| 14997 | # CONFIG_FILE |
| 14998 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14999 | |
| 15000 | case $INSTALL in |
| 15001 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15002 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15003 | esac |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15004 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15005 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15006 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15007 | # If the template does not know about datarootdir, expand it. |
| 15008 | # FIXME: This hack should be removed a few years after 2.60. |
| 15009 | ac_datarootdir_hack=; ac_datarootdir_seen= |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15010 | ac_sed_dataroot=' |
| 15011 | /datarootdir/ { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15012 | p |
| 15013 | q |
| 15014 | } |
| 15015 | /@datadir@/p |
| 15016 | /@docdir@/p |
| 15017 | /@infodir@/p |
| 15018 | /@localedir@/p |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15019 | /@mandir@/p' |
| 15020 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15021 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 15022 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15023 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 15024 | $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] | 15025 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15026 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15027 | ac_datarootdir_hack=' |
| 15028 | s&@datadir@&$datadir&g |
| 15029 | s&@docdir@&$docdir&g |
| 15030 | s&@infodir@&$infodir&g |
| 15031 | s&@localedir@&$localedir&g |
| 15032 | s&@mandir@&$mandir&g |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15033 | s&\\\${datarootdir}&$datarootdir&g' ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15034 | esac |
| 15035 | _ACEOF |
| 15036 | |
| 15037 | # Neutralize VPATH when `$srcdir' = `.'. |
| 15038 | # Shell code in configure.ac might set extrasub. |
| 15039 | # FIXME: do we really want to maintain this feature? |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15040 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 15041 | ac_sed_extra="$ac_vpsub |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15042 | $extrasub |
| 15043 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15044 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15045 | :t |
| 15046 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15047 | s|@configure_input@|$ac_sed_conf_input|;t t |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15048 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15049 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15050 | s&@srcdir@&$ac_srcdir&;t t |
| 15051 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 15052 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 15053 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 15054 | s&@builddir@&$ac_builddir&;t t |
| 15055 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 15056 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 15057 | s&@INSTALL@&$ac_INSTALL&;t t |
| 15058 | $ac_datarootdir_hack |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15059 | " |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 15060 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 15061 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15062 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15063 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 15064 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 15065 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15066 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 15067 | which seems to be undefined. Please make sure it is defined" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15068 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 15069 | which seems to be undefined. Please make sure it is defined" >&2;} |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 15070 | |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 15071 | rm -f "$tmp/stdin" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15072 | case $ac_file in |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 15073 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
| 15074 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15075 | esac \ |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 15076 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15077 | ;; |
| 15078 | :H) |
| 15079 | # |
| 15080 | # CONFIG_HEADER |
| 15081 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15082 | if test x"$ac_file" != x-; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15083 | { |
| 15084 | $as_echo "/* $configure_input */" \ |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 15085 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" |
| 15086 | } >"$tmp/config.h" \ |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 15087 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 15088 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15089 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
| 15090 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15091 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15092 | rm -f "$ac_file" |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 15093 | mv "$tmp/config.h" "$ac_file" \ |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 15094 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15095 | fi |
| 15096 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15097 | $as_echo "/* $configure_input */" \ |
Benjamin Peterson | 316e02b | 2011-05-10 15:01:56 -0500 | [diff] [blame] | 15098 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 15099 | || as_fn_error $? "could not create -" "$LINENO" 5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15100 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15101 | ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15102 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15103 | |
| 15104 | esac |
| 15105 | |
Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 15106 | |
| 15107 | case $ac_file$ac_mode in |
| 15108 | "Modules/ld_so_aix":F) chmod +x Modules/ld_so_aix ;; |
| 15109 | |
| 15110 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15111 | done # for ac_tag |
| 15112 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15113 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15114 | as_fn_exit 0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15115 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15116 | ac_clean_files=$ac_clean_files_save |
| 15117 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15118 | test $ac_write_fail = 0 || |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 15119 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15120 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15121 | |
| 15122 | # configure is writing to config.log, and then calls config.status. |
| 15123 | # config.status does its own redirection, appending to config.log. |
| 15124 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 15125 | # by configure, so config.status won't be able to write to it; its |
| 15126 | # output is simply discarded. So we exec the FD to /dev/null, |
| 15127 | # effectively closing config.log, so it can be properly (re)opened and |
| 15128 | # appended to by config.status. When coming back to configure, we |
| 15129 | # need to make the FD available again. |
| 15130 | if test "$no_create" != yes; then |
| 15131 | ac_cs_success=: |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15132 | ac_config_status_args= |
| 15133 | test "$silent" = yes && |
| 15134 | ac_config_status_args="$ac_config_status_args --quiet" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15135 | exec 5>/dev/null |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15136 | $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] | 15137 | exec 5>>config.log |
| 15138 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 15139 | # would make configure fail if this is the last instruction. |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 15140 | $ac_cs_success || as_fn_exit 1 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15141 | fi |
| 15142 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
| 15143 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
| 15144 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15145 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15146 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 15147 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 15148 | echo "creating Modules/Setup" |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 15149 | if test ! -f Modules/Setup |
| 15150 | then |
| 15151 | cp $srcdir/Modules/Setup.dist Modules/Setup |
| 15152 | fi |
| 15153 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 15154 | echo "creating Modules/Setup.local" |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 15155 | if test ! -f Modules/Setup.local |
| 15156 | then |
| 15157 | echo "# Edit this file for local setup changes" >Modules/Setup.local |
| 15158 | fi |
| 15159 | |
| 15160 | echo "creating Makefile" |
| 15161 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ |
| 15162 | -s Modules Modules/Setup.config \ |
Neil Schemenauer | f8b71c5 | 2001-04-21 17:41:16 +0000 | [diff] [blame] | 15163 | Modules/Setup.local Modules/Setup |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 15164 | mv config.c Modules |