Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1 | #! /bin/sh |
Mark Dickinson | 18b0056 | 2010-07-19 07:35:16 +0000 | [diff] [blame^] | 2 | # From configure.in Revision: 80702 . |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3 | # Guess values for system-dependent variables and create Makefiles. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4 | # Generated by GNU Autoconf 2.65 for python 3.1. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5 | # |
Georg Brandl | e2e1561 | 2009-05-20 18:25:10 +0000 | [diff] [blame] | 6 | # Report bugs to <http://bugs.python.org/>. |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 7 | # |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8 | # |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, |
| 11 | # Inc. |
| 12 | # |
| 13 | # |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14 | # This configure script is free software; the Free Software Foundation |
| 15 | # gives unlimited permission to copy, distribute and modify it. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 16 | ## -------------------- ## |
| 17 | ## M4sh Initialization. ## |
| 18 | ## -------------------- ## |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20 | # Be more Bourne compatible |
| 21 | DUALCASE=1; export DUALCASE # for MKS sh |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 22 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23 | emulate sh |
| 24 | NULLCMD=: |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 25 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26 | # is contrary to our usage. Disable this feature. |
| 27 | alias -g '${1+"$@"}'='"$@"' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 28 | setopt NO_GLOB_SUBST |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 29 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 30 | case `(set -o) 2>/dev/null` in #( |
| 31 | *posix*) : |
| 32 | set -o posix ;; #( |
| 33 | *) : |
| 34 | ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 35 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 36 | fi |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 37 | |
| 38 | |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 39 | as_nl=' |
| 40 | ' |
| 41 | export as_nl |
| 42 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 43 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 44 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 45 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 46 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 47 | # but without wasting forks for bash or zsh. |
| 48 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 49 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 50 | as_echo='print -r --' |
| 51 | as_echo_n='print -rn --' |
| 52 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 53 | as_echo='printf %s\n' |
| 54 | as_echo_n='printf %s' |
| 55 | else |
| 56 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 57 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 58 | as_echo_n='/usr/ucb/echo -n' |
| 59 | else |
| 60 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 61 | as_echo_n_body='eval |
| 62 | arg=$1; |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 63 | case $arg in #( |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 64 | *"$as_nl"*) |
| 65 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 66 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 67 | esac; |
| 68 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 69 | ' |
| 70 | export as_echo_n_body |
| 71 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 72 | fi |
| 73 | export as_echo_body |
| 74 | as_echo='sh -c $as_echo_body as_echo' |
| 75 | fi |
| 76 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 77 | # The user is always right. |
| 78 | if test "${PATH_SEPARATOR+set}" != set; then |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 79 | PATH_SEPARATOR=: |
| 80 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 81 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 82 | PATH_SEPARATOR=';' |
| 83 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 84 | fi |
| 85 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 86 | |
| 87 | # IFS |
| 88 | # We need space, tab and new line, in precisely that order. Quoting is |
| 89 | # there to prevent editors from complaining about space-tab. |
| 90 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 91 | # splitting by setting IFS to empty value.) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 92 | IFS=" "" $as_nl" |
| 93 | |
| 94 | # Find who we are. Look in the path if we contain no directory separator. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +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=. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +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 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 114 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 115 | exit 1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 116 | fi |
| 117 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +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. |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +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 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +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 |
| 224 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
| 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" |
| 323 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" |
| 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 | |
| 363 | # as_fn_error ERROR [LINENO LOG_FD] |
| 364 | # --------------------------------- |
| 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 |
| 367 | # script with status $?, using 1 if that was 0. |
| 368 | as_fn_error () |
| 369 | { |
| 370 | as_status=$?; test $as_status -eq 0 && as_status=1 |
| 371 | if test "$3"; then |
| 372 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 373 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 |
| 374 | fi |
| 375 | $as_echo "$as_me: error: $1" >&2 |
| 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 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +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 || |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +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 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +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 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +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" || |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +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= |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 457 | case `echo -n x` in #((((( |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 458 | -n*) |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +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. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +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 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 468 | |
| 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 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 474 | mkdir conf$$.dir 2>/dev/null |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 475 | fi |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +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' |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +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 |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +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 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 514 | test -d "$1/."; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 515 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 516 | case $1 in #( |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 517 | -*)set "./$1";; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 518 | esac; |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +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 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +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. |
| 537 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 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' |
Christian Heimes | 70e5cab | 2008-12-03 18:18:23 +0000 | [diff] [blame] | 556 | PACKAGE_VERSION='3.1' |
| 557 | PACKAGE_STRING='python 3.1' |
Georg Brandl | e2e1561 | 2009-05-20 18:25:10 +0000 | [diff] [blame] | 558 | PACKAGE_BUGREPORT='http://bugs.python.org/' |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +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 | |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 598 | ac_subst_vars='LTLIBOBJS |
Ronald Oussoren | 5644eb7 | 2009-09-20 20:10:02 +0000 | [diff] [blame] | 599 | SRCDIRS |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 600 | THREADHEADERS |
| 601 | LIBC |
| 602 | LIBM |
| 603 | HAVE_GETHOSTBYNAME |
| 604 | HAVE_GETHOSTBYNAME_R |
| 605 | HAVE_GETHOSTBYNAME_R_3_ARG |
| 606 | HAVE_GETHOSTBYNAME_R_5_ARG |
| 607 | HAVE_GETHOSTBYNAME_R_6_ARG |
| 608 | LIBOBJS |
| 609 | TRUE |
| 610 | MACHDEP_OBJS |
| 611 | DYNLOADFILE |
| 612 | DLINCLDIR |
| 613 | THREADOBJ |
| 614 | LDLAST |
| 615 | USE_THREAD_MODULE |
| 616 | SIGNAL_OBJS |
| 617 | USE_SIGNAL_MODULE |
| 618 | SHLIBS |
| 619 | CFLAGSFORSHARED |
| 620 | LINKFORSHARED |
| 621 | CCSHARED |
| 622 | BLDSHARED |
| 623 | LDSHARED |
| 624 | SO |
| 625 | LIBTOOL_CRUFT |
| 626 | OTHER_LIBTOOL_OPT |
| 627 | UNIVERSAL_ARCH_FLAGS |
| 628 | BASECFLAGS |
| 629 | OPT |
| 630 | LN |
| 631 | INSTALL_DATA |
| 632 | INSTALL_SCRIPT |
| 633 | INSTALL_PROGRAM |
| 634 | SVNVERSION |
| 635 | ARFLAGS |
| 636 | AR |
| 637 | RANLIB |
| 638 | GNULD |
| 639 | LINKCC |
| 640 | RUNSHARED |
| 641 | INSTSONAME |
| 642 | LDLIBRARYDIR |
| 643 | BLDLIBRARY |
| 644 | DLLLIBRARY |
| 645 | LDLIBRARY |
| 646 | LIBRARY |
| 647 | BUILDEXEEXT |
| 648 | EGREP |
| 649 | GREP |
| 650 | CPP |
| 651 | MAINCC |
| 652 | CXX |
| 653 | OBJEXT |
| 654 | EXEEXT |
| 655 | ac_ct_CC |
| 656 | CPPFLAGS |
| 657 | LDFLAGS |
| 658 | CFLAGS |
| 659 | CC |
| 660 | EXPORT_MACOSX_DEPLOYMENT_TARGET |
| 661 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET |
| 662 | SGI_ABI |
| 663 | MACHDEP |
| 664 | FRAMEWORKUNIXTOOLSPREFIX |
| 665 | FRAMEWORKALTINSTALLLAST |
| 666 | FRAMEWORKALTINSTALLFIRST |
| 667 | FRAMEWORKINSTALLLAST |
| 668 | FRAMEWORKINSTALLFIRST |
| 669 | PYTHONFRAMEWORKINSTALLDIR |
| 670 | PYTHONFRAMEWORKPREFIX |
| 671 | PYTHONFRAMEWORKDIR |
| 672 | PYTHONFRAMEWORKIDENTIFIER |
| 673 | PYTHONFRAMEWORK |
| 674 | LIPO_64BIT_FLAGS |
| 675 | LIPO_32BIT_FLAGS |
| 676 | ARCH_RUN_32BIT |
| 677 | UNIVERSALSDK |
| 678 | CONFIG_ARGS |
| 679 | SOVERSION |
| 680 | VERSION |
| 681 | target_alias |
| 682 | host_alias |
| 683 | build_alias |
| 684 | LIBS |
| 685 | ECHO_T |
| 686 | ECHO_N |
| 687 | ECHO_C |
| 688 | DEFS |
| 689 | mandir |
| 690 | localedir |
| 691 | libdir |
| 692 | psdir |
| 693 | pdfdir |
| 694 | dvidir |
| 695 | htmldir |
| 696 | infodir |
| 697 | docdir |
| 698 | oldincludedir |
| 699 | includedir |
| 700 | localstatedir |
| 701 | sharedstatedir |
| 702 | sysconfdir |
| 703 | datadir |
| 704 | datarootdir |
| 705 | libexecdir |
| 706 | sbindir |
| 707 | bindir |
| 708 | program_transform_name |
| 709 | prefix |
| 710 | exec_prefix |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 711 | PACKAGE_URL |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 712 | PACKAGE_BUGREPORT |
| 713 | PACKAGE_STRING |
| 714 | PACKAGE_VERSION |
| 715 | PACKAGE_TARNAME |
| 716 | PACKAGE_NAME |
| 717 | PATH_SEPARATOR |
| 718 | SHELL' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 719 | ac_subst_files='' |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 720 | ac_user_opts=' |
| 721 | enable_option_checking |
| 722 | enable_universalsdk |
| 723 | with_universal_archs |
| 724 | with_framework_name |
| 725 | enable_framework |
| 726 | with_gcc |
| 727 | with_cxx_main |
| 728 | with_suffix |
| 729 | enable_shared |
| 730 | enable_profiling |
| 731 | with_pydebug |
| 732 | with_libs |
| 733 | with_system_ffi |
| 734 | with_dbmliborder |
| 735 | with_signal_module |
| 736 | with_dec_threads |
| 737 | with_threads |
| 738 | with_thread |
| 739 | with_pth |
| 740 | enable_ipv6 |
| 741 | with_doc_strings |
| 742 | with_tsc |
| 743 | with_pymalloc |
| 744 | with_wctype_functions |
| 745 | with_fpectl |
| 746 | with_libm |
| 747 | with_libc |
| 748 | enable_big_digits |
| 749 | with_wide_unicode |
| 750 | with_computed_gotos |
| 751 | ' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 752 | ac_precious_vars='build_alias |
| 753 | host_alias |
| 754 | target_alias |
| 755 | CC |
| 756 | CFLAGS |
| 757 | LDFLAGS |
| 758 | LIBS |
| 759 | CPPFLAGS |
| 760 | CPP' |
| 761 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 762 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 763 | # Initialize some variables set by options. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 764 | ac_init_help= |
| 765 | ac_init_version=false |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 766 | ac_unrecognized_opts= |
| 767 | ac_unrecognized_sep= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 768 | # The variables have the same names as the options, with |
| 769 | # dashes changed to underlines. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 770 | cache_file=/dev/null |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 771 | exec_prefix=NONE |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 772 | no_create= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 773 | no_recursion= |
| 774 | prefix=NONE |
| 775 | program_prefix=NONE |
| 776 | program_suffix=NONE |
| 777 | program_transform_name=s,x,x, |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 778 | silent= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 779 | site= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 780 | srcdir= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 781 | verbose= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 782 | x_includes=NONE |
| 783 | x_libraries=NONE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 784 | |
| 785 | # Installation directory options. |
| 786 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 787 | # and all the variables that are supposed to be based on exec_prefix |
| 788 | # by default will actually change. |
| 789 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 790 | # (The list follows the same order as the GNU Coding Standards.) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 791 | bindir='${exec_prefix}/bin' |
| 792 | sbindir='${exec_prefix}/sbin' |
| 793 | libexecdir='${exec_prefix}/libexec' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 794 | datarootdir='${prefix}/share' |
| 795 | datadir='${datarootdir}' |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 796 | sysconfdir='${prefix}/etc' |
| 797 | sharedstatedir='${prefix}/com' |
| 798 | localstatedir='${prefix}/var' |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 799 | includedir='${prefix}/include' |
| 800 | oldincludedir='/usr/include' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 801 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 802 | infodir='${datarootdir}/info' |
| 803 | htmldir='${docdir}' |
| 804 | dvidir='${docdir}' |
| 805 | pdfdir='${docdir}' |
| 806 | psdir='${docdir}' |
| 807 | libdir='${exec_prefix}/lib' |
| 808 | localedir='${datarootdir}/locale' |
| 809 | mandir='${datarootdir}/man' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 810 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 811 | ac_prev= |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 812 | ac_dashdash= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 813 | for ac_option |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 814 | do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 815 | # If the previous option needs an argument, assign it. |
| 816 | if test -n "$ac_prev"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 817 | eval $ac_prev=\$ac_option |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 818 | ac_prev= |
| 819 | continue |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 820 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 821 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 822 | case $ac_option in |
| 823 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 824 | *) ac_optarg=yes ;; |
| 825 | esac |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 826 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 827 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 828 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 829 | case $ac_dashdash$ac_option in |
| 830 | --) |
| 831 | ac_dashdash=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 832 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 833 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 834 | ac_prev=bindir ;; |
| 835 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 836 | bindir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 837 | |
| 838 | -build | --build | --buil | --bui | --bu) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 839 | ac_prev=build_alias ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 840 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 841 | build_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 842 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 843 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 844 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 845 | ac_prev=cache_file ;; |
| 846 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 847 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 848 | cache_file=$ac_optarg ;; |
| 849 | |
| 850 | --config-cache | -C) |
| 851 | cache_file=config.cache ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 852 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 853 | -datadir | --datadir | --datadi | --datad) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 854 | ac_prev=datadir ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 855 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 856 | datadir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 857 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 858 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 859 | | --dataroo | --dataro | --datar) |
| 860 | ac_prev=datarootdir ;; |
| 861 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 862 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 863 | datarootdir=$ac_optarg ;; |
| 864 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 865 | -disable-* | --disable-*) |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 866 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 867 | # Reject names that are not valid shell variable names. |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 868 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 869 | as_fn_error "invalid feature name: $ac_useropt" |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 870 | ac_useropt_orig=$ac_useropt |
| 871 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 872 | case $ac_user_opts in |
| 873 | *" |
| 874 | "enable_$ac_useropt" |
| 875 | "*) ;; |
| 876 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 877 | ac_unrecognized_sep=', ';; |
| 878 | esac |
| 879 | eval enable_$ac_useropt=no ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 880 | |
| 881 | -docdir | --docdir | --docdi | --doc | --do) |
| 882 | ac_prev=docdir ;; |
| 883 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 884 | docdir=$ac_optarg ;; |
| 885 | |
| 886 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 887 | ac_prev=dvidir ;; |
| 888 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 889 | dvidir=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 890 | |
| 891 | -enable-* | --enable-*) |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 892 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 893 | # Reject names that are not valid shell variable names. |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 894 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 895 | as_fn_error "invalid feature name: $ac_useropt" |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 896 | ac_useropt_orig=$ac_useropt |
| 897 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 898 | case $ac_user_opts in |
| 899 | *" |
| 900 | "enable_$ac_useropt" |
| 901 | "*) ;; |
| 902 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 903 | ac_unrecognized_sep=', ';; |
| 904 | esac |
| 905 | eval enable_$ac_useropt=\$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 906 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 907 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 908 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 909 | | --exec | --exe | --ex) |
| 910 | ac_prev=exec_prefix ;; |
| 911 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 912 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 913 | | --exec=* | --exe=* | --ex=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 914 | exec_prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 915 | |
| 916 | -gas | --gas | --ga | --g) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 917 | # Obsolete; use --with-gas. |
| 918 | with_gas=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 919 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 920 | -help | --help | --hel | --he | -h) |
| 921 | ac_init_help=long ;; |
| 922 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 923 | ac_init_help=recursive ;; |
| 924 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 925 | ac_init_help=short ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 926 | |
| 927 | -host | --host | --hos | --ho) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 928 | ac_prev=host_alias ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 929 | -host=* | --host=* | --hos=* | --ho=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 930 | host_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 931 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 932 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 933 | ac_prev=htmldir ;; |
| 934 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 935 | | --ht=*) |
| 936 | htmldir=$ac_optarg ;; |
| 937 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 938 | -includedir | --includedir | --includedi | --included | --include \ |
| 939 | | --includ | --inclu | --incl | --inc) |
| 940 | ac_prev=includedir ;; |
| 941 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 942 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 943 | includedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 944 | |
| 945 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 946 | ac_prev=infodir ;; |
| 947 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 948 | infodir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 949 | |
| 950 | -libdir | --libdir | --libdi | --libd) |
| 951 | ac_prev=libdir ;; |
| 952 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 953 | libdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 954 | |
| 955 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 956 | | --libexe | --libex | --libe) |
| 957 | ac_prev=libexecdir ;; |
| 958 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 959 | | --libexe=* | --libex=* | --libe=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 960 | libexecdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 961 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 962 | -localedir | --localedir | --localedi | --localed | --locale) |
| 963 | ac_prev=localedir ;; |
| 964 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 965 | localedir=$ac_optarg ;; |
| 966 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 967 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 968 | | --localstate | --localstat | --localsta | --localst | --locals) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 969 | ac_prev=localstatedir ;; |
| 970 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 971 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 972 | localstatedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 973 | |
| 974 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 975 | ac_prev=mandir ;; |
| 976 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 977 | mandir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 978 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 979 | -nfp | --nfp | --nf) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 980 | # Obsolete; use --without-fp. |
| 981 | with_fp=no ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 982 | |
| 983 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 984 | | --no-cr | --no-c | -n) |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 985 | no_create=yes ;; |
| 986 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 987 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 988 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 989 | no_recursion=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 990 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 991 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 992 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 993 | | --oldin | --oldi | --old | --ol | --o) |
| 994 | ac_prev=oldincludedir ;; |
| 995 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 996 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 997 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 998 | oldincludedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 999 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1000 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1001 | ac_prev=prefix ;; |
| 1002 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1003 | prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1004 | |
| 1005 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1006 | | --program-pre | --program-pr | --program-p) |
| 1007 | ac_prev=program_prefix ;; |
| 1008 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1009 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1010 | program_prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1011 | |
| 1012 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1013 | | --program-suf | --program-su | --program-s) |
| 1014 | ac_prev=program_suffix ;; |
| 1015 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1016 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1017 | program_suffix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1018 | |
| 1019 | -program-transform-name | --program-transform-name \ |
| 1020 | | --program-transform-nam | --program-transform-na \ |
| 1021 | | --program-transform-n | --program-transform- \ |
| 1022 | | --program-transform | --program-transfor \ |
| 1023 | | --program-transfo | --program-transf \ |
| 1024 | | --program-trans | --program-tran \ |
| 1025 | | --progr-tra | --program-tr | --program-t) |
| 1026 | ac_prev=program_transform_name ;; |
| 1027 | -program-transform-name=* | --program-transform-name=* \ |
| 1028 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1029 | | --program-transform-n=* | --program-transform-=* \ |
| 1030 | | --program-transform=* | --program-transfor=* \ |
| 1031 | | --program-transfo=* | --program-transf=* \ |
| 1032 | | --program-trans=* | --program-tran=* \ |
| 1033 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1034 | program_transform_name=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1035 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1036 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1037 | ac_prev=pdfdir ;; |
| 1038 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1039 | pdfdir=$ac_optarg ;; |
| 1040 | |
| 1041 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1042 | ac_prev=psdir ;; |
| 1043 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1044 | psdir=$ac_optarg ;; |
| 1045 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1046 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1047 | | -silent | --silent | --silen | --sile | --sil) |
| 1048 | silent=yes ;; |
| 1049 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1050 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1051 | ac_prev=sbindir ;; |
| 1052 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1053 | | --sbi=* | --sb=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1054 | sbindir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1055 | |
| 1056 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1057 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1058 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1059 | | --sha | --sh) |
| 1060 | ac_prev=sharedstatedir ;; |
| 1061 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1062 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1063 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1064 | | --sha=* | --sh=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1065 | sharedstatedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1066 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1067 | -site | --site | --sit) |
| 1068 | ac_prev=site ;; |
| 1069 | -site=* | --site=* | --sit=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1070 | site=$ac_optarg ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1071 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1072 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1073 | ac_prev=srcdir ;; |
| 1074 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1075 | srcdir=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1076 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1077 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1078 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1079 | ac_prev=sysconfdir ;; |
| 1080 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1081 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1082 | sysconfdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1083 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1084 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1085 | ac_prev=target_alias ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1086 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1087 | target_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1088 | |
| 1089 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1090 | verbose=yes ;; |
| 1091 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1092 | -version | --version | --versio | --versi | --vers | -V) |
| 1093 | ac_init_version=: ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1094 | |
| 1095 | -with-* | --with-*) |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 1096 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1097 | # Reject names that are not valid shell variable names. |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 1098 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 1099 | as_fn_error "invalid package name: $ac_useropt" |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 1100 | ac_useropt_orig=$ac_useropt |
| 1101 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1102 | case $ac_user_opts in |
| 1103 | *" |
| 1104 | "with_$ac_useropt" |
| 1105 | "*) ;; |
| 1106 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1107 | ac_unrecognized_sep=', ';; |
| 1108 | esac |
| 1109 | eval with_$ac_useropt=\$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1110 | |
| 1111 | -without-* | --without-*) |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 1112 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1113 | # Reject names that are not valid shell variable names. |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 1114 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 1115 | as_fn_error "invalid package name: $ac_useropt" |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 1116 | ac_useropt_orig=$ac_useropt |
| 1117 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1118 | case $ac_user_opts in |
| 1119 | *" |
| 1120 | "with_$ac_useropt" |
| 1121 | "*) ;; |
| 1122 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1123 | ac_unrecognized_sep=', ';; |
| 1124 | esac |
| 1125 | eval with_$ac_useropt=no ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1126 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1127 | --x) |
| 1128 | # Obsolete; use --with-x. |
| 1129 | with_x=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1130 | |
| 1131 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1132 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1133 | ac_prev=x_includes ;; |
| 1134 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1135 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1136 | x_includes=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1137 | |
| 1138 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1139 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1140 | ac_prev=x_libraries ;; |
| 1141 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1142 | | --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] | 1143 | x_libraries=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1144 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 1145 | -*) as_fn_error "unrecognized option: \`$ac_option' |
| 1146 | Try \`$0 --help' for more information." |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1147 | ;; |
| 1148 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1149 | *=*) |
| 1150 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1151 | # Reject names that are not valid shell variable names. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 1152 | case $ac_envvar in #( |
| 1153 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
| 1154 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; |
| 1155 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1156 | eval $ac_envvar=\$ac_optarg |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1157 | export $ac_envvar ;; |
| 1158 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1159 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1160 | # FIXME: should be removed in autoconf 3.0. |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 1161 | $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] | 1162 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 1163 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1164 | : ${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] | 1165 | ;; |
| 1166 | |
| 1167 | esac |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1168 | done |
| 1169 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1170 | if test -n "$ac_prev"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1171 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 1172 | as_fn_error "missing argument to $ac_option" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1173 | fi |
| 1174 | |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 1175 | if test -n "$ac_unrecognized_opts"; then |
| 1176 | case $enable_option_checking in |
| 1177 | no) ;; |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 1178 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 1179 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1180 | esac |
| 1181 | fi |
| 1182 | |
| 1183 | # Check all directory arguments for consistency. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1184 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1185 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1186 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1187 | libdir localedir mandir |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1188 | do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1189 | eval ac_val=\$$ac_var |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 1190 | # Remove trailing slashes. |
| 1191 | case $ac_val in |
| 1192 | */ ) |
| 1193 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1194 | eval $ac_var=\$ac_val;; |
| 1195 | esac |
| 1196 | # Be sure to have absolute directory names. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1197 | case $ac_val in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1198 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1199 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1200 | esac |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 1201 | 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] | 1202 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1203 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1204 | # There might be people who depend on the old broken behavior: `$host' |
| 1205 | # used to hold the argument of --host etc. |
| 1206 | # FIXME: To remove some day. |
| 1207 | build=$build_alias |
| 1208 | host=$host_alias |
| 1209 | target=$target_alias |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1210 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1211 | # FIXME: To remove some day. |
| 1212 | if test "x$host_alias" != x; then |
| 1213 | if test "x$build_alias" = x; then |
| 1214 | cross_compiling=maybe |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 1215 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1216 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1217 | elif test "x$build_alias" != "x$host_alias"; then |
| 1218 | cross_compiling=yes |
| 1219 | fi |
| 1220 | fi |
| 1221 | |
| 1222 | ac_tool_prefix= |
| 1223 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1224 | |
| 1225 | test "$silent" = yes && exec 6>/dev/null |
| 1226 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1227 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1228 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1229 | ac_ls_di=`ls -di .` && |
| 1230 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 1231 | as_fn_error "working directory cannot be determined" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1232 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 1233 | as_fn_error "pwd does not report name of working directory" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1234 | |
| 1235 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1236 | # Find the source files, if location was not specified. |
| 1237 | if test -z "$srcdir"; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1238 | ac_srcdir_defaulted=yes |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1239 | # Try the directory containing this script, then the parent directory. |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 1240 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1241 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1242 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1243 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1244 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1245 | $as_echo X"$as_myself" | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1246 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1247 | s//\1/ |
| 1248 | q |
| 1249 | } |
| 1250 | /^X\(\/\/\)[^/].*/{ |
| 1251 | s//\1/ |
| 1252 | q |
| 1253 | } |
| 1254 | /^X\(\/\/\)$/{ |
| 1255 | s//\1/ |
| 1256 | q |
| 1257 | } |
| 1258 | /^X\(\/\).*/{ |
| 1259 | s//\1/ |
| 1260 | q |
| 1261 | } |
| 1262 | s/.*/./; q'` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1263 | srcdir=$ac_confdir |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1264 | if test ! -r "$srcdir/$ac_unique_file"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1265 | srcdir=.. |
| 1266 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1267 | else |
| 1268 | ac_srcdir_defaulted=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1269 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1270 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1271 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 1272 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1273 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1274 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1275 | ac_abs_confdir=`( |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 1276 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1277 | pwd)` |
| 1278 | # When building in place, set srcdir=. |
| 1279 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1280 | srcdir=. |
| 1281 | fi |
| 1282 | # Remove unnecessary trailing slashes from srcdir. |
| 1283 | # Double slashes in file names in object file debugging info |
| 1284 | # mess up M-x gdb in Emacs. |
| 1285 | case $srcdir in |
| 1286 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1287 | esac |
| 1288 | for ac_var in $ac_precious_vars; do |
| 1289 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1290 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1291 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1292 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1293 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1294 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1295 | # |
| 1296 | # Report the --help message. |
| 1297 | # |
| 1298 | if test "$ac_init_help" = "long"; then |
| 1299 | # Omit some internal or obsolete options to make the list less imposing. |
| 1300 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1301 | cat <<_ACEOF |
Christian Heimes | 70e5cab | 2008-12-03 18:18:23 +0000 | [diff] [blame] | 1302 | \`configure' configures python 3.1 to adapt to many kinds of systems. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1303 | |
| 1304 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1305 | |
| 1306 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1307 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1308 | |
| 1309 | Defaults for the options are specified in brackets. |
| 1310 | |
| 1311 | Configuration: |
| 1312 | -h, --help display this help and exit |
| 1313 | --help=short display options specific to this package |
| 1314 | --help=recursive display the short help of all the included packages |
| 1315 | -V, --version display version information and exit |
| 1316 | -q, --quiet, --silent do not print \`checking...' messages |
| 1317 | --cache-file=FILE cache test results in FILE [disabled] |
| 1318 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1319 | -n, --no-create do not create output files |
| 1320 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1321 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1322 | Installation directories: |
| 1323 | --prefix=PREFIX install architecture-independent files in PREFIX |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 1324 | [$ac_default_prefix] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1325 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 1326 | [PREFIX] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1327 | |
| 1328 | By default, \`make install' will install all the files in |
| 1329 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1330 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1331 | for instance \`--prefix=\$HOME'. |
| 1332 | |
| 1333 | For better control, use the options below. |
| 1334 | |
| 1335 | Fine tuning of the installation directories: |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 1336 | --bindir=DIR user executables [EPREFIX/bin] |
| 1337 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1338 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1339 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1340 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1341 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1342 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1343 | --includedir=DIR C header files [PREFIX/include] |
| 1344 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1345 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1346 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1347 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1348 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1349 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1350 | --docdir=DIR documentation root [DATAROOTDIR/doc/python] |
| 1351 | --htmldir=DIR html documentation [DOCDIR] |
| 1352 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1353 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1354 | --psdir=DIR ps documentation [DOCDIR] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1355 | _ACEOF |
| 1356 | |
| 1357 | cat <<\_ACEOF |
| 1358 | _ACEOF |
| 1359 | fi |
| 1360 | |
| 1361 | if test -n "$ac_init_help"; then |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1362 | case $ac_init_help in |
Christian Heimes | 70e5cab | 2008-12-03 18:18:23 +0000 | [diff] [blame] | 1363 | short | recursive ) echo "Configuration of python 3.1:";; |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1364 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1365 | cat <<\_ACEOF |
| 1366 | |
| 1367 | Optional Features: |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 1368 | --disable-option-checking ignore unrecognized --enable/--with options |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1369 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1370 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Christian Heimes | 68f5fbe | 2008-02-14 08:27:37 +0000 | [diff] [blame] | 1371 | --enable-universalsdk[=SDKDIR] |
Christian Heimes | 292d351 | 2008-02-03 16:51:08 +0000 | [diff] [blame] | 1372 | Build against Mac OS X 10.4u SDK (ppc/i386) |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1373 | --enable-framework[=INSTALLDIR] |
| 1374 | Build (MacOSX|Darwin) framework |
| 1375 | --enable-shared disable/enable building shared python library |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 1376 | --enable-profiling enable C-level code profiling |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1377 | --enable-ipv6 Enable ipv6 (with ipv4) support |
| 1378 | --disable-ipv6 Disable ipv6 support |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 1379 | --enable-big-digits[=BITS] |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 1380 | use big digits for Python longs [[BITS=30]] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1381 | |
| 1382 | Optional Packages: |
| 1383 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1384 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 1385 | --with-universal-archs=ARCH |
| 1386 | select architectures for universal build ("32-bit", |
Ronald Oussoren | 856624d | 2009-09-08 07:13:53 +0000 | [diff] [blame] | 1387 | "64-bit", "3-way", "intel" or "all") |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 1388 | --with-framework-name=FRAMEWORK |
| 1389 | specify an alternate name of the framework built |
| 1390 | with --enable-framework |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1391 | --without-gcc never use gcc |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 1392 | --with-cxx-main=<compiler> |
| 1393 | compile main() and link python executable with C++ |
| 1394 | compiler |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1395 | --with-suffix=.exe set executable suffix |
| 1396 | --with-pydebug build with Py_DEBUG defined |
| 1397 | --with-libs='lib1 ...' link against additional libs |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 1398 | --with-system-ffi build _ctypes module using an installed ffi library |
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 1399 | --with-dbmliborder=db1:db2:... |
| 1400 | order to check db backends for dbm. Valid value is a |
| 1401 | colon separated string with the backend names |
| 1402 | `ndbm', `gdbm' and `bdb'. |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1403 | --with-signal-module disable/enable signal module |
| 1404 | --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries |
| 1405 | --with(out)-threads[=DIRECTORY] |
| 1406 | disable/enable thread support |
| 1407 | --with(out)-thread[=DIRECTORY] |
| 1408 | deprecated; use --with(out)-threads |
| 1409 | --with-pth use GNU pth threading libraries |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1410 | --with(out)-doc-strings disable/enable documentation strings |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 1411 | --with(out)-tsc enable/disable timestamp counter profile |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1412 | --with(out)-pymalloc disable/enable specialized mallocs |
| 1413 | --with-wctype-functions use wctype.h functions |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1414 | --with-fpectl enable SIGFPE catching |
| 1415 | --with-libm=STRING math library |
| 1416 | --with-libc=STRING C library |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 1417 | --with-wide-unicode Use 4-byte Unicode characters (default is 2 bytes) |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 1418 | --with-computed-gotos Use computed gotos / threaded dispatch in evaluation |
| 1419 | loop (not available on all compilers) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1420 | |
| 1421 | Some influential environment variables: |
| 1422 | CC C compiler command |
| 1423 | CFLAGS C compiler flags |
| 1424 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1425 | nonstandard directory <lib dir> |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1426 | LIBS libraries to pass to the linker, e.g. -l<library> |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 1427 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1428 | you have headers in a nonstandard directory <include dir> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1429 | CPP C preprocessor |
| 1430 | |
| 1431 | Use these variables to override the choices made by `configure' or to help |
| 1432 | it to find libraries and programs with nonstandard names/locations. |
| 1433 | |
Georg Brandl | e2e1561 | 2009-05-20 18:25:10 +0000 | [diff] [blame] | 1434 | Report bugs to <http://bugs.python.org/>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1435 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1436 | ac_status=$? |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1437 | fi |
| 1438 | |
| 1439 | if test "$ac_init_help" = "recursive"; then |
| 1440 | # If there are subdirs, report their specific --help. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1441 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 1442 | test -d "$ac_dir" || |
| 1443 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1444 | continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1445 | ac_builddir=. |
| 1446 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1447 | case "$ac_dir" in |
| 1448 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1449 | *) |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 1450 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1451 | # A ".." for each directory in $ac_dir_suffix. |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 1452 | 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] | 1453 | case $ac_top_builddir_sub in |
| 1454 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1455 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1456 | esac ;; |
| 1457 | esac |
| 1458 | ac_abs_top_builddir=$ac_pwd |
| 1459 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1460 | # for backward compatibility: |
| 1461 | ac_top_builddir=$ac_top_build_prefix |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1462 | |
| 1463 | case $srcdir in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1464 | .) # We are building in place. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1465 | ac_srcdir=. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1466 | ac_top_srcdir=$ac_top_builddir_sub |
| 1467 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1468 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1469 | ac_srcdir=$srcdir$ac_dir_suffix; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1470 | ac_top_srcdir=$srcdir |
| 1471 | ac_abs_top_srcdir=$srcdir ;; |
| 1472 | *) # Relative name. |
| 1473 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1474 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1475 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1476 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1477 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1478 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1479 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1480 | # Check for guested configure. |
| 1481 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1482 | echo && |
| 1483 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1484 | elif test -f "$ac_srcdir/configure"; then |
| 1485 | echo && |
| 1486 | $SHELL "$ac_srcdir/configure" --help=recursive |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1487 | else |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 1488 | $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] | 1489 | fi || ac_status=$? |
| 1490 | cd "$ac_pwd" || { ac_status=$?; break; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1491 | done |
| 1492 | fi |
| 1493 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1494 | test -n "$ac_init_help" && exit $ac_status |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1495 | if $ac_init_version; then |
| 1496 | cat <<\_ACEOF |
Christian Heimes | 70e5cab | 2008-12-03 18:18:23 +0000 | [diff] [blame] | 1497 | python configure 3.1 |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 1498 | generated by GNU Autoconf 2.65 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1499 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 1500 | Copyright (C) 2009 Free Software Foundation, Inc. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1501 | This configure script is free software; the Free Software Foundation |
| 1502 | gives unlimited permission to copy, distribute and modify it. |
| 1503 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1504 | exit |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1505 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 1506 | |
| 1507 | ## ------------------------ ## |
| 1508 | ## Autoconf initialization. ## |
| 1509 | ## ------------------------ ## |
| 1510 | |
| 1511 | # ac_fn_c_try_compile LINENO |
| 1512 | # -------------------------- |
| 1513 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1514 | ac_fn_c_try_compile () |
| 1515 | { |
| 1516 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1517 | rm -f conftest.$ac_objext |
| 1518 | if { { ac_try="$ac_compile" |
| 1519 | case "(($ac_try" in |
| 1520 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1521 | *) ac_try_echo=$ac_try;; |
| 1522 | esac |
| 1523 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1524 | $as_echo "$ac_try_echo"; } >&5 |
| 1525 | (eval "$ac_compile") 2>conftest.err |
| 1526 | ac_status=$? |
| 1527 | if test -s conftest.err; then |
| 1528 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1529 | cat conftest.er1 >&5 |
| 1530 | mv -f conftest.er1 conftest.err |
| 1531 | fi |
| 1532 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1533 | test $ac_status = 0; } && { |
| 1534 | test -z "$ac_c_werror_flag" || |
| 1535 | test ! -s conftest.err |
| 1536 | } && test -s conftest.$ac_objext; then : |
| 1537 | ac_retval=0 |
| 1538 | else |
| 1539 | $as_echo "$as_me: failed program was:" >&5 |
| 1540 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1541 | |
| 1542 | ac_retval=1 |
| 1543 | fi |
| 1544 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1545 | as_fn_set_status $ac_retval |
| 1546 | |
| 1547 | } # ac_fn_c_try_compile |
| 1548 | |
| 1549 | # ac_fn_c_try_cpp LINENO |
| 1550 | # ---------------------- |
| 1551 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1552 | ac_fn_c_try_cpp () |
| 1553 | { |
| 1554 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1555 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1556 | case "(($ac_try" in |
| 1557 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1558 | *) ac_try_echo=$ac_try;; |
| 1559 | esac |
| 1560 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1561 | $as_echo "$ac_try_echo"; } >&5 |
| 1562 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1563 | ac_status=$? |
| 1564 | if test -s conftest.err; then |
| 1565 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1566 | cat conftest.er1 >&5 |
| 1567 | mv -f conftest.er1 conftest.err |
| 1568 | fi |
| 1569 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1570 | test $ac_status = 0; } >/dev/null && { |
| 1571 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 1572 | test ! -s conftest.err |
| 1573 | }; then : |
| 1574 | ac_retval=0 |
| 1575 | else |
| 1576 | $as_echo "$as_me: failed program was:" >&5 |
| 1577 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1578 | |
| 1579 | ac_retval=1 |
| 1580 | fi |
| 1581 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1582 | as_fn_set_status $ac_retval |
| 1583 | |
| 1584 | } # ac_fn_c_try_cpp |
| 1585 | |
| 1586 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
| 1587 | # ------------------------------------------------------- |
| 1588 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
| 1589 | # the include files in INCLUDES and setting the cache variable VAR |
| 1590 | # accordingly. |
| 1591 | ac_fn_c_check_header_mongrel () |
| 1592 | { |
| 1593 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1594 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1595 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1596 | $as_echo_n "checking for $2... " >&6; } |
| 1597 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1598 | $as_echo_n "(cached) " >&6 |
| 1599 | fi |
| 1600 | eval ac_res=\$$3 |
| 1601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1602 | $as_echo "$ac_res" >&6; } |
| 1603 | else |
| 1604 | # Is the header compilable? |
| 1605 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
| 1606 | $as_echo_n "checking $2 usability... " >&6; } |
| 1607 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1608 | /* end confdefs.h. */ |
| 1609 | $4 |
| 1610 | #include <$2> |
| 1611 | _ACEOF |
| 1612 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1613 | ac_header_compiler=yes |
| 1614 | else |
| 1615 | ac_header_compiler=no |
| 1616 | fi |
| 1617 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
| 1619 | $as_echo "$ac_header_compiler" >&6; } |
| 1620 | |
| 1621 | # Is the header present? |
| 1622 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
| 1623 | $as_echo_n "checking $2 presence... " >&6; } |
| 1624 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1625 | /* end confdefs.h. */ |
| 1626 | #include <$2> |
| 1627 | _ACEOF |
| 1628 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 1629 | ac_header_preproc=yes |
| 1630 | else |
| 1631 | ac_header_preproc=no |
| 1632 | fi |
| 1633 | rm -f conftest.err conftest.$ac_ext |
| 1634 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
| 1635 | $as_echo "$ac_header_preproc" >&6; } |
| 1636 | |
| 1637 | # So? What about this header? |
| 1638 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
| 1639 | yes:no: ) |
| 1640 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 1641 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 1642 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1643 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1644 | ;; |
| 1645 | no:yes:* ) |
| 1646 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
| 1647 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
| 1648 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
| 1649 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
| 1650 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
| 1651 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
| 1652 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
| 1653 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
| 1654 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1655 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1656 | ( cat <<\_ASBOX |
| 1657 | ## -------------------------------------- ## |
| 1658 | ## Report this to http://bugs.python.org/ ## |
| 1659 | ## -------------------------------------- ## |
| 1660 | _ASBOX |
| 1661 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 1662 | ;; |
| 1663 | esac |
| 1664 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1665 | $as_echo_n "checking for $2... " >&6; } |
| 1666 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1667 | $as_echo_n "(cached) " >&6 |
| 1668 | else |
| 1669 | eval "$3=\$ac_header_compiler" |
| 1670 | fi |
| 1671 | eval ac_res=\$$3 |
| 1672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1673 | $as_echo "$ac_res" >&6; } |
| 1674 | fi |
| 1675 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1676 | |
| 1677 | } # ac_fn_c_check_header_mongrel |
| 1678 | |
| 1679 | # ac_fn_c_try_run LINENO |
| 1680 | # ---------------------- |
| 1681 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
| 1682 | # that executables *can* be run. |
| 1683 | ac_fn_c_try_run () |
| 1684 | { |
| 1685 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1686 | if { { ac_try="$ac_link" |
| 1687 | case "(($ac_try" in |
| 1688 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1689 | *) ac_try_echo=$ac_try;; |
| 1690 | esac |
| 1691 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1692 | $as_echo "$ac_try_echo"; } >&5 |
| 1693 | (eval "$ac_link") 2>&5 |
| 1694 | ac_status=$? |
| 1695 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1696 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 1697 | { { case "(($ac_try" in |
| 1698 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1699 | *) ac_try_echo=$ac_try;; |
| 1700 | esac |
| 1701 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1702 | $as_echo "$ac_try_echo"; } >&5 |
| 1703 | (eval "$ac_try") 2>&5 |
| 1704 | ac_status=$? |
| 1705 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1706 | test $ac_status = 0; }; }; then : |
| 1707 | ac_retval=0 |
| 1708 | else |
| 1709 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 1710 | $as_echo "$as_me: failed program was:" >&5 |
| 1711 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1712 | |
| 1713 | ac_retval=$ac_status |
| 1714 | fi |
| 1715 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1716 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1717 | as_fn_set_status $ac_retval |
| 1718 | |
| 1719 | } # ac_fn_c_try_run |
| 1720 | |
| 1721 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 1722 | # ------------------------------------------------------- |
| 1723 | # Tests whether HEADER exists and can be compiled using the include files in |
| 1724 | # INCLUDES, setting the cache variable VAR accordingly. |
| 1725 | ac_fn_c_check_header_compile () |
| 1726 | { |
| 1727 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1728 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1729 | $as_echo_n "checking for $2... " >&6; } |
| 1730 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1731 | $as_echo_n "(cached) " >&6 |
| 1732 | else |
| 1733 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1734 | /* end confdefs.h. */ |
| 1735 | $4 |
| 1736 | #include <$2> |
| 1737 | _ACEOF |
| 1738 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1739 | eval "$3=yes" |
| 1740 | else |
| 1741 | eval "$3=no" |
| 1742 | fi |
| 1743 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1744 | fi |
| 1745 | eval ac_res=\$$3 |
| 1746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1747 | $as_echo "$ac_res" >&6; } |
| 1748 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1749 | |
| 1750 | } # ac_fn_c_check_header_compile |
| 1751 | |
| 1752 | # ac_fn_c_try_link LINENO |
| 1753 | # ----------------------- |
| 1754 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1755 | ac_fn_c_try_link () |
| 1756 | { |
| 1757 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1758 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 1759 | if { { ac_try="$ac_link" |
| 1760 | case "(($ac_try" in |
| 1761 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1762 | *) ac_try_echo=$ac_try;; |
| 1763 | esac |
| 1764 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1765 | $as_echo "$ac_try_echo"; } >&5 |
| 1766 | (eval "$ac_link") 2>conftest.err |
| 1767 | ac_status=$? |
| 1768 | if test -s conftest.err; then |
| 1769 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1770 | cat conftest.er1 >&5 |
| 1771 | mv -f conftest.er1 conftest.err |
| 1772 | fi |
| 1773 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1774 | test $ac_status = 0; } && { |
| 1775 | test -z "$ac_c_werror_flag" || |
| 1776 | test ! -s conftest.err |
| 1777 | } && test -s conftest$ac_exeext && { |
| 1778 | test "$cross_compiling" = yes || |
| 1779 | $as_test_x conftest$ac_exeext |
| 1780 | }; then : |
| 1781 | ac_retval=0 |
| 1782 | else |
| 1783 | $as_echo "$as_me: failed program was:" >&5 |
| 1784 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1785 | |
| 1786 | ac_retval=1 |
| 1787 | fi |
| 1788 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1789 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1790 | # interfere with the next link command; also delete a directory that is |
| 1791 | # left behind by Apple's compiler. We do this before executing the actions. |
| 1792 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1793 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1794 | as_fn_set_status $ac_retval |
| 1795 | |
| 1796 | } # ac_fn_c_try_link |
| 1797 | |
| 1798 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
| 1799 | # ------------------------------------------- |
| 1800 | # Tests whether TYPE exists after having included INCLUDES, setting cache |
| 1801 | # variable VAR accordingly. |
| 1802 | ac_fn_c_check_type () |
| 1803 | { |
| 1804 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1805 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1806 | $as_echo_n "checking for $2... " >&6; } |
| 1807 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1808 | $as_echo_n "(cached) " >&6 |
| 1809 | else |
| 1810 | eval "$3=no" |
| 1811 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1812 | /* end confdefs.h. */ |
| 1813 | $4 |
| 1814 | int |
| 1815 | main () |
| 1816 | { |
| 1817 | if (sizeof ($2)) |
| 1818 | return 0; |
| 1819 | ; |
| 1820 | return 0; |
| 1821 | } |
| 1822 | _ACEOF |
| 1823 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1824 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1825 | /* end confdefs.h. */ |
| 1826 | $4 |
| 1827 | int |
| 1828 | main () |
| 1829 | { |
| 1830 | if (sizeof (($2))) |
| 1831 | return 0; |
| 1832 | ; |
| 1833 | return 0; |
| 1834 | } |
| 1835 | _ACEOF |
| 1836 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1837 | |
| 1838 | else |
| 1839 | eval "$3=yes" |
| 1840 | fi |
| 1841 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1842 | fi |
| 1843 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1844 | fi |
| 1845 | eval ac_res=\$$3 |
| 1846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1847 | $as_echo "$ac_res" >&6; } |
| 1848 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1849 | |
| 1850 | } # ac_fn_c_check_type |
| 1851 | |
| 1852 | # ac_fn_c_find_uintX_t LINENO BITS VAR |
| 1853 | # ------------------------------------ |
| 1854 | # Finds an unsigned integer type with width BITS, setting cache variable VAR |
| 1855 | # accordingly. |
| 1856 | ac_fn_c_find_uintX_t () |
| 1857 | { |
| 1858 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1859 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 |
| 1860 | $as_echo_n "checking for uint$2_t... " >&6; } |
| 1861 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1862 | $as_echo_n "(cached) " >&6 |
| 1863 | else |
| 1864 | eval "$3=no" |
| 1865 | # Order is important - never check a type that is potentially smaller |
| 1866 | # than half of the expected target width. |
| 1867 | for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ |
| 1868 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
| 1869 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1870 | /* end confdefs.h. */ |
| 1871 | $ac_includes_default |
| 1872 | int |
| 1873 | main () |
| 1874 | { |
| 1875 | static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; |
| 1876 | test_array [0] = 0 |
| 1877 | |
| 1878 | ; |
| 1879 | return 0; |
| 1880 | } |
| 1881 | _ACEOF |
| 1882 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1883 | case $ac_type in #( |
| 1884 | uint$2_t) : |
| 1885 | eval "$3=yes" ;; #( |
| 1886 | *) : |
| 1887 | eval "$3=\$ac_type" ;; |
| 1888 | esac |
| 1889 | fi |
| 1890 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1891 | eval as_val=\$$3 |
| 1892 | if test "x$as_val" = x""no; then : |
| 1893 | |
| 1894 | else |
| 1895 | break |
| 1896 | fi |
| 1897 | done |
| 1898 | fi |
| 1899 | eval ac_res=\$$3 |
| 1900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1901 | $as_echo "$ac_res" >&6; } |
| 1902 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1903 | |
| 1904 | } # ac_fn_c_find_uintX_t |
| 1905 | |
| 1906 | # ac_fn_c_find_intX_t LINENO BITS VAR |
| 1907 | # ----------------------------------- |
| 1908 | # Finds a signed integer type with width BITS, setting cache variable VAR |
| 1909 | # accordingly. |
| 1910 | ac_fn_c_find_intX_t () |
| 1911 | { |
| 1912 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1913 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 |
| 1914 | $as_echo_n "checking for int$2_t... " >&6; } |
| 1915 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1916 | $as_echo_n "(cached) " >&6 |
| 1917 | else |
| 1918 | eval "$3=no" |
| 1919 | # Order is important - never check a type that is potentially smaller |
| 1920 | # than half of the expected target width. |
| 1921 | for ac_type in int$2_t 'int' 'long int' \ |
| 1922 | 'long long int' 'short int' 'signed char'; do |
| 1923 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1924 | /* end confdefs.h. */ |
| 1925 | $ac_includes_default |
| 1926 | int |
| 1927 | main () |
| 1928 | { |
Mark Dickinson | 18b0056 | 2010-07-19 07:35:16 +0000 | [diff] [blame^] | 1929 | static int test_array [1 - 2 * !(enum { N = $2 / 2 - 1 }; |
| 1930 | 0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 1931 | test_array [0] = 0 |
| 1932 | |
| 1933 | ; |
| 1934 | return 0; |
| 1935 | } |
| 1936 | _ACEOF |
| 1937 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1938 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1939 | /* end confdefs.h. */ |
| 1940 | $ac_includes_default |
| 1941 | int |
| 1942 | main () |
| 1943 | { |
Mark Dickinson | 18b0056 | 2010-07-19 07:35:16 +0000 | [diff] [blame^] | 1944 | static int test_array [1 - 2 * !(enum { N = $2 / 2 - 1 }; |
| 1945 | ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 1946 | < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; |
| 1947 | test_array [0] = 0 |
| 1948 | |
| 1949 | ; |
| 1950 | return 0; |
| 1951 | } |
| 1952 | _ACEOF |
| 1953 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1954 | |
| 1955 | else |
| 1956 | case $ac_type in #( |
| 1957 | int$2_t) : |
| 1958 | eval "$3=yes" ;; #( |
| 1959 | *) : |
| 1960 | eval "$3=\$ac_type" ;; |
| 1961 | esac |
| 1962 | fi |
| 1963 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1964 | fi |
| 1965 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1966 | eval as_val=\$$3 |
| 1967 | if test "x$as_val" = x""no; then : |
| 1968 | |
| 1969 | else |
| 1970 | break |
| 1971 | fi |
| 1972 | done |
| 1973 | fi |
| 1974 | eval ac_res=\$$3 |
| 1975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1976 | $as_echo "$ac_res" >&6; } |
| 1977 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1978 | |
| 1979 | } # ac_fn_c_find_intX_t |
| 1980 | |
| 1981 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
| 1982 | # -------------------------------------------- |
| 1983 | # Tries to find the compile-time value of EXPR in a program that includes |
| 1984 | # INCLUDES, setting VAR accordingly. Returns whether the value could be |
| 1985 | # computed |
| 1986 | ac_fn_c_compute_int () |
| 1987 | { |
| 1988 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1989 | if test "$cross_compiling" = yes; then |
| 1990 | # Depending upon the size, compute the lo and hi bounds. |
| 1991 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1992 | /* end confdefs.h. */ |
| 1993 | $4 |
| 1994 | int |
| 1995 | main () |
| 1996 | { |
| 1997 | static int test_array [1 - 2 * !(($2) >= 0)]; |
| 1998 | test_array [0] = 0 |
| 1999 | |
| 2000 | ; |
| 2001 | return 0; |
| 2002 | } |
| 2003 | _ACEOF |
| 2004 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2005 | ac_lo=0 ac_mid=0 |
| 2006 | while :; do |
| 2007 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2008 | /* end confdefs.h. */ |
| 2009 | $4 |
| 2010 | int |
| 2011 | main () |
| 2012 | { |
| 2013 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
| 2014 | test_array [0] = 0 |
| 2015 | |
| 2016 | ; |
| 2017 | return 0; |
| 2018 | } |
| 2019 | _ACEOF |
| 2020 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2021 | ac_hi=$ac_mid; break |
| 2022 | else |
| 2023 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val |
| 2024 | if test $ac_lo -le $ac_mid; then |
| 2025 | ac_lo= ac_hi= |
| 2026 | break |
| 2027 | fi |
| 2028 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val |
| 2029 | fi |
| 2030 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2031 | done |
| 2032 | else |
| 2033 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2034 | /* end confdefs.h. */ |
| 2035 | $4 |
| 2036 | int |
| 2037 | main () |
| 2038 | { |
| 2039 | static int test_array [1 - 2 * !(($2) < 0)]; |
| 2040 | test_array [0] = 0 |
| 2041 | |
| 2042 | ; |
| 2043 | return 0; |
| 2044 | } |
| 2045 | _ACEOF |
| 2046 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2047 | ac_hi=-1 ac_mid=-1 |
| 2048 | while :; do |
| 2049 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2050 | /* end confdefs.h. */ |
| 2051 | $4 |
| 2052 | int |
| 2053 | main () |
| 2054 | { |
| 2055 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; |
| 2056 | test_array [0] = 0 |
| 2057 | |
| 2058 | ; |
| 2059 | return 0; |
| 2060 | } |
| 2061 | _ACEOF |
| 2062 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2063 | ac_lo=$ac_mid; break |
| 2064 | else |
| 2065 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val |
| 2066 | if test $ac_mid -le $ac_hi; then |
| 2067 | ac_lo= ac_hi= |
| 2068 | break |
| 2069 | fi |
| 2070 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val |
| 2071 | fi |
| 2072 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2073 | done |
| 2074 | else |
| 2075 | ac_lo= ac_hi= |
| 2076 | fi |
| 2077 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2078 | fi |
| 2079 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2080 | # Binary search between lo and hi bounds. |
| 2081 | while test "x$ac_lo" != "x$ac_hi"; do |
| 2082 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val |
| 2083 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2084 | /* end confdefs.h. */ |
| 2085 | $4 |
| 2086 | int |
| 2087 | main () |
| 2088 | { |
| 2089 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
| 2090 | test_array [0] = 0 |
| 2091 | |
| 2092 | ; |
| 2093 | return 0; |
| 2094 | } |
| 2095 | _ACEOF |
| 2096 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2097 | ac_hi=$ac_mid |
| 2098 | else |
| 2099 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val |
| 2100 | fi |
| 2101 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2102 | done |
| 2103 | case $ac_lo in #(( |
| 2104 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; |
| 2105 | '') ac_retval=1 ;; |
| 2106 | esac |
| 2107 | else |
| 2108 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2109 | /* end confdefs.h. */ |
| 2110 | $4 |
| 2111 | static long int longval () { return $2; } |
| 2112 | static unsigned long int ulongval () { return $2; } |
| 2113 | #include <stdio.h> |
| 2114 | #include <stdlib.h> |
| 2115 | int |
| 2116 | main () |
| 2117 | { |
| 2118 | |
| 2119 | FILE *f = fopen ("conftest.val", "w"); |
| 2120 | if (! f) |
| 2121 | return 1; |
| 2122 | if (($2) < 0) |
| 2123 | { |
| 2124 | long int i = longval (); |
| 2125 | if (i != ($2)) |
| 2126 | return 1; |
| 2127 | fprintf (f, "%ld", i); |
| 2128 | } |
| 2129 | else |
| 2130 | { |
| 2131 | unsigned long int i = ulongval (); |
| 2132 | if (i != ($2)) |
| 2133 | return 1; |
| 2134 | fprintf (f, "%lu", i); |
| 2135 | } |
| 2136 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 2137 | on some platforms. */ |
| 2138 | return ferror (f) || fclose (f) != 0; |
| 2139 | |
| 2140 | ; |
| 2141 | return 0; |
| 2142 | } |
| 2143 | _ACEOF |
| 2144 | if ac_fn_c_try_run "$LINENO"; then : |
| 2145 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 |
| 2146 | else |
| 2147 | ac_retval=1 |
| 2148 | fi |
| 2149 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 2150 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2151 | rm -f conftest.val |
| 2152 | |
| 2153 | fi |
| 2154 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2155 | as_fn_set_status $ac_retval |
| 2156 | |
| 2157 | } # ac_fn_c_compute_int |
| 2158 | |
| 2159 | # ac_fn_c_check_func LINENO FUNC VAR |
| 2160 | # ---------------------------------- |
| 2161 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 2162 | ac_fn_c_check_func () |
| 2163 | { |
| 2164 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2165 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2166 | $as_echo_n "checking for $2... " >&6; } |
| 2167 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 2168 | $as_echo_n "(cached) " >&6 |
| 2169 | else |
| 2170 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2171 | /* end confdefs.h. */ |
| 2172 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 2173 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 2174 | #define $2 innocuous_$2 |
| 2175 | |
| 2176 | /* System header to define __stub macros and hopefully few prototypes, |
| 2177 | which can conflict with char $2 (); below. |
| 2178 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2179 | <limits.h> exists even on freestanding compilers. */ |
| 2180 | |
| 2181 | #ifdef __STDC__ |
| 2182 | # include <limits.h> |
| 2183 | #else |
| 2184 | # include <assert.h> |
| 2185 | #endif |
| 2186 | |
| 2187 | #undef $2 |
| 2188 | |
| 2189 | /* Override any GCC internal prototype to avoid an error. |
| 2190 | Use char because int might match the return type of a GCC |
| 2191 | builtin and then its argument prototype would still apply. */ |
| 2192 | #ifdef __cplusplus |
| 2193 | extern "C" |
| 2194 | #endif |
| 2195 | char $2 (); |
| 2196 | /* The GNU C library defines this for functions which it implements |
| 2197 | to always fail with ENOSYS. Some functions are actually named |
| 2198 | something starting with __ and the normal name is an alias. */ |
| 2199 | #if defined __stub_$2 || defined __stub___$2 |
| 2200 | choke me |
| 2201 | #endif |
| 2202 | |
| 2203 | int |
| 2204 | main () |
| 2205 | { |
| 2206 | return $2 (); |
| 2207 | ; |
| 2208 | return 0; |
| 2209 | } |
| 2210 | _ACEOF |
| 2211 | if ac_fn_c_try_link "$LINENO"; then : |
| 2212 | eval "$3=yes" |
| 2213 | else |
| 2214 | eval "$3=no" |
| 2215 | fi |
| 2216 | rm -f core conftest.err conftest.$ac_objext \ |
| 2217 | conftest$ac_exeext conftest.$ac_ext |
| 2218 | fi |
| 2219 | eval ac_res=\$$3 |
| 2220 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2221 | $as_echo "$ac_res" >&6; } |
| 2222 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2223 | |
| 2224 | } # ac_fn_c_check_func |
| 2225 | |
| 2226 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
| 2227 | # ---------------------------------------------------- |
| 2228 | # Tries to find if the field MEMBER exists in type AGGR, after including |
| 2229 | # INCLUDES, setting cache variable VAR accordingly. |
| 2230 | ac_fn_c_check_member () |
| 2231 | { |
| 2232 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2233 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 |
| 2234 | $as_echo_n "checking for $2.$3... " >&6; } |
| 2235 | if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 2236 | $as_echo_n "(cached) " >&6 |
| 2237 | else |
| 2238 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2239 | /* end confdefs.h. */ |
| 2240 | $5 |
| 2241 | int |
| 2242 | main () |
| 2243 | { |
| 2244 | static $2 ac_aggr; |
| 2245 | if (ac_aggr.$3) |
| 2246 | return 0; |
| 2247 | ; |
| 2248 | return 0; |
| 2249 | } |
| 2250 | _ACEOF |
| 2251 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2252 | eval "$4=yes" |
| 2253 | else |
| 2254 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2255 | /* end confdefs.h. */ |
| 2256 | $5 |
| 2257 | int |
| 2258 | main () |
| 2259 | { |
| 2260 | static $2 ac_aggr; |
| 2261 | if (sizeof ac_aggr.$3) |
| 2262 | return 0; |
| 2263 | ; |
| 2264 | return 0; |
| 2265 | } |
| 2266 | _ACEOF |
| 2267 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2268 | eval "$4=yes" |
| 2269 | else |
| 2270 | eval "$4=no" |
| 2271 | fi |
| 2272 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2273 | fi |
| 2274 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2275 | fi |
| 2276 | eval ac_res=\$$4 |
| 2277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2278 | $as_echo "$ac_res" >&6; } |
| 2279 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2280 | |
| 2281 | } # ac_fn_c_check_member |
| 2282 | |
| 2283 | # ac_fn_c_check_decl LINENO SYMBOL VAR |
| 2284 | # ------------------------------------ |
| 2285 | # Tests whether SYMBOL is declared, setting cache variable VAR accordingly. |
| 2286 | ac_fn_c_check_decl () |
| 2287 | { |
| 2288 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2289 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5 |
| 2290 | $as_echo_n "checking whether $2 is declared... " >&6; } |
| 2291 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 2292 | $as_echo_n "(cached) " >&6 |
| 2293 | else |
| 2294 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2295 | /* end confdefs.h. */ |
| 2296 | $4 |
| 2297 | int |
| 2298 | main () |
| 2299 | { |
| 2300 | #ifndef $2 |
| 2301 | (void) $2; |
| 2302 | #endif |
| 2303 | |
| 2304 | ; |
| 2305 | return 0; |
| 2306 | } |
| 2307 | _ACEOF |
| 2308 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2309 | eval "$3=yes" |
| 2310 | else |
| 2311 | eval "$3=no" |
| 2312 | fi |
| 2313 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2314 | fi |
| 2315 | eval ac_res=\$$3 |
| 2316 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2317 | $as_echo "$ac_res" >&6; } |
| 2318 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2319 | |
| 2320 | } # ac_fn_c_check_decl |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2321 | cat >config.log <<_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2322 | This file contains any messages produced by compilers while |
| 2323 | running configure, to aid debugging if configure makes a mistake. |
| 2324 | |
Christian Heimes | 70e5cab | 2008-12-03 18:18:23 +0000 | [diff] [blame] | 2325 | It was created by python $as_me 3.1, which was |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 2326 | generated by GNU Autoconf 2.65. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2327 | |
| 2328 | $ $0 $@ |
| 2329 | |
| 2330 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2331 | exec 5>>config.log |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2332 | { |
| 2333 | cat <<_ASUNAME |
| 2334 | ## --------- ## |
| 2335 | ## Platform. ## |
| 2336 | ## --------- ## |
| 2337 | |
| 2338 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 2339 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 2340 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 2341 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 2342 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 2343 | |
| 2344 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 2345 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 2346 | |
| 2347 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 2348 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 2349 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2350 | /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] | 2351 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 2352 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 2353 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 2354 | |
| 2355 | _ASUNAME |
| 2356 | |
| 2357 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2358 | for as_dir in $PATH |
| 2359 | do |
| 2360 | IFS=$as_save_IFS |
| 2361 | test -z "$as_dir" && as_dir=. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 2362 | $as_echo "PATH: $as_dir" |
| 2363 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2364 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2365 | |
| 2366 | } >&5 |
| 2367 | |
| 2368 | cat >&5 <<_ACEOF |
| 2369 | |
| 2370 | |
| 2371 | ## ----------- ## |
| 2372 | ## Core tests. ## |
| 2373 | ## ----------- ## |
| 2374 | |
| 2375 | _ACEOF |
| 2376 | |
| 2377 | |
| 2378 | # Keep a trace of the command line. |
| 2379 | # 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] | 2380 | # 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] | 2381 | # Also quote any args containing shell meta-characters. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2382 | # Make two passes to allow for proper duplicate-argument suppression. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2383 | ac_configure_args= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2384 | ac_configure_args0= |
| 2385 | ac_configure_args1= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2386 | ac_must_keep_next=false |
| 2387 | for ac_pass in 1 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2388 | do |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2389 | for ac_arg |
| 2390 | do |
| 2391 | case $ac_arg in |
| 2392 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 2393 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 2394 | | -silent | --silent | --silen | --sile | --sil) |
| 2395 | continue ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2396 | *\'*) |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 2397 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2398 | esac |
| 2399 | case $ac_pass in |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 2400 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2401 | 2) |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 2402 | as_fn_append ac_configure_args1 " '$ac_arg'" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2403 | if test $ac_must_keep_next = true; then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2404 | ac_must_keep_next=false # Got value, back to normal. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2405 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2406 | case $ac_arg in |
| 2407 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 2408 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 2409 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 2410 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 2411 | case "$ac_configure_args0 " in |
| 2412 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 2413 | esac |
| 2414 | ;; |
| 2415 | -* ) ac_must_keep_next=true ;; |
| 2416 | esac |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2417 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 2418 | as_fn_append ac_configure_args " '$ac_arg'" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2419 | ;; |
| 2420 | esac |
| 2421 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2422 | done |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 2423 | { ac_configure_args0=; unset ac_configure_args0;} |
| 2424 | { ac_configure_args1=; unset ac_configure_args1;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2425 | |
| 2426 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 2427 | # config.log. We remove comments because anyway the quotes in there |
| 2428 | # would cause problems or look ugly. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2429 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 2430 | # 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] | 2431 | trap 'exit_status=$? |
| 2432 | # Save into config.log some information that might help in debugging. |
| 2433 | { |
| 2434 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2435 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2436 | cat <<\_ASBOX |
| 2437 | ## ---------------- ## |
| 2438 | ## Cache variables. ## |
| 2439 | ## ---------------- ## |
| 2440 | _ASBOX |
| 2441 | echo |
| 2442 | # The following way of writing the cache mishandles newlines in values, |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2443 | ( |
| 2444 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 2445 | eval ac_val=\$$ac_var |
| 2446 | case $ac_val in #( |
| 2447 | *${as_nl}*) |
| 2448 | case $ac_var in #( |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 2449 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 2450 | $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] | 2451 | esac |
| 2452 | case $ac_var in #( |
| 2453 | _ | IFS | as_nl) ;; #( |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 2454 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 2455 | *) { eval $ac_var=; unset $ac_var;} ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2456 | esac ;; |
| 2457 | esac |
| 2458 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2459 | (set) 2>&1 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2460 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 2461 | *${as_nl}ac_space=\ *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2462 | sed -n \ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2463 | "s/'\''/'\''\\\\'\'''\''/g; |
| 2464 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 2465 | ;; #( |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 2466 | *) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2467 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 2468 | ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2469 | esac | |
| 2470 | sort |
| 2471 | ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2472 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2473 | |
| 2474 | cat <<\_ASBOX |
| 2475 | ## ----------------- ## |
| 2476 | ## Output variables. ## |
| 2477 | ## ----------------- ## |
| 2478 | _ASBOX |
| 2479 | echo |
| 2480 | for ac_var in $ac_subst_vars |
| 2481 | do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2482 | eval ac_val=\$$ac_var |
| 2483 | case $ac_val in |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 2484 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2485 | esac |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 2486 | $as_echo "$ac_var='\''$ac_val'\''" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2487 | done | sort |
| 2488 | echo |
| 2489 | |
| 2490 | if test -n "$ac_subst_files"; then |
| 2491 | cat <<\_ASBOX |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2492 | ## ------------------- ## |
| 2493 | ## File substitutions. ## |
| 2494 | ## ------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2495 | _ASBOX |
| 2496 | echo |
| 2497 | for ac_var in $ac_subst_files |
| 2498 | do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2499 | eval ac_val=\$$ac_var |
| 2500 | case $ac_val in |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 2501 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2502 | esac |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 2503 | $as_echo "$ac_var='\''$ac_val'\''" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2504 | done | sort |
| 2505 | echo |
| 2506 | fi |
| 2507 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2508 | if test -s confdefs.h; then |
| 2509 | cat <<\_ASBOX |
| 2510 | ## ----------- ## |
| 2511 | ## confdefs.h. ## |
| 2512 | ## ----------- ## |
| 2513 | _ASBOX |
| 2514 | echo |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2515 | cat confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2516 | echo |
| 2517 | fi |
| 2518 | test "$ac_signal" != 0 && |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 2519 | $as_echo "$as_me: caught signal $ac_signal" |
| 2520 | $as_echo "$as_me: exit $exit_status" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2521 | } >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2522 | rm -f core *.core core.conftest.* && |
| 2523 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2524 | exit $exit_status |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2525 | ' 0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2526 | for ac_signal in 1 2 13 15; do |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 2527 | 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] | 2528 | done |
| 2529 | ac_signal=0 |
| 2530 | |
| 2531 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2532 | rm -f -r conftest* confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2533 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 2534 | $as_echo "/* confdefs.h */" > confdefs.h |
| 2535 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2536 | # Predefined preprocessor variables. |
| 2537 | |
| 2538 | cat >>confdefs.h <<_ACEOF |
| 2539 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 2540 | _ACEOF |
| 2541 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2542 | cat >>confdefs.h <<_ACEOF |
| 2543 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 2544 | _ACEOF |
| 2545 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2546 | cat >>confdefs.h <<_ACEOF |
| 2547 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 2548 | _ACEOF |
| 2549 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2550 | cat >>confdefs.h <<_ACEOF |
| 2551 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 2552 | _ACEOF |
| 2553 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2554 | cat >>confdefs.h <<_ACEOF |
| 2555 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 2556 | _ACEOF |
| 2557 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 2558 | cat >>confdefs.h <<_ACEOF |
| 2559 | #define PACKAGE_URL "$PACKAGE_URL" |
| 2560 | _ACEOF |
| 2561 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2562 | |
| 2563 | # Let the site file select an alternate cache file if it wants to. |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 2564 | # Prefer an explicitly selected file to automatically selected ones. |
| 2565 | ac_site_file1=NONE |
| 2566 | ac_site_file2=NONE |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2567 | if test -n "$CONFIG_SITE"; then |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 2568 | ac_site_file1=$CONFIG_SITE |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2569 | elif test "x$prefix" != xNONE; then |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 2570 | ac_site_file1=$prefix/share/config.site |
| 2571 | ac_site_file2=$prefix/etc/config.site |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2572 | else |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 2573 | ac_site_file1=$ac_default_prefix/share/config.site |
| 2574 | ac_site_file2=$ac_default_prefix/etc/config.site |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2575 | fi |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 2576 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2577 | do |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 2578 | test "x$ac_site_file" = xNONE && continue |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 2579 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
| 2580 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 2581 | $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] | 2582 | sed 's/^/| /' "$ac_site_file" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2583 | . "$ac_site_file" |
| 2584 | fi |
| 2585 | done |
| 2586 | |
| 2587 | if test -r "$cache_file"; then |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 2588 | # Some versions of bash will fail to source /dev/null (special files |
| 2589 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 2590 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
| 2591 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 2592 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2593 | case $cache_file in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2594 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 2595 | *) . "./$cache_file";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2596 | esac |
| 2597 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2598 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 2599 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 2600 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2601 | >$cache_file |
| 2602 | fi |
| 2603 | |
| 2604 | # Check that the precious variables saved in the cache have kept the same |
| 2605 | # value. |
| 2606 | ac_cache_corrupted=false |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2607 | for ac_var in $ac_precious_vars; do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2608 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 2609 | eval ac_new_set=\$ac_env_${ac_var}_set |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2610 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 2611 | eval ac_new_val=\$ac_env_${ac_var}_value |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2612 | case $ac_old_set,$ac_new_set in |
| 2613 | set,) |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 2614 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 2615 | $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] | 2616 | ac_cache_corrupted=: ;; |
| 2617 | ,set) |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 2618 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 2619 | $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] | 2620 | ac_cache_corrupted=: ;; |
| 2621 | ,);; |
| 2622 | *) |
| 2623 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 2624 | # differences in whitespace do not lead to failure. |
| 2625 | ac_old_val_w=`echo x $ac_old_val` |
| 2626 | ac_new_val_w=`echo x $ac_new_val` |
| 2627 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 2628 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 2629 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 2630 | ac_cache_corrupted=: |
| 2631 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 2632 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 2633 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 2634 | eval $ac_var=\$ac_old_val |
| 2635 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 2636 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 2637 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 2638 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 2639 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2640 | fi;; |
| 2641 | esac |
| 2642 | # Pass precious variables to config.status. |
| 2643 | if test "$ac_new_set" = set; then |
| 2644 | case $ac_new_val in |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 2645 | *\'*) 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] | 2646 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 2647 | esac |
| 2648 | case " $ac_configure_args " in |
| 2649 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 2650 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2651 | esac |
| 2652 | fi |
| 2653 | done |
| 2654 | if $ac_cache_corrupted; then |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 2655 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 2656 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 2657 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 2658 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 2659 | 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] | 2660 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 2661 | ## -------------------- ## |
| 2662 | ## Main body of script. ## |
| 2663 | ## -------------------- ## |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2664 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2665 | ac_ext=c |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2666 | ac_cpp='$CPP $CPPFLAGS' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2667 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2668 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2669 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2670 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2671 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2672 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2673 | ac_config_headers="$ac_config_headers pyconfig.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2674 | |
| 2675 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2676 | |
Benjamin Peterson | d23f822 | 2009-04-05 19:13:16 +0000 | [diff] [blame] | 2677 | if test "$prefix" != "/"; then |
| 2678 | prefix=`echo "$prefix" | sed -e 's/\/$//g'` |
| 2679 | fi |
| 2680 | |
| 2681 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2682 | |
| 2683 | |
Martin v. Löwis | 8316feb | 2003-06-14 07:48:07 +0000 | [diff] [blame] | 2684 | # We don't use PACKAGE_ variables, and they cause conflicts |
| 2685 | # with other autoconf-based packages that include Python.h |
| 2686 | grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new |
| 2687 | rm confdefs.h |
| 2688 | mv confdefs.h.new confdefs.h |
| 2689 | |
Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 2690 | |
Christian Heimes | 70e5cab | 2008-12-03 18:18:23 +0000 | [diff] [blame] | 2691 | VERSION=3.1 |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 2692 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 2693 | |
| 2694 | SOVERSION=1.0 |
| 2695 | |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 2696 | # The later defininition of _XOPEN_SOURCE disables certain features |
| 2697 | # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone). |
| 2698 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 2699 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 2700 | |
| 2701 | |
Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 2702 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 2703 | # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable |
| 2704 | # them. |
| 2705 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 2706 | $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h |
Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 2707 | |
| 2708 | |
Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 2709 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 2710 | # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable |
| 2711 | # them. |
| 2712 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 2713 | $as_echo "#define __BSD_VISIBLE 1" >>confdefs.h |
Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 2714 | |
| 2715 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 2716 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 2717 | # u_int on Irix 5.3. Defining _BSD_TYPES brings it back. |
| 2718 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 2719 | $as_echo "#define _BSD_TYPES 1" >>confdefs.h |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 2720 | |
| 2721 | |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 2722 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 2723 | # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable |
| 2724 | # them. |
| 2725 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 2726 | $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 2727 | |
| 2728 | |
| 2729 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2730 | define_xopen_source=yes |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 2731 | |
Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 +0000 | [diff] [blame] | 2732 | # Arguments passed to configure. |
| 2733 | |
| 2734 | CONFIG_ARGS="$ac_configure_args" |
| 2735 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 2736 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-universalsdk" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 2737 | $as_echo_n "checking for --enable-universalsdk... " >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2738 | # Check whether --enable-universalsdk was given. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 2739 | if test "${enable_universalsdk+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2740 | enableval=$enable_universalsdk; |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2741 | case $enableval in |
| 2742 | yes) |
| 2743 | enableval=/Developer/SDKs/MacOSX10.4u.sdk |
Ronald Oussoren | d573681 | 2010-02-07 12:04:41 +0000 | [diff] [blame] | 2744 | if test ! -d "${enableval}" |
| 2745 | then |
| 2746 | enableval=/ |
| 2747 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2748 | ;; |
| 2749 | esac |
| 2750 | case $enableval in |
| 2751 | no) |
| 2752 | UNIVERSALSDK= |
| 2753 | enable_universalsdk= |
| 2754 | ;; |
| 2755 | *) |
| 2756 | UNIVERSALSDK=$enableval |
Ronald Oussoren | d573681 | 2010-02-07 12:04:41 +0000 | [diff] [blame] | 2757 | if test ! -d "${UNIVERSALSDK}" |
| 2758 | then |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 2759 | as_fn_error "--enable-universalsdk specifies non-existing SDK: ${UNIVERSALSDK}" "$LINENO" 5 |
Ronald Oussoren | d573681 | 2010-02-07 12:04:41 +0000 | [diff] [blame] | 2760 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2761 | ;; |
| 2762 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2763 | |
Ronald Oussoren | d573681 | 2010-02-07 12:04:41 +0000 | [diff] [blame] | 2764 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2765 | else |
| 2766 | |
| 2767 | UNIVERSALSDK= |
| 2768 | enable_universalsdk= |
| 2769 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2770 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2771 | |
Ronald Oussoren | d573681 | 2010-02-07 12:04:41 +0000 | [diff] [blame] | 2772 | if test -n "${UNIVERSALSDK}" |
| 2773 | then |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 2774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSALSDK}" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 2775 | $as_echo "${UNIVERSALSDK}" >&6; } |
Ronald Oussoren | d573681 | 2010-02-07 12:04:41 +0000 | [diff] [blame] | 2776 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 2777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 2778 | $as_echo "no" >&6; } |
Ronald Oussoren | d573681 | 2010-02-07 12:04:41 +0000 | [diff] [blame] | 2779 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2780 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2781 | |
Benjamin Peterson | 6794aa3 | 2008-07-16 20:33:37 +0000 | [diff] [blame] | 2782 | |
| 2783 | |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 2784 | UNIVERSAL_ARCHS="32-bit" |
Benjamin Peterson | e7e59c2 | 2010-03-23 21:05:56 +0000 | [diff] [blame] | 2785 | |
| 2786 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 2787 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-universal-archs" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 2788 | $as_echo_n "checking for --with-universal-archs... " >&6; } |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 2789 | |
| 2790 | # Check whether --with-universal-archs was given. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 2791 | if test "${with_universal_archs+set}" = set; then : |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 2792 | withval=$with_universal_archs; |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 2793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 2794 | $as_echo "$withval" >&6; } |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 2795 | UNIVERSAL_ARCHS="$withval" |
| 2796 | |
| 2797 | else |
| 2798 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 2799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: 32-bit" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 2800 | $as_echo "32-bit" >&6; } |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 2801 | |
| 2802 | fi |
| 2803 | |
| 2804 | |
| 2805 | |
| 2806 | |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 2807 | |
| 2808 | # Check whether --with-framework-name was given. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 2809 | if test "${with_framework_name+set}" = set; then : |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 2810 | withval=$with_framework_name; |
| 2811 | PYTHONFRAMEWORK=${withval} |
| 2812 | PYTHONFRAMEWORKDIR=${withval}.framework |
| 2813 | PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'` |
| 2814 | |
| 2815 | else |
| 2816 | |
| 2817 | PYTHONFRAMEWORK=Python |
| 2818 | PYTHONFRAMEWORKDIR=Python.framework |
| 2819 | PYTHONFRAMEWORKIDENTIFIER=org.python.python |
| 2820 | |
| 2821 | fi |
| 2822 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2823 | # Check whether --enable-framework was given. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 2824 | if test "${enable_framework+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2825 | enableval=$enable_framework; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2826 | case $enableval in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2827 | yes) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2828 | enableval=/Library/Frameworks |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2829 | esac |
| 2830 | case $enableval in |
| 2831 | no) |
| 2832 | PYTHONFRAMEWORK= |
| 2833 | PYTHONFRAMEWORKDIR=no-framework |
| 2834 | PYTHONFRAMEWORKPREFIX= |
| 2835 | PYTHONFRAMEWORKINSTALLDIR= |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2836 | FRAMEWORKINSTALLFIRST= |
| 2837 | FRAMEWORKINSTALLLAST= |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 2838 | FRAMEWORKALTINSTALLFIRST= |
| 2839 | FRAMEWORKALTINSTALLLAST= |
| 2840 | if test "x${prefix}" = "xNONE"; then |
| 2841 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
| 2842 | else |
| 2843 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
| 2844 | fi |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2845 | enable_framework= |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2846 | ;; |
| 2847 | *) |
| 2848 | PYTHONFRAMEWORKPREFIX=$enableval |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2849 | PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2850 | FRAMEWORKINSTALLFIRST="frameworkinstallstructure" |
Ronald Oussoren | f6ccbf6 | 2009-06-02 10:55:56 +0000 | [diff] [blame] | 2851 | FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure " |
Benjamin Peterson | e7e59c2 | 2010-03-23 21:05:56 +0000 | [diff] [blame] | 2852 | case "${UNIVERSAL_ARCHS}" in |
| 2853 | all|3-way|intel) |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 2854 | FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkinstallunixtools4way" |
Ronald Oussoren | e391835 | 2009-03-30 18:00:28 +0000 | [diff] [blame] | 2855 | FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkaltinstallunixtools4way" |
Benjamin Peterson | e7e59c2 | 2010-03-23 21:05:56 +0000 | [diff] [blame] | 2856 | ;; |
| 2857 | *) |
Ronald Oussoren | e391835 | 2009-03-30 18:00:28 +0000 | [diff] [blame] | 2858 | FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools" |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 2859 | FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools" |
Benjamin Peterson | e7e59c2 | 2010-03-23 21:05:56 +0000 | [diff] [blame] | 2860 | ;; |
| 2861 | esac |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 2862 | |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 2863 | if test "x${prefix}" = "xNONE" ; then |
| 2864 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
| 2865 | else |
| 2866 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
| 2867 | fi |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2868 | prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2869 | |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 2870 | # Add files for Mac specific code to the list of output |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2871 | # files: |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2872 | ac_config_files="$ac_config_files Mac/Makefile" |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2873 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2874 | ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile" |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2875 | |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 2876 | ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist" |
| 2877 | |
| 2878 | ac_config_files="$ac_config_files Mac/Resources/app/Info.plist" |
| 2879 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2880 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2881 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2882 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2883 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2884 | PYTHONFRAMEWORK= |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2885 | PYTHONFRAMEWORKDIR=no-framework |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2886 | PYTHONFRAMEWORKPREFIX= |
| 2887 | PYTHONFRAMEWORKINSTALLDIR= |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2888 | FRAMEWORKINSTALLFIRST= |
| 2889 | FRAMEWORKINSTALLLAST= |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 2890 | FRAMEWORKALTINSTALLFIRST= |
| 2891 | FRAMEWORKALTINSTALLLAST= |
| 2892 | if test "x${prefix}" = "xNONE" ; then |
| 2893 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
| 2894 | else |
| 2895 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
| 2896 | fi |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2897 | enable_framework= |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2898 | |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 2899 | if test "$UNIVERSAL_ARCHS" = "all" |
| 2900 | then |
| 2901 | FRAMEWORKINSTALLLAST=update4wayuniversal |
| 2902 | FRAMEWORKALTINSTALLLAST=update4wayuniversal |
| 2903 | fi |
| 2904 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2905 | fi |
| 2906 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2907 | |
| 2908 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2909 | |
| 2910 | |
| 2911 | |
| 2912 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2913 | |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 2914 | |
| 2915 | |
| 2916 | |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 2917 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2918 | ##AC_ARG_WITH(dyld, |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 2919 | ## AC_HELP_STRING(--with-dyld, |
| 2920 | ## Use (OpenStep|Rhapsody) dynamic linker)) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2921 | ## |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2922 | # Set name for machine-dependent library files |
| 2923 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 2924 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 2925 | $as_echo_n "checking MACHDEP... " >&6; } |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2926 | if test -z "$MACHDEP" |
| 2927 | then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2928 | ac_sys_system=`uname -s` |
Benjamin Peterson | a833206 | 2009-09-11 22:36:27 +0000 | [diff] [blame] | 2929 | if test "$ac_sys_system" = "AIX" \ |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 2930 | -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2931 | ac_sys_release=`uname -v` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2932 | else |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2933 | ac_sys_release=`uname -r` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2934 | fi |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2935 | ac_md_system=`echo $ac_sys_system | |
| 2936 | tr -d '/ ' | tr '[A-Z]' '[a-z]'` |
| 2937 | ac_md_release=`echo $ac_sys_release | |
Guido van Rossum | 67b2659 | 2001-10-20 14:21:45 +0000 | [diff] [blame] | 2938 | tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'` |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 2939 | MACHDEP="$ac_md_system$ac_md_release" |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2940 | |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 2941 | case $MACHDEP in |
Andrew M. Kuchling | 5a3e4cb | 2001-07-20 19:29:04 +0000 | [diff] [blame] | 2942 | cygwin*) MACHDEP="cygwin";; |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame] | 2943 | darwin*) MACHDEP="darwin";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 2944 | atheos*) MACHDEP="atheos";; |
Martin v. Löwis | f332228 | 2003-07-13 09:46:13 +0000 | [diff] [blame] | 2945 | irix646) MACHDEP="irix6";; |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 2946 | '') MACHDEP="unknown";; |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2947 | esac |
| 2948 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 2949 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2950 | # Some systems cannot stand _XOPEN_SOURCE being defined at all; they |
| 2951 | # disable features if it is defined, without any means to access these |
| 2952 | # features as extensions. For these systems, we skip the definition of |
| 2953 | # _XOPEN_SOURCE. Before adding a system to the list to gain access to |
| 2954 | # some feature, make sure there is no alternative way to access this |
| 2955 | # feature. Also, when using wildcards, make sure you have verified the |
| 2956 | # need for not defining _XOPEN_SOURCE on all systems matching the |
| 2957 | # wildcard, and that the wildcard does not include future systems |
| 2958 | # (which may remove their limitations). |
| 2959 | case $ac_sys_system/$ac_sys_release in |
| 2960 | # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined, |
| 2961 | # 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] | 2962 | # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish. |
Martin v. Löwis | 4d0a20a | 2010-02-15 21:46:27 +0000 | [diff] [blame] | 2963 | # In addition, Stefan Krah confirms that issue #1244610 exists through |
| 2964 | # OpenBSD 4.6, but is fixed in 4.7. |
| 2965 | OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0123456]) |
Christian Heimes | 5b5e81c | 2007-12-31 16:14:33 +0000 | [diff] [blame] | 2966 | define_xopen_source=no |
| 2967 | # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is |
| 2968 | # also defined. This can be overridden by defining _BSD_SOURCE |
| 2969 | # As this has a different meaning on Linux, only define it on OpenBSD |
| 2970 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 2971 | $as_echo "#define _BSD_SOURCE 1" >>confdefs.h |
Christian Heimes | 5b5e81c | 2007-12-31 16:14:33 +0000 | [diff] [blame] | 2972 | |
| 2973 | ;; |
Martin v. Löwis | 4d0a20a | 2010-02-15 21:46:27 +0000 | [diff] [blame] | 2974 | OpenBSD/4.[789]) |
Martin v. Löwis | f659422 | 2010-02-15 08:37:47 +0000 | [diff] [blame] | 2975 | # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is |
| 2976 | # also defined. This can be overridden by defining _BSD_SOURCE |
| 2977 | # As this has a different meaning on Linux, only define it on OpenBSD |
| 2978 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 2979 | $as_echo "#define _BSD_SOURCE 1" >>confdefs.h |
Martin v. Löwis | f659422 | 2010-02-15 08:37:47 +0000 | [diff] [blame] | 2980 | |
| 2981 | ;; |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 2982 | # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of |
| 2983 | # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by |
| 2984 | # Marc Recht |
Benjamin Peterson | f608c61 | 2008-11-16 18:33:53 +0000 | [diff] [blame] | 2985 | 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] | 2986 | define_xopen_source=no;; |
Martin v. Löwis | a9d7142 | 2003-03-28 18:43:31 +0000 | [diff] [blame] | 2987 | # On Solaris 2.6, sys/wait.h is inconsistent in the usage |
| 2988 | # of union __?sigval. Reported by Stuart Bishop. |
| 2989 | SunOS/5.6) |
| 2990 | define_xopen_source=no;; |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 2991 | # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE, |
| 2992 | # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice. |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 2993 | # Reconfirmed for 7.1.4 by Martin v. Loewis. |
Martin v. Löwis | 253d1f4 | 2004-05-07 19:14:14 +0000 | [diff] [blame] | 2994 | OpenUNIX/8.0.0| UnixWare/7.1.[0-4]) |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 2995 | define_xopen_source=no;; |
| 2996 | # 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] | 2997 | # 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] | 2998 | SCO_SV/3.2) |
Martin v. Löwis | 53e73c3 | 2003-05-05 05:13:18 +0000 | [diff] [blame] | 2999 | define_xopen_source=no;; |
Martin v. Löwis | b37509b | 2008-11-04 20:45:29 +0000 | [diff] [blame] | 3000 | # On FreeBSD 4, the math functions C89 does not cover are never defined |
| 3001 | # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them. |
| 3002 | FreeBSD/4.*) |
| 3003 | define_xopen_source=no;; |
| 3004 | # On MacOS X 10.2, a bug in ncurses.h means that it craps out if |
| 3005 | # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which |
| 3006 | # identifies itself as Darwin/7.* |
| 3007 | # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE |
| 3008 | # disables platform specific features beyond repair. |
| 3009 | # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE |
| 3010 | # has no effect, don't bother defining them |
| 3011 | Darwin/[6789].*) |
Anthony Baxter | 6169c6b | 2003-10-04 07:46:23 +0000 | [diff] [blame] | 3012 | define_xopen_source=no;; |
Ronald Oussoren | d4be7a2 | 2010-03-09 06:41:58 +0000 | [diff] [blame] | 3013 | Darwin/1[0-9].*) |
Ronald Oussoren | 095d282 | 2010-03-08 07:03:14 +0000 | [diff] [blame] | 3014 | define_xopen_source=no;; |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 3015 | # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but |
| 3016 | # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined |
| 3017 | # 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] | 3018 | AIX/4) |
| 3019 | define_xopen_source=no;; |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 3020 | AIX/5) |
| 3021 | if test `uname -r` -eq 1; then |
| 3022 | define_xopen_source=no |
| 3023 | fi |
| 3024 | ;; |
Benjamin Peterson | de9c869 | 2008-07-01 18:23:09 +0000 | [diff] [blame] | 3025 | # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from |
| 3026 | # defining NI_NUMERICHOST. |
| 3027 | QNX/6.3.2) |
| 3028 | define_xopen_source=no |
| 3029 | ;; |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 3030 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3031 | esac |
| 3032 | |
| 3033 | if test $define_xopen_source = yes |
| 3034 | then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3035 | # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be |
| 3036 | # defined precisely as g++ defines it |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 3037 | # Furthermore, on Solaris 10, XPG6 requires the use of a C99 |
| 3038 | # compiler |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3039 | case $ac_sys_system/$ac_sys_release in |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 3040 | SunOS/5.8|SunOS/5.9|SunOS/5.10) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3041 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3042 | $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3043 | |
| 3044 | ;; |
| 3045 | *) |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3046 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3047 | $as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3048 | |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3049 | ;; |
| 3050 | esac |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3051 | |
| 3052 | # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires |
| 3053 | # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else |
| 3054 | # several APIs are not declared. Since this is also needed in some |
| 3055 | # cases for HP-UX, we define it globally. |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 3056 | # except for Solaris 10, where it must not be defined, |
| 3057 | # as it implies XPG4.2 |
| 3058 | case $ac_sys_system/$ac_sys_release in |
| 3059 | SunOS/5.10) |
| 3060 | ;; |
| 3061 | *) |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3062 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3063 | $as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3064 | |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 3065 | ;; |
| 3066 | esac |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3067 | |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 3068 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3069 | $as_echo "#define _POSIX_C_SOURCE 200112L" >>confdefs.h |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3070 | |
| 3071 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3072 | fi |
| 3073 | |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3074 | # |
| 3075 | # SGI compilers allow the specification of the both the ABI and the |
| 3076 | # ISA on the command line. Depending on the values of these switches, |
| 3077 | # different and often incompatable code will be generated. |
| 3078 | # |
| 3079 | # The SGI_ABI variable can be used to modify the CC and LDFLAGS and |
| 3080 | # thus supply support for various ABI/ISA combinations. The MACHDEP |
| 3081 | # variable is also adjusted. |
| 3082 | # |
| 3083 | |
| 3084 | if test ! -z "$SGI_ABI" |
| 3085 | then |
| 3086 | CC="cc $SGI_ABI" |
| 3087 | LDFLAGS="$SGI_ABI $LDFLAGS" |
| 3088 | MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'` |
| 3089 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACHDEP" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3091 | $as_echo "$MACHDEP" >&6; } |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3092 | |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3093 | # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET, |
| 3094 | # it may influence the way we can build extensions, so distutils |
| 3095 | # needs to check it |
| 3096 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3097 | |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3098 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET= |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3099 | EXPORT_MACOSX_DEPLOYMENT_TARGET='#' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3100 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3101 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking machine type as reported by uname -m" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3102 | $as_echo_n "checking machine type as reported by uname -m... " >&6; } |
Mark Dickinson | b0e2b4c | 2008-04-26 20:48:56 +0000 | [diff] [blame] | 3103 | ac_sys_machine=`uname -m` |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sys_machine" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3105 | $as_echo "$ac_sys_machine" >&6; } |
Mark Dickinson | b0e2b4c | 2008-04-26 20:48:56 +0000 | [diff] [blame] | 3106 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3107 | # checks for alternative programs |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3108 | |
| 3109 | # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just |
| 3110 | # for debug/optimization stuff. BASECFLAGS is for flags that are required |
| 3111 | # just to get things to compile and link. Users are free to override OPT |
| 3112 | # when running configure or make. The build should not break if they do. |
| 3113 | # BASECFLAGS should generally not be messed with, however. |
| 3114 | |
| 3115 | # XXX shouldn't some/most/all of this code be merged with the stuff later |
| 3116 | # on that fiddles with OPT and BASECFLAGS? |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3117 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --without-gcc" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3118 | $as_echo_n "checking for --without-gcc... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3119 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3120 | # Check whether --with-gcc was given. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3121 | if test "${with_gcc+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3122 | withval=$with_gcc; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3123 | case $withval in |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3124 | no) CC=${CC:-cc} |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3125 | without_gcc=yes;; |
| 3126 | yes) CC=gcc |
| 3127 | without_gcc=no;; |
| 3128 | *) CC=$withval |
| 3129 | without_gcc=$withval;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3130 | esac |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3131 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3132 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3133 | case $ac_sys_system in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 3134 | AIX*) CC=cc_r |
| 3135 | without_gcc=;; |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3136 | *) without_gcc=no;; |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 3137 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3138 | fi |
| 3139 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $without_gcc" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3141 | $as_echo "$without_gcc" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3142 | |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 3143 | # If the user switches compilers, we can't believe the cache |
| 3144 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" |
| 3145 | then |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3146 | as_fn_error "cached CC is different -- throw away $cache_file |
| 3147 | (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] | 3148 | fi |
| 3149 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3150 | ac_ext=c |
| 3151 | ac_cpp='$CPP $CPPFLAGS' |
| 3152 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3153 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3154 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3155 | if test -n "$ac_tool_prefix"; then |
| 3156 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 3157 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3158 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3159 | $as_echo_n "checking for $ac_word... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3160 | if test "${ac_cv_prog_CC+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3161 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3162 | else |
| 3163 | if test -n "$CC"; then |
| 3164 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3165 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3166 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3167 | for as_dir in $PATH |
| 3168 | do |
| 3169 | IFS=$as_save_IFS |
| 3170 | test -z "$as_dir" && as_dir=. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3171 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3172 | 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] | 3173 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3174 | $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] | 3175 | break 2 |
| 3176 | fi |
| 3177 | done |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3178 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3179 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3180 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3181 | fi |
| 3182 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3183 | CC=$ac_cv_prog_CC |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3184 | if test -n "$CC"; then |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3186 | $as_echo "$CC" >&6; } |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3187 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3189 | $as_echo "no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3190 | fi |
| 3191 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3192 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3193 | fi |
| 3194 | if test -z "$ac_cv_prog_CC"; then |
| 3195 | ac_ct_CC=$CC |
| 3196 | # Extract the first word of "gcc", so it can be a program name with args. |
| 3197 | set dummy gcc; ac_word=$2 |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3198 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3199 | $as_echo_n "checking for $ac_word... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3200 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3201 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3202 | else |
| 3203 | if test -n "$ac_ct_CC"; then |
| 3204 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3205 | else |
| 3206 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3207 | for as_dir in $PATH |
| 3208 | do |
| 3209 | IFS=$as_save_IFS |
| 3210 | test -z "$as_dir" && as_dir=. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3211 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3212 | 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] | 3213 | ac_cv_prog_ac_ct_CC="gcc" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3214 | $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] | 3215 | break 2 |
| 3216 | fi |
| 3217 | done |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3218 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3219 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3220 | |
| 3221 | fi |
| 3222 | fi |
| 3223 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3224 | if test -n "$ac_ct_CC"; then |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3226 | $as_echo "$ac_ct_CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3227 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3229 | $as_echo "no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3230 | fi |
| 3231 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3232 | if test "x$ac_ct_CC" = x; then |
| 3233 | CC="" |
| 3234 | else |
| 3235 | case $cross_compiling:$ac_tool_warned in |
| 3236 | yes:) |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3237 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3238 | $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] | 3239 | ac_tool_warned=yes ;; |
| 3240 | esac |
| 3241 | CC=$ac_ct_CC |
| 3242 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3243 | else |
| 3244 | CC="$ac_cv_prog_CC" |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3245 | fi |
| 3246 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3247 | if test -z "$CC"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3248 | if test -n "$ac_tool_prefix"; then |
| 3249 | # 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] | 3250 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3251 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3252 | $as_echo_n "checking for $ac_word... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3253 | if test "${ac_cv_prog_CC+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3254 | $as_echo_n "(cached) " >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3255 | else |
| 3256 | if test -n "$CC"; then |
| 3257 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3258 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3259 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3260 | for as_dir in $PATH |
| 3261 | do |
| 3262 | IFS=$as_save_IFS |
| 3263 | test -z "$as_dir" && as_dir=. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3264 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3265 | 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] | 3266 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3267 | $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] | 3268 | break 2 |
| 3269 | fi |
| 3270 | done |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3271 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3272 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3273 | |
| 3274 | fi |
| 3275 | fi |
| 3276 | CC=$ac_cv_prog_CC |
| 3277 | if test -n "$CC"; then |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3279 | $as_echo "$CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3280 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3282 | $as_echo "no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3283 | fi |
| 3284 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3285 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3286 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3287 | fi |
| 3288 | if test -z "$CC"; then |
| 3289 | # Extract the first word of "cc", so it can be a program name with args. |
| 3290 | set dummy cc; ac_word=$2 |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3291 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3292 | $as_echo_n "checking for $ac_word... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3293 | if test "${ac_cv_prog_CC+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3294 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3295 | else |
| 3296 | if test -n "$CC"; then |
| 3297 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3298 | else |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3299 | ac_prog_rejected=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3300 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3301 | for as_dir in $PATH |
| 3302 | do |
| 3303 | IFS=$as_save_IFS |
| 3304 | test -z "$as_dir" && as_dir=. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3305 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3306 | 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] | 3307 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 3308 | ac_prog_rejected=yes |
| 3309 | continue |
| 3310 | fi |
| 3311 | ac_cv_prog_CC="cc" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3312 | $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] | 3313 | break 2 |
| 3314 | fi |
| 3315 | done |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3316 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3317 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3318 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3319 | if test $ac_prog_rejected = yes; then |
| 3320 | # We found a bogon in the path, so make sure we never use it. |
| 3321 | set dummy $ac_cv_prog_CC |
| 3322 | shift |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3323 | if test $# != 0; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3324 | # We chose a different compiler from the bogus one. |
| 3325 | # However, it has the same basename, so the bogon will be chosen |
| 3326 | # first if we set CC to just the basename; use the full file name. |
| 3327 | shift |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3328 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3329 | fi |
| 3330 | fi |
| 3331 | fi |
| 3332 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3333 | CC=$ac_cv_prog_CC |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3334 | if test -n "$CC"; then |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3336 | $as_echo "$CC" >&6; } |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3337 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3339 | $as_echo "no" >&6; } |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3340 | fi |
| 3341 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3342 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3343 | fi |
| 3344 | if test -z "$CC"; then |
| 3345 | if test -n "$ac_tool_prefix"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3346 | for ac_prog in cl.exe |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3347 | do |
| 3348 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3349 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3350 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3351 | $as_echo_n "checking for $ac_word... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3352 | if test "${ac_cv_prog_CC+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3353 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3354 | else |
| 3355 | if test -n "$CC"; then |
| 3356 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3357 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3358 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3359 | for as_dir in $PATH |
| 3360 | do |
| 3361 | IFS=$as_save_IFS |
| 3362 | test -z "$as_dir" && as_dir=. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3363 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3364 | 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] | 3365 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3366 | $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] | 3367 | break 2 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3368 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3369 | done |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3370 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3371 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3372 | |
| 3373 | fi |
| 3374 | fi |
| 3375 | CC=$ac_cv_prog_CC |
| 3376 | if test -n "$CC"; then |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3378 | $as_echo "$CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3379 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3381 | $as_echo "no" >&6; } |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3382 | fi |
| 3383 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3384 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3385 | test -n "$CC" && break |
| 3386 | done |
| 3387 | fi |
| 3388 | if test -z "$CC"; then |
| 3389 | ac_ct_CC=$CC |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3390 | for ac_prog in cl.exe |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3391 | do |
| 3392 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3393 | set dummy $ac_prog; ac_word=$2 |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3394 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3395 | $as_echo_n "checking for $ac_word... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3396 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3397 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3398 | else |
| 3399 | if test -n "$ac_ct_CC"; then |
| 3400 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3401 | else |
| 3402 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3403 | for as_dir in $PATH |
| 3404 | do |
| 3405 | IFS=$as_save_IFS |
| 3406 | test -z "$as_dir" && as_dir=. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3407 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3408 | 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] | 3409 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3410 | $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] | 3411 | break 2 |
| 3412 | fi |
| 3413 | done |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3414 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3415 | IFS=$as_save_IFS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3416 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3417 | fi |
| 3418 | fi |
| 3419 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3420 | if test -n "$ac_ct_CC"; then |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3422 | $as_echo "$ac_ct_CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3423 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3425 | $as_echo "no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3426 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3427 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3428 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3429 | test -n "$ac_ct_CC" && break |
| 3430 | done |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3431 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3432 | if test "x$ac_ct_CC" = x; then |
| 3433 | CC="" |
| 3434 | else |
| 3435 | case $cross_compiling:$ac_tool_warned in |
| 3436 | yes:) |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3437 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3438 | $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] | 3439 | ac_tool_warned=yes ;; |
| 3440 | esac |
| 3441 | CC=$ac_ct_CC |
| 3442 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3443 | fi |
| 3444 | |
| 3445 | fi |
| 3446 | |
| 3447 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3448 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3449 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3450 | as_fn_error "no acceptable C compiler found in \$PATH |
| 3451 | See \`config.log' for more details." "$LINENO" 5; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3452 | |
| 3453 | # Provide some information about the compiler. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3454 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3455 | set X $ac_compile |
| 3456 | ac_compiler=$2 |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3457 | for ac_option in --version -v -V -qversion; do |
| 3458 | { { ac_try="$ac_compiler $ac_option >&5" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3459 | case "(($ac_try" in |
| 3460 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3461 | *) ac_try_echo=$ac_try;; |
| 3462 | esac |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3463 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3464 | $as_echo "$ac_try_echo"; } >&5 |
| 3465 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3466 | ac_status=$? |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3467 | if test -s conftest.err; then |
| 3468 | sed '10a\ |
| 3469 | ... rest of stderr output deleted ... |
| 3470 | 10q' conftest.err >conftest.er1 |
| 3471 | cat conftest.er1 >&5 |
| 3472 | fi |
| 3473 | rm -f conftest.er1 conftest.err |
| 3474 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3475 | test $ac_status = 0; } |
| 3476 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3477 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3478 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3479 | /* end confdefs.h. */ |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3480 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3481 | int |
| 3482 | main () |
| 3483 | { |
| 3484 | |
| 3485 | ; |
| 3486 | return 0; |
| 3487 | } |
| 3488 | _ACEOF |
| 3489 | ac_clean_files_save=$ac_clean_files |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3490 | 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] | 3491 | # Try to create an executable without -o first, disregard a.out. |
| 3492 | # It will help us diagnose broken compilers, and finding out an intuition |
| 3493 | # of exeext. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3494 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 3495 | $as_echo_n "checking whether the C compiler works... " >&6; } |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3496 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 3497 | |
| 3498 | # The possible output files: |
| 3499 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 3500 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3501 | ac_rmfiles= |
| 3502 | for ac_file in $ac_files |
| 3503 | do |
| 3504 | case $ac_file in |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3505 | *.$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] | 3506 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 3507 | esac |
| 3508 | done |
| 3509 | rm -f $ac_rmfiles |
| 3510 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3511 | if { { ac_try="$ac_link_default" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3512 | case "(($ac_try" in |
| 3513 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3514 | *) ac_try_echo=$ac_try;; |
| 3515 | esac |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3516 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3517 | $as_echo "$ac_try_echo"; } >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3518 | (eval "$ac_link_default") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3519 | ac_status=$? |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3520 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3521 | test $ac_status = 0; }; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3522 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 3523 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 3524 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 3525 | # so that the user can short-circuit this test for compilers unknown to |
| 3526 | # Autoconf. |
| 3527 | for ac_file in $ac_files '' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3528 | do |
| 3529 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3530 | case $ac_file in |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3531 | *.$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] | 3532 | ;; |
| 3533 | [ab].out ) |
| 3534 | # We found the default executable, but exeext='' is most |
| 3535 | # certainly right. |
| 3536 | break;; |
| 3537 | *.* ) |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3538 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3539 | then :; else |
| 3540 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3541 | fi |
| 3542 | # We set ac_cv_exeext here because the later test for it is not |
| 3543 | # safe: cross compilers may not add the suffix if given an `-o' |
| 3544 | # argument, so we may need to know it at that point already. |
| 3545 | # Even if this section looks crufty: it has the advantage of |
| 3546 | # actually working. |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 3547 | break;; |
| 3548 | * ) |
| 3549 | break;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3550 | esac |
| 3551 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3552 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 3553 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3554 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3555 | ac_file='' |
| 3556 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3557 | if test -z "$ac_file"; then : |
| 3558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3559 | $as_echo "no" >&6; } |
| 3560 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3561 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3562 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3563 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3564 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3565 | { as_fn_set_status 77 |
| 3566 | as_fn_error "C compiler cannot create executables |
| 3567 | See \`config.log' for more details." "$LINENO" 5; }; } |
| 3568 | else |
| 3569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3570 | $as_echo "yes" >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3571 | fi |
| 3572 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 3573 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
| 3574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 3575 | $as_echo "$ac_file" >&6; } |
| 3576 | ac_exeext=$ac_cv_exeext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3577 | |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3578 | 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] | 3579 | ac_clean_files=$ac_clean_files_save |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3580 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3581 | $as_echo_n "checking for suffix of executables... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3582 | if { { ac_try="$ac_link" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3583 | case "(($ac_try" in |
| 3584 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3585 | *) ac_try_echo=$ac_try;; |
| 3586 | esac |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3587 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3588 | $as_echo "$ac_try_echo"; } >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3589 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3590 | ac_status=$? |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3591 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3592 | test $ac_status = 0; }; then : |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 3593 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 3594 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 3595 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 3596 | # `rm'. |
| 3597 | for ac_file in conftest.exe conftest conftest.*; do |
| 3598 | test -f "$ac_file" || continue |
| 3599 | case $ac_file in |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3600 | *.$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] | 3601 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3602 | break;; |
| 3603 | * ) break;; |
| 3604 | esac |
| 3605 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3606 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3607 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3608 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3609 | as_fn_error "cannot compute suffix of executables: cannot compile and link |
| 3610 | See \`config.log' for more details." "$LINENO" 5; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3611 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3612 | rm -f conftest conftest$ac_cv_exeext |
| 3613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3614 | $as_echo "$ac_cv_exeext" >&6; } |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 3615 | |
| 3616 | rm -f conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3617 | EXEEXT=$ac_cv_exeext |
| 3618 | ac_exeext=$EXEEXT |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3619 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3620 | /* end confdefs.h. */ |
| 3621 | #include <stdio.h> |
| 3622 | int |
| 3623 | main () |
| 3624 | { |
| 3625 | FILE *f = fopen ("conftest.out", "w"); |
| 3626 | return ferror (f) || fclose (f) != 0; |
| 3627 | |
| 3628 | ; |
| 3629 | return 0; |
| 3630 | } |
| 3631 | _ACEOF |
| 3632 | ac_clean_files="$ac_clean_files conftest.out" |
| 3633 | # Check that the compiler produces executables we can run. If not, either |
| 3634 | # the compiler is broken, or we cross compile. |
| 3635 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 3636 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 3637 | if test "$cross_compiling" != yes; then |
| 3638 | { { ac_try="$ac_link" |
| 3639 | case "(($ac_try" in |
| 3640 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3641 | *) ac_try_echo=$ac_try;; |
| 3642 | esac |
| 3643 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3644 | $as_echo "$ac_try_echo"; } >&5 |
| 3645 | (eval "$ac_link") 2>&5 |
| 3646 | ac_status=$? |
| 3647 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3648 | test $ac_status = 0; } |
| 3649 | if { ac_try='./conftest$ac_cv_exeext' |
| 3650 | { { case "(($ac_try" in |
| 3651 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3652 | *) ac_try_echo=$ac_try;; |
| 3653 | esac |
| 3654 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3655 | $as_echo "$ac_try_echo"; } >&5 |
| 3656 | (eval "$ac_try") 2>&5 |
| 3657 | ac_status=$? |
| 3658 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3659 | test $ac_status = 0; }; }; then |
| 3660 | cross_compiling=no |
| 3661 | else |
| 3662 | if test "$cross_compiling" = maybe; then |
| 3663 | cross_compiling=yes |
| 3664 | else |
| 3665 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3666 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3667 | as_fn_error "cannot run C compiled programs. |
| 3668 | If you meant to cross compile, use \`--host'. |
| 3669 | See \`config.log' for more details." "$LINENO" 5; } |
| 3670 | fi |
| 3671 | fi |
| 3672 | fi |
| 3673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 3674 | $as_echo "$cross_compiling" >&6; } |
| 3675 | |
| 3676 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
| 3677 | ac_clean_files=$ac_clean_files_save |
| 3678 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3679 | $as_echo_n "checking for suffix of object files... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3680 | if test "${ac_cv_objext+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3681 | $as_echo_n "(cached) " >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3682 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3683 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 3684 | /* end confdefs.h. */ |
| 3685 | |
| 3686 | int |
| 3687 | main () |
| 3688 | { |
| 3689 | |
| 3690 | ; |
| 3691 | return 0; |
| 3692 | } |
| 3693 | _ACEOF |
| 3694 | rm -f conftest.o conftest.obj |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3695 | if { { ac_try="$ac_compile" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3696 | case "(($ac_try" in |
| 3697 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3698 | *) ac_try_echo=$ac_try;; |
| 3699 | esac |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3700 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3701 | $as_echo "$ac_try_echo"; } >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3702 | (eval "$ac_compile") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3703 | ac_status=$? |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3704 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3705 | test $ac_status = 0; }; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3706 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 3707 | test -f "$ac_file" || continue; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3708 | case $ac_file in |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3709 | *.$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] | 3710 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 3711 | break;; |
| 3712 | esac |
| 3713 | done |
| 3714 | else |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3715 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3716 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3717 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3718 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3719 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3720 | as_fn_error "cannot compute suffix of object files: cannot compile |
| 3721 | See \`config.log' for more details." "$LINENO" 5; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3722 | fi |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 3723 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3724 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3726 | $as_echo "$ac_cv_objext" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3727 | OBJEXT=$ac_cv_objext |
| 3728 | ac_objext=$OBJEXT |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3729 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3730 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3731 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3732 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3733 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3734 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3735 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3736 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3737 | int |
| 3738 | main () |
| 3739 | { |
| 3740 | #ifndef __GNUC__ |
| 3741 | choke me |
| 3742 | #endif |
| 3743 | |
| 3744 | ; |
| 3745 | return 0; |
| 3746 | } |
| 3747 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3748 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3749 | ac_compiler_gnu=yes |
| 3750 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3751 | ac_compiler_gnu=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3752 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3753 | 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] | 3754 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 3755 | |
| 3756 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3758 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 3759 | if test $ac_compiler_gnu = yes; then |
| 3760 | GCC=yes |
| 3761 | else |
| 3762 | GCC= |
| 3763 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3764 | ac_test_CFLAGS=${CFLAGS+set} |
| 3765 | ac_save_CFLAGS=$CFLAGS |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3766 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3767 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3768 | if test "${ac_cv_prog_cc_g+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3769 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3770 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3771 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3772 | ac_c_werror_flag=yes |
| 3773 | ac_cv_prog_cc_g=no |
| 3774 | CFLAGS="-g" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3775 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3776 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3777 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3778 | int |
| 3779 | main () |
| 3780 | { |
| 3781 | |
| 3782 | ; |
| 3783 | return 0; |
| 3784 | } |
| 3785 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3786 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3787 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3788 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3789 | CFLAGS="" |
| 3790 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3791 | /* end confdefs.h. */ |
| 3792 | |
| 3793 | int |
| 3794 | main () |
| 3795 | { |
| 3796 | |
| 3797 | ; |
| 3798 | return 0; |
| 3799 | } |
| 3800 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3801 | if ac_fn_c_try_compile "$LINENO"; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3802 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3803 | else |
| 3804 | ac_c_werror_flag=$ac_save_c_werror_flag |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3805 | CFLAGS="-g" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3806 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3807 | /* end confdefs.h. */ |
| 3808 | |
| 3809 | int |
| 3810 | main () |
| 3811 | { |
| 3812 | |
| 3813 | ; |
| 3814 | return 0; |
| 3815 | } |
| 3816 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3817 | if ac_fn_c_try_compile "$LINENO"; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3818 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3819 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3820 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3821 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3822 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3823 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3824 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3825 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3826 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3828 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3829 | if test "$ac_test_CFLAGS" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3830 | CFLAGS=$ac_save_CFLAGS |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3831 | elif test $ac_cv_prog_cc_g = yes; then |
| 3832 | if test "$GCC" = yes; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3833 | CFLAGS="-g -O2" |
| 3834 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3835 | CFLAGS="-g" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3836 | fi |
| 3837 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3838 | if test "$GCC" = yes; then |
| 3839 | CFLAGS="-O2" |
| 3840 | else |
| 3841 | CFLAGS= |
| 3842 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3843 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3844 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3845 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3846 | if test "${ac_cv_prog_cc_c89+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3847 | $as_echo_n "(cached) " >&6 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3848 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3849 | ac_cv_prog_cc_c89=no |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3850 | ac_save_CC=$CC |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3851 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3852 | /* end confdefs.h. */ |
| 3853 | #include <stdarg.h> |
| 3854 | #include <stdio.h> |
| 3855 | #include <sys/types.h> |
| 3856 | #include <sys/stat.h> |
| 3857 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3858 | struct buf { int x; }; |
| 3859 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3860 | static char *e (p, i) |
| 3861 | char **p; |
| 3862 | int i; |
| 3863 | { |
| 3864 | return p[i]; |
| 3865 | } |
| 3866 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3867 | { |
| 3868 | char *s; |
| 3869 | va_list v; |
| 3870 | va_start (v,p); |
| 3871 | s = g (p, va_arg (v,int)); |
| 3872 | va_end (v); |
| 3873 | return s; |
| 3874 | } |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3875 | |
| 3876 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3877 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3878 | These don't provoke an error unfortunately, instead are silently treated |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3879 | 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] | 3880 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3881 | 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] | 3882 | that's true only with -std. */ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3883 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3884 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3885 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3886 | inside strings and character constants. */ |
| 3887 | #define FOO(x) 'x' |
| 3888 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3889 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3890 | int test (int i, double x); |
| 3891 | struct s1 {int (*f) (int a);}; |
| 3892 | struct s2 {int (*f) (double a);}; |
| 3893 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3894 | int argc; |
| 3895 | char **argv; |
| 3896 | int |
| 3897 | main () |
| 3898 | { |
| 3899 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3900 | ; |
| 3901 | return 0; |
| 3902 | } |
| 3903 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3904 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3905 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3906 | do |
| 3907 | CC="$ac_save_CC $ac_arg" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3908 | if ac_fn_c_try_compile "$LINENO"; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3909 | ac_cv_prog_cc_c89=$ac_arg |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3910 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3911 | rm -f core conftest.err conftest.$ac_objext |
| 3912 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3913 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3914 | rm -f conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3915 | CC=$ac_save_CC |
| 3916 | |
| 3917 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3918 | # AC_CACHE_VAL |
| 3919 | case "x$ac_cv_prog_cc_c89" in |
| 3920 | x) |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3922 | $as_echo "none needed" >&6; } ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3923 | xno) |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3925 | $as_echo "unsupported" >&6; } ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3926 | *) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3927 | CC="$CC $ac_cv_prog_cc_c89" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3929 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3930 | esac |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3931 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3932 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3933 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3934 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3935 | ac_ext=c |
| 3936 | ac_cpp='$CPP $CPPFLAGS' |
| 3937 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3938 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3939 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3940 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3941 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3942 | |
| 3943 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3944 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-cxx-main=<compiler>" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3945 | $as_echo_n "checking for --with-cxx-main=<compiler>... " >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3946 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3947 | # Check whether --with-cxx_main was given. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3948 | if test "${with_cxx_main+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3949 | withval=$with_cxx_main; |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3950 | |
| 3951 | case $withval in |
| 3952 | no) with_cxx_main=no |
| 3953 | MAINCC='$(CC)';; |
| 3954 | yes) with_cxx_main=yes |
| 3955 | MAINCC='$(CXX)';; |
| 3956 | *) with_cxx_main=yes |
| 3957 | MAINCC=$withval |
| 3958 | if test -z "$CXX" |
| 3959 | then |
| 3960 | CXX=$withval |
| 3961 | fi;; |
| 3962 | esac |
| 3963 | else |
| 3964 | |
| 3965 | with_cxx_main=no |
| 3966 | MAINCC='$(CC)' |
| 3967 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3968 | fi |
| 3969 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_cxx_main" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3971 | $as_echo "$with_cxx_main" >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3972 | |
| 3973 | preset_cxx="$CXX" |
| 3974 | if test -z "$CXX" |
| 3975 | then |
| 3976 | case "$CC" in |
| 3977 | gcc) # Extract the first word of "g++", so it can be a program name with args. |
| 3978 | set dummy g++; ac_word=$2 |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3979 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3980 | $as_echo_n "checking for $ac_word... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3981 | if test "${ac_cv_path_CXX+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 3982 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3983 | else |
| 3984 | case $CXX in |
| 3985 | [\\/]* | ?:[\\/]*) |
| 3986 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. |
| 3987 | ;; |
| 3988 | *) |
| 3989 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3990 | for as_dir in notfound |
| 3991 | do |
| 3992 | IFS=$as_save_IFS |
| 3993 | test -z "$as_dir" && as_dir=. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3994 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3995 | 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] | 3996 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 3997 | $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] | 3998 | break 2 |
| 3999 | fi |
| 4000 | done |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4001 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4002 | IFS=$as_save_IFS |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4003 | |
| 4004 | test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="g++" |
| 4005 | ;; |
| 4006 | esac |
| 4007 | fi |
| 4008 | CXX=$ac_cv_path_CXX |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4009 | if test -n "$CXX"; then |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4011 | $as_echo "$CXX" >&6; } |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4012 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4014 | $as_echo "no" >&6; } |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4015 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4016 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4017 | ;; |
| 4018 | cc) # Extract the first word of "c++", so it can be a program name with args. |
| 4019 | set dummy c++; ac_word=$2 |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4020 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4021 | $as_echo_n "checking for $ac_word... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4022 | if test "${ac_cv_path_CXX+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4023 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4024 | else |
| 4025 | case $CXX in |
| 4026 | [\\/]* | ?:[\\/]*) |
| 4027 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. |
| 4028 | ;; |
| 4029 | *) |
| 4030 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4031 | for as_dir in notfound |
| 4032 | do |
| 4033 | IFS=$as_save_IFS |
| 4034 | test -z "$as_dir" && as_dir=. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4035 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4036 | 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] | 4037 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4038 | $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] | 4039 | break 2 |
| 4040 | fi |
| 4041 | done |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4042 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4043 | IFS=$as_save_IFS |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4044 | |
| 4045 | test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="c++" |
| 4046 | ;; |
| 4047 | esac |
| 4048 | fi |
| 4049 | CXX=$ac_cv_path_CXX |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4050 | if test -n "$CXX"; then |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4052 | $as_echo "$CXX" >&6; } |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4053 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4055 | $as_echo "no" >&6; } |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4056 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4057 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4058 | ;; |
| 4059 | esac |
| 4060 | if test "$CXX" = "notfound" |
| 4061 | then |
| 4062 | CXX="" |
| 4063 | fi |
| 4064 | fi |
| 4065 | if test -z "$CXX" |
| 4066 | then |
| 4067 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
| 4068 | do |
| 4069 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4070 | set dummy $ac_prog; ac_word=$2 |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4071 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4072 | $as_echo_n "checking for $ac_word... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4073 | if test "${ac_cv_prog_CXX+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4074 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4075 | else |
| 4076 | if test -n "$CXX"; then |
| 4077 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 4078 | else |
| 4079 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4080 | for as_dir in $PATH |
| 4081 | do |
| 4082 | IFS=$as_save_IFS |
| 4083 | test -z "$as_dir" && as_dir=. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4084 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4085 | 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] | 4086 | ac_cv_prog_CXX="$ac_prog" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4087 | $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] | 4088 | break 2 |
| 4089 | fi |
| 4090 | done |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4091 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4092 | IFS=$as_save_IFS |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4093 | |
| 4094 | fi |
| 4095 | fi |
| 4096 | CXX=$ac_cv_prog_CXX |
| 4097 | if test -n "$CXX"; then |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4099 | $as_echo "$CXX" >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4100 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4102 | $as_echo "no" >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4103 | fi |
| 4104 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4105 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4106 | test -n "$CXX" && break |
| 4107 | done |
| 4108 | test -n "$CXX" || CXX="notfound" |
| 4109 | |
| 4110 | if test "$CXX" = "notfound" |
| 4111 | then |
| 4112 | CXX="" |
| 4113 | fi |
| 4114 | fi |
| 4115 | if test "$preset_cxx" != "$CXX" |
| 4116 | then |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4117 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4118 | |
| 4119 | By default, distutils will build C++ extension modules with \"$CXX\". |
| 4120 | If this is not intended, then set CXX on the configure command line. |
| 4121 | " >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4122 | $as_echo "$as_me: WARNING: |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4123 | |
| 4124 | By default, distutils will build C++ extension modules with \"$CXX\". |
| 4125 | If this is not intended, then set CXX on the configure command line. |
| 4126 | " >&2;} |
| 4127 | fi |
| 4128 | |
| 4129 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 4130 | # checks for UNIX variants that set C preprocessor variables |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4131 | |
| 4132 | ac_ext=c |
| 4133 | ac_cpp='$CPP $CPPFLAGS' |
| 4134 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4135 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4136 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4137 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4138 | $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] | 4139 | # On Suns, sometimes $CPP names a directory. |
| 4140 | if test -n "$CPP" && test -d "$CPP"; then |
| 4141 | CPP= |
| 4142 | fi |
| 4143 | if test -z "$CPP"; then |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4144 | if test "${ac_cv_prog_CPP+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4145 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 4146 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4147 | # Double quotes because CPP needs to be expanded |
| 4148 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 4149 | do |
| 4150 | ac_preproc_ok=false |
| 4151 | for ac_c_preproc_warn_flag in '' yes |
| 4152 | do |
| 4153 | # Use a header file that comes with gcc, so configuring glibc |
| 4154 | # with a fresh cross-compiler works. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4155 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4156 | # <limits.h> exists even on freestanding compilers. |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 4157 | # 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] | 4158 | # not just through cpp. "Syntax error" is here to catch this case. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4159 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4160 | /* end confdefs.h. */ |
| 4161 | #ifdef __STDC__ |
| 4162 | # include <limits.h> |
| 4163 | #else |
| 4164 | # include <assert.h> |
| 4165 | #endif |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4166 | Syntax error |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4167 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4168 | if ac_fn_c_try_cpp "$LINENO"; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4169 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4170 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4171 | # Broken: fails on valid input. |
| 4172 | continue |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 4173 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4174 | rm -f conftest.err conftest.$ac_ext |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 4175 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4176 | # OK, works on sane cases. Now check whether nonexistent headers |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4177 | # can be detected and how. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4178 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4179 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4180 | #include <ac_nonexistent.h> |
| 4181 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4182 | if ac_fn_c_try_cpp "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4183 | # Broken: success on invalid input. |
| 4184 | continue |
| 4185 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4186 | # Passes both tests. |
| 4187 | ac_preproc_ok=: |
| 4188 | break |
| 4189 | fi |
| 4190 | rm -f conftest.err conftest.$ac_ext |
| 4191 | |
| 4192 | done |
| 4193 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4194 | rm -f conftest.err conftest.$ac_ext |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4195 | if $ac_preproc_ok; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4196 | break |
| 4197 | fi |
| 4198 | |
| 4199 | done |
| 4200 | ac_cv_prog_CPP=$CPP |
| 4201 | |
| 4202 | fi |
| 4203 | CPP=$ac_cv_prog_CPP |
| 4204 | else |
| 4205 | ac_cv_prog_CPP=$CPP |
| 4206 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4208 | $as_echo "$CPP" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4209 | ac_preproc_ok=false |
| 4210 | for ac_c_preproc_warn_flag in '' yes |
| 4211 | do |
| 4212 | # Use a header file that comes with gcc, so configuring glibc |
| 4213 | # with a fresh cross-compiler works. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4214 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4215 | # <limits.h> exists even on freestanding compilers. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4216 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4217 | # not just through cpp. "Syntax error" is here to catch this case. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4218 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4219 | /* end confdefs.h. */ |
| 4220 | #ifdef __STDC__ |
| 4221 | # include <limits.h> |
| 4222 | #else |
| 4223 | # include <assert.h> |
| 4224 | #endif |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4225 | Syntax error |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4226 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4227 | if ac_fn_c_try_cpp "$LINENO"; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4228 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4229 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4230 | # Broken: fails on valid input. |
| 4231 | continue |
| 4232 | fi |
| 4233 | rm -f conftest.err conftest.$ac_ext |
| 4234 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4235 | # OK, works on sane cases. Now check whether nonexistent headers |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4236 | # can be detected and how. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4237 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4238 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4239 | #include <ac_nonexistent.h> |
| 4240 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4241 | if ac_fn_c_try_cpp "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4242 | # Broken: success on invalid input. |
| 4243 | continue |
| 4244 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4245 | # Passes both tests. |
| 4246 | ac_preproc_ok=: |
| 4247 | break |
| 4248 | fi |
| 4249 | rm -f conftest.err conftest.$ac_ext |
| 4250 | |
| 4251 | done |
| 4252 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4253 | rm -f conftest.err conftest.$ac_ext |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4254 | if $ac_preproc_ok; then : |
| 4255 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4256 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4257 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4258 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4259 | as_fn_error "C preprocessor \"$CPP\" fails sanity check |
| 4260 | See \`config.log' for more details." "$LINENO" 5; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4261 | fi |
| 4262 | |
| 4263 | ac_ext=c |
| 4264 | ac_cpp='$CPP $CPPFLAGS' |
| 4265 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4266 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4267 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4268 | |
| 4269 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4270 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4271 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4272 | if test "${ac_cv_path_GREP+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4273 | $as_echo_n "(cached) " >&6 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4274 | else |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4275 | if test -z "$GREP"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4276 | ac_path_GREP_found=false |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4277 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4278 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4279 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4280 | do |
| 4281 | IFS=$as_save_IFS |
| 4282 | test -z "$as_dir" && as_dir=. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4283 | for ac_prog in grep ggrep; do |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4284 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4285 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4286 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
| 4287 | # 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] | 4288 | # Check for GNU $ac_path_GREP |
| 4289 | case `"$ac_path_GREP" --version 2>&1` in |
| 4290 | *GNU*) |
| 4291 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 4292 | *) |
| 4293 | ac_count=0 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4294 | $as_echo_n 0123456789 >"conftest.in" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4295 | while : |
| 4296 | do |
| 4297 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4298 | mv "conftest.tmp" "conftest.in" |
| 4299 | cp "conftest.in" "conftest.nl" |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4300 | $as_echo 'GREP' >> "conftest.nl" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4301 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4302 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4303 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4304 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 4305 | # Best one so far, save it but keep looking for a better one |
| 4306 | ac_cv_path_GREP="$ac_path_GREP" |
| 4307 | ac_path_GREP_max=$ac_count |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4308 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4309 | # 10*(2^10) chars as input seems more than enough |
| 4310 | test $ac_count -gt 10 && break |
| 4311 | done |
| 4312 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4313 | esac |
| 4314 | |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4315 | $ac_path_GREP_found && break 3 |
| 4316 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4317 | done |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4318 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4319 | IFS=$as_save_IFS |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4320 | if test -z "$ac_cv_path_GREP"; then |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4321 | as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4322 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4323 | else |
| 4324 | ac_cv_path_GREP=$GREP |
| 4325 | fi |
| 4326 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4327 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4329 | $as_echo "$ac_cv_path_GREP" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4330 | GREP="$ac_cv_path_GREP" |
| 4331 | |
| 4332 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4333 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4334 | $as_echo_n "checking for egrep... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4335 | if test "${ac_cv_path_EGREP+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4336 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4337 | else |
| 4338 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 4339 | then ac_cv_path_EGREP="$GREP -E" |
| 4340 | else |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4341 | if test -z "$EGREP"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4342 | ac_path_EGREP_found=false |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4343 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4344 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4345 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4346 | do |
| 4347 | IFS=$as_save_IFS |
| 4348 | test -z "$as_dir" && as_dir=. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4349 | for ac_prog in egrep; do |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4350 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4351 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4352 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
| 4353 | # 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] | 4354 | # Check for GNU $ac_path_EGREP |
| 4355 | case `"$ac_path_EGREP" --version 2>&1` in |
| 4356 | *GNU*) |
| 4357 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 4358 | *) |
| 4359 | ac_count=0 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4360 | $as_echo_n 0123456789 >"conftest.in" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4361 | while : |
| 4362 | do |
| 4363 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4364 | mv "conftest.tmp" "conftest.in" |
| 4365 | cp "conftest.in" "conftest.nl" |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4366 | $as_echo 'EGREP' >> "conftest.nl" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4367 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4368 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4369 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4370 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 4371 | # Best one so far, save it but keep looking for a better one |
| 4372 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 4373 | ac_path_EGREP_max=$ac_count |
| 4374 | fi |
| 4375 | # 10*(2^10) chars as input seems more than enough |
| 4376 | test $ac_count -gt 10 && break |
| 4377 | done |
| 4378 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4379 | esac |
| 4380 | |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4381 | $ac_path_EGREP_found && break 3 |
| 4382 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4383 | done |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4384 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4385 | IFS=$as_save_IFS |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4386 | if test -z "$ac_cv_path_EGREP"; then |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4387 | as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4388 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4389 | else |
| 4390 | ac_cv_path_EGREP=$EGREP |
| 4391 | fi |
| 4392 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4393 | fi |
| 4394 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4396 | $as_echo "$ac_cv_path_EGREP" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4397 | EGREP="$ac_cv_path_EGREP" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4398 | |
| 4399 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4400 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4401 | $as_echo_n "checking for ANSI C header files... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4402 | if test "${ac_cv_header_stdc+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4403 | $as_echo_n "(cached) " >&6 |
| 4404 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4405 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4406 | /* end confdefs.h. */ |
| 4407 | #include <stdlib.h> |
| 4408 | #include <stdarg.h> |
| 4409 | #include <string.h> |
| 4410 | #include <float.h> |
Ronald Oussoren | 5644eb7 | 2009-09-20 20:10:02 +0000 | [diff] [blame] | 4411 | |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4412 | int |
| 4413 | main () |
| 4414 | { |
| 4415 | |
| 4416 | ; |
| 4417 | return 0; |
| 4418 | } |
| 4419 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4420 | if ac_fn_c_try_compile "$LINENO"; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4421 | ac_cv_header_stdc=yes |
| 4422 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4423 | ac_cv_header_stdc=no |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4424 | fi |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4425 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4426 | |
| 4427 | if test $ac_cv_header_stdc = yes; then |
| 4428 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4429 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4430 | /* end confdefs.h. */ |
| 4431 | #include <string.h> |
| 4432 | |
| 4433 | _ACEOF |
| 4434 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4435 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 4436 | |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4437 | else |
| 4438 | ac_cv_header_stdc=no |
| 4439 | fi |
| 4440 | rm -f conftest* |
| 4441 | |
| 4442 | fi |
| 4443 | |
| 4444 | if test $ac_cv_header_stdc = yes; then |
| 4445 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4446 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4447 | /* end confdefs.h. */ |
| 4448 | #include <stdlib.h> |
| 4449 | |
| 4450 | _ACEOF |
| 4451 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4452 | $EGREP "free" >/dev/null 2>&1; then : |
| 4453 | |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4454 | else |
| 4455 | ac_cv_header_stdc=no |
| 4456 | fi |
| 4457 | rm -f conftest* |
| 4458 | |
| 4459 | fi |
| 4460 | |
| 4461 | if test $ac_cv_header_stdc = yes; then |
| 4462 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4463 | if test "$cross_compiling" = yes; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4464 | : |
| 4465 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4466 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4467 | /* end confdefs.h. */ |
| 4468 | #include <ctype.h> |
| 4469 | #include <stdlib.h> |
| 4470 | #if ((' ' & 0x0FF) == 0x020) |
| 4471 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4472 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4473 | #else |
| 4474 | # define ISLOWER(c) \ |
| 4475 | (('a' <= (c) && (c) <= 'i') \ |
| 4476 | || ('j' <= (c) && (c) <= 'r') \ |
| 4477 | || ('s' <= (c) && (c) <= 'z')) |
| 4478 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 4479 | #endif |
| 4480 | |
| 4481 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4482 | int |
| 4483 | main () |
| 4484 | { |
| 4485 | int i; |
| 4486 | for (i = 0; i < 256; i++) |
| 4487 | if (XOR (islower (i), ISLOWER (i)) |
| 4488 | || toupper (i) != TOUPPER (i)) |
| 4489 | return 2; |
| 4490 | return 0; |
| 4491 | } |
| 4492 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4493 | if ac_fn_c_try_run "$LINENO"; then : |
| 4494 | |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4495 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4496 | ac_cv_header_stdc=no |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4497 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4498 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 4499 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4500 | fi |
| 4501 | |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4502 | fi |
| 4503 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4504 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4505 | $as_echo "$ac_cv_header_stdc" >&6; } |
| 4506 | if test $ac_cv_header_stdc = yes; then |
| 4507 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4508 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4509 | |
| 4510 | fi |
| 4511 | |
| 4512 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4513 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 4514 | inttypes.h stdint.h unistd.h |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4515 | do : |
| 4516 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4517 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 4518 | " |
| 4519 | eval as_val=\$$as_ac_Header |
| 4520 | if test "x$as_val" = x""yes; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4521 | cat >>confdefs.h <<_ACEOF |
| 4522 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4523 | _ACEOF |
| 4524 | |
| 4525 | fi |
| 4526 | |
| 4527 | done |
| 4528 | |
| 4529 | |
| 4530 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4531 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" |
| 4532 | if test "x$ac_cv_header_minix_config_h" = x""yes; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4533 | MINIX=yes |
| 4534 | else |
| 4535 | MINIX= |
| 4536 | fi |
| 4537 | |
| 4538 | |
| 4539 | if test "$MINIX" = yes; then |
| 4540 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4541 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4542 | |
| 4543 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4544 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4545 | |
| 4546 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4547 | $as_echo "#define _MINIX 1" >>confdefs.h |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4548 | |
| 4549 | fi |
| 4550 | |
| 4551 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4552 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4553 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4554 | if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4555 | $as_echo_n "(cached) " >&6 |
| 4556 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4557 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4558 | /* end confdefs.h. */ |
| 4559 | |
| 4560 | # define __EXTENSIONS__ 1 |
| 4561 | $ac_includes_default |
| 4562 | int |
| 4563 | main () |
| 4564 | { |
| 4565 | |
| 4566 | ; |
| 4567 | return 0; |
| 4568 | } |
| 4569 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4570 | if ac_fn_c_try_compile "$LINENO"; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4571 | ac_cv_safe_to_define___extensions__=yes |
| 4572 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4573 | ac_cv_safe_to_define___extensions__=no |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4574 | fi |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4575 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4576 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4578 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } |
| 4579 | test $ac_cv_safe_to_define___extensions__ = yes && |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4580 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4581 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4582 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4583 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4584 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4585 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4586 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4587 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4588 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h |
| 4589 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4590 | |
| 4591 | |
| 4592 | |
| 4593 | # Check for unsupported systems |
| 4594 | case $ac_sys_system/$ac_sys_release in |
| 4595 | atheos*|Linux*/1*) |
| 4596 | echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported. |
| 4597 | echo See README for details. |
| 4598 | exit 1;; |
| 4599 | esac |
| 4600 | |
| 4601 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4602 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-suffix" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4603 | $as_echo_n "checking for --with-suffix... " >&6; } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4604 | |
| 4605 | # Check whether --with-suffix was given. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4606 | if test "${with_suffix+set}" = set; then : |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4607 | withval=$with_suffix; |
| 4608 | case $withval in |
| 4609 | no) EXEEXT=;; |
| 4610 | yes) EXEEXT=.exe;; |
| 4611 | *) EXEEXT=$withval;; |
| 4612 | esac |
| 4613 | fi |
| 4614 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXEEXT" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4616 | $as_echo "$EXEEXT" >&6; } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4617 | |
| 4618 | # Test whether we're running on a non-case-sensitive system, in which |
| 4619 | # case we give a warning if no ext is given |
| 4620 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4621 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for case-insensitive build directory" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4622 | $as_echo_n "checking for case-insensitive build directory... " >&6; } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4623 | if test ! -d CaseSensitiveTestDir; then |
| 4624 | mkdir CaseSensitiveTestDir |
| 4625 | fi |
| 4626 | |
| 4627 | if test -d casesensitivetestdir |
| 4628 | then |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4630 | $as_echo "yes" >&6; } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4631 | BUILDEXEEXT=.exe |
| 4632 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4634 | $as_echo "no" >&6; } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4635 | BUILDEXEEXT=$EXEEXT |
| 4636 | fi |
| 4637 | rmdir CaseSensitiveTestDir |
| 4638 | |
| 4639 | case $MACHDEP in |
| 4640 | bsdos*) |
| 4641 | case $CC in |
| 4642 | gcc) CC="$CC -D_HAVE_BSDI";; |
| 4643 | esac;; |
| 4644 | esac |
| 4645 | |
| 4646 | case $ac_sys_system in |
| 4647 | hp*|HP*) |
| 4648 | case $CC in |
| 4649 | cc|*/cc) CC="$CC -Ae";; |
| 4650 | esac;; |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4651 | SunOS*) |
| 4652 | # Some functions have a prototype only with that define, e.g. confstr |
| 4653 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4654 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4655 | |
| 4656 | ;; |
| 4657 | esac |
| 4658 | |
| 4659 | |
| 4660 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4661 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4662 | $as_echo_n "checking LIBRARY... " >&6; } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4663 | if test -z "$LIBRARY" |
| 4664 | then |
| 4665 | LIBRARY='libpython$(VERSION).a' |
| 4666 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBRARY" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4668 | $as_echo "$LIBRARY" >&6; } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4669 | |
| 4670 | # LDLIBRARY is the name of the library to link against (as opposed to the |
| 4671 | # name of the library into which to insert object files). BLDLIBRARY is also |
| 4672 | # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY |
| 4673 | # is blank as the main program is not linked directly against LDLIBRARY. |
| 4674 | # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On |
| 4675 | # systems without shared libraries, LDLIBRARY is the same as LIBRARY |
| 4676 | # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, |
| 4677 | # DLLLIBRARY is the shared (i.e., DLL) library. |
| 4678 | # |
| 4679 | # RUNSHARED is used to run shared python without installed libraries |
| 4680 | # |
| 4681 | # INSTSONAME is the name of the shared library that will be use to install |
| 4682 | # on the system - some systems like version suffix, others don't |
| 4683 | |
| 4684 | |
| 4685 | |
| 4686 | |
| 4687 | |
| 4688 | |
| 4689 | LDLIBRARY="$LIBRARY" |
| 4690 | BLDLIBRARY='$(LDLIBRARY)' |
| 4691 | INSTSONAME='$(LDLIBRARY)' |
| 4692 | DLLLIBRARY='' |
| 4693 | LDLIBRARYDIR='' |
| 4694 | RUNSHARED='' |
| 4695 | |
| 4696 | # LINKCC is the command that links the python executable -- default is $(CC). |
| 4697 | # If CXX is set, and if it is needed to link a main function that was |
| 4698 | # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: |
| 4699 | # python might then depend on the C++ runtime |
| 4700 | # This is altered for AIX in order to build the export list before |
| 4701 | # linking. |
| 4702 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4703 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKCC" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4704 | $as_echo_n "checking LINKCC... " >&6; } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4705 | if test -z "$LINKCC" |
| 4706 | then |
| 4707 | LINKCC='$(PURIFY) $(MAINCC)' |
| 4708 | case $ac_sys_system in |
| 4709 | AIX*) |
| 4710 | exp_extra="\"\"" |
| 4711 | if test $ac_sys_release -ge 5 -o \ |
| 4712 | $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then |
| 4713 | exp_extra="." |
| 4714 | fi |
| 4715 | LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";; |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4716 | QNX*) |
| 4717 | # qcc must be used because the other compilers do not |
| 4718 | # support -N. |
| 4719 | LINKCC=qcc;; |
| 4720 | esac |
| 4721 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKCC" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4723 | $as_echo "$LINKCC" >&6; } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4724 | |
| 4725 | # GNULD is set to "yes" if the GNU linker is used. If this goes wrong |
| 4726 | # make sure we default having it set to "no": this is used by |
| 4727 | # distutils.unixccompiler to know if it should add --enable-new-dtags |
| 4728 | # to linker command lines, and failing to detect GNU ld simply results |
| 4729 | # in the same bahaviour as before. |
| 4730 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4731 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4732 | $as_echo_n "checking for GNU ld... " >&6; } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4733 | ac_prog=ld |
| 4734 | if test "$GCC" = yes; then |
| 4735 | ac_prog=`$CC -print-prog-name=ld` |
| 4736 | fi |
| 4737 | case `"$ac_prog" -V 2>&1 < /dev/null` in |
| 4738 | *GNU*) |
| 4739 | GNULD=yes;; |
| 4740 | *) |
| 4741 | GNULD=no;; |
| 4742 | esac |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNULD" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4744 | $as_echo "$GNULD" >&6; } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4745 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4746 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-shared" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4747 | $as_echo_n "checking for --enable-shared... " >&6; } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4748 | # Check whether --enable-shared was given. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4749 | if test "${enable_shared+set}" = set; then : |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4750 | enableval=$enable_shared; |
| 4751 | fi |
| 4752 | |
| 4753 | |
| 4754 | if test -z "$enable_shared" |
| 4755 | then |
| 4756 | case $ac_sys_system in |
| 4757 | CYGWIN* | atheos*) |
| 4758 | enable_shared="yes";; |
| 4759 | *) |
| 4760 | enable_shared="no";; |
| 4761 | esac |
| 4762 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4764 | $as_echo "$enable_shared" >&6; } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4765 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4766 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-profiling" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4767 | $as_echo_n "checking for --enable-profiling... " >&6; } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4768 | # Check whether --enable-profiling was given. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4769 | if test "${enable_profiling+set}" = set; then : |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4770 | enableval=$enable_profiling; ac_save_cc="$CC" |
| 4771 | CC="$CC -pg" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4772 | if test "$cross_compiling" = yes; then : |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4773 | ac_enable_profiling="no" |
| 4774 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4775 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4776 | /* end confdefs.h. */ |
| 4777 | int main() { return 0; } |
| 4778 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4779 | if ac_fn_c_try_run "$LINENO"; then : |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4780 | ac_enable_profiling="yes" |
| 4781 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4782 | ac_enable_profiling="no" |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4783 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4784 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 4785 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4786 | fi |
| 4787 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4788 | CC="$ac_save_cc" |
| 4789 | fi |
| 4790 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_profiling" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4792 | $as_echo "$ac_enable_profiling" >&6; } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4793 | |
| 4794 | case "$ac_enable_profiling" in |
| 4795 | "yes") |
| 4796 | BASECFLAGS="-pg $BASECFLAGS" |
| 4797 | LDFLAGS="-pg $LDFLAGS" |
| 4798 | ;; |
| 4799 | esac |
| 4800 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4801 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDLIBRARY" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4802 | $as_echo_n "checking LDLIBRARY... " >&6; } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4803 | |
| 4804 | # MacOSX framework builds need more magic. LDLIBRARY is the dynamic |
| 4805 | # library that we build, but we do not want to link against it (we |
| 4806 | # will find it with a -framework option). For this reason there is an |
| 4807 | # extra variable BLDLIBRARY against which Python and the extension |
| 4808 | # modules are linked, BLDLIBRARY. This is normally the same as |
| 4809 | # LDLIBRARY, but empty for MacOSX framework builds. |
| 4810 | if test "$enable_framework" |
| 4811 | then |
| 4812 | LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 4813 | RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH" |
| 4814 | BLDLIBRARY='' |
| 4815 | else |
| 4816 | BLDLIBRARY='$(LDLIBRARY)' |
| 4817 | fi |
| 4818 | |
| 4819 | # Other platforms follow |
| 4820 | if test $enable_shared = "yes"; then |
| 4821 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4822 | $as_echo "#define Py_ENABLE_SHARED 1" >>confdefs.h |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4823 | |
| 4824 | case $ac_sys_system in |
| 4825 | CYGWIN*) |
| 4826 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 4827 | DLLLIBRARY='libpython$(VERSION).dll' |
| 4828 | ;; |
| 4829 | SunOS*) |
| 4830 | LDLIBRARY='libpython$(VERSION).so' |
| 4831 | BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)' |
| 4832 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
| 4833 | INSTSONAME="$LDLIBRARY".$SOVERSION |
| 4834 | ;; |
| 4835 | Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*) |
| 4836 | LDLIBRARY='libpython$(VERSION).so' |
| 4837 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 4838 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
| 4839 | case $ac_sys_system in |
| 4840 | FreeBSD*) |
| 4841 | SOVERSION=`echo $SOVERSION|cut -d "." -f 1` |
| 4842 | ;; |
| 4843 | esac |
| 4844 | INSTSONAME="$LDLIBRARY".$SOVERSION |
| 4845 | ;; |
| 4846 | hp*|HP*) |
| 4847 | case `uname -m` in |
| 4848 | ia64) |
| 4849 | LDLIBRARY='libpython$(VERSION).so' |
| 4850 | ;; |
| 4851 | *) |
| 4852 | LDLIBRARY='libpython$(VERSION).sl' |
| 4853 | ;; |
| 4854 | esac |
| 4855 | BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)' |
| 4856 | RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH} |
| 4857 | ;; |
| 4858 | OSF*) |
| 4859 | LDLIBRARY='libpython$(VERSION).so' |
| 4860 | BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)' |
| 4861 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
| 4862 | ;; |
| 4863 | atheos*) |
| 4864 | LDLIBRARY='libpython$(VERSION).so' |
| 4865 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 4866 | RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib} |
| 4867 | ;; |
| 4868 | Darwin*) |
| 4869 | LDLIBRARY='libpython$(VERSION).dylib' |
| 4870 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 4871 | RUNSHARED='DYLD_LIBRARY_PATH=`pwd`:${DYLD_LIBRARY_PATH}' |
| 4872 | ;; |
| 4873 | |
| 4874 | esac |
| 4875 | else # shared is disabled |
| 4876 | case $ac_sys_system in |
| 4877 | CYGWIN*) |
| 4878 | BLDLIBRARY='$(LIBRARY)' |
| 4879 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 4880 | ;; |
| 4881 | esac |
| 4882 | fi |
| 4883 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDLIBRARY" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4885 | $as_echo "$LDLIBRARY" >&6; } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4886 | |
| 4887 | if test -n "$ac_tool_prefix"; then |
| 4888 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 4889 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4890 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4891 | $as_echo_n "checking for $ac_word... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4892 | if test "${ac_cv_prog_RANLIB+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4893 | $as_echo_n "(cached) " >&6 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4894 | else |
| 4895 | if test -n "$RANLIB"; then |
| 4896 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 4897 | else |
| 4898 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4899 | for as_dir in $PATH |
| 4900 | do |
| 4901 | IFS=$as_save_IFS |
| 4902 | test -z "$as_dir" && as_dir=. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4903 | for ac_exec_ext in '' $ac_executable_extensions; do |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4904 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4905 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4906 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4907 | break 2 |
| 4908 | fi |
| 4909 | done |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4910 | done |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4911 | IFS=$as_save_IFS |
| 4912 | |
| 4913 | fi |
| 4914 | fi |
| 4915 | RANLIB=$ac_cv_prog_RANLIB |
| 4916 | if test -n "$RANLIB"; then |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4918 | $as_echo "$RANLIB" >&6; } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4919 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4921 | $as_echo "no" >&6; } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4922 | fi |
| 4923 | |
| 4924 | |
| 4925 | fi |
| 4926 | if test -z "$ac_cv_prog_RANLIB"; then |
| 4927 | ac_ct_RANLIB=$RANLIB |
| 4928 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 4929 | set dummy ranlib; ac_word=$2 |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4930 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4931 | $as_echo_n "checking for $ac_word... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4932 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4933 | $as_echo_n "(cached) " >&6 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4934 | else |
| 4935 | if test -n "$ac_ct_RANLIB"; then |
| 4936 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 4937 | else |
| 4938 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4939 | for as_dir in $PATH |
| 4940 | do |
| 4941 | IFS=$as_save_IFS |
| 4942 | test -z "$as_dir" && as_dir=. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4943 | for ac_exec_ext in '' $ac_executable_extensions; do |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4944 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4945 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4946 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4947 | break 2 |
| 4948 | fi |
| 4949 | done |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4950 | done |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4951 | IFS=$as_save_IFS |
| 4952 | |
| 4953 | fi |
| 4954 | fi |
| 4955 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 4956 | if test -n "$ac_ct_RANLIB"; then |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4958 | $as_echo "$ac_ct_RANLIB" >&6; } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4959 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4961 | $as_echo "no" >&6; } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4962 | fi |
| 4963 | |
| 4964 | if test "x$ac_ct_RANLIB" = x; then |
| 4965 | RANLIB=":" |
| 4966 | else |
| 4967 | case $cross_compiling:$ac_tool_warned in |
| 4968 | yes:) |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4969 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4970 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4971 | ac_tool_warned=yes ;; |
| 4972 | esac |
| 4973 | RANLIB=$ac_ct_RANLIB |
| 4974 | fi |
| 4975 | else |
| 4976 | RANLIB="$ac_cv_prog_RANLIB" |
| 4977 | fi |
| 4978 | |
| 4979 | |
| 4980 | for ac_prog in ar aal |
| 4981 | do |
| 4982 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4983 | set dummy $ac_prog; ac_word=$2 |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4984 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4985 | $as_echo_n "checking for $ac_word... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4986 | if test "${ac_cv_prog_AR+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 4987 | $as_echo_n "(cached) " >&6 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4988 | else |
| 4989 | if test -n "$AR"; then |
| 4990 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 4991 | else |
| 4992 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4993 | for as_dir in $PATH |
| 4994 | do |
| 4995 | IFS=$as_save_IFS |
| 4996 | test -z "$as_dir" && as_dir=. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 4997 | for ac_exec_ext in '' $ac_executable_extensions; do |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4998 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4999 | ac_cv_prog_AR="$ac_prog" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5000 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5001 | break 2 |
| 5002 | fi |
| 5003 | done |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5004 | done |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5005 | IFS=$as_save_IFS |
| 5006 | |
| 5007 | fi |
| 5008 | fi |
| 5009 | AR=$ac_cv_prog_AR |
| 5010 | if test -n "$AR"; then |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 5012 | $as_echo "$AR" >&6; } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5013 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 5015 | $as_echo "no" >&6; } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5016 | fi |
| 5017 | |
| 5018 | |
| 5019 | test -n "$AR" && break |
| 5020 | done |
| 5021 | test -n "$AR" || AR="ar" |
| 5022 | |
| 5023 | |
| 5024 | # tweak ARFLAGS only if the user didn't set it on the command line |
| 5025 | |
| 5026 | if test -z "$ARFLAGS" |
| 5027 | then |
| 5028 | ARFLAGS="rc" |
| 5029 | fi |
| 5030 | |
| 5031 | |
| 5032 | # Extract the first word of "svnversion", so it can be a program name with args. |
| 5033 | set dummy svnversion; ac_word=$2 |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5034 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 5035 | $as_echo_n "checking for $ac_word... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5036 | if test "${ac_cv_prog_SVNVERSION+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 5037 | $as_echo_n "(cached) " >&6 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5038 | else |
| 5039 | if test -n "$SVNVERSION"; then |
| 5040 | ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test. |
| 5041 | else |
| 5042 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5043 | for as_dir in $PATH |
| 5044 | do |
| 5045 | IFS=$as_save_IFS |
| 5046 | test -z "$as_dir" && as_dir=. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5047 | for ac_exec_ext in '' $ac_executable_extensions; do |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5048 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5049 | ac_cv_prog_SVNVERSION="found" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5050 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5051 | break 2 |
| 5052 | fi |
| 5053 | done |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5054 | done |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5055 | IFS=$as_save_IFS |
| 5056 | |
| 5057 | test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION="not-found" |
| 5058 | fi |
| 5059 | fi |
| 5060 | SVNVERSION=$ac_cv_prog_SVNVERSION |
| 5061 | if test -n "$SVNVERSION"; then |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVNVERSION" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 5063 | $as_echo "$SVNVERSION" >&6; } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5064 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 5066 | $as_echo "no" >&6; } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5067 | fi |
| 5068 | |
| 5069 | |
| 5070 | if test $SVNVERSION = found |
| 5071 | then |
| 5072 | SVNVERSION="svnversion \$(srcdir)" |
| 5073 | else |
| 5074 | SVNVERSION="echo Unversioned directory" |
| 5075 | fi |
| 5076 | |
| 5077 | case $MACHDEP in |
| 5078 | bsdos*|hp*|HP*) |
| 5079 | # install -d does not work on BSDI or HP-UX |
| 5080 | if test -z "$INSTALL" |
| 5081 | then |
| 5082 | INSTALL="${srcdir}/install-sh -c" |
| 5083 | fi |
| 5084 | esac |
| 5085 | ac_aux_dir= |
| 5086 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5087 | for ac_t in install-sh install.sh shtool; do |
| 5088 | if test -f "$ac_dir/$ac_t"; then |
| 5089 | ac_aux_dir=$ac_dir |
| 5090 | ac_install_sh="$ac_aux_dir/$ac_t -c" |
| 5091 | break 2 |
| 5092 | fi |
| 5093 | done |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5094 | done |
| 5095 | if test -z "$ac_aux_dir"; then |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5096 | as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5097 | fi |
| 5098 | |
| 5099 | # These three variables are undocumented and unsupported, |
| 5100 | # and are intended to be withdrawn in a future Autoconf release. |
| 5101 | # They can cause serious problems if a builder's source tree is in a directory |
| 5102 | # whose full name contains unusual characters. |
| 5103 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 5104 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 5105 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 5106 | |
| 5107 | |
| 5108 | # Find a good install program. We prefer a C program (faster), |
| 5109 | # so one script is as good as another. But avoid the broken or |
| 5110 | # incompatible versions: |
| 5111 | # SysV /etc/install, /usr/sbin/install |
| 5112 | # SunOS /usr/etc/install |
| 5113 | # IRIX /sbin/install |
| 5114 | # AIX /bin/install |
| 5115 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 5116 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 5117 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 5118 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 5119 | # OS/2's system install, which has a completely different semantic |
| 5120 | # ./install, which can be erroneously created by make from ./install.sh. |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 5121 | # Reject install programs that cannot install multiple files. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5122 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 5123 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5124 | if test -z "$INSTALL"; then |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5125 | if test "${ac_cv_path_install+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 5126 | $as_echo_n "(cached) " >&6 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5127 | else |
| 5128 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5129 | for as_dir in $PATH |
| 5130 | do |
| 5131 | IFS=$as_save_IFS |
| 5132 | test -z "$as_dir" && as_dir=. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5133 | # Account for people who put trailing slashes in PATH elements. |
| 5134 | case $as_dir/ in #(( |
| 5135 | ./ | .// | /[cC]/* | \ |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5136 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5137 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5138 | /usr/ucb/* ) ;; |
| 5139 | *) |
| 5140 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 5141 | # Don't use installbsd from OSF since it installs stuff as root |
| 5142 | # by default. |
| 5143 | for ac_prog in ginstall scoinst install; do |
| 5144 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5145 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
| 5146 | if test $ac_prog = install && |
| 5147 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 5148 | # AIX install. It has an incompatible calling convention. |
| 5149 | : |
| 5150 | elif test $ac_prog = install && |
| 5151 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 5152 | # program-specific install script used by HP pwplus--don't use. |
| 5153 | : |
| 5154 | else |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 5155 | rm -rf conftest.one conftest.two conftest.dir |
| 5156 | echo one > conftest.one |
| 5157 | echo two > conftest.two |
| 5158 | mkdir conftest.dir |
| 5159 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 5160 | test -s conftest.one && test -s conftest.two && |
| 5161 | test -s conftest.dir/conftest.one && |
| 5162 | test -s conftest.dir/conftest.two |
| 5163 | then |
| 5164 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 5165 | break 3 |
| 5166 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5167 | fi |
| 5168 | fi |
| 5169 | done |
| 5170 | done |
| 5171 | ;; |
| 5172 | esac |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 5173 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5174 | done |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5175 | IFS=$as_save_IFS |
| 5176 | |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 5177 | rm -rf conftest.one conftest.two conftest.dir |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5178 | |
| 5179 | fi |
| 5180 | if test "${ac_cv_path_install+set}" = set; then |
| 5181 | INSTALL=$ac_cv_path_install |
| 5182 | else |
| 5183 | # As a last resort, use the slow shell script. Don't cache a |
| 5184 | # value for INSTALL within a source directory, because that will |
| 5185 | # break other packages using the cache if that directory is |
| 5186 | # removed, or if the value is a relative name. |
| 5187 | INSTALL=$ac_install_sh |
| 5188 | fi |
| 5189 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 5191 | $as_echo "$INSTALL" >&6; } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5192 | |
| 5193 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 5194 | # It thinks the first close brace ends the variable substitution. |
| 5195 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 5196 | |
| 5197 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 5198 | |
| 5199 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 5200 | |
| 5201 | |
| 5202 | # Not every filesystem supports hard links |
| 5203 | |
| 5204 | if test -z "$LN" ; then |
| 5205 | case $ac_sys_system in |
| 5206 | CYGWIN*) LN="ln -s";; |
| 5207 | atheos*) LN="ln -s";; |
| 5208 | *) LN=ln;; |
| 5209 | esac |
| 5210 | fi |
| 5211 | |
| 5212 | # Check for --with-pydebug |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5213 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pydebug" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 5214 | $as_echo_n "checking for --with-pydebug... " >&6; } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5215 | |
| 5216 | # Check whether --with-pydebug was given. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5217 | if test "${with_pydebug+set}" = set; then : |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5218 | withval=$with_pydebug; |
| 5219 | if test "$withval" != no |
| 5220 | then |
| 5221 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5222 | $as_echo "#define Py_DEBUG 1" >>confdefs.h |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5223 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 5225 | $as_echo "yes" >&6; }; |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5226 | Py_DEBUG='true' |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5227 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 5228 | $as_echo "no" >&6; }; Py_DEBUG='false' |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5229 | fi |
| 5230 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 5232 | $as_echo "no" >&6; } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5233 | fi |
| 5234 | |
| 5235 | |
| 5236 | # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be |
| 5237 | # merged with this chunk of code? |
| 5238 | |
| 5239 | # Optimizer/debugger flags |
| 5240 | # ------------------------ |
| 5241 | # (The following bit of code is complicated enough - please keep things |
| 5242 | # indented properly. Just pretend you're editing Python code. ;-) |
| 5243 | |
| 5244 | # There are two parallel sets of case statements below, one that checks to |
| 5245 | # see if OPT was set and one that does BASECFLAGS setting based upon |
| 5246 | # compiler and platform. BASECFLAGS tweaks need to be made even if the |
| 5247 | # user set OPT. |
| 5248 | |
| 5249 | # tweak OPT based on compiler and platform, only if the user didn't set |
| 5250 | # it on the command line |
| 5251 | |
Benjamin Peterson | e7e59c2 | 2010-03-23 21:05:56 +0000 | [diff] [blame] | 5252 | if test "${OPT-unset}" = "unset" |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5253 | then |
| 5254 | case $GCC in |
| 5255 | yes) |
| 5256 | if test "$CC" != 'g++' ; then |
| 5257 | STRICT_PROTO="-Wstrict-prototypes" |
| 5258 | fi |
| 5259 | # For gcc 4.x we need to use -fwrapv so lets check if its supported |
| 5260 | if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then |
| 5261 | WRAP="-fwrapv" |
| 5262 | fi |
| 5263 | case $ac_cv_prog_cc_g in |
| 5264 | yes) |
| 5265 | if test "$Py_DEBUG" = 'true' ; then |
| 5266 | # Optimization messes up debuggers, so turn it off for |
| 5267 | # debug builds. |
| 5268 | OPT="-g -Wall $STRICT_PROTO" |
| 5269 | else |
| 5270 | OPT="-g $WRAP -O3 -Wall $STRICT_PROTO" |
| 5271 | fi |
| 5272 | ;; |
| 5273 | *) |
| 5274 | OPT="-O3 -Wall $STRICT_PROTO" |
| 5275 | ;; |
| 5276 | esac |
| 5277 | case $ac_sys_system in |
| 5278 | SCO_SV*) OPT="$OPT -m486 -DSCO5" |
| 5279 | ;; |
| 5280 | esac |
| 5281 | ;; |
| 5282 | |
| 5283 | *) |
| 5284 | OPT="-O" |
| 5285 | ;; |
| 5286 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5287 | fi |
| 5288 | |
| 5289 | |
| 5290 | |
| 5291 | # The -arch flags for universal builds on OSX |
| 5292 | UNIVERSAL_ARCH_FLAGS= |
| 5293 | |
| 5294 | |
| 5295 | # tweak BASECFLAGS based on compiler and platform |
| 5296 | case $GCC in |
| 5297 | yes) |
Benjamin Peterson | c2037d6 | 2010-06-21 17:04:07 +0000 | [diff] [blame] | 5298 | # Python doesn't violate C99 aliasing rules, but older versions of |
| 5299 | # GCC produce warnings for legal Python code. Enable |
| 5300 | # -fno-strict-aliasing on versions of GCC that support but produce |
| 5301 | # warnings. See Issue3326 |
| 5302 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts and needs -fno-strict-aliasing" >&5 |
| 5303 | $as_echo_n "checking whether $CC accepts and needs -fno-strict-aliasing... " >&6; } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5304 | ac_save_cc="$CC" |
| 5305 | CC="$CC -fno-strict-aliasing" |
Benjamin Peterson | c2037d6 | 2010-06-21 17:04:07 +0000 | [diff] [blame] | 5306 | save_CFLAGS="$CFLAGS" |
| 5307 | if test "${ac_cv_no_strict_aliasing+set}" = set; then : |
| 5308 | $as_echo_n "(cached) " >&6 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5309 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5310 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5311 | /* end confdefs.h. */ |
Benjamin Peterson | c2037d6 | 2010-06-21 17:04:07 +0000 | [diff] [blame] | 5312 | |
| 5313 | |
| 5314 | int |
| 5315 | main () |
| 5316 | { |
| 5317 | |
| 5318 | ; |
| 5319 | return 0; |
| 5320 | } |
| 5321 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5322 | _ACEOF |
Benjamin Peterson | c2037d6 | 2010-06-21 17:04:07 +0000 | [diff] [blame] | 5323 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5324 | |
| 5325 | CC="$ac_save_cc -fstrict-aliasing" |
| 5326 | CFLAGS="$CFLAGS -Werror -Wstrict-aliasing" |
| 5327 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5328 | /* end confdefs.h. */ |
| 5329 | |
| 5330 | void f(int **x) {} |
| 5331 | int |
| 5332 | main () |
| 5333 | { |
| 5334 | double *x; f((int **) &x); |
| 5335 | ; |
| 5336 | return 0; |
| 5337 | } |
| 5338 | |
| 5339 | _ACEOF |
| 5340 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5341 | |
| 5342 | ac_cv_no_strict_aliasing=no |
| 5343 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5344 | else |
Benjamin Peterson | c2037d6 | 2010-06-21 17:04:07 +0000 | [diff] [blame] | 5345 | |
| 5346 | ac_cv_no_strict_aliasing=yes |
| 5347 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5348 | fi |
Benjamin Peterson | c2037d6 | 2010-06-21 17:04:07 +0000 | [diff] [blame] | 5349 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5350 | |
| 5351 | else |
| 5352 | |
| 5353 | ac_cv_no_strict_aliasing=no |
| 5354 | |
| 5355 | fi |
| 5356 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5357 | fi |
| 5358 | |
Benjamin Peterson | c2037d6 | 2010-06-21 17:04:07 +0000 | [diff] [blame] | 5359 | CFLAGS="$save_CFLAGS" |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5360 | CC="$ac_save_cc" |
Benjamin Peterson | c2037d6 | 2010-06-21 17:04:07 +0000 | [diff] [blame] | 5361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_no_strict_aliasing" >&5 |
| 5362 | $as_echo "$ac_cv_no_strict_aliasing" >&6; } |
| 5363 | if test $ac_cv_no_strict_aliasing = yes |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5364 | then |
| 5365 | BASECFLAGS="$BASECFLAGS -fno-strict-aliasing" |
| 5366 | fi |
| 5367 | |
| 5368 | # if using gcc on alpha, use -mieee to get (near) full IEEE 754 |
| 5369 | # support. Without this, treatment of subnormals doesn't follow |
| 5370 | # the standard. |
| 5371 | case $ac_sys_machine in |
| 5372 | alpha*) |
| 5373 | BASECFLAGS="$BASECFLAGS -mieee" |
| 5374 | ;; |
| 5375 | esac |
| 5376 | |
| 5377 | case $ac_sys_system in |
| 5378 | SCO_SV*) |
| 5379 | BASECFLAGS="$BASECFLAGS -m486 -DSCO5" |
| 5380 | ;; |
| 5381 | # is there any other compiler on Darwin besides gcc? |
| 5382 | Darwin*) |
| 5383 | # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd |
| 5384 | # used to be here, but non-Apple gcc doesn't accept them. |
Ronald Oussoren | 79a9351 | 2010-04-18 19:08:47 +0000 | [diff] [blame] | 5385 | if test "${CC}" = gcc |
| 5386 | then |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5387 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which compiler should be used" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 5388 | $as_echo_n "checking which compiler should be used... " >&6; } |
Ronald Oussoren | 79a9351 | 2010-04-18 19:08:47 +0000 | [diff] [blame] | 5389 | case "${UNIVERSALSDK}" in |
| 5390 | */MacOSX10.4u.sdk) |
| 5391 | # Build using 10.4 SDK, force usage of gcc when the |
| 5392 | # compiler is gcc, otherwise the user will get very |
| 5393 | # confusing error messages when building on OSX 10.6 |
| 5394 | CC=gcc-4.0 |
| 5395 | CPP=cpp-4.0 |
| 5396 | ;; |
| 5397 | esac |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 5399 | $as_echo "$CC" >&6; } |
Ronald Oussoren | 79a9351 | 2010-04-18 19:08:47 +0000 | [diff] [blame] | 5400 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5401 | |
| 5402 | |
| 5403 | if test "${enable_universalsdk}"; then |
| 5404 | UNIVERSAL_ARCH_FLAGS="" |
| 5405 | if test "$UNIVERSAL_ARCHS" = "32-bit" ; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5406 | ARCH_RUN_32BIT="" |
Benjamin Peterson | e7e59c2 | 2010-03-23 21:05:56 +0000 | [diff] [blame] | 5407 | UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386" |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5408 | |
| 5409 | elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then |
Ronald Oussoren | d45ff2c | 2009-09-06 11:11:04 +0000 | [diff] [blame] | 5410 | ARCH_RUN_32BIT="true" |
Benjamin Peterson | e7e59c2 | 2010-03-23 21:05:56 +0000 | [diff] [blame] | 5411 | UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64" |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5412 | |
| 5413 | elif test "$UNIVERSAL_ARCHS" = "all" ; then |
Ronald Oussoren | c8c89c4 | 2010-02-11 13:24:45 +0000 | [diff] [blame] | 5414 | ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" |
Benjamin Peterson | e7e59c2 | 2010-03-23 21:05:56 +0000 | [diff] [blame] | 5415 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64" |
| 5416 | LIPO_32BIT_FLAGS="-extract i386 -extract ppc7400" |
| 5417 | LIPO_64BIT_FLAGS="-extract x86_64 -extract ppc64" |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5418 | |
Ronald Oussoren | 856624d | 2009-09-08 07:13:53 +0000 | [diff] [blame] | 5419 | elif test "$UNIVERSAL_ARCHS" = "intel" ; then |
Ronald Oussoren | c8c89c4 | 2010-02-11 13:24:45 +0000 | [diff] [blame] | 5420 | ARCH_RUN_32BIT="/usr/bin/arch -i386" |
Benjamin Peterson | e7e59c2 | 2010-03-23 21:05:56 +0000 | [diff] [blame] | 5421 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64" |
| 5422 | LIPO_32BIT_FLAGS="-extract i386" |
| 5423 | LIPO_64BIT_FLAGS="-extract x86_64" |
Ronald Oussoren | 856624d | 2009-09-08 07:13:53 +0000 | [diff] [blame] | 5424 | |
| 5425 | elif test "$UNIVERSAL_ARCHS" = "3-way" ; then |
Ronald Oussoren | c8c89c4 | 2010-02-11 13:24:45 +0000 | [diff] [blame] | 5426 | ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" |
Benjamin Peterson | e7e59c2 | 2010-03-23 21:05:56 +0000 | [diff] [blame] | 5427 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64" |
| 5428 | LIPO_32BIT_FLAGS="-extract i386 -extract ppc7400" |
| 5429 | LIPO_64BIT_FLAGS="-extract x86_64" |
Ronald Oussoren | 856624d | 2009-09-08 07:13:53 +0000 | [diff] [blame] | 5430 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5431 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5432 | as_fn_error "proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" "$LINENO" 5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5433 | |
| 5434 | fi |
| 5435 | |
| 5436 | |
Ronald Oussoren | 79a9351 | 2010-04-18 19:08:47 +0000 | [diff] [blame] | 5437 | CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}" |
| 5438 | if test "${UNIVERSALSDK}" != "/" |
| 5439 | then |
| 5440 | CFLAGS="-isysroot ${UNIVERSALSDK} ${CFLAGS}" |
| 5441 | LDFLAGS="-isysroot ${UNIVERSALSDK} ${LDFLAGS}" |
| 5442 | CPPFLAGSFLAGS="-isysroot ${UNIVERSALSDK} ${CPPFLAGS}" |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5443 | fi |
| 5444 | fi |
| 5445 | |
| 5446 | # Calculate the right deployment target for this build. |
| 5447 | # |
| 5448 | cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'` |
| 5449 | if test ${cur_target} '>' 10.2; then |
| 5450 | cur_target=10.3 |
Ronald Oussoren | d45ff2c | 2009-09-06 11:11:04 +0000 | [diff] [blame] | 5451 | if test ${enable_universalsdk}; then |
| 5452 | if test "${UNIVERSAL_ARCHS}" = "all"; then |
| 5453 | # Ensure that the default platform for a |
| 5454 | # 4-way universal build is OSX 10.5, |
| 5455 | # that's the first OS release where |
| 5456 | # 4-way builds make sense. |
| 5457 | cur_target='10.5' |
Ronald Oussoren | 856624d | 2009-09-08 07:13:53 +0000 | [diff] [blame] | 5458 | |
| 5459 | elif test "${UNIVERSAL_ARCHS}" = "3-way"; then |
| 5460 | cur_target='10.5' |
| 5461 | |
| 5462 | elif test "${UNIVERSAL_ARCHS}" = "intel"; then |
| 5463 | cur_target='10.5' |
| 5464 | |
| 5465 | elif test "${UNIVERSAL_ARCHS}" = "64-bit"; then |
| 5466 | cur_target='10.5' |
Ronald Oussoren | d45ff2c | 2009-09-06 11:11:04 +0000 | [diff] [blame] | 5467 | fi |
| 5468 | else |
Ronald Oussoren | 175a884 | 2010-02-11 13:40:06 +0000 | [diff] [blame] | 5469 | if test `/usr/bin/arch` = "i386"; then |
Ronald Oussoren | d45ff2c | 2009-09-06 11:11:04 +0000 | [diff] [blame] | 5470 | # On Intel macs default to a deployment |
| 5471 | # target of 10.4, that's the first OSX |
| 5472 | # release with Intel support. |
| 5473 | cur_target="10.4" |
| 5474 | fi |
| 5475 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5476 | fi |
| 5477 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}} |
| 5478 | |
| 5479 | # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the |
| 5480 | # environment with a value that is the same as what we'll use |
| 5481 | # in the Makefile to ensure that we'll get the same compiler |
| 5482 | # environment during configure and build time. |
| 5483 | MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET" |
| 5484 | export MACOSX_DEPLOYMENT_TARGET |
| 5485 | EXPORT_MACOSX_DEPLOYMENT_TARGET='' |
| 5486 | |
| 5487 | ;; |
| 5488 | OSF*) |
| 5489 | BASECFLAGS="$BASECFLAGS -mieee" |
| 5490 | ;; |
| 5491 | esac |
| 5492 | ;; |
| 5493 | |
| 5494 | *) |
| 5495 | case $ac_sys_system in |
| 5496 | OpenUNIX*|UnixWare*) |
| 5497 | BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca " |
| 5498 | ;; |
| 5499 | OSF*) |
| 5500 | BASECFLAGS="$BASECFLAGS -ieee -std" |
| 5501 | ;; |
| 5502 | SCO_SV*) |
| 5503 | BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5" |
| 5504 | ;; |
| 5505 | esac |
| 5506 | ;; |
| 5507 | esac |
| 5508 | |
| 5509 | if test "$Py_DEBUG" = 'true'; then |
| 5510 | : |
| 5511 | else |
| 5512 | OPT="-DNDEBUG $OPT" |
| 5513 | fi |
| 5514 | |
| 5515 | if test "$ac_arch_flags" |
| 5516 | then |
| 5517 | BASECFLAGS="$BASECFLAGS $ac_arch_flags" |
| 5518 | fi |
| 5519 | |
| 5520 | # disable check for icc since it seems to pass, but generates a warning |
| 5521 | if test "$CC" = icc |
| 5522 | then |
| 5523 | ac_cv_opt_olimit_ok=no |
| 5524 | fi |
| 5525 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5526 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -OPT:Olimit=0" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 5527 | $as_echo_n "checking whether $CC accepts -OPT:Olimit=0... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5528 | if test "${ac_cv_opt_olimit_ok+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 5529 | $as_echo_n "(cached) " >&6 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5530 | else |
| 5531 | ac_save_cc="$CC" |
| 5532 | CC="$CC -OPT:Olimit=0" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5533 | if test "$cross_compiling" = yes; then : |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5534 | ac_cv_opt_olimit_ok=no |
| 5535 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5536 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5537 | /* end confdefs.h. */ |
| 5538 | int main() { return 0; } |
| 5539 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5540 | if ac_fn_c_try_run "$LINENO"; then : |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5541 | ac_cv_opt_olimit_ok=yes |
| 5542 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5543 | ac_cv_opt_olimit_ok=no |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5544 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5545 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 5546 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5547 | fi |
| 5548 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5549 | CC="$ac_save_cc" |
| 5550 | fi |
| 5551 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5552 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_opt_olimit_ok" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 5553 | $as_echo "$ac_cv_opt_olimit_ok" >&6; } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5554 | if test $ac_cv_opt_olimit_ok = yes; then |
| 5555 | case $ac_sys_system in |
| 5556 | # XXX is this branch needed? On MacOSX 10.2.2 the result of the |
| 5557 | # olimit_ok test is "no". Is it "yes" in some other Darwin-esque |
| 5558 | # environment? |
| 5559 | Darwin*) |
| 5560 | ;; |
| 5561 | *) |
| 5562 | BASECFLAGS="$BASECFLAGS -OPT:Olimit=0" |
| 5563 | ;; |
| 5564 | esac |
| 5565 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5566 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Olimit 1500" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 5567 | $as_echo_n "checking whether $CC accepts -Olimit 1500... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5568 | if test "${ac_cv_olimit_ok+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 5569 | $as_echo_n "(cached) " >&6 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5570 | else |
| 5571 | ac_save_cc="$CC" |
| 5572 | CC="$CC -Olimit 1500" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5573 | if test "$cross_compiling" = yes; then : |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5574 | ac_cv_olimit_ok=no |
| 5575 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5576 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5577 | /* end confdefs.h. */ |
| 5578 | int main() { return 0; } |
| 5579 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5580 | if ac_fn_c_try_run "$LINENO"; then : |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5581 | ac_cv_olimit_ok=yes |
| 5582 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5583 | ac_cv_olimit_ok=no |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5584 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5585 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 5586 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5587 | fi |
| 5588 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5589 | CC="$ac_save_cc" |
| 5590 | fi |
| 5591 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5592 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_olimit_ok" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 5593 | $as_echo "$ac_cv_olimit_ok" >&6; } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5594 | if test $ac_cv_olimit_ok = yes; then |
| 5595 | BASECFLAGS="$BASECFLAGS -Olimit 1500" |
| 5596 | fi |
| 5597 | fi |
| 5598 | |
| 5599 | # Check whether GCC supports PyArg_ParseTuple format |
| 5600 | if test "$GCC" = "yes" |
| 5601 | then |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5602 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc supports ParseTuple __format__" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 5603 | $as_echo_n "checking whether gcc supports ParseTuple __format__... " >&6; } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5604 | save_CFLAGS=$CFLAGS |
| 5605 | CFLAGS="$CFLAGS -Werror" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5606 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5607 | /* end confdefs.h. */ |
| 5608 | |
| 5609 | void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2))); |
| 5610 | |
| 5611 | int |
| 5612 | main () |
| 5613 | { |
| 5614 | |
| 5615 | ; |
| 5616 | return 0; |
| 5617 | } |
| 5618 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5619 | if ac_fn_c_try_compile "$LINENO"; then : |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5620 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5621 | $as_echo "#define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1" >>confdefs.h |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5622 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5623 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 5624 | $as_echo "yes" >&6; } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5625 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 5627 | $as_echo "no" >&6; } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5628 | |
| 5629 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5630 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5631 | CFLAGS=$save_CFLAGS |
| 5632 | fi |
| 5633 | |
| 5634 | # On some compilers, pthreads are available without further options |
| 5635 | # (e.g. MacOS X). On some of these systems, the compiler will not |
| 5636 | # complain if unaccepted options are passed (e.g. gcc on Mac OS X). |
| 5637 | # So we have to see first whether pthreads are available without |
| 5638 | # options before we can check whether -Kpthread improves anything. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5639 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads are available without options" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 5640 | $as_echo_n "checking whether pthreads are available without options... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5641 | if test "${ac_cv_pthread_is_default+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 5642 | $as_echo_n "(cached) " >&6 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5643 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5644 | if test "$cross_compiling" = yes; then : |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5645 | ac_cv_pthread_is_default=no |
| 5646 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5647 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5648 | /* end confdefs.h. */ |
| 5649 | |
| 5650 | #include <pthread.h> |
| 5651 | |
| 5652 | void* routine(void* p){return NULL;} |
| 5653 | |
| 5654 | int main(){ |
| 5655 | pthread_t p; |
| 5656 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 5657 | return 1; |
| 5658 | (void)pthread_detach(p); |
| 5659 | return 0; |
| 5660 | } |
| 5661 | |
| 5662 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5663 | if ac_fn_c_try_run "$LINENO"; then : |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5664 | |
| 5665 | ac_cv_pthread_is_default=yes |
| 5666 | ac_cv_kthread=no |
| 5667 | ac_cv_pthread=no |
| 5668 | |
| 5669 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5670 | ac_cv_pthread_is_default=no |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5671 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5672 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 5673 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5674 | fi |
| 5675 | |
| 5676 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5677 | fi |
| 5678 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_is_default" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 5680 | $as_echo "$ac_cv_pthread_is_default" >&6; } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5681 | |
| 5682 | |
| 5683 | if test $ac_cv_pthread_is_default = yes |
| 5684 | then |
| 5685 | ac_cv_kpthread=no |
| 5686 | else |
| 5687 | # -Kpthread, if available, provides the right #defines |
| 5688 | # and linker options to make pthread_create available |
| 5689 | # Some compilers won't report that they do not support -Kpthread, |
| 5690 | # so we need to run a program to see whether it really made the |
| 5691 | # function available. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5692 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kpthread" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 5693 | $as_echo_n "checking whether $CC accepts -Kpthread... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5694 | if test "${ac_cv_kpthread+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 5695 | $as_echo_n "(cached) " >&6 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5696 | else |
| 5697 | ac_save_cc="$CC" |
| 5698 | CC="$CC -Kpthread" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5699 | if test "$cross_compiling" = yes; then : |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5700 | ac_cv_kpthread=no |
| 5701 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5702 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5703 | /* end confdefs.h. */ |
| 5704 | |
| 5705 | #include <pthread.h> |
| 5706 | |
| 5707 | void* routine(void* p){return NULL;} |
| 5708 | |
| 5709 | int main(){ |
| 5710 | pthread_t p; |
| 5711 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 5712 | return 1; |
| 5713 | (void)pthread_detach(p); |
| 5714 | return 0; |
| 5715 | } |
| 5716 | |
| 5717 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5718 | if ac_fn_c_try_run "$LINENO"; then : |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5719 | ac_cv_kpthread=yes |
| 5720 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5721 | ac_cv_kpthread=no |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5722 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5723 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 5724 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5725 | fi |
| 5726 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5727 | CC="$ac_save_cc" |
| 5728 | fi |
| 5729 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kpthread" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 5731 | $as_echo "$ac_cv_kpthread" >&6; } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5732 | fi |
| 5733 | |
| 5734 | if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no |
| 5735 | then |
| 5736 | # -Kthread, if available, provides the right #defines |
| 5737 | # and linker options to make pthread_create available |
| 5738 | # Some compilers won't report that they do not support -Kthread, |
| 5739 | # so we need to run a program to see whether it really made the |
| 5740 | # function available. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5741 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kthread" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 5742 | $as_echo_n "checking whether $CC accepts -Kthread... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5743 | if test "${ac_cv_kthread+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 5744 | $as_echo_n "(cached) " >&6 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5745 | else |
| 5746 | ac_save_cc="$CC" |
| 5747 | CC="$CC -Kthread" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5748 | if test "$cross_compiling" = yes; then : |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5749 | ac_cv_kthread=no |
| 5750 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5751 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5752 | /* end confdefs.h. */ |
| 5753 | |
| 5754 | #include <pthread.h> |
| 5755 | |
| 5756 | void* routine(void* p){return NULL;} |
| 5757 | |
| 5758 | int main(){ |
| 5759 | pthread_t p; |
| 5760 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 5761 | return 1; |
| 5762 | (void)pthread_detach(p); |
| 5763 | return 0; |
| 5764 | } |
| 5765 | |
| 5766 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5767 | if ac_fn_c_try_run "$LINENO"; then : |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5768 | ac_cv_kthread=yes |
| 5769 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5770 | ac_cv_kthread=no |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5771 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5772 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 5773 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5774 | fi |
| 5775 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5776 | CC="$ac_save_cc" |
| 5777 | fi |
| 5778 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kthread" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 5780 | $as_echo "$ac_cv_kthread" >&6; } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5781 | fi |
| 5782 | |
| 5783 | if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no |
| 5784 | then |
| 5785 | # -pthread, if available, provides the right #defines |
| 5786 | # and linker options to make pthread_create available |
| 5787 | # Some compilers won't report that they do not support -pthread, |
| 5788 | # so we need to run a program to see whether it really made the |
| 5789 | # function available. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5790 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -pthread" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 5791 | $as_echo_n "checking whether $CC accepts -pthread... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5792 | if test "${ac_cv_thread+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 5793 | $as_echo_n "(cached) " >&6 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5794 | else |
| 5795 | ac_save_cc="$CC" |
| 5796 | CC="$CC -pthread" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5797 | if test "$cross_compiling" = yes; then : |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5798 | ac_cv_pthread=no |
| 5799 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5800 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5801 | /* end confdefs.h. */ |
| 5802 | |
| 5803 | #include <pthread.h> |
| 5804 | |
| 5805 | void* routine(void* p){return NULL;} |
| 5806 | |
| 5807 | int main(){ |
| 5808 | pthread_t p; |
| 5809 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 5810 | return 1; |
| 5811 | (void)pthread_detach(p); |
| 5812 | return 0; |
| 5813 | } |
| 5814 | |
| 5815 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5816 | if ac_fn_c_try_run "$LINENO"; then : |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5817 | ac_cv_pthread=yes |
| 5818 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5819 | ac_cv_pthread=no |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5820 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5821 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 5822 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5823 | fi |
| 5824 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5825 | CC="$ac_save_cc" |
| 5826 | fi |
| 5827 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 5829 | $as_echo "$ac_cv_pthread" >&6; } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5830 | fi |
| 5831 | |
| 5832 | # If we have set a CC compiler flag for thread support then |
| 5833 | # check if it works for CXX, too. |
| 5834 | ac_cv_cxx_thread=no |
| 5835 | if test ! -z "$CXX" |
| 5836 | then |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5837 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX also accepts flags for thread support" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 5838 | $as_echo_n "checking whether $CXX also accepts flags for thread support... " >&6; } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5839 | ac_save_cxx="$CXX" |
| 5840 | |
| 5841 | if test "$ac_cv_kpthread" = "yes" |
| 5842 | then |
| 5843 | CXX="$CXX -Kpthread" |
| 5844 | ac_cv_cxx_thread=yes |
| 5845 | elif test "$ac_cv_kthread" = "yes" |
| 5846 | then |
| 5847 | CXX="$CXX -Kthread" |
| 5848 | ac_cv_cxx_thread=yes |
| 5849 | elif test "$ac_cv_pthread" = "yes" |
| 5850 | then |
| 5851 | CXX="$CXX -pthread" |
| 5852 | ac_cv_cxx_thread=yes |
| 5853 | fi |
| 5854 | |
| 5855 | if test $ac_cv_cxx_thread = yes |
| 5856 | then |
| 5857 | echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext |
| 5858 | $CXX -c conftest.$ac_ext 2>&5 |
| 5859 | if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ |
| 5860 | && test -s conftest$ac_exeext && ./conftest$ac_exeext |
| 5861 | then |
| 5862 | ac_cv_cxx_thread=yes |
| 5863 | else |
| 5864 | ac_cv_cxx_thread=no |
| 5865 | fi |
| 5866 | rm -fr conftest* |
| 5867 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5868 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_thread" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 5869 | $as_echo "$ac_cv_cxx_thread" >&6; } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5870 | fi |
| 5871 | CXX="$ac_save_cxx" |
| 5872 | |
| 5873 | |
| 5874 | # checks for header files |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5875 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 5876 | $as_echo_n "checking for ANSI C header files... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5877 | if test "${ac_cv_header_stdc+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 5878 | $as_echo_n "(cached) " >&6 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5879 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5880 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5881 | /* end confdefs.h. */ |
| 5882 | #include <stdlib.h> |
| 5883 | #include <stdarg.h> |
| 5884 | #include <string.h> |
| 5885 | #include <float.h> |
| 5886 | |
| 5887 | int |
| 5888 | main () |
| 5889 | { |
| 5890 | |
| 5891 | ; |
| 5892 | return 0; |
| 5893 | } |
| 5894 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5895 | if ac_fn_c_try_compile "$LINENO"; then : |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5896 | ac_cv_header_stdc=yes |
| 5897 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5898 | ac_cv_header_stdc=no |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5899 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5900 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5901 | |
| 5902 | if test $ac_cv_header_stdc = yes; then |
| 5903 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5904 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5905 | /* end confdefs.h. */ |
| 5906 | #include <string.h> |
| 5907 | |
| 5908 | _ACEOF |
| 5909 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5910 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 5911 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5912 | else |
| 5913 | ac_cv_header_stdc=no |
| 5914 | fi |
Jesus Cea | 0f752ee | 2010-04-28 12:03:06 +0000 | [diff] [blame] | 5915 | rm -f conftest* |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5916 | |
| 5917 | fi |
| 5918 | |
| 5919 | if test $ac_cv_header_stdc = yes; then |
| 5920 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5921 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5922 | /* end confdefs.h. */ |
| 5923 | #include <stdlib.h> |
| 5924 | |
| 5925 | _ACEOF |
| 5926 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5927 | $EGREP "free" >/dev/null 2>&1; then : |
| 5928 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5929 | else |
| 5930 | ac_cv_header_stdc=no |
| 5931 | fi |
Jesus Cea | 0f752ee | 2010-04-28 12:03:06 +0000 | [diff] [blame] | 5932 | rm -f conftest* |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5933 | |
| 5934 | fi |
| 5935 | |
| 5936 | if test $ac_cv_header_stdc = yes; then |
| 5937 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5938 | if test "$cross_compiling" = yes; then : |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5939 | : |
| 5940 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5941 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5942 | /* end confdefs.h. */ |
| 5943 | #include <ctype.h> |
| 5944 | #include <stdlib.h> |
| 5945 | #if ((' ' & 0x0FF) == 0x020) |
| 5946 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 5947 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 5948 | #else |
| 5949 | # define ISLOWER(c) \ |
| 5950 | (('a' <= (c) && (c) <= 'i') \ |
| 5951 | || ('j' <= (c) && (c) <= 'r') \ |
| 5952 | || ('s' <= (c) && (c) <= 'z')) |
| 5953 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 5954 | #endif |
| 5955 | |
| 5956 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 5957 | int |
| 5958 | main () |
| 5959 | { |
| 5960 | int i; |
| 5961 | for (i = 0; i < 256; i++) |
| 5962 | if (XOR (islower (i), ISLOWER (i)) |
| 5963 | || toupper (i) != TOUPPER (i)) |
| 5964 | return 2; |
| 5965 | return 0; |
| 5966 | } |
| 5967 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5968 | if ac_fn_c_try_run "$LINENO"; then : |
| 5969 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5970 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5971 | ac_cv_header_stdc=no |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5972 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5973 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 5974 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5975 | fi |
| 5976 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5977 | fi |
| 5978 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 5980 | $as_echo "$ac_cv_header_stdc" >&6; } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5981 | if test $ac_cv_header_stdc = yes; then |
| 5982 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5983 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 5984 | |
| 5985 | fi |
| 5986 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 5987 | for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \ |
| 5988 | fcntl.h grp.h \ |
Christian Heimes | bbe741d | 2008-03-28 10:53:29 +0000 | [diff] [blame] | 5989 | 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] | 5990 | 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] | 5991 | unistd.h utime.h \ |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 5992 | sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \ |
| 5993 | sys/lock.h sys/mkdev.h sys/modem.h \ |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 5994 | sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \ |
Benjamin Peterson | de9c869 | 2008-07-01 18:23:09 +0000 | [diff] [blame] | 5995 | sys/termio.h sys/time.h \ |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 5996 | sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \ |
Hye-Shik Chang | 8126860 | 2004-02-02 06:05:24 +0000 | [diff] [blame] | 5997 | sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \ |
Christian Heimes | 043d6f6 | 2008-01-07 17:19:16 +0000 | [diff] [blame] | 5998 | bluetooth/bluetooth.h linux/tipc.h |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 5999 | do : |
| 6000 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6001 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 6002 | eval as_val=\$$as_ac_Header |
| 6003 | if test "x$as_val" = x""yes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6004 | cat >>confdefs.h <<_ACEOF |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6005 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6006 | _ACEOF |
| 6007 | |
| 6008 | fi |
| 6009 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6010 | done |
| 6011 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6012 | ac_header_dirent=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6013 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6014 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6015 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6016 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6017 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6018 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6019 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6020 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6021 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6022 | #include <sys/types.h> |
| 6023 | #include <$ac_hdr> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6024 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6025 | int |
| 6026 | main () |
| 6027 | { |
| 6028 | if ((DIR *) 0) |
| 6029 | return 0; |
| 6030 | ; |
| 6031 | return 0; |
| 6032 | } |
| 6033 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6034 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6035 | eval "$as_ac_Header=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6036 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6037 | eval "$as_ac_Header=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6038 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6039 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6040 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6041 | eval ac_res=\$$as_ac_Header |
| 6042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6043 | $as_echo "$ac_res" >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6044 | eval as_val=\$$as_ac_Header |
| 6045 | if test "x$as_val" = x""yes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6046 | cat >>confdefs.h <<_ACEOF |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6047 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6048 | _ACEOF |
| 6049 | |
| 6050 | ac_header_dirent=$ac_hdr; break |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6051 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6052 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6053 | done |
| 6054 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 6055 | if test $ac_header_dirent = dirent.h; then |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6056 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6057 | $as_echo_n "checking for library containing opendir... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6058 | if test "${ac_cv_search_opendir+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6059 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6060 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6061 | ac_func_search_save_LIBS=$LIBS |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +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. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6064 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6065 | /* Override any GCC internal prototype to avoid an error. |
| 6066 | Use char because int might match the return type of a GCC |
| 6067 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6068 | #ifdef __cplusplus |
| 6069 | extern "C" |
| 6070 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6071 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6072 | int |
| 6073 | main () |
| 6074 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6075 | return opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6076 | ; |
| 6077 | return 0; |
| 6078 | } |
| 6079 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6080 | for ac_lib in '' dir; do |
| 6081 | if test -z "$ac_lib"; then |
| 6082 | ac_res="none required" |
| 6083 | else |
| 6084 | ac_res=-l$ac_lib |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 6085 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6086 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6087 | if ac_fn_c_try_link "$LINENO"; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6088 | ac_cv_search_opendir=$ac_res |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6089 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6090 | rm -f core conftest.err conftest.$ac_objext \ |
| 6091 | conftest$ac_exeext |
| 6092 | if test "${ac_cv_search_opendir+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6093 | break |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 6094 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6095 | done |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6096 | if test "${ac_cv_search_opendir+set}" = set; then : |
| 6097 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6098 | else |
| 6099 | ac_cv_search_opendir=no |
| 6100 | fi |
| 6101 | rm conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6102 | LIBS=$ac_func_search_save_LIBS |
| 6103 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6105 | $as_echo "$ac_cv_search_opendir" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6106 | ac_res=$ac_cv_search_opendir |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6107 | if test "$ac_res" != no; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6108 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6109 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6110 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6111 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6112 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6113 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6114 | $as_echo_n "checking for library containing opendir... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6115 | if test "${ac_cv_search_opendir+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6116 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6117 | else |
| 6118 | ac_func_search_save_LIBS=$LIBS |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6119 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6120 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6121 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6122 | /* Override any GCC internal prototype to avoid an error. |
| 6123 | Use char because int might match the return type of a GCC |
| 6124 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6125 | #ifdef __cplusplus |
| 6126 | extern "C" |
| 6127 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6128 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6129 | int |
| 6130 | main () |
| 6131 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6132 | return opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6133 | ; |
| 6134 | return 0; |
| 6135 | } |
| 6136 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6137 | for ac_lib in '' x; do |
| 6138 | if test -z "$ac_lib"; then |
| 6139 | ac_res="none required" |
| 6140 | else |
| 6141 | ac_res=-l$ac_lib |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 6142 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6143 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6144 | if ac_fn_c_try_link "$LINENO"; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6145 | ac_cv_search_opendir=$ac_res |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6146 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6147 | rm -f core conftest.err conftest.$ac_objext \ |
| 6148 | conftest$ac_exeext |
| 6149 | if test "${ac_cv_search_opendir+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6150 | break |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 6151 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6152 | done |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6153 | if test "${ac_cv_search_opendir+set}" = set; then : |
| 6154 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6155 | else |
| 6156 | ac_cv_search_opendir=no |
| 6157 | fi |
| 6158 | rm conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6159 | LIBS=$ac_func_search_save_LIBS |
| 6160 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6161 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6162 | $as_echo "$ac_cv_search_opendir" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6163 | ac_res=$ac_cv_search_opendir |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6164 | if test "$ac_res" != no; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6165 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6166 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6167 | fi |
| 6168 | |
| 6169 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6170 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6171 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6172 | $as_echo_n "checking whether sys/types.h defines makedev... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6173 | if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6174 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6175 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6176 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6177 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6178 | #include <sys/types.h> |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6179 | int |
| 6180 | main () |
| 6181 | { |
| 6182 | return makedev(0, 0); |
| 6183 | ; |
| 6184 | return 0; |
| 6185 | } |
| 6186 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6187 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6188 | ac_cv_header_sys_types_h_makedev=yes |
| 6189 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6190 | ac_cv_header_sys_types_h_makedev=no |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6191 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6192 | rm -f core conftest.err conftest.$ac_objext \ |
| 6193 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6194 | |
| 6195 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6197 | $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6198 | |
| 6199 | if test $ac_cv_header_sys_types_h_makedev = no; then |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6200 | ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default" |
| 6201 | if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6202 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6203 | $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6204 | |
| 6205 | fi |
| 6206 | |
| 6207 | |
| 6208 | |
| 6209 | if test $ac_cv_header_sys_mkdev_h = no; then |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6210 | ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default" |
| 6211 | if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6212 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6213 | $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6214 | |
| 6215 | fi |
| 6216 | |
| 6217 | |
| 6218 | fi |
| 6219 | fi |
| 6220 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6221 | |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6222 | # On Solaris, term.h requires curses.h |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6223 | for ac_header in term.h |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6224 | do : |
| 6225 | 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] | 6226 | #ifdef HAVE_CURSES_H |
| 6227 | #include <curses.h> |
| 6228 | #endif |
| 6229 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6230 | " |
| 6231 | 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] | 6232 | cat >>confdefs.h <<_ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6233 | #define HAVE_TERM_H 1 |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6234 | _ACEOF |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6235 | |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6236 | fi |
| 6237 | |
| 6238 | done |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6239 | |
| 6240 | |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6241 | # On Linux, netlink.h requires asm/types.h |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6242 | for ac_header in linux/netlink.h |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6243 | do : |
| 6244 | 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] | 6245 | #ifdef HAVE_ASM_TYPES_H |
| 6246 | #include <asm/types.h> |
| 6247 | #endif |
| 6248 | #ifdef HAVE_SYS_SOCKET_H |
| 6249 | #include <sys/socket.h> |
| 6250 | #endif |
| 6251 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6252 | " |
| 6253 | 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] | 6254 | cat >>confdefs.h <<_ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6255 | #define HAVE_LINUX_NETLINK_H 1 |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6256 | _ACEOF |
| 6257 | |
| 6258 | fi |
| 6259 | |
| 6260 | done |
| 6261 | |
| 6262 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6263 | # checks for typedefs |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6264 | was_it_defined=no |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6265 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t in time.h" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6266 | $as_echo_n "checking for clock_t in time.h... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6267 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6268 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6269 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6270 | |
| 6271 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6272 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6273 | $EGREP "clock_t" >/dev/null 2>&1; then : |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6274 | was_it_defined=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6275 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6276 | |
| 6277 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6278 | $as_echo "#define clock_t long" >>confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6279 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 6280 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6281 | fi |
Jesus Cea | 0f752ee | 2010-04-28 12:03:06 +0000 | [diff] [blame] | 6282 | rm -f conftest* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6283 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6285 | $as_echo "$was_it_defined" >&6; } |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6286 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6287 | # Check whether using makedev requires defining _OSF_SOURCE |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6288 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for makedev" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6289 | $as_echo_n "checking for makedev... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6290 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6291 | /* end confdefs.h. */ |
Jesus Cea | 0f752ee | 2010-04-28 12:03:06 +0000 | [diff] [blame] | 6292 | |
| 6293 | #if defined(MAJOR_IN_MKDEV) |
| 6294 | #include <sys/mkdev.h> |
| 6295 | #elif defined(MAJOR_IN_SYSMACROS) |
| 6296 | #include <sys/sysmacros.h> |
| 6297 | #else |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 6298 | #include <sys/types.h> |
Jesus Cea | 0f752ee | 2010-04-28 12:03:06 +0000 | [diff] [blame] | 6299 | #endif |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6300 | int |
| 6301 | main () |
| 6302 | { |
| 6303 | makedev(0, 0) |
| 6304 | ; |
| 6305 | return 0; |
| 6306 | } |
| 6307 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6308 | if ac_fn_c_try_link "$LINENO"; then : |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6309 | ac_cv_has_makedev=yes |
| 6310 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6311 | ac_cv_has_makedev=no |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6312 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6313 | rm -f core conftest.err conftest.$ac_objext \ |
| 6314 | conftest$ac_exeext conftest.$ac_ext |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6315 | if test "$ac_cv_has_makedev" = "no"; then |
| 6316 | # we didn't link, try if _OSF_SOURCE will allow us to link |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6317 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6318 | /* end confdefs.h. */ |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6319 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 6320 | #define _OSF_SOURCE 1 |
| 6321 | #include <sys/types.h> |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6322 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6323 | int |
| 6324 | main () |
| 6325 | { |
| 6326 | makedev(0, 0) |
| 6327 | ; |
| 6328 | return 0; |
| 6329 | } |
| 6330 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6331 | if ac_fn_c_try_link "$LINENO"; then : |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6332 | ac_cv_has_makedev=yes |
| 6333 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6334 | ac_cv_has_makedev=no |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6335 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6336 | rm -f core conftest.err conftest.$ac_objext \ |
| 6337 | conftest$ac_exeext conftest.$ac_ext |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6338 | if test "$ac_cv_has_makedev" = "yes"; then |
| 6339 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6340 | $as_echo "#define _OSF_SOURCE 1" >>confdefs.h |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6341 | |
| 6342 | fi |
| 6343 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_makedev" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6345 | $as_echo "$ac_cv_has_makedev" >&6; } |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6346 | if test "$ac_cv_has_makedev" = "yes"; then |
| 6347 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6348 | $as_echo "#define HAVE_MAKEDEV 1" >>confdefs.h |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6349 | |
| 6350 | fi |
| 6351 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6352 | # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in |
| 6353 | # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are |
| 6354 | # defined, but the compiler does not support pragma redefine_extname, |
| 6355 | # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit |
| 6356 | # structures (such as rlimit64) without declaring them. As a |
| 6357 | # work-around, disable LFS on such configurations |
| 6358 | |
| 6359 | use_lfs=yes |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6360 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking Solaris LFS bug" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6361 | $as_echo_n "checking Solaris LFS bug... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6362 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6363 | /* end confdefs.h. */ |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6364 | |
| 6365 | #define _LARGEFILE_SOURCE 1 |
| 6366 | #define _FILE_OFFSET_BITS 64 |
| 6367 | #include <sys/resource.h> |
| 6368 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6369 | int |
| 6370 | main () |
| 6371 | { |
| 6372 | struct rlimit foo; |
| 6373 | ; |
| 6374 | return 0; |
| 6375 | } |
| 6376 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6377 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6378 | sol_lfs_bug=no |
| 6379 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6380 | sol_lfs_bug=yes |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6381 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6382 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sol_lfs_bug" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6384 | $as_echo "$sol_lfs_bug" >&6; } |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6385 | if test "$sol_lfs_bug" = "yes"; then |
| 6386 | use_lfs=no |
| 6387 | fi |
| 6388 | |
| 6389 | if test "$use_lfs" = "yes"; then |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6390 | # Two defines needed to enable largefile support on various platforms |
| 6391 | # These may affect some typedefs |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6392 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6393 | $as_echo "#define _LARGEFILE_SOURCE 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6394 | |
| 6395 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6396 | $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6397 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6398 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6399 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 6400 | # Add some code to confdefs.h so that the test for off_t works on SCO |
| 6401 | cat >> confdefs.h <<\EOF |
| 6402 | #if defined(SCO_DS) |
| 6403 | #undef _OFF_T |
| 6404 | #endif |
| 6405 | EOF |
| 6406 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6407 | # Type availability checks |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6408 | ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" |
| 6409 | if test "x$ac_cv_type_mode_t" = x""yes; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6410 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6411 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6412 | |
| 6413 | cat >>confdefs.h <<_ACEOF |
| 6414 | #define mode_t int |
| 6415 | _ACEOF |
| 6416 | |
| 6417 | fi |
| 6418 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6419 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" |
| 6420 | if test "x$ac_cv_type_off_t" = x""yes; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6421 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6422 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6423 | |
| 6424 | cat >>confdefs.h <<_ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6425 | #define off_t long int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6426 | _ACEOF |
| 6427 | |
| 6428 | fi |
| 6429 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6430 | ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" |
| 6431 | if test "x$ac_cv_type_pid_t" = x""yes; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6432 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6433 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6434 | |
| 6435 | cat >>confdefs.h <<_ACEOF |
| 6436 | #define pid_t int |
| 6437 | _ACEOF |
| 6438 | |
| 6439 | fi |
| 6440 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6441 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6442 | $as_echo_n "checking return type of signal handlers... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6443 | if test "${ac_cv_type_signal+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6444 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6445 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6446 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6447 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6448 | #include <sys/types.h> |
| 6449 | #include <signal.h> |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6450 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6451 | int |
| 6452 | main () |
| 6453 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6454 | return *(signal (0, 0)) (0) == 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6455 | ; |
| 6456 | return 0; |
| 6457 | } |
| 6458 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6459 | if ac_fn_c_try_compile "$LINENO"; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6460 | ac_cv_type_signal=int |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6461 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6462 | ac_cv_type_signal=void |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6463 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6464 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6465 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6467 | $as_echo "$ac_cv_type_signal" >&6; } |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6468 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6469 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6470 | #define RETSIGTYPE $ac_cv_type_signal |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6471 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6472 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6473 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6474 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
| 6475 | if test "x$ac_cv_type_size_t" = x""yes; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6476 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6477 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6478 | |
| 6479 | cat >>confdefs.h <<_ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6480 | #define size_t unsigned int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6481 | _ACEOF |
| 6482 | |
| 6483 | fi |
| 6484 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6485 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6486 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6487 | if test "${ac_cv_type_uid_t+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6488 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6489 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6490 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6491 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6492 | #include <sys/types.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6493 | |
| 6494 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6495 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6496 | $EGREP "uid_t" >/dev/null 2>&1; then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6497 | ac_cv_type_uid_t=yes |
| 6498 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6499 | ac_cv_type_uid_t=no |
| 6500 | fi |
Jesus Cea | 0f752ee | 2010-04-28 12:03:06 +0000 | [diff] [blame] | 6501 | rm -f conftest* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6502 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6503 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6504 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6505 | $as_echo "$ac_cv_type_uid_t" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6506 | if test $ac_cv_type_uid_t = no; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6507 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6508 | $as_echo "#define uid_t int" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6509 | |
| 6510 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6511 | $as_echo "#define gid_t int" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6512 | |
| 6513 | fi |
| 6514 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6515 | ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" |
| 6516 | case $ac_cv_c_uint32_t in #( |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 6517 | no|yes) ;; #( |
| 6518 | *) |
| 6519 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6520 | $as_echo "#define _UINT32_T 1" >>confdefs.h |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 6521 | |
| 6522 | |
| 6523 | cat >>confdefs.h <<_ACEOF |
| 6524 | #define uint32_t $ac_cv_c_uint32_t |
| 6525 | _ACEOF |
| 6526 | ;; |
| 6527 | esac |
| 6528 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6529 | ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t" |
| 6530 | case $ac_cv_c_uint64_t in #( |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 6531 | no|yes) ;; #( |
| 6532 | *) |
| 6533 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6534 | $as_echo "#define _UINT64_T 1" >>confdefs.h |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 6535 | |
| 6536 | |
| 6537 | cat >>confdefs.h <<_ACEOF |
| 6538 | #define uint64_t $ac_cv_c_uint64_t |
| 6539 | _ACEOF |
| 6540 | ;; |
| 6541 | esac |
| 6542 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6543 | ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" |
| 6544 | case $ac_cv_c_int32_t in #( |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 6545 | no|yes) ;; #( |
| 6546 | *) |
| 6547 | |
| 6548 | cat >>confdefs.h <<_ACEOF |
| 6549 | #define int32_t $ac_cv_c_int32_t |
| 6550 | _ACEOF |
| 6551 | ;; |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 6552 | esac |
| 6553 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6554 | ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t" |
| 6555 | case $ac_cv_c_int64_t in #( |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 6556 | no|yes) ;; #( |
| 6557 | *) |
| 6558 | |
| 6559 | cat >>confdefs.h <<_ACEOF |
| 6560 | #define int64_t $ac_cv_c_int64_t |
| 6561 | _ACEOF |
| 6562 | ;; |
Benjamin Peterson | a833206 | 2009-09-11 22:36:27 +0000 | [diff] [blame] | 6563 | esac |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6564 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6565 | ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" |
| 6566 | if test "x$ac_cv_type_ssize_t" = x""yes; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6567 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6568 | $as_echo "#define HAVE_SSIZE_T 1" >>confdefs.h |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6569 | |
| 6570 | fi |
| 6571 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 6572 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6573 | # Sizes of various common basic types |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 6574 | # ANSI C requires sizeof(char) == 1, so no need to check it |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6575 | # The cast to long int works around a bug in the HP C Compiler |
| 6576 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6577 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6578 | # This bug is HP SR number 8606223364. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6579 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6580 | $as_echo_n "checking size of int... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6581 | if test "${ac_cv_sizeof_int+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6582 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6583 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6584 | 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] | 6585 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6586 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6587 | if test "$ac_cv_type_int" = yes; then |
| 6588 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6589 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6590 | { as_fn_set_status 77 |
| 6591 | as_fn_error "cannot compute sizeof (int) |
| 6592 | See \`config.log' for more details." "$LINENO" 5; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6593 | else |
| 6594 | ac_cv_sizeof_int=0 |
| 6595 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6596 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6597 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6598 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6600 | $as_echo "$ac_cv_sizeof_int" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6601 | |
| 6602 | |
| 6603 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6604 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6605 | #define SIZEOF_INT $ac_cv_sizeof_int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6606 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6607 | |
| 6608 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6609 | # The cast to long int works around a bug in the HP C Compiler |
| 6610 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6611 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6612 | # This bug is HP SR number 8606223364. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6613 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6614 | $as_echo_n "checking size of long... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6615 | if test "${ac_cv_sizeof_long+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6616 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6617 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6618 | 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] | 6619 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6620 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6621 | if test "$ac_cv_type_long" = yes; then |
| 6622 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6623 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6624 | { as_fn_set_status 77 |
| 6625 | as_fn_error "cannot compute sizeof (long) |
| 6626 | See \`config.log' for more details." "$LINENO" 5; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6627 | else |
| 6628 | ac_cv_sizeof_long=0 |
| 6629 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6630 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6631 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6632 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6634 | $as_echo "$ac_cv_sizeof_long" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6635 | |
| 6636 | |
| 6637 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6638 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6639 | #define SIZEOF_LONG $ac_cv_sizeof_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6640 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6641 | |
| 6642 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6643 | # The cast to long int works around a bug in the HP C Compiler |
| 6644 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6645 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6646 | # This bug is HP SR number 8606223364. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6647 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6648 | $as_echo_n "checking size of void *... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6649 | if test "${ac_cv_sizeof_void_p+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6650 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6651 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6652 | 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] | 6653 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6654 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6655 | if test "$ac_cv_type_void_p" = yes; then |
| 6656 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6657 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6658 | { as_fn_set_status 77 |
| 6659 | as_fn_error "cannot compute sizeof (void *) |
| 6660 | See \`config.log' for more details." "$LINENO" 5; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6661 | else |
| 6662 | ac_cv_sizeof_void_p=0 |
| 6663 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6664 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6665 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6666 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6668 | $as_echo "$ac_cv_sizeof_void_p" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6669 | |
| 6670 | |
| 6671 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6672 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6673 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6674 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6675 | |
| 6676 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6677 | # The cast to long int works around a bug in the HP C Compiler |
| 6678 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6679 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6680 | # This bug is HP SR number 8606223364. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6681 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6682 | $as_echo_n "checking size of short... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6683 | if test "${ac_cv_sizeof_short+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6684 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6685 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6686 | 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] | 6687 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6688 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6689 | if test "$ac_cv_type_short" = yes; then |
| 6690 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6691 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6692 | { as_fn_set_status 77 |
| 6693 | as_fn_error "cannot compute sizeof (short) |
| 6694 | See \`config.log' for more details." "$LINENO" 5; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6695 | else |
| 6696 | ac_cv_sizeof_short=0 |
| 6697 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6698 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6699 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6700 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6702 | $as_echo "$ac_cv_sizeof_short" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6703 | |
| 6704 | |
| 6705 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6706 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6707 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6708 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6709 | |
| 6710 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6711 | # The cast to long int works around a bug in the HP C Compiler |
| 6712 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6713 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6714 | # This bug is HP SR number 8606223364. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6715 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6716 | $as_echo_n "checking size of float... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6717 | if test "${ac_cv_sizeof_float+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6718 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6719 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6720 | 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] | 6721 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6722 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6723 | if test "$ac_cv_type_float" = yes; then |
| 6724 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6725 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6726 | { as_fn_set_status 77 |
| 6727 | as_fn_error "cannot compute sizeof (float) |
| 6728 | See \`config.log' for more details." "$LINENO" 5; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6729 | else |
| 6730 | ac_cv_sizeof_float=0 |
| 6731 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6732 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6733 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6734 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6736 | $as_echo "$ac_cv_sizeof_float" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6737 | |
| 6738 | |
| 6739 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6740 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6741 | #define SIZEOF_FLOAT $ac_cv_sizeof_float |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6742 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6743 | |
| 6744 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6745 | # The cast to long int works around a bug in the HP C Compiler |
| 6746 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6747 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6748 | # This bug is HP SR number 8606223364. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6749 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6750 | $as_echo_n "checking size of double... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6751 | if test "${ac_cv_sizeof_double+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6752 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6753 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6754 | 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] | 6755 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6756 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6757 | if test "$ac_cv_type_double" = yes; then |
| 6758 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6759 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6760 | { as_fn_set_status 77 |
| 6761 | as_fn_error "cannot compute sizeof (double) |
| 6762 | See \`config.log' for more details." "$LINENO" 5; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6763 | else |
| 6764 | ac_cv_sizeof_double=0 |
| 6765 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6766 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6767 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6768 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6770 | $as_echo "$ac_cv_sizeof_double" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6771 | |
| 6772 | |
| 6773 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6774 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6775 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6776 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6777 | |
| 6778 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6779 | # The cast to long int works around a bug in the HP C Compiler |
| 6780 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6781 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6782 | # This bug is HP SR number 8606223364. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6783 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of fpos_t" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6784 | $as_echo_n "checking size of fpos_t... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6785 | if test "${ac_cv_sizeof_fpos_t+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6786 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6787 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6788 | 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] | 6789 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6790 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6791 | if test "$ac_cv_type_fpos_t" = yes; then |
| 6792 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6793 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6794 | { as_fn_set_status 77 |
| 6795 | as_fn_error "cannot compute sizeof (fpos_t) |
| 6796 | See \`config.log' for more details." "$LINENO" 5; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6797 | else |
| 6798 | ac_cv_sizeof_fpos_t=0 |
| 6799 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6800 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6801 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6802 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_fpos_t" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6804 | $as_echo "$ac_cv_sizeof_fpos_t" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6805 | |
| 6806 | |
| 6807 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6808 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 6809 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6810 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 6811 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6812 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6813 | # The cast to long int works around a bug in the HP C Compiler |
| 6814 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6815 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6816 | # This bug is HP SR number 8606223364. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6817 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6818 | $as_echo_n "checking size of size_t... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6819 | if test "${ac_cv_sizeof_size_t+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6820 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6821 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6822 | 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] | 6823 | |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6824 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6825 | if test "$ac_cv_type_size_t" = yes; then |
| 6826 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6827 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6828 | { as_fn_set_status 77 |
| 6829 | as_fn_error "cannot compute sizeof (size_t) |
| 6830 | See \`config.log' for more details." "$LINENO" 5; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6831 | else |
| 6832 | ac_cv_sizeof_size_t=0 |
| 6833 | fi |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6834 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6835 | |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6836 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6838 | $as_echo "$ac_cv_sizeof_size_t" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6839 | |
| 6840 | |
| 6841 | |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6842 | cat >>confdefs.h <<_ACEOF |
| 6843 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t |
| 6844 | _ACEOF |
| 6845 | |
| 6846 | |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 6847 | # The cast to long int works around a bug in the HP C Compiler |
| 6848 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6849 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6850 | # This bug is HP SR number 8606223364. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6851 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pid_t" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6852 | $as_echo_n "checking size of pid_t... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6853 | if test "${ac_cv_sizeof_pid_t+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6854 | $as_echo_n "(cached) " >&6 |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 6855 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6856 | 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] | 6857 | |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 6858 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6859 | if test "$ac_cv_type_pid_t" = yes; then |
| 6860 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6861 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6862 | { as_fn_set_status 77 |
| 6863 | as_fn_error "cannot compute sizeof (pid_t) |
| 6864 | See \`config.log' for more details." "$LINENO" 5; }; } |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 6865 | else |
| 6866 | ac_cv_sizeof_pid_t=0 |
| 6867 | fi |
| 6868 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6869 | |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 6870 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pid_t" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6872 | $as_echo "$ac_cv_sizeof_pid_t" >&6; } |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 6873 | |
| 6874 | |
| 6875 | |
| 6876 | cat >>confdefs.h <<_ACEOF |
| 6877 | #define SIZEOF_PID_T $ac_cv_sizeof_pid_t |
| 6878 | _ACEOF |
| 6879 | |
| 6880 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6881 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6882 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6883 | $as_echo_n "checking for long long support... " >&6; } |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 6884 | have_long_long=no |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6885 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6886 | /* end confdefs.h. */ |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 6887 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6888 | int |
| 6889 | main () |
| 6890 | { |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 6891 | long long x; x = (long long)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6892 | ; |
| 6893 | return 0; |
| 6894 | } |
| 6895 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6896 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6897 | |
| 6898 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6899 | $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6900 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 6901 | have_long_long=yes |
| 6902 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 6903 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6904 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_long_long" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6906 | $as_echo "$have_long_long" >&6; } |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 6907 | if test "$have_long_long" = yes ; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6908 | # The cast to long int works around a bug in the HP C Compiler |
| 6909 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6910 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6911 | # This bug is HP SR number 8606223364. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6912 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6913 | $as_echo_n "checking size of long long... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6914 | if test "${ac_cv_sizeof_long_long+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6915 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6916 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6917 | 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] | 6918 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6919 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6920 | if test "$ac_cv_type_long_long" = yes; then |
| 6921 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6922 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6923 | { as_fn_set_status 77 |
| 6924 | as_fn_error "cannot compute sizeof (long long) |
| 6925 | See \`config.log' for more details." "$LINENO" 5; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6926 | else |
| 6927 | ac_cv_sizeof_long_long=0 |
| 6928 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6929 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6930 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6931 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6933 | $as_echo "$ac_cv_sizeof_long_long" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6934 | |
| 6935 | |
| 6936 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6937 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 6938 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6939 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 6940 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6941 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 6942 | fi |
| 6943 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6944 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6945 | $as_echo_n "checking for long double support... " >&6; } |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 6946 | have_long_double=no |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6947 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 6948 | /* end confdefs.h. */ |
| 6949 | |
| 6950 | int |
| 6951 | main () |
| 6952 | { |
| 6953 | long double x; x = (long double)0; |
| 6954 | ; |
| 6955 | return 0; |
| 6956 | } |
| 6957 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6958 | if ac_fn_c_try_compile "$LINENO"; then : |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 6959 | |
| 6960 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6961 | $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 6962 | |
| 6963 | have_long_double=yes |
| 6964 | |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 6965 | fi |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 6966 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_long_double" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6968 | $as_echo "$have_long_double" >&6; } |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 6969 | if test "$have_long_double" = yes ; then |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 6970 | # The cast to long int works around a bug in the HP C Compiler |
| 6971 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6972 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6973 | # This bug is HP SR number 8606223364. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6974 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6975 | $as_echo_n "checking size of long double... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6976 | if test "${ac_cv_sizeof_long_double+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6977 | $as_echo_n "(cached) " >&6 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 6978 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6979 | 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] | 6980 | |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 6981 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6982 | if test "$ac_cv_type_long_double" = yes; then |
| 6983 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6984 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6985 | { as_fn_set_status 77 |
| 6986 | as_fn_error "cannot compute sizeof (long double) |
| 6987 | See \`config.log' for more details." "$LINENO" 5; }; } |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 6988 | else |
| 6989 | ac_cv_sizeof_long_double=0 |
| 6990 | fi |
| 6991 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6992 | |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 6993 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 6994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 6995 | $as_echo "$ac_cv_sizeof_long_double" >&6; } |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 6996 | |
| 6997 | |
| 6998 | |
| 6999 | cat >>confdefs.h <<_ACEOF |
| 7000 | #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double |
| 7001 | _ACEOF |
| 7002 | |
| 7003 | |
| 7004 | fi |
| 7005 | |
| 7006 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7007 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Bool support" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7008 | $as_echo_n "checking for _Bool support... " >&6; } |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 7009 | have_c99_bool=no |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7010 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 7011 | /* end confdefs.h. */ |
| 7012 | |
| 7013 | int |
| 7014 | main () |
| 7015 | { |
| 7016 | _Bool x; x = (_Bool)0; |
| 7017 | ; |
| 7018 | return 0; |
| 7019 | } |
| 7020 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7021 | if ac_fn_c_try_compile "$LINENO"; then : |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 7022 | |
| 7023 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7024 | $as_echo "#define HAVE_C99_BOOL 1" >>confdefs.h |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 7025 | |
| 7026 | have_c99_bool=yes |
| 7027 | |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 7028 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7029 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_c99_bool" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7031 | $as_echo "$have_c99_bool" >&6; } |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 7032 | if test "$have_c99_bool" = yes ; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7033 | # The cast to long int works around a bug in the HP C Compiler |
| 7034 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7035 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7036 | # This bug is HP SR number 8606223364. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7037 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of _Bool" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7038 | $as_echo_n "checking size of _Bool... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7039 | if test "${ac_cv_sizeof__Bool+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7040 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 7041 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7042 | 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] | 7043 | |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 7044 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7045 | if test "$ac_cv_type__Bool" = yes; then |
| 7046 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7047 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7048 | { as_fn_set_status 77 |
| 7049 | as_fn_error "cannot compute sizeof (_Bool) |
| 7050 | See \`config.log' for more details." "$LINENO" 5; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7051 | else |
| 7052 | ac_cv_sizeof__Bool=0 |
| 7053 | fi |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 7054 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7055 | |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 7056 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof__Bool" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7058 | $as_echo "$ac_cv_sizeof__Bool" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7059 | |
| 7060 | |
| 7061 | |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 7062 | cat >>confdefs.h <<_ACEOF |
| 7063 | #define SIZEOF__BOOL $ac_cv_sizeof__Bool |
| 7064 | _ACEOF |
| 7065 | |
| 7066 | |
| 7067 | fi |
| 7068 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7069 | ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#ifdef HAVE_STDINT_H |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7070 | #include <stdint.h> |
| 7071 | #endif |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7072 | " |
| 7073 | if test "x$ac_cv_type_uintptr_t" = x""yes; then : |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 7074 | |
| 7075 | cat >>confdefs.h <<_ACEOF |
| 7076 | #define HAVE_UINTPTR_T 1 |
| 7077 | _ACEOF |
| 7078 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7079 | # The cast to long int works around a bug in the HP C Compiler |
| 7080 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7081 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7082 | # This bug is HP SR number 8606223364. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7083 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uintptr_t" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7084 | $as_echo_n "checking size of uintptr_t... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7085 | if test "${ac_cv_sizeof_uintptr_t+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7086 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7087 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7088 | 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] | 7089 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7090 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7091 | if test "$ac_cv_type_uintptr_t" = yes; then |
| 7092 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7093 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7094 | { as_fn_set_status 77 |
| 7095 | as_fn_error "cannot compute sizeof (uintptr_t) |
| 7096 | See \`config.log' for more details." "$LINENO" 5; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7097 | else |
| 7098 | ac_cv_sizeof_uintptr_t=0 |
| 7099 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7100 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7101 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7102 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uintptr_t" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7104 | $as_echo "$ac_cv_sizeof_uintptr_t" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7105 | |
| 7106 | |
| 7107 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7108 | cat >>confdefs.h <<_ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 7109 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7110 | _ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 7111 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7112 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 7113 | fi |
| 7114 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 7115 | |
| 7116 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7117 | # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7118 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7119 | $as_echo_n "checking size of off_t... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7120 | if test "${ac_cv_sizeof_off_t+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7121 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7122 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7123 | if test "$cross_compiling" = yes; then : |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 7124 | ac_cv_sizeof_off_t=4 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7125 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7126 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7127 | /* end confdefs.h. */ |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7128 | #include <stdio.h> |
| 7129 | #include <sys/types.h> |
| 7130 | main() |
| 7131 | { |
| 7132 | FILE *f=fopen("conftestval", "w"); |
| 7133 | if (!f) exit(1); |
| 7134 | fprintf(f, "%d\n", sizeof(off_t)); |
| 7135 | exit(0); |
| 7136 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7137 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7138 | if ac_fn_c_try_run "$LINENO"; then : |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7139 | ac_cv_sizeof_off_t=`cat conftestval` |
| 7140 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7141 | ac_cv_sizeof_off_t=0 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7142 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7143 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7144 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7145 | fi |
| 7146 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7147 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7148 | fi |
| 7149 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7151 | $as_echo "$ac_cv_sizeof_off_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7152 | |
| 7153 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7154 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7155 | _ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7156 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7157 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7158 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable large file support" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7159 | $as_echo_n "checking whether to enable large file support... " >&6; } |
Mark Dickinson | b87f0d0 | 2009-12-31 21:25:02 +0000 | [diff] [blame] | 7160 | if test "$have_long_long" = yes |
| 7161 | then |
| 7162 | 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] | 7163 | "$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] | 7164 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7165 | $as_echo "#define HAVE_LARGEFILE_SUPPORT 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7166 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7168 | $as_echo "yes" >&6; } |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7169 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7171 | $as_echo "no" >&6; } |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7172 | fi |
Mark Dickinson | b87f0d0 | 2009-12-31 21:25:02 +0000 | [diff] [blame] | 7173 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7175 | $as_echo "no" >&6; } |
Mark Dickinson | b87f0d0 | 2009-12-31 21:25:02 +0000 | [diff] [blame] | 7176 | fi |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7177 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7178 | # AC_CHECK_SIZEOF() doesn't include <time.h>. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7179 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7180 | $as_echo_n "checking size of time_t... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7181 | if test "${ac_cv_sizeof_time_t+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7182 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7183 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7184 | if test "$cross_compiling" = yes; then : |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 7185 | ac_cv_sizeof_time_t=4 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7186 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7187 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7188 | /* end confdefs.h. */ |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7189 | #include <stdio.h> |
| 7190 | #include <time.h> |
| 7191 | main() |
| 7192 | { |
| 7193 | FILE *f=fopen("conftestval", "w"); |
| 7194 | if (!f) exit(1); |
| 7195 | fprintf(f, "%d\n", sizeof(time_t)); |
| 7196 | exit(0); |
| 7197 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7198 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7199 | if ac_fn_c_try_run "$LINENO"; then : |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7200 | ac_cv_sizeof_time_t=`cat conftestval` |
| 7201 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7202 | ac_cv_sizeof_time_t=0 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7203 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7204 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7205 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7206 | fi |
| 7207 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7208 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7209 | fi |
| 7210 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7212 | $as_echo "$ac_cv_sizeof_time_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7213 | |
| 7214 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7215 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7216 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7217 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7218 | |
| 7219 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7220 | # if have pthread_t then define SIZEOF_PTHREAD_T |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 7221 | ac_save_cc="$CC" |
| 7222 | if test "$ac_cv_kpthread" = "yes" |
| 7223 | then CC="$CC -Kpthread" |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 7224 | elif test "$ac_cv_kthread" = "yes" |
| 7225 | then CC="$CC -Kthread" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 7226 | elif test "$ac_cv_pthread" = "yes" |
| 7227 | then CC="$CC -pthread" |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 7228 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7229 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_t" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7230 | $as_echo_n "checking for pthread_t... " >&6; } |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7231 | have_pthread_t=no |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7232 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7233 | /* end confdefs.h. */ |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7234 | #include <pthread.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7235 | int |
| 7236 | main () |
| 7237 | { |
Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 7238 | pthread_t x; x = *(pthread_t*)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7239 | ; |
| 7240 | return 0; |
| 7241 | } |
| 7242 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7243 | if ac_fn_c_try_compile "$LINENO"; then : |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7244 | have_pthread_t=yes |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7245 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7246 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_t" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7248 | $as_echo "$have_pthread_t" >&6; } |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7249 | if test "$have_pthread_t" = yes ; then |
| 7250 | # AC_CHECK_SIZEOF() doesn't include <pthread.h>. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7251 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7252 | $as_echo_n "checking size of pthread_t... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7253 | if test "${ac_cv_sizeof_pthread_t+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7254 | $as_echo_n "(cached) " >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7255 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7256 | if test "$cross_compiling" = yes; then : |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 7257 | ac_cv_sizeof_pthread_t=4 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7258 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7259 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7260 | /* end confdefs.h. */ |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7261 | #include <stdio.h> |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 7262 | #include <pthread.h> |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7263 | main() |
| 7264 | { |
| 7265 | FILE *f=fopen("conftestval", "w"); |
| 7266 | if (!f) exit(1); |
| 7267 | fprintf(f, "%d\n", sizeof(pthread_t)); |
| 7268 | exit(0); |
| 7269 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7270 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7271 | if ac_fn_c_try_run "$LINENO"; then : |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7272 | ac_cv_sizeof_pthread_t=`cat conftestval` |
| 7273 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7274 | ac_cv_sizeof_pthread_t=0 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7275 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7276 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7277 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7278 | fi |
| 7279 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7280 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7281 | fi |
| 7282 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7284 | $as_echo "$ac_cv_sizeof_pthread_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7285 | |
| 7286 | cat >>confdefs.h <<_ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7287 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7288 | _ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7289 | |
| 7290 | fi |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 7291 | CC="$ac_save_cc" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7292 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7293 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7294 | |
Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 7295 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7296 | case $ac_sys_system/$ac_sys_release in |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 7297 | Darwin/[01567]\..*) |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 7298 | OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000" |
| 7299 | ;; |
| 7300 | Darwin/*) |
| 7301 | OTHER_LIBTOOL_OPT="" |
| 7302 | ;; |
| 7303 | esac |
| 7304 | |
| 7305 | |
Ronald Oussoren | d45ff2c | 2009-09-06 11:11:04 +0000 | [diff] [blame] | 7306 | ARCH_RUN_32BIT="" |
| 7307 | |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 7308 | case $ac_sys_system/$ac_sys_release in |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 7309 | Darwin/[01567]\..*) |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7310 | LIBTOOL_CRUFT="-framework System -lcc_dynamic" |
| 7311 | if test "${enable_universalsdk}"; then |
| 7312 | : |
| 7313 | else |
Ronald Oussoren | 175a884 | 2010-02-11 13:40:06 +0000 | [diff] [blame] | 7314 | LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `/usr/bin/arch`" |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7315 | fi |
Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 7316 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 7317 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 7318 | Darwin/*) |
Ronald Oussoren | 652f4de | 2010-02-07 11:54:03 +0000 | [diff] [blame] | 7319 | gcc_version=`gcc -dumpversion` |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 7320 | if test ${gcc_version} '<' 4.0 |
| 7321 | then |
| 7322 | LIBTOOL_CRUFT="-lcc_dynamic" |
| 7323 | else |
| 7324 | LIBTOOL_CRUFT="" |
| 7325 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7326 | if test "$cross_compiling" = yes; then : |
Ronald Oussoren | 856624d | 2009-09-08 07:13:53 +0000 | [diff] [blame] | 7327 | ac_osx_32bit=yes |
Ronald Oussoren | d45ff2c | 2009-09-06 11:11:04 +0000 | [diff] [blame] | 7328 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7329 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Ronald Oussoren | d45ff2c | 2009-09-06 11:11:04 +0000 | [diff] [blame] | 7330 | /* end confdefs.h. */ |
Ronald Oussoren | 856624d | 2009-09-08 07:13:53 +0000 | [diff] [blame] | 7331 | |
Ronald Oussoren | d45ff2c | 2009-09-06 11:11:04 +0000 | [diff] [blame] | 7332 | #include <unistd.h> |
| 7333 | int main(int argc, char*argv[]) |
| 7334 | { |
| 7335 | if (sizeof(long) == 4) { |
| 7336 | return 0; |
| 7337 | } else { |
| 7338 | return 1; |
| 7339 | } |
Ronald Oussoren | 856624d | 2009-09-08 07:13:53 +0000 | [diff] [blame] | 7340 | } |
| 7341 | |
Ronald Oussoren | d45ff2c | 2009-09-06 11:11:04 +0000 | [diff] [blame] | 7342 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7343 | if ac_fn_c_try_run "$LINENO"; then : |
Ronald Oussoren | d45ff2c | 2009-09-06 11:11:04 +0000 | [diff] [blame] | 7344 | ac_osx_32bit=yes |
| 7345 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7346 | ac_osx_32bit=no |
Ronald Oussoren | d45ff2c | 2009-09-06 11:11:04 +0000 | [diff] [blame] | 7347 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7348 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7349 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Ronald Oussoren | d45ff2c | 2009-09-06 11:11:04 +0000 | [diff] [blame] | 7350 | fi |
| 7351 | |
| 7352 | |
Ronald Oussoren | d45ff2c | 2009-09-06 11:11:04 +0000 | [diff] [blame] | 7353 | if test "${ac_osx_32bit}" = "yes"; then |
Ronald Oussoren | 175a884 | 2010-02-11 13:40:06 +0000 | [diff] [blame] | 7354 | case `/usr/bin/arch` in |
Ronald Oussoren | d45ff2c | 2009-09-06 11:11:04 +0000 | [diff] [blame] | 7355 | i386) |
| 7356 | MACOSX_DEFAULT_ARCH="i386" |
| 7357 | ;; |
| 7358 | ppc) |
| 7359 | MACOSX_DEFAULT_ARCH="ppc" |
| 7360 | ;; |
| 7361 | *) |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7362 | as_fn_error "Unexpected output of 'arch' on OSX" "$LINENO" 5 |
Ronald Oussoren | d45ff2c | 2009-09-06 11:11:04 +0000 | [diff] [blame] | 7363 | ;; |
| 7364 | esac |
| 7365 | else |
Ronald Oussoren | 175a884 | 2010-02-11 13:40:06 +0000 | [diff] [blame] | 7366 | case `/usr/bin/arch` in |
Ronald Oussoren | d45ff2c | 2009-09-06 11:11:04 +0000 | [diff] [blame] | 7367 | i386) |
| 7368 | MACOSX_DEFAULT_ARCH="x86_64" |
| 7369 | ;; |
| 7370 | ppc) |
| 7371 | MACOSX_DEFAULT_ARCH="ppc64" |
| 7372 | ;; |
| 7373 | *) |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7374 | as_fn_error "Unexpected output of 'arch' on OSX" "$LINENO" 5 |
Ronald Oussoren | d45ff2c | 2009-09-06 11:11:04 +0000 | [diff] [blame] | 7375 | ;; |
| 7376 | esac |
| 7377 | |
| 7378 | #ARCH_RUN_32BIT="true" |
| 7379 | fi |
| 7380 | |
| 7381 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}" |
Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 7382 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7383 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7384 | esac |
| 7385 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7386 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-framework" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7387 | $as_echo_n "checking for --enable-framework... " >&6; } |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7388 | if test "$enable_framework" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7389 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 7390 | BASECFLAGS="$BASECFLAGS -fno-common -dynamic" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7391 | # -F. is needed to allow linking to the framework while |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7392 | # in the build location. |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7393 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7394 | $as_echo "#define WITH_NEXT_FRAMEWORK 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7395 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7397 | $as_echo "yes" >&6; } |
Ronald Oussoren | 99aab65 | 2009-06-08 21:22:57 +0000 | [diff] [blame] | 7398 | if test $enable_shared = "yes" |
| 7399 | then |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7400 | 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] | 7401 | fi |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7402 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7404 | $as_echo "no" >&6; } |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7405 | fi |
| 7406 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7407 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dyld" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7408 | $as_echo_n "checking for dyld... " >&6; } |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 7409 | case $ac_sys_system/$ac_sys_release in |
| 7410 | Darwin/*) |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7411 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7412 | $as_echo "#define WITH_DYLD 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7413 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: always on for Darwin" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7415 | $as_echo "always on for Darwin" >&6; } |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 7416 | ;; |
| 7417 | *) |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7419 | $as_echo "no" >&6; } |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7420 | ;; |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 7421 | esac |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7422 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7423 | # Set info about shared libraries. |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7424 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7425 | |
| 7426 | |
| 7427 | |
| 7428 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7429 | # SO is the extension of shared libraries `(including the dot!) |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 7430 | # -- usually .so, .sl on HP-UX, .dll on Cygwin |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7431 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking SO" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7432 | $as_echo_n "checking SO... " >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7433 | if test -z "$SO" |
| 7434 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7435 | case $ac_sys_system in |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7436 | hp*|HP*) |
| 7437 | case `uname -m` in |
| 7438 | ia64) SO=.so;; |
| 7439 | *) SO=.sl;; |
| 7440 | esac |
| 7441 | ;; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 7442 | CYGWIN*) SO=.dll;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 7443 | *) SO=.so;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7444 | esac |
Martin v. Löwis | 368de8f | 2003-06-14 14:46:38 +0000 | [diff] [blame] | 7445 | else |
| 7446 | # this might also be a termcap variable, see #610332 |
| 7447 | echo |
| 7448 | echo '=====================================================================' |
| 7449 | echo '+ +' |
| 7450 | echo '+ WARNING: You have set SO in your environment. +' |
| 7451 | echo '+ Do you really mean to change the extension for shared libraries? +' |
| 7452 | echo '+ Continuing in 10 seconds to let you to ponder. +' |
| 7453 | echo '+ +' |
| 7454 | echo '=====================================================================' |
| 7455 | sleep 10 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7456 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7457 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SO" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7458 | $as_echo "$SO" >&6; } |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7459 | |
Georg Brandl | b1441c7 | 2009-01-03 22:33:39 +0000 | [diff] [blame] | 7460 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7461 | cat >>confdefs.h <<_ACEOF |
| 7462 | #define SHLIB_EXT "$SO" |
| 7463 | _ACEOF |
| 7464 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7465 | # LDSHARED is the ld *command* used to create shared library |
Martin v. Löwis | 12af048 | 2004-01-31 12:34:17 +0000 | [diff] [blame] | 7466 | # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7467 | # (Shared libraries in this instance are shared modules to be loaded into |
| 7468 | # Python, as opposed to building Python itself as a shared library.) |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7469 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDSHARED" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7470 | $as_echo_n "checking LDSHARED... " >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7471 | if test -z "$LDSHARED" |
| 7472 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7473 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 7474 | AIX*) |
| 7475 | BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 7476 | LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 7477 | ;; |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 7478 | IRIX/5*) LDSHARED="ld -shared";; |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 7479 | IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7480 | SunOS/5*) |
Greg Ward | 57c9a663 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 7481 | if test "$GCC" = "yes" |
Neil Schemenauer | 8ba9445 | 2001-02-19 18:18:48 +0000 | [diff] [blame] | 7482 | then LDSHARED='$(CC) -shared' |
Martin v. Löwis | aa5afe1 | 2002-10-07 06:21:41 +0000 | [diff] [blame] | 7483 | else LDSHARED='$(CC) -G'; |
Greg Ward | 57c9a663 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 7484 | fi ;; |
Thomas Heller | f44b9a1 | 2008-04-04 10:18:23 +0000 | [diff] [blame] | 7485 | hp*|HP*) |
| 7486 | if test "$GCC" = "yes" |
| 7487 | then LDSHARED='$(CC) -shared' |
| 7488 | else LDSHARED='ld -b'; |
| 7489 | fi ;; |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 7490 | OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";; |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 7491 | Darwin/1.3*) |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 7492 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 7493 | if test "$enable_framework" ; then |
| 7494 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 7495 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 7496 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 7497 | else |
| 7498 | # No framework. Ignore undefined symbols, assuming they come from Python |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 7499 | LDSHARED="$LDSHARED -undefined suppress" |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 7500 | fi ;; |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 7501 | Darwin/1.4*|Darwin/5.*|Darwin/6.*) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7502 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 7503 | if test "$enable_framework" ; then |
| 7504 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 7505 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 7506 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7507 | else |
Michael W. Hudson | 594bc80 | 2002-03-07 09:59:15 +0000 | [diff] [blame] | 7508 | # No framework, use the Python app as bundle-loader |
| 7509 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
Jack Jansen | c28fc37 | 2003-02-25 13:14:43 +0000 | [diff] [blame] | 7510 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7511 | fi ;; |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 7512 | Darwin/*) |
| 7513 | # Use -undefined dynamic_lookup whenever possible (10.3 and later). |
| 7514 | # This allows an extension to be used in any Python |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 7515 | |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 7516 | if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2 |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 7517 | then |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7518 | if test "${enable_universalsdk}"; then |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 7519 | LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}" |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7520 | fi |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 7521 | LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup' |
| 7522 | BLDSHARED="$LDSHARED" |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 7523 | else |
| 7524 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 7525 | if test "$enable_framework" ; then |
| 7526 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 7527 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 7528 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 7529 | else |
| 7530 | # No framework, use the Python app as bundle-loader |
| 7531 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
| 7532 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
| 7533 | fi |
| 7534 | fi |
| 7535 | ;; |
Benjamin Peterson | de9c869 | 2008-07-01 18:23:09 +0000 | [diff] [blame] | 7536 | Linux*|GNU*|QNX*) LDSHARED='$(CC) -shared';; |
Guido van Rossum | 458e7fa | 1999-09-17 15:40:40 +0000 | [diff] [blame] | 7537 | BSD/OS*/4*) LDSHARED="gcc -shared";; |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 7538 | FreeBSD*) |
Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 7539 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 7540 | then |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7541 | LDSHARED='$(CC) -shared ${LDFLAGS}' |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 7542 | else |
| 7543 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 7544 | fi;; |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 7545 | OpenBSD*) |
| 7546 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 7547 | then |
| 7548 | LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}' |
| 7549 | else |
| 7550 | case `uname -r` in |
| 7551 | [01].* | 2.[0-7] | 2.[0-7].*) |
| 7552 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 7553 | ;; |
| 7554 | *) |
| 7555 | LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}' |
| 7556 | ;; |
| 7557 | esac |
| 7558 | fi;; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 7559 | NetBSD*|DragonFly*) LDSHARED="cc -shared ${LDFLAGS}";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 7560 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 7561 | if test "$GCC" = "yes" |
Martin v. Löwis | 79f3c53 | 2002-12-11 12:51:58 +0000 | [diff] [blame] | 7562 | then LDSHARED='$(CC) -shared' |
| 7563 | else LDSHARED='$(CC) -G' |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 7564 | fi;; |
Martin v. Löwis | 79f3c53 | 2002-12-11 12:51:58 +0000 | [diff] [blame] | 7565 | SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 7566 | CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 7567 | atheos*) LDSHARED="gcc -shared";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7568 | *) LDSHARED="ld";; |
| 7569 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7570 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDSHARED" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7572 | $as_echo "$LDSHARED" >&6; } |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 7573 | BLDSHARED=${BLDSHARED-$LDSHARED} |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7574 | # 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] | 7575 | # library (module) -- this is only needed for a few systems |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7576 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CCSHARED" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7577 | $as_echo_n "checking CCSHARED... " >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7578 | if test -z "$CCSHARED" |
| 7579 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 7580 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 7581 | SunOS*) if test "$GCC" = yes; |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 7582 | then CCSHARED="-fPIC"; |
| 7583 | elif test `uname -p` = sparc; |
| 7584 | then CCSHARED="-xcode=pic32"; |
| 7585 | else CCSHARED="-Kpic"; |
| 7586 | fi;; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 7587 | hp*|HP*) if test "$GCC" = yes; |
Martin v. Löwis | 703ad70 | 2001-09-05 08:36:52 +0000 | [diff] [blame] | 7588 | then CCSHARED="-fPIC"; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 7589 | else CCSHARED="+z"; |
| 7590 | fi;; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 7591 | Linux*|GNU*) CCSHARED="-fPIC";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 7592 | BSD/OS*/4*) CCSHARED="-fpic";; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 7593 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 7594 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 7595 | if test "$GCC" = "yes" |
| 7596 | then CCSHARED="-fPIC" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 7597 | else CCSHARED="-KPIC" |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 7598 | fi;; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 7599 | SCO_SV*) |
| 7600 | if test "$GCC" = "yes" |
| 7601 | then CCSHARED="-fPIC" |
| 7602 | else CCSHARED="-Kpic -belf" |
| 7603 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 7604 | IRIX*/6*) case $CC in |
| 7605 | *gcc*) CCSHARED="-shared";; |
Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 7606 | *) CCSHARED="";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 7607 | esac;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 7608 | atheos*) CCSHARED="-fPIC";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7609 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7610 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCSHARED" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7612 | $as_echo "$CCSHARED" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7613 | # LINKFORSHARED are the flags passed to the $(CC) command that links |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7614 | # the python executable -- this is only needed for a few systems |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7615 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKFORSHARED" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7616 | $as_echo_n "checking LINKFORSHARED... " >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7617 | if test -z "$LINKFORSHARED" |
| 7618 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 7619 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 7620 | AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7621 | hp*|HP*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 7622 | LINKFORSHARED="-Wl,-E -Wl,+s";; |
| 7623 | # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 7624 | BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 7625 | Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7626 | # -u libsys_s pulls in all symbols in libsys |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7627 | Darwin/*) |
Benjamin Peterson | 9c80cac | 2009-05-23 16:34:23 +0000 | [diff] [blame] | 7628 | LINKFORSHARED="$extra_undefs -framework CoreFoundation" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7629 | if test "$enable_framework" |
| 7630 | then |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 7631 | LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7632 | fi |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 7633 | LINKFORSHARED="$LINKFORSHARED";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 7634 | OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 7635 | SCO_SV*) LINKFORSHARED="-Wl,-Bexport";; |
Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 7636 | ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 7637 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 7638 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 7639 | then |
| 7640 | LINKFORSHARED="-Wl,--export-dynamic" |
| 7641 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 7642 | SunOS/5*) case $CC in |
| 7643 | *gcc*) |
Martin v. Löwis | a454857 | 2002-04-18 14:51:36 +0000 | [diff] [blame] | 7644 | if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null |
Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 7645 | then |
| 7646 | LINKFORSHARED="-Xlinker --export-dynamic" |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 7647 | fi;; |
| 7648 | esac;; |
Jason Tishler | 3076559 | 2003-09-04 11:04:06 +0000 | [diff] [blame] | 7649 | CYGWIN*) |
| 7650 | if test $enable_shared = "no" |
| 7651 | then |
| 7652 | LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)' |
| 7653 | fi;; |
Benjamin Peterson | de9c869 | 2008-07-01 18:23:09 +0000 | [diff] [blame] | 7654 | QNX*) |
| 7655 | # -Wl,-E causes the symbols to be added to the dynamic |
| 7656 | # symbol table so that they can be found when a module |
| 7657 | # is loaded. -N 2048K causes the stack size to be set |
| 7658 | # to 2048 kilobytes so that the stack doesn't overflow |
| 7659 | # when running test_compile.py. |
| 7660 | LINKFORSHARED='-Wl,-E -N 2048K';; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7661 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7662 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKFORSHARED" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7664 | $as_echo "$LINKFORSHARED" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7665 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7666 | |
Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 7667 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7668 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGSFORSHARED" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7669 | $as_echo_n "checking CFLAGSFORSHARED... " >&6; } |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 7670 | if test ! "$LIBRARY" = "$LDLIBRARY" |
| 7671 | then |
Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 +0000 | [diff] [blame] | 7672 | case $ac_sys_system in |
| 7673 | CYGWIN*) |
| 7674 | # Cygwin needs CCSHARED when building extension DLLs |
| 7675 | # but not when building the interpreter DLL. |
| 7676 | CFLAGSFORSHARED='';; |
| 7677 | *) |
| 7678 | CFLAGSFORSHARED='$(CCSHARED)' |
| 7679 | esac |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 7680 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLAGSFORSHARED" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7682 | $as_echo "$CFLAGSFORSHARED" >&6; } |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 7683 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 7684 | # SHLIBS are libraries (except -lc and -lm) to link to the python shared |
| 7685 | # library (with --enable-shared). |
| 7686 | # 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] | 7687 | # symbols, this must be set to $(LIBS) (expanded by make). We do this even |
| 7688 | # if it is not required, since it creates a dependency of the shared library |
| 7689 | # to LIBS. This, in turn, means that applications linking the shared libpython |
| 7690 | # don't need to link LIBS explicitly. The default should be only changed |
| 7691 | # on systems where this approach causes problems. |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 7692 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7693 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking SHLIBS" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7694 | $as_echo_n "checking SHLIBS... " >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 7695 | case "$ac_sys_system" in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 7696 | *) |
Martin v. Löwis | d6359c5 | 2002-08-04 12:38:50 +0000 | [diff] [blame] | 7697 | SHLIBS='$(LIBS)';; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 7698 | esac |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIBS" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7700 | $as_echo "$SHLIBS" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 7701 | |
| 7702 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7703 | # checks for libraries |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7704 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7705 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7706 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7707 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7708 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7709 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7710 | LIBS="-ldl $LIBS" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7711 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7712 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7713 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7714 | /* Override any GCC internal prototype to avoid an error. |
| 7715 | Use char because int might match the return type of a GCC |
| 7716 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7717 | #ifdef __cplusplus |
| 7718 | extern "C" |
| 7719 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7720 | char dlopen (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7721 | int |
| 7722 | main () |
| 7723 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7724 | return dlopen (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7725 | ; |
| 7726 | return 0; |
| 7727 | } |
| 7728 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7729 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7730 | ac_cv_lib_dl_dlopen=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7731 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7732 | ac_cv_lib_dl_dlopen=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7733 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7734 | rm -f core conftest.err conftest.$ac_objext \ |
| 7735 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7736 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7737 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7739 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7740 | 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] | 7741 | cat >>confdefs.h <<_ACEOF |
| 7742 | #define HAVE_LIBDL 1 |
| 7743 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7744 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7745 | LIBS="-ldl $LIBS" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7746 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7747 | fi |
| 7748 | # Dynamic linking for SunOS/Solaris and SYSV |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7749 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7750 | $as_echo_n "checking for shl_load in -ldld... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7751 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7752 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7753 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7754 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7755 | LIBS="-ldld $LIBS" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7756 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7757 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7758 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7759 | /* Override any GCC internal prototype to avoid an error. |
| 7760 | Use char because int might match the return type of a GCC |
| 7761 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7762 | #ifdef __cplusplus |
| 7763 | extern "C" |
| 7764 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7765 | char shl_load (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7766 | int |
| 7767 | main () |
| 7768 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7769 | return shl_load (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7770 | ; |
| 7771 | return 0; |
| 7772 | } |
| 7773 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7774 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7775 | ac_cv_lib_dld_shl_load=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7776 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7777 | ac_cv_lib_dld_shl_load=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7778 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7779 | rm -f core conftest.err conftest.$ac_objext \ |
| 7780 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7781 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7782 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7784 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7785 | 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] | 7786 | cat >>confdefs.h <<_ACEOF |
| 7787 | #define HAVE_LIBDLD 1 |
| 7788 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7789 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7790 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7791 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7792 | fi |
| 7793 | # Dynamic linking for HP-UX |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 7794 | |
Georg Brandl | b1441c7 | 2009-01-03 22:33:39 +0000 | [diff] [blame] | 7795 | # only check for sem_init if thread support is requested |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 7796 | if test "$with_threads" = "yes" -o -z "$with_threads"; then |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7797 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7798 | $as_echo_n "checking for library containing sem_init... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7799 | if test "${ac_cv_search_sem_init+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7800 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 7801 | else |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 7802 | ac_func_search_save_LIBS=$LIBS |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7803 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7804 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7805 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7806 | /* Override any GCC internal prototype to avoid an error. |
| 7807 | Use char because int might match the return type of a GCC |
| 7808 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7809 | #ifdef __cplusplus |
| 7810 | extern "C" |
| 7811 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7812 | char sem_init (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7813 | int |
| 7814 | main () |
| 7815 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7816 | return sem_init (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7817 | ; |
| 7818 | return 0; |
| 7819 | } |
| 7820 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7821 | for ac_lib in '' pthread rt posix4; do |
| 7822 | if test -z "$ac_lib"; then |
| 7823 | ac_res="none required" |
| 7824 | else |
| 7825 | ac_res=-l$ac_lib |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 7826 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7827 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7828 | if ac_fn_c_try_link "$LINENO"; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7829 | ac_cv_search_sem_init=$ac_res |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7830 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7831 | rm -f core conftest.err conftest.$ac_objext \ |
| 7832 | conftest$ac_exeext |
| 7833 | if test "${ac_cv_search_sem_init+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7834 | break |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 7835 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7836 | done |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7837 | if test "${ac_cv_search_sem_init+set}" = set; then : |
| 7838 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7839 | else |
| 7840 | ac_cv_search_sem_init=no |
| 7841 | fi |
| 7842 | rm conftest.$ac_ext |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 7843 | LIBS=$ac_func_search_save_LIBS |
| 7844 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7846 | $as_echo "$ac_cv_search_sem_init" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7847 | ac_res=$ac_cv_search_sem_init |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7848 | if test "$ac_res" != no; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7849 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 7850 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 7851 | fi |
Martin v. Löwis | d3545ec | 2003-05-03 11:25:43 +0000 | [diff] [blame] | 7852 | # 'Real Time' functions on Solaris |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 7853 | # posix4 on Solaris 2.6 |
| 7854 | # pthread (first!) on Linux |
| 7855 | fi |
| 7856 | |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 7857 | # check if we need libintl for locale functions |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7858 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for textdomain in -lintl" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7859 | $as_echo_n "checking for textdomain in -lintl... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7860 | if test "${ac_cv_lib_intl_textdomain+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7861 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 7862 | else |
| 7863 | ac_check_lib_save_LIBS=$LIBS |
| 7864 | LIBS="-lintl $LIBS" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7865 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7866 | /* end confdefs.h. */ |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 7867 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7868 | /* Override any GCC internal prototype to avoid an error. |
| 7869 | Use char because int might match the return type of a GCC |
| 7870 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 7871 | #ifdef __cplusplus |
| 7872 | extern "C" |
| 7873 | #endif |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 7874 | char textdomain (); |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 7875 | int |
| 7876 | main () |
| 7877 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7878 | return textdomain (); |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 7879 | ; |
| 7880 | return 0; |
| 7881 | } |
| 7882 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7883 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 7884 | ac_cv_lib_intl_textdomain=yes |
| 7885 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7886 | ac_cv_lib_intl_textdomain=no |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 7887 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7888 | rm -f core conftest.err conftest.$ac_objext \ |
| 7889 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 7890 | LIBS=$ac_check_lib_save_LIBS |
| 7891 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_textdomain" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7893 | $as_echo "$ac_cv_lib_intl_textdomain" >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7894 | 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] | 7895 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7896 | $as_echo "#define WITH_LIBINTL 1" >>confdefs.h |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 7897 | |
Brett Cannon | c6d936e | 2009-06-07 20:09:53 +0000 | [diff] [blame] | 7898 | LIBS="-lintl $LIBS" |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 7899 | fi |
| 7900 | |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 7901 | |
| 7902 | # checks for system dependent C++ extensions support |
| 7903 | case "$ac_sys_system" in |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7904 | AIX*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for genuine AIX C++ extensions support" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7905 | $as_echo_n "checking for genuine AIX C++ extensions support... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7906 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7907 | /* end confdefs.h. */ |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 7908 | #include "/usr/lpp/xlC/include/load.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7909 | int |
| 7910 | main () |
| 7911 | { |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 7912 | loadAndInit("", 0, "") |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7913 | ; |
| 7914 | return 0; |
| 7915 | } |
| 7916 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7917 | if ac_fn_c_try_link "$LINENO"; then : |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 7918 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7919 | $as_echo "#define AIX_GENUINE_CPLUSPLUS 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7920 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7922 | $as_echo "yes" >&6; } |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 7923 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7925 | $as_echo "no" >&6; } |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 7926 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7927 | rm -f core conftest.err conftest.$ac_objext \ |
| 7928 | conftest$ac_exeext conftest.$ac_ext;; |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 7929 | *) ;; |
| 7930 | esac |
| 7931 | |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 7932 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7933 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_open in -lnsl" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7934 | $as_echo_n "checking for t_open in -lnsl... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7935 | if test "${ac_cv_lib_nsl_t_open+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7936 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 7937 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7938 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7939 | LIBS="-lnsl $LIBS" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7940 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7941 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7942 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7943 | /* Override any GCC internal prototype to avoid an error. |
| 7944 | Use char because int might match the return type of a GCC |
| 7945 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7946 | #ifdef __cplusplus |
| 7947 | extern "C" |
| 7948 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7949 | char t_open (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7950 | int |
| 7951 | main () |
| 7952 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7953 | return t_open (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7954 | ; |
| 7955 | return 0; |
| 7956 | } |
| 7957 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7958 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7959 | ac_cv_lib_nsl_t_open=yes |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 7960 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7961 | ac_cv_lib_nsl_t_open=no |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 7962 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7963 | rm -f core conftest.err conftest.$ac_objext \ |
| 7964 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7965 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 7966 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_t_open" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7968 | $as_echo "$ac_cv_lib_nsl_t_open" >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7969 | 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] | 7970 | LIBS="-lnsl $LIBS" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 7971 | fi |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 7972 | # SVR4 |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7973 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7974 | $as_echo_n "checking for socket in -lsocket... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7975 | if test "${ac_cv_lib_socket_socket+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 7976 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7977 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7978 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7979 | LIBS="-lsocket $LIBS $LIBS" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7980 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7981 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7982 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7983 | /* Override any GCC internal prototype to avoid an error. |
| 7984 | Use char because int might match the return type of a GCC |
| 7985 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7986 | #ifdef __cplusplus |
| 7987 | extern "C" |
| 7988 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7989 | char socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7990 | int |
| 7991 | main () |
| 7992 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7993 | return socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7994 | ; |
| 7995 | return 0; |
| 7996 | } |
| 7997 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 7998 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7999 | ac_cv_lib_socket_socket=yes |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8000 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8001 | ac_cv_lib_socket_socket=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8002 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8003 | rm -f core conftest.err conftest.$ac_objext \ |
| 8004 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8005 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8006 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8008 | $as_echo "$ac_cv_lib_socket_socket" >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8009 | if test "x$ac_cv_lib_socket_socket" = x""yes; then : |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8010 | LIBS="-lsocket $LIBS" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8011 | fi |
| 8012 | # SVR4 sockets |
Skip Montanaro | b9949db | 2004-01-17 04:04:13 +0000 | [diff] [blame] | 8013 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8014 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libs" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8015 | $as_echo_n "checking for --with-libs... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8016 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8017 | # Check whether --with-libs was given. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8018 | if test "${with_libs+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8019 | withval=$with_libs; |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8021 | $as_echo "$withval" >&6; } |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 8022 | LIBS="$withval $LIBS" |
| 8023 | |
| 8024 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8026 | $as_echo "no" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8027 | fi |
| 8028 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 8029 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 8030 | # Check for use of the system libffi library |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8031 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-ffi" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8032 | $as_echo_n "checking for --with-system-ffi... " >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 8033 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8034 | # Check whether --with-system_ffi was given. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8035 | if test "${with_system_ffi+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8036 | withval=$with_system_ffi; |
| 8037 | fi |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 8038 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 8039 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_ffi" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8041 | $as_echo "$with_system_ffi" >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 8042 | |
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 8043 | # Check for --with-dbmliborder |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8044 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dbmliborder" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8045 | $as_echo_n "checking for --with-dbmliborder... " >&6; } |
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 8046 | |
| 8047 | # Check whether --with-dbmliborder was given. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8048 | if test "${with_dbmliborder+set}" = set; then : |
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 8049 | withval=$with_dbmliborder; |
| 8050 | if test x$with_dbmliborder = xyes |
| 8051 | then |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8052 | as_fn_error "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5 |
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 8053 | else |
| 8054 | for db in `echo $with_dbmliborder | sed 's/:/ /g'`; do |
| 8055 | if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb |
| 8056 | then |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8057 | as_fn_error "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5 |
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 8058 | fi |
| 8059 | done |
| 8060 | fi |
| 8061 | fi |
| 8062 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8063 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_dbmliborder" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8064 | $as_echo "$with_dbmliborder" >&6; } |
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 8065 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 8066 | # Determine if signalmodule should be used. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 8067 | |
| 8068 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8069 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-signal-module" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8070 | $as_echo_n "checking for --with-signal-module... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8071 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8072 | # Check whether --with-signal-module was given. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8073 | if test "${with_signal_module+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8074 | withval=$with_signal_module; |
| 8075 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 8076 | |
| 8077 | |
| 8078 | if test -z "$with_signal_module" |
| 8079 | then with_signal_module="yes" |
| 8080 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8081 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_signal_module" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8082 | $as_echo "$with_signal_module" >&6; } |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 8083 | |
| 8084 | if test "${with_signal_module}" = "yes"; then |
| 8085 | USE_SIGNAL_MODULE="" |
| 8086 | SIGNAL_OBJS="" |
| 8087 | else |
| 8088 | USE_SIGNAL_MODULE="#" |
| 8089 | SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o" |
| 8090 | fi |
| 8091 | |
Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 8092 | # This is used to generate Setup.config |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 8093 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 8094 | USE_THREAD_MODULE="" |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 8095 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8096 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dec-threads" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8097 | $as_echo_n "checking for --with-dec-threads... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8098 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 8099 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8100 | # Check whether --with-dec-threads was given. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8101 | if test "${with_dec_threads+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8102 | withval=$with_dec_threads; |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8104 | $as_echo "$withval" >&6; } |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 8105 | LDLAST=-threads |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 8106 | if test "${with_thread+set}" != set; then |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 8107 | with_thread="$withval"; |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 8108 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 8109 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8111 | $as_echo "no" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8112 | fi |
| 8113 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8114 | |
| 8115 | # Templates for things AC_DEFINEd more than once. |
| 8116 | # For a single AC_DEFINE, no template is needed. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 8117 | |
| 8118 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8119 | |
| 8120 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8121 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-threads" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8122 | $as_echo_n "checking for --with-threads... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8123 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8124 | # Check whether --with-threads was given. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8125 | if test "${with_threads+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8126 | withval=$with_threads; |
| 8127 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 8128 | |
| 8129 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 8130 | # --with-thread is deprecated, but check for it anyway |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8131 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8132 | # Check whether --with-thread was given. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8133 | if test "${with_thread+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8134 | withval=$with_thread; with_threads=$with_thread |
| 8135 | fi |
| 8136 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 8137 | |
| 8138 | if test -z "$with_threads" |
| 8139 | then with_threads="yes" |
| 8140 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_threads" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8142 | $as_echo "$with_threads" >&6; } |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 8143 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8144 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 8145 | if test "$with_threads" = "no" |
| 8146 | then |
| 8147 | USE_THREAD_MODULE="#" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 8148 | elif test "$ac_cv_pthread_is_default" = yes |
| 8149 | then |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8150 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 8151 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 8152 | # Defining _REENTRANT on system with POSIX threads should not hurt. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8153 | $as_echo "#define _REENTRANT 1" >>confdefs.h |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 8154 | |
| 8155 | posix_threads=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8156 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8157 | elif test "$ac_cv_kpthread" = "yes" |
| 8158 | then |
| 8159 | CC="$CC -Kpthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 8160 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 8161 | CXX="$CXX -Kpthread" |
| 8162 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8163 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 8164 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 8165 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8166 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 8167 | elif test "$ac_cv_kthread" = "yes" |
| 8168 | then |
| 8169 | CC="$CC -Kthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 8170 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 8171 | CXX="$CXX -Kthread" |
| 8172 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8173 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 8174 | |
| 8175 | posix_threads=yes |
| 8176 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8177 | elif test "$ac_cv_pthread" = "yes" |
| 8178 | then |
| 8179 | CC="$CC -pthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 8180 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 8181 | CXX="$CXX -pthread" |
| 8182 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8183 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8184 | |
| 8185 | posix_threads=yes |
| 8186 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8187 | else |
| 8188 | if test ! -z "$with_threads" -a -d "$with_threads" |
| 8189 | then LDFLAGS="$LDFLAGS -L$with_threads" |
| 8190 | fi |
| 8191 | if test ! -z "$withval" -a -d "$withval" |
| 8192 | then LDFLAGS="$LDFLAGS -L$withval" |
| 8193 | fi |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8194 | |
| 8195 | # According to the POSIX spec, a pthreads implementation must |
Matthias Klose | a2542be | 2004-08-16 11:35:51 +0000 | [diff] [blame] | 8196 | # define _POSIX_THREADS in unistd.h. Some apparently don't |
| 8197 | # (e.g. gnu pth with pthread emulation) |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8198 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _POSIX_THREADS in unistd.h" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8199 | $as_echo_n "checking for _POSIX_THREADS in unistd.h... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8200 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8201 | /* end confdefs.h. */ |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 8202 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8203 | #include <unistd.h> |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 8204 | #ifdef _POSIX_THREADS |
| 8205 | yes |
| 8206 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8207 | |
| 8208 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8209 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8210 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8211 | unistd_defines_pthreads=yes |
| 8212 | else |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8213 | unistd_defines_pthreads=no |
| 8214 | fi |
Jesus Cea | 0f752ee | 2010-04-28 12:03:06 +0000 | [diff] [blame] | 8215 | rm -f conftest* |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8216 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8217 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unistd_defines_pthreads" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8218 | $as_echo "$unistd_defines_pthreads" >&6; } |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8219 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8220 | $as_echo "#define _REENTRANT 1" >>confdefs.h |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 8221 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8222 | ac_fn_c_check_header_mongrel "$LINENO" "cthreads.h" "ac_cv_header_cthreads_h" "$ac_includes_default" |
| 8223 | if test "x$ac_cv_header_cthreads_h" = x""yes; then : |
| 8224 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8225 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8226 | $as_echo "#define C_THREADS 1" >>confdefs.h |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 8227 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8228 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8229 | $as_echo "#define HURD_C_THREADS 1" >>confdefs.h |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8230 | |
| 8231 | LIBS="$LIBS -lthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8232 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8233 | else |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8234 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8235 | ac_fn_c_check_header_mongrel "$LINENO" "mach/cthreads.h" "ac_cv_header_mach_cthreads_h" "$ac_includes_default" |
| 8236 | if test "x$ac_cv_header_mach_cthreads_h" = x""yes; then : |
| 8237 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8238 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8239 | $as_echo "#define C_THREADS 1" >>confdefs.h |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8240 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8241 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8242 | $as_echo "#define MACH_C_THREADS 1" >>confdefs.h |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8243 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8244 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 8245 | else |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 8246 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8247 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pth" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8248 | $as_echo_n "checking for --with-pth... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8249 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8250 | # Check whether --with-pth was given. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8251 | if test "${with_pth+set}" = set; then : |
| 8252 | withval=$with_pth; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8253 | $as_echo "$withval" >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8254 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8255 | |
| 8256 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8257 | $as_echo "#define HAVE_PTH 1" >>confdefs.h |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 8258 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 8259 | LIBS="-lpth $LIBS" |
| 8260 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 8261 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8263 | $as_echo "no" >&6; } |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 8264 | |
| 8265 | # Just looking for pthread_create in libpthread is not enough: |
| 8266 | # on HP/UX, pthread.h renames pthread_create to a different symbol name. |
| 8267 | # So we really have to include pthread.h, and then link. |
| 8268 | _libs=$LIBS |
| 8269 | LIBS="$LIBS -lpthread" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8270 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8271 | $as_echo_n "checking for pthread_create in -lpthread... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8272 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8273 | /* end confdefs.h. */ |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 8274 | #include <pthread.h> |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 8275 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 8276 | void * start_routine (void *arg) { exit (0); } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8277 | int |
| 8278 | main () |
| 8279 | { |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 8280 | |
| 8281 | pthread_create (NULL, NULL, start_routine, NULL) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8282 | ; |
| 8283 | return 0; |
| 8284 | } |
| 8285 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8286 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8287 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8288 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8289 | $as_echo "yes" >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8290 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 8291 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8292 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8293 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 8294 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8295 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 8296 | LIBS=$_libs |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8297 | ac_fn_c_check_func "$LINENO" "pthread_detach" "ac_cv_func_pthread_detach" |
| 8298 | if test "x$ac_cv_func_pthread_detach" = x""yes; then : |
| 8299 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8300 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8301 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8302 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8303 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8304 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8305 | ac_fn_c_check_header_mongrel "$LINENO" "atheos/threads.h" "ac_cv_header_atheos_threads_h" "$ac_includes_default" |
| 8306 | if test "x$ac_cv_header_atheos_threads_h" = x""yes; then : |
| 8307 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 8308 | |
| 8309 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8310 | $as_echo "#define ATHEOS_THREADS 1" >>confdefs.h |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 8311 | |
| 8312 | THREADOBJ="Python/thread.o" |
| 8313 | else |
| 8314 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8315 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8316 | $as_echo_n "checking for pthread_create in -lpthreads... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8317 | if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8318 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8319 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8320 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8321 | LIBS="-lpthreads $LIBS" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8322 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8323 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8324 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8325 | /* Override any GCC internal prototype to avoid an error. |
| 8326 | Use char because int might match the return type of a GCC |
| 8327 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8328 | #ifdef __cplusplus |
| 8329 | extern "C" |
| 8330 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8331 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8332 | int |
| 8333 | main () |
| 8334 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8335 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8336 | ; |
| 8337 | return 0; |
| 8338 | } |
| 8339 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8340 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8341 | ac_cv_lib_pthreads_pthread_create=yes |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 8342 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8343 | ac_cv_lib_pthreads_pthread_create=no |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 8344 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8345 | rm -f core conftest.err conftest.$ac_objext \ |
| 8346 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8347 | LIBS=$ac_check_lib_save_LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 8348 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8350 | $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8351 | if test "x$ac_cv_lib_pthreads_pthread_create" = x""yes; then : |
| 8352 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 8353 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 8354 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8355 | LIBS="$LIBS -lpthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8356 | THREADOBJ="Python/thread.o" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 8357 | else |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 8358 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8359 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8360 | $as_echo_n "checking for pthread_create in -lc_r... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8361 | if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8362 | $as_echo_n "(cached) " >&6 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 8363 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8364 | ac_check_lib_save_LIBS=$LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 8365 | LIBS="-lc_r $LIBS" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8366 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8367 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8368 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8369 | /* Override any GCC internal prototype to avoid an error. |
| 8370 | Use char because int might match the return type of a GCC |
| 8371 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8372 | #ifdef __cplusplus |
| 8373 | extern "C" |
| 8374 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8375 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8376 | int |
| 8377 | main () |
| 8378 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8379 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8380 | ; |
| 8381 | return 0; |
| 8382 | } |
| 8383 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8384 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8385 | ac_cv_lib_c_r_pthread_create=yes |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 8386 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8387 | ac_cv_lib_c_r_pthread_create=no |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 8388 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8389 | rm -f core conftest.err conftest.$ac_objext \ |
| 8390 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8391 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 8392 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8393 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8394 | $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8395 | if test "x$ac_cv_lib_c_r_pthread_create" = x""yes; then : |
| 8396 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 8397 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 8398 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8399 | LIBS="$LIBS -lc_r" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8400 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 8401 | else |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 8402 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8403 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __pthread_create_system in -lpthread" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8404 | $as_echo_n "checking for __pthread_create_system in -lpthread... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8405 | if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8406 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 8407 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8408 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 8409 | LIBS="-lpthread $LIBS" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8410 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8411 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8412 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8413 | /* Override any GCC internal prototype to avoid an error. |
| 8414 | Use char because int might match the return type of a GCC |
| 8415 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8416 | #ifdef __cplusplus |
| 8417 | extern "C" |
| 8418 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8419 | char __pthread_create_system (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8420 | int |
| 8421 | main () |
| 8422 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8423 | return __pthread_create_system (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8424 | ; |
| 8425 | return 0; |
| 8426 | } |
| 8427 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8428 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8429 | ac_cv_lib_pthread___pthread_create_system=yes |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 8430 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8431 | ac_cv_lib_pthread___pthread_create_system=no |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 8432 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8433 | rm -f core conftest.err conftest.$ac_objext \ |
| 8434 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8435 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 8436 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_create_system" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8438 | $as_echo "$ac_cv_lib_pthread___pthread_create_system" >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8439 | if test "x$ac_cv_lib_pthread___pthread_create_system" = x""yes; then : |
| 8440 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 8441 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 8442 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8443 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8444 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 8445 | else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 8446 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8447 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lcma" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8448 | $as_echo_n "checking for pthread_create in -lcma... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8449 | if test "${ac_cv_lib_cma_pthread_create+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8450 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 8451 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8452 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 8453 | LIBS="-lcma $LIBS" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8454 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8455 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8456 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8457 | /* Override any GCC internal prototype to avoid an error. |
| 8458 | Use char because int might match the return type of a GCC |
| 8459 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8460 | #ifdef __cplusplus |
| 8461 | extern "C" |
| 8462 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8463 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8464 | int |
| 8465 | main () |
| 8466 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8467 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8468 | ; |
| 8469 | return 0; |
| 8470 | } |
| 8471 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8472 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8473 | ac_cv_lib_cma_pthread_create=yes |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 8474 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8475 | ac_cv_lib_cma_pthread_create=no |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 8476 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8477 | rm -f core conftest.err conftest.$ac_objext \ |
| 8478 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8479 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 8480 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8481 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cma_pthread_create" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8482 | $as_echo "$ac_cv_lib_cma_pthread_create" >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8483 | if test "x$ac_cv_lib_cma_pthread_create" = x""yes; then : |
| 8484 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 8485 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 8486 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8487 | LIBS="$LIBS -lcma" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8488 | THREADOBJ="Python/thread.o" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 8489 | else |
Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 8490 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8491 | USE_THREAD_MODULE="#" |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 8492 | fi |
| 8493 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8494 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 8495 | fi |
| 8496 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 8497 | fi |
| 8498 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 8499 | fi |
| 8500 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 8501 | fi |
| 8502 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 8503 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8504 | fi |
| 8505 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 8506 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8507 | rm -f core conftest.err conftest.$ac_objext \ |
| 8508 | conftest$ac_exeext conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8509 | fi |
| 8510 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8511 | fi |
| 8512 | |
| 8513 | |
| 8514 | fi |
| 8515 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8516 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8517 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8518 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usconfig in -lmpc" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8519 | $as_echo_n "checking for usconfig in -lmpc... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8520 | if test "${ac_cv_lib_mpc_usconfig+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8521 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8522 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8523 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8524 | LIBS="-lmpc $LIBS" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8525 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8526 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8527 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8528 | /* Override any GCC internal prototype to avoid an error. |
| 8529 | Use char because int might match the return type of a GCC |
| 8530 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8531 | #ifdef __cplusplus |
| 8532 | extern "C" |
| 8533 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8534 | char usconfig (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8535 | int |
| 8536 | main () |
| 8537 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8538 | return usconfig (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8539 | ; |
| 8540 | return 0; |
| 8541 | } |
| 8542 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8543 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8544 | ac_cv_lib_mpc_usconfig=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8545 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8546 | ac_cv_lib_mpc_usconfig=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8547 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8548 | rm -f core conftest.err conftest.$ac_objext \ |
| 8549 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8550 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8551 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8552 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpc_usconfig" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8553 | $as_echo "$ac_cv_lib_mpc_usconfig" >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8554 | if test "x$ac_cv_lib_mpc_usconfig" = x""yes; then : |
| 8555 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8556 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8557 | LIBS="$LIBS -lmpc" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8558 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8559 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8560 | fi |
| 8561 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 8562 | |
Neal Norwitz | a978ab0 | 2002-11-02 16:58:05 +0000 | [diff] [blame] | 8563 | if test "$posix_threads" != "yes"; then |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8564 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8565 | $as_echo_n "checking for thr_create in -lthread... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8566 | if test "${ac_cv_lib_thread_thr_create+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8567 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8568 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8569 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8570 | LIBS="-lthread $LIBS" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8571 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8572 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8573 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8574 | /* Override any GCC internal prototype to avoid an error. |
| 8575 | Use char because int might match the return type of a GCC |
| 8576 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8577 | #ifdef __cplusplus |
| 8578 | extern "C" |
| 8579 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8580 | char thr_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8581 | int |
| 8582 | main () |
| 8583 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8584 | return thr_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8585 | ; |
| 8586 | return 0; |
| 8587 | } |
| 8588 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8589 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8590 | ac_cv_lib_thread_thr_create=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8591 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8592 | ac_cv_lib_thread_thr_create=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8593 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8594 | rm -f core conftest.err conftest.$ac_objext \ |
| 8595 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8596 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8597 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8599 | $as_echo "$ac_cv_lib_thread_thr_create" >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8600 | if test "x$ac_cv_lib_thread_thr_create" = x""yes; then : |
| 8601 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8602 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 8603 | LIBS="$LIBS -lthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8604 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 8605 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8606 | fi |
| 8607 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 8608 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8609 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8610 | if test "$USE_THREAD_MODULE" != "#" |
| 8611 | then |
| 8612 | # If the above checks didn't disable threads, (at least) OSF1 |
| 8613 | # needs this '-threads' argument during linking. |
| 8614 | case $ac_sys_system in |
| 8615 | OSF1) LDLAST=-threads;; |
| 8616 | esac |
Jeremy Hylton | 1a2ca86 | 2000-10-16 16:59:12 +0000 | [diff] [blame] | 8617 | fi |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8618 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 8619 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8620 | if test "$posix_threads" = "yes"; then |
| 8621 | if test "$unistd_defines_pthreads" = "no"; then |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 8622 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8623 | $as_echo "#define _POSIX_THREADS 1" >>confdefs.h |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8624 | |
| 8625 | fi |
| 8626 | |
| 8627 | # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8. |
| 8628 | case $ac_sys_system/$ac_sys_release in |
| 8629 | SunOS/5.6) |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8630 | $as_echo "#define HAVE_PTHREAD_DESTRUCTOR 1" >>confdefs.h |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 8631 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8632 | ;; |
| 8633 | SunOS/5.8) |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8634 | $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8635 | |
| 8636 | ;; |
Christian Heimes | 7b3ce6a | 2008-01-31 14:31:45 +0000 | [diff] [blame] | 8637 | AIX/5) |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8638 | $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h |
Christian Heimes | 7b3ce6a | 2008-01-31 14:31:45 +0000 | [diff] [blame] | 8639 | |
| 8640 | ;; |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8641 | esac |
| 8642 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8643 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8644 | $as_echo_n "checking if PTHREAD_SCOPE_SYSTEM is supported... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8645 | if test "${ac_cv_pthread_system_supported+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8646 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8647 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8648 | if test "$cross_compiling" = yes; then : |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8649 | ac_cv_pthread_system_supported=no |
| 8650 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8651 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8652 | /* end confdefs.h. */ |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8653 | #include <pthread.h> |
| 8654 | void *foo(void *parm) { |
| 8655 | return NULL; |
| 8656 | } |
| 8657 | main() { |
| 8658 | pthread_attr_t attr; |
| 8659 | pthread_t id; |
| 8660 | if (pthread_attr_init(&attr)) exit(-1); |
| 8661 | if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1); |
| 8662 | if (pthread_create(&id, &attr, foo, NULL)) exit(-1); |
| 8663 | exit(0); |
| 8664 | } |
| 8665 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8666 | if ac_fn_c_try_run "$LINENO"; then : |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8667 | ac_cv_pthread_system_supported=yes |
| 8668 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8669 | ac_cv_pthread_system_supported=no |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8670 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8671 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 8672 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8673 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 8674 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8675 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8676 | fi |
| 8677 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_system_supported" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8679 | $as_echo "$ac_cv_pthread_system_supported" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8680 | if test "$ac_cv_pthread_system_supported" = "yes"; then |
| 8681 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8682 | $as_echo "#define PTHREAD_SYSTEM_SCHED_SUPPORTED 1" >>confdefs.h |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8683 | |
| 8684 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8685 | for ac_func in pthread_sigmask |
| 8686 | do : |
| 8687 | ac_fn_c_check_func "$LINENO" "pthread_sigmask" "ac_cv_func_pthread_sigmask" |
| 8688 | 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] | 8689 | cat >>confdefs.h <<_ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8690 | #define HAVE_PTHREAD_SIGMASK 1 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8691 | _ACEOF |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 8692 | case $ac_sys_system in |
| 8693 | CYGWIN*) |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8694 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8695 | $as_echo "#define HAVE_BROKEN_PTHREAD_SIGMASK 1" >>confdefs.h |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 8696 | |
| 8697 | ;; |
| 8698 | esac |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8699 | fi |
| 8700 | done |
| 8701 | |
| 8702 | fi |
| 8703 | |
| 8704 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8705 | # Check for enable-ipv6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8706 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8707 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-ipv6 is specified" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8708 | $as_echo_n "checking if --enable-ipv6 is specified... " >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8709 | # Check whether --enable-ipv6 was given. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8710 | if test "${enable_ipv6+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8711 | enableval=$enable_ipv6; case "$enableval" in |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8712 | no) |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8714 | $as_echo "no" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8715 | ipv6=no |
| 8716 | ;; |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8717 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8718 | $as_echo "yes" >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8719 | $as_echo "#define ENABLE_IPV6 1" >>confdefs.h |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8720 | |
| 8721 | ipv6=yes |
| 8722 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8723 | esac |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8724 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8725 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8726 | if test "$cross_compiling" = yes; then : |
| 8727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8728 | $as_echo "no" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8729 | ipv6=no |
| 8730 | |
| 8731 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8732 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8733 | /* end confdefs.h. */ |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8734 | /* AF_INET6 available check */ |
| 8735 | #include <sys/types.h> |
| 8736 | #include <sys/socket.h> |
| 8737 | main() |
| 8738 | { |
| 8739 | if (socket(AF_INET6, SOCK_STREAM, 0) < 0) |
| 8740 | exit(1); |
| 8741 | else |
| 8742 | exit(0); |
| 8743 | } |
| 8744 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8745 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8746 | if ac_fn_c_try_run "$LINENO"; then : |
| 8747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8748 | $as_echo "yes" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8749 | ipv6=yes |
| 8750 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8752 | $as_echo "no" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8753 | ipv6=no |
| 8754 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8755 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 8756 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8757 | fi |
| 8758 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8759 | |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 8760 | if test "$ipv6" = "yes"; then |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8761 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RFC2553 API is available" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8762 | $as_echo_n "checking if RFC2553 API is available... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8763 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8764 | /* end confdefs.h. */ |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 8765 | #include <sys/types.h> |
| 8766 | #include <netinet/in.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8767 | int |
| 8768 | main () |
| 8769 | { |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 8770 | struct sockaddr_in6 x; |
| 8771 | x.sin6_scope_id; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8772 | ; |
| 8773 | return 0; |
| 8774 | } |
| 8775 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8776 | if ac_fn_c_try_compile "$LINENO"; then : |
| 8777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8778 | $as_echo "yes" >&6; } |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 8779 | ipv6=yes |
| 8780 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8782 | $as_echo "no" >&6; } |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 8783 | ipv6=no |
| 8784 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8785 | 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] | 8786 | fi |
| 8787 | |
| 8788 | if test "$ipv6" = "yes"; then |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8789 | $as_echo "#define ENABLE_IPV6 1" >>confdefs.h |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 8790 | |
| 8791 | fi |
| 8792 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8793 | fi |
| 8794 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8795 | |
| 8796 | ipv6type=unknown |
| 8797 | ipv6lib=none |
| 8798 | ipv6trylibc=no |
| 8799 | |
| 8800 | if test "$ipv6" = "yes"; then |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8801 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking ipv6 stack type" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8802 | $as_echo_n "checking ipv6 stack type... " >&6; } |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 8803 | for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; |
| 8804 | do |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8805 | case $i in |
| 8806 | inria) |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8807 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8808 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 8809 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8810 | #include <netinet/in.h> |
| 8811 | #ifdef IPV6_INRIA_VERSION |
| 8812 | yes |
| 8813 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8814 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8815 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8816 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 8817 | ipv6type=$i |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8818 | fi |
Jesus Cea | 0f752ee | 2010-04-28 12:03:06 +0000 | [diff] [blame] | 8819 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8820 | |
| 8821 | ;; |
| 8822 | kame) |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8823 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8824 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 8825 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8826 | #include <netinet/in.h> |
| 8827 | #ifdef __KAME__ |
| 8828 | yes |
| 8829 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8830 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8831 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8832 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8833 | ipv6type=$i; |
| 8834 | ipv6lib=inet6 |
| 8835 | ipv6libdir=/usr/local/v6/lib |
| 8836 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8837 | fi |
Jesus Cea | 0f752ee | 2010-04-28 12:03:06 +0000 | [diff] [blame] | 8838 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8839 | |
| 8840 | ;; |
| 8841 | linux-glibc) |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8842 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8843 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 8844 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8845 | #include <features.h> |
| 8846 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) |
| 8847 | yes |
| 8848 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8849 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8850 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8851 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8852 | ipv6type=$i; |
| 8853 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8854 | fi |
Jesus Cea | 0f752ee | 2010-04-28 12:03:06 +0000 | [diff] [blame] | 8855 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8856 | |
| 8857 | ;; |
| 8858 | linux-inet6) |
| 8859 | if test -d /usr/inet6; then |
| 8860 | ipv6type=$i |
| 8861 | ipv6lib=inet6 |
| 8862 | ipv6libdir=/usr/inet6/lib |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 8863 | BASECFLAGS="-I/usr/inet6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8864 | fi |
| 8865 | ;; |
| 8866 | solaris) |
| 8867 | if test -f /etc/netconfig; then |
| 8868 | if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then |
| 8869 | ipv6type=$i |
| 8870 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8871 | fi |
| 8872 | fi |
| 8873 | ;; |
| 8874 | toshiba) |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8875 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8876 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 8877 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8878 | #include <sys/param.h> |
| 8879 | #ifdef _TOSHIBA_INET6 |
| 8880 | yes |
| 8881 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8882 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8883 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8884 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8885 | ipv6type=$i; |
| 8886 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 8887 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8888 | fi |
Jesus Cea | 0f752ee | 2010-04-28 12:03:06 +0000 | [diff] [blame] | 8889 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8890 | |
| 8891 | ;; |
| 8892 | v6d) |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8893 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8894 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 8895 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8896 | #include </usr/local/v6/include/sys/v6config.h> |
| 8897 | #ifdef __V6D__ |
| 8898 | yes |
| 8899 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8900 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8901 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8902 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8903 | ipv6type=$i; |
| 8904 | ipv6lib=v6; |
| 8905 | ipv6libdir=/usr/local/v6/lib; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 8906 | BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8907 | fi |
Jesus Cea | 0f752ee | 2010-04-28 12:03:06 +0000 | [diff] [blame] | 8908 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8909 | |
| 8910 | ;; |
| 8911 | zeta) |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8912 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8913 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 8914 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8915 | #include <sys/param.h> |
| 8916 | #ifdef _ZETA_MINAMI_INET6 |
| 8917 | yes |
| 8918 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8919 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8920 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8921 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8922 | ipv6type=$i; |
| 8923 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 8924 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8925 | fi |
Jesus Cea | 0f752ee | 2010-04-28 12:03:06 +0000 | [diff] [blame] | 8926 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8927 | |
| 8928 | ;; |
| 8929 | esac |
| 8930 | if test "$ipv6type" != "unknown"; then |
| 8931 | break |
| 8932 | fi |
| 8933 | done |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6type" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8935 | $as_echo "$ipv6type" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8936 | fi |
| 8937 | |
| 8938 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then |
| 8939 | if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then |
| 8940 | LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" |
| 8941 | echo "using lib$ipv6lib" |
| 8942 | else |
| 8943 | if test $ipv6trylibc = "yes"; then |
| 8944 | echo "using libc" |
| 8945 | else |
| 8946 | echo 'Fatal: no $ipv6lib library found. cannot continue.' |
| 8947 | echo "You need to fetch lib$ipv6lib.a from appropriate" |
| 8948 | echo 'ipv6 kit and compile beforehand.' |
| 8949 | exit 1 |
| 8950 | fi |
| 8951 | fi |
| 8952 | fi |
| 8953 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8954 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSX 10.5 SDK or later" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8955 | $as_echo_n "checking for OSX 10.5 SDK or later... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8956 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 8957 | /* end confdefs.h. */ |
| 8958 | #include <Carbon/Carbon.h> |
| 8959 | int |
| 8960 | main () |
| 8961 | { |
| 8962 | FSIORefNum fRef = 0 |
| 8963 | ; |
| 8964 | return 0; |
| 8965 | } |
| 8966 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8967 | if ac_fn_c_try_compile "$LINENO"; then : |
Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 8968 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8969 | $as_echo "#define HAVE_OSX105_SDK 1" >>confdefs.h |
Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 8970 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8972 | $as_echo "yes" >&6; } |
Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 8973 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8975 | $as_echo "no" >&6; } |
Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 8976 | |
| 8977 | fi |
Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 8978 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8979 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 8980 | # Check for --with-doc-strings |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8981 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-doc-strings" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 8982 | $as_echo_n "checking for --with-doc-strings... " >&6; } |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 8983 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8984 | # Check whether --with-doc-strings was given. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8985 | if test "${with_doc_strings+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8986 | withval=$with_doc_strings; |
| 8987 | fi |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 8988 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 8989 | |
| 8990 | if test -z "$with_doc_strings" |
| 8991 | then with_doc_strings="yes" |
| 8992 | fi |
| 8993 | if test "$with_doc_strings" != "no" |
| 8994 | then |
| 8995 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8996 | $as_echo "#define WITH_DOC_STRINGS 1" >>confdefs.h |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 8997 | |
| 8998 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 8999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_doc_strings" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9000 | $as_echo "$with_doc_strings" >&6; } |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 9001 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 9002 | # Check for Python-specific malloc support |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9003 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tsc" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9004 | $as_echo_n "checking for --with-tsc... " >&6; } |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 9005 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9006 | # Check whether --with-tsc was given. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9007 | if test "${with_tsc+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9008 | withval=$with_tsc; |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 9009 | if test "$withval" != no |
| 9010 | then |
| 9011 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9012 | $as_echo "#define WITH_TSC 1" >>confdefs.h |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 9013 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9015 | $as_echo "yes" >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9016 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9017 | $as_echo "no" >&6; } |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 9018 | fi |
| 9019 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9021 | $as_echo "no" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9022 | fi |
| 9023 | |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 9024 | |
| 9025 | # Check for Python-specific malloc support |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9026 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pymalloc" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9027 | $as_echo_n "checking for --with-pymalloc... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9028 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9029 | # Check whether --with-pymalloc was given. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9030 | if test "${with_pymalloc+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9031 | withval=$with_pymalloc; |
| 9032 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9033 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 9034 | |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 9035 | if test -z "$with_pymalloc" |
| 9036 | then with_pymalloc="yes" |
| 9037 | fi |
| 9038 | if test "$with_pymalloc" != "no" |
| 9039 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9040 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9041 | $as_echo "#define WITH_PYMALLOC 1" >>confdefs.h |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 9042 | |
| 9043 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9044 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pymalloc" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9045 | $as_echo "$with_pymalloc" >&6; } |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 9046 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 9047 | # Check for --with-wctype-functions |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9048 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-wctype-functions" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9049 | $as_echo_n "checking for --with-wctype-functions... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9050 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9051 | # Check whether --with-wctype-functions was given. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9052 | if test "${with_wctype_functions+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9053 | withval=$with_wctype_functions; |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 9054 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9055 | then |
| 9056 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9057 | $as_echo "#define WANT_WCTYPE_FUNCTIONS 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9058 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9060 | $as_echo "yes" >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9061 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9062 | $as_echo "no" >&6; } |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 9063 | fi |
| 9064 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9066 | $as_echo "no" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9067 | fi |
| 9068 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 9069 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9070 | # -I${DLINCLDIR} is added to the compile rule for importdl.o |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 9071 | |
Guido van Rossum | 98935bf | 2001-09-05 19:13:16 +0000 | [diff] [blame] | 9072 | DLINCLDIR=. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 9073 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9074 | # the dlopen() function means we might want to use dynload_shlib.o. some |
| 9075 | # 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] | 9076 | for ac_func in dlopen |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9077 | do : |
| 9078 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
| 9079 | if test "x$ac_cv_func_dlopen" = x""yes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9080 | cat >>confdefs.h <<_ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9081 | #define HAVE_DLOPEN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9082 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9083 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9084 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 9085 | done |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9086 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9087 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9088 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic |
| 9089 | # loading of modules. |
| 9090 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9091 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking DYNLOADFILE" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9092 | $as_echo_n "checking DYNLOADFILE... " >&6; } |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9093 | if test -z "$DYNLOADFILE" |
| 9094 | then |
| 9095 | case $ac_sys_system/$ac_sys_release in |
Martin v. Löwis | c19c5a6 | 2003-11-18 20:00:44 +0000 | [diff] [blame] | 9096 | AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c |
| 9097 | if test "$ac_cv_func_dlopen" = yes |
| 9098 | then DYNLOADFILE="dynload_shlib.o" |
| 9099 | else DYNLOADFILE="dynload_aix.o" |
| 9100 | fi |
| 9101 | ;; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9102 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 9103 | # Use dynload_next.c only on 10.2 and below, which don't have native dlopen() |
| 9104 | Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9105 | atheos*) DYNLOADFILE="dynload_atheos.o";; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9106 | *) |
| 9107 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub |
| 9108 | # out any dynamic loading |
| 9109 | if test "$ac_cv_func_dlopen" = yes |
| 9110 | then DYNLOADFILE="dynload_shlib.o" |
| 9111 | else DYNLOADFILE="dynload_stub.o" |
| 9112 | fi |
| 9113 | ;; |
| 9114 | esac |
| 9115 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DYNLOADFILE" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9117 | $as_echo "$DYNLOADFILE" >&6; } |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9118 | if test "$DYNLOADFILE" != "dynload_stub.o" |
| 9119 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9120 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9121 | $as_echo "#define HAVE_DYNAMIC_LOADING 1" >>confdefs.h |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9122 | |
| 9123 | fi |
| 9124 | |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 9125 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python |
| 9126 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9127 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9128 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP_OBJS" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9129 | $as_echo_n "checking MACHDEP_OBJS... " >&6; } |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 9130 | if test -z "$MACHDEP_OBJS" |
| 9131 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9132 | MACHDEP_OBJS=$extra_machdep_objs |
| 9133 | else |
| 9134 | MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 9135 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9136 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: MACHDEP_OBJS" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9137 | $as_echo "MACHDEP_OBJS" >&6; } |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 9138 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9139 | # checks for library functions |
Martin v. Löwis | 823725e | 2008-03-24 13:39:54 +0000 | [diff] [blame] | 9140 | for ac_func in alarm setitimer getitimer bind_textdomain_codeset chown \ |
| 9141 | clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \ |
Martin v. Löwis | 438b534 | 2002-12-27 10:16:42 +0000 | [diff] [blame] | 9142 | gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \ |
Martin v. Löwis | c300175 | 2005-01-23 09:27:24 +0000 | [diff] [blame] | 9143 | getpriority getpwent getspnam getspent getsid getwd \ |
Martin v. Löwis | 011e842 | 2009-05-05 04:43:17 +0000 | [diff] [blame] | 9144 | kill killpg lchmod lchown lstat mbrtowc mkfifo mknod mktime \ |
Martin v. Löwis | a5f0907 | 2002-10-11 05:37:59 +0000 | [diff] [blame] | 9145 | mremap nice pathconf pause plock poll pthread_init \ |
Guido van Rossum | 162e38c | 2003-02-19 15:25:10 +0000 | [diff] [blame] | 9146 | putenv readlink realpath \ |
Benjamin Peterson | 965ce87 | 2009-04-05 21:24:58 +0000 | [diff] [blame] | 9147 | select sem_open sem_timedwait sem_getvalue sem_unlink setegid seteuid \ |
| 9148 | setgid \ |
Martin v. Löwis | 4daacb1 | 2003-03-28 18:37:01 +0000 | [diff] [blame] | 9149 | setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \ |
Gregory P. Smith | 25523d2 | 2007-09-03 16:44:55 +0000 | [diff] [blame] | 9150 | sigaction siginterrupt sigrelse strftime strlcpy \ |
Michael W. Hudson | 34f20ea | 2002-05-27 15:08:24 +0000 | [diff] [blame] | 9151 | sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ |
Martin v. Löwis | 113a085 | 2009-05-29 17:25:39 +0000 | [diff] [blame] | 9152 | truncate uname unsetenv utimes waitpid wait3 wait4 \ |
| 9153 | wcscoll wcsftime wcsxfrm _getpty |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9154 | do : |
| 9155 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 9156 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 9157 | eval as_val=\$$as_ac_var |
| 9158 | if test "x$as_val" = x""yes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9159 | cat >>confdefs.h <<_ACEOF |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9160 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9161 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 9162 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 9163 | fi |
| 9164 | done |
| 9165 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9166 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9167 | # For some functions, having a definition is not sufficient, since |
| 9168 | # we want to take their address. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9169 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chroot" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9170 | $as_echo_n "checking for chroot... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9171 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9172 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9173 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9174 | int |
| 9175 | main () |
| 9176 | { |
| 9177 | void *x=chroot |
| 9178 | ; |
| 9179 | return 0; |
| 9180 | } |
| 9181 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9182 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9183 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9184 | $as_echo "#define HAVE_CHROOT 1" >>confdefs.h |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9185 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9187 | $as_echo "yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9188 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9190 | $as_echo "no" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9191 | |
| 9192 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9193 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9194 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for link" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9195 | $as_echo_n "checking for link... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9196 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9197 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9198 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9199 | int |
| 9200 | main () |
| 9201 | { |
| 9202 | void *x=link |
| 9203 | ; |
| 9204 | return 0; |
| 9205 | } |
| 9206 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9207 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9208 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9209 | $as_echo "#define HAVE_LINK 1" >>confdefs.h |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9210 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9212 | $as_echo "yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9213 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9215 | $as_echo "no" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9216 | |
| 9217 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9218 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9219 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for symlink" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9220 | $as_echo_n "checking for symlink... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9221 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9222 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9223 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9224 | int |
| 9225 | main () |
| 9226 | { |
| 9227 | void *x=symlink |
| 9228 | ; |
| 9229 | return 0; |
| 9230 | } |
| 9231 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9232 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9233 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9234 | $as_echo "#define HAVE_SYMLINK 1" >>confdefs.h |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9235 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9237 | $as_echo "yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9238 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9240 | $as_echo "no" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9241 | |
| 9242 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9243 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9244 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fchdir" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9245 | $as_echo_n "checking for fchdir... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9246 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9247 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9248 | #include <unistd.h> |
| 9249 | int |
| 9250 | main () |
| 9251 | { |
| 9252 | void *x=fchdir |
| 9253 | ; |
| 9254 | return 0; |
| 9255 | } |
| 9256 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9257 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9258 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9259 | $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9260 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9262 | $as_echo "yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9263 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9265 | $as_echo "no" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9266 | |
| 9267 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9268 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9269 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fsync" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9270 | $as_echo_n "checking for fsync... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9271 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9272 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9273 | #include <unistd.h> |
| 9274 | int |
| 9275 | main () |
| 9276 | { |
| 9277 | void *x=fsync |
| 9278 | ; |
| 9279 | return 0; |
| 9280 | } |
| 9281 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9282 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9283 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9284 | $as_echo "#define HAVE_FSYNC 1" >>confdefs.h |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9285 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9287 | $as_echo "yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9288 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9290 | $as_echo "no" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9291 | |
| 9292 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9293 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9294 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fdatasync" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9295 | $as_echo_n "checking for fdatasync... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9296 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9297 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9298 | #include <unistd.h> |
| 9299 | int |
| 9300 | main () |
| 9301 | { |
| 9302 | void *x=fdatasync |
| 9303 | ; |
| 9304 | return 0; |
| 9305 | } |
| 9306 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9307 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9308 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9309 | $as_echo "#define HAVE_FDATASYNC 1" >>confdefs.h |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9310 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9312 | $as_echo "yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9313 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9315 | $as_echo "no" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9316 | |
| 9317 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9318 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9319 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9320 | $as_echo_n "checking for epoll... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9321 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 9322 | /* end confdefs.h. */ |
| 9323 | #include <sys/epoll.h> |
| 9324 | int |
| 9325 | main () |
| 9326 | { |
| 9327 | void *x=epoll_create |
| 9328 | ; |
| 9329 | return 0; |
| 9330 | } |
| 9331 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9332 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9333 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9334 | $as_echo "#define HAVE_EPOLL 1" >>confdefs.h |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 9335 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9337 | $as_echo "yes" >&6; } |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 9338 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9340 | $as_echo "no" >&6; } |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 9341 | |
| 9342 | fi |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 9343 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9344 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kqueue" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9345 | $as_echo_n "checking for kqueue... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9346 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 9347 | /* end confdefs.h. */ |
| 9348 | |
| 9349 | #include <sys/types.h> |
| 9350 | #include <sys/event.h> |
| 9351 | |
| 9352 | int |
| 9353 | main () |
| 9354 | { |
| 9355 | int x=kqueue() |
| 9356 | ; |
| 9357 | return 0; |
| 9358 | } |
| 9359 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9360 | if ac_fn_c_try_compile "$LINENO"; then : |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 9361 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9362 | $as_echo "#define HAVE_KQUEUE 1" >>confdefs.h |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 9363 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9364 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9365 | $as_echo "yes" >&6; } |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 9366 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9368 | $as_echo "no" >&6; } |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 9369 | |
| 9370 | fi |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 9371 | 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] | 9372 | # On some systems (eg. FreeBSD 5), we would find a definition of the |
| 9373 | # functions ctermid_r, setgroups in the library, but no prototype |
| 9374 | # (e.g. because we use _XOPEN_SOURCE). See whether we can take their |
| 9375 | # address to avoid compiler warnings and potential miscompilations |
| 9376 | # because of the missing prototypes. |
| 9377 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9378 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctermid_r" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9379 | $as_echo_n "checking for ctermid_r... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9380 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9381 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 9382 | |
| 9383 | #include "confdefs.h" |
| 9384 | #include <stdio.h> |
| 9385 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 9386 | int |
| 9387 | main () |
| 9388 | { |
| 9389 | void* p = ctermid_r |
| 9390 | ; |
| 9391 | return 0; |
| 9392 | } |
| 9393 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9394 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 9395 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9396 | $as_echo "#define HAVE_CTERMID_R 1" >>confdefs.h |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 9397 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9399 | $as_echo "yes" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 9400 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9401 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9402 | $as_echo "no" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 9403 | |
| 9404 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9405 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9406 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9407 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9408 | $as_echo_n "checking for flock... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9409 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9410 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9411 | |
| 9412 | #include "confdefs.h" |
| 9413 | #include <sys/file.h> |
| 9414 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9415 | int |
| 9416 | main () |
| 9417 | { |
| 9418 | void* p = flock |
| 9419 | ; |
| 9420 | return 0; |
| 9421 | } |
| 9422 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9423 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9424 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9425 | $as_echo "#define HAVE_FLOCK 1" >>confdefs.h |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9426 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9428 | $as_echo "yes" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9429 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9431 | $as_echo "no" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +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 |
| 9435 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9436 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9437 | $as_echo_n "checking for getpagesize... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9438 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9439 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9440 | |
| 9441 | #include "confdefs.h" |
| 9442 | #include <unistd.h> |
| 9443 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9444 | int |
| 9445 | main () |
| 9446 | { |
| 9447 | void* p = getpagesize |
| 9448 | ; |
| 9449 | return 0; |
| 9450 | } |
| 9451 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9452 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9453 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9454 | $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9455 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9457 | $as_echo "yes" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9458 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9460 | $as_echo "no" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9461 | |
| 9462 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9463 | 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] | 9464 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9465 | for ac_prog in true |
| 9466 | do |
| 9467 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 9468 | set dummy $ac_prog; ac_word=$2 |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9469 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9470 | $as_echo_n "checking for $ac_word... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9471 | if test "${ac_cv_prog_TRUE+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9472 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9473 | else |
| 9474 | if test -n "$TRUE"; then |
| 9475 | ac_cv_prog_TRUE="$TRUE" # Let the user override the test. |
| 9476 | else |
| 9477 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9478 | for as_dir in $PATH |
| 9479 | do |
| 9480 | IFS=$as_save_IFS |
| 9481 | test -z "$as_dir" && as_dir=. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9482 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9483 | 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] | 9484 | ac_cv_prog_TRUE="$ac_prog" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9485 | $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] | 9486 | break 2 |
| 9487 | fi |
| 9488 | done |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9489 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9490 | IFS=$as_save_IFS |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9491 | |
| 9492 | fi |
| 9493 | fi |
| 9494 | TRUE=$ac_cv_prog_TRUE |
| 9495 | if test -n "$TRUE"; then |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUE" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9497 | $as_echo "$TRUE" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9498 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9499 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9500 | $as_echo "no" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9501 | fi |
| 9502 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9503 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9504 | test -n "$TRUE" && break |
| 9505 | done |
| 9506 | test -n "$TRUE" || TRUE="/bin/true" |
| 9507 | |
| 9508 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9509 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lc" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9510 | $as_echo_n "checking for inet_aton in -lc... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9511 | if test "${ac_cv_lib_c_inet_aton+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9512 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9513 | else |
| 9514 | ac_check_lib_save_LIBS=$LIBS |
| 9515 | LIBS="-lc $LIBS" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9516 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9517 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9518 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9519 | /* Override any GCC internal prototype to avoid an error. |
| 9520 | Use char because int might match the return type of a GCC |
| 9521 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9522 | #ifdef __cplusplus |
| 9523 | extern "C" |
| 9524 | #endif |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9525 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9526 | int |
| 9527 | main () |
| 9528 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9529 | return inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9530 | ; |
| 9531 | return 0; |
| 9532 | } |
| 9533 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9534 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9535 | ac_cv_lib_c_inet_aton=yes |
| 9536 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9537 | ac_cv_lib_c_inet_aton=no |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9538 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9539 | rm -f core conftest.err conftest.$ac_objext \ |
| 9540 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9541 | LIBS=$ac_check_lib_save_LIBS |
| 9542 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_inet_aton" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9544 | $as_echo "$ac_cv_lib_c_inet_aton" >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9545 | 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] | 9546 | $ac_cv_prog_TRUE |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9547 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9548 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9549 | $as_echo_n "checking for inet_aton in -lresolv... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9550 | if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9551 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9552 | else |
| 9553 | ac_check_lib_save_LIBS=$LIBS |
| 9554 | LIBS="-lresolv $LIBS" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9555 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9556 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9557 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9558 | /* Override any GCC internal prototype to avoid an error. |
| 9559 | Use char because int might match the return type of a GCC |
| 9560 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9561 | #ifdef __cplusplus |
| 9562 | extern "C" |
| 9563 | #endif |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9564 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9565 | int |
| 9566 | main () |
| 9567 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9568 | return inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9569 | ; |
| 9570 | return 0; |
| 9571 | } |
| 9572 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9573 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9574 | ac_cv_lib_resolv_inet_aton=yes |
| 9575 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9576 | ac_cv_lib_resolv_inet_aton=no |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9577 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9578 | rm -f core conftest.err conftest.$ac_objext \ |
| 9579 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9580 | LIBS=$ac_check_lib_save_LIBS |
| 9581 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9583 | $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9584 | 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] | 9585 | cat >>confdefs.h <<_ACEOF |
| 9586 | #define HAVE_LIBRESOLV 1 |
| 9587 | _ACEOF |
| 9588 | |
| 9589 | LIBS="-lresolv $LIBS" |
| 9590 | |
| 9591 | fi |
| 9592 | |
| 9593 | |
| 9594 | fi |
| 9595 | |
| 9596 | |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 9597 | # On Tru64, chflags seems to be present, but calling it will |
| 9598 | # exit Python |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9599 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chflags" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9600 | $as_echo_n "checking for chflags... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9601 | if test "${ac_cv_have_chflags+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9602 | $as_echo_n "(cached) " >&6 |
Benjamin Peterson | 08fd672 | 2010-01-30 19:51:43 +0000 | [diff] [blame] | 9603 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9604 | if test "$cross_compiling" = yes; then : |
Benjamin Peterson | 08fd672 | 2010-01-30 19:51:43 +0000 | [diff] [blame] | 9605 | ac_cv_have_chflags=cross |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 9606 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9607 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 9608 | /* end confdefs.h. */ |
Benjamin Peterson | 08fd672 | 2010-01-30 19:51:43 +0000 | [diff] [blame] | 9609 | [ |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 9610 | #include <sys/stat.h> |
| 9611 | #include <unistd.h> |
| 9612 | int main(int argc, char*argv[]) |
| 9613 | { |
| 9614 | if(chflags(argv[0], 0) != 0) |
| 9615 | return 1; |
| 9616 | return 0; |
| 9617 | } |
Benjamin Peterson | 08fd672 | 2010-01-30 19:51:43 +0000 | [diff] [blame] | 9618 | ] |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 9619 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9620 | if ac_fn_c_try_run "$LINENO"; then : |
Benjamin Peterson | 08fd672 | 2010-01-30 19:51:43 +0000 | [diff] [blame] | 9621 | ac_cv_have_chflags=yes |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 9622 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9623 | ac_cv_have_chflags=no |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 9624 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9625 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 9626 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 9627 | fi |
| 9628 | |
| 9629 | |
Benjamin Peterson | 08fd672 | 2010-01-30 19:51:43 +0000 | [diff] [blame] | 9630 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_chflags" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9632 | $as_echo "$ac_cv_have_chflags" >&6; } |
Benjamin Peterson | 08fd672 | 2010-01-30 19:51:43 +0000 | [diff] [blame] | 9633 | if test "$ac_cv_have_chflags" = cross ; then |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9634 | ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags" |
| 9635 | if test "x$ac_cv_func_chflags" = x""yes; then : |
Benjamin Peterson | 08fd672 | 2010-01-30 19:51:43 +0000 | [diff] [blame] | 9636 | ac_cv_have_chflags="yes" |
| 9637 | else |
| 9638 | ac_cv_have_chflags="no" |
| 9639 | fi |
| 9640 | |
| 9641 | fi |
| 9642 | if test "$ac_cv_have_chflags" = yes ; then |
| 9643 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9644 | $as_echo "#define HAVE_CHFLAGS 1" >>confdefs.h |
Benjamin Peterson | 08fd672 | 2010-01-30 19:51:43 +0000 | [diff] [blame] | 9645 | |
| 9646 | fi |
| 9647 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9648 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lchflags" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9649 | $as_echo_n "checking for lchflags... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9650 | if test "${ac_cv_have_lchflags+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9651 | $as_echo_n "(cached) " >&6 |
Benjamin Peterson | 08fd672 | 2010-01-30 19:51:43 +0000 | [diff] [blame] | 9652 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9653 | if test "$cross_compiling" = yes; then : |
Benjamin Peterson | 08fd672 | 2010-01-30 19:51:43 +0000 | [diff] [blame] | 9654 | ac_cv_have_lchflags=cross |
| 9655 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9656 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benjamin Peterson | 08fd672 | 2010-01-30 19:51:43 +0000 | [diff] [blame] | 9657 | /* end confdefs.h. */ |
| 9658 | [ |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 9659 | #include <sys/stat.h> |
| 9660 | #include <unistd.h> |
| 9661 | int main(int argc, char*argv[]) |
| 9662 | { |
| 9663 | if(lchflags(argv[0], 0) != 0) |
| 9664 | return 1; |
| 9665 | return 0; |
| 9666 | } |
Benjamin Peterson | 08fd672 | 2010-01-30 19:51:43 +0000 | [diff] [blame] | 9667 | ] |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 9668 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9669 | if ac_fn_c_try_run "$LINENO"; then : |
Benjamin Peterson | 08fd672 | 2010-01-30 19:51:43 +0000 | [diff] [blame] | 9670 | ac_cv_have_lchflags=yes |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 9671 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9672 | ac_cv_have_lchflags=no |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 9673 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9674 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 9675 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 9676 | fi |
| 9677 | |
| 9678 | |
Benjamin Peterson | 08fd672 | 2010-01-30 19:51:43 +0000 | [diff] [blame] | 9679 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_lchflags" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9681 | $as_echo "$ac_cv_have_lchflags" >&6; } |
Benjamin Peterson | 08fd672 | 2010-01-30 19:51:43 +0000 | [diff] [blame] | 9682 | if test "$ac_cv_have_lchflags" = cross ; then |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9683 | ac_fn_c_check_func "$LINENO" "lchflags" "ac_cv_func_lchflags" |
| 9684 | if test "x$ac_cv_func_lchflags" = x""yes; then : |
Benjamin Peterson | 08fd672 | 2010-01-30 19:51:43 +0000 | [diff] [blame] | 9685 | ac_cv_have_lchflags="yes" |
| 9686 | else |
| 9687 | ac_cv_have_lchflags="no" |
| 9688 | fi |
| 9689 | |
| 9690 | fi |
| 9691 | if test "$ac_cv_have_lchflags" = yes ; then |
| 9692 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9693 | $as_echo "#define HAVE_LCHFLAGS 1" >>confdefs.h |
Benjamin Peterson | 08fd672 | 2010-01-30 19:51:43 +0000 | [diff] [blame] | 9694 | |
| 9695 | fi |
| 9696 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 9697 | case $ac_sys_system/$ac_sys_release in |
| 9698 | Darwin/*) |
| 9699 | _CUR_CFLAGS="${CFLAGS}" |
| 9700 | _CUR_LDFLAGS="${LDFLAGS}" |
| 9701 | CFLAGS="${CFLAGS} -Wl,-search_paths_first" |
| 9702 | LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib" |
| 9703 | ;; |
| 9704 | esac |
| 9705 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9706 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9707 | $as_echo_n "checking for inflateCopy in -lz... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9708 | if test "${ac_cv_lib_z_inflateCopy+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9709 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 9710 | else |
| 9711 | ac_check_lib_save_LIBS=$LIBS |
| 9712 | LIBS="-lz $LIBS" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9713 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 9714 | /* end confdefs.h. */ |
| 9715 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9716 | /* Override any GCC internal prototype to avoid an error. |
| 9717 | Use char because int might match the return type of a GCC |
| 9718 | builtin and then its argument prototype would still apply. */ |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 9719 | #ifdef __cplusplus |
| 9720 | extern "C" |
| 9721 | #endif |
| 9722 | char inflateCopy (); |
| 9723 | int |
| 9724 | main () |
| 9725 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9726 | return inflateCopy (); |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 9727 | ; |
| 9728 | return 0; |
| 9729 | } |
| 9730 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9731 | if ac_fn_c_try_link "$LINENO"; then : |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 9732 | ac_cv_lib_z_inflateCopy=yes |
| 9733 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9734 | ac_cv_lib_z_inflateCopy=no |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 9735 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9736 | rm -f core conftest.err conftest.$ac_objext \ |
| 9737 | conftest$ac_exeext conftest.$ac_ext |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 9738 | LIBS=$ac_check_lib_save_LIBS |
| 9739 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9741 | $as_echo "$ac_cv_lib_z_inflateCopy" >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9742 | if test "x$ac_cv_lib_z_inflateCopy" = x""yes; then : |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 9743 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9744 | $as_echo "#define HAVE_ZLIB_COPY 1" >>confdefs.h |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 9745 | |
| 9746 | fi |
| 9747 | |
| 9748 | |
| 9749 | case $ac_sys_system/$ac_sys_release in |
| 9750 | Darwin/*) |
| 9751 | CFLAGS="${_CUR_CFLAGS}" |
| 9752 | LDFLAGS="${_CUR_LDFLAGS}" |
| 9753 | ;; |
| 9754 | esac |
| 9755 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9756 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hstrerror" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9757 | $as_echo_n "checking for hstrerror... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9758 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9759 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 9760 | |
| 9761 | #include "confdefs.h" |
| 9762 | #include <netdb.h> |
| 9763 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 9764 | int |
| 9765 | main () |
| 9766 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9767 | void* p = hstrerror; hstrerror(0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 9768 | ; |
| 9769 | return 0; |
| 9770 | } |
| 9771 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9772 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 9773 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9774 | $as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 9775 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9777 | $as_echo "yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 9778 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9780 | $as_echo "no" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 9781 | |
| 9782 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9783 | rm -f core conftest.err conftest.$ac_objext \ |
| 9784 | conftest$ac_exeext conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9785 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9786 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9787 | $as_echo_n "checking for inet_aton... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9788 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9789 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 9790 | |
| 9791 | #include "confdefs.h" |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 9792 | #include <sys/types.h> |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 9793 | #include <sys/socket.h> |
| 9794 | #include <netinet/in.h> |
| 9795 | #include <arpa/inet.h> |
| 9796 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 9797 | int |
| 9798 | main () |
| 9799 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9800 | void* p = inet_aton;inet_aton(0,0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 9801 | ; |
| 9802 | return 0; |
| 9803 | } |
| 9804 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9805 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 9806 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9807 | $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 9808 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9810 | $as_echo "yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 9811 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9813 | $as_echo "no" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 9814 | |
| 9815 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9816 | rm -f core conftest.err conftest.$ac_objext \ |
| 9817 | conftest$ac_exeext conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9818 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9819 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_pton" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9820 | $as_echo_n "checking for inet_pton... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9821 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9822 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 9823 | |
| 9824 | #include "confdefs.h" |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 9825 | #include <sys/types.h> |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 9826 | #include <sys/socket.h> |
| 9827 | #include <netinet/in.h> |
| 9828 | #include <arpa/inet.h> |
| 9829 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 9830 | int |
| 9831 | main () |
| 9832 | { |
| 9833 | void* p = inet_pton |
| 9834 | ; |
| 9835 | return 0; |
| 9836 | } |
| 9837 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9838 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 9839 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9840 | $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 9841 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9843 | $as_echo "yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 9844 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9846 | $as_echo "no" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 9847 | |
| 9848 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9849 | 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] | 9850 | |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 9851 | # On some systems, setgroups is in unistd.h, on others, in grp.h |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9852 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setgroups" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9853 | $as_echo_n "checking for setgroups... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9854 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9855 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 9856 | |
| 9857 | #include "confdefs.h" |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 9858 | #include <unistd.h> |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 9859 | #ifdef HAVE_GRP_H |
| 9860 | #include <grp.h> |
| 9861 | #endif |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 9862 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 9863 | int |
| 9864 | main () |
| 9865 | { |
| 9866 | void* p = setgroups |
| 9867 | ; |
| 9868 | return 0; |
| 9869 | } |
| 9870 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9871 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 9872 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9873 | $as_echo "#define HAVE_SETGROUPS 1" >>confdefs.h |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 9874 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9876 | $as_echo "yes" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 9877 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9879 | $as_echo "no" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 9880 | |
| 9881 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9882 | 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] | 9883 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 9884 | # check for openpty and forkpty |
| 9885 | |
| 9886 | for ac_func in openpty |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9887 | do : |
| 9888 | ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty" |
| 9889 | if test "x$ac_cv_func_openpty" = x""yes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9890 | cat >>confdefs.h <<_ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9891 | #define HAVE_OPENPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9892 | _ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 9893 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 9894 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9895 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9896 | $as_echo_n "checking for openpty in -lutil... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9897 | if test "${ac_cv_lib_util_openpty+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9898 | $as_echo_n "(cached) " >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 9899 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9900 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 9901 | LIBS="-lutil $LIBS" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9902 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9903 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9904 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9905 | /* Override any GCC internal prototype to avoid an error. |
| 9906 | Use char because int might match the return type of a GCC |
| 9907 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9908 | #ifdef __cplusplus |
| 9909 | extern "C" |
| 9910 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9911 | char openpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9912 | int |
| 9913 | main () |
| 9914 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9915 | return openpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9916 | ; |
| 9917 | return 0; |
| 9918 | } |
| 9919 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9920 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9921 | ac_cv_lib_util_openpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 9922 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9923 | ac_cv_lib_util_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 9924 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9925 | rm -f core conftest.err conftest.$ac_objext \ |
| 9926 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9927 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 9928 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9930 | $as_echo "$ac_cv_lib_util_openpty" >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9931 | if test "x$ac_cv_lib_util_openpty" = x""yes; then : |
| 9932 | $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 9933 | LIBS="$LIBS -lutil" |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 9934 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9935 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lbsd" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9936 | $as_echo_n "checking for openpty in -lbsd... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9937 | if test "${ac_cv_lib_bsd_openpty+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9938 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 9939 | else |
| 9940 | ac_check_lib_save_LIBS=$LIBS |
| 9941 | LIBS="-lbsd $LIBS" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9942 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 9943 | /* end confdefs.h. */ |
| 9944 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9945 | /* Override any GCC internal prototype to avoid an error. |
| 9946 | Use char because int might match the return type of a GCC |
| 9947 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 9948 | #ifdef __cplusplus |
| 9949 | extern "C" |
| 9950 | #endif |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 9951 | char openpty (); |
| 9952 | int |
| 9953 | main () |
| 9954 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9955 | return openpty (); |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 9956 | ; |
| 9957 | return 0; |
| 9958 | } |
| 9959 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9960 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 9961 | ac_cv_lib_bsd_openpty=yes |
| 9962 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9963 | ac_cv_lib_bsd_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 9964 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9965 | rm -f core conftest.err conftest.$ac_objext \ |
| 9966 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 9967 | LIBS=$ac_check_lib_save_LIBS |
| 9968 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_openpty" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9970 | $as_echo "$ac_cv_lib_bsd_openpty" >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9971 | if test "x$ac_cv_lib_bsd_openpty" = x""yes; then : |
| 9972 | $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 9973 | LIBS="$LIBS -lbsd" |
| 9974 | fi |
| 9975 | |
| 9976 | |
| 9977 | fi |
| 9978 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 9979 | |
| 9980 | fi |
| 9981 | done |
| 9982 | |
| 9983 | for ac_func in forkpty |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9984 | do : |
| 9985 | ac_fn_c_check_func "$LINENO" "forkpty" "ac_cv_func_forkpty" |
| 9986 | if test "x$ac_cv_func_forkpty" = x""yes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9987 | cat >>confdefs.h <<_ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9988 | #define HAVE_FORKPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9989 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 9990 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 9991 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9992 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lutil" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9993 | $as_echo_n "checking for forkpty in -lutil... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9994 | if test "${ac_cv_lib_util_forkpty+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 9995 | $as_echo_n "(cached) " >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 9996 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9997 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 9998 | LIBS="-lutil $LIBS" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 9999 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10000 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10001 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10002 | /* Override any GCC internal prototype to avoid an error. |
| 10003 | Use char because int might match the return type of a GCC |
| 10004 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10005 | #ifdef __cplusplus |
| 10006 | extern "C" |
| 10007 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10008 | char forkpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10009 | int |
| 10010 | main () |
| 10011 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10012 | return forkpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10013 | ; |
| 10014 | return 0; |
| 10015 | } |
| 10016 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10017 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10018 | ac_cv_lib_util_forkpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10019 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10020 | ac_cv_lib_util_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10021 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10022 | rm -f core conftest.err conftest.$ac_objext \ |
| 10023 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10024 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10025 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_forkpty" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 10027 | $as_echo "$ac_cv_lib_util_forkpty" >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10028 | if test "x$ac_cv_lib_util_forkpty" = x""yes; then : |
| 10029 | $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10030 | LIBS="$LIBS -lutil" |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10031 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10032 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lbsd" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 10033 | $as_echo_n "checking for forkpty in -lbsd... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10034 | if test "${ac_cv_lib_bsd_forkpty+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 10035 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10036 | else |
| 10037 | ac_check_lib_save_LIBS=$LIBS |
| 10038 | LIBS="-lbsd $LIBS" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10039 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10040 | /* end confdefs.h. */ |
| 10041 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10042 | /* Override any GCC internal prototype to avoid an error. |
| 10043 | Use char because int might match the return type of a GCC |
| 10044 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10045 | #ifdef __cplusplus |
| 10046 | extern "C" |
| 10047 | #endif |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10048 | char forkpty (); |
| 10049 | int |
| 10050 | main () |
| 10051 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10052 | return forkpty (); |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10053 | ; |
| 10054 | return 0; |
| 10055 | } |
| 10056 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10057 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10058 | ac_cv_lib_bsd_forkpty=yes |
| 10059 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10060 | ac_cv_lib_bsd_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10061 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10062 | rm -f core conftest.err conftest.$ac_objext \ |
| 10063 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10064 | LIBS=$ac_check_lib_save_LIBS |
| 10065 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_forkpty" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 10067 | $as_echo "$ac_cv_lib_bsd_forkpty" >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10068 | if test "x$ac_cv_lib_bsd_forkpty" = x""yes; then : |
| 10069 | $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10070 | LIBS="$LIBS -lbsd" |
| 10071 | fi |
| 10072 | |
| 10073 | |
| 10074 | fi |
| 10075 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10076 | |
| 10077 | fi |
| 10078 | done |
| 10079 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 10080 | |
Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 10081 | # Stuff for expat. |
Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 10082 | for ac_func in memmove |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10083 | do : |
| 10084 | ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove" |
| 10085 | if test "x$ac_cv_func_memmove" = x""yes; then : |
Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 10086 | cat >>confdefs.h <<_ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10087 | #define HAVE_MEMMOVE 1 |
Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 10088 | _ACEOF |
| 10089 | |
| 10090 | fi |
| 10091 | done |
| 10092 | |
| 10093 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10094 | # check for long file support functions |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10095 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10096 | do : |
| 10097 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 10098 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 10099 | eval as_val=\$$as_ac_var |
| 10100 | if test "x$as_val" = x""yes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10101 | cat >>confdefs.h <<_ACEOF |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 10102 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10103 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10104 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10105 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10106 | done |
| 10107 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10108 | |
Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 10109 | for ac_func in dup2 getcwd strdup |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10110 | do : |
| 10111 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 10112 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 10113 | eval as_val=\$$as_ac_var |
| 10114 | if test "x$as_val" = x""yes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10115 | cat >>confdefs.h <<_ACEOF |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 10116 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10117 | _ACEOF |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 10118 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 10119 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10120 | case " $LIBOBJS " in |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10121 | *" $ac_func.$ac_objext "* ) ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10122 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" |
| 10123 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10124 | esac |
| 10125 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 10126 | fi |
| 10127 | done |
| 10128 | |
| 10129 | |
| 10130 | for ac_func in getpgrp |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10131 | do : |
| 10132 | ac_fn_c_check_func "$LINENO" "getpgrp" "ac_cv_func_getpgrp" |
| 10133 | if test "x$ac_cv_func_getpgrp" = x""yes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10134 | cat >>confdefs.h <<_ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10135 | #define HAVE_GETPGRP 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10136 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10137 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10138 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10139 | #include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10140 | int |
| 10141 | main () |
| 10142 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10143 | getpgrp(0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10144 | ; |
| 10145 | return 0; |
| 10146 | } |
| 10147 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10148 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10149 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10150 | $as_echo "#define GETPGRP_HAVE_ARG 1" >>confdefs.h |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10151 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10152 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10153 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10154 | 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] | 10155 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10156 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 10157 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10158 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 10159 | for ac_func in setpgrp |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10160 | do : |
| 10161 | ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp" |
| 10162 | if test "x$ac_cv_func_setpgrp" = x""yes; then : |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 10163 | cat >>confdefs.h <<_ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10164 | #define HAVE_SETPGRP 1 |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 10165 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10166 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10167 | /* end confdefs.h. */ |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 10168 | #include <unistd.h> |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 10169 | int |
| 10170 | main () |
| 10171 | { |
| 10172 | setpgrp(0,0); |
| 10173 | ; |
| 10174 | return 0; |
| 10175 | } |
| 10176 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10177 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10178 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10179 | $as_echo "#define SETPGRP_HAVE_ARG 1" >>confdefs.h |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10180 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10181 | |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 10182 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10183 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 10184 | |
| 10185 | fi |
| 10186 | done |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 10187 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 10188 | for ac_func in gettimeofday |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10189 | do : |
| 10190 | ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" |
| 10191 | if test "x$ac_cv_func_gettimeofday" = x""yes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10192 | cat >>confdefs.h <<_ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10193 | #define HAVE_GETTIMEOFDAY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10194 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10195 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10196 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10197 | #include <sys/time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10198 | int |
| 10199 | main () |
| 10200 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10201 | gettimeofday((struct timeval*)0,(struct timezone*)0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10202 | ; |
| 10203 | return 0; |
| 10204 | } |
| 10205 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10206 | if ac_fn_c_try_compile "$LINENO"; then : |
| 10207 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10208 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10209 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10210 | $as_echo "#define GETTIMEOFDAY_NO_TZ 1" >>confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10211 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10212 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10213 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10214 | 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] | 10215 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10216 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 10217 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10218 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10219 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10220 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for major" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 10221 | $as_echo_n "checking for major... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10222 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10223 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 10224 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 10225 | #if defined(MAJOR_IN_MKDEV) |
| 10226 | #include <sys/mkdev.h> |
| 10227 | #elif defined(MAJOR_IN_SYSMACROS) |
| 10228 | #include <sys/sysmacros.h> |
| 10229 | #else |
| 10230 | #include <sys/types.h> |
| 10231 | #endif |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 10232 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 10233 | int |
| 10234 | main () |
| 10235 | { |
| 10236 | |
| 10237 | makedev(major(0),minor(0)); |
| 10238 | |
| 10239 | ; |
| 10240 | return 0; |
| 10241 | } |
| 10242 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10243 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 10244 | |
| 10245 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10246 | $as_echo "#define HAVE_DEVICE_MACROS 1" >>confdefs.h |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 10247 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 10249 | $as_echo "yes" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 10250 | |
| 10251 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10252 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 10254 | $as_echo "no" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 10255 | |
| 10256 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10257 | rm -f core conftest.err conftest.$ac_objext \ |
| 10258 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10259 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 10260 | # 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] | 10261 | # for [no]getaddrinfo in netdb.h. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10262 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 10263 | $as_echo_n "checking for getaddrinfo... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10264 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10265 | /* end confdefs.h. */ |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 10266 | |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 10267 | #include <sys/types.h> |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 10268 | #include <sys/socket.h> |
| 10269 | #include <netdb.h> |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 10270 | #include <stdio.h> |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10271 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10272 | int |
| 10273 | main () |
| 10274 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10275 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 10276 | getaddrinfo(NULL, NULL, NULL, NULL); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10277 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10278 | ; |
| 10279 | return 0; |
| 10280 | } |
| 10281 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10282 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10283 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 10285 | $as_echo "yes" >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10286 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking getaddrinfo bug" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 10287 | $as_echo_n "checking getaddrinfo bug... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10288 | if test "$cross_compiling" = yes; then : |
| 10289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 10290 | $as_echo "buggy" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10291 | buggygetaddrinfo=yes |
| 10292 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10293 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10294 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10295 | |
| 10296 | #include <sys/types.h> |
| 10297 | #include <netdb.h> |
| 10298 | #include <string.h> |
| 10299 | #include <sys/socket.h> |
| 10300 | #include <netinet/in.h> |
| 10301 | |
| 10302 | main() |
| 10303 | { |
| 10304 | int passive, gaierr, inet4 = 0, inet6 = 0; |
| 10305 | struct addrinfo hints, *ai, *aitop; |
| 10306 | char straddr[INET6_ADDRSTRLEN], strport[16]; |
| 10307 | |
| 10308 | for (passive = 0; passive <= 1; passive++) { |
| 10309 | memset(&hints, 0, sizeof(hints)); |
| 10310 | hints.ai_family = AF_UNSPEC; |
| 10311 | hints.ai_flags = passive ? AI_PASSIVE : 0; |
| 10312 | hints.ai_socktype = SOCK_STREAM; |
Hye-Shik Chang | 54f9439 | 2004-04-14 07:55:31 +0000 | [diff] [blame] | 10313 | hints.ai_protocol = IPPROTO_TCP; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10314 | if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { |
| 10315 | (void)gai_strerror(gaierr); |
| 10316 | goto bad; |
| 10317 | } |
| 10318 | for (ai = aitop; ai; ai = ai->ai_next) { |
| 10319 | if (ai->ai_addr == NULL || |
| 10320 | ai->ai_addrlen == 0 || |
| 10321 | getnameinfo(ai->ai_addr, ai->ai_addrlen, |
| 10322 | straddr, sizeof(straddr), strport, sizeof(strport), |
| 10323 | NI_NUMERICHOST|NI_NUMERICSERV) != 0) { |
| 10324 | goto bad; |
| 10325 | } |
| 10326 | switch (ai->ai_family) { |
| 10327 | case AF_INET: |
| 10328 | if (strcmp(strport, "54321") != 0) { |
| 10329 | goto bad; |
| 10330 | } |
| 10331 | if (passive) { |
| 10332 | if (strcmp(straddr, "0.0.0.0") != 0) { |
| 10333 | goto bad; |
| 10334 | } |
| 10335 | } else { |
| 10336 | if (strcmp(straddr, "127.0.0.1") != 0) { |
| 10337 | goto bad; |
| 10338 | } |
| 10339 | } |
| 10340 | inet4++; |
| 10341 | break; |
| 10342 | case AF_INET6: |
| 10343 | if (strcmp(strport, "54321") != 0) { |
| 10344 | goto bad; |
| 10345 | } |
| 10346 | if (passive) { |
| 10347 | if (strcmp(straddr, "::") != 0) { |
| 10348 | goto bad; |
| 10349 | } |
| 10350 | } else { |
| 10351 | if (strcmp(straddr, "::1") != 0) { |
| 10352 | goto bad; |
| 10353 | } |
| 10354 | } |
| 10355 | inet6++; |
| 10356 | break; |
| 10357 | case AF_UNSPEC: |
| 10358 | goto bad; |
| 10359 | break; |
| 10360 | default: |
| 10361 | /* another family support? */ |
| 10362 | break; |
| 10363 | } |
| 10364 | } |
| 10365 | } |
| 10366 | |
| 10367 | if (!(inet4 == 0 || inet4 == 2)) |
| 10368 | goto bad; |
| 10369 | if (!(inet6 == 0 || inet6 == 2)) |
| 10370 | goto bad; |
| 10371 | |
| 10372 | if (aitop) |
| 10373 | freeaddrinfo(aitop); |
| 10374 | exit(0); |
| 10375 | |
| 10376 | bad: |
| 10377 | if (aitop) |
| 10378 | freeaddrinfo(aitop); |
| 10379 | exit(1); |
| 10380 | } |
| 10381 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10382 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10383 | if ac_fn_c_try_run "$LINENO"; then : |
| 10384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: good" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 10385 | $as_echo "good" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10386 | buggygetaddrinfo=no |
| 10387 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 10389 | $as_echo "buggy" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10390 | buggygetaddrinfo=yes |
| 10391 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10392 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 10393 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10394 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10395 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10396 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10397 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 10399 | $as_echo "no" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10400 | buggygetaddrinfo=yes |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10401 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 10402 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10403 | rm -f core conftest.err conftest.$ac_objext \ |
| 10404 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10405 | |
| 10406 | if test "$buggygetaddrinfo" = "yes"; then |
| 10407 | if test "$ipv6" = "yes"; then |
| 10408 | echo 'Fatal: You must get working getaddrinfo() function.' |
| 10409 | echo ' or you can specify "--disable-ipv6"'. |
| 10410 | exit 1 |
| 10411 | fi |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 10412 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10413 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10414 | $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 10415 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10416 | fi |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 10417 | for ac_func in getnameinfo |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10418 | do : |
| 10419 | ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo" |
| 10420 | if test "x$ac_cv_func_getnameinfo" = x""yes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10421 | cat >>confdefs.h <<_ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10422 | #define HAVE_GETNAMEINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10423 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10424 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10425 | fi |
| 10426 | done |
| 10427 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10428 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10429 | # checks for structures |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10430 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 10431 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10432 | if test "${ac_cv_header_time+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 10433 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10434 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10435 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10436 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10437 | #include <sys/types.h> |
| 10438 | #include <sys/time.h> |
| 10439 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10440 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10441 | int |
| 10442 | main () |
| 10443 | { |
| 10444 | if ((struct tm *) 0) |
| 10445 | return 0; |
| 10446 | ; |
| 10447 | return 0; |
| 10448 | } |
| 10449 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10450 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10451 | ac_cv_header_time=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10452 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10453 | ac_cv_header_time=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10454 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10455 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10456 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10457 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 10458 | $as_echo "$ac_cv_header_time" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10459 | if test $ac_cv_header_time = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10460 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10461 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10462 | |
| 10463 | fi |
| 10464 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10465 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 10466 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10467 | if test "${ac_cv_struct_tm+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 10468 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10469 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10470 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10471 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10472 | #include <sys/types.h> |
| 10473 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10474 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10475 | int |
| 10476 | main () |
| 10477 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10478 | struct tm tm; |
| 10479 | int *p = &tm.tm_sec; |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 10480 | return !p; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10481 | ; |
| 10482 | return 0; |
| 10483 | } |
| 10484 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10485 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10486 | ac_cv_struct_tm=time.h |
| 10487 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10488 | ac_cv_struct_tm=sys/time.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10489 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10490 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10491 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 10493 | $as_echo "$ac_cv_struct_tm" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10494 | if test $ac_cv_struct_tm = sys/time.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10495 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10496 | $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10497 | |
| 10498 | fi |
| 10499 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10500 | 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] | 10501 | #include <$ac_cv_struct_tm> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10502 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10503 | " |
| 10504 | 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] | 10505 | |
| 10506 | cat >>confdefs.h <<_ACEOF |
| 10507 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 10508 | _ACEOF |
| 10509 | |
| 10510 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10511 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10512 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10513 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 10514 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10515 | $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10516 | |
| 10517 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10518 | ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> |
| 10519 | " |
| 10520 | if test "x$ac_cv_have_decl_tzname" = x""yes; then : |
| 10521 | ac_have_decl=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10522 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10523 | ac_have_decl=0 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10524 | fi |
| 10525 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10526 | cat >>confdefs.h <<_ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10527 | #define HAVE_DECL_TZNAME $ac_have_decl |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10528 | _ACEOF |
| 10529 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10530 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 10531 | $as_echo_n "checking for tzname... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10532 | if test "${ac_cv_var_tzname+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 10533 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10534 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10535 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10536 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10537 | #include <time.h> |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10538 | #if !HAVE_DECL_TZNAME |
| 10539 | extern char *tzname[]; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10540 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10541 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10542 | int |
| 10543 | main () |
| 10544 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10545 | return tzname[0][0]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10546 | ; |
| 10547 | return 0; |
| 10548 | } |
| 10549 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10550 | if ac_fn_c_try_link "$LINENO"; then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10551 | ac_cv_var_tzname=yes |
| 10552 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10553 | ac_cv_var_tzname=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10554 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10555 | rm -f core conftest.err conftest.$ac_objext \ |
| 10556 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10557 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 10559 | $as_echo "$ac_cv_var_tzname" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10560 | if test $ac_cv_var_tzname = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10561 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10562 | $as_echo "#define HAVE_TZNAME 1" >>confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10563 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10564 | fi |
| 10565 | fi |
| 10566 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10567 | ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" |
| 10568 | 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] | 10569 | |
| 10570 | cat >>confdefs.h <<_ACEOF |
| 10571 | #define HAVE_STRUCT_STAT_ST_RDEV 1 |
| 10572 | _ACEOF |
| 10573 | |
| 10574 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 10575 | fi |
| 10576 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10577 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default" |
| 10578 | 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] | 10579 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10580 | cat >>confdefs.h <<_ACEOF |
| 10581 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 |
| 10582 | _ACEOF |
| 10583 | |
| 10584 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 10585 | fi |
| 10586 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10587 | ac_fn_c_check_member "$LINENO" "struct stat" "st_flags" "ac_cv_member_struct_stat_st_flags" "$ac_includes_default" |
| 10588 | 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] | 10589 | |
| 10590 | cat >>confdefs.h <<_ACEOF |
| 10591 | #define HAVE_STRUCT_STAT_ST_FLAGS 1 |
| 10592 | _ACEOF |
| 10593 | |
| 10594 | |
| 10595 | fi |
| 10596 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10597 | ac_fn_c_check_member "$LINENO" "struct stat" "st_gen" "ac_cv_member_struct_stat_st_gen" "$ac_includes_default" |
| 10598 | 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] | 10599 | |
| 10600 | cat >>confdefs.h <<_ACEOF |
| 10601 | #define HAVE_STRUCT_STAT_ST_GEN 1 |
| 10602 | _ACEOF |
| 10603 | |
| 10604 | |
| 10605 | fi |
| 10606 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10607 | ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "$ac_includes_default" |
| 10608 | 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] | 10609 | |
| 10610 | cat >>confdefs.h <<_ACEOF |
| 10611 | #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1 |
| 10612 | _ACEOF |
| 10613 | |
| 10614 | |
| 10615 | fi |
| 10616 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10617 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default" |
| 10618 | 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] | 10619 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10620 | cat >>confdefs.h <<_ACEOF |
| 10621 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 |
| 10622 | _ACEOF |
| 10623 | |
| 10624 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10625 | $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 10626 | |
| 10627 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10628 | case " $LIBOBJS " in |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10629 | *" fileblocks.$ac_objext "* ) ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10630 | *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" |
| 10631 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10632 | esac |
| 10633 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 10634 | fi |
| 10635 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10636 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10637 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10638 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for time.h that defines altzone" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 10639 | $as_echo_n "checking for time.h that defines altzone... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10640 | if test "${ac_cv_header_time_altzone+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 10641 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10642 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10643 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10644 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 10645 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10646 | int |
| 10647 | main () |
| 10648 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10649 | return altzone; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10650 | ; |
| 10651 | return 0; |
| 10652 | } |
| 10653 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10654 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10655 | ac_cv_header_time_altzone=yes |
| 10656 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10657 | ac_cv_header_time_altzone=no |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 10658 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10659 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10660 | fi |
| 10661 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time_altzone" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 10663 | $as_echo "$ac_cv_header_time_altzone" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10664 | if test $ac_cv_header_time_altzone = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10665 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10666 | $as_echo "#define HAVE_ALTZONE 1" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10667 | |
| 10668 | fi |
| 10669 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 10670 | was_it_defined=no |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10671 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be included" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 10672 | $as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10673 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10674 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 10675 | |
| 10676 | #include <sys/types.h> |
| 10677 | #include <sys/select.h> |
| 10678 | #include <sys/time.h> |
| 10679 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10680 | int |
| 10681 | main () |
| 10682 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10683 | ; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10684 | ; |
| 10685 | return 0; |
| 10686 | } |
| 10687 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10688 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10689 | |
| 10690 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10691 | $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] | 10692 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 10693 | was_it_defined=yes |
| 10694 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10695 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10696 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 10698 | $as_echo "$was_it_defined" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10699 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10700 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for addrinfo" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 10701 | $as_echo_n "checking for addrinfo... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10702 | if test "${ac_cv_struct_addrinfo+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 10703 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10704 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10705 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10706 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10707 | |
| 10708 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10709 | int |
| 10710 | main () |
| 10711 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10712 | struct addrinfo a |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10713 | ; |
| 10714 | return 0; |
| 10715 | } |
| 10716 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10717 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10718 | ac_cv_struct_addrinfo=yes |
| 10719 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10720 | ac_cv_struct_addrinfo=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10721 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10722 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10723 | fi |
| 10724 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_addrinfo" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 10726 | $as_echo "$ac_cv_struct_addrinfo" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10727 | if test $ac_cv_struct_addrinfo = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10728 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10729 | $as_echo "#define HAVE_ADDRINFO 1" >>confdefs.h |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10730 | |
| 10731 | fi |
| 10732 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10733 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 10734 | $as_echo_n "checking for sockaddr_storage... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10735 | if test "${ac_cv_struct_sockaddr_storage+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 10736 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10737 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10738 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10739 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10740 | |
| 10741 | # include <sys/types.h> |
| 10742 | # include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10743 | int |
| 10744 | main () |
| 10745 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10746 | struct sockaddr_storage s |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10747 | ; |
| 10748 | return 0; |
| 10749 | } |
| 10750 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10751 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10752 | ac_cv_struct_sockaddr_storage=yes |
| 10753 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10754 | ac_cv_struct_sockaddr_storage=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +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 |
| 10757 | fi |
| 10758 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_storage" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 10760 | $as_echo "$ac_cv_struct_sockaddr_storage" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10761 | if test $ac_cv_struct_sockaddr_storage = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10762 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10763 | $as_echo "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10764 | |
| 10765 | fi |
| 10766 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10767 | # checks for compiler characteristics |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 10768 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10769 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 10770 | $as_echo_n "checking whether char is unsigned... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10771 | if test "${ac_cv_c_char_unsigned+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 10772 | $as_echo_n "(cached) " >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 10773 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10774 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10775 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10776 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10777 | int |
| 10778 | main () |
| 10779 | { |
| 10780 | static int test_array [1 - 2 * !(((char) -1) < 0)]; |
| 10781 | test_array [0] = 0 |
| 10782 | |
| 10783 | ; |
| 10784 | return 0; |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10785 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10786 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10787 | if ac_fn_c_try_compile "$LINENO"; then : |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10788 | ac_cv_c_char_unsigned=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10789 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10790 | ac_cv_c_char_unsigned=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10791 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10792 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10793 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 10795 | $as_echo "$ac_cv_c_char_unsigned" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10796 | if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10797 | $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10798 | |
| 10799 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 10800 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10801 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 10802 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10803 | if test "${ac_cv_c_const+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 10804 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10805 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10806 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10807 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10808 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10809 | int |
| 10810 | main () |
| 10811 | { |
| 10812 | /* FIXME: Include the comments suggested by Paul. */ |
| 10813 | #ifndef __cplusplus |
| 10814 | /* Ultrix mips cc rejects this. */ |
| 10815 | typedef int charset[2]; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10816 | const charset cs; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10817 | /* SunOS 4.1.1 cc rejects this. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10818 | char const *const *pcpcc; |
| 10819 | char **ppc; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10820 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 10821 | struct point {int x, y;}; |
| 10822 | static struct point const zero = {0,0}; |
| 10823 | /* AIX XL C 1.02.0.0 rejects this. |
| 10824 | It does not let you subtract one const X* pointer from another in |
| 10825 | an arm of an if-expression whose if-part is not a constant |
| 10826 | expression */ |
| 10827 | const char *g = "string"; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10828 | pcpcc = &g + (g ? g-g : 0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10829 | /* HPUX 7.0 cc rejects these. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10830 | ++pcpcc; |
| 10831 | ppc = (char**) pcpcc; |
| 10832 | pcpcc = (char const *const *) ppc; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10833 | { /* SCO 3.2v4 cc rejects this. */ |
| 10834 | char *t; |
| 10835 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10836 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10837 | *t++ = 0; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10838 | if (s) return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10839 | } |
| 10840 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 10841 | int x[] = {25, 17}; |
| 10842 | const int *foo = &x[0]; |
| 10843 | ++foo; |
| 10844 | } |
| 10845 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 10846 | typedef const int *iptr; |
| 10847 | iptr p = 0; |
| 10848 | ++p; |
| 10849 | } |
| 10850 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 10851 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 10852 | struct s { int j; const int *ap[3]; }; |
| 10853 | struct s *b; b->j = 5; |
| 10854 | } |
| 10855 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 10856 | const int foo = 10; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10857 | if (!foo) return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10858 | } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10859 | return !cs[0] && !zero.x; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10860 | #endif |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10861 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10862 | ; |
| 10863 | return 0; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10864 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10865 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10866 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10867 | ac_cv_c_const=yes |
| 10868 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10869 | ac_cv_c_const=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10870 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10871 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10872 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 10874 | $as_echo "$ac_cv_c_const" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10875 | if test $ac_cv_c_const = no; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10876 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10877 | $as_echo "#define const /**/" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10878 | |
| 10879 | fi |
| 10880 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10881 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 10882 | works=no |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10883 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 10884 | $as_echo_n "checking for working volatile... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10885 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10886 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10887 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10888 | int |
| 10889 | main () |
| 10890 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10891 | volatile int x; x = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10892 | ; |
| 10893 | return 0; |
| 10894 | } |
| 10895 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10896 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 10897 | works=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10898 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10899 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10900 | $as_echo "#define volatile /**/" >>confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10901 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 10902 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10903 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10904 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 10906 | $as_echo "$works" >&6; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 10907 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 10908 | works=no |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10909 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working signed char" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 10910 | $as_echo_n "checking for working signed char... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10911 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10912 | /* end confdefs.h. */ |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 10913 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10914 | int |
| 10915 | main () |
| 10916 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10917 | signed char c; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10918 | ; |
| 10919 | return 0; |
| 10920 | } |
| 10921 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10922 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 10923 | works=yes |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 10924 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10925 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10926 | $as_echo "#define signed /**/" >>confdefs.h |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 10927 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 10928 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 10929 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10930 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 10932 | $as_echo "$works" >&6; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 10933 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 10934 | have_prototypes=no |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10935 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prototypes" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 10936 | $as_echo_n "checking for prototypes... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10937 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10938 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 10939 | int foo(int x) { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10940 | int |
| 10941 | main () |
| 10942 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10943 | return foo(10); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10944 | ; |
| 10945 | return 0; |
| 10946 | } |
| 10947 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10948 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10949 | |
| 10950 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10951 | $as_echo "#define HAVE_PROTOTYPES 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10952 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 10953 | have_prototypes=yes |
| 10954 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 10955 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10956 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_prototypes" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 10958 | $as_echo "$have_prototypes" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10959 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 10960 | works=no |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10961 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for variable length prototypes and stdarg.h" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 10962 | $as_echo_n "checking for variable length prototypes and stdarg.h... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10963 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10964 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 10965 | |
| 10966 | #include <stdarg.h> |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 10967 | int foo(int x, ...) { |
| 10968 | va_list va; |
| 10969 | va_start(va, x); |
| 10970 | va_arg(va, int); |
| 10971 | va_arg(va, char *); |
| 10972 | va_arg(va, double); |
| 10973 | return 0; |
| 10974 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 10975 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10976 | int |
| 10977 | main () |
| 10978 | { |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 10979 | return foo(10, "", 3.14); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10980 | ; |
| 10981 | return 0; |
| 10982 | } |
| 10983 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10984 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10985 | |
| 10986 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10987 | $as_echo "#define HAVE_STDARG_PROTOTYPES 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10988 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 10989 | works=yes |
| 10990 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10991 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10992 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 10994 | $as_echo "$works" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10995 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 10996 | # check for socketpair |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10997 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socketpair" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 10998 | $as_echo_n "checking for socketpair... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 10999 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 11000 | /* end confdefs.h. */ |
| 11001 | |
| 11002 | #include <sys/types.h> |
| 11003 | #include <sys/socket.h> |
| 11004 | |
| 11005 | int |
| 11006 | main () |
| 11007 | { |
| 11008 | void *x=socketpair |
| 11009 | ; |
| 11010 | return 0; |
| 11011 | } |
| 11012 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11013 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 11014 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11015 | $as_echo "#define HAVE_SOCKETPAIR 1" >>confdefs.h |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 11016 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11018 | $as_echo "yes" >&6; } |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 11019 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11021 | $as_echo "no" >&6; } |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 11022 | |
| 11023 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11024 | 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] | 11025 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11026 | # check if sockaddr has sa_len member |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11027 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr has sa_len member" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11028 | $as_echo_n "checking if sockaddr has sa_len member... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11029 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11030 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11031 | #include <sys/types.h> |
| 11032 | #include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11033 | int |
| 11034 | main () |
| 11035 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11036 | struct sockaddr x; |
| 11037 | x.sa_len = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11038 | ; |
| 11039 | return 0; |
| 11040 | } |
| 11041 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11042 | if ac_fn_c_try_compile "$LINENO"; then : |
| 11043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11044 | $as_echo "yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11045 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11046 | $as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11047 | |
| 11048 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11049 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11050 | $as_echo "no" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11051 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11052 | 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] | 11053 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11054 | va_list_is_array=no |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11055 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether va_list is an array" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11056 | $as_echo_n "checking whether va_list is an array... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11057 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11058 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11059 | |
| 11060 | #ifdef HAVE_STDARG_PROTOTYPES |
| 11061 | #include <stdarg.h> |
| 11062 | #else |
| 11063 | #include <varargs.h> |
| 11064 | #endif |
| 11065 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11066 | int |
| 11067 | main () |
| 11068 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11069 | va_list list1, list2; list1 = list2; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11070 | ; |
| 11071 | return 0; |
| 11072 | } |
| 11073 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11074 | if ac_fn_c_try_compile "$LINENO"; then : |
| 11075 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11076 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11077 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11078 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11079 | $as_echo "#define VA_LIST_IS_ARRAY 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11080 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11081 | va_list_is_array=yes |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 11082 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11083 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11084 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $va_list_is_array" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11086 | $as_echo "$va_list_is_array" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11087 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11088 | # 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] | 11089 | |
| 11090 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11091 | ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r" |
| 11092 | 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] | 11093 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11094 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 11095 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11096 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 6 args" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11097 | $as_echo_n "checking gethostbyname_r with 6 args... " >&6; } |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11098 | OLD_CFLAGS=$CFLAGS |
| 11099 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11100 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11101 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11102 | |
| 11103 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11104 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11105 | int |
| 11106 | main () |
| 11107 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11108 | |
| 11109 | char *name; |
| 11110 | struct hostent *he, *res; |
| 11111 | char buffer[2048]; |
| 11112 | int buflen = 2048; |
| 11113 | int h_errnop; |
| 11114 | |
| 11115 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11116 | |
| 11117 | ; |
| 11118 | return 0; |
| 11119 | } |
| 11120 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11121 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11122 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11123 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 11124 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11125 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11126 | $as_echo "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11127 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11129 | $as_echo "yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11130 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11131 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11132 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11134 | $as_echo "no" >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11135 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 5 args" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11136 | $as_echo_n "checking gethostbyname_r with 5 args... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11137 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11138 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11139 | |
| 11140 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11141 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11142 | int |
| 11143 | main () |
| 11144 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11145 | |
| 11146 | char *name; |
| 11147 | struct hostent *he; |
| 11148 | char buffer[2048]; |
| 11149 | int buflen = 2048; |
| 11150 | int h_errnop; |
| 11151 | |
| 11152 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11153 | |
| 11154 | ; |
| 11155 | return 0; |
| 11156 | } |
| 11157 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11158 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11159 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11160 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 11161 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11162 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11163 | $as_echo "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11164 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11165 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11166 | $as_echo "yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11167 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11168 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11169 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11171 | $as_echo "no" >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11172 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 3 args" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11173 | $as_echo_n "checking gethostbyname_r with 3 args... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11174 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11175 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11176 | |
| 11177 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11178 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11179 | int |
| 11180 | main () |
| 11181 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11182 | |
| 11183 | char *name; |
| 11184 | struct hostent *he; |
| 11185 | struct hostent_data data; |
| 11186 | |
| 11187 | (void) gethostbyname_r(name, he, &data); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11188 | |
| 11189 | ; |
| 11190 | return 0; |
| 11191 | } |
| 11192 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11193 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11194 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11195 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 11196 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11197 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11198 | $as_echo "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11199 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11201 | $as_echo "yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11202 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11203 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11204 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11206 | $as_echo "no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11207 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11208 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11209 | 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] | 11210 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11211 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11212 | 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] | 11213 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11214 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11215 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11216 | CFLAGS=$OLD_CFLAGS |
| 11217 | |
| 11218 | else |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11219 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11220 | for ac_func in gethostbyname |
| 11221 | do : |
| 11222 | ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" |
| 11223 | if test "x$ac_cv_func_gethostbyname" = x""yes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11224 | cat >>confdefs.h <<_ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11225 | #define HAVE_GETHOSTBYNAME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11226 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11227 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11228 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11229 | done |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11230 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11231 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11232 | fi |
| 11233 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11234 | |
| 11235 | |
| 11236 | |
| 11237 | |
| 11238 | |
| 11239 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11240 | # checks for system services |
| 11241 | # (none yet) |
| 11242 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11243 | # Linux requires this for correct f.p. operations |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11244 | ac_fn_c_check_func "$LINENO" "__fpu_control" "ac_cv_func___fpu_control" |
| 11245 | if test "x$ac_cv_func___fpu_control" = x""yes; then : |
| 11246 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 11247 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11248 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __fpu_control in -lieee" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11249 | $as_echo_n "checking for __fpu_control in -lieee... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11250 | if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11251 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11252 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11253 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11254 | LIBS="-lieee $LIBS" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11255 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11256 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11257 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11258 | /* Override any GCC internal prototype to avoid an error. |
| 11259 | Use char because int might match the return type of a GCC |
| 11260 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11261 | #ifdef __cplusplus |
| 11262 | extern "C" |
| 11263 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11264 | char __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11265 | int |
| 11266 | main () |
| 11267 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11268 | return __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11269 | ; |
| 11270 | return 0; |
| 11271 | } |
| 11272 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11273 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11274 | ac_cv_lib_ieee___fpu_control=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11275 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11276 | ac_cv_lib_ieee___fpu_control=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11277 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11278 | rm -f core conftest.err conftest.$ac_objext \ |
| 11279 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11280 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11281 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ieee___fpu_control" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11283 | $as_echo "$ac_cv_lib_ieee___fpu_control" >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11284 | 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] | 11285 | cat >>confdefs.h <<_ACEOF |
| 11286 | #define HAVE_LIBIEEE 1 |
| 11287 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11288 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11289 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11290 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11291 | fi |
| 11292 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11293 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 11294 | fi |
| 11295 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11296 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11297 | # Check for --with-fpectl |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11298 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-fpectl" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11299 | $as_echo_n "checking for --with-fpectl... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11300 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11301 | # Check whether --with-fpectl was given. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11302 | if test "${with_fpectl+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11303 | withval=$with_fpectl; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11304 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11305 | then |
| 11306 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11307 | $as_echo "#define WANT_SIGFPE_HANDLER 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11308 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11310 | $as_echo "yes" >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11311 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11312 | $as_echo "no" >&6; } |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11313 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 11314 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11316 | $as_echo "no" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11317 | fi |
| 11318 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11319 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11320 | # check for --with-libm=... |
| 11321 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 11322 | case $ac_sys_system in |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 11323 | Darwin) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 11324 | *) LIBM=-lm |
| 11325 | esac |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11326 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libm=STRING" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11327 | $as_echo_n "checking for --with-libm=STRING... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11328 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11329 | # Check whether --with-libm was given. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11330 | if test "${with_libm+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11331 | withval=$with_libm; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11332 | if test "$withval" = no |
| 11333 | then LIBM= |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBM empty" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11335 | $as_echo "force LIBM empty" >&6; } |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11336 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11337 | then LIBM=$withval |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBM=\"$withval\"" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11339 | $as_echo "set LIBM=\"$withval\"" >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11340 | 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] | 11341 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11342 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBM=\"$LIBM\"" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11344 | $as_echo "default LIBM=\"$LIBM\"" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11345 | fi |
| 11346 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11347 | |
| 11348 | # check for --with-libc=... |
| 11349 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11350 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libc=STRING" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11351 | $as_echo_n "checking for --with-libc=STRING... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11352 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11353 | # Check whether --with-libc was given. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11354 | if test "${with_libc+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11355 | withval=$with_libc; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11356 | if test "$withval" = no |
| 11357 | then LIBC= |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBC empty" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11359 | $as_echo "force LIBC empty" >&6; } |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11360 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11361 | then LIBC=$withval |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBC=\"$withval\"" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11363 | $as_echo "set LIBC=\"$withval\"" >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11364 | 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] | 11365 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11366 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBC=\"$LIBC\"" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11368 | $as_echo "default LIBC=\"$LIBC\"" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11369 | fi |
| 11370 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11371 | |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11372 | # ************************************************** |
| 11373 | # * Check for various properties of floating point * |
| 11374 | # ************************************************** |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 11375 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11376 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are little-endian IEEE 754 binary64" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11377 | $as_echo_n "checking whether C doubles are little-endian IEEE 754 binary64... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11378 | if test "${ac_cv_little_endian_double+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11379 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11380 | else |
| 11381 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11382 | if test "$cross_compiling" = yes; then : |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11383 | ac_cv_little_endian_double=no |
| 11384 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11385 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11386 | /* end confdefs.h. */ |
| 11387 | |
| 11388 | #include <string.h> |
| 11389 | int main() { |
| 11390 | double x = 9006104071832581.0; |
| 11391 | if (memcmp(&x, "\x05\x04\x03\x02\x01\xff\x3f\x43", 8) == 0) |
| 11392 | return 0; |
| 11393 | else |
| 11394 | return 1; |
| 11395 | } |
| 11396 | |
| 11397 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11398 | if ac_fn_c_try_run "$LINENO"; then : |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11399 | ac_cv_little_endian_double=yes |
| 11400 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11401 | ac_cv_little_endian_double=no |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11402 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11403 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 11404 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11405 | fi |
| 11406 | |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11407 | fi |
| 11408 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_little_endian_double" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11410 | $as_echo "$ac_cv_little_endian_double" >&6; } |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11411 | if test "$ac_cv_little_endian_double" = yes |
| 11412 | then |
| 11413 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11414 | $as_echo "#define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1" >>confdefs.h |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11415 | |
| 11416 | fi |
| 11417 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11418 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are big-endian IEEE 754 binary64" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11419 | $as_echo_n "checking whether C doubles are big-endian IEEE 754 binary64... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11420 | if test "${ac_cv_big_endian_double+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11421 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11422 | else |
| 11423 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11424 | if test "$cross_compiling" = yes; then : |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11425 | ac_cv_big_endian_double=no |
| 11426 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11427 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11428 | /* end confdefs.h. */ |
| 11429 | |
| 11430 | #include <string.h> |
| 11431 | int main() { |
| 11432 | double x = 9006104071832581.0; |
| 11433 | if (memcmp(&x, "\x43\x3f\xff\x01\x02\x03\x04\x05", 8) == 0) |
| 11434 | return 0; |
| 11435 | else |
| 11436 | return 1; |
| 11437 | } |
| 11438 | |
| 11439 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11440 | if ac_fn_c_try_run "$LINENO"; then : |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11441 | ac_cv_big_endian_double=yes |
| 11442 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11443 | ac_cv_big_endian_double=no |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11444 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11445 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 11446 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11447 | fi |
| 11448 | |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11449 | fi |
| 11450 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_big_endian_double" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11452 | $as_echo "$ac_cv_big_endian_double" >&6; } |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11453 | if test "$ac_cv_big_endian_double" = yes |
| 11454 | then |
| 11455 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11456 | $as_echo "#define DOUBLE_IS_BIG_ENDIAN_IEEE754 1" >>confdefs.h |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11457 | |
| 11458 | fi |
| 11459 | |
| 11460 | # Some ARM platforms use a mixed-endian representation for doubles. |
| 11461 | # While Python doesn't currently have full support for these platforms |
| 11462 | # (see e.g., issue 1762561), we can at least make sure that float <-> string |
| 11463 | # conversions work. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11464 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are ARM mixed-endian IEEE 754 binary64" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11465 | $as_echo_n "checking whether C doubles are ARM mixed-endian IEEE 754 binary64... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11466 | if test "${ac_cv_mixed_endian_double+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11467 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11468 | else |
| 11469 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11470 | if test "$cross_compiling" = yes; then : |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11471 | ac_cv_mixed_endian_double=no |
| 11472 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11473 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11474 | /* end confdefs.h. */ |
| 11475 | |
| 11476 | #include <string.h> |
| 11477 | int main() { |
| 11478 | double x = 9006104071832581.0; |
| 11479 | if (memcmp(&x, "\x01\xff\x3f\x43\x05\x04\x03\x02", 8) == 0) |
| 11480 | return 0; |
| 11481 | else |
| 11482 | return 1; |
| 11483 | } |
| 11484 | |
| 11485 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11486 | if ac_fn_c_try_run "$LINENO"; then : |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11487 | ac_cv_mixed_endian_double=yes |
| 11488 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11489 | ac_cv_mixed_endian_double=no |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11490 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11491 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 11492 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11493 | fi |
| 11494 | |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11495 | fi |
| 11496 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mixed_endian_double" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11498 | $as_echo "$ac_cv_mixed_endian_double" >&6; } |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11499 | if test "$ac_cv_mixed_endian_double" = yes |
| 11500 | then |
| 11501 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11502 | $as_echo "#define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1" >>confdefs.h |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11503 | |
| 11504 | fi |
| 11505 | |
Mark Dickinson | 7abf8d4 | 2009-04-18 20:17:52 +0000 | [diff] [blame] | 11506 | # The short float repr introduced in Python 3.1 requires the |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 11507 | # correctly-rounded string <-> double conversion functions from |
Mark Dickinson | 7abf8d4 | 2009-04-18 20:17:52 +0000 | [diff] [blame] | 11508 | # 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] | 11509 | # rounding; this is a problem on x86, where the x87 FPU has a default |
| 11510 | # rounding precision of 64 bits. For gcc/x86, we try to fix this by |
| 11511 | # using inline assembler to get and set the x87 FPU control word. |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11512 | if test "$GCC" = yes && test -n "`$CC -dM -E - </dev/null | grep i386`" |
| 11513 | then |
Mark Dickinson | 7abf8d4 | 2009-04-18 20:17:52 +0000 | [diff] [blame] | 11514 | # Check that it's okay to use gcc inline assembler to get and set |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 11515 | # x87 control word. It should be, but you never know... |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11516 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set x87 control word" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11517 | $as_echo_n "checking whether we can use gcc inline assembler to get and set x87 control word... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11518 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11519 | /* end confdefs.h. */ |
| 11520 | |
| 11521 | int |
| 11522 | main () |
| 11523 | { |
| 11524 | |
Mark Dickinson | 7abf8d4 | 2009-04-18 20:17:52 +0000 | [diff] [blame] | 11525 | unsigned short cw; |
| 11526 | __asm__ __volatile__ ("fnstcw %0" : "=m" (cw)); |
| 11527 | __asm__ __volatile__ ("fldcw %0" : : "m" (cw)); |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11528 | |
| 11529 | ; |
| 11530 | return 0; |
| 11531 | } |
| 11532 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11533 | if ac_fn_c_try_compile "$LINENO"; then : |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11534 | have_gcc_asm_for_x87=yes |
| 11535 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11536 | have_gcc_asm_for_x87=no |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11537 | fi |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11538 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_x87" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11540 | $as_echo "$have_gcc_asm_for_x87" >&6; } |
Mark Dickinson | 7abf8d4 | 2009-04-18 20:17:52 +0000 | [diff] [blame] | 11541 | if test "$have_gcc_asm_for_x87" = yes |
| 11542 | then |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11543 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11544 | $as_echo "#define HAVE_GCC_ASM_FOR_X87 1" >>confdefs.h |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11545 | |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11546 | fi |
| 11547 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11548 | |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 11549 | # Detect whether system arithmetic is subject to x87-style double |
| 11550 | # rounding issues. The result of this test has little meaning on non |
| 11551 | # IEEE 754 platforms. On IEEE 754, test should return 1 if rounding |
| 11552 | # mode is round-to-nearest and double rounding issues are present, and |
| 11553 | # 0 otherwise. See http://bugs.python.org/issue2937 for more info. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11554 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x87-style double rounding" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11555 | $as_echo_n "checking for x87-style double rounding... " >&6; } |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11556 | # $BASECFLAGS may affect the result |
| 11557 | ac_save_cc="$CC" |
| 11558 | CC="$CC $BASECFLAGS" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11559 | if test "$cross_compiling" = yes; then : |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 11560 | ac_cv_x87_double_rounding=no |
| 11561 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11562 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 11563 | /* end confdefs.h. */ |
| 11564 | |
| 11565 | #include <stdlib.h> |
| 11566 | #include <math.h> |
| 11567 | int main() { |
| 11568 | volatile double x, y, z; |
| 11569 | /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */ |
| 11570 | x = 0.99999999999999989; /* 1-2**-53 */ |
| 11571 | y = 1./x; |
| 11572 | if (y != 1.) |
| 11573 | exit(0); |
| 11574 | /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */ |
| 11575 | x = 1e16; |
| 11576 | y = 2.99999; |
| 11577 | z = x + y; |
| 11578 | if (z != 1e16+4.) |
| 11579 | exit(0); |
| 11580 | /* both tests show evidence of double rounding */ |
| 11581 | exit(1); |
| 11582 | } |
| 11583 | |
| 11584 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11585 | if ac_fn_c_try_run "$LINENO"; then : |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 11586 | ac_cv_x87_double_rounding=no |
| 11587 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11588 | ac_cv_x87_double_rounding=yes |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 11589 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11590 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 11591 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 11592 | fi |
| 11593 | |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11594 | CC="$ac_save_cc" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_x87_double_rounding" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11596 | $as_echo "$ac_cv_x87_double_rounding" >&6; } |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 11597 | if test "$ac_cv_x87_double_rounding" = yes |
| 11598 | then |
| 11599 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11600 | $as_echo "#define X87_DOUBLE_ROUNDING 1" >>confdefs.h |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 11601 | |
| 11602 | fi |
| 11603 | |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11604 | # ************************************ |
| 11605 | # * Check for mathematical functions * |
| 11606 | # ************************************ |
| 11607 | |
| 11608 | LIBS_SAVE=$LIBS |
| 11609 | LIBS="$LIBS $LIBM" |
| 11610 | |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 11611 | # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of |
| 11612 | # -0. on some architectures. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11613 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tanh preserves the sign of zero" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11614 | $as_echo_n "checking whether tanh preserves the sign of zero... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11615 | if test "${ac_cv_tanh_preserves_zero_sign+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11616 | $as_echo_n "(cached) " >&6 |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 11617 | else |
| 11618 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11619 | if test "$cross_compiling" = yes; then : |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 11620 | ac_cv_tanh_preserves_zero_sign=no |
| 11621 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11622 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 11623 | /* end confdefs.h. */ |
| 11624 | |
| 11625 | #include <math.h> |
| 11626 | #include <stdlib.h> |
| 11627 | int main() { |
| 11628 | /* return 0 if either negative zeros don't exist |
| 11629 | on this platform or if negative zeros exist |
| 11630 | and tanh(-0.) == -0. */ |
| 11631 | if (atan2(0., -1.) == atan2(-0., -1.) || |
| 11632 | atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0); |
| 11633 | else exit(1); |
| 11634 | } |
| 11635 | |
| 11636 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11637 | if ac_fn_c_try_run "$LINENO"; then : |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 11638 | ac_cv_tanh_preserves_zero_sign=yes |
| 11639 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11640 | ac_cv_tanh_preserves_zero_sign=no |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 11641 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11642 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 11643 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 11644 | fi |
| 11645 | |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 11646 | fi |
| 11647 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tanh_preserves_zero_sign" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11649 | $as_echo "$ac_cv_tanh_preserves_zero_sign" >&6; } |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 11650 | if test "$ac_cv_tanh_preserves_zero_sign" = yes |
| 11651 | then |
| 11652 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11653 | $as_echo "#define TANH_PRESERVES_ZERO_SIGN 1" >>confdefs.h |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 11654 | |
| 11655 | fi |
| 11656 | |
Mark Dickinson | f253786 | 2009-04-18 13:58:18 +0000 | [diff] [blame] | 11657 | for ac_func in acosh asinh atanh copysign expm1 finite hypot log1p round |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11658 | do : |
| 11659 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11660 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 11661 | eval as_val=\$$as_ac_var |
| 11662 | if test "x$as_val" = x""yes; then : |
Christian Heimes | 99170a5 | 2007-12-19 02:07:34 +0000 | [diff] [blame] | 11663 | cat >>confdefs.h <<_ACEOF |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11664 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Christian Heimes | 99170a5 | 2007-12-19 02:07:34 +0000 | [diff] [blame] | 11665 | _ACEOF |
| 11666 | |
| 11667 | fi |
| 11668 | done |
| 11669 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11670 | ac_fn_c_check_decl "$LINENO" "isinf" "ac_cv_have_decl_isinf" "#include <math.h> |
| 11671 | " |
| 11672 | if test "x$ac_cv_have_decl_isinf" = x""yes; then : |
| 11673 | ac_have_decl=1 |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 11674 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11675 | ac_have_decl=0 |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 11676 | fi |
| 11677 | |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 11678 | cat >>confdefs.h <<_ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11679 | #define HAVE_DECL_ISINF $ac_have_decl |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 11680 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11681 | ac_fn_c_check_decl "$LINENO" "isnan" "ac_cv_have_decl_isnan" "#include <math.h> |
| 11682 | " |
| 11683 | if test "x$ac_cv_have_decl_isnan" = x""yes; then : |
| 11684 | ac_have_decl=1 |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 11685 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11686 | ac_have_decl=0 |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 11687 | fi |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 11688 | |
| 11689 | cat >>confdefs.h <<_ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11690 | #define HAVE_DECL_ISNAN $ac_have_decl |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 11691 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11692 | ac_fn_c_check_decl "$LINENO" "isfinite" "ac_cv_have_decl_isfinite" "#include <math.h> |
| 11693 | " |
| 11694 | if test "x$ac_cv_have_decl_isfinite" = x""yes; then : |
| 11695 | ac_have_decl=1 |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 11696 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11697 | ac_have_decl=0 |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 11698 | fi |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 11699 | |
| 11700 | cat >>confdefs.h <<_ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11701 | #define HAVE_DECL_ISFINITE $ac_have_decl |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 11702 | _ACEOF |
| 11703 | |
| 11704 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 11705 | LIBS=$LIBS_SAVE |
| 11706 | |
Mark Dickinson | 875ada4 | 2009-11-28 12:52:39 +0000 | [diff] [blame] | 11707 | # For multiprocessing module, check that sem_open |
| 11708 | # actually works. For FreeBSD versions <= 7.2, |
| 11709 | # the kernel module that provides POSIX semaphores |
| 11710 | # isn't loaded by default, so an attempt to call |
| 11711 | # sem_open results in a 'Signal 12' error. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11712 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX semaphores are enabled" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11713 | $as_echo_n "checking whether POSIX semaphores are enabled... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11714 | if test "${ac_cv_posix_semaphores_enabled+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11715 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | 875ada4 | 2009-11-28 12:52:39 +0000 | [diff] [blame] | 11716 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11717 | if test "$cross_compiling" = yes; then : |
Mark Dickinson | 875ada4 | 2009-11-28 12:52:39 +0000 | [diff] [blame] | 11718 | ac_cv_posix_semaphores_enabled=yes |
| 11719 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11720 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | 875ada4 | 2009-11-28 12:52:39 +0000 | [diff] [blame] | 11721 | /* end confdefs.h. */ |
| 11722 | |
| 11723 | #include <unistd.h> |
| 11724 | #include <fcntl.h> |
| 11725 | #include <stdio.h> |
| 11726 | #include <semaphore.h> |
| 11727 | #include <sys/stat.h> |
| 11728 | |
| 11729 | int main(void) { |
| 11730 | sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0); |
| 11731 | if (a == SEM_FAILED) { |
| 11732 | perror("sem_open"); |
| 11733 | return 1; |
| 11734 | } |
| 11735 | sem_close(a); |
Mark Dickinson | 62eda4d | 2009-12-13 21:18:16 +0000 | [diff] [blame] | 11736 | sem_unlink("/autoconf"); |
Mark Dickinson | 875ada4 | 2009-11-28 12:52:39 +0000 | [diff] [blame] | 11737 | return 0; |
| 11738 | } |
| 11739 | |
| 11740 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11741 | if ac_fn_c_try_run "$LINENO"; then : |
Mark Dickinson | 875ada4 | 2009-11-28 12:52:39 +0000 | [diff] [blame] | 11742 | ac_cv_posix_semaphores_enabled=yes |
| 11743 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11744 | ac_cv_posix_semaphores_enabled=no |
Mark Dickinson | 875ada4 | 2009-11-28 12:52:39 +0000 | [diff] [blame] | 11745 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11746 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 11747 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Mark Dickinson | 875ada4 | 2009-11-28 12:52:39 +0000 | [diff] [blame] | 11748 | fi |
| 11749 | |
| 11750 | |
Mark Dickinson | 875ada4 | 2009-11-28 12:52:39 +0000 | [diff] [blame] | 11751 | fi |
| 11752 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_semaphores_enabled" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11754 | $as_echo "$ac_cv_posix_semaphores_enabled" >&6; } |
Mark Dickinson | 875ada4 | 2009-11-28 12:52:39 +0000 | [diff] [blame] | 11755 | if test $ac_cv_posix_semaphores_enabled = no |
| 11756 | then |
| 11757 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11758 | $as_echo "#define POSIX_SEMAPHORES_NOT_ENABLED 1" >>confdefs.h |
Mark Dickinson | 875ada4 | 2009-11-28 12:52:39 +0000 | [diff] [blame] | 11759 | |
| 11760 | fi |
| 11761 | |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 11762 | # Multiprocessing check for broken sem_getvalue |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11763 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken sem_getvalue" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11764 | $as_echo_n "checking for broken sem_getvalue... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11765 | if test "$cross_compiling" = yes; then : |
| 11766 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11767 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11768 | as_fn_error "cannot run test program while cross compiling |
| 11769 | See \`config.log' for more details." "$LINENO" 5; } |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 11770 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11771 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 11772 | /* end confdefs.h. */ |
| 11773 | |
| 11774 | #include <unistd.h> |
| 11775 | #include <fcntl.h> |
| 11776 | #include <stdio.h> |
| 11777 | #include <semaphore.h> |
| 11778 | #include <sys/stat.h> |
| 11779 | |
| 11780 | int main(void){ |
Mark Dickinson | 62eda4d | 2009-12-13 21:18:16 +0000 | [diff] [blame] | 11781 | 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] | 11782 | int count; |
| 11783 | int res; |
| 11784 | if(a==SEM_FAILED){ |
| 11785 | perror("sem_open"); |
| 11786 | return 1; |
| 11787 | |
| 11788 | } |
| 11789 | res = sem_getvalue(a, &count); |
| 11790 | sem_close(a); |
Mark Dickinson | 62eda4d | 2009-12-13 21:18:16 +0000 | [diff] [blame] | 11791 | sem_unlink("/autocftw"); |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 11792 | return res==-1 ? 1 : 0; |
| 11793 | } |
| 11794 | |
| 11795 | |
| 11796 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11797 | if ac_fn_c_try_run "$LINENO"; then : |
| 11798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11799 | $as_echo "no" >&6; } |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 11800 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11802 | $as_echo "yes" >&6; } |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 11803 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11804 | $as_echo "#define HAVE_BROKEN_SEM_GETVALUE 1" >>confdefs.h |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 11805 | |
| 11806 | |
| 11807 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11808 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 11809 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 11810 | fi |
| 11811 | |
| 11812 | |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 11813 | # determine what size digit to use for Python's longs |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11814 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking digit size for Python's longs" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11815 | $as_echo_n "checking digit size for Python's longs... " >&6; } |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 11816 | # Check whether --enable-big-digits was given. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11817 | if test "${enable_big_digits+set}" = set; then : |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 11818 | enableval=$enable_big_digits; case $enable_big_digits in |
| 11819 | yes) |
| 11820 | enable_big_digits=30 ;; |
| 11821 | no) |
| 11822 | enable_big_digits=15 ;; |
| 11823 | 15|30) |
| 11824 | ;; |
| 11825 | *) |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11826 | 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] | 11827 | esac |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_big_digits" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11829 | $as_echo "$enable_big_digits" >&6; } |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 11830 | |
| 11831 | cat >>confdefs.h <<_ACEOF |
| 11832 | #define PYLONG_BITS_IN_DIGIT $enable_big_digits |
| 11833 | _ACEOF |
| 11834 | |
| 11835 | |
| 11836 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11838 | $as_echo "no value specified" >&6; } |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 11839 | fi |
| 11840 | |
| 11841 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 11842 | # check for wchar.h |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11843 | ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default" |
| 11844 | 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] | 11845 | |
| 11846 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11847 | $as_echo "#define HAVE_WCHAR_H 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11848 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 11849 | wchar_h="yes" |
| 11850 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 11851 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11852 | wchar_h="no" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 11853 | |
| 11854 | fi |
| 11855 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11856 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11857 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 11858 | # determine wchar_t size |
| 11859 | if test "$wchar_h" = yes |
| 11860 | then |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11861 | # 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] | 11862 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 11863 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 11864 | # This bug is HP SR number 8606223364. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11865 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11866 | $as_echo_n "checking size of wchar_t... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11867 | if test "${ac_cv_sizeof_wchar_t+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11868 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11869 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11870 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" "#include <wchar.h> |
| 11871 | "; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11872 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11873 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11874 | if test "$ac_cv_type_wchar_t" = yes; then |
| 11875 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11876 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11877 | { as_fn_set_status 77 |
| 11878 | as_fn_error "cannot compute sizeof (wchar_t) |
| 11879 | See \`config.log' for more details." "$LINENO" 5; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11880 | else |
| 11881 | ac_cv_sizeof_wchar_t=0 |
| 11882 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11883 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11884 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11885 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11887 | $as_echo "$ac_cv_sizeof_wchar_t" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11888 | |
| 11889 | |
| 11890 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11891 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 11892 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11893 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 11894 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11895 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 11896 | fi |
| 11897 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11898 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UCS-4 tcl" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11899 | $as_echo_n "checking for UCS-4 tcl... " >&6; } |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 11900 | have_ucs4_tcl=no |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11901 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11902 | /* end confdefs.h. */ |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 11903 | |
| 11904 | #include <tcl.h> |
| 11905 | #if TCL_UTF_MAX != 6 |
| 11906 | # error "NOT UCS4_TCL" |
| 11907 | #endif |
| 11908 | int |
| 11909 | main () |
| 11910 | { |
| 11911 | |
| 11912 | ; |
| 11913 | return 0; |
| 11914 | } |
| 11915 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11916 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 11917 | |
| 11918 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11919 | $as_echo "#define HAVE_UCS4_TCL 1" >>confdefs.h |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 11920 | |
| 11921 | have_ucs4_tcl=yes |
| 11922 | |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 11923 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11924 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ucs4_tcl" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11926 | $as_echo "$have_ucs4_tcl" >&6; } |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 11927 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11928 | # check whether wchar_t is signed or not |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 11929 | if test "$wchar_h" = yes |
| 11930 | then |
| 11931 | # check whether wchar_t is signed or not |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11932 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wchar_t is signed" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11933 | $as_echo_n "checking whether wchar_t is signed... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11934 | if test "${ac_cv_wchar_t_signed+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11935 | $as_echo_n "(cached) " >&6 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 11936 | else |
| 11937 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11938 | if test "$cross_compiling" = yes; then : |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 11939 | ac_cv_wchar_t_signed=yes |
| 11940 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11941 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11942 | /* end confdefs.h. */ |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 11943 | |
| 11944 | #include <wchar.h> |
| 11945 | int main() |
| 11946 | { |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 11947 | /* Success: exit code 0 */ |
| 11948 | exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1); |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 11949 | } |
| 11950 | |
| 11951 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11952 | if ac_fn_c_try_run "$LINENO"; then : |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 11953 | ac_cv_wchar_t_signed=yes |
| 11954 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11955 | ac_cv_wchar_t_signed=no |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 11956 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11957 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 11958 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 11959 | fi |
| 11960 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 11961 | fi |
| 11962 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_wchar_t_signed" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11964 | $as_echo "$ac_cv_wchar_t_signed" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11965 | fi |
| 11966 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11967 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking what type to use for str" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 11968 | $as_echo_n "checking what type to use for str... " >&6; } |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 11969 | |
| 11970 | # Check whether --with-wide-unicode was given. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11971 | if test "${with_wide_unicode+set}" = set; then : |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 11972 | withval=$with_wide_unicode; |
| 11973 | if test "$withval" != no |
| 11974 | then unicode_size="4" |
| 11975 | else unicode_size="2" |
| 11976 | fi |
| 11977 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 11978 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11979 | |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 11980 | case "$have_ucs4_tcl" in |
| 11981 | yes) unicode_size="4" ;; |
| 11982 | *) unicode_size="2" ;; |
| 11983 | esac |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 11984 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 11985 | fi |
| 11986 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 11987 | |
| 11988 | |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 11989 | case "$unicode_size" in |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11990 | 4) $as_echo "#define Py_UNICODE_SIZE 4" >>confdefs.h |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 11991 | ;; |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 11992 | *) $as_echo "#define Py_UNICODE_SIZE 2" >>confdefs.h |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 11993 | ;; |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 11994 | esac |
| 11995 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11996 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11997 | |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 11998 | # wchar_t is only usable if it maps to an unsigned type |
| 11999 | if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \ |
Matthias Klose | 7dbeed7 | 2004-12-24 08:22:17 +0000 | [diff] [blame] | 12000 | -a "$ac_cv_wchar_t_signed" = "no" |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 12001 | then |
| 12002 | PY_UNICODE_TYPE="wchar_t" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12003 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12004 | $as_echo "#define HAVE_USABLE_WCHAR_T 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12005 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12006 | $as_echo "#define PY_UNICODE_TYPE wchar_t" >>confdefs.h |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12007 | |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 12008 | elif test "$ac_cv_sizeof_short" = "$unicode_size" |
| 12009 | then |
| 12010 | PY_UNICODE_TYPE="unsigned short" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12011 | $as_echo "#define PY_UNICODE_TYPE unsigned short" >>confdefs.h |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12012 | |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 12013 | elif test "$ac_cv_sizeof_long" = "$unicode_size" |
| 12014 | then |
| 12015 | PY_UNICODE_TYPE="unsigned long" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12016 | $as_echo "#define PY_UNICODE_TYPE unsigned long" >>confdefs.h |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12017 | |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 12018 | else |
| 12019 | PY_UNICODE_TYPE="no type found" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12020 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12021 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PY_UNICODE_TYPE" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12022 | $as_echo "$PY_UNICODE_TYPE" >&6; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12023 | |
| 12024 | # check for endianness |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12025 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12026 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12027 | if test "${ac_cv_c_bigendian+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12028 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12029 | else |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12030 | ac_cv_c_bigendian=unknown |
| 12031 | # See if we're dealing with a universal compiler. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12032 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12033 | /* end confdefs.h. */ |
| 12034 | #ifndef __APPLE_CC__ |
| 12035 | not a universal capable compiler |
| 12036 | #endif |
| 12037 | typedef int dummy; |
| 12038 | |
| 12039 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12040 | if ac_fn_c_try_compile "$LINENO"; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12041 | |
| 12042 | # Check for potential -arch flags. It is not universal unless |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12043 | # there are at least two -arch flags with different values. |
| 12044 | ac_arch= |
| 12045 | ac_prev= |
| 12046 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do |
| 12047 | if test -n "$ac_prev"; then |
| 12048 | case $ac_word in |
| 12049 | i?86 | x86_64 | ppc | ppc64) |
| 12050 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then |
| 12051 | ac_arch=$ac_word |
| 12052 | else |
| 12053 | ac_cv_c_bigendian=universal |
| 12054 | break |
| 12055 | fi |
| 12056 | ;; |
| 12057 | esac |
| 12058 | ac_prev= |
| 12059 | elif test "x$ac_word" = "x-arch"; then |
| 12060 | ac_prev=arch |
| 12061 | fi |
| 12062 | done |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12063 | fi |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12064 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12065 | if test $ac_cv_c_bigendian = unknown; then |
| 12066 | # See if sys/param.h defines the BYTE_ORDER macro. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12067 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12068 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12069 | #include <sys/types.h> |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12070 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12071 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12072 | int |
| 12073 | main () |
| 12074 | { |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12075 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
| 12076 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ |
| 12077 | && LITTLE_ENDIAN) |
| 12078 | bogus endian macros |
| 12079 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12080 | |
| 12081 | ; |
| 12082 | return 0; |
| 12083 | } |
| 12084 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12085 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12086 | # It does; now see whether it defined to BIG_ENDIAN or not. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12087 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12088 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12089 | #include <sys/types.h> |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12090 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12091 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12092 | int |
| 12093 | main () |
| 12094 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12095 | #if BYTE_ORDER != BIG_ENDIAN |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12096 | not big endian |
| 12097 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12098 | |
| 12099 | ; |
| 12100 | return 0; |
| 12101 | } |
| 12102 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12103 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12104 | ac_cv_c_bigendian=yes |
| 12105 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12106 | ac_cv_c_bigendian=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12107 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12108 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12109 | fi |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12110 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12111 | fi |
| 12112 | if test $ac_cv_c_bigendian = unknown; then |
| 12113 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12114 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12115 | /* end confdefs.h. */ |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12116 | #include <limits.h> |
| 12117 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12118 | int |
| 12119 | main () |
| 12120 | { |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12121 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
| 12122 | bogus endian macros |
| 12123 | #endif |
| 12124 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12125 | ; |
| 12126 | return 0; |
| 12127 | } |
| 12128 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12129 | if ac_fn_c_try_compile "$LINENO"; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12130 | # It does; now see whether it defined to _BIG_ENDIAN or not. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12131 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12132 | /* end confdefs.h. */ |
| 12133 | #include <limits.h> |
| 12134 | |
| 12135 | int |
| 12136 | main () |
| 12137 | { |
| 12138 | #ifndef _BIG_ENDIAN |
| 12139 | not big endian |
| 12140 | #endif |
| 12141 | |
| 12142 | ; |
| 12143 | return 0; |
| 12144 | } |
| 12145 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12146 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12147 | ac_cv_c_bigendian=yes |
Benjamin Peterson | a833206 | 2009-09-11 22:36:27 +0000 | [diff] [blame] | 12148 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12149 | ac_cv_c_bigendian=no |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12150 | fi |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12151 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12152 | fi |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12153 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12154 | fi |
| 12155 | if test $ac_cv_c_bigendian = unknown; then |
| 12156 | # Compile a test program. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12157 | if test "$cross_compiling" = yes; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12158 | # Try to guess by grepping values from an object file. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12159 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12160 | /* end confdefs.h. */ |
| 12161 | short int ascii_mm[] = |
| 12162 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 12163 | short int ascii_ii[] = |
| 12164 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 12165 | int use_ascii (int i) { |
| 12166 | return ascii_mm[i] + ascii_ii[i]; |
| 12167 | } |
| 12168 | short int ebcdic_ii[] = |
| 12169 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 12170 | short int ebcdic_mm[] = |
| 12171 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 12172 | int use_ebcdic (int i) { |
| 12173 | return ebcdic_mm[i] + ebcdic_ii[i]; |
| 12174 | } |
| 12175 | extern int foo; |
| 12176 | |
| 12177 | int |
| 12178 | main () |
| 12179 | { |
| 12180 | return use_ascii (foo) == use_ebcdic (foo); |
| 12181 | ; |
| 12182 | return 0; |
| 12183 | } |
| 12184 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12185 | if ac_fn_c_try_compile "$LINENO"; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12186 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then |
| 12187 | ac_cv_c_bigendian=yes |
| 12188 | fi |
| 12189 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 12190 | if test "$ac_cv_c_bigendian" = unknown; then |
| 12191 | ac_cv_c_bigendian=no |
| 12192 | else |
| 12193 | # finding both strings is unlikely to happen, but who knows? |
| 12194 | ac_cv_c_bigendian=unknown |
| 12195 | fi |
| 12196 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12197 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12198 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12199 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12200 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12201 | /* end confdefs.h. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12202 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12203 | int |
| 12204 | main () |
| 12205 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12206 | |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12207 | /* Are we little or big endian? From Harbison&Steele. */ |
| 12208 | union |
| 12209 | { |
| 12210 | long int l; |
| 12211 | char c[sizeof (long int)]; |
| 12212 | } u; |
| 12213 | u.l = 1; |
| 12214 | return u.c[sizeof (long int) - 1] == 1; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12215 | |
| 12216 | ; |
| 12217 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12218 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12219 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12220 | if ac_fn_c_try_run "$LINENO"; then : |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12221 | ac_cv_c_bigendian=no |
| 12222 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12223 | ac_cv_c_bigendian=yes |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12224 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12225 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 12226 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12227 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12228 | |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12229 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12230 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12232 | $as_echo "$ac_cv_c_bigendian" >&6; } |
| 12233 | case $ac_cv_c_bigendian in #( |
| 12234 | yes) |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12235 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12236 | ;; #( |
| 12237 | no) |
| 12238 | ;; #( |
| 12239 | universal) |
| 12240 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12241 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12242 | |
| 12243 | ;; #( |
| 12244 | *) |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12245 | as_fn_error "unknown endianness |
| 12246 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12247 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12248 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12249 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 12250 | # Check whether right shifting a negative integer extends the sign bit |
| 12251 | # or fills with zeros (like the Cray J90, according to Tim Peters). |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12252 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether right shift extends the sign bit" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12253 | $as_echo_n "checking whether right shift extends the sign bit... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12254 | if test "${ac_cv_rshift_extends_sign+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12255 | $as_echo_n "(cached) " >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 12256 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12257 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12258 | if test "$cross_compiling" = yes; then : |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 12259 | ac_cv_rshift_extends_sign=yes |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 12260 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12261 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12262 | /* end confdefs.h. */ |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 12263 | |
| 12264 | int main() |
| 12265 | { |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 12266 | exit(((-1)>>3 == -1) ? 0 : 1); |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 12267 | } |
| 12268 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12269 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12270 | if ac_fn_c_try_run "$LINENO"; then : |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 12271 | ac_cv_rshift_extends_sign=yes |
| 12272 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12273 | ac_cv_rshift_extends_sign=no |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 12274 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12275 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 12276 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 12277 | fi |
| 12278 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12279 | fi |
| 12280 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rshift_extends_sign" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12282 | $as_echo "$ac_cv_rshift_extends_sign" >&6; } |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 12283 | if test "$ac_cv_rshift_extends_sign" = no |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 12284 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12285 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12286 | $as_echo "#define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1" >>confdefs.h |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 12287 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 12288 | fi |
| 12289 | |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 12290 | # check for getc_unlocked and related locking functions |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12291 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getc_unlocked() and friends" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12292 | $as_echo_n "checking for getc_unlocked() and friends... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12293 | if test "${ac_cv_have_getc_unlocked+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12294 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 12295 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12296 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12297 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12298 | /* end confdefs.h. */ |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 12299 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12300 | int |
| 12301 | main () |
| 12302 | { |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 12303 | |
| 12304 | FILE *f = fopen("/dev/null", "r"); |
| 12305 | flockfile(f); |
| 12306 | getc_unlocked(f); |
| 12307 | funlockfile(f); |
| 12308 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12309 | ; |
| 12310 | return 0; |
| 12311 | } |
| 12312 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12313 | if ac_fn_c_try_link "$LINENO"; then : |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 12314 | ac_cv_have_getc_unlocked=yes |
| 12315 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12316 | ac_cv_have_getc_unlocked=no |
| 12317 | fi |
| 12318 | rm -f core conftest.err conftest.$ac_objext \ |
| 12319 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 12320 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12321 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12322 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getc_unlocked" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12323 | $as_echo "$ac_cv_have_getc_unlocked" >&6; } |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 12324 | if test "$ac_cv_have_getc_unlocked" = yes |
| 12325 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12326 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12327 | $as_echo "#define HAVE_GETC_UNLOCKED 1" >>confdefs.h |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 12328 | |
| 12329 | fi |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 12330 | |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 12331 | # check where readline lives |
Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 12332 | # save the value of LIBS so we don't actually link Python with readline |
| 12333 | LIBS_no_readline=$LIBS |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 12334 | |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 12335 | # On some systems we need to link readline to a termcap compatible |
| 12336 | # library. NOTE: Keep the precedence of listed libraries synchronised |
| 12337 | # with setup.py. |
| 12338 | py_cv_lib_readline=no |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12339 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link readline libs" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12340 | $as_echo_n "checking how to link readline libs... " >&6; } |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 12341 | for py_libtermcap in "" ncursesw ncurses curses termcap; do |
| 12342 | if test -z "$py_libtermcap"; then |
| 12343 | READLINE_LIBS="-lreadline" |
| 12344 | else |
| 12345 | READLINE_LIBS="-lreadline -l$py_libtermcap" |
| 12346 | fi |
| 12347 | LIBS="$READLINE_LIBS $LIBS_no_readline" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12348 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 12349 | /* end confdefs.h. */ |
| 12350 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12351 | /* Override any GCC internal prototype to avoid an error. |
| 12352 | Use char because int might match the return type of a GCC |
| 12353 | builtin and then its argument prototype would still apply. */ |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 12354 | #ifdef __cplusplus |
| 12355 | extern "C" |
| 12356 | #endif |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 12357 | char readline (); |
| 12358 | int |
| 12359 | main () |
| 12360 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12361 | return readline (); |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 12362 | ; |
| 12363 | return 0; |
| 12364 | } |
| 12365 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12366 | if ac_fn_c_try_link "$LINENO"; then : |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 12367 | py_cv_lib_readline=yes |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 12368 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12369 | rm -f core conftest.err conftest.$ac_objext \ |
| 12370 | conftest$ac_exeext conftest.$ac_ext |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 12371 | if test $py_cv_lib_readline = yes; then |
| 12372 | break |
| 12373 | fi |
| 12374 | done |
| 12375 | # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts |
| 12376 | #AC_SUBST([READLINE_LIBS]) |
Gregory P. Smith | 3856c37 | 2008-09-07 19:24:00 +0000 | [diff] [blame] | 12377 | if test $py_cv_lib_readline = no; then |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12379 | $as_echo "none" >&6; } |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 12380 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE_LIBS" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12382 | $as_echo "$READLINE_LIBS" >&6; } |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 12383 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12384 | $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 12385 | |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 12386 | fi |
| 12387 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12388 | # check for readline 2.1 |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12389 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_callback_handler_install in -lreadline" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12390 | $as_echo_n "checking for rl_callback_handler_install in -lreadline... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12391 | if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12392 | $as_echo_n "(cached) " >&6 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12393 | else |
| 12394 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 12395 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12396 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12397 | /* end confdefs.h. */ |
| 12398 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12399 | /* Override any GCC internal prototype to avoid an error. |
| 12400 | Use char because int might match the return type of a GCC |
| 12401 | builtin and then its argument prototype would still apply. */ |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12402 | #ifdef __cplusplus |
| 12403 | extern "C" |
| 12404 | #endif |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12405 | char rl_callback_handler_install (); |
| 12406 | int |
| 12407 | main () |
| 12408 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12409 | return rl_callback_handler_install (); |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12410 | ; |
| 12411 | return 0; |
| 12412 | } |
| 12413 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12414 | if ac_fn_c_try_link "$LINENO"; then : |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12415 | ac_cv_lib_readline_rl_callback_handler_install=yes |
| 12416 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12417 | ac_cv_lib_readline_rl_callback_handler_install=no |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12418 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12419 | rm -f core conftest.err conftest.$ac_objext \ |
| 12420 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12421 | LIBS=$ac_check_lib_save_LIBS |
| 12422 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12423 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12424 | $as_echo "$ac_cv_lib_readline_rl_callback_handler_install" >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12425 | 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] | 12426 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12427 | $as_echo "#define HAVE_RL_CALLBACK 1" >>confdefs.h |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12428 | |
| 12429 | fi |
| 12430 | |
| 12431 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 12432 | # check for readline 2.2 |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12433 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12434 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 12435 | #include <readline/readline.h> |
| 12436 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12437 | if ac_fn_c_try_cpp "$LINENO"; then : |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 12438 | have_readline=yes |
| 12439 | else |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 12440 | have_readline=no |
| 12441 | fi |
| 12442 | rm -f conftest.err conftest.$ac_ext |
| 12443 | if test $have_readline = yes |
| 12444 | then |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12445 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12446 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 12447 | #include <readline/readline.h> |
| 12448 | |
| 12449 | _ACEOF |
| 12450 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12451 | $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] | 12452 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12453 | $as_echo "#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1" >>confdefs.h |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 12454 | |
| 12455 | fi |
Jesus Cea | 0f752ee | 2010-04-28 12:03:06 +0000 | [diff] [blame] | 12456 | rm -f conftest* |
Antoine Pitrou | 3727600 | 2009-10-26 19:32:51 +0000 | [diff] [blame] | 12457 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12458 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Antoine Pitrou | 3727600 | 2009-10-26 19:32:51 +0000 | [diff] [blame] | 12459 | /* end confdefs.h. */ |
| 12460 | #include <readline/readline.h> |
| 12461 | |
| 12462 | _ACEOF |
| 12463 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12464 | $EGREP "extern int rl_completion_suppress_append;" >/dev/null 2>&1; then : |
Antoine Pitrou | 3727600 | 2009-10-26 19:32:51 +0000 | [diff] [blame] | 12465 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12466 | $as_echo "#define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1" >>confdefs.h |
Antoine Pitrou | 3727600 | 2009-10-26 19:32:51 +0000 | [diff] [blame] | 12467 | |
| 12468 | fi |
Jesus Cea | 0f752ee | 2010-04-28 12:03:06 +0000 | [diff] [blame] | 12469 | rm -f conftest* |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 12470 | |
| 12471 | fi |
| 12472 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 12473 | # check for readline 4.0 |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12474 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_pre_input_hook in -lreadline" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12475 | $as_echo_n "checking for rl_pre_input_hook in -lreadline... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12476 | if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12477 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 12478 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12479 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 12480 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12481 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12482 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12483 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12484 | /* Override any GCC internal prototype to avoid an error. |
| 12485 | Use char because int might match the return type of a GCC |
| 12486 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12487 | #ifdef __cplusplus |
| 12488 | extern "C" |
| 12489 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12490 | char rl_pre_input_hook (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12491 | int |
| 12492 | main () |
| 12493 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12494 | return rl_pre_input_hook (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12495 | ; |
| 12496 | return 0; |
| 12497 | } |
| 12498 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12499 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12500 | ac_cv_lib_readline_rl_pre_input_hook=yes |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 12501 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12502 | ac_cv_lib_readline_rl_pre_input_hook=no |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 12503 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12504 | rm -f core conftest.err conftest.$ac_objext \ |
| 12505 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12506 | LIBS=$ac_check_lib_save_LIBS |
| 12507 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12508 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12509 | $as_echo "$ac_cv_lib_readline_rl_pre_input_hook" >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12510 | 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] | 12511 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12512 | $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] | 12513 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 12514 | fi |
| 12515 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12516 | |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 12517 | # also in 4.0 |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12518 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_display_matches_hook in -lreadline" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12519 | $as_echo_n "checking for rl_completion_display_matches_hook in -lreadline... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12520 | if test "${ac_cv_lib_readline_rl_completion_display_matches_hook+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12521 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 12522 | else |
| 12523 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 12524 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12525 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 12526 | /* end confdefs.h. */ |
| 12527 | |
| 12528 | /* Override any GCC internal prototype to avoid an error. |
| 12529 | Use char because int might match the return type of a GCC |
| 12530 | builtin and then its argument prototype would still apply. */ |
| 12531 | #ifdef __cplusplus |
| 12532 | extern "C" |
| 12533 | #endif |
| 12534 | char rl_completion_display_matches_hook (); |
| 12535 | int |
| 12536 | main () |
| 12537 | { |
| 12538 | return rl_completion_display_matches_hook (); |
| 12539 | ; |
| 12540 | return 0; |
| 12541 | } |
| 12542 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12543 | if ac_fn_c_try_link "$LINENO"; then : |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 12544 | ac_cv_lib_readline_rl_completion_display_matches_hook=yes |
| 12545 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12546 | ac_cv_lib_readline_rl_completion_display_matches_hook=no |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 12547 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12548 | rm -f core conftest.err conftest.$ac_objext \ |
| 12549 | conftest$ac_exeext conftest.$ac_ext |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 12550 | LIBS=$ac_check_lib_save_LIBS |
| 12551 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12552 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12553 | $as_echo "$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12554 | 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] | 12555 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12556 | $as_echo "#define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1" >>confdefs.h |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 12557 | |
| 12558 | fi |
| 12559 | |
| 12560 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 12561 | # check for readline 4.2 |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12562 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_matches in -lreadline" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12563 | $as_echo_n "checking for rl_completion_matches in -lreadline... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12564 | if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12565 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 12566 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12567 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 12568 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12569 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12570 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12571 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12572 | /* Override any GCC internal prototype to avoid an error. |
| 12573 | Use char because int might match the return type of a GCC |
| 12574 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12575 | #ifdef __cplusplus |
| 12576 | extern "C" |
| 12577 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12578 | char rl_completion_matches (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12579 | int |
| 12580 | main () |
| 12581 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12582 | return rl_completion_matches (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12583 | ; |
| 12584 | return 0; |
| 12585 | } |
| 12586 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12587 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12588 | ac_cv_lib_readline_rl_completion_matches=yes |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 12589 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12590 | ac_cv_lib_readline_rl_completion_matches=no |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 12591 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12592 | rm -f core conftest.err conftest.$ac_objext \ |
| 12593 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12594 | LIBS=$ac_check_lib_save_LIBS |
| 12595 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_matches" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12597 | $as_echo "$ac_cv_lib_readline_rl_completion_matches" >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12598 | 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] | 12599 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12600 | $as_echo "#define HAVE_RL_COMPLETION_MATCHES 1" >>confdefs.h |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 12601 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 12602 | fi |
| 12603 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 12604 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12605 | # also in readline 4.2 |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12606 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12607 | /* end confdefs.h. */ |
| 12608 | #include <readline/readline.h> |
| 12609 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12610 | if ac_fn_c_try_cpp "$LINENO"; then : |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12611 | have_readline=yes |
| 12612 | else |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12613 | have_readline=no |
| 12614 | fi |
| 12615 | rm -f conftest.err conftest.$ac_ext |
| 12616 | if test $have_readline = yes |
| 12617 | then |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12618 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12619 | /* end confdefs.h. */ |
| 12620 | #include <readline/readline.h> |
| 12621 | |
| 12622 | _ACEOF |
| 12623 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12624 | $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then : |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12625 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12626 | $as_echo "#define HAVE_RL_CATCH_SIGNAL 1" >>confdefs.h |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12627 | |
| 12628 | fi |
Jesus Cea | 0f752ee | 2010-04-28 12:03:06 +0000 | [diff] [blame] | 12629 | rm -f conftest* |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12630 | |
| 12631 | fi |
| 12632 | |
Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 12633 | # End of readline checks: restore LIBS |
| 12634 | LIBS=$LIBS_no_readline |
| 12635 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12636 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken nice()" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12637 | $as_echo_n "checking for broken nice()... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12638 | if test "${ac_cv_broken_nice+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12639 | $as_echo_n "(cached) " >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12640 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12641 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12642 | if test "$cross_compiling" = yes; then : |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 12643 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 12644 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12645 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12646 | /* end confdefs.h. */ |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 12647 | |
| 12648 | int main() |
| 12649 | { |
| 12650 | int val1 = nice(1); |
| 12651 | if (val1 != -1 && val1 == nice(2)) |
| 12652 | exit(0); |
| 12653 | exit(1); |
| 12654 | } |
| 12655 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12656 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12657 | if ac_fn_c_try_run "$LINENO"; then : |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 12658 | ac_cv_broken_nice=yes |
| 12659 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12660 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 12661 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12662 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 12663 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 12664 | fi |
| 12665 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12666 | fi |
| 12667 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_nice" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12669 | $as_echo "$ac_cv_broken_nice" >&6; } |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 12670 | if test "$ac_cv_broken_nice" = yes |
| 12671 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12672 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12673 | $as_echo "#define HAVE_BROKEN_NICE 1" >>confdefs.h |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 12674 | |
| 12675 | fi |
| 12676 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12677 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken poll()" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12678 | $as_echo_n "checking for broken poll()... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12679 | if test "$cross_compiling" = yes; then : |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 12680 | ac_cv_broken_poll=no |
| 12681 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12682 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 12683 | /* end confdefs.h. */ |
| 12684 | |
| 12685 | #include <poll.h> |
| 12686 | |
| 12687 | int main (void) |
| 12688 | { |
| 12689 | struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 }; |
| 12690 | |
| 12691 | close (42); |
| 12692 | |
| 12693 | int poll_test = poll (&poll_struct, 1, 0); |
| 12694 | |
| 12695 | if (poll_test < 0) |
| 12696 | { |
| 12697 | exit(0); |
| 12698 | } |
| 12699 | else if (poll_test == 0 && poll_struct.revents != POLLNVAL) |
| 12700 | { |
| 12701 | exit(0); |
| 12702 | } |
| 12703 | else |
| 12704 | { |
| 12705 | exit(1); |
| 12706 | } |
| 12707 | } |
| 12708 | |
| 12709 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12710 | if ac_fn_c_try_run "$LINENO"; then : |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 12711 | ac_cv_broken_poll=yes |
| 12712 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12713 | ac_cv_broken_poll=no |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 12714 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12715 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 12716 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 12717 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12718 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_poll" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12720 | $as_echo "$ac_cv_broken_poll" >&6; } |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 12721 | if test "$ac_cv_broken_poll" = yes |
| 12722 | then |
| 12723 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12724 | $as_echo "#define HAVE_BROKEN_POLL 1" >>confdefs.h |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 12725 | |
| 12726 | fi |
| 12727 | |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 12728 | # 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] | 12729 | # (which is not required by ISO C or UNIX spec) and/or if we support |
| 12730 | # tzname[] |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12731 | 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] | 12732 | #include <$ac_cv_struct_tm> |
| 12733 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12734 | " |
| 12735 | 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] | 12736 | |
| 12737 | cat >>confdefs.h <<_ACEOF |
| 12738 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 12739 | _ACEOF |
| 12740 | |
| 12741 | |
| 12742 | fi |
| 12743 | |
| 12744 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 12745 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12746 | $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 12747 | |
| 12748 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12749 | ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> |
| 12750 | " |
| 12751 | if test "x$ac_cv_have_decl_tzname" = x""yes; then : |
| 12752 | ac_have_decl=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12753 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12754 | ac_have_decl=0 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12755 | fi |
| 12756 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12757 | cat >>confdefs.h <<_ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12758 | #define HAVE_DECL_TZNAME $ac_have_decl |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12759 | _ACEOF |
| 12760 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12761 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12762 | $as_echo_n "checking for tzname... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12763 | if test "${ac_cv_var_tzname+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12764 | $as_echo_n "(cached) " >&6 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 12765 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12766 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 12767 | /* end confdefs.h. */ |
| 12768 | #include <time.h> |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12769 | #if !HAVE_DECL_TZNAME |
| 12770 | extern char *tzname[]; |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 12771 | #endif |
| 12772 | |
| 12773 | int |
| 12774 | main () |
| 12775 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12776 | return tzname[0][0]; |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 12777 | ; |
| 12778 | return 0; |
| 12779 | } |
| 12780 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12781 | if ac_fn_c_try_link "$LINENO"; then : |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 12782 | ac_cv_var_tzname=yes |
| 12783 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12784 | ac_cv_var_tzname=no |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 12785 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12786 | rm -f core conftest.err conftest.$ac_objext \ |
| 12787 | conftest$ac_exeext conftest.$ac_ext |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 12788 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12790 | $as_echo "$ac_cv_var_tzname" >&6; } |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 12791 | if test $ac_cv_var_tzname = yes; then |
| 12792 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12793 | $as_echo "#define HAVE_TZNAME 1" >>confdefs.h |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 12794 | |
| 12795 | fi |
| 12796 | fi |
| 12797 | |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 12798 | |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 12799 | # check tzset(3) exists and works like we expect it to |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12800 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working tzset()" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12801 | $as_echo_n "checking for working tzset()... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12802 | if test "${ac_cv_working_tzset+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12803 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 12804 | else |
| 12805 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12806 | if test "$cross_compiling" = yes; then : |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 12807 | ac_cv_working_tzset=no |
| 12808 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12809 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12810 | /* end confdefs.h. */ |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 12811 | |
| 12812 | #include <stdlib.h> |
| 12813 | #include <time.h> |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 12814 | #include <string.h> |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 12815 | |
| 12816 | #if HAVE_TZNAME |
| 12817 | extern char *tzname[]; |
| 12818 | #endif |
| 12819 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 12820 | int main() |
| 12821 | { |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 12822 | /* Note that we need to ensure that not only does tzset(3) |
| 12823 | do 'something' with localtime, but it works as documented |
| 12824 | 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] | 12825 | This includes making sure that tzname is set properly if |
| 12826 | tm->tm_zone does not exist since it is the alternative way |
| 12827 | of getting timezone info. |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 12828 | |
| 12829 | Red Hat 6.2 doesn't understand the southern hemisphere |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 12830 | after New Year's Day. |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 12831 | */ |
| 12832 | |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 12833 | time_t groundhogday = 1044144000; /* GMT-based */ |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 12834 | time_t midyear = groundhogday + (365 * 24 * 3600 / 2); |
| 12835 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 12836 | putenv("TZ=UTC+0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 12837 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 12838 | if (localtime(&groundhogday)->tm_hour != 0) |
| 12839 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 12840 | #if HAVE_TZNAME |
| 12841 | /* For UTC, tzname[1] is sometimes "", sometimes " " */ |
| 12842 | if (strcmp(tzname[0], "UTC") || |
| 12843 | (tzname[1][0] != 0 && tzname[1][0] != ' ')) |
| 12844 | exit(1); |
| 12845 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 12846 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 12847 | putenv("TZ=EST+5EDT,M4.1.0,M10.5.0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 12848 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 12849 | if (localtime(&groundhogday)->tm_hour != 19) |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 12850 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 12851 | #if HAVE_TZNAME |
| 12852 | if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT")) |
| 12853 | exit(1); |
| 12854 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 12855 | |
| 12856 | putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0"); |
| 12857 | tzset(); |
| 12858 | if (localtime(&groundhogday)->tm_hour != 11) |
| 12859 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 12860 | #if HAVE_TZNAME |
| 12861 | if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT")) |
| 12862 | exit(1); |
| 12863 | #endif |
| 12864 | |
| 12865 | #if HAVE_STRUCT_TM_TM_ZONE |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 12866 | if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT")) |
| 12867 | exit(1); |
| 12868 | if (strcmp(localtime(&midyear)->tm_zone, "AEST")) |
| 12869 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 12870 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 12871 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 12872 | exit(0); |
| 12873 | } |
| 12874 | |
| 12875 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12876 | if ac_fn_c_try_run "$LINENO"; then : |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 12877 | ac_cv_working_tzset=yes |
| 12878 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12879 | ac_cv_working_tzset=no |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 12880 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12881 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 12882 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 12883 | fi |
| 12884 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12885 | fi |
| 12886 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_tzset" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12888 | $as_echo "$ac_cv_working_tzset" >&6; } |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 12889 | if test "$ac_cv_working_tzset" = yes |
| 12890 | then |
| 12891 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12892 | $as_echo "#define HAVE_WORKING_TZSET 1" >>confdefs.h |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 12893 | |
| 12894 | fi |
| 12895 | |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 12896 | # Look for subsecond timestamps in struct stat |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12897 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec in struct stat" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12898 | $as_echo_n "checking for tv_nsec in struct stat... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12899 | if test "${ac_cv_stat_tv_nsec+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12900 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 12901 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12902 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12903 | /* end confdefs.h. */ |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 12904 | #include <sys/stat.h> |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 12905 | int |
| 12906 | main () |
| 12907 | { |
| 12908 | |
| 12909 | struct stat st; |
| 12910 | st.st_mtim.tv_nsec = 1; |
| 12911 | |
| 12912 | ; |
| 12913 | return 0; |
| 12914 | } |
| 12915 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12916 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | a32c994 | 2002-09-09 16:17:47 +0000 | [diff] [blame] | 12917 | ac_cv_stat_tv_nsec=yes |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 12918 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12919 | ac_cv_stat_tv_nsec=no |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 12920 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12921 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12922 | fi |
| 12923 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12925 | $as_echo "$ac_cv_stat_tv_nsec" >&6; } |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 12926 | if test "$ac_cv_stat_tv_nsec" = yes |
| 12927 | then |
| 12928 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12929 | $as_echo "#define HAVE_STAT_TV_NSEC 1" >>confdefs.h |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 12930 | |
| 12931 | fi |
| 12932 | |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 12933 | # Look for BSD style subsecond timestamps in struct stat |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12934 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec2 in struct stat" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12935 | $as_echo_n "checking for tv_nsec2 in struct stat... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12936 | if test "${ac_cv_stat_tv_nsec2+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12937 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 12938 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12939 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 12940 | /* end confdefs.h. */ |
| 12941 | #include <sys/stat.h> |
| 12942 | int |
| 12943 | main () |
| 12944 | { |
| 12945 | |
| 12946 | struct stat st; |
| 12947 | st.st_mtimespec.tv_nsec = 1; |
| 12948 | |
| 12949 | ; |
| 12950 | return 0; |
| 12951 | } |
| 12952 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12953 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 12954 | ac_cv_stat_tv_nsec2=yes |
| 12955 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12956 | ac_cv_stat_tv_nsec2=no |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 12957 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12958 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12959 | fi |
| 12960 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec2" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12962 | $as_echo "$ac_cv_stat_tv_nsec2" >&6; } |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 12963 | if test "$ac_cv_stat_tv_nsec2" = yes |
| 12964 | then |
| 12965 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12966 | $as_echo "#define HAVE_STAT_TV_NSEC2 1" >>confdefs.h |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 12967 | |
| 12968 | fi |
| 12969 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 12970 | # On HP/UX 11.0, mvwdelch is a block with a return statement |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12971 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mvwdelch is an expression" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12972 | $as_echo_n "checking whether mvwdelch is an expression... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12973 | if test "${ac_cv_mvwdelch_is_expression+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12974 | $as_echo_n "(cached) " >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 12975 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12976 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12977 | /* end confdefs.h. */ |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 12978 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12979 | int |
| 12980 | main () |
| 12981 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 12982 | |
| 12983 | int rtn; |
| 12984 | rtn = mvwdelch(0,0,0); |
| 12985 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12986 | ; |
| 12987 | return 0; |
| 12988 | } |
| 12989 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12990 | if ac_fn_c_try_compile "$LINENO"; then : |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 12991 | ac_cv_mvwdelch_is_expression=yes |
| 12992 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12993 | ac_cv_mvwdelch_is_expression=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 12994 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12995 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12996 | fi |
| 12997 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 12998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mvwdelch_is_expression" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 12999 | $as_echo "$ac_cv_mvwdelch_is_expression" >&6; } |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13000 | |
| 13001 | if test "$ac_cv_mvwdelch_is_expression" = yes |
| 13002 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13003 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13004 | $as_echo "#define MVWDELCH_IS_EXPRESSION 1" >>confdefs.h |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13005 | |
| 13006 | fi |
| 13007 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13008 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether WINDOW has _flags" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13009 | $as_echo_n "checking whether WINDOW has _flags... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13010 | if test "${ac_cv_window_has_flags+set}" = set; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13011 | $as_echo_n "(cached) " >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13012 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13013 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13014 | /* end confdefs.h. */ |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13015 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13016 | int |
| 13017 | main () |
| 13018 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13019 | |
| 13020 | WINDOW *w; |
| 13021 | w->_flags = 0; |
| 13022 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13023 | ; |
| 13024 | return 0; |
| 13025 | } |
| 13026 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13027 | if ac_fn_c_try_compile "$LINENO"; then : |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13028 | ac_cv_window_has_flags=yes |
| 13029 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13030 | ac_cv_window_has_flags=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13031 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13032 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13033 | fi |
| 13034 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_window_has_flags" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13036 | $as_echo "$ac_cv_window_has_flags" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13037 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13038 | |
| 13039 | if test "$ac_cv_window_has_flags" = yes |
| 13040 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13041 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13042 | $as_echo "#define WINDOW_HAS_FLAGS 1" >>confdefs.h |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13043 | |
| 13044 | fi |
| 13045 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13046 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_term_resized" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13047 | $as_echo_n "checking for is_term_resized... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13048 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13049 | /* end confdefs.h. */ |
| 13050 | #include <curses.h> |
| 13051 | int |
| 13052 | main () |
| 13053 | { |
| 13054 | void *x=is_term_resized |
| 13055 | ; |
| 13056 | return 0; |
| 13057 | } |
| 13058 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13059 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 13060 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13061 | $as_echo "#define HAVE_CURSES_IS_TERM_RESIZED 1" >>confdefs.h |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13062 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13063 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13064 | $as_echo "yes" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13065 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13067 | $as_echo "no" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13068 | |
| 13069 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13070 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13071 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13072 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resize_term" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13073 | $as_echo_n "checking for resize_term... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13074 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13075 | /* end confdefs.h. */ |
| 13076 | #include <curses.h> |
| 13077 | int |
| 13078 | main () |
| 13079 | { |
| 13080 | void *x=resize_term |
| 13081 | ; |
| 13082 | return 0; |
| 13083 | } |
| 13084 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13085 | if ac_fn_c_try_compile "$LINENO"; then : |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13086 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13087 | $as_echo "#define HAVE_CURSES_RESIZE_TERM 1" >>confdefs.h |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13088 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13090 | $as_echo "yes" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13091 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13092 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13093 | $as_echo "no" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13094 | |
| 13095 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13096 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13097 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13098 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resizeterm" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13099 | $as_echo_n "checking for resizeterm... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13100 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13101 | /* end confdefs.h. */ |
| 13102 | #include <curses.h> |
| 13103 | int |
| 13104 | main () |
| 13105 | { |
| 13106 | void *x=resizeterm |
| 13107 | ; |
| 13108 | return 0; |
| 13109 | } |
| 13110 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13111 | if ac_fn_c_try_compile "$LINENO"; then : |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13112 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13113 | $as_echo "#define HAVE_CURSES_RESIZETERM 1" >>confdefs.h |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13114 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13116 | $as_echo "yes" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13117 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13119 | $as_echo "no" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13120 | |
| 13121 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13122 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13123 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13124 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13125 | $as_echo_n "checking for /dev/ptmx... " >&6; } |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 13126 | |
| 13127 | if test -r /dev/ptmx |
| 13128 | then |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13130 | $as_echo "yes" >&6; } |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 13131 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13132 | $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 13133 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 13134 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13136 | $as_echo "no" >&6; } |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 13137 | fi |
| 13138 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13139 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13140 | $as_echo_n "checking for /dev/ptc... " >&6; } |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 13141 | |
| 13142 | if test -r /dev/ptc |
| 13143 | then |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13145 | $as_echo "yes" >&6; } |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 13146 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13147 | $as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 13148 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 13149 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13151 | $as_echo "no" >&6; } |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 13152 | fi |
| 13153 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13154 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for %zd printf() format support" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13155 | $as_echo_n "checking for %zd printf() format support... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13156 | if test "$cross_compiling" = yes; then : |
| 13157 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13158 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13159 | as_fn_error "cannot run test program while cross compiling |
| 13160 | See \`config.log' for more details." "$LINENO" 5; } |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13161 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13162 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13163 | /* end confdefs.h. */ |
| 13164 | #include <stdio.h> |
| 13165 | #include <stddef.h> |
| 13166 | #include <string.h> |
| 13167 | |
Christian Heimes | 2c18161 | 2007-12-17 20:04:13 +0000 | [diff] [blame] | 13168 | #ifdef HAVE_SYS_TYPES_H |
| 13169 | #include <sys/types.h> |
| 13170 | #endif |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 13171 | |
| 13172 | #ifdef HAVE_SSIZE_T |
| 13173 | typedef ssize_t Py_ssize_t; |
| 13174 | #elif SIZEOF_VOID_P == SIZEOF_LONG |
| 13175 | typedef long Py_ssize_t; |
| 13176 | #else |
| 13177 | typedef int Py_ssize_t; |
| 13178 | #endif |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13179 | |
Christian Heimes | 2c18161 | 2007-12-17 20:04:13 +0000 | [diff] [blame] | 13180 | int main() |
| 13181 | { |
| 13182 | char buffer[256]; |
| 13183 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13184 | if(sprintf(buffer, "%zd", (size_t)123) < 0) |
| 13185 | return 1; |
| 13186 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 13187 | if (strcmp(buffer, "123")) |
| 13188 | return 1; |
| 13189 | |
| 13190 | if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0) |
| 13191 | return 1; |
| 13192 | |
| 13193 | if (strcmp(buffer, "-123")) |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13194 | return 1; |
| 13195 | |
| 13196 | return 0; |
| 13197 | } |
| 13198 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13199 | if ac_fn_c_try_run "$LINENO"; then : |
| 13200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13201 | $as_echo "yes" >&6; } |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13202 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13203 | $as_echo "#define PY_FORMAT_SIZE_T \"z\"" >>confdefs.h |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13204 | |
| 13205 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13207 | $as_echo "no" >&6; } |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13208 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13209 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 13210 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13211 | fi |
| 13212 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13213 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13214 | ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13215 | #ifdef HAVE_SYS_TYPES_H |
| 13216 | #include <sys/types.h> |
| 13217 | #endif |
| 13218 | #ifdef HAVE_SYS_SOCKET_H |
| 13219 | #include <sys/socket.h> |
| 13220 | #endif |
| 13221 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13222 | " |
| 13223 | if test "x$ac_cv_type_socklen_t" = x""yes; then : |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13224 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13225 | else |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 13226 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13227 | $as_echo "#define socklen_t int" >>confdefs.h |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 13228 | |
| 13229 | fi |
| 13230 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13231 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13232 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken mbstowcs" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13233 | $as_echo_n "checking for broken mbstowcs... " >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13234 | if test "$cross_compiling" = yes; then : |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 13235 | ac_cv_broken_mbstowcs=no |
| 13236 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13237 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 13238 | /* end confdefs.h. */ |
| 13239 | |
| 13240 | #include<stdlib.h> |
| 13241 | int main() { |
| 13242 | size_t len = -1; |
| 13243 | const char *str = "text"; |
| 13244 | len = mbstowcs(NULL, str, 0); |
| 13245 | return (len != 4); |
| 13246 | } |
| 13247 | |
| 13248 | _ACEOF |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13249 | if ac_fn_c_try_run "$LINENO"; then : |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 13250 | ac_cv_broken_mbstowcs=no |
| 13251 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13252 | ac_cv_broken_mbstowcs=yes |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 13253 | fi |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13254 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 13255 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 13256 | fi |
| 13257 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_mbstowcs" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13259 | $as_echo "$ac_cv_broken_mbstowcs" >&6; } |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 13260 | if test "$ac_cv_broken_mbstowcs" = yes |
| 13261 | then |
| 13262 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13263 | $as_echo "#define HAVE_BROKEN_MBSTOWCS 1" >>confdefs.h |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 13264 | |
| 13265 | fi |
| 13266 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13267 | # Check for --with-computed-gotos |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13268 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-computed-gotos" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13269 | $as_echo_n "checking for --with-computed-gotos... " >&6; } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13270 | |
| 13271 | # Check whether --with-computed-gotos was given. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13272 | if test "${with_computed_gotos+set}" = set; then : |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13273 | withval=$with_computed_gotos; |
| 13274 | if test "$withval" != no |
| 13275 | then |
| 13276 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13277 | $as_echo "#define USE_COMPUTED_GOTOS 1" >>confdefs.h |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13278 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13280 | $as_echo "yes" >&6; } |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13281 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13282 | $as_echo "no" >&6; } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13283 | fi |
| 13284 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13286 | $as_echo "no" >&6; } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13287 | fi |
| 13288 | |
| 13289 | |
Ronald Oussoren | 1b2cad0 | 2009-11-19 17:30:05 +0000 | [diff] [blame] | 13290 | if test $ac_sys_system = Darwin |
| 13291 | then |
| 13292 | LIBS="$LIBS -framework CoreFoundation" |
| 13293 | fi |
| 13294 | |
| 13295 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13296 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13297 | |
| 13298 | |
Martin v. Löwis | 06f15bb | 2001-12-02 13:02:32 +0000 | [diff] [blame] | 13299 | for h in `(cd $srcdir;echo Python/thread_*.h)` |
| 13300 | do |
| 13301 | THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" |
| 13302 | done |
| 13303 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13304 | |
Neal Norwitz | d24499d | 2005-12-18 21:36:39 +0000 | [diff] [blame] | 13305 | SRCDIRS="Parser Grammar Objects Python Modules Mac" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13306 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build directories" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13307 | $as_echo_n "checking for build directories... " >&6; } |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 13308 | for dir in $SRCDIRS; do |
| 13309 | if test ! -d $dir; then |
| 13310 | mkdir $dir |
Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 13311 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 13312 | done |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13314 | $as_echo "done" >&6; } |
Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 13315 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13316 | # generate output files |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 13317 | 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] | 13318 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13319 | cat >confcache <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13320 | # This file is a shell script that caches the results of configure |
| 13321 | # 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] | 13322 | # scripts and configure runs, see configure's option --config-cache. |
| 13323 | # It is not useful on other systems. If it contains results you don't |
| 13324 | # want to keep, you may remove or edit it. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13325 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13326 | # config.status only pays attention to the cache file if you give it |
| 13327 | # the --recheck option to rerun configure. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13328 | # |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13329 | # `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] | 13330 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 13331 | # following values. |
| 13332 | |
| 13333 | _ACEOF |
| 13334 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 13335 | # The following way of writing the cache mishandles newlines in values, |
| 13336 | # but we know of no workaround that is simple, portable, and efficient. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13337 | # So, we kill variables containing newlines. |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13338 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 13339 | # 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] | 13340 | ( |
| 13341 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 13342 | eval ac_val=\$$ac_var |
| 13343 | case $ac_val in #( |
| 13344 | *${as_nl}*) |
| 13345 | case $ac_var in #( |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13346 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13347 | $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] | 13348 | esac |
| 13349 | case $ac_var in #( |
| 13350 | _ | IFS | as_nl) ;; #( |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13351 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13352 | *) { eval $ac_var=; unset $ac_var;} ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13353 | esac ;; |
| 13354 | esac |
| 13355 | done |
| 13356 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13357 | (set) 2>&1 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13358 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 13359 | *${as_nl}ac_space=\ *) |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13360 | # `set' does not quote correctly, so add quotes: double-quote |
| 13361 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13362 | sed -n \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13363 | "s/'/'\\\\''/g; |
| 13364 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13365 | ;; #( |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13366 | *) |
| 13367 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13368 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13369 | ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13370 | esac | |
| 13371 | sort |
| 13372 | ) | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13373 | sed ' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13374 | /^ac_cv_env_/b end |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13375 | t clear |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13376 | :clear |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13377 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 13378 | t end |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13379 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 13380 | :end' >>confcache |
| 13381 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 13382 | if test -w "$cache_file"; then |
| 13383 | test "x$cache_file" != "x/dev/null" && |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13384 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13385 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13386 | cat confcache >$cache_file |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13387 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13388 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13389 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13390 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13391 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13392 | rm -f confcache |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13393 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13394 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 13395 | # Let make expand exec_prefix. |
| 13396 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13397 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13398 | DEFS=-DHAVE_CONFIG_H |
| 13399 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13400 | ac_libobjs= |
| 13401 | ac_ltlibobjs= |
| 13402 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 13403 | # 1. Remove the extension, and $U if already installed. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13404 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13405 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13406 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 13407 | # will be set to the directory where LIBOBJS objects are built. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13408 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 13409 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13410 | done |
| 13411 | LIBOBJS=$ac_libobjs |
| 13412 | |
| 13413 | LTLIBOBJS=$ac_ltlibobjs |
| 13414 | |
| 13415 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13416 | |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13417 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13418 | : ${CONFIG_STATUS=./config.status} |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13419 | ac_write_fail=0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13420 | ac_clean_files_save=$ac_clean_files |
| 13421 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13422 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13423 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13424 | as_write_fail=0 |
| 13425 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13426 | #! $SHELL |
| 13427 | # Generated by $as_me. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13428 | # Run this file to recreate the current configuration. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13429 | # Compiler output produced by configure, useful for debugging |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13430 | # configure, is in config.log if it exists. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13431 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13432 | debug=false |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13433 | ac_cs_recheck=false |
| 13434 | ac_cs_silent=false |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 13435 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13436 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 13437 | export SHELL |
| 13438 | _ASEOF |
| 13439 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 13440 | ## -------------------- ## |
| 13441 | ## M4sh Initialization. ## |
| 13442 | ## -------------------- ## |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 13443 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13444 | # Be more Bourne compatible |
| 13445 | DUALCASE=1; export DUALCASE # for MKS sh |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13446 | 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] | 13447 | emulate sh |
| 13448 | NULLCMD=: |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13449 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13450 | # is contrary to our usage. Disable this feature. |
| 13451 | alias -g '${1+"$@"}'='"$@"' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13452 | setopt NO_GLOB_SUBST |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 13453 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13454 | case `(set -o) 2>/dev/null` in #( |
| 13455 | *posix*) : |
| 13456 | set -o posix ;; #( |
| 13457 | *) : |
| 13458 | ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13459 | esac |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13460 | fi |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 13461 | |
| 13462 | |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13463 | as_nl=' |
| 13464 | ' |
| 13465 | export as_nl |
| 13466 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 13467 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 13468 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 13469 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13470 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 13471 | # but without wasting forks for bash or zsh. |
| 13472 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 13473 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 13474 | as_echo='print -r --' |
| 13475 | as_echo_n='print -rn --' |
| 13476 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13477 | as_echo='printf %s\n' |
| 13478 | as_echo_n='printf %s' |
| 13479 | else |
| 13480 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 13481 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 13482 | as_echo_n='/usr/ucb/echo -n' |
| 13483 | else |
| 13484 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 13485 | as_echo_n_body='eval |
| 13486 | arg=$1; |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13487 | case $arg in #( |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13488 | *"$as_nl"*) |
| 13489 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 13490 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 13491 | esac; |
| 13492 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 13493 | ' |
| 13494 | export as_echo_n_body |
| 13495 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 13496 | fi |
| 13497 | export as_echo_body |
| 13498 | as_echo='sh -c $as_echo_body as_echo' |
| 13499 | fi |
| 13500 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13501 | # The user is always right. |
| 13502 | if test "${PATH_SEPARATOR+set}" != set; then |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13503 | PATH_SEPARATOR=: |
| 13504 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 13505 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 13506 | PATH_SEPARATOR=';' |
| 13507 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13508 | fi |
| 13509 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13510 | |
| 13511 | # IFS |
| 13512 | # We need space, tab and new line, in precisely that order. Quoting is |
| 13513 | # there to prevent editors from complaining about space-tab. |
| 13514 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 13515 | # splitting by setting IFS to empty value.) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13516 | IFS=" "" $as_nl" |
| 13517 | |
| 13518 | # Find who we are. Look in the path if we contain no directory separator. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13519 | case $0 in #(( |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13520 | *[\\/]* ) as_myself=$0 ;; |
| 13521 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13522 | for as_dir in $PATH |
| 13523 | do |
| 13524 | IFS=$as_save_IFS |
| 13525 | test -z "$as_dir" && as_dir=. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13526 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 13527 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13528 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13529 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13530 | ;; |
| 13531 | esac |
| 13532 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 13533 | # in which case we are not to be found in the path. |
| 13534 | if test "x$as_myself" = x; then |
| 13535 | as_myself=$0 |
| 13536 | fi |
| 13537 | if test ! -f "$as_myself"; then |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13538 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13539 | exit 1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13540 | fi |
| 13541 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13542 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 13543 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 13544 | # suppresses any "Segmentation fault" message there. '((' could |
| 13545 | # trigger a bug in pdksh 5.2.14. |
| 13546 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 13547 | do eval test x\${$as_var+set} = xset \ |
| 13548 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13549 | done |
| 13550 | PS1='$ ' |
| 13551 | PS2='> ' |
| 13552 | PS4='+ ' |
| 13553 | |
| 13554 | # NLS nuisances. |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13555 | LC_ALL=C |
| 13556 | export LC_ALL |
| 13557 | LANGUAGE=C |
| 13558 | export LANGUAGE |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13559 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13560 | # CDPATH. |
| 13561 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 13562 | |
| 13563 | |
| 13564 | # as_fn_error ERROR [LINENO LOG_FD] |
| 13565 | # --------------------------------- |
| 13566 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 13567 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 13568 | # script with status $?, using 1 if that was 0. |
| 13569 | as_fn_error () |
| 13570 | { |
| 13571 | as_status=$?; test $as_status -eq 0 && as_status=1 |
| 13572 | if test "$3"; then |
| 13573 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 13574 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 |
| 13575 | fi |
| 13576 | $as_echo "$as_me: error: $1" >&2 |
| 13577 | as_fn_exit $as_status |
| 13578 | } # as_fn_error |
| 13579 | |
| 13580 | |
| 13581 | # as_fn_set_status STATUS |
| 13582 | # ----------------------- |
| 13583 | # Set $? to STATUS, without forking. |
| 13584 | as_fn_set_status () |
| 13585 | { |
| 13586 | return $1 |
| 13587 | } # as_fn_set_status |
| 13588 | |
| 13589 | # as_fn_exit STATUS |
| 13590 | # ----------------- |
| 13591 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 13592 | as_fn_exit () |
| 13593 | { |
| 13594 | set +e |
| 13595 | as_fn_set_status $1 |
| 13596 | exit $1 |
| 13597 | } # as_fn_exit |
| 13598 | |
| 13599 | # as_fn_unset VAR |
| 13600 | # --------------- |
| 13601 | # Portably unset VAR. |
| 13602 | as_fn_unset () |
| 13603 | { |
| 13604 | { eval $1=; unset $1;} |
| 13605 | } |
| 13606 | as_unset=as_fn_unset |
| 13607 | # as_fn_append VAR VALUE |
| 13608 | # ---------------------- |
| 13609 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 13610 | # advantage of any shell optimizations that allow amortized linear growth over |
| 13611 | # repeated appends, instead of the typical quadratic growth present in naive |
| 13612 | # implementations. |
| 13613 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 13614 | eval 'as_fn_append () |
| 13615 | { |
| 13616 | eval $1+=\$2 |
| 13617 | }' |
| 13618 | else |
| 13619 | as_fn_append () |
| 13620 | { |
| 13621 | eval $1=\$$1\$2 |
| 13622 | } |
| 13623 | fi # as_fn_append |
| 13624 | |
| 13625 | # as_fn_arith ARG... |
| 13626 | # ------------------ |
| 13627 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 13628 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 13629 | # must be portable across $(()) and expr. |
| 13630 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 13631 | eval 'as_fn_arith () |
| 13632 | { |
| 13633 | as_val=$(( $* )) |
| 13634 | }' |
| 13635 | else |
| 13636 | as_fn_arith () |
| 13637 | { |
| 13638 | as_val=`expr "$@" || test $? -eq 1` |
| 13639 | } |
| 13640 | fi # as_fn_arith |
| 13641 | |
| 13642 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13643 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 13644 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 13645 | as_expr=expr |
| 13646 | else |
| 13647 | as_expr=false |
| 13648 | fi |
| 13649 | |
| 13650 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 13651 | as_basename=basename |
| 13652 | else |
| 13653 | as_basename=false |
| 13654 | fi |
| 13655 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13656 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 13657 | as_dirname=dirname |
| 13658 | else |
| 13659 | as_dirname=false |
| 13660 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13661 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13662 | as_me=`$as_basename -- "$0" || |
| 13663 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 13664 | X"$0" : 'X\(//\)$' \| \ |
| 13665 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13666 | $as_echo X/"$0" | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13667 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 13668 | s//\1/ |
| 13669 | q |
| 13670 | } |
| 13671 | /^X\/\(\/\/\)$/{ |
| 13672 | s//\1/ |
| 13673 | q |
| 13674 | } |
| 13675 | /^X\/\(\/\).*/{ |
| 13676 | s//\1/ |
| 13677 | q |
| 13678 | } |
| 13679 | s/.*/./; q'` |
| 13680 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13681 | # Avoid depending upon Character Ranges. |
| 13682 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 13683 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 13684 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 13685 | as_cr_digits='0123456789' |
| 13686 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13687 | |
| 13688 | ECHO_C= ECHO_N= ECHO_T= |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13689 | case `echo -n x` in #((((( |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13690 | -n*) |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13691 | case `echo 'xy\c'` in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13692 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13693 | xy) ECHO_C='\c';; |
| 13694 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 13695 | ECHO_T=' ';; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13696 | esac;; |
| 13697 | *) |
| 13698 | ECHO_N='-n';; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13699 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13700 | |
| 13701 | rm -f conf$$ conf$$.exe conf$$.file |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13702 | if test -d conf$$.dir; then |
| 13703 | rm -f conf$$.dir/conf$$.file |
| 13704 | else |
| 13705 | rm -f conf$$.dir |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13706 | mkdir conf$$.dir 2>/dev/null |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13707 | fi |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13708 | if (echo >conf$$.file) 2>/dev/null; then |
| 13709 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 13710 | as_ln_s='ln -s' |
| 13711 | # ... but there are two gotchas: |
| 13712 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 13713 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 13714 | # In both cases, we have to default to `cp -p'. |
| 13715 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 13716 | as_ln_s='cp -p' |
| 13717 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 13718 | as_ln_s=ln |
| 13719 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13720 | as_ln_s='cp -p' |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13721 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13722 | else |
| 13723 | as_ln_s='cp -p' |
| 13724 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13725 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 13726 | rmdir conf$$.dir 2>/dev/null |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13727 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13728 | |
| 13729 | # as_fn_mkdir_p |
| 13730 | # ------------- |
| 13731 | # Create "$as_dir" as a directory, including parents if necessary. |
| 13732 | as_fn_mkdir_p () |
| 13733 | { |
| 13734 | |
| 13735 | case $as_dir in #( |
| 13736 | -*) as_dir=./$as_dir;; |
| 13737 | esac |
| 13738 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 13739 | as_dirs= |
| 13740 | while :; do |
| 13741 | case $as_dir in #( |
| 13742 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 13743 | *) as_qdir=$as_dir;; |
| 13744 | esac |
| 13745 | as_dirs="'$as_qdir' $as_dirs" |
| 13746 | as_dir=`$as_dirname -- "$as_dir" || |
| 13747 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 13748 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 13749 | X"$as_dir" : 'X\(//\)$' \| \ |
| 13750 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 13751 | $as_echo X"$as_dir" | |
| 13752 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 13753 | s//\1/ |
| 13754 | q |
| 13755 | } |
| 13756 | /^X\(\/\/\)[^/].*/{ |
| 13757 | s//\1/ |
| 13758 | q |
| 13759 | } |
| 13760 | /^X\(\/\/\)$/{ |
| 13761 | s//\1/ |
| 13762 | q |
| 13763 | } |
| 13764 | /^X\(\/\).*/{ |
| 13765 | s//\1/ |
| 13766 | q |
| 13767 | } |
| 13768 | s/.*/./; q'` |
| 13769 | test -d "$as_dir" && break |
| 13770 | done |
| 13771 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 13772 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" |
| 13773 | |
| 13774 | |
| 13775 | } # as_fn_mkdir_p |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13776 | if mkdir -p . 2>/dev/null; then |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13777 | as_mkdir_p='mkdir -p "$as_dir"' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13778 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13779 | test -d ./-p && rmdir ./-p |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13780 | as_mkdir_p=false |
| 13781 | fi |
| 13782 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13783 | if test -x / >/dev/null 2>&1; then |
| 13784 | as_test_x='test -x' |
| 13785 | else |
| 13786 | if ls -dL / >/dev/null 2>&1; then |
| 13787 | as_ls_L_option=L |
| 13788 | else |
| 13789 | as_ls_L_option= |
| 13790 | fi |
| 13791 | as_test_x=' |
| 13792 | eval sh -c '\'' |
| 13793 | if test -d "$1"; then |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13794 | test -d "$1/."; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13795 | else |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13796 | case $1 in #( |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13797 | -*)set "./$1";; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13798 | esac; |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13799 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13800 | ???[sx]*):;;*)false;;esac;fi |
| 13801 | '\'' sh |
| 13802 | ' |
| 13803 | fi |
| 13804 | as_executable_p=$as_test_x |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13805 | |
| 13806 | # Sed expression to map a string onto a valid CPP name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13807 | 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] | 13808 | |
| 13809 | # Sed expression to map a string onto a valid variable name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13810 | 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] | 13811 | |
| 13812 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13813 | exec 6>&1 |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13814 | ## ----------------------------------- ## |
| 13815 | ## Main body of $CONFIG_STATUS script. ## |
| 13816 | ## ----------------------------------- ## |
| 13817 | _ASEOF |
| 13818 | 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] | 13819 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13820 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 13821 | # 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] | 13822 | # report actual input values of CONFIG_FILES etc. instead of their |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13823 | # values after options handling. |
| 13824 | ac_log=" |
Christian Heimes | 70e5cab | 2008-12-03 18:18:23 +0000 | [diff] [blame] | 13825 | This file was extended by python $as_me 3.1, which was |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13826 | generated by GNU Autoconf 2.65. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13827 | |
| 13828 | CONFIG_FILES = $CONFIG_FILES |
| 13829 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 13830 | CONFIG_LINKS = $CONFIG_LINKS |
| 13831 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 13832 | $ $0 $@ |
| 13833 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13834 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 13835 | " |
| 13836 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13837 | _ACEOF |
| 13838 | |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13839 | case $ac_config_files in *" |
| 13840 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 13841 | esac |
| 13842 | |
| 13843 | case $ac_config_headers in *" |
| 13844 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 13845 | esac |
| 13846 | |
| 13847 | |
| 13848 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13849 | # Files that config.status was made for. |
Martin v. Löwis | 113a085 | 2009-05-29 17:25:39 +0000 | [diff] [blame] | 13850 | config_files="$ac_config_files" |
| 13851 | config_headers="$ac_config_headers" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13852 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13853 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13854 | |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13855 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13856 | ac_cs_usage="\ |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13857 | \`$as_me' instantiates files and other configuration actions |
| 13858 | from templates according to the current configuration. Unless the files |
| 13859 | 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] | 13860 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13861 | Usage: $0 [OPTION]... [TAG]... |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13862 | |
| 13863 | -h, --help print this help, then exit |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13864 | -V, --version print version number and configuration settings, then exit |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13865 | --config print configuration, then exit |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13866 | -q, --quiet, --silent |
| 13867 | do not print progress messages |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13868 | -d, --debug don't remove temporary files |
| 13869 | --recheck update $as_me by reconfiguring in the same conditions |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13870 | --file=FILE[:TEMPLATE] |
| 13871 | instantiate the configuration file FILE |
| 13872 | --header=FILE[:TEMPLATE] |
| 13873 | instantiate the configuration header FILE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13874 | |
| 13875 | Configuration files: |
| 13876 | $config_files |
| 13877 | |
| 13878 | Configuration headers: |
| 13879 | $config_headers |
| 13880 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13881 | Report bugs to <http://bugs.python.org/>." |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 13882 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13883 | _ACEOF |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13884 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13885 | 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] | 13886 | ac_cs_version="\\ |
Christian Heimes | 70e5cab | 2008-12-03 18:18:23 +0000 | [diff] [blame] | 13887 | python config.status 3.1 |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13888 | configured by $0, generated by GNU Autoconf 2.65, |
| 13889 | with options \\"\$ac_cs_config\\" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13890 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13891 | Copyright (C) 2009 Free Software Foundation, Inc. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13892 | This config.status script is free software; the Free Software Foundation |
| 13893 | gives unlimited permission to copy, distribute and modify it." |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13894 | |
| 13895 | ac_pwd='$ac_pwd' |
| 13896 | srcdir='$srcdir' |
| 13897 | INSTALL='$INSTALL' |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13898 | test -n "\$AWK" || AWK=awk |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13899 | _ACEOF |
| 13900 | |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13901 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 13902 | # 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] | 13903 | ac_need_defaults=: |
| 13904 | while test $# != 0 |
| 13905 | do |
| 13906 | case $1 in |
| 13907 | --*=*) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13908 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 13909 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13910 | ac_shift=: |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13911 | ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13912 | *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13913 | ac_option=$1 |
| 13914 | ac_optarg=$2 |
| 13915 | ac_shift=shift |
| 13916 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13917 | esac |
| 13918 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13919 | case $ac_option in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13920 | # Handling of the options. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13921 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 13922 | ac_cs_recheck=: ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13923 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13924 | $as_echo "$ac_cs_version"; exit ;; |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13925 | --config | --confi | --conf | --con | --co | --c ) |
| 13926 | $as_echo "$ac_cs_config"; exit ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13927 | --debug | --debu | --deb | --de | --d | -d ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13928 | debug=: ;; |
| 13929 | --file | --fil | --fi | --f ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13930 | $ac_shift |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13931 | case $ac_optarg in |
| 13932 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 13933 | esac |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13934 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13935 | ac_need_defaults=false;; |
| 13936 | --header | --heade | --head | --hea ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13937 | $ac_shift |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13938 | case $ac_optarg in |
| 13939 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 13940 | esac |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13941 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13942 | ac_need_defaults=false;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13943 | --he | --h) |
| 13944 | # Conflict between --help and --header |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13945 | as_fn_error "ambiguous option: \`$1' |
| 13946 | Try \`$0 --help' for more information.";; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13947 | --help | --hel | -h ) |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13948 | $as_echo "$ac_cs_usage"; exit ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13949 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 13950 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 13951 | ac_cs_silent=: ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13952 | |
| 13953 | # This is an error. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13954 | -*) as_fn_error "unrecognized option: \`$1' |
| 13955 | Try \`$0 --help' for more information." ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13956 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 13957 | *) as_fn_append ac_config_targets " $1" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13958 | ac_need_defaults=false ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13959 | |
| 13960 | esac |
| 13961 | shift |
| 13962 | done |
| 13963 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13964 | ac_configure_extra_args= |
| 13965 | |
| 13966 | if $ac_cs_silent; then |
| 13967 | exec 6>/dev/null |
| 13968 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 13969 | fi |
| 13970 | |
| 13971 | _ACEOF |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13972 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13973 | if \$ac_cs_recheck; then |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13974 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 13975 | shift |
| 13976 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 13977 | CONFIG_SHELL='$SHELL' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13978 | export CONFIG_SHELL |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13979 | exec "\$@" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13980 | fi |
| 13981 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13982 | _ACEOF |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13983 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13984 | exec 5>>config.log |
| 13985 | { |
| 13986 | echo |
| 13987 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 13988 | ## Running $as_me. ## |
| 13989 | _ASBOX |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13990 | $as_echo "$ac_log" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13991 | } >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13992 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13993 | _ACEOF |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13994 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13995 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13996 | |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 13997 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13998 | |
| 13999 | # Handling of arguments. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14000 | for ac_config_target in $ac_config_targets |
| 14001 | do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14002 | case $ac_config_target in |
| 14003 | "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; |
| 14004 | "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;; |
| 14005 | "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;; |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14006 | "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;; |
| 14007 | "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] | 14008 | "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; |
| 14009 | "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;; |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14010 | "Misc/python.pc") CONFIG_FILES="$CONFIG_FILES Misc/python.pc" ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14011 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 14012 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14013 | esac |
| 14014 | done |
| 14015 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14016 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14017 | # If the user did not use the arguments to specify the items to instantiate, |
| 14018 | # then the envvar interface is used. Set only those that are not. |
| 14019 | # We use the long form for the default assignment because of an extremely |
| 14020 | # bizarre bug on SunOS 4.1.3. |
| 14021 | if $ac_need_defaults; then |
| 14022 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 14023 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 14024 | fi |
| 14025 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14026 | # Have a temporary directory for convenience. Make it in the build tree |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14027 | # 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] | 14028 | # creating and moving files from /tmp can sometimes cause problems. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14029 | # Hook for its removal unless debugging. |
| 14030 | # Note that there is a small window in which the directory will not be cleaned: |
| 14031 | # 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] | 14032 | $debug || |
| 14033 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14034 | tmp= |
| 14035 | trap 'exit_status=$? |
| 14036 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 14037 | ' 0 |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 14038 | trap 'as_fn_exit 1' 1 2 13 15 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14039 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14040 | # Create a (secure) tmp directory for tmp files. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14041 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14042 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14043 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14044 | test -n "$tmp" && test -d "$tmp" |
| 14045 | } || |
| 14046 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14047 | tmp=./conf$$-$RANDOM |
| 14048 | (umask 077 && mkdir "$tmp") |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 14049 | } || 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] | 14050 | |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14051 | # Set up the scripts for CONFIG_FILES section. |
| 14052 | # No need to generate them if there are no CONFIG_FILES. |
| 14053 | # This happens for instance with `./config.status config.h'. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14054 | if test -n "$CONFIG_FILES"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14055 | |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14056 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 14057 | ac_cr=`echo X | tr X '\015'` |
| 14058 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 14059 | # But we know of no other shell where ac_cr would be empty at this |
| 14060 | # point, so we can use a bashism as a fallback. |
| 14061 | if test "x$ac_cr" = x; then |
| 14062 | eval ac_cr=\$\'\\r\' |
| 14063 | fi |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14064 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 14065 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 14066 | ac_cs_awk_cr='\r' |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14067 | else |
| 14068 | ac_cs_awk_cr=$ac_cr |
| 14069 | fi |
| 14070 | |
| 14071 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14072 | _ACEOF |
| 14073 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14074 | |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14075 | { |
| 14076 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 14077 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 14078 | echo "_ACEOF" |
| 14079 | } >conf$$subs.sh || |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 14080 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14081 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14082 | ac_delim='%!_!# ' |
| 14083 | for ac_last_try in false false false false false :; do |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14084 | . ./conf$$subs.sh || |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 14085 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14086 | |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14087 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 14088 | if test $ac_delim_n = $ac_delim_num; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14089 | break |
| 14090 | elif $ac_last_try; then |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 14091 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14092 | else |
| 14093 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14094 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14095 | done |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14096 | rm -f conf$$subs.sh |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14097 | |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14098 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 14099 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14100 | _ACEOF |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14101 | sed -n ' |
| 14102 | h |
| 14103 | s/^/S["/; s/!.*/"]=/ |
| 14104 | p |
| 14105 | g |
| 14106 | s/^[^!]*!// |
| 14107 | :repl |
| 14108 | t repl |
| 14109 | s/'"$ac_delim"'$// |
| 14110 | t delim |
| 14111 | :nl |
| 14112 | h |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 14113 | s/\(.\{148\}\)..*/\1/ |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14114 | t more1 |
| 14115 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 14116 | p |
| 14117 | n |
| 14118 | b repl |
| 14119 | :more1 |
| 14120 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 14121 | p |
| 14122 | g |
| 14123 | s/.\{148\}// |
| 14124 | t nl |
| 14125 | :delim |
| 14126 | h |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 14127 | s/\(.\{148\}\)..*/\1/ |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14128 | t more2 |
| 14129 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 14130 | p |
| 14131 | b |
| 14132 | :more2 |
| 14133 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 14134 | p |
| 14135 | g |
| 14136 | s/.\{148\}// |
| 14137 | t delim |
| 14138 | ' <conf$$subs.awk | sed ' |
| 14139 | /^[^""]/{ |
| 14140 | N |
| 14141 | s/\n// |
| 14142 | } |
| 14143 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 14144 | rm -f conf$$subs.awk |
| 14145 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 14146 | _ACAWK |
| 14147 | cat >>"\$tmp/subs1.awk" <<_ACAWK && |
| 14148 | for (key in S) S_is_set[key] = 1 |
| 14149 | FS = "" |
| 14150 | |
| 14151 | } |
| 14152 | { |
| 14153 | line = $ 0 |
| 14154 | nfields = split(line, field, "@") |
| 14155 | substed = 0 |
| 14156 | len = length(field[1]) |
| 14157 | for (i = 2; i < nfields; i++) { |
| 14158 | key = field[i] |
| 14159 | keylen = length(key) |
| 14160 | if (S_is_set[key]) { |
| 14161 | value = S[key] |
| 14162 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 14163 | len += length(value) + length(field[++i]) |
| 14164 | substed = 1 |
| 14165 | } else |
| 14166 | len += 1 + keylen |
| 14167 | } |
| 14168 | |
| 14169 | print line |
| 14170 | } |
| 14171 | |
| 14172 | _ACAWK |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14173 | _ACEOF |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14174 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 14175 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 14176 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 14177 | else |
| 14178 | cat |
| 14179 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 14180 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14181 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14182 | |
| 14183 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 14184 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 14185 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 14186 | # (actually we leave an empty line to preserve line numbers). |
| 14187 | if test "x$srcdir" = x.; then |
| 14188 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 14189 | s/:*\$(srcdir):*/:/ |
| 14190 | s/:*\${srcdir}:*/:/ |
| 14191 | s/:*@srcdir@:*/:/ |
| 14192 | s/^\([^=]*=[ ]*\):*/\1/ |
| 14193 | s/:*$// |
| 14194 | s/^[^=]*=[ ]*$// |
| 14195 | }' |
| 14196 | fi |
| 14197 | |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14198 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14199 | fi # test -n "$CONFIG_FILES" |
| 14200 | |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14201 | # Set up the scripts for CONFIG_HEADERS section. |
| 14202 | # No need to generate them if there are no CONFIG_HEADERS. |
| 14203 | # This happens for instance with `./config.status Makefile'. |
| 14204 | if test -n "$CONFIG_HEADERS"; then |
| 14205 | cat >"$tmp/defines.awk" <<\_ACAWK || |
| 14206 | BEGIN { |
| 14207 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14208 | |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14209 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 14210 | # here-document in config.status, that substitutes the proper values into |
| 14211 | # config.h.in to produce config.h. |
| 14212 | |
| 14213 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 14214 | # handling of long lines. |
| 14215 | ac_delim='%!_!# ' |
| 14216 | for ac_last_try in false false :; do |
| 14217 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` |
| 14218 | if test -z "$ac_t"; then |
| 14219 | break |
| 14220 | elif $ac_last_try; then |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 14221 | as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14222 | else |
| 14223 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 14224 | fi |
| 14225 | done |
| 14226 | |
| 14227 | # For the awk script, D is an array of macro values keyed by name, |
| 14228 | # likewise P contains macro parameters if any. Preserve backslash |
| 14229 | # newline sequences. |
| 14230 | |
| 14231 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 14232 | sed -n ' |
| 14233 | s/.\{148\}/&'"$ac_delim"'/g |
| 14234 | t rset |
| 14235 | :rset |
| 14236 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 14237 | t def |
| 14238 | d |
| 14239 | :def |
| 14240 | s/\\$// |
| 14241 | t bsnl |
| 14242 | s/["\\]/\\&/g |
| 14243 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 14244 | D["\1"]=" \3"/p |
| 14245 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 14246 | d |
| 14247 | :bsnl |
| 14248 | s/["\\]/\\&/g |
| 14249 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 14250 | D["\1"]=" \3\\\\\\n"\\/p |
| 14251 | t cont |
| 14252 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 14253 | t cont |
| 14254 | d |
| 14255 | :cont |
| 14256 | n |
| 14257 | s/.\{148\}/&'"$ac_delim"'/g |
| 14258 | t clear |
| 14259 | :clear |
| 14260 | s/\\$// |
| 14261 | t bsnlc |
| 14262 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 14263 | d |
| 14264 | :bsnlc |
| 14265 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 14266 | b cont |
| 14267 | ' <confdefs.h | sed ' |
| 14268 | s/'"$ac_delim"'/"\\\ |
| 14269 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 14270 | |
| 14271 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 14272 | for (key in D) D_is_set[key] = 1 |
| 14273 | FS = "" |
| 14274 | } |
| 14275 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 14276 | line = \$ 0 |
| 14277 | split(line, arg, " ") |
| 14278 | if (arg[1] == "#") { |
| 14279 | defundef = arg[2] |
| 14280 | mac1 = arg[3] |
| 14281 | } else { |
| 14282 | defundef = substr(arg[1], 2) |
| 14283 | mac1 = arg[2] |
| 14284 | } |
| 14285 | split(mac1, mac2, "(") #) |
| 14286 | macro = mac2[1] |
| 14287 | prefix = substr(line, 1, index(line, defundef) - 1) |
| 14288 | if (D_is_set[macro]) { |
| 14289 | # Preserve the white space surrounding the "#". |
| 14290 | print prefix "define", macro P[macro] D[macro] |
| 14291 | next |
| 14292 | } else { |
| 14293 | # Replace #undef with comments. This is necessary, for example, |
| 14294 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 14295 | # on some systems where configure will not decide to define it. |
| 14296 | if (defundef == "undef") { |
| 14297 | print "/*", prefix defundef, macro, "*/" |
| 14298 | next |
| 14299 | } |
| 14300 | } |
| 14301 | } |
| 14302 | { print } |
| 14303 | _ACAWK |
| 14304 | _ACEOF |
| 14305 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 14306 | as_fn_error "could not setup config headers machinery" "$LINENO" 5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14307 | fi # test -n "$CONFIG_HEADERS" |
| 14308 | |
| 14309 | |
| 14310 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " |
| 14311 | shift |
| 14312 | for ac_tag |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14313 | do |
| 14314 | case $ac_tag in |
| 14315 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 14316 | esac |
| 14317 | case $ac_mode$ac_tag in |
| 14318 | :[FHL]*:*);; |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 14319 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14320 | :[FH]-) ac_tag=-:-;; |
| 14321 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 14322 | esac |
| 14323 | ac_save_IFS=$IFS |
| 14324 | IFS=: |
| 14325 | set x $ac_tag |
| 14326 | IFS=$ac_save_IFS |
| 14327 | shift |
| 14328 | ac_file=$1 |
| 14329 | shift |
| 14330 | |
| 14331 | case $ac_mode in |
| 14332 | :L) ac_source=$1;; |
| 14333 | :[FH]) |
| 14334 | ac_file_inputs= |
| 14335 | for ac_f |
| 14336 | do |
| 14337 | case $ac_f in |
| 14338 | -) ac_f="$tmp/stdin";; |
| 14339 | *) # Look for the file first in the build tree, then in the source tree |
| 14340 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 14341 | # because $ac_f cannot contain `:'. |
| 14342 | test -f "$ac_f" || |
| 14343 | case $ac_f in |
| 14344 | [\\/$]*) false;; |
| 14345 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 14346 | esac || |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 14347 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14348 | esac |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14349 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 14350 | as_fn_append ac_file_inputs " '$ac_f'" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14351 | done |
| 14352 | |
| 14353 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 14354 | # use $as_me), people would be surprised to read: |
| 14355 | # /* config.h. Generated by config.status. */ |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14356 | configure_input='Generated from '` |
| 14357 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 14358 | `' by configure.' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14359 | if test x"$ac_file" != x-; then |
| 14360 | configure_input="$ac_file. $configure_input" |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 14361 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14362 | $as_echo "$as_me: creating $ac_file" >&6;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14363 | fi |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14364 | # Neutralize special characters interpreted by sed in replacement strings. |
| 14365 | case $configure_input in #( |
| 14366 | *\&* | *\|* | *\\* ) |
| 14367 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 14368 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 14369 | *) ac_sed_conf_input=$configure_input;; |
| 14370 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14371 | |
| 14372 | case $ac_tag in |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14373 | *:-:* | *:-) cat >"$tmp/stdin" \ |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 14374 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14375 | esac |
| 14376 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14377 | esac |
| 14378 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14379 | ac_dir=`$as_dirname -- "$ac_file" || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14380 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14381 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 14382 | X"$ac_file" : 'X\(//\)$' \| \ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14383 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14384 | $as_echo X"$ac_file" | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14385 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 14386 | s//\1/ |
| 14387 | q |
| 14388 | } |
| 14389 | /^X\(\/\/\)[^/].*/{ |
| 14390 | s//\1/ |
| 14391 | q |
| 14392 | } |
| 14393 | /^X\(\/\/\)$/{ |
| 14394 | s//\1/ |
| 14395 | q |
| 14396 | } |
| 14397 | /^X\(\/\).*/{ |
| 14398 | s//\1/ |
| 14399 | q |
| 14400 | } |
| 14401 | s/.*/./; q'` |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 14402 | as_dir="$ac_dir"; as_fn_mkdir_p |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14403 | ac_builddir=. |
| 14404 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14405 | case "$ac_dir" in |
| 14406 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 14407 | *) |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14408 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14409 | # A ".." for each directory in $ac_dir_suffix. |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14410 | 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] | 14411 | case $ac_top_builddir_sub in |
| 14412 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 14413 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 14414 | esac ;; |
| 14415 | esac |
| 14416 | ac_abs_top_builddir=$ac_pwd |
| 14417 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 14418 | # for backward compatibility: |
| 14419 | ac_top_builddir=$ac_top_build_prefix |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14420 | |
| 14421 | case $srcdir in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14422 | .) # We are building in place. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14423 | ac_srcdir=. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14424 | ac_top_srcdir=$ac_top_builddir_sub |
| 14425 | ac_abs_top_srcdir=$ac_pwd ;; |
| 14426 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14427 | ac_srcdir=$srcdir$ac_dir_suffix; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14428 | ac_top_srcdir=$srcdir |
| 14429 | ac_abs_top_srcdir=$srcdir ;; |
| 14430 | *) # Relative name. |
| 14431 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 14432 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 14433 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14434 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14435 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14436 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14437 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14438 | case $ac_mode in |
| 14439 | :F) |
| 14440 | # |
| 14441 | # CONFIG_FILE |
| 14442 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14443 | |
| 14444 | case $INSTALL in |
| 14445 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14446 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14447 | esac |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 14448 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14449 | |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14450 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14451 | # If the template does not know about datarootdir, expand it. |
| 14452 | # FIXME: This hack should be removed a few years after 2.60. |
| 14453 | ac_datarootdir_hack=; ac_datarootdir_seen= |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14454 | ac_sed_dataroot=' |
| 14455 | /datarootdir/ { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14456 | p |
| 14457 | q |
| 14458 | } |
| 14459 | /@datadir@/p |
| 14460 | /@docdir@/p |
| 14461 | /@infodir@/p |
| 14462 | /@localedir@/p |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 14463 | /@mandir@/p' |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14464 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14465 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 14466 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 14467 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14468 | $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] | 14469 | _ACEOF |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14470 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14471 | ac_datarootdir_hack=' |
| 14472 | s&@datadir@&$datadir&g |
| 14473 | s&@docdir@&$docdir&g |
| 14474 | s&@infodir@&$infodir&g |
| 14475 | s&@localedir@&$localedir&g |
| 14476 | s&@mandir@&$mandir&g |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 14477 | s&\\\${datarootdir}&$datarootdir&g' ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14478 | esac |
| 14479 | _ACEOF |
| 14480 | |
| 14481 | # Neutralize VPATH when `$srcdir' = `.'. |
| 14482 | # Shell code in configure.ac might set extrasub. |
| 14483 | # FIXME: do we really want to maintain this feature? |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14484 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 14485 | ac_sed_extra="$ac_vpsub |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14486 | $extrasub |
| 14487 | _ACEOF |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14488 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14489 | :t |
| 14490 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14491 | s|@configure_input@|$ac_sed_conf_input|;t t |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14492 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14493 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14494 | s&@srcdir@&$ac_srcdir&;t t |
| 14495 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 14496 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 14497 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 14498 | s&@builddir@&$ac_builddir&;t t |
| 14499 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 14500 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 14501 | s&@INSTALL@&$ac_INSTALL&;t t |
| 14502 | $ac_datarootdir_hack |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14503 | " |
| 14504 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 14505 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14506 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14507 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 14508 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 14509 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 14510 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14511 | which seems to be undefined. Please make sure it is defined." >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14512 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14513 | which seems to be undefined. Please make sure it is defined." >&2;} |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 14514 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14515 | rm -f "$tmp/stdin" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14516 | case $ac_file in |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14517 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
| 14518 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; |
| 14519 | esac \ |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 14520 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14521 | ;; |
| 14522 | :H) |
| 14523 | # |
| 14524 | # CONFIG_HEADER |
| 14525 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14526 | if test x"$ac_file" != x-; then |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14527 | { |
| 14528 | $as_echo "/* $configure_input */" \ |
| 14529 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" |
| 14530 | } >"$tmp/config.h" \ |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 14531 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14532 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 14533 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14534 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14535 | else |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14536 | rm -f "$ac_file" |
| 14537 | mv "$tmp/config.h" "$ac_file" \ |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 14538 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14539 | fi |
| 14540 | else |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14541 | $as_echo "/* $configure_input */" \ |
| 14542 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 14543 | || as_fn_error "could not create -" "$LINENO" 5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14544 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14545 | ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14546 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14547 | |
| 14548 | esac |
| 14549 | |
| 14550 | done # for ac_tag |
| 14551 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14552 | |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 14553 | as_fn_exit 0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14554 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14555 | ac_clean_files=$ac_clean_files_save |
| 14556 | |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14557 | test $ac_write_fail = 0 || |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 14558 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14559 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14560 | |
| 14561 | # configure is writing to config.log, and then calls config.status. |
| 14562 | # config.status does its own redirection, appending to config.log. |
| 14563 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 14564 | # by configure, so config.status won't be able to write to it; its |
| 14565 | # output is simply discarded. So we exec the FD to /dev/null, |
| 14566 | # effectively closing config.log, so it can be properly (re)opened and |
| 14567 | # appended to by config.status. When coming back to configure, we |
| 14568 | # need to make the FD available again. |
| 14569 | if test "$no_create" != yes; then |
| 14570 | ac_cs_success=: |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14571 | ac_config_status_args= |
| 14572 | test "$silent" = yes && |
| 14573 | ac_config_status_args="$ac_config_status_args --quiet" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14574 | exec 5>/dev/null |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14575 | $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] | 14576 | exec 5>>config.log |
| 14577 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 14578 | # would make configure fail if this is the last instruction. |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 14579 | $ac_cs_success || as_fn_exit $? |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14580 | fi |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14581 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
Benjamin Peterson | f7155a3 | 2010-06-21 16:51:22 +0000 | [diff] [blame] | 14582 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
Benjamin Peterson | 82af01d | 2010-05-02 16:45:41 +0000 | [diff] [blame] | 14583 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
| 14584 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14585 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 14586 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 14587 | echo "creating Modules/Setup" |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 14588 | if test ! -f Modules/Setup |
| 14589 | then |
| 14590 | cp $srcdir/Modules/Setup.dist Modules/Setup |
| 14591 | fi |
| 14592 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 14593 | echo "creating Modules/Setup.local" |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 14594 | if test ! -f Modules/Setup.local |
| 14595 | then |
| 14596 | echo "# Edit this file for local setup changes" >Modules/Setup.local |
| 14597 | fi |
| 14598 | |
| 14599 | echo "creating Makefile" |
| 14600 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ |
| 14601 | -s Modules Modules/Setup.config \ |
Neil Schemenauer | f8b71c5 | 2001-04-21 17:41:16 +0000 | [diff] [blame] | 14602 | Modules/Setup.local Modules/Setup |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 14603 | mv config.c Modules |