| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1 | #! /bin/sh | 
| Georg Brandl | 1ca2e79 | 2011-03-05 20:51:24 +0100 | [diff] [blame] | 2 | # From configure.in Revision. | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3 | # Guess values for system-dependent variables and create Makefiles. | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 4 | # Generated by GNU Autoconf 2.67 for python 3.2. | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5 | # | 
| Georg Brandl | e2e1561 | 2009-05-20 18:25:10 +0000 | [diff] [blame] | 6 | # Report bugs to <http://bugs.python.org/>. | 
| Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 7 | # | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8 | # | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 10 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software | 
|  | 11 | # Foundation, Inc. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12 | # | 
|  | 13 | # | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14 | # This configure script is free software; the Free Software Foundation | 
|  | 15 | # gives unlimited permission to copy, distribute and modify it. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16 | ## -------------------- ## | 
|  | 17 | ## M4sh Initialization. ## | 
|  | 18 | ## -------------------- ## | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20 | # Be more Bourne compatible | 
|  | 21 | DUALCASE=1; export DUALCASE # for MKS sh | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 22 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23 | emulate sh | 
|  | 24 | NULLCMD=: | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 25 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26 | # is contrary to our usage.  Disable this feature. | 
|  | 27 | alias -g '${1+"$@"}'='"$@"' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 28 | setopt NO_GLOB_SUBST | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 29 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 30 | case `(set -o) 2>/dev/null` in #( | 
|  | 31 | *posix*) : | 
|  | 32 | set -o posix ;; #( | 
|  | 33 | *) : | 
|  | 34 | ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 35 | esac | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 36 | fi | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 37 |  | 
|  | 38 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 39 | as_nl=' | 
|  | 40 | ' | 
|  | 41 | export as_nl | 
|  | 42 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | 
|  | 43 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | 
|  | 44 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | 
|  | 45 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | 
|  | 46 | # Prefer a ksh shell builtin over an external printf program on Solaris, | 
|  | 47 | # but without wasting forks for bash or zsh. | 
|  | 48 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | 
|  | 49 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | 
|  | 50 | as_echo='print -r --' | 
|  | 51 | as_echo_n='print -rn --' | 
|  | 52 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | 
|  | 53 | as_echo='printf %s\n' | 
|  | 54 | as_echo_n='printf %s' | 
|  | 55 | else | 
|  | 56 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | 
|  | 57 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | 
|  | 58 | as_echo_n='/usr/ucb/echo -n' | 
|  | 59 | else | 
|  | 60 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | 
|  | 61 | as_echo_n_body='eval | 
|  | 62 | arg=$1; | 
|  | 63 | case $arg in #( | 
|  | 64 | *"$as_nl"*) | 
|  | 65 | expr "X$arg" : "X\\(.*\\)$as_nl"; | 
|  | 66 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | 
|  | 67 | esac; | 
|  | 68 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | 
|  | 69 | ' | 
|  | 70 | export as_echo_n_body | 
|  | 71 | as_echo_n='sh -c $as_echo_n_body as_echo' | 
|  | 72 | fi | 
|  | 73 | export as_echo_body | 
|  | 74 | as_echo='sh -c $as_echo_body as_echo' | 
|  | 75 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 76 |  | 
|  | 77 | # The user is always right. | 
|  | 78 | if test "${PATH_SEPARATOR+set}" != set; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 79 | PATH_SEPARATOR=: | 
|  | 80 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | 
|  | 81 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | 
|  | 82 | PATH_SEPARATOR=';' | 
|  | 83 | } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 84 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 85 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 86 |  | 
|  | 87 | # IFS | 
|  | 88 | # We need space, tab and new line, in precisely that order.  Quoting is | 
|  | 89 | # there to prevent editors from complaining about space-tab. | 
|  | 90 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | 
|  | 91 | # splitting by setting IFS to empty value.) | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 92 | IFS=" ""	$as_nl" | 
|  | 93 |  | 
|  | 94 | # Find who we are.  Look in the path if we contain no directory separator. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 95 | case $0 in #(( | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 96 | *[\\/]* ) as_myself=$0 ;; | 
|  | 97 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 98 | for as_dir in $PATH | 
|  | 99 | do | 
|  | 100 | IFS=$as_save_IFS | 
|  | 101 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 102 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | 
|  | 103 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 104 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 105 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 106 | ;; | 
|  | 107 | esac | 
|  | 108 | # We did not find ourselves, most probably we were run as `sh COMMAND' | 
|  | 109 | # in which case we are not to be found in the path. | 
|  | 110 | if test "x$as_myself" = x; then | 
|  | 111 | as_myself=$0 | 
|  | 112 | fi | 
|  | 113 | if test ! -f "$as_myself"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 114 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | 
|  | 115 | exit 1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 116 | fi | 
|  | 117 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 118 | # Unset variables that we do not need and which cause bugs (e.g. in | 
|  | 119 | # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1" | 
|  | 120 | # suppresses any "Segmentation fault" message there.  '((' could | 
|  | 121 | # trigger a bug in pdksh 5.2.14. | 
|  | 122 | for as_var in BASH_ENV ENV MAIL MAILPATH | 
|  | 123 | do eval test x\${$as_var+set} = xset \ | 
|  | 124 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 125 | done | 
|  | 126 | PS1='$ ' | 
|  | 127 | PS2='> ' | 
|  | 128 | PS4='+ ' | 
|  | 129 |  | 
|  | 130 | # NLS nuisances. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 131 | LC_ALL=C | 
|  | 132 | export LC_ALL | 
|  | 133 | LANGUAGE=C | 
|  | 134 | export LANGUAGE | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 135 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 136 | # CDPATH. | 
|  | 137 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | 
|  | 138 |  | 
|  | 139 | if test "x$CONFIG_SHELL" = x; then | 
|  | 140 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | 
|  | 141 | emulate sh | 
|  | 142 | NULLCMD=: | 
|  | 143 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | 
|  | 144 | # is contrary to our usage.  Disable this feature. | 
|  | 145 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | 
|  | 146 | setopt NO_GLOB_SUBST | 
|  | 147 | else | 
|  | 148 | case \`(set -o) 2>/dev/null\` in #( | 
|  | 149 | *posix*) : | 
|  | 150 | set -o posix ;; #( | 
|  | 151 | *) : | 
|  | 152 | ;; | 
|  | 153 | esac | 
|  | 154 | fi | 
|  | 155 | " | 
|  | 156 | as_required="as_fn_return () { (exit \$1); } | 
|  | 157 | as_fn_success () { as_fn_return 0; } | 
|  | 158 | as_fn_failure () { as_fn_return 1; } | 
|  | 159 | as_fn_ret_success () { return 0; } | 
|  | 160 | as_fn_ret_failure () { return 1; } | 
|  | 161 |  | 
|  | 162 | exitcode=0 | 
|  | 163 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | 
|  | 164 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | 
|  | 165 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | 
|  | 166 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | 
|  | 167 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | 
|  | 168 |  | 
|  | 169 | else | 
|  | 170 | exitcode=1; echo positional parameters were not saved. | 
|  | 171 | fi | 
|  | 172 | test x\$exitcode = x0 || exit 1" | 
|  | 173 | as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | 
|  | 174 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | 
|  | 175 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | 
|  | 176 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | 
|  | 177 | test \$(( 1 + 1 )) = 2 || exit 1" | 
|  | 178 | if (eval "$as_required") 2>/dev/null; then : | 
|  | 179 | as_have_required=yes | 
|  | 180 | else | 
|  | 181 | as_have_required=no | 
|  | 182 | fi | 
|  | 183 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | 
|  | 184 |  | 
|  | 185 | else | 
|  | 186 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 187 | as_found=false | 
|  | 188 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | 
|  | 189 | do | 
|  | 190 | IFS=$as_save_IFS | 
|  | 191 | test -z "$as_dir" && as_dir=. | 
|  | 192 | as_found=: | 
|  | 193 | case $as_dir in #( | 
|  | 194 | /*) | 
|  | 195 | for as_base in sh bash ksh sh5; do | 
|  | 196 | # Try only shells that exist, to save several forks. | 
|  | 197 | as_shell=$as_dir/$as_base | 
|  | 198 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | 
|  | 199 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | 
|  | 200 | CONFIG_SHELL=$as_shell as_have_required=yes | 
|  | 201 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | 
|  | 202 | break 2 | 
|  | 203 | fi | 
|  | 204 | fi | 
|  | 205 | done;; | 
|  | 206 | esac | 
|  | 207 | as_found=false | 
|  | 208 | done | 
|  | 209 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | 
|  | 210 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | 
|  | 211 | CONFIG_SHELL=$SHELL as_have_required=yes | 
|  | 212 | fi; } | 
|  | 213 | IFS=$as_save_IFS | 
|  | 214 |  | 
|  | 215 |  | 
|  | 216 | if test "x$CONFIG_SHELL" != x; then : | 
|  | 217 | # We cannot yet assume a decent shell, so we have to provide a | 
|  | 218 | # neutralization value for shells without unset; and this also | 
|  | 219 | # works around shells that cannot unset nonexistent variables. | 
|  | 220 | BASH_ENV=/dev/null | 
|  | 221 | ENV=/dev/null | 
|  | 222 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | 
|  | 223 | export CONFIG_SHELL | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 224 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 225 | fi | 
|  | 226 |  | 
|  | 227 | if test x$as_have_required = xno; then : | 
|  | 228 | $as_echo "$0: This script requires a shell more modern than all" | 
|  | 229 | $as_echo "$0: the shells that I found on your system." | 
|  | 230 | if test x${ZSH_VERSION+set} = xset ; then | 
|  | 231 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | 
|  | 232 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | 
|  | 233 | else | 
|  | 234 | $as_echo "$0: Please tell bug-autoconf@gnu.org and | 
|  | 235 | $0: http://bugs.python.org/ about your system, including | 
|  | 236 | $0: any error possibly output before this message. Then | 
|  | 237 | $0: install a modern shell, or manually run the script | 
|  | 238 | $0: under such a shell if you do have one." | 
|  | 239 | fi | 
|  | 240 | exit 1 | 
|  | 241 | fi | 
|  | 242 | fi | 
|  | 243 | fi | 
|  | 244 | SHELL=${CONFIG_SHELL-/bin/sh} | 
|  | 245 | export SHELL | 
|  | 246 | # Unset more variables known to interfere with behavior of common tools. | 
|  | 247 | CLICOLOR_FORCE= GREP_OPTIONS= | 
|  | 248 | unset CLICOLOR_FORCE GREP_OPTIONS | 
|  | 249 |  | 
|  | 250 | ## --------------------- ## | 
|  | 251 | ## M4sh Shell Functions. ## | 
|  | 252 | ## --------------------- ## | 
|  | 253 | # as_fn_unset VAR | 
|  | 254 | # --------------- | 
|  | 255 | # Portably unset VAR. | 
|  | 256 | as_fn_unset () | 
|  | 257 | { | 
|  | 258 | { eval $1=; unset $1;} | 
|  | 259 | } | 
|  | 260 | as_unset=as_fn_unset | 
|  | 261 |  | 
|  | 262 | # as_fn_set_status STATUS | 
|  | 263 | # ----------------------- | 
|  | 264 | # Set $? to STATUS, without forking. | 
|  | 265 | as_fn_set_status () | 
|  | 266 | { | 
|  | 267 | return $1 | 
|  | 268 | } # as_fn_set_status | 
|  | 269 |  | 
|  | 270 | # as_fn_exit STATUS | 
|  | 271 | # ----------------- | 
|  | 272 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | 
|  | 273 | as_fn_exit () | 
|  | 274 | { | 
|  | 275 | set +e | 
|  | 276 | as_fn_set_status $1 | 
|  | 277 | exit $1 | 
|  | 278 | } # as_fn_exit | 
|  | 279 |  | 
|  | 280 | # as_fn_mkdir_p | 
|  | 281 | # ------------- | 
|  | 282 | # Create "$as_dir" as a directory, including parents if necessary. | 
|  | 283 | as_fn_mkdir_p () | 
|  | 284 | { | 
|  | 285 |  | 
|  | 286 | case $as_dir in #( | 
|  | 287 | -*) as_dir=./$as_dir;; | 
|  | 288 | esac | 
|  | 289 | test -d "$as_dir" || eval $as_mkdir_p || { | 
|  | 290 | as_dirs= | 
|  | 291 | while :; do | 
|  | 292 | case $as_dir in #( | 
|  | 293 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | 
|  | 294 | *) as_qdir=$as_dir;; | 
|  | 295 | esac | 
|  | 296 | as_dirs="'$as_qdir' $as_dirs" | 
|  | 297 | as_dir=`$as_dirname -- "$as_dir" || | 
|  | 298 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
|  | 299 | X"$as_dir" : 'X\(//\)[^/]' \| \ | 
|  | 300 | X"$as_dir" : 'X\(//\)$' \| \ | 
|  | 301 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | 
|  | 302 | $as_echo X"$as_dir" | | 
|  | 303 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
|  | 304 | s//\1/ | 
|  | 305 | q | 
|  | 306 | } | 
|  | 307 | /^X\(\/\/\)[^/].*/{ | 
|  | 308 | s//\1/ | 
|  | 309 | q | 
|  | 310 | } | 
|  | 311 | /^X\(\/\/\)$/{ | 
|  | 312 | s//\1/ | 
|  | 313 | q | 
|  | 314 | } | 
|  | 315 | /^X\(\/\).*/{ | 
|  | 316 | s//\1/ | 
|  | 317 | q | 
|  | 318 | } | 
|  | 319 | s/.*/./; q'` | 
|  | 320 | test -d "$as_dir" && break | 
|  | 321 | done | 
|  | 322 | test -z "$as_dirs" || eval "mkdir $as_dirs" | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 323 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 324 |  | 
|  | 325 |  | 
|  | 326 | } # as_fn_mkdir_p | 
|  | 327 | # as_fn_append VAR VALUE | 
|  | 328 | # ---------------------- | 
|  | 329 | # Append the text in VALUE to the end of the definition contained in VAR. Take | 
|  | 330 | # advantage of any shell optimizations that allow amortized linear growth over | 
|  | 331 | # repeated appends, instead of the typical quadratic growth present in naive | 
|  | 332 | # implementations. | 
|  | 333 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | 
|  | 334 | eval 'as_fn_append () | 
|  | 335 | { | 
|  | 336 | eval $1+=\$2 | 
|  | 337 | }' | 
|  | 338 | else | 
|  | 339 | as_fn_append () | 
|  | 340 | { | 
|  | 341 | eval $1=\$$1\$2 | 
|  | 342 | } | 
|  | 343 | fi # as_fn_append | 
|  | 344 |  | 
|  | 345 | # as_fn_arith ARG... | 
|  | 346 | # ------------------ | 
|  | 347 | # Perform arithmetic evaluation on the ARGs, and store the result in the | 
|  | 348 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | 
|  | 349 | # must be portable across $(()) and expr. | 
|  | 350 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | 
|  | 351 | eval 'as_fn_arith () | 
|  | 352 | { | 
|  | 353 | as_val=$(( $* )) | 
|  | 354 | }' | 
|  | 355 | else | 
|  | 356 | as_fn_arith () | 
|  | 357 | { | 
|  | 358 | as_val=`expr "$@" || test $? -eq 1` | 
|  | 359 | } | 
|  | 360 | fi # as_fn_arith | 
|  | 361 |  | 
|  | 362 |  | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 363 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | 
|  | 364 | # ---------------------------------------- | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 365 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | 
|  | 366 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 367 | # script with STATUS, using 1 if that was 0. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 368 | as_fn_error () | 
|  | 369 | { | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 370 | as_status=$1; test $as_status -eq 0 && as_status=1 | 
|  | 371 | if test "$4"; then | 
|  | 372 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 373 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 374 | fi | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 375 | $as_echo "$as_me: error: $2" >&2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 376 | as_fn_exit $as_status | 
|  | 377 | } # as_fn_error | 
|  | 378 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 379 | if expr a : '\(a\)' >/dev/null 2>&1 && | 
|  | 380 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | 
|  | 381 | as_expr=expr | 
|  | 382 | else | 
|  | 383 | as_expr=false | 
|  | 384 | fi | 
|  | 385 |  | 
|  | 386 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | 
|  | 387 | as_basename=basename | 
|  | 388 | else | 
|  | 389 | as_basename=false | 
|  | 390 | fi | 
|  | 391 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 392 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | 
|  | 393 | as_dirname=dirname | 
|  | 394 | else | 
|  | 395 | as_dirname=false | 
|  | 396 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 397 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 398 | as_me=`$as_basename -- "$0" || | 
|  | 399 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | 
|  | 400 | X"$0" : 'X\(//\)$' \| \ | 
|  | 401 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 402 | $as_echo X/"$0" | | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 403 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | 
|  | 404 | s//\1/ | 
|  | 405 | q | 
|  | 406 | } | 
|  | 407 | /^X\/\(\/\/\)$/{ | 
|  | 408 | s//\1/ | 
|  | 409 | q | 
|  | 410 | } | 
|  | 411 | /^X\/\(\/\).*/{ | 
|  | 412 | s//\1/ | 
|  | 413 | q | 
|  | 414 | } | 
|  | 415 | s/.*/./; q'` | 
|  | 416 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 417 | # Avoid depending upon Character Ranges. | 
|  | 418 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | 
|  | 419 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | 
|  | 420 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | 
|  | 421 | as_cr_digits='0123456789' | 
|  | 422 | as_cr_alnum=$as_cr_Letters$as_cr_digits | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 423 |  | 
|  | 424 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 425 | as_lineno_1=$LINENO as_lineno_1a=$LINENO | 
|  | 426 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | 
|  | 427 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | 
|  | 428 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | 
|  | 429 | # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-) | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 430 | sed -n ' | 
|  | 431 | p | 
|  | 432 | /[$]LINENO/= | 
|  | 433 | ' <$as_myself | | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 434 | sed ' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 435 | s/[$]LINENO.*/&-/ | 
|  | 436 | t lineno | 
|  | 437 | b | 
|  | 438 | :lineno | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 439 | N | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 440 | :loop | 
|  | 441 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 442 | t loop | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 443 | s/-\n.*// | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 444 | ' >$as_me.lineno && | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 445 | chmod +x "$as_me.lineno" || | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 446 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 447 |  | 
|  | 448 | # Don't try to exec as it changes $[0], causing all sort of problems | 
|  | 449 | # (the dirname of $[0] is not the place where we might find the | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 450 | # original and so on.  Autoconf is especially sensitive to this). | 
|  | 451 | . "./$as_me.lineno" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 452 | # Exit status is that of the last command. | 
|  | 453 | exit | 
|  | 454 | } | 
|  | 455 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 456 | ECHO_C= ECHO_N= ECHO_T= | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 457 | case `echo -n x` in #((((( | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 458 | -n*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 459 | case `echo 'xy\c'` in | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 460 | *c*) ECHO_T='	';;	# ECHO_T is single tab character. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 461 | xy)  ECHO_C='\c';; | 
|  | 462 | *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null | 
|  | 463 | ECHO_T='	';; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 464 | esac;; | 
|  | 465 | *) | 
|  | 466 | ECHO_N='-n';; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 467 | esac | 
| Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 468 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 469 | rm -f conf$$ conf$$.exe conf$$.file | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 470 | if test -d conf$$.dir; then | 
|  | 471 | rm -f conf$$.dir/conf$$.file | 
|  | 472 | else | 
|  | 473 | rm -f conf$$.dir | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 474 | mkdir conf$$.dir 2>/dev/null | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 475 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 476 | if (echo >conf$$.file) 2>/dev/null; then | 
|  | 477 | if ln -s conf$$.file conf$$ 2>/dev/null; then | 
|  | 478 | as_ln_s='ln -s' | 
|  | 479 | # ... but there are two gotchas: | 
|  | 480 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | 
|  | 481 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | 
|  | 482 | # In both cases, we have to default to `cp -p'. | 
|  | 483 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | 
|  | 484 | as_ln_s='cp -p' | 
|  | 485 | elif ln conf$$.file conf$$ 2>/dev/null; then | 
|  | 486 | as_ln_s=ln | 
|  | 487 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 488 | as_ln_s='cp -p' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 489 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 490 | else | 
|  | 491 | as_ln_s='cp -p' | 
|  | 492 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 493 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | 
|  | 494 | rmdir conf$$.dir 2>/dev/null | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 495 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 496 | if mkdir -p . 2>/dev/null; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 497 | as_mkdir_p='mkdir -p "$as_dir"' | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 498 | else | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 499 | test -d ./-p && rmdir ./-p | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 500 | as_mkdir_p=false | 
|  | 501 | fi | 
|  | 502 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 503 | if test -x / >/dev/null 2>&1; then | 
|  | 504 | as_test_x='test -x' | 
|  | 505 | else | 
|  | 506 | if ls -dL / >/dev/null 2>&1; then | 
|  | 507 | as_ls_L_option=L | 
|  | 508 | else | 
|  | 509 | as_ls_L_option= | 
|  | 510 | fi | 
|  | 511 | as_test_x=' | 
|  | 512 | eval sh -c '\'' | 
|  | 513 | if test -d "$1"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 514 | test -d "$1/."; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 515 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 516 | case $1 in #( | 
|  | 517 | -*)set "./$1";; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 518 | esac; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 519 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 520 | ???[sx]*):;;*)false;;esac;fi | 
|  | 521 | '\'' sh | 
|  | 522 | ' | 
|  | 523 | fi | 
|  | 524 | as_executable_p=$as_test_x | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 525 |  | 
|  | 526 | # Sed expression to map a string onto a valid CPP name. | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 527 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 528 |  | 
|  | 529 | # Sed expression to map a string onto a valid variable name. | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 530 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 531 |  | 
|  | 532 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 533 | test -n "$DJDIR" || exec 7<&0 </dev/null | 
|  | 534 | exec 6>&1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 535 |  | 
|  | 536 | # Name of the host. | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 537 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 538 | # so uname gets run too. | 
|  | 539 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | 
|  | 540 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 541 | # | 
|  | 542 | # Initializations. | 
|  | 543 | # | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 544 | ac_default_prefix=/usr/local | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 545 | ac_clean_files= | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 546 | ac_config_libobj_dir=. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 547 | LIBOBJS= | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 548 | cross_compiling=no | 
|  | 549 | subdirs= | 
|  | 550 | MFLAGS= | 
|  | 551 | MAKEFLAGS= | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 552 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 553 | # Identity of this package. | 
| Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 554 | PACKAGE_NAME='python' | 
|  | 555 | PACKAGE_TARNAME='python' | 
| Benjamin Peterson | 46ea4f7 | 2009-06-27 21:40:27 +0000 | [diff] [blame] | 556 | PACKAGE_VERSION='3.2' | 
|  | 557 | PACKAGE_STRING='python 3.2' | 
| Georg Brandl | e2e1561 | 2009-05-20 18:25:10 +0000 | [diff] [blame] | 558 | PACKAGE_BUGREPORT='http://bugs.python.org/' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 559 | PACKAGE_URL='' | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 560 |  | 
|  | 561 | ac_unique_file="Include/object.h" | 
|  | 562 | # Factoring default headers for most tests. | 
|  | 563 | ac_includes_default="\ | 
|  | 564 | #include <stdio.h> | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 565 | #ifdef HAVE_SYS_TYPES_H | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 566 | # include <sys/types.h> | 
|  | 567 | #endif | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 568 | #ifdef HAVE_SYS_STAT_H | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 569 | # include <sys/stat.h> | 
|  | 570 | #endif | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 571 | #ifdef STDC_HEADERS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 572 | # include <stdlib.h> | 
|  | 573 | # include <stddef.h> | 
|  | 574 | #else | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 575 | # ifdef HAVE_STDLIB_H | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 576 | #  include <stdlib.h> | 
|  | 577 | # endif | 
|  | 578 | #endif | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 579 | #ifdef HAVE_STRING_H | 
|  | 580 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 581 | #  include <memory.h> | 
|  | 582 | # endif | 
|  | 583 | # include <string.h> | 
|  | 584 | #endif | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 585 | #ifdef HAVE_STRINGS_H | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 586 | # include <strings.h> | 
|  | 587 | #endif | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 588 | #ifdef HAVE_INTTYPES_H | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 589 | # include <inttypes.h> | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 590 | #endif | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 591 | #ifdef HAVE_STDINT_H | 
|  | 592 | # include <stdint.h> | 
|  | 593 | #endif | 
|  | 594 | #ifdef HAVE_UNISTD_H | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 595 | # include <unistd.h> | 
|  | 596 | #endif" | 
|  | 597 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 598 | ac_subst_vars='LTLIBOBJS | 
| Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 599 | SRCDIRS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 600 | THREADHEADERS | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 601 | SOABI | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 602 | LIBC | 
|  | 603 | LIBM | 
|  | 604 | HAVE_GETHOSTBYNAME | 
|  | 605 | HAVE_GETHOSTBYNAME_R | 
|  | 606 | HAVE_GETHOSTBYNAME_R_3_ARG | 
|  | 607 | HAVE_GETHOSTBYNAME_R_5_ARG | 
|  | 608 | HAVE_GETHOSTBYNAME_R_6_ARG | 
|  | 609 | LIBOBJS | 
|  | 610 | TRUE | 
|  | 611 | MACHDEP_OBJS | 
|  | 612 | DYNLOADFILE | 
|  | 613 | DLINCLDIR | 
|  | 614 | THREADOBJ | 
|  | 615 | LDLAST | 
|  | 616 | USE_THREAD_MODULE | 
|  | 617 | SIGNAL_OBJS | 
|  | 618 | USE_SIGNAL_MODULE | 
|  | 619 | LIBFFI_INCLUDEDIR | 
|  | 620 | PKG_CONFIG | 
|  | 621 | SHLIBS | 
|  | 622 | CFLAGSFORSHARED | 
|  | 623 | LINKFORSHARED | 
|  | 624 | CCSHARED | 
|  | 625 | BLDSHARED | 
|  | 626 | LDCXXSHARED | 
|  | 627 | LDSHARED | 
|  | 628 | SO | 
|  | 629 | LIBTOOL_CRUFT | 
|  | 630 | OTHER_LIBTOOL_OPT | 
|  | 631 | UNIVERSAL_ARCH_FLAGS | 
|  | 632 | BASECFLAGS | 
|  | 633 | OPT | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 634 | ABIFLAGS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 635 | LN | 
|  | 636 | INSTALL_DATA | 
|  | 637 | INSTALL_SCRIPT | 
|  | 638 | INSTALL_PROGRAM | 
| Georg Brandl | 187c111 | 2011-07-03 09:23:20 +0200 | [diff] [blame] | 639 | HAS_PYTHON | 
|  | 640 | DISABLE_ASDLGEN | 
| Georg Brandl | 1ca2e79 | 2011-03-05 20:51:24 +0100 | [diff] [blame] | 641 | HAS_HG | 
|  | 642 | HGBRANCH | 
|  | 643 | HGTAG | 
|  | 644 | HGVERSION | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 645 | SVNVERSION | 
|  | 646 | ARFLAGS | 
|  | 647 | AR | 
|  | 648 | RANLIB | 
| Daniel Stutzbach | a606faa | 2010-08-31 19:51:07 +0000 | [diff] [blame] | 649 | USE_INLINE | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 650 | GNULD | 
|  | 651 | LINKCC | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 652 | LDVERSION | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 653 | RUNSHARED | 
|  | 654 | INSTSONAME | 
|  | 655 | LDLIBRARYDIR | 
| Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 +0000 | [diff] [blame] | 656 | PY3LIBRARY | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 657 | BLDLIBRARY | 
|  | 658 | DLLLIBRARY | 
|  | 659 | LDLIBRARY | 
|  | 660 | LIBRARY | 
|  | 661 | BUILDEXEEXT | 
|  | 662 | EGREP | 
|  | 663 | GREP | 
|  | 664 | CPP | 
| Martin v. Löwis | 48e14d3 | 2011-05-09 07:37:45 +0200 | [diff] [blame] | 665 | NO_AS_NEEDED | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 666 | MAINCC | 
|  | 667 | CXX | 
|  | 668 | OBJEXT | 
|  | 669 | EXEEXT | 
|  | 670 | ac_ct_CC | 
|  | 671 | CPPFLAGS | 
|  | 672 | LDFLAGS | 
|  | 673 | CFLAGS | 
|  | 674 | CC | 
|  | 675 | EXPORT_MACOSX_DEPLOYMENT_TARGET | 
|  | 676 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET | 
|  | 677 | SGI_ABI | 
|  | 678 | MACHDEP | 
| Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 679 | FRAMEWORKINSTALLAPPSPREFIX | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 680 | FRAMEWORKUNIXTOOLSPREFIX | 
|  | 681 | FRAMEWORKALTINSTALLLAST | 
|  | 682 | FRAMEWORKALTINSTALLFIRST | 
|  | 683 | FRAMEWORKINSTALLLAST | 
|  | 684 | FRAMEWORKINSTALLFIRST | 
|  | 685 | PYTHONFRAMEWORKINSTALLDIR | 
|  | 686 | PYTHONFRAMEWORKPREFIX | 
|  | 687 | PYTHONFRAMEWORKDIR | 
|  | 688 | PYTHONFRAMEWORKIDENTIFIER | 
|  | 689 | PYTHONFRAMEWORK | 
|  | 690 | LIPO_32BIT_FLAGS | 
|  | 691 | ARCH_RUN_32BIT | 
|  | 692 | UNIVERSALSDK | 
|  | 693 | CONFIG_ARGS | 
|  | 694 | SOVERSION | 
|  | 695 | VERSION | 
|  | 696 | target_alias | 
|  | 697 | host_alias | 
|  | 698 | build_alias | 
|  | 699 | LIBS | 
|  | 700 | ECHO_T | 
|  | 701 | ECHO_N | 
|  | 702 | ECHO_C | 
|  | 703 | DEFS | 
|  | 704 | mandir | 
|  | 705 | localedir | 
|  | 706 | libdir | 
|  | 707 | psdir | 
|  | 708 | pdfdir | 
|  | 709 | dvidir | 
|  | 710 | htmldir | 
|  | 711 | infodir | 
|  | 712 | docdir | 
|  | 713 | oldincludedir | 
|  | 714 | includedir | 
|  | 715 | localstatedir | 
|  | 716 | sharedstatedir | 
|  | 717 | sysconfdir | 
|  | 718 | datadir | 
|  | 719 | datarootdir | 
|  | 720 | libexecdir | 
|  | 721 | sbindir | 
|  | 722 | bindir | 
|  | 723 | program_transform_name | 
|  | 724 | prefix | 
|  | 725 | exec_prefix | 
|  | 726 | PACKAGE_URL | 
|  | 727 | PACKAGE_BUGREPORT | 
|  | 728 | PACKAGE_STRING | 
|  | 729 | PACKAGE_VERSION | 
|  | 730 | PACKAGE_TARNAME | 
|  | 731 | PACKAGE_NAME | 
|  | 732 | PATH_SEPARATOR | 
|  | 733 | SHELL' | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 734 | ac_subst_files='' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 735 | ac_user_opts=' | 
|  | 736 | enable_option_checking | 
|  | 737 | enable_universalsdk | 
|  | 738 | with_universal_archs | 
|  | 739 | with_framework_name | 
|  | 740 | enable_framework | 
|  | 741 | with_gcc | 
|  | 742 | with_cxx_main | 
|  | 743 | with_suffix | 
|  | 744 | enable_shared | 
|  | 745 | enable_profiling | 
|  | 746 | with_pydebug | 
|  | 747 | with_libs | 
|  | 748 | with_system_expat | 
|  | 749 | with_system_ffi | 
| Benjamin Peterson | 076ed00 | 2010-10-31 17:11:02 +0000 | [diff] [blame] | 750 | enable_loadable_sqlite_extensions | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 751 | with_dbmliborder | 
|  | 752 | with_signal_module | 
|  | 753 | with_dec_threads | 
|  | 754 | with_threads | 
|  | 755 | with_thread | 
|  | 756 | enable_ipv6 | 
|  | 757 | with_doc_strings | 
|  | 758 | with_tsc | 
|  | 759 | with_pymalloc | 
|  | 760 | with_valgrind | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 761 | with_fpectl | 
|  | 762 | with_libm | 
|  | 763 | with_libc | 
|  | 764 | enable_big_digits | 
|  | 765 | with_wide_unicode | 
|  | 766 | with_computed_gotos | 
|  | 767 | ' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 768 | ac_precious_vars='build_alias | 
|  | 769 | host_alias | 
|  | 770 | target_alias | 
|  | 771 | CC | 
|  | 772 | CFLAGS | 
|  | 773 | LDFLAGS | 
|  | 774 | LIBS | 
|  | 775 | CPPFLAGS | 
| Barry Warsaw | 14d98ac | 2010-11-24 19:43:47 +0000 | [diff] [blame] | 776 | CPP' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 777 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 778 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 779 | # Initialize some variables set by options. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 780 | ac_init_help= | 
|  | 781 | ac_init_version=false | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 782 | ac_unrecognized_opts= | 
|  | 783 | ac_unrecognized_sep= | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 784 | # The variables have the same names as the options, with | 
|  | 785 | # dashes changed to underlines. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 786 | cache_file=/dev/null | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 787 | exec_prefix=NONE | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 788 | no_create= | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 789 | no_recursion= | 
|  | 790 | prefix=NONE | 
|  | 791 | program_prefix=NONE | 
|  | 792 | program_suffix=NONE | 
|  | 793 | program_transform_name=s,x,x, | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 794 | silent= | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 795 | site= | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 796 | srcdir= | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 797 | verbose= | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 798 | x_includes=NONE | 
|  | 799 | x_libraries=NONE | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 800 |  | 
|  | 801 | # Installation directory options. | 
|  | 802 | # These are left unexpanded so users can "make install exec_prefix=/foo" | 
|  | 803 | # and all the variables that are supposed to be based on exec_prefix | 
|  | 804 | # by default will actually change. | 
|  | 805 | # Use braces instead of parens because sh, perl, etc. also accept them. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 806 | # (The list follows the same order as the GNU Coding Standards.) | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 807 | bindir='${exec_prefix}/bin' | 
|  | 808 | sbindir='${exec_prefix}/sbin' | 
|  | 809 | libexecdir='${exec_prefix}/libexec' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 810 | datarootdir='${prefix}/share' | 
|  | 811 | datadir='${datarootdir}' | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 812 | sysconfdir='${prefix}/etc' | 
|  | 813 | sharedstatedir='${prefix}/com' | 
|  | 814 | localstatedir='${prefix}/var' | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 815 | includedir='${prefix}/include' | 
|  | 816 | oldincludedir='/usr/include' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 817 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | 
|  | 818 | infodir='${datarootdir}/info' | 
|  | 819 | htmldir='${docdir}' | 
|  | 820 | dvidir='${docdir}' | 
|  | 821 | pdfdir='${docdir}' | 
|  | 822 | psdir='${docdir}' | 
|  | 823 | libdir='${exec_prefix}/lib' | 
|  | 824 | localedir='${datarootdir}/locale' | 
|  | 825 | mandir='${datarootdir}/man' | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 826 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 827 | ac_prev= | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 828 | ac_dashdash= | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 829 | for ac_option | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 830 | do | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 831 | # If the previous option needs an argument, assign it. | 
|  | 832 | if test -n "$ac_prev"; then | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 833 | eval $ac_prev=\$ac_option | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 834 | ac_prev= | 
|  | 835 | continue | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 836 | fi | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 837 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 838 | case $ac_option in | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 839 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | 
|  | 840 | *=)   ac_optarg= ;; | 
|  | 841 | *)    ac_optarg=yes ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 842 | esac | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 843 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 844 | # Accept the important Cygnus configure options, so we can diagnose typos. | 
|  | 845 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 846 | case $ac_dashdash$ac_option in | 
|  | 847 | --) | 
|  | 848 | ac_dashdash=yes ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 849 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 850 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | 
|  | 851 | ac_prev=bindir ;; | 
|  | 852 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 853 | bindir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 854 |  | 
|  | 855 | -build | --build | --buil | --bui | --bu) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 856 | ac_prev=build_alias ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 857 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 858 | build_alias=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 859 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 860 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | 
|  | 861 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | 
|  | 862 | ac_prev=cache_file ;; | 
|  | 863 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | 
|  | 864 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 865 | cache_file=$ac_optarg ;; | 
|  | 866 |  | 
|  | 867 | --config-cache | -C) | 
|  | 868 | cache_file=config.cache ;; | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 869 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 870 | -datadir | --datadir | --datadi | --datad) | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 871 | ac_prev=datadir ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 872 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 873 | datadir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 874 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 875 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | 
|  | 876 | | --dataroo | --dataro | --datar) | 
|  | 877 | ac_prev=datarootdir ;; | 
|  | 878 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | 
|  | 879 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | 
|  | 880 | datarootdir=$ac_optarg ;; | 
|  | 881 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 882 | -disable-* | --disable-*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 883 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 884 | # Reject names that are not valid shell variable names. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 885 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 886 | as_fn_error $? "invalid feature name: $ac_useropt" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 887 | ac_useropt_orig=$ac_useropt | 
|  | 888 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 
|  | 889 | case $ac_user_opts in | 
|  | 890 | *" | 
|  | 891 | "enable_$ac_useropt" | 
|  | 892 | "*) ;; | 
|  | 893 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | 
|  | 894 | ac_unrecognized_sep=', ';; | 
|  | 895 | esac | 
|  | 896 | eval enable_$ac_useropt=no ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 897 |  | 
|  | 898 | -docdir | --docdir | --docdi | --doc | --do) | 
|  | 899 | ac_prev=docdir ;; | 
|  | 900 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | 
|  | 901 | docdir=$ac_optarg ;; | 
|  | 902 |  | 
|  | 903 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | 
|  | 904 | ac_prev=dvidir ;; | 
|  | 905 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | 
|  | 906 | dvidir=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 907 |  | 
|  | 908 | -enable-* | --enable-*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 909 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 910 | # Reject names that are not valid shell variable names. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 911 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 912 | as_fn_error $? "invalid feature name: $ac_useropt" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 913 | ac_useropt_orig=$ac_useropt | 
|  | 914 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 
|  | 915 | case $ac_user_opts in | 
|  | 916 | *" | 
|  | 917 | "enable_$ac_useropt" | 
|  | 918 | "*) ;; | 
|  | 919 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | 
|  | 920 | ac_unrecognized_sep=', ';; | 
|  | 921 | esac | 
|  | 922 | eval enable_$ac_useropt=\$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 923 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 924 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | 
|  | 925 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | 
|  | 926 | | --exec | --exe | --ex) | 
|  | 927 | ac_prev=exec_prefix ;; | 
|  | 928 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | 
|  | 929 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | 
|  | 930 | | --exec=* | --exe=* | --ex=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 931 | exec_prefix=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 932 |  | 
|  | 933 | -gas | --gas | --ga | --g) | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 934 | # Obsolete; use --with-gas. | 
|  | 935 | with_gas=yes ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 936 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 937 | -help | --help | --hel | --he | -h) | 
|  | 938 | ac_init_help=long ;; | 
|  | 939 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | 
|  | 940 | ac_init_help=recursive ;; | 
|  | 941 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | 
|  | 942 | ac_init_help=short ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 943 |  | 
|  | 944 | -host | --host | --hos | --ho) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 945 | ac_prev=host_alias ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 946 | -host=* | --host=* | --hos=* | --ho=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 947 | host_alias=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 948 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 949 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | 
|  | 950 | ac_prev=htmldir ;; | 
|  | 951 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | 
|  | 952 | | --ht=*) | 
|  | 953 | htmldir=$ac_optarg ;; | 
|  | 954 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 955 | -includedir | --includedir | --includedi | --included | --include \ | 
|  | 956 | | --includ | --inclu | --incl | --inc) | 
|  | 957 | ac_prev=includedir ;; | 
|  | 958 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | 
|  | 959 | | --includ=* | --inclu=* | --incl=* | --inc=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 960 | includedir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 961 |  | 
|  | 962 | -infodir | --infodir | --infodi | --infod | --info | --inf) | 
|  | 963 | ac_prev=infodir ;; | 
|  | 964 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 965 | infodir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 966 |  | 
|  | 967 | -libdir | --libdir | --libdi | --libd) | 
|  | 968 | ac_prev=libdir ;; | 
|  | 969 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 970 | libdir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 971 |  | 
|  | 972 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | 
|  | 973 | | --libexe | --libex | --libe) | 
|  | 974 | ac_prev=libexecdir ;; | 
|  | 975 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | 
|  | 976 | | --libexe=* | --libex=* | --libe=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 977 | libexecdir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 978 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 979 | -localedir | --localedir | --localedi | --localed | --locale) | 
|  | 980 | ac_prev=localedir ;; | 
|  | 981 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | 
|  | 982 | localedir=$ac_optarg ;; | 
|  | 983 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 984 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 985 | | --localstate | --localstat | --localsta | --localst | --locals) | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 986 | ac_prev=localstatedir ;; | 
|  | 987 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 988 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 989 | localstatedir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 990 |  | 
|  | 991 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | 
|  | 992 | ac_prev=mandir ;; | 
|  | 993 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 994 | mandir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 995 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 996 | -nfp | --nfp | --nf) | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 997 | # Obsolete; use --without-fp. | 
|  | 998 | with_fp=no ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 999 |  | 
|  | 1000 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1001 | | --no-cr | --no-c | -n) | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1002 | no_create=yes ;; | 
|  | 1003 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1004 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | 
|  | 1005 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | 
|  | 1006 | no_recursion=yes ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1007 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1008 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | 
|  | 1009 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | 
|  | 1010 | | --oldin | --oldi | --old | --ol | --o) | 
|  | 1011 | ac_prev=oldincludedir ;; | 
|  | 1012 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | 
|  | 1013 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | 
|  | 1014 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1015 | oldincludedir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1016 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1017 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | 
|  | 1018 | ac_prev=prefix ;; | 
|  | 1019 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1020 | prefix=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1021 |  | 
|  | 1022 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | 
|  | 1023 | | --program-pre | --program-pr | --program-p) | 
|  | 1024 | ac_prev=program_prefix ;; | 
|  | 1025 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | 
|  | 1026 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1027 | program_prefix=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1028 |  | 
|  | 1029 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | 
|  | 1030 | | --program-suf | --program-su | --program-s) | 
|  | 1031 | ac_prev=program_suffix ;; | 
|  | 1032 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | 
|  | 1033 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1034 | program_suffix=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1035 |  | 
|  | 1036 | -program-transform-name | --program-transform-name \ | 
|  | 1037 | | --program-transform-nam | --program-transform-na \ | 
|  | 1038 | | --program-transform-n | --program-transform- \ | 
|  | 1039 | | --program-transform | --program-transfor \ | 
|  | 1040 | | --program-transfo | --program-transf \ | 
|  | 1041 | | --program-trans | --program-tran \ | 
|  | 1042 | | --progr-tra | --program-tr | --program-t) | 
|  | 1043 | ac_prev=program_transform_name ;; | 
|  | 1044 | -program-transform-name=* | --program-transform-name=* \ | 
|  | 1045 | | --program-transform-nam=* | --program-transform-na=* \ | 
|  | 1046 | | --program-transform-n=* | --program-transform-=* \ | 
|  | 1047 | | --program-transform=* | --program-transfor=* \ | 
|  | 1048 | | --program-transfo=* | --program-transf=* \ | 
|  | 1049 | | --program-trans=* | --program-tran=* \ | 
|  | 1050 | | --progr-tra=* | --program-tr=* | --program-t=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1051 | program_transform_name=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1052 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1053 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | 
|  | 1054 | ac_prev=pdfdir ;; | 
|  | 1055 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | 
|  | 1056 | pdfdir=$ac_optarg ;; | 
|  | 1057 |  | 
|  | 1058 | -psdir | --psdir | --psdi | --psd | --ps) | 
|  | 1059 | ac_prev=psdir ;; | 
|  | 1060 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | 
|  | 1061 | psdir=$ac_optarg ;; | 
|  | 1062 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1063 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
|  | 1064 | | -silent | --silent | --silen | --sile | --sil) | 
|  | 1065 | silent=yes ;; | 
|  | 1066 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1067 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | 
|  | 1068 | ac_prev=sbindir ;; | 
|  | 1069 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | 
|  | 1070 | | --sbi=* | --sb=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1071 | sbindir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1072 |  | 
|  | 1073 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | 
|  | 1074 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | 
|  | 1075 | | --sharedst | --shareds | --shared | --share | --shar \ | 
|  | 1076 | | --sha | --sh) | 
|  | 1077 | ac_prev=sharedstatedir ;; | 
|  | 1078 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | 
|  | 1079 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | 
|  | 1080 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | 
|  | 1081 | | --sha=* | --sh=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1082 | sharedstatedir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1083 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1084 | -site | --site | --sit) | 
|  | 1085 | ac_prev=site ;; | 
|  | 1086 | -site=* | --site=* | --sit=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1087 | site=$ac_optarg ;; | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1088 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1089 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | 
|  | 1090 | ac_prev=srcdir ;; | 
|  | 1091 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1092 | srcdir=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1093 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1094 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | 
|  | 1095 | | --syscon | --sysco | --sysc | --sys | --sy) | 
|  | 1096 | ac_prev=sysconfdir ;; | 
|  | 1097 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | 
|  | 1098 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1099 | sysconfdir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1100 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1101 | -target | --target | --targe | --targ | --tar | --ta | --t) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1102 | ac_prev=target_alias ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1103 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1104 | target_alias=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1105 |  | 
|  | 1106 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | 
|  | 1107 | verbose=yes ;; | 
|  | 1108 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1109 | -version | --version | --versio | --versi | --vers | -V) | 
|  | 1110 | ac_init_version=: ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1111 |  | 
|  | 1112 | -with-* | --with-*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1113 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1114 | # Reject names that are not valid shell variable names. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1115 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 1116 | as_fn_error $? "invalid package name: $ac_useropt" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1117 | ac_useropt_orig=$ac_useropt | 
|  | 1118 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 
|  | 1119 | case $ac_user_opts in | 
|  | 1120 | *" | 
|  | 1121 | "with_$ac_useropt" | 
|  | 1122 | "*) ;; | 
|  | 1123 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | 
|  | 1124 | ac_unrecognized_sep=', ';; | 
|  | 1125 | esac | 
|  | 1126 | eval with_$ac_useropt=\$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1127 |  | 
|  | 1128 | -without-* | --without-*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1129 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1130 | # Reject names that are not valid shell variable names. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1131 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 1132 | as_fn_error $? "invalid package name: $ac_useropt" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1133 | ac_useropt_orig=$ac_useropt | 
|  | 1134 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 
|  | 1135 | case $ac_user_opts in | 
|  | 1136 | *" | 
|  | 1137 | "with_$ac_useropt" | 
|  | 1138 | "*) ;; | 
|  | 1139 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | 
|  | 1140 | ac_unrecognized_sep=', ';; | 
|  | 1141 | esac | 
|  | 1142 | eval with_$ac_useropt=no ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1143 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1144 | --x) | 
|  | 1145 | # Obsolete; use --with-x. | 
|  | 1146 | with_x=yes ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1147 |  | 
|  | 1148 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | 
|  | 1149 | | --x-incl | --x-inc | --x-in | --x-i) | 
|  | 1150 | ac_prev=x_includes ;; | 
|  | 1151 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | 
|  | 1152 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1153 | x_includes=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1154 |  | 
|  | 1155 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | 
|  | 1156 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | 
|  | 1157 | ac_prev=x_libraries ;; | 
|  | 1158 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | 
|  | 1159 | | --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] | 1160 | x_libraries=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1161 |  | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 1162 | -*) as_fn_error $? "unrecognized option: \`$ac_option' | 
|  | 1163 | Try \`$0 --help' for more information" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1164 | ;; | 
|  | 1165 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1166 | *=*) | 
|  | 1167 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | 
|  | 1168 | # Reject names that are not valid shell variable names. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1169 | case $ac_envvar in #( | 
|  | 1170 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 1171 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1172 | esac | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1173 | eval $ac_envvar=\$ac_optarg | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1174 | export $ac_envvar ;; | 
|  | 1175 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1176 | *) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1177 | # FIXME: should be removed in autoconf 3.0. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1178 | $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] | 1179 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1180 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 1181 | : ${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] | 1182 | ;; | 
|  | 1183 |  | 
|  | 1184 | esac | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1185 | done | 
|  | 1186 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1187 | if test -n "$ac_prev"; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1188 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 1189 | as_fn_error $? "missing argument to $ac_option" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1190 | fi | 
|  | 1191 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1192 | if test -n "$ac_unrecognized_opts"; then | 
|  | 1193 | case $enable_option_checking in | 
|  | 1194 | no) ;; | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 1195 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1196 | *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | 
|  | 1197 | esac | 
|  | 1198 | fi | 
|  | 1199 |  | 
|  | 1200 | # Check all directory arguments for consistency. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1201 | for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \ | 
|  | 1202 | datadir sysconfdir sharedstatedir localstatedir includedir \ | 
|  | 1203 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | 
|  | 1204 | libdir localedir mandir | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1205 | do | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1206 | eval ac_val=\$$ac_var | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1207 | # Remove trailing slashes. | 
|  | 1208 | case $ac_val in | 
|  | 1209 | */ ) | 
|  | 1210 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | 
|  | 1211 | eval $ac_var=\$ac_val;; | 
|  | 1212 | esac | 
|  | 1213 | # Be sure to have absolute directory names. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1214 | case $ac_val in | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1215 | [\\/$]* | ?:[\\/]* )  continue;; | 
|  | 1216 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1217 | esac | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 1218 | 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] | 1219 | done | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1220 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1221 | # There might be people who depend on the old broken behavior: `$host' | 
|  | 1222 | # used to hold the argument of --host etc. | 
|  | 1223 | # FIXME: To remove some day. | 
|  | 1224 | build=$build_alias | 
|  | 1225 | host=$host_alias | 
|  | 1226 | target=$target_alias | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1227 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1228 | # FIXME: To remove some day. | 
|  | 1229 | if test "x$host_alias" != x; then | 
|  | 1230 | if test "x$build_alias" = x; then | 
|  | 1231 | cross_compiling=maybe | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 1232 | $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. | 
|  | 1233 | If a cross compiler is detected then cross compile mode will be used" >&2 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1234 | elif test "x$build_alias" != "x$host_alias"; then | 
|  | 1235 | cross_compiling=yes | 
|  | 1236 | fi | 
|  | 1237 | fi | 
|  | 1238 |  | 
|  | 1239 | ac_tool_prefix= | 
|  | 1240 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | 
|  | 1241 |  | 
|  | 1242 | test "$silent" = yes && exec 6>/dev/null | 
|  | 1243 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1244 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1245 | ac_pwd=`pwd` && test -n "$ac_pwd" && | 
|  | 1246 | ac_ls_di=`ls -di .` && | 
|  | 1247 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 1248 | as_fn_error $? "working directory cannot be determined" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1249 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 1250 | as_fn_error $? "pwd does not report name of working directory" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1251 |  | 
|  | 1252 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1253 | # Find the source files, if location was not specified. | 
|  | 1254 | if test -z "$srcdir"; then | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1255 | ac_srcdir_defaulted=yes | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1256 | # Try the directory containing this script, then the parent directory. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1257 | ac_confdir=`$as_dirname -- "$as_myself" || | 
|  | 1258 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
|  | 1259 | X"$as_myself" : 'X\(//\)[^/]' \| \ | 
|  | 1260 | X"$as_myself" : 'X\(//\)$' \| \ | 
|  | 1261 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | 
|  | 1262 | $as_echo X"$as_myself" | | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1263 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
|  | 1264 | s//\1/ | 
|  | 1265 | q | 
|  | 1266 | } | 
|  | 1267 | /^X\(\/\/\)[^/].*/{ | 
|  | 1268 | s//\1/ | 
|  | 1269 | q | 
|  | 1270 | } | 
|  | 1271 | /^X\(\/\/\)$/{ | 
|  | 1272 | s//\1/ | 
|  | 1273 | q | 
|  | 1274 | } | 
|  | 1275 | /^X\(\/\).*/{ | 
|  | 1276 | s//\1/ | 
|  | 1277 | q | 
|  | 1278 | } | 
|  | 1279 | s/.*/./; q'` | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1280 | srcdir=$ac_confdir | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1281 | if test ! -r "$srcdir/$ac_unique_file"; then | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1282 | srcdir=.. | 
|  | 1283 | fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1284 | else | 
|  | 1285 | ac_srcdir_defaulted=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1286 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1287 | if test ! -r "$srcdir/$ac_unique_file"; then | 
|  | 1288 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 1289 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1290 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1291 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | 
|  | 1292 | ac_abs_confdir=`( | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 1293 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1294 | pwd)` | 
|  | 1295 | # When building in place, set srcdir=. | 
|  | 1296 | if test "$ac_abs_confdir" = "$ac_pwd"; then | 
|  | 1297 | srcdir=. | 
|  | 1298 | fi | 
|  | 1299 | # Remove unnecessary trailing slashes from srcdir. | 
|  | 1300 | # Double slashes in file names in object file debugging info | 
|  | 1301 | # mess up M-x gdb in Emacs. | 
|  | 1302 | case $srcdir in | 
|  | 1303 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | 
|  | 1304 | esac | 
|  | 1305 | for ac_var in $ac_precious_vars; do | 
|  | 1306 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | 
|  | 1307 | eval ac_env_${ac_var}_value=\$${ac_var} | 
|  | 1308 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | 
|  | 1309 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | 
|  | 1310 | done | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1311 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1312 | # | 
|  | 1313 | # Report the --help message. | 
|  | 1314 | # | 
|  | 1315 | if test "$ac_init_help" = "long"; then | 
|  | 1316 | # Omit some internal or obsolete options to make the list less imposing. | 
|  | 1317 | # This message is too long to be a string in the A/UX 3.1 sh. | 
|  | 1318 | cat <<_ACEOF | 
| Benjamin Peterson | 46ea4f7 | 2009-06-27 21:40:27 +0000 | [diff] [blame] | 1319 | \`configure' configures python 3.2 to adapt to many kinds of systems. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1320 |  | 
|  | 1321 | Usage: $0 [OPTION]... [VAR=VALUE]... | 
|  | 1322 |  | 
|  | 1323 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | 
|  | 1324 | VAR=VALUE.  See below for descriptions of some of the useful variables. | 
|  | 1325 |  | 
|  | 1326 | Defaults for the options are specified in brackets. | 
|  | 1327 |  | 
|  | 1328 | Configuration: | 
|  | 1329 | -h, --help              display this help and exit | 
|  | 1330 | --help=short        display options specific to this package | 
|  | 1331 | --help=recursive    display the short help of all the included packages | 
|  | 1332 | -V, --version           display version information and exit | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 1333 | -q, --quiet, --silent   do not print \`checking ...' messages | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1334 | --cache-file=FILE   cache test results in FILE [disabled] | 
|  | 1335 | -C, --config-cache      alias for \`--cache-file=config.cache' | 
|  | 1336 | -n, --no-create         do not create output files | 
|  | 1337 | --srcdir=DIR        find the sources in DIR [configure dir or \`..'] | 
|  | 1338 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1339 | Installation directories: | 
|  | 1340 | --prefix=PREFIX         install architecture-independent files in PREFIX | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1341 | [$ac_default_prefix] | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1342 | --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1343 | [PREFIX] | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1344 |  | 
|  | 1345 | By default, \`make install' will install all the files in | 
|  | 1346 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify | 
|  | 1347 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | 
|  | 1348 | for instance \`--prefix=\$HOME'. | 
|  | 1349 |  | 
|  | 1350 | For better control, use the options below. | 
|  | 1351 |  | 
|  | 1352 | Fine tuning of the installation directories: | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1353 | --bindir=DIR            user executables [EPREFIX/bin] | 
|  | 1354 | --sbindir=DIR           system admin executables [EPREFIX/sbin] | 
|  | 1355 | --libexecdir=DIR        program executables [EPREFIX/libexec] | 
|  | 1356 | --sysconfdir=DIR        read-only single-machine data [PREFIX/etc] | 
|  | 1357 | --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com] | 
|  | 1358 | --localstatedir=DIR     modifiable single-machine data [PREFIX/var] | 
|  | 1359 | --libdir=DIR            object code libraries [EPREFIX/lib] | 
|  | 1360 | --includedir=DIR        C header files [PREFIX/include] | 
|  | 1361 | --oldincludedir=DIR     C header files for non-gcc [/usr/include] | 
|  | 1362 | --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share] | 
|  | 1363 | --datadir=DIR           read-only architecture-independent data [DATAROOTDIR] | 
|  | 1364 | --infodir=DIR           info documentation [DATAROOTDIR/info] | 
|  | 1365 | --localedir=DIR         locale-dependent data [DATAROOTDIR/locale] | 
|  | 1366 | --mandir=DIR            man documentation [DATAROOTDIR/man] | 
|  | 1367 | --docdir=DIR            documentation root [DATAROOTDIR/doc/python] | 
|  | 1368 | --htmldir=DIR           html documentation [DOCDIR] | 
|  | 1369 | --dvidir=DIR            dvi documentation [DOCDIR] | 
|  | 1370 | --pdfdir=DIR            pdf documentation [DOCDIR] | 
|  | 1371 | --psdir=DIR             ps documentation [DOCDIR] | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1372 | _ACEOF | 
|  | 1373 |  | 
|  | 1374 | cat <<\_ACEOF | 
|  | 1375 | _ACEOF | 
|  | 1376 | fi | 
|  | 1377 |  | 
|  | 1378 | if test -n "$ac_init_help"; then | 
| Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1379 | case $ac_init_help in | 
| Benjamin Peterson | 46ea4f7 | 2009-06-27 21:40:27 +0000 | [diff] [blame] | 1380 | short | recursive ) echo "Configuration of python 3.2:";; | 
| Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1381 | esac | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1382 | cat <<\_ACEOF | 
|  | 1383 |  | 
|  | 1384 | Optional Features: | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1385 | --disable-option-checking  ignore unrecognized --enable/--with options | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1386 | --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no) | 
|  | 1387 | --enable-FEATURE[=ARG]  include FEATURE [ARG=yes] | 
| Christian Heimes | 68f5fbe | 2008-02-14 08:27:37 +0000 | [diff] [blame] | 1388 | --enable-universalsdk[=SDKDIR] | 
| Christian Heimes | 292d351 | 2008-02-03 16:51:08 +0000 | [diff] [blame] | 1389 | Build against Mac OS X 10.4u SDK (ppc/i386) | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1390 | --enable-framework[=INSTALLDIR] | 
|  | 1391 | Build (MacOSX|Darwin) framework | 
|  | 1392 | --enable-shared         disable/enable building shared python library | 
| Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 1393 | --enable-profiling      enable C-level code profiling | 
| Benjamin Peterson | 076ed00 | 2010-10-31 17:11:02 +0000 | [diff] [blame] | 1394 | --enable-loadable-sqlite-extensions | 
|  | 1395 | support loadable extensions in _sqlite module | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1396 | --enable-ipv6           Enable ipv6 (with ipv4) support | 
|  | 1397 | --disable-ipv6          Disable ipv6 support | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 1398 | --enable-big-digits[=BITS] | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1399 | use big digits for Python longs [[BITS=30]] | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1400 |  | 
|  | 1401 | Optional Packages: | 
|  | 1402 | --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes] | 
|  | 1403 | --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no) | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 1404 | --with-universal-archs=ARCH | 
|  | 1405 | select architectures for universal build ("32-bit", | 
| Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 1406 | "64-bit", "3-way", "intel" or "all") | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 1407 | --with-framework-name=FRAMEWORK | 
|  | 1408 | specify an alternate name of the framework built | 
|  | 1409 | with --enable-framework | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1410 | --without-gcc           never use gcc | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 1411 | --with-cxx-main=<compiler> | 
|  | 1412 | compile main() and link python executable with C++ | 
|  | 1413 | compiler | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1414 | --with-suffix=.exe      set executable suffix | 
|  | 1415 | --with-pydebug          build with Py_DEBUG defined | 
|  | 1416 | --with-libs='lib1 ...'  link against additional libs | 
| Benjamin Peterson | b2d9046 | 2009-12-31 03:23:10 +0000 | [diff] [blame] | 1417 | --with-system-expat     build pyexpat module using an installed expat | 
|  | 1418 | library | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 1419 | --with-system-ffi       build _ctypes module using an installed ffi library | 
| Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 1420 | --with-dbmliborder=db1:db2:... | 
|  | 1421 | order to check db backends for dbm. Valid value is a | 
|  | 1422 | colon separated string with the backend names | 
|  | 1423 | `ndbm', `gdbm' and `bdb'. | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1424 | --with-signal-module    disable/enable signal module | 
|  | 1425 | --with-dec-threads      use DEC Alpha/OSF1 thread-safe libraries | 
|  | 1426 | --with(out)-threads[=DIRECTORY] | 
|  | 1427 | disable/enable thread support | 
|  | 1428 | --with(out)-thread[=DIRECTORY] | 
|  | 1429 | deprecated; use --with(out)-threads | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1430 | --with(out)-doc-strings disable/enable documentation strings | 
| Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 1431 | --with(out)-tsc         enable/disable timestamp counter profile | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1432 | --with(out)-pymalloc    disable/enable specialized mallocs | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 1433 | --with-valgrind         Enable Valgrind support | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1434 | --with-fpectl           enable SIGFPE catching | 
|  | 1435 | --with-libm=STRING      math library | 
|  | 1436 | --with-libc=STRING      C library | 
| Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 1437 | --with-wide-unicode     Use 4-byte Unicode characters (default is 2 bytes) | 
| Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 1438 | --with(out)-computed-gotos | 
|  | 1439 | Use computed gotos in evaluation loop (enabled by | 
|  | 1440 | default on supported compilers) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1441 |  | 
|  | 1442 | Some influential environment variables: | 
|  | 1443 | CC          C compiler command | 
|  | 1444 | CFLAGS      C compiler flags | 
|  | 1445 | LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a | 
|  | 1446 | nonstandard directory <lib dir> | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1447 | LIBS        libraries to pass to the linker, e.g. -l<library> | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1448 | CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1449 | you have headers in a nonstandard directory <include dir> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1450 | CPP         C preprocessor | 
|  | 1451 |  | 
|  | 1452 | Use these variables to override the choices made by `configure' or to help | 
|  | 1453 | it to find libraries and programs with nonstandard names/locations. | 
|  | 1454 |  | 
| Georg Brandl | e2e1561 | 2009-05-20 18:25:10 +0000 | [diff] [blame] | 1455 | Report bugs to <http://bugs.python.org/>. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1456 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1457 | ac_status=$? | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1458 | fi | 
|  | 1459 |  | 
|  | 1460 | if test "$ac_init_help" = "recursive"; then | 
|  | 1461 | # If there are subdirs, report their specific --help. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1462 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1463 | test -d "$ac_dir" || | 
|  | 1464 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | 
|  | 1465 | continue | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1466 | ac_builddir=. | 
|  | 1467 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1468 | case "$ac_dir" in | 
|  | 1469 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
|  | 1470 | *) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1471 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1472 | # A ".." for each directory in $ac_dir_suffix. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1473 | 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] | 1474 | case $ac_top_builddir_sub in | 
|  | 1475 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
|  | 1476 | *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;; | 
|  | 1477 | esac ;; | 
|  | 1478 | esac | 
|  | 1479 | ac_abs_top_builddir=$ac_pwd | 
|  | 1480 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | 
|  | 1481 | # for backward compatibility: | 
|  | 1482 | ac_top_builddir=$ac_top_build_prefix | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1483 |  | 
|  | 1484 | case $srcdir in | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1485 | .)  # We are building in place. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1486 | ac_srcdir=. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1487 | ac_top_srcdir=$ac_top_builddir_sub | 
|  | 1488 | ac_abs_top_srcdir=$ac_pwd ;; | 
|  | 1489 | [\\/]* | ?:[\\/]* )  # Absolute name. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1490 | ac_srcdir=$srcdir$ac_dir_suffix; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1491 | ac_top_srcdir=$srcdir | 
|  | 1492 | ac_abs_top_srcdir=$srcdir ;; | 
|  | 1493 | *) # Relative name. | 
|  | 1494 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | 
|  | 1495 | ac_top_srcdir=$ac_top_build_prefix$srcdir | 
|  | 1496 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1497 | esac | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1498 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1499 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1500 | cd "$ac_dir" || { ac_status=$?; continue; } | 
|  | 1501 | # Check for guested configure. | 
|  | 1502 | if test -f "$ac_srcdir/configure.gnu"; then | 
|  | 1503 | echo && | 
|  | 1504 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | 
|  | 1505 | elif test -f "$ac_srcdir/configure"; then | 
|  | 1506 | echo && | 
|  | 1507 | $SHELL "$ac_srcdir/configure" --help=recursive | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1508 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1509 | $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] | 1510 | fi || ac_status=$? | 
|  | 1511 | cd "$ac_pwd" || { ac_status=$?; break; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1512 | done | 
|  | 1513 | fi | 
|  | 1514 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1515 | test -n "$ac_init_help" && exit $ac_status | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1516 | if $ac_init_version; then | 
|  | 1517 | cat <<\_ACEOF | 
| Benjamin Peterson | 46ea4f7 | 2009-06-27 21:40:27 +0000 | [diff] [blame] | 1518 | python configure 3.2 | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 1519 | generated by GNU Autoconf 2.67 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1520 |  | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 1521 | Copyright (C) 2010 Free Software Foundation, Inc. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1522 | This configure script is free software; the Free Software Foundation | 
|  | 1523 | gives unlimited permission to copy, distribute and modify it. | 
|  | 1524 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1525 | exit | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1526 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1527 |  | 
|  | 1528 | ## ------------------------ ## | 
|  | 1529 | ## Autoconf initialization. ## | 
|  | 1530 | ## ------------------------ ## | 
|  | 1531 |  | 
|  | 1532 | # ac_fn_c_try_compile LINENO | 
|  | 1533 | # -------------------------- | 
|  | 1534 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | 
|  | 1535 | ac_fn_c_try_compile () | 
|  | 1536 | { | 
|  | 1537 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 1538 | rm -f conftest.$ac_objext | 
|  | 1539 | if { { ac_try="$ac_compile" | 
|  | 1540 | case "(($ac_try" in | 
|  | 1541 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 1542 | *) ac_try_echo=$ac_try;; | 
|  | 1543 | esac | 
|  | 1544 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 1545 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 1546 | (eval "$ac_compile") 2>conftest.err | 
|  | 1547 | ac_status=$? | 
|  | 1548 | if test -s conftest.err; then | 
|  | 1549 | grep -v '^ *+' conftest.err >conftest.er1 | 
|  | 1550 | cat conftest.er1 >&5 | 
|  | 1551 | mv -f conftest.er1 conftest.err | 
|  | 1552 | fi | 
|  | 1553 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 1554 | test $ac_status = 0; } && { | 
|  | 1555 | test -z "$ac_c_werror_flag" || | 
|  | 1556 | test ! -s conftest.err | 
|  | 1557 | } && test -s conftest.$ac_objext; then : | 
|  | 1558 | ac_retval=0 | 
|  | 1559 | else | 
|  | 1560 | $as_echo "$as_me: failed program was:" >&5 | 
|  | 1561 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 1562 |  | 
|  | 1563 | ac_retval=1 | 
|  | 1564 | fi | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 1565 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1566 | as_fn_set_status $ac_retval | 
|  | 1567 |  | 
|  | 1568 | } # ac_fn_c_try_compile | 
|  | 1569 |  | 
| Martin v. Löwis | 48e14d3 | 2011-05-09 07:37:45 +0200 | [diff] [blame] | 1570 | # ac_fn_c_try_link LINENO | 
|  | 1571 | # ----------------------- | 
|  | 1572 | # Try to link conftest.$ac_ext, and return whether this succeeded. | 
|  | 1573 | ac_fn_c_try_link () | 
|  | 1574 | { | 
|  | 1575 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 1576 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 1577 | if { { ac_try="$ac_link" | 
|  | 1578 | case "(($ac_try" in | 
|  | 1579 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 1580 | *) ac_try_echo=$ac_try;; | 
|  | 1581 | esac | 
|  | 1582 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 1583 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 1584 | (eval "$ac_link") 2>conftest.err | 
|  | 1585 | ac_status=$? | 
|  | 1586 | if test -s conftest.err; then | 
|  | 1587 | grep -v '^ *+' conftest.err >conftest.er1 | 
|  | 1588 | cat conftest.er1 >&5 | 
|  | 1589 | mv -f conftest.er1 conftest.err | 
|  | 1590 | fi | 
|  | 1591 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 1592 | test $ac_status = 0; } && { | 
|  | 1593 | test -z "$ac_c_werror_flag" || | 
|  | 1594 | test ! -s conftest.err | 
|  | 1595 | } && test -s conftest$ac_exeext && { | 
|  | 1596 | test "$cross_compiling" = yes || | 
|  | 1597 | $as_test_x conftest$ac_exeext | 
|  | 1598 | }; then : | 
|  | 1599 | ac_retval=0 | 
|  | 1600 | else | 
|  | 1601 | $as_echo "$as_me: failed program was:" >&5 | 
|  | 1602 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 1603 |  | 
|  | 1604 | ac_retval=1 | 
|  | 1605 | fi | 
|  | 1606 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | 
|  | 1607 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | 
|  | 1608 | # interfere with the next link command; also delete a directory that is | 
|  | 1609 | # left behind by Apple's compiler.  We do this before executing the actions. | 
|  | 1610 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 1611 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | 
| Martin v. Löwis | 48e14d3 | 2011-05-09 07:37:45 +0200 | [diff] [blame] | 1612 | as_fn_set_status $ac_retval | 
|  | 1613 |  | 
|  | 1614 | } # ac_fn_c_try_link | 
|  | 1615 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1616 | # ac_fn_c_try_cpp LINENO | 
|  | 1617 | # ---------------------- | 
|  | 1618 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | 
|  | 1619 | ac_fn_c_try_cpp () | 
|  | 1620 | { | 
|  | 1621 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 1622 | if { { ac_try="$ac_cpp conftest.$ac_ext" | 
|  | 1623 | case "(($ac_try" in | 
|  | 1624 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 1625 | *) ac_try_echo=$ac_try;; | 
|  | 1626 | esac | 
|  | 1627 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 1628 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 1629 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | 
|  | 1630 | ac_status=$? | 
|  | 1631 | if test -s conftest.err; then | 
|  | 1632 | grep -v '^ *+' conftest.err >conftest.er1 | 
|  | 1633 | cat conftest.er1 >&5 | 
|  | 1634 | mv -f conftest.er1 conftest.err | 
|  | 1635 | fi | 
|  | 1636 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 1637 | test $ac_status = 0; } > conftest.i && { | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1638 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | 
|  | 1639 | test ! -s conftest.err | 
|  | 1640 | }; then : | 
|  | 1641 | ac_retval=0 | 
|  | 1642 | else | 
|  | 1643 | $as_echo "$as_me: failed program was:" >&5 | 
|  | 1644 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 1645 |  | 
|  | 1646 | ac_retval=1 | 
|  | 1647 | fi | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 1648 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1649 | as_fn_set_status $ac_retval | 
|  | 1650 |  | 
|  | 1651 | } # ac_fn_c_try_cpp | 
|  | 1652 |  | 
|  | 1653 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | 
|  | 1654 | # ------------------------------------------------------- | 
|  | 1655 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | 
|  | 1656 | # the include files in INCLUDES and setting the cache variable VAR | 
|  | 1657 | # accordingly. | 
|  | 1658 | ac_fn_c_check_header_mongrel () | 
|  | 1659 | { | 
|  | 1660 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 1661 | if eval "test \"\${$3+set}\"" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1662 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
|  | 1663 | $as_echo_n "checking for $2... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 1664 | if eval "test \"\${$3+set}\"" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1665 | $as_echo_n "(cached) " >&6 | 
|  | 1666 | fi | 
|  | 1667 | eval ac_res=\$$3 | 
|  | 1668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
|  | 1669 | $as_echo "$ac_res" >&6; } | 
|  | 1670 | else | 
|  | 1671 | # Is the header compilable? | 
|  | 1672 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | 
|  | 1673 | $as_echo_n "checking $2 usability... " >&6; } | 
|  | 1674 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 1675 | /* end confdefs.h.  */ | 
|  | 1676 | $4 | 
|  | 1677 | #include <$2> | 
|  | 1678 | _ACEOF | 
|  | 1679 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 1680 | ac_header_compiler=yes | 
|  | 1681 | else | 
|  | 1682 | ac_header_compiler=no | 
|  | 1683 | fi | 
|  | 1684 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 1685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | 
|  | 1686 | $as_echo "$ac_header_compiler" >&6; } | 
|  | 1687 |  | 
|  | 1688 | # Is the header present? | 
|  | 1689 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | 
|  | 1690 | $as_echo_n "checking $2 presence... " >&6; } | 
|  | 1691 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 1692 | /* end confdefs.h.  */ | 
|  | 1693 | #include <$2> | 
|  | 1694 | _ACEOF | 
|  | 1695 | if ac_fn_c_try_cpp "$LINENO"; then : | 
|  | 1696 | ac_header_preproc=yes | 
|  | 1697 | else | 
|  | 1698 | ac_header_preproc=no | 
|  | 1699 | fi | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 1700 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | 
|  | 1702 | $as_echo "$ac_header_preproc" >&6; } | 
|  | 1703 |  | 
|  | 1704 | # So?  What about this header? | 
|  | 1705 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | 
|  | 1706 | yes:no: ) | 
|  | 1707 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | 
|  | 1708 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
|  | 1709 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | 
|  | 1710 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | 
|  | 1711 | ;; | 
|  | 1712 | no:yes:* ) | 
|  | 1713 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | 
|  | 1714 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | 
|  | 1715 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5 | 
|  | 1716 | $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;} | 
|  | 1717 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | 
|  | 1718 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | 
|  | 1719 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5 | 
|  | 1720 | $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;} | 
|  | 1721 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | 
|  | 1722 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 1723 | ( $as_echo "## -------------------------------------- ## | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1724 | ## Report this to http://bugs.python.org/ ## | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 1725 | ## -------------------------------------- ##" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1726 | ) | sed "s/^/$as_me: WARNING:     /" >&2 | 
|  | 1727 | ;; | 
|  | 1728 | esac | 
|  | 1729 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
|  | 1730 | $as_echo_n "checking for $2... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 1731 | if eval "test \"\${$3+set}\"" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1732 | $as_echo_n "(cached) " >&6 | 
|  | 1733 | else | 
|  | 1734 | eval "$3=\$ac_header_compiler" | 
|  | 1735 | fi | 
|  | 1736 | eval ac_res=\$$3 | 
|  | 1737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
|  | 1738 | $as_echo "$ac_res" >&6; } | 
|  | 1739 | fi | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 1740 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1741 |  | 
|  | 1742 | } # ac_fn_c_check_header_mongrel | 
|  | 1743 |  | 
|  | 1744 | # ac_fn_c_try_run LINENO | 
|  | 1745 | # ---------------------- | 
|  | 1746 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | 
|  | 1747 | # that executables *can* be run. | 
|  | 1748 | ac_fn_c_try_run () | 
|  | 1749 | { | 
|  | 1750 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 1751 | if { { ac_try="$ac_link" | 
|  | 1752 | case "(($ac_try" in | 
|  | 1753 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 1754 | *) ac_try_echo=$ac_try;; | 
|  | 1755 | esac | 
|  | 1756 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 1757 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 1758 | (eval "$ac_link") 2>&5 | 
|  | 1759 | ac_status=$? | 
|  | 1760 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 1761 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | 
|  | 1762 | { { case "(($ac_try" in | 
|  | 1763 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 1764 | *) ac_try_echo=$ac_try;; | 
|  | 1765 | esac | 
|  | 1766 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 1767 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 1768 | (eval "$ac_try") 2>&5 | 
|  | 1769 | ac_status=$? | 
|  | 1770 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 1771 | test $ac_status = 0; }; }; then : | 
|  | 1772 | ac_retval=0 | 
|  | 1773 | else | 
|  | 1774 | $as_echo "$as_me: program exited with status $ac_status" >&5 | 
|  | 1775 | $as_echo "$as_me: failed program was:" >&5 | 
|  | 1776 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 1777 |  | 
|  | 1778 | ac_retval=$ac_status | 
|  | 1779 | fi | 
|  | 1780 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 1781 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1782 | as_fn_set_status $ac_retval | 
|  | 1783 |  | 
|  | 1784 | } # ac_fn_c_try_run | 
|  | 1785 |  | 
|  | 1786 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | 
|  | 1787 | # ------------------------------------------------------- | 
|  | 1788 | # Tests whether HEADER exists and can be compiled using the include files in | 
|  | 1789 | # INCLUDES, setting the cache variable VAR accordingly. | 
|  | 1790 | ac_fn_c_check_header_compile () | 
|  | 1791 | { | 
|  | 1792 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 1793 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
|  | 1794 | $as_echo_n "checking for $2... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 1795 | if eval "test \"\${$3+set}\"" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1796 | $as_echo_n "(cached) " >&6 | 
|  | 1797 | else | 
|  | 1798 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 1799 | /* end confdefs.h.  */ | 
|  | 1800 | $4 | 
|  | 1801 | #include <$2> | 
|  | 1802 | _ACEOF | 
|  | 1803 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 1804 | eval "$3=yes" | 
|  | 1805 | else | 
|  | 1806 | eval "$3=no" | 
|  | 1807 | fi | 
|  | 1808 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 1809 | fi | 
|  | 1810 | eval ac_res=\$$3 | 
|  | 1811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
|  | 1812 | $as_echo "$ac_res" >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 1813 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1814 |  | 
|  | 1815 | } # ac_fn_c_check_header_compile | 
|  | 1816 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1817 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES | 
|  | 1818 | # ------------------------------------------- | 
|  | 1819 | # Tests whether TYPE exists after having included INCLUDES, setting cache | 
|  | 1820 | # variable VAR accordingly. | 
|  | 1821 | ac_fn_c_check_type () | 
|  | 1822 | { | 
|  | 1823 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 1824 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
|  | 1825 | $as_echo_n "checking for $2... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 1826 | if eval "test \"\${$3+set}\"" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1827 | $as_echo_n "(cached) " >&6 | 
|  | 1828 | else | 
|  | 1829 | eval "$3=no" | 
|  | 1830 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 1831 | /* end confdefs.h.  */ | 
|  | 1832 | $4 | 
|  | 1833 | int | 
|  | 1834 | main () | 
|  | 1835 | { | 
|  | 1836 | if (sizeof ($2)) | 
|  | 1837 | return 0; | 
|  | 1838 | ; | 
|  | 1839 | return 0; | 
|  | 1840 | } | 
|  | 1841 | _ACEOF | 
|  | 1842 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 1843 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 1844 | /* end confdefs.h.  */ | 
|  | 1845 | $4 | 
|  | 1846 | int | 
|  | 1847 | main () | 
|  | 1848 | { | 
|  | 1849 | if (sizeof (($2))) | 
|  | 1850 | return 0; | 
|  | 1851 | ; | 
|  | 1852 | return 0; | 
|  | 1853 | } | 
|  | 1854 | _ACEOF | 
|  | 1855 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 1856 |  | 
|  | 1857 | else | 
|  | 1858 | eval "$3=yes" | 
|  | 1859 | fi | 
|  | 1860 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 1861 | fi | 
|  | 1862 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 1863 | fi | 
|  | 1864 | eval ac_res=\$$3 | 
|  | 1865 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
|  | 1866 | $as_echo "$ac_res" >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 1867 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1868 |  | 
|  | 1869 | } # ac_fn_c_check_type | 
|  | 1870 |  | 
|  | 1871 | # ac_fn_c_find_uintX_t LINENO BITS VAR | 
|  | 1872 | # ------------------------------------ | 
|  | 1873 | # Finds an unsigned integer type with width BITS, setting cache variable VAR | 
|  | 1874 | # accordingly. | 
|  | 1875 | ac_fn_c_find_uintX_t () | 
|  | 1876 | { | 
|  | 1877 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 1878 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 | 
|  | 1879 | $as_echo_n "checking for uint$2_t... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 1880 | if eval "test \"\${$3+set}\"" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1881 | $as_echo_n "(cached) " >&6 | 
|  | 1882 | else | 
|  | 1883 | eval "$3=no" | 
|  | 1884 | # Order is important - never check a type that is potentially smaller | 
|  | 1885 | # than half of the expected target width. | 
|  | 1886 | for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ | 
|  | 1887 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do | 
|  | 1888 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 1889 | /* end confdefs.h.  */ | 
|  | 1890 | $ac_includes_default | 
|  | 1891 | int | 
|  | 1892 | main () | 
|  | 1893 | { | 
|  | 1894 | static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; | 
|  | 1895 | test_array [0] = 0 | 
|  | 1896 |  | 
|  | 1897 | ; | 
|  | 1898 | return 0; | 
|  | 1899 | } | 
|  | 1900 | _ACEOF | 
|  | 1901 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 1902 | case $ac_type in #( | 
|  | 1903 | uint$2_t) : | 
|  | 1904 | eval "$3=yes" ;; #( | 
|  | 1905 | *) : | 
|  | 1906 | eval "$3=\$ac_type" ;; | 
|  | 1907 | esac | 
|  | 1908 | fi | 
|  | 1909 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 1910 | if eval test \"x\$"$3"\" = x"no"; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1911 |  | 
|  | 1912 | else | 
|  | 1913 | break | 
|  | 1914 | fi | 
|  | 1915 | done | 
|  | 1916 | fi | 
|  | 1917 | eval ac_res=\$$3 | 
|  | 1918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
|  | 1919 | $as_echo "$ac_res" >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 1920 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1921 |  | 
|  | 1922 | } # ac_fn_c_find_uintX_t | 
|  | 1923 |  | 
|  | 1924 | # ac_fn_c_find_intX_t LINENO BITS VAR | 
|  | 1925 | # ----------------------------------- | 
|  | 1926 | # Finds a signed integer type with width BITS, setting cache variable VAR | 
|  | 1927 | # accordingly. | 
|  | 1928 | ac_fn_c_find_intX_t () | 
|  | 1929 | { | 
|  | 1930 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 1931 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 | 
|  | 1932 | $as_echo_n "checking for int$2_t... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 1933 | if eval "test \"\${$3+set}\"" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1934 | $as_echo_n "(cached) " >&6 | 
|  | 1935 | else | 
|  | 1936 | eval "$3=no" | 
|  | 1937 | # Order is important - never check a type that is potentially smaller | 
|  | 1938 | # than half of the expected target width. | 
|  | 1939 | for ac_type in int$2_t 'int' 'long int' \ | 
|  | 1940 | 'long long int' 'short int' 'signed char'; do | 
|  | 1941 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 1942 | /* end confdefs.h.  */ | 
|  | 1943 | $ac_includes_default | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 1944 | enum { N = $2 / 2 - 1 }; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1945 | int | 
|  | 1946 | main () | 
|  | 1947 | { | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 1948 | static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1949 | test_array [0] = 0 | 
|  | 1950 |  | 
|  | 1951 | ; | 
|  | 1952 | return 0; | 
|  | 1953 | } | 
|  | 1954 | _ACEOF | 
|  | 1955 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 1956 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 1957 | /* end confdefs.h.  */ | 
|  | 1958 | $ac_includes_default | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 1959 | enum { N = $2 / 2 - 1 }; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1960 | int | 
|  | 1961 | main () | 
|  | 1962 | { | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 1963 | static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1964 | < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; | 
|  | 1965 | test_array [0] = 0 | 
|  | 1966 |  | 
|  | 1967 | ; | 
|  | 1968 | return 0; | 
|  | 1969 | } | 
|  | 1970 | _ACEOF | 
|  | 1971 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 1972 |  | 
|  | 1973 | else | 
|  | 1974 | case $ac_type in #( | 
|  | 1975 | int$2_t) : | 
|  | 1976 | eval "$3=yes" ;; #( | 
|  | 1977 | *) : | 
|  | 1978 | eval "$3=\$ac_type" ;; | 
|  | 1979 | esac | 
|  | 1980 | fi | 
|  | 1981 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 1982 | fi | 
|  | 1983 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 1984 | if eval test \"x\$"$3"\" = x"no"; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1985 |  | 
|  | 1986 | else | 
|  | 1987 | break | 
|  | 1988 | fi | 
|  | 1989 | done | 
|  | 1990 | fi | 
|  | 1991 | eval ac_res=\$$3 | 
|  | 1992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
|  | 1993 | $as_echo "$ac_res" >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 1994 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1995 |  | 
|  | 1996 | } # ac_fn_c_find_intX_t | 
|  | 1997 |  | 
|  | 1998 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES | 
|  | 1999 | # -------------------------------------------- | 
|  | 2000 | # Tries to find the compile-time value of EXPR in a program that includes | 
|  | 2001 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | 
|  | 2002 | # computed | 
|  | 2003 | ac_fn_c_compute_int () | 
|  | 2004 | { | 
|  | 2005 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 2006 | if test "$cross_compiling" = yes; then | 
|  | 2007 | # Depending upon the size, compute the lo and hi bounds. | 
|  | 2008 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2009 | /* end confdefs.h.  */ | 
|  | 2010 | $4 | 
|  | 2011 | int | 
|  | 2012 | main () | 
|  | 2013 | { | 
|  | 2014 | static int test_array [1 - 2 * !(($2) >= 0)]; | 
|  | 2015 | test_array [0] = 0 | 
|  | 2016 |  | 
|  | 2017 | ; | 
|  | 2018 | return 0; | 
|  | 2019 | } | 
|  | 2020 | _ACEOF | 
|  | 2021 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 2022 | ac_lo=0 ac_mid=0 | 
|  | 2023 | while :; do | 
|  | 2024 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2025 | /* end confdefs.h.  */ | 
|  | 2026 | $4 | 
|  | 2027 | int | 
|  | 2028 | main () | 
|  | 2029 | { | 
|  | 2030 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | 
|  | 2031 | test_array [0] = 0 | 
|  | 2032 |  | 
|  | 2033 | ; | 
|  | 2034 | return 0; | 
|  | 2035 | } | 
|  | 2036 | _ACEOF | 
|  | 2037 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 2038 | ac_hi=$ac_mid; break | 
|  | 2039 | else | 
|  | 2040 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val | 
|  | 2041 | if test $ac_lo -le $ac_mid; then | 
|  | 2042 | ac_lo= ac_hi= | 
|  | 2043 | break | 
|  | 2044 | fi | 
|  | 2045 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | 
|  | 2046 | fi | 
|  | 2047 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2048 | done | 
|  | 2049 | else | 
|  | 2050 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2051 | /* end confdefs.h.  */ | 
|  | 2052 | $4 | 
|  | 2053 | int | 
|  | 2054 | main () | 
|  | 2055 | { | 
|  | 2056 | static int test_array [1 - 2 * !(($2) < 0)]; | 
|  | 2057 | test_array [0] = 0 | 
|  | 2058 |  | 
|  | 2059 | ; | 
|  | 2060 | return 0; | 
|  | 2061 | } | 
|  | 2062 | _ACEOF | 
|  | 2063 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 2064 | ac_hi=-1 ac_mid=-1 | 
|  | 2065 | while :; do | 
|  | 2066 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2067 | /* end confdefs.h.  */ | 
|  | 2068 | $4 | 
|  | 2069 | int | 
|  | 2070 | main () | 
|  | 2071 | { | 
|  | 2072 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | 
|  | 2073 | test_array [0] = 0 | 
|  | 2074 |  | 
|  | 2075 | ; | 
|  | 2076 | return 0; | 
|  | 2077 | } | 
|  | 2078 | _ACEOF | 
|  | 2079 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 2080 | ac_lo=$ac_mid; break | 
|  | 2081 | else | 
|  | 2082 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | 
|  | 2083 | if test $ac_mid -le $ac_hi; then | 
|  | 2084 | ac_lo= ac_hi= | 
|  | 2085 | break | 
|  | 2086 | fi | 
|  | 2087 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | 
|  | 2088 | fi | 
|  | 2089 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2090 | done | 
|  | 2091 | else | 
|  | 2092 | ac_lo= ac_hi= | 
|  | 2093 | fi | 
|  | 2094 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2095 | fi | 
|  | 2096 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2097 | # Binary search between lo and hi bounds. | 
|  | 2098 | while test "x$ac_lo" != "x$ac_hi"; do | 
|  | 2099 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | 
|  | 2100 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2101 | /* end confdefs.h.  */ | 
|  | 2102 | $4 | 
|  | 2103 | int | 
|  | 2104 | main () | 
|  | 2105 | { | 
|  | 2106 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | 
|  | 2107 | test_array [0] = 0 | 
|  | 2108 |  | 
|  | 2109 | ; | 
|  | 2110 | return 0; | 
|  | 2111 | } | 
|  | 2112 | _ACEOF | 
|  | 2113 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 2114 | ac_hi=$ac_mid | 
|  | 2115 | else | 
|  | 2116 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | 
|  | 2117 | fi | 
|  | 2118 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2119 | done | 
|  | 2120 | case $ac_lo in #(( | 
|  | 2121 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | 
|  | 2122 | '') ac_retval=1 ;; | 
|  | 2123 | esac | 
|  | 2124 | else | 
|  | 2125 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2126 | /* end confdefs.h.  */ | 
|  | 2127 | $4 | 
|  | 2128 | static long int longval () { return $2; } | 
|  | 2129 | static unsigned long int ulongval () { return $2; } | 
|  | 2130 | #include <stdio.h> | 
|  | 2131 | #include <stdlib.h> | 
|  | 2132 | int | 
|  | 2133 | main () | 
|  | 2134 | { | 
|  | 2135 |  | 
|  | 2136 | FILE *f = fopen ("conftest.val", "w"); | 
|  | 2137 | if (! f) | 
|  | 2138 | return 1; | 
|  | 2139 | if (($2) < 0) | 
|  | 2140 | { | 
|  | 2141 | long int i = longval (); | 
|  | 2142 | if (i != ($2)) | 
|  | 2143 | return 1; | 
|  | 2144 | fprintf (f, "%ld", i); | 
|  | 2145 | } | 
|  | 2146 | else | 
|  | 2147 | { | 
|  | 2148 | unsigned long int i = ulongval (); | 
|  | 2149 | if (i != ($2)) | 
|  | 2150 | return 1; | 
|  | 2151 | fprintf (f, "%lu", i); | 
|  | 2152 | } | 
|  | 2153 | /* Do not output a trailing newline, as this causes \r\n confusion | 
|  | 2154 | on some platforms.  */ | 
|  | 2155 | return ferror (f) || fclose (f) != 0; | 
|  | 2156 |  | 
|  | 2157 | ; | 
|  | 2158 | return 0; | 
|  | 2159 | } | 
|  | 2160 | _ACEOF | 
|  | 2161 | if ac_fn_c_try_run "$LINENO"; then : | 
|  | 2162 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | 
|  | 2163 | else | 
|  | 2164 | ac_retval=1 | 
|  | 2165 | fi | 
|  | 2166 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 2167 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
|  | 2168 | rm -f conftest.val | 
|  | 2169 |  | 
|  | 2170 | fi | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 2171 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2172 | as_fn_set_status $ac_retval | 
|  | 2173 |  | 
|  | 2174 | } # ac_fn_c_compute_int | 
|  | 2175 |  | 
|  | 2176 | # ac_fn_c_check_func LINENO FUNC VAR | 
|  | 2177 | # ---------------------------------- | 
|  | 2178 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | 
|  | 2179 | ac_fn_c_check_func () | 
|  | 2180 | { | 
|  | 2181 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 2182 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
|  | 2183 | $as_echo_n "checking for $2... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 2184 | if eval "test \"\${$3+set}\"" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2185 | $as_echo_n "(cached) " >&6 | 
|  | 2186 | else | 
|  | 2187 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2188 | /* end confdefs.h.  */ | 
|  | 2189 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | 
|  | 2190 | For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
|  | 2191 | #define $2 innocuous_$2 | 
|  | 2192 |  | 
|  | 2193 | /* System header to define __stub macros and hopefully few prototypes, | 
|  | 2194 | which can conflict with char $2 (); below. | 
|  | 2195 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 2196 | <limits.h> exists even on freestanding compilers.  */ | 
|  | 2197 |  | 
|  | 2198 | #ifdef __STDC__ | 
|  | 2199 | # include <limits.h> | 
|  | 2200 | #else | 
|  | 2201 | # include <assert.h> | 
|  | 2202 | #endif | 
|  | 2203 |  | 
|  | 2204 | #undef $2 | 
|  | 2205 |  | 
|  | 2206 | /* Override any GCC internal prototype to avoid an error. | 
|  | 2207 | Use char because int might match the return type of a GCC | 
|  | 2208 | builtin and then its argument prototype would still apply.  */ | 
|  | 2209 | #ifdef __cplusplus | 
|  | 2210 | extern "C" | 
|  | 2211 | #endif | 
|  | 2212 | char $2 (); | 
|  | 2213 | /* The GNU C library defines this for functions which it implements | 
|  | 2214 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 2215 | something starting with __ and the normal name is an alias.  */ | 
|  | 2216 | #if defined __stub_$2 || defined __stub___$2 | 
|  | 2217 | choke me | 
|  | 2218 | #endif | 
|  | 2219 |  | 
|  | 2220 | int | 
|  | 2221 | main () | 
|  | 2222 | { | 
|  | 2223 | return $2 (); | 
|  | 2224 | ; | 
|  | 2225 | return 0; | 
|  | 2226 | } | 
|  | 2227 | _ACEOF | 
|  | 2228 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 2229 | eval "$3=yes" | 
|  | 2230 | else | 
|  | 2231 | eval "$3=no" | 
|  | 2232 | fi | 
|  | 2233 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 2234 | conftest$ac_exeext conftest.$ac_ext | 
|  | 2235 | fi | 
|  | 2236 | eval ac_res=\$$3 | 
|  | 2237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
|  | 2238 | $as_echo "$ac_res" >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 2239 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2240 |  | 
|  | 2241 | } # ac_fn_c_check_func | 
|  | 2242 |  | 
|  | 2243 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES | 
|  | 2244 | # ---------------------------------------------------- | 
|  | 2245 | # Tries to find if the field MEMBER exists in type AGGR, after including | 
|  | 2246 | # INCLUDES, setting cache variable VAR accordingly. | 
|  | 2247 | ac_fn_c_check_member () | 
|  | 2248 | { | 
|  | 2249 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 2250 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 | 
|  | 2251 | $as_echo_n "checking for $2.$3... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 2252 | if eval "test \"\${$4+set}\"" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2253 | $as_echo_n "(cached) " >&6 | 
|  | 2254 | else | 
|  | 2255 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2256 | /* end confdefs.h.  */ | 
|  | 2257 | $5 | 
|  | 2258 | int | 
|  | 2259 | main () | 
|  | 2260 | { | 
|  | 2261 | static $2 ac_aggr; | 
|  | 2262 | if (ac_aggr.$3) | 
|  | 2263 | return 0; | 
|  | 2264 | ; | 
|  | 2265 | return 0; | 
|  | 2266 | } | 
|  | 2267 | _ACEOF | 
|  | 2268 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 2269 | eval "$4=yes" | 
|  | 2270 | else | 
|  | 2271 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2272 | /* end confdefs.h.  */ | 
|  | 2273 | $5 | 
|  | 2274 | int | 
|  | 2275 | main () | 
|  | 2276 | { | 
|  | 2277 | static $2 ac_aggr; | 
|  | 2278 | if (sizeof ac_aggr.$3) | 
|  | 2279 | return 0; | 
|  | 2280 | ; | 
|  | 2281 | return 0; | 
|  | 2282 | } | 
|  | 2283 | _ACEOF | 
|  | 2284 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 2285 | eval "$4=yes" | 
|  | 2286 | else | 
|  | 2287 | eval "$4=no" | 
|  | 2288 | fi | 
|  | 2289 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2290 | fi | 
|  | 2291 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2292 | fi | 
|  | 2293 | eval ac_res=\$$4 | 
|  | 2294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
|  | 2295 | $as_echo "$ac_res" >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 2296 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2297 |  | 
|  | 2298 | } # ac_fn_c_check_member | 
|  | 2299 |  | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 2300 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES | 
|  | 2301 | # --------------------------------------------- | 
|  | 2302 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR | 
|  | 2303 | # accordingly. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2304 | ac_fn_c_check_decl () | 
|  | 2305 | { | 
|  | 2306 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 2307 | as_decl_name=`echo $2|sed 's/ *(.*//'` | 
|  | 2308 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | 
|  | 2309 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | 
|  | 2310 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 2311 | if eval "test \"\${$3+set}\"" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2312 | $as_echo_n "(cached) " >&6 | 
|  | 2313 | else | 
|  | 2314 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2315 | /* end confdefs.h.  */ | 
|  | 2316 | $4 | 
|  | 2317 | int | 
|  | 2318 | main () | 
|  | 2319 | { | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 2320 | #ifndef $as_decl_name | 
|  | 2321 | #ifdef __cplusplus | 
|  | 2322 | (void) $as_decl_use; | 
|  | 2323 | #else | 
|  | 2324 | (void) $as_decl_name; | 
|  | 2325 | #endif | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2326 | #endif | 
|  | 2327 |  | 
|  | 2328 | ; | 
|  | 2329 | return 0; | 
|  | 2330 | } | 
|  | 2331 | _ACEOF | 
|  | 2332 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 2333 | eval "$3=yes" | 
|  | 2334 | else | 
|  | 2335 | eval "$3=no" | 
|  | 2336 | fi | 
|  | 2337 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2338 | fi | 
|  | 2339 | eval ac_res=\$$3 | 
|  | 2340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
|  | 2341 | $as_echo "$ac_res" >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 2342 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2343 |  | 
|  | 2344 | } # ac_fn_c_check_decl | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2345 | cat >config.log <<_ACEOF | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2346 | This file contains any messages produced by compilers while | 
|  | 2347 | running configure, to aid debugging if configure makes a mistake. | 
|  | 2348 |  | 
| Benjamin Peterson | 46ea4f7 | 2009-06-27 21:40:27 +0000 | [diff] [blame] | 2349 | It was created by python $as_me 3.2, which was | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 2350 | generated by GNU Autoconf 2.67.  Invocation command line was | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2351 |  | 
|  | 2352 | $ $0 $@ | 
|  | 2353 |  | 
|  | 2354 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2355 | exec 5>>config.log | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2356 | { | 
|  | 2357 | cat <<_ASUNAME | 
|  | 2358 | ## --------- ## | 
|  | 2359 | ## Platform. ## | 
|  | 2360 | ## --------- ## | 
|  | 2361 |  | 
|  | 2362 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | 
|  | 2363 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | 
|  | 2364 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | 
|  | 2365 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | 
|  | 2366 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | 
|  | 2367 |  | 
|  | 2368 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | 
|  | 2369 | /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown` | 
|  | 2370 |  | 
|  | 2371 | /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown` | 
|  | 2372 | /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown` | 
|  | 2373 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2374 | /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] | 2375 | /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown` | 
|  | 2376 | /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown` | 
|  | 2377 | /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown` | 
|  | 2378 |  | 
|  | 2379 | _ASUNAME | 
|  | 2380 |  | 
|  | 2381 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 2382 | for as_dir in $PATH | 
|  | 2383 | do | 
|  | 2384 | IFS=$as_save_IFS | 
|  | 2385 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2386 | $as_echo "PATH: $as_dir" | 
|  | 2387 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2388 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2389 |  | 
|  | 2390 | } >&5 | 
|  | 2391 |  | 
|  | 2392 | cat >&5 <<_ACEOF | 
|  | 2393 |  | 
|  | 2394 |  | 
|  | 2395 | ## ----------- ## | 
|  | 2396 | ## Core tests. ## | 
|  | 2397 | ## ----------- ## | 
|  | 2398 |  | 
|  | 2399 | _ACEOF | 
|  | 2400 |  | 
|  | 2401 |  | 
|  | 2402 | # Keep a trace of the command line. | 
|  | 2403 | # 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] | 2404 | # 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] | 2405 | # Also quote any args containing shell meta-characters. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2406 | # Make two passes to allow for proper duplicate-argument suppression. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2407 | ac_configure_args= | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2408 | ac_configure_args0= | 
|  | 2409 | ac_configure_args1= | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2410 | ac_must_keep_next=false | 
|  | 2411 | for ac_pass in 1 2 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2412 | do | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2413 | for ac_arg | 
|  | 2414 | do | 
|  | 2415 | case $ac_arg in | 
|  | 2416 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | 
|  | 2417 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
|  | 2418 | | -silent | --silent | --silen | --sile | --sil) | 
|  | 2419 | continue ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2420 | *\'*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2421 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2422 | esac | 
|  | 2423 | case $ac_pass in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2424 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2425 | 2) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2426 | as_fn_append ac_configure_args1 " '$ac_arg'" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2427 | if test $ac_must_keep_next = true; then | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2428 | ac_must_keep_next=false # Got value, back to normal. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2429 | else | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2430 | case $ac_arg in | 
|  | 2431 | *=* | --config-cache | -C | -disable-* | --disable-* \ | 
|  | 2432 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | 
|  | 2433 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | 
|  | 2434 | | -with-* | --with-* | -without-* | --without-* | --x) | 
|  | 2435 | case "$ac_configure_args0 " in | 
|  | 2436 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | 
|  | 2437 | esac | 
|  | 2438 | ;; | 
|  | 2439 | -* ) ac_must_keep_next=true ;; | 
|  | 2440 | esac | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2441 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2442 | as_fn_append ac_configure_args " '$ac_arg'" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2443 | ;; | 
|  | 2444 | esac | 
|  | 2445 | done | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2446 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2447 | { ac_configure_args0=; unset ac_configure_args0;} | 
|  | 2448 | { ac_configure_args1=; unset ac_configure_args1;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2449 |  | 
|  | 2450 | # When interrupted or exit'd, cleanup temporary files, and complete | 
|  | 2451 | # config.log.  We remove comments because anyway the quotes in there | 
|  | 2452 | # would cause problems or look ugly. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2453 | # WARNING: Use '\'' to represent an apostrophe within the trap. | 
|  | 2454 | # 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] | 2455 | trap 'exit_status=$? | 
|  | 2456 | # Save into config.log some information that might help in debugging. | 
|  | 2457 | { | 
|  | 2458 | echo | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2459 |  | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 2460 | $as_echo "## ---------------- ## | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2461 | ## Cache variables. ## | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 2462 | ## ---------------- ##" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2463 | echo | 
|  | 2464 | # The following way of writing the cache mishandles newlines in values, | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2465 | ( | 
|  | 2466 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | 
|  | 2467 | eval ac_val=\$$ac_var | 
|  | 2468 | case $ac_val in #( | 
|  | 2469 | *${as_nl}*) | 
|  | 2470 | case $ac_var in #( | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2471 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | 
|  | 2472 | $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] | 2473 | esac | 
|  | 2474 | case $ac_var in #( | 
|  | 2475 | _ | IFS | as_nl) ;; #( | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2476 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | 
|  | 2477 | *) { eval $ac_var=; unset $ac_var;} ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2478 | esac ;; | 
|  | 2479 | esac | 
|  | 2480 | done | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2481 | (set) 2>&1 | | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2482 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | 
|  | 2483 | *${as_nl}ac_space=\ *) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2484 | sed -n \ | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2485 | "s/'\''/'\''\\\\'\'''\''/g; | 
|  | 2486 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | 
|  | 2487 | ;; #( | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 2488 | *) | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2489 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 2490 | ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2491 | esac | | 
|  | 2492 | sort | 
|  | 2493 | ) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2494 | echo | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2495 |  | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 2496 | $as_echo "## ----------------- ## | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2497 | ## Output variables. ## | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 2498 | ## ----------------- ##" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2499 | echo | 
|  | 2500 | for ac_var in $ac_subst_vars | 
|  | 2501 | do | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2502 | eval ac_val=\$$ac_var | 
|  | 2503 | case $ac_val in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2504 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2505 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2506 | $as_echo "$ac_var='\''$ac_val'\''" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2507 | done | sort | 
|  | 2508 | echo | 
|  | 2509 |  | 
|  | 2510 | if test -n "$ac_subst_files"; then | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 2511 | $as_echo "## ------------------- ## | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2512 | ## File substitutions. ## | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 2513 | ## ------------------- ##" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2514 | echo | 
|  | 2515 | for ac_var in $ac_subst_files | 
|  | 2516 | do | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2517 | eval ac_val=\$$ac_var | 
|  | 2518 | case $ac_val in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2519 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2520 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2521 | $as_echo "$ac_var='\''$ac_val'\''" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2522 | done | sort | 
|  | 2523 | echo | 
|  | 2524 | fi | 
|  | 2525 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2526 | if test -s confdefs.h; then | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 2527 | $as_echo "## ----------- ## | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2528 | ## confdefs.h. ## | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 2529 | ## ----------- ##" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2530 | echo | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2531 | cat confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2532 | echo | 
|  | 2533 | fi | 
|  | 2534 | test "$ac_signal" != 0 && | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2535 | $as_echo "$as_me: caught signal $ac_signal" | 
|  | 2536 | $as_echo "$as_me: exit $exit_status" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2537 | } >&5 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2538 | rm -f core *.core core.conftest.* && | 
|  | 2539 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2540 | exit $exit_status | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2541 | ' 0 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2542 | for ac_signal in 1 2 13 15; do | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2543 | 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] | 2544 | done | 
|  | 2545 | ac_signal=0 | 
|  | 2546 |  | 
|  | 2547 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2548 | rm -f -r conftest* confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2549 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2550 | $as_echo "/* confdefs.h */" > confdefs.h | 
|  | 2551 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2552 | # Predefined preprocessor variables. | 
|  | 2553 |  | 
|  | 2554 | cat >>confdefs.h <<_ACEOF | 
|  | 2555 | #define PACKAGE_NAME "$PACKAGE_NAME" | 
|  | 2556 | _ACEOF | 
|  | 2557 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2558 | cat >>confdefs.h <<_ACEOF | 
|  | 2559 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | 
|  | 2560 | _ACEOF | 
|  | 2561 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2562 | cat >>confdefs.h <<_ACEOF | 
|  | 2563 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | 
|  | 2564 | _ACEOF | 
|  | 2565 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2566 | cat >>confdefs.h <<_ACEOF | 
|  | 2567 | #define PACKAGE_STRING "$PACKAGE_STRING" | 
|  | 2568 | _ACEOF | 
|  | 2569 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2570 | cat >>confdefs.h <<_ACEOF | 
|  | 2571 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | 
|  | 2572 | _ACEOF | 
|  | 2573 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2574 | cat >>confdefs.h <<_ACEOF | 
|  | 2575 | #define PACKAGE_URL "$PACKAGE_URL" | 
|  | 2576 | _ACEOF | 
|  | 2577 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2578 |  | 
|  | 2579 | # Let the site file select an alternate cache file if it wants to. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2580 | # Prefer an explicitly selected file to automatically selected ones. | 
|  | 2581 | ac_site_file1=NONE | 
|  | 2582 | ac_site_file2=NONE | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2583 | if test -n "$CONFIG_SITE"; then | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 2584 | # We do not want a PATH search for config.site. | 
|  | 2585 | case $CONFIG_SITE in #(( | 
|  | 2586 | -*)  ac_site_file1=./$CONFIG_SITE;; | 
|  | 2587 | */*) ac_site_file1=$CONFIG_SITE;; | 
|  | 2588 | *)   ac_site_file1=./$CONFIG_SITE;; | 
|  | 2589 | esac | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2590 | elif test "x$prefix" != xNONE; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2591 | ac_site_file1=$prefix/share/config.site | 
|  | 2592 | ac_site_file2=$prefix/etc/config.site | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2593 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2594 | ac_site_file1=$ac_default_prefix/share/config.site | 
|  | 2595 | ac_site_file2=$ac_default_prefix/etc/config.site | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2596 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2597 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2598 | do | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2599 | test "x$ac_site_file" = xNONE && continue | 
|  | 2600 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | 
|  | 2601 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | 
|  | 2602 | $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] | 2603 | sed 's/^/| /' "$ac_site_file" >&5 | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 2604 | . "$ac_site_file" \ | 
|  | 2605 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 2606 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
|  | 2607 | as_fn_error $? "failed to load site script $ac_site_file | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 2608 | See \`config.log' for more details" "$LINENO" 5 ; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2609 | fi | 
|  | 2610 | done | 
|  | 2611 |  | 
|  | 2612 | if test -r "$cache_file"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2613 | # Some versions of bash will fail to source /dev/null (special files | 
|  | 2614 | # actually), so we avoid doing that.  DJGPP emulates it as a regular file. | 
|  | 2615 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | 
|  | 2616 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | 
|  | 2617 | $as_echo "$as_me: loading cache $cache_file" >&6;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2618 | case $cache_file in | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2619 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | 
|  | 2620 | *)                      . "./$cache_file";; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2621 | esac | 
|  | 2622 | fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2623 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2624 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | 
|  | 2625 | $as_echo "$as_me: creating cache $cache_file" >&6;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2626 | >$cache_file | 
|  | 2627 | fi | 
|  | 2628 |  | 
|  | 2629 | # Check that the precious variables saved in the cache have kept the same | 
|  | 2630 | # value. | 
|  | 2631 | ac_cache_corrupted=false | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2632 | for ac_var in $ac_precious_vars; do | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2633 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | 
|  | 2634 | eval ac_new_set=\$ac_env_${ac_var}_set | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2635 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | 
|  | 2636 | eval ac_new_val=\$ac_env_${ac_var}_value | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2637 | case $ac_old_set,$ac_new_set in | 
|  | 2638 | set,) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2639 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | 
|  | 2640 | $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] | 2641 | ac_cache_corrupted=: ;; | 
|  | 2642 | ,set) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2643 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | 
|  | 2644 | $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] | 2645 | ac_cache_corrupted=: ;; | 
|  | 2646 | ,);; | 
|  | 2647 | *) | 
|  | 2648 | if test "x$ac_old_val" != "x$ac_new_val"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2649 | # differences in whitespace do not lead to failure. | 
|  | 2650 | ac_old_val_w=`echo x $ac_old_val` | 
|  | 2651 | ac_new_val_w=`echo x $ac_new_val` | 
|  | 2652 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | 
|  | 2653 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | 
|  | 2654 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | 
|  | 2655 | ac_cache_corrupted=: | 
|  | 2656 | else | 
|  | 2657 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | 
|  | 2658 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | 
|  | 2659 | eval $ac_var=\$ac_old_val | 
|  | 2660 | fi | 
|  | 2661 | { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5 | 
|  | 2662 | $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;} | 
|  | 2663 | { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5 | 
|  | 2664 | $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2665 | fi;; | 
|  | 2666 | esac | 
|  | 2667 | # Pass precious variables to config.status. | 
|  | 2668 | if test "$ac_new_set" = set; then | 
|  | 2669 | case $ac_new_val in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2670 | *\'*) 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] | 2671 | *) ac_arg=$ac_var=$ac_new_val ;; | 
|  | 2672 | esac | 
|  | 2673 | case " $ac_configure_args " in | 
|  | 2674 | *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2675 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2676 | esac | 
|  | 2677 | fi | 
|  | 2678 | done | 
|  | 2679 | if $ac_cache_corrupted; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2680 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 2681 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
|  | 2682 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | 
|  | 2683 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 2684 | 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] | 2685 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2686 | ## -------------------- ## | 
|  | 2687 | ## Main body of script. ## | 
|  | 2688 | ## -------------------- ## | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2689 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2690 | ac_ext=c | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2691 | ac_cpp='$CPP $CPPFLAGS' | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2692 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 2693 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 2694 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2695 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2696 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2697 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2698 | ac_config_headers="$ac_config_headers pyconfig.h" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2699 |  | 
|  | 2700 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2701 |  | 
| Benjamin Peterson | d23f822 | 2009-04-05 19:13:16 +0000 | [diff] [blame] | 2702 | if test "$prefix" != "/"; then | 
|  | 2703 | prefix=`echo "$prefix" | sed -e 's/\/$//g'` | 
|  | 2704 | fi | 
|  | 2705 |  | 
|  | 2706 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2707 |  | 
|  | 2708 |  | 
| Martin v. Löwis | 8316feb | 2003-06-14 07:48:07 +0000 | [diff] [blame] | 2709 | # We don't use PACKAGE_ variables, and they cause conflicts | 
|  | 2710 | # with other autoconf-based packages that include Python.h | 
|  | 2711 | grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new | 
|  | 2712 | rm confdefs.h | 
|  | 2713 | mv confdefs.h.new confdefs.h | 
|  | 2714 |  | 
| Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 2715 |  | 
| Benjamin Peterson | 46ea4f7 | 2009-06-27 21:40:27 +0000 | [diff] [blame] | 2716 | VERSION=3.2 | 
| Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 2717 |  | 
| Benjamin Peterson | d7f73e9 | 2010-09-05 00:09:07 +0000 | [diff] [blame] | 2718 | # Version number of Python's own shared library file. | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 2719 |  | 
|  | 2720 | SOVERSION=1.0 | 
|  | 2721 |  | 
| Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 2722 | # The later defininition of _XOPEN_SOURCE disables certain features | 
|  | 2723 | # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone). | 
|  | 2724 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2725 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | 
| Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 2726 |  | 
|  | 2727 |  | 
| Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 2728 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables | 
|  | 2729 | # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable | 
|  | 2730 | # them. | 
|  | 2731 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2732 | $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h | 
| Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 2733 |  | 
|  | 2734 |  | 
| Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 2735 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables | 
|  | 2736 | # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable | 
|  | 2737 | # them. | 
|  | 2738 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2739 | $as_echo "#define __BSD_VISIBLE 1" >>confdefs.h | 
| Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 2740 |  | 
|  | 2741 |  | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 2742 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables | 
|  | 2743 | # u_int on Irix 5.3. Defining _BSD_TYPES brings it back. | 
|  | 2744 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2745 | $as_echo "#define _BSD_TYPES 1" >>confdefs.h | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 2746 |  | 
|  | 2747 |  | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 2748 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables | 
|  | 2749 | # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable | 
|  | 2750 | # them. | 
|  | 2751 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2752 | $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 2753 |  | 
|  | 2754 |  | 
|  | 2755 |  | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2756 | define_xopen_source=yes | 
| Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 2757 |  | 
| Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 +0000 | [diff] [blame] | 2758 | # Arguments passed to configure. | 
|  | 2759 |  | 
|  | 2760 | CONFIG_ARGS="$ac_configure_args" | 
|  | 2761 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2762 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-universalsdk" >&5 | 
|  | 2763 | $as_echo_n "checking for --enable-universalsdk... " >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2764 | # Check whether --enable-universalsdk was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2765 | if test "${enable_universalsdk+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2766 | enableval=$enable_universalsdk; | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2767 | case $enableval in | 
|  | 2768 | yes) | 
|  | 2769 | enableval=/Developer/SDKs/MacOSX10.4u.sdk | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 2770 | if test ! -d "${enableval}" | 
|  | 2771 | then | 
|  | 2772 | enableval=/ | 
|  | 2773 | fi | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2774 | ;; | 
|  | 2775 | esac | 
|  | 2776 | case $enableval in | 
|  | 2777 | no) | 
|  | 2778 | UNIVERSALSDK= | 
|  | 2779 | enable_universalsdk= | 
|  | 2780 | ;; | 
|  | 2781 | *) | 
|  | 2782 | UNIVERSALSDK=$enableval | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 2783 | if test ! -d "${UNIVERSALSDK}" | 
|  | 2784 | then | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 2785 | as_fn_error $? "--enable-universalsdk specifies non-existing SDK: ${UNIVERSALSDK}" "$LINENO" 5 | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 2786 | fi | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2787 | ;; | 
|  | 2788 | esac | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2789 |  | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 2790 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2791 | else | 
|  | 2792 |  | 
|  | 2793 | UNIVERSALSDK= | 
|  | 2794 | enable_universalsdk= | 
|  | 2795 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2796 | fi | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2797 |  | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 2798 | if test -n "${UNIVERSALSDK}" | 
|  | 2799 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSALSDK}" >&5 | 
|  | 2801 | $as_echo "${UNIVERSALSDK}" >&6; } | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 2802 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 2804 | $as_echo "no" >&6; } | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 2805 | fi | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2806 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2807 |  | 
| Benjamin Peterson | 6794aa3 | 2008-07-16 20:33:37 +0000 | [diff] [blame] | 2808 |  | 
|  | 2809 |  | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 2810 | UNIVERSAL_ARCHS="32-bit" | 
| Ronald Oussoren | 6f6c562 | 2009-12-24 14:03:19 +0000 | [diff] [blame] | 2811 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2812 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-universal-archs" >&5 | 
|  | 2813 | $as_echo_n "checking for --with-universal-archs... " >&6; } | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 2814 |  | 
|  | 2815 | # Check whether --with-universal-archs was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2816 | if test "${with_universal_archs+set}" = set; then : | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 2817 | withval=$with_universal_archs; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 | 
|  | 2819 | $as_echo "$withval" >&6; } | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 2820 | UNIVERSAL_ARCHS="$withval" | 
|  | 2821 |  | 
|  | 2822 | else | 
|  | 2823 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: 32-bit" >&5 | 
|  | 2825 | $as_echo "32-bit" >&6; } | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 2826 |  | 
|  | 2827 | fi | 
|  | 2828 |  | 
|  | 2829 |  | 
|  | 2830 |  | 
|  | 2831 |  | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 2832 |  | 
|  | 2833 | # Check whether --with-framework-name was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2834 | if test "${with_framework_name+set}" = set; then : | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 2835 | withval=$with_framework_name; | 
|  | 2836 | PYTHONFRAMEWORK=${withval} | 
|  | 2837 | PYTHONFRAMEWORKDIR=${withval}.framework | 
|  | 2838 | PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'` | 
|  | 2839 |  | 
|  | 2840 | else | 
|  | 2841 |  | 
|  | 2842 | PYTHONFRAMEWORK=Python | 
|  | 2843 | PYTHONFRAMEWORKDIR=Python.framework | 
|  | 2844 | PYTHONFRAMEWORKIDENTIFIER=org.python.python | 
|  | 2845 |  | 
|  | 2846 | fi | 
|  | 2847 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2848 | # Check whether --enable-framework was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2849 | if test "${enable_framework+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2850 | enableval=$enable_framework; | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2851 | case $enableval in | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2852 | yes) | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2853 | enableval=/Library/Frameworks | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2854 | esac | 
|  | 2855 | case $enableval in | 
|  | 2856 | no) | 
|  | 2857 | PYTHONFRAMEWORK= | 
|  | 2858 | PYTHONFRAMEWORKDIR=no-framework | 
|  | 2859 | PYTHONFRAMEWORKPREFIX= | 
|  | 2860 | PYTHONFRAMEWORKINSTALLDIR= | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2861 | FRAMEWORKINSTALLFIRST= | 
|  | 2862 | FRAMEWORKINSTALLLAST= | 
| Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 2863 | FRAMEWORKALTINSTALLFIRST= | 
|  | 2864 | FRAMEWORKALTINSTALLLAST= | 
|  | 2865 | if test "x${prefix}" = "xNONE"; then | 
|  | 2866 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" | 
|  | 2867 | else | 
|  | 2868 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" | 
|  | 2869 | fi | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2870 | enable_framework= | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2871 | ;; | 
|  | 2872 | *) | 
| Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 2873 | PYTHONFRAMEWORKPREFIX="${enableval}" | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2874 | PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2875 | FRAMEWORKINSTALLFIRST="frameworkinstallstructure" | 
| Ronald Oussoren | f6ccbf6 | 2009-06-02 10:55:56 +0000 | [diff] [blame] | 2876 | FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure " | 
| Ronald Oussoren | 6f6c562 | 2009-12-24 14:03:19 +0000 | [diff] [blame] | 2877 | FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools" | 
|  | 2878 | FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools" | 
| Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 2879 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 2880 |  | 
| Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 2881 | if test "x${prefix}" = "xNONE" ; then | 
|  | 2882 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" | 
| Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 2883 |  | 
| Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 2884 | else | 
|  | 2885 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" | 
|  | 2886 | fi | 
| Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 2887 |  | 
|  | 2888 | case "${enableval}" in | 
|  | 2889 | /System*) | 
|  | 2890 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" | 
|  | 2891 | if test "${prefix}" = "NONE" ; then | 
|  | 2892 | # See below | 
|  | 2893 | FRAMEWORKUNIXTOOLSPREFIX="/usr" | 
|  | 2894 | fi | 
|  | 2895 | ;; | 
|  | 2896 |  | 
|  | 2897 | /Library*) | 
|  | 2898 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" | 
|  | 2899 | ;; | 
|  | 2900 |  | 
|  | 2901 | */Library/Frameworks) | 
|  | 2902 | MDIR="`dirname "${enableval}"`" | 
|  | 2903 | MDIR="`dirname "${MDIR}"`" | 
|  | 2904 | FRAMEWORKINSTALLAPPSPREFIX="${MDIR}/Applications" | 
|  | 2905 |  | 
|  | 2906 | if test "${prefix}" = "NONE"; then | 
|  | 2907 | # User hasn't specified the | 
|  | 2908 | # --prefix option, but wants to install | 
|  | 2909 | # the framework in a non-default location, | 
|  | 2910 | # ensure that the compatibility links get | 
|  | 2911 | # installed relative to that prefix as well | 
|  | 2912 | # instead of in /usr/local. | 
|  | 2913 | FRAMEWORKUNIXTOOLSPREFIX="${MDIR}" | 
|  | 2914 | fi | 
|  | 2915 | ;; | 
|  | 2916 |  | 
|  | 2917 | *) | 
|  | 2918 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" | 
|  | 2919 | ;; | 
|  | 2920 | esac | 
|  | 2921 |  | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2922 | prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2923 |  | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 2924 | # Add files for Mac specific code to the list of output | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2925 | # files: | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2926 | ac_config_files="$ac_config_files Mac/Makefile" | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2927 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2928 | ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile" | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2929 |  | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 2930 | ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist" | 
|  | 2931 |  | 
|  | 2932 | ac_config_files="$ac_config_files Mac/Resources/app/Info.plist" | 
|  | 2933 |  | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2934 | esac | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2935 |  | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2936 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2937 |  | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2938 | PYTHONFRAMEWORK= | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2939 | PYTHONFRAMEWORKDIR=no-framework | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2940 | PYTHONFRAMEWORKPREFIX= | 
|  | 2941 | PYTHONFRAMEWORKINSTALLDIR= | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2942 | FRAMEWORKINSTALLFIRST= | 
|  | 2943 | FRAMEWORKINSTALLLAST= | 
| Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 2944 | FRAMEWORKALTINSTALLFIRST= | 
|  | 2945 | FRAMEWORKALTINSTALLLAST= | 
|  | 2946 | if test "x${prefix}" = "xNONE" ; then | 
|  | 2947 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" | 
|  | 2948 | else | 
|  | 2949 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" | 
|  | 2950 | fi | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2951 | enable_framework= | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2952 |  | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 2953 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2954 | fi | 
|  | 2955 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2956 |  | 
|  | 2957 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2958 |  | 
|  | 2959 |  | 
|  | 2960 |  | 
|  | 2961 |  | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2962 |  | 
| Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 2963 |  | 
|  | 2964 |  | 
|  | 2965 |  | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 2966 |  | 
| Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 2967 |  | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2968 | ##AC_ARG_WITH(dyld, | 
| Matthias Klose | 2b8733f | 2010-04-25 18:34:36 +0000 | [diff] [blame] | 2969 | ##            AS_HELP_STRING([--with-dyld], | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 2970 | ##                           [Use (OpenStep|Rhapsody) dynamic linker])) | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2971 | ## | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2972 | # Set name for machine-dependent library files | 
|  | 2973 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2974 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP" >&5 | 
|  | 2975 | $as_echo_n "checking MACHDEP... " >&6; } | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2976 | if test -z "$MACHDEP" | 
|  | 2977 | then | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2978 | ac_sys_system=`uname -s` | 
| Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 2979 | if test "$ac_sys_system" = "AIX" \ | 
| Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 2980 | -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2981 | ac_sys_release=`uname -v` | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2982 | else | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2983 | ac_sys_release=`uname -r` | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2984 | fi | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2985 | ac_md_system=`echo $ac_sys_system | | 
|  | 2986 | tr -d '/ ' | tr '[A-Z]' '[a-z]'` | 
|  | 2987 | ac_md_release=`echo $ac_sys_release | | 
| Guido van Rossum | 67b2659 | 2001-10-20 14:21:45 +0000 | [diff] [blame] | 2988 | tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'` | 
| Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 2989 | MACHDEP="$ac_md_system$ac_md_release" | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2990 |  | 
| Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 2991 | case $MACHDEP in | 
| Andrew M. Kuchling | 5a3e4cb | 2001-07-20 19:29:04 +0000 | [diff] [blame] | 2992 | cygwin*) MACHDEP="cygwin";; | 
| Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame] | 2993 | darwin*) MACHDEP="darwin";; | 
| Martin v. Löwis | f332228 | 2003-07-13 09:46:13 +0000 | [diff] [blame] | 2994 | irix646) MACHDEP="irix6";; | 
| Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 2995 | '')	MACHDEP="unknown";; | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2996 | esac | 
|  | 2997 | fi | 
| Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 2998 |  | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2999 | # Some systems cannot stand _XOPEN_SOURCE being defined at all; they | 
|  | 3000 | # disable features if it is defined, without any means to access these | 
|  | 3001 | # features as extensions. For these systems, we skip the definition of | 
|  | 3002 | # _XOPEN_SOURCE. Before adding a system to the list to gain access to | 
|  | 3003 | # some feature, make sure there is no alternative way to access this | 
|  | 3004 | # feature. Also, when using wildcards, make sure you have verified the | 
|  | 3005 | # need for not defining _XOPEN_SOURCE on all systems matching the | 
|  | 3006 | # wildcard, and that the wildcard does not include future systems | 
|  | 3007 | # (which may remove their limitations). | 
|  | 3008 | case $ac_sys_system/$ac_sys_release in | 
|  | 3009 | # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined, | 
|  | 3010 | # 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] | 3011 | # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish. | 
| Martin v. Löwis | 19ed3c8 | 2010-02-15 21:45:06 +0000 | [diff] [blame] | 3012 | # In addition, Stefan Krah confirms that issue #1244610 exists through | 
|  | 3013 | # OpenBSD 4.6, but is fixed in 4.7. | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 3014 | OpenBSD/2.* | OpenBSD/3.* | OpenBSD/4.[0123456]) | 
| Christian Heimes | 5b5e81c | 2007-12-31 16:14:33 +0000 | [diff] [blame] | 3015 | define_xopen_source=no | 
|  | 3016 | # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is | 
|  | 3017 | # also defined. This can be overridden by defining _BSD_SOURCE | 
|  | 3018 | # As this has a different meaning on Linux, only define it on OpenBSD | 
|  | 3019 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3020 | $as_echo "#define _BSD_SOURCE 1" >>confdefs.h | 
| Christian Heimes | 5b5e81c | 2007-12-31 16:14:33 +0000 | [diff] [blame] | 3021 |  | 
|  | 3022 | ;; | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 3023 | OpenBSD/*) | 
| Martin v. Löwis | 7671efc | 2010-02-15 08:35:16 +0000 | [diff] [blame] | 3024 | # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is | 
|  | 3025 | # also defined. This can be overridden by defining _BSD_SOURCE | 
|  | 3026 | # As this has a different meaning on Linux, only define it on OpenBSD | 
|  | 3027 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3028 | $as_echo "#define _BSD_SOURCE 1" >>confdefs.h | 
| Martin v. Löwis | 7671efc | 2010-02-15 08:35:16 +0000 | [diff] [blame] | 3029 |  | 
|  | 3030 | ;; | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 3031 | # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of | 
|  | 3032 | # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by | 
|  | 3033 | # Marc Recht | 
| Benjamin Peterson | f608c61 | 2008-11-16 18:33:53 +0000 | [diff] [blame] | 3034 | 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] | 3035 | define_xopen_source=no;; | 
| Martin v. Löwis | 1a41576 | 2010-05-28 15:44:20 +0000 | [diff] [blame] | 3036 | # From the perspective of Solaris, _XOPEN_SOURCE is not so much a | 
|  | 3037 | # request to enable features supported by the standard as a request | 
|  | 3038 | # to disable features not supported by the standard.  The best way | 
|  | 3039 | # for Python to use Solaris is simply to leave _XOPEN_SOURCE out | 
|  | 3040 | # entirely and define __EXTENSIONS__ instead. | 
|  | 3041 | SunOS/*) | 
| Martin v. Löwis | a9d7142 | 2003-03-28 18:43:31 +0000 | [diff] [blame] | 3042 | define_xopen_source=no;; | 
| Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 3043 | # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE, | 
|  | 3044 | # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice. | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3045 | # Reconfirmed for 7.1.4 by Martin v. Loewis. | 
| Martin v. Löwis | 253d1f4 | 2004-05-07 19:14:14 +0000 | [diff] [blame] | 3046 | OpenUNIX/8.0.0| UnixWare/7.1.[0-4]) | 
| Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 3047 | define_xopen_source=no;; | 
|  | 3048 | # 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] | 3049 | # 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] | 3050 | SCO_SV/3.2) | 
| Martin v. Löwis | 53e73c3 | 2003-05-05 05:13:18 +0000 | [diff] [blame] | 3051 | define_xopen_source=no;; | 
| Martin v. Löwis | b37509b | 2008-11-04 20:45:29 +0000 | [diff] [blame] | 3052 | # On FreeBSD 4, the math functions C89 does not cover are never defined | 
|  | 3053 | # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them. | 
|  | 3054 | FreeBSD/4.*) | 
|  | 3055 | define_xopen_source=no;; | 
|  | 3056 | # On MacOS X 10.2, a bug in ncurses.h means that it craps out if | 
|  | 3057 | # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which | 
|  | 3058 | # identifies itself as Darwin/7.* | 
|  | 3059 | # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE | 
|  | 3060 | # disables platform specific features beyond repair. | 
|  | 3061 | # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE | 
|  | 3062 | # has no effect, don't bother defining them | 
|  | 3063 | Darwin/[6789].*) | 
| Anthony Baxter | 6169c6b | 2003-10-04 07:46:23 +0000 | [diff] [blame] | 3064 | define_xopen_source=no;; | 
| Ronald Oussoren | 92fb941 | 2010-03-09 06:40:19 +0000 | [diff] [blame] | 3065 | Darwin/1[0-9].*) | 
| Ronald Oussoren | b8f11a6 | 2010-03-08 07:02:03 +0000 | [diff] [blame] | 3066 | define_xopen_source=no;; | 
| Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 3067 | # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but | 
|  | 3068 | # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined | 
|  | 3069 | # 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] | 3070 | AIX/4) | 
|  | 3071 | define_xopen_source=no;; | 
| Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 3072 | AIX/5) | 
|  | 3073 | if test `uname -r` -eq 1; then | 
|  | 3074 | define_xopen_source=no | 
|  | 3075 | fi | 
|  | 3076 | ;; | 
| Benjamin Peterson | de9c869 | 2008-07-01 18:23:09 +0000 | [diff] [blame] | 3077 | # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from | 
|  | 3078 | # defining NI_NUMERICHOST. | 
|  | 3079 | QNX/6.3.2) | 
|  | 3080 | define_xopen_source=no | 
|  | 3081 | ;; | 
| Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 3082 |  | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3083 | esac | 
|  | 3084 |  | 
|  | 3085 | if test $define_xopen_source = yes | 
|  | 3086 | then | 
| Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3087 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3088 | $as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3089 |  | 
| Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3090 |  | 
|  | 3091 | # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires | 
|  | 3092 | # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else | 
|  | 3093 | # several APIs are not declared. Since this is also needed in some | 
|  | 3094 | # cases for HP-UX, we define it globally. | 
| Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3095 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3096 | $as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h | 
| Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3097 |  | 
|  | 3098 |  | 
| Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 3099 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3100 | $as_echo "#define _POSIX_C_SOURCE 200112L" >>confdefs.h | 
| Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3101 |  | 
|  | 3102 |  | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3103 | fi | 
|  | 3104 |  | 
| Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3105 | # | 
|  | 3106 | # SGI compilers allow the specification of the both the ABI and the | 
|  | 3107 | # ISA on the command line.  Depending on the values of these switches, | 
|  | 3108 | # different and often incompatable code will be generated. | 
|  | 3109 | # | 
|  | 3110 | # The SGI_ABI variable can be used to modify the CC and LDFLAGS and | 
|  | 3111 | # thus supply support for various ABI/ISA combinations.  The MACHDEP | 
|  | 3112 | # variable is also adjusted. | 
|  | 3113 | # | 
|  | 3114 |  | 
|  | 3115 | if test ! -z "$SGI_ABI" | 
|  | 3116 | then | 
|  | 3117 | CC="cc $SGI_ABI" | 
|  | 3118 | LDFLAGS="$SGI_ABI $LDFLAGS" | 
|  | 3119 | MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'` | 
|  | 3120 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACHDEP" >&5 | 
|  | 3122 | $as_echo "$MACHDEP" >&6; } | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3123 |  | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3124 | # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET, | 
|  | 3125 | # it may influence the way we can build extensions, so distutils | 
|  | 3126 | # needs to check it | 
|  | 3127 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3128 |  | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3129 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET= | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3130 | EXPORT_MACOSX_DEPLOYMENT_TARGET='#' | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3131 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3132 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking machine type as reported by uname -m" >&5 | 
|  | 3133 | $as_echo_n "checking machine type as reported by uname -m... " >&6; } | 
| Mark Dickinson | b0e2b4c | 2008-04-26 20:48:56 +0000 | [diff] [blame] | 3134 | ac_sys_machine=`uname -m` | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sys_machine" >&5 | 
|  | 3136 | $as_echo "$ac_sys_machine" >&6; } | 
| Mark Dickinson | b0e2b4c | 2008-04-26 20:48:56 +0000 | [diff] [blame] | 3137 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3138 | # checks for alternative programs | 
| Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3139 |  | 
|  | 3140 | # compiler flags are generated in two sets, BASECFLAGS and OPT.  OPT is just | 
|  | 3141 | # for debug/optimization stuff.  BASECFLAGS is for flags that are required | 
|  | 3142 | # just to get things to compile and link.  Users are free to override OPT | 
|  | 3143 | # when running configure or make.  The build should not break if they do. | 
|  | 3144 | # BASECFLAGS should generally not be messed with, however. | 
|  | 3145 |  | 
|  | 3146 | # XXX shouldn't some/most/all of this code be merged with the stuff later | 
|  | 3147 | # on that fiddles with OPT and BASECFLAGS? | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3148 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --without-gcc" >&5 | 
|  | 3149 | $as_echo_n "checking for --without-gcc... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3150 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3151 | # Check whether --with-gcc was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3152 | if test "${with_gcc+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3153 | withval=$with_gcc; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3154 | case $withval in | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3155 | no)	CC=${CC:-cc} | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3156 | without_gcc=yes;; | 
|  | 3157 | yes)	CC=gcc | 
|  | 3158 | without_gcc=no;; | 
|  | 3159 | *)	CC=$withval | 
|  | 3160 | without_gcc=$withval;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3161 | esac | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3162 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3163 |  | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3164 | case $ac_sys_system in | 
| Antoine Pitrou | f6350d2 | 2010-09-21 15:19:14 +0000 | [diff] [blame] | 3165 | AIX*)   CC=${CC:-xlc_r} | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 3166 | without_gcc=;; | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3167 | *)	without_gcc=no;; | 
| Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 3168 | esac | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3169 | fi | 
|  | 3170 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $without_gcc" >&5 | 
|  | 3172 | $as_echo "$without_gcc" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3173 |  | 
| Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 3174 | # If the user switches compilers, we can't believe the cache | 
|  | 3175 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" | 
|  | 3176 | then | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 3177 | as_fn_error $? "cached CC is different -- throw away $cache_file | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3178 | (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] | 3179 | fi | 
|  | 3180 |  | 
| Jeffrey Yasskin | d4fcdb1 | 2010-07-09 16:30:58 +0000 | [diff] [blame] | 3181 | # Don't let AC_PROG_CC set the default CFLAGS. It normally sets -g -O2 | 
|  | 3182 | # when the compiler supports them, but we don't always want -O2, and | 
|  | 3183 | # we set -g later. | 
|  | 3184 | if test -z "$CFLAGS"; then | 
|  | 3185 | CFLAGS= | 
|  | 3186 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3187 | ac_ext=c | 
|  | 3188 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 3189 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 3190 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 3191 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 3192 | if test -n "$ac_tool_prefix"; then | 
|  | 3193 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | 
|  | 3194 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3195 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 3196 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 3197 | if test "${ac_cv_prog_CC+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3198 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3199 | else | 
|  | 3200 | if test -n "$CC"; then | 
|  | 3201 | ac_cv_prog_CC="$CC" # Let the user override the test. | 
|  | 3202 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3203 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 3204 | for as_dir in $PATH | 
|  | 3205 | do | 
|  | 3206 | IFS=$as_save_IFS | 
|  | 3207 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3208 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3209 | 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] | 3210 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3211 | $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] | 3212 | break 2 | 
|  | 3213 | fi | 
|  | 3214 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3215 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3216 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3217 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3218 | fi | 
|  | 3219 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3220 | CC=$ac_cv_prog_CC | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3221 | if test -n "$CC"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
|  | 3223 | $as_echo "$CC" >&6; } | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3224 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 3226 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3227 | fi | 
|  | 3228 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3229 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3230 | fi | 
|  | 3231 | if test -z "$ac_cv_prog_CC"; then | 
|  | 3232 | ac_ct_CC=$CC | 
|  | 3233 | # Extract the first word of "gcc", so it can be a program name with args. | 
|  | 3234 | set dummy gcc; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3235 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 3236 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 3237 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3238 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3239 | else | 
|  | 3240 | if test -n "$ac_ct_CC"; then | 
|  | 3241 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | 
|  | 3242 | else | 
|  | 3243 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 3244 | for as_dir in $PATH | 
|  | 3245 | do | 
|  | 3246 | IFS=$as_save_IFS | 
|  | 3247 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3248 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3249 | 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] | 3250 | ac_cv_prog_ac_ct_CC="gcc" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3251 | $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] | 3252 | break 2 | 
|  | 3253 | fi | 
|  | 3254 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3255 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3256 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3257 |  | 
|  | 3258 | fi | 
|  | 3259 | fi | 
|  | 3260 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | 
|  | 3261 | if test -n "$ac_ct_CC"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | 
|  | 3263 | $as_echo "$ac_ct_CC" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3264 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 3266 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3267 | fi | 
|  | 3268 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3269 | if test "x$ac_ct_CC" = x; then | 
|  | 3270 | CC="" | 
|  | 3271 | else | 
|  | 3272 | case $cross_compiling:$ac_tool_warned in | 
|  | 3273 | yes:) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3274 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
|  | 3275 | $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] | 3276 | ac_tool_warned=yes ;; | 
|  | 3277 | esac | 
|  | 3278 | CC=$ac_ct_CC | 
|  | 3279 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3280 | else | 
|  | 3281 | CC="$ac_cv_prog_CC" | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3282 | fi | 
|  | 3283 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3284 | if test -z "$CC"; then | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3285 | if test -n "$ac_tool_prefix"; then | 
|  | 3286 | # 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] | 3287 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3288 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 3289 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 3290 | if test "${ac_cv_prog_CC+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3291 | $as_echo_n "(cached) " >&6 | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3292 | else | 
|  | 3293 | if test -n "$CC"; then | 
|  | 3294 | ac_cv_prog_CC="$CC" # Let the user override the test. | 
|  | 3295 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3296 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 3297 | for as_dir in $PATH | 
|  | 3298 | do | 
|  | 3299 | IFS=$as_save_IFS | 
|  | 3300 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3301 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3302 | 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] | 3303 | ac_cv_prog_CC="${ac_tool_prefix}cc" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3304 | $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] | 3305 | break 2 | 
|  | 3306 | fi | 
|  | 3307 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3308 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3309 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3310 |  | 
|  | 3311 | fi | 
|  | 3312 | fi | 
|  | 3313 | CC=$ac_cv_prog_CC | 
|  | 3314 | if test -n "$CC"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
|  | 3316 | $as_echo "$CC" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3317 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 3319 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3320 | fi | 
|  | 3321 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3322 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3323 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3324 | fi | 
|  | 3325 | if test -z "$CC"; then | 
|  | 3326 | # Extract the first word of "cc", so it can be a program name with args. | 
|  | 3327 | set dummy cc; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3328 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 3329 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 3330 | if test "${ac_cv_prog_CC+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3331 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3332 | else | 
|  | 3333 | if test -n "$CC"; then | 
|  | 3334 | ac_cv_prog_CC="$CC" # Let the user override the test. | 
|  | 3335 | else | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3336 | ac_prog_rejected=no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3337 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 3338 | for as_dir in $PATH | 
|  | 3339 | do | 
|  | 3340 | IFS=$as_save_IFS | 
|  | 3341 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3342 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3343 | 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] | 3344 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | 
|  | 3345 | ac_prog_rejected=yes | 
|  | 3346 | continue | 
|  | 3347 | fi | 
|  | 3348 | ac_cv_prog_CC="cc" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3349 | $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] | 3350 | break 2 | 
|  | 3351 | fi | 
|  | 3352 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3353 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3354 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3355 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3356 | if test $ac_prog_rejected = yes; then | 
|  | 3357 | # We found a bogon in the path, so make sure we never use it. | 
|  | 3358 | set dummy $ac_cv_prog_CC | 
|  | 3359 | shift | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3360 | if test $# != 0; then | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3361 | # We chose a different compiler from the bogus one. | 
|  | 3362 | # However, it has the same basename, so the bogon will be chosen | 
|  | 3363 | # first if we set CC to just the basename; use the full file name. | 
|  | 3364 | shift | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3365 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3366 | fi | 
|  | 3367 | fi | 
|  | 3368 | fi | 
|  | 3369 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3370 | CC=$ac_cv_prog_CC | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3371 | if test -n "$CC"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
|  | 3373 | $as_echo "$CC" >&6; } | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3374 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 3376 | $as_echo "no" >&6; } | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3377 | fi | 
|  | 3378 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3379 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3380 | fi | 
|  | 3381 | if test -z "$CC"; then | 
|  | 3382 | if test -n "$ac_tool_prefix"; then | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3383 | for ac_prog in cl.exe | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3384 | do | 
|  | 3385 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
|  | 3386 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3387 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 3388 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 3389 | if test "${ac_cv_prog_CC+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3390 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3391 | else | 
|  | 3392 | if test -n "$CC"; then | 
|  | 3393 | ac_cv_prog_CC="$CC" # Let the user override the test. | 
|  | 3394 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3395 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 3396 | for as_dir in $PATH | 
|  | 3397 | do | 
|  | 3398 | IFS=$as_save_IFS | 
|  | 3399 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3400 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3401 | 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] | 3402 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3403 | $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] | 3404 | break 2 | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3405 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3406 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3407 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3408 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3409 |  | 
|  | 3410 | fi | 
|  | 3411 | fi | 
|  | 3412 | CC=$ac_cv_prog_CC | 
|  | 3413 | if test -n "$CC"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
|  | 3415 | $as_echo "$CC" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3416 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 3418 | $as_echo "no" >&6; } | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3419 | fi | 
|  | 3420 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3421 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3422 | test -n "$CC" && break | 
|  | 3423 | done | 
|  | 3424 | fi | 
|  | 3425 | if test -z "$CC"; then | 
|  | 3426 | ac_ct_CC=$CC | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3427 | for ac_prog in cl.exe | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3428 | do | 
|  | 3429 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 3430 | set dummy $ac_prog; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3431 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 3432 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 3433 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3434 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3435 | else | 
|  | 3436 | if test -n "$ac_ct_CC"; then | 
|  | 3437 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | 
|  | 3438 | else | 
|  | 3439 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 3440 | for as_dir in $PATH | 
|  | 3441 | do | 
|  | 3442 | IFS=$as_save_IFS | 
|  | 3443 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3444 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3445 | 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] | 3446 | ac_cv_prog_ac_ct_CC="$ac_prog" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3447 | $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] | 3448 | break 2 | 
|  | 3449 | fi | 
|  | 3450 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3451 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3452 | IFS=$as_save_IFS | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3453 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3454 | fi | 
|  | 3455 | fi | 
|  | 3456 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | 
|  | 3457 | if test -n "$ac_ct_CC"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | 
|  | 3459 | $as_echo "$ac_ct_CC" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3460 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3461 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 3462 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3463 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3464 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3465 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3466 | test -n "$ac_ct_CC" && break | 
|  | 3467 | done | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3468 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3469 | if test "x$ac_ct_CC" = x; then | 
|  | 3470 | CC="" | 
|  | 3471 | else | 
|  | 3472 | case $cross_compiling:$ac_tool_warned in | 
|  | 3473 | yes:) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3474 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
|  | 3475 | $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] | 3476 | ac_tool_warned=yes ;; | 
|  | 3477 | esac | 
|  | 3478 | CC=$ac_ct_CC | 
|  | 3479 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3480 | fi | 
|  | 3481 |  | 
|  | 3482 | fi | 
|  | 3483 |  | 
|  | 3484 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3485 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 3486 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 3487 | as_fn_error $? "no acceptable C compiler found in \$PATH | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 3488 | See \`config.log' for more details" "$LINENO" 5 ; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3489 |  | 
|  | 3490 | # Provide some information about the compiler. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3491 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | 
|  | 3492 | set X $ac_compile | 
|  | 3493 | ac_compiler=$2 | 
|  | 3494 | for ac_option in --version -v -V -qversion; do | 
|  | 3495 | { { ac_try="$ac_compiler $ac_option >&5" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3496 | case "(($ac_try" in | 
|  | 3497 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 3498 | *) ac_try_echo=$ac_try;; | 
|  | 3499 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3500 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 3501 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 3502 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3503 | ac_status=$? | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3504 | if test -s conftest.err; then | 
|  | 3505 | sed '10a\ | 
|  | 3506 | ... rest of stderr output deleted ... | 
|  | 3507 | 10q' conftest.err >conftest.er1 | 
|  | 3508 | cat conftest.er1 >&5 | 
|  | 3509 | fi | 
|  | 3510 | rm -f conftest.er1 conftest.err | 
|  | 3511 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 3512 | test $ac_status = 0; } | 
|  | 3513 | done | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3514 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3515 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3516 | /* end confdefs.h.  */ | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3517 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3518 | int | 
|  | 3519 | main () | 
|  | 3520 | { | 
|  | 3521 |  | 
|  | 3522 | ; | 
|  | 3523 | return 0; | 
|  | 3524 | } | 
|  | 3525 | _ACEOF | 
|  | 3526 | ac_clean_files_save=$ac_clean_files | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3527 | 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] | 3528 | # Try to create an executable without -o first, disregard a.out. | 
|  | 3529 | # It will help us diagnose broken compilers, and finding out an intuition | 
|  | 3530 | # of exeext. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3531 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | 
|  | 3532 | $as_echo_n "checking whether the C compiler works... " >&6; } | 
|  | 3533 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | 
|  | 3534 |  | 
|  | 3535 | # The possible output files: | 
|  | 3536 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | 
|  | 3537 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3538 | ac_rmfiles= | 
|  | 3539 | for ac_file in $ac_files | 
|  | 3540 | do | 
|  | 3541 | case $ac_file in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3542 | *.$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] | 3543 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | 
|  | 3544 | esac | 
|  | 3545 | done | 
|  | 3546 | rm -f $ac_rmfiles | 
|  | 3547 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3548 | if { { ac_try="$ac_link_default" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3549 | case "(($ac_try" in | 
|  | 3550 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 3551 | *) ac_try_echo=$ac_try;; | 
|  | 3552 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3553 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 3554 | $as_echo "$ac_try_echo"; } >&5 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3555 | (eval "$ac_link_default") 2>&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3556 | ac_status=$? | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3557 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 3558 | test $ac_status = 0; }; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3559 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | 
|  | 3560 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | 
|  | 3561 | # in a Makefile.  We should not override ac_cv_exeext if it was cached, | 
|  | 3562 | # so that the user can short-circuit this test for compilers unknown to | 
|  | 3563 | # Autoconf. | 
|  | 3564 | for ac_file in $ac_files '' | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3565 | do | 
|  | 3566 | test -f "$ac_file" || continue | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3567 | case $ac_file in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3568 | *.$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] | 3569 | ;; | 
|  | 3570 | [ab].out ) | 
|  | 3571 | # We found the default executable, but exeext='' is most | 
|  | 3572 | # certainly right. | 
|  | 3573 | break;; | 
|  | 3574 | *.* ) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3575 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3576 | then :; else | 
|  | 3577 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | 
|  | 3578 | fi | 
|  | 3579 | # We set ac_cv_exeext here because the later test for it is not | 
|  | 3580 | # safe: cross compilers may not add the suffix if given an `-o' | 
|  | 3581 | # argument, so we may need to know it at that point already. | 
|  | 3582 | # Even if this section looks crufty: it has the advantage of | 
|  | 3583 | # actually working. | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 3584 | break;; | 
|  | 3585 | * ) | 
|  | 3586 | break;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3587 | esac | 
|  | 3588 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3589 | test "$ac_cv_exeext" = no && ac_cv_exeext= | 
|  | 3590 |  | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3591 | else | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3592 | ac_file='' | 
|  | 3593 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3594 | if test -z "$ac_file"; then : | 
|  | 3595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 3596 | $as_echo "no" >&6; } | 
|  | 3597 | $as_echo "$as_me: failed program was:" >&5 | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3598 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 3599 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3600 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 3601 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 3602 | as_fn_error 77 "C compiler cannot create executables | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 3603 | See \`config.log' for more details" "$LINENO" 5 ; } | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3604 | else | 
|  | 3605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 3606 | $as_echo "yes" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3607 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3608 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | 
|  | 3609 | $as_echo_n "checking for C compiler default output file name... " >&6; } | 
|  | 3610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | 
|  | 3611 | $as_echo "$ac_file" >&6; } | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 3612 | ac_exeext=$ac_cv_exeext | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 3613 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3614 | 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] | 3615 | ac_clean_files=$ac_clean_files_save | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3616 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | 
|  | 3617 | $as_echo_n "checking for suffix of executables... " >&6; } | 
|  | 3618 | if { { ac_try="$ac_link" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3619 | case "(($ac_try" in | 
|  | 3620 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 3621 | *) ac_try_echo=$ac_try;; | 
|  | 3622 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3623 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 3624 | $as_echo "$ac_try_echo"; } >&5 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3625 | (eval "$ac_link") 2>&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3626 | ac_status=$? | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3627 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 3628 | test $ac_status = 0; }; then : | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 3629 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | 
|  | 3630 | # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will | 
|  | 3631 | # work properly (i.e., refer to `conftest.exe'), while it won't with | 
|  | 3632 | # `rm'. | 
|  | 3633 | for ac_file in conftest.exe conftest conftest.*; do | 
|  | 3634 | test -f "$ac_file" || continue | 
|  | 3635 | case $ac_file in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3636 | *.$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] | 3637 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | 
|  | 3638 | break;; | 
|  | 3639 | * ) break;; | 
|  | 3640 | esac | 
|  | 3641 | done | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3642 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3643 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 3644 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 3645 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 3646 | See \`config.log' for more details" "$LINENO" 5 ; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3647 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3648 | rm -f conftest conftest$ac_cv_exeext | 
|  | 3649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | 
|  | 3650 | $as_echo "$ac_cv_exeext" >&6; } | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 3651 |  | 
|  | 3652 | rm -f conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3653 | EXEEXT=$ac_cv_exeext | 
|  | 3654 | ac_exeext=$EXEEXT | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3655 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 3656 | /* end confdefs.h.  */ | 
|  | 3657 | #include <stdio.h> | 
|  | 3658 | int | 
|  | 3659 | main () | 
|  | 3660 | { | 
|  | 3661 | FILE *f = fopen ("conftest.out", "w"); | 
|  | 3662 | return ferror (f) || fclose (f) != 0; | 
|  | 3663 |  | 
|  | 3664 | ; | 
|  | 3665 | return 0; | 
|  | 3666 | } | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 3667 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3668 | ac_clean_files="$ac_clean_files conftest.out" | 
|  | 3669 | # Check that the compiler produces executables we can run.  If not, either | 
|  | 3670 | # the compiler is broken, or we cross compile. | 
|  | 3671 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | 
|  | 3672 | $as_echo_n "checking whether we are cross compiling... " >&6; } | 
|  | 3673 | if test "$cross_compiling" != yes; then | 
|  | 3674 | { { ac_try="$ac_link" | 
|  | 3675 | case "(($ac_try" in | 
|  | 3676 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 3677 | *) ac_try_echo=$ac_try;; | 
|  | 3678 | esac | 
|  | 3679 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 3680 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 3681 | (eval "$ac_link") 2>&5 | 
|  | 3682 | ac_status=$? | 
|  | 3683 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 3684 | test $ac_status = 0; } | 
|  | 3685 | if { ac_try='./conftest$ac_cv_exeext' | 
|  | 3686 | { { case "(($ac_try" in | 
|  | 3687 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 3688 | *) ac_try_echo=$ac_try;; | 
|  | 3689 | esac | 
|  | 3690 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 3691 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 3692 | (eval "$ac_try") 2>&5 | 
|  | 3693 | ac_status=$? | 
|  | 3694 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 3695 | test $ac_status = 0; }; }; then | 
|  | 3696 | cross_compiling=no | 
|  | 3697 | else | 
|  | 3698 | if test "$cross_compiling" = maybe; then | 
|  | 3699 | cross_compiling=yes | 
|  | 3700 | else | 
|  | 3701 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 3702 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 3703 | as_fn_error $? "cannot run C compiled programs. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3704 | If you meant to cross compile, use \`--host'. | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 3705 | See \`config.log' for more details" "$LINENO" 5 ; } | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3706 | fi | 
|  | 3707 | fi | 
|  | 3708 | fi | 
|  | 3709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | 
|  | 3710 | $as_echo "$cross_compiling" >&6; } | 
|  | 3711 |  | 
|  | 3712 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | 
|  | 3713 | ac_clean_files=$ac_clean_files_save | 
|  | 3714 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | 
|  | 3715 | $as_echo_n "checking for suffix of object files... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 3716 | if test "${ac_cv_objext+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3717 | $as_echo_n "(cached) " >&6 | 
|  | 3718 | else | 
|  | 3719 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 3720 | /* end confdefs.h.  */ | 
|  | 3721 |  | 
|  | 3722 | int | 
|  | 3723 | main () | 
|  | 3724 | { | 
|  | 3725 |  | 
|  | 3726 | ; | 
|  | 3727 | return 0; | 
|  | 3728 | } | 
|  | 3729 | _ACEOF | 
|  | 3730 | rm -f conftest.o conftest.obj | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3731 | if { { ac_try="$ac_compile" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3732 | case "(($ac_try" in | 
|  | 3733 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 3734 | *) ac_try_echo=$ac_try;; | 
|  | 3735 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3736 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 3737 | $as_echo "$ac_try_echo"; } >&5 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3738 | (eval "$ac_compile") 2>&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3739 | ac_status=$? | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3740 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 3741 | test $ac_status = 0; }; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3742 | for ac_file in conftest.o conftest.obj conftest.*; do | 
|  | 3743 | test -f "$ac_file" || continue; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3744 | case $ac_file in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3745 | *.$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] | 3746 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | 
|  | 3747 | break;; | 
|  | 3748 | esac | 
|  | 3749 | done | 
|  | 3750 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3751 | $as_echo "$as_me: failed program was:" >&5 | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3752 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 3753 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3754 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 3755 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 3756 | as_fn_error $? "cannot compute suffix of object files: cannot compile | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 3757 | See \`config.log' for more details" "$LINENO" 5 ; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3758 | fi | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 3759 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3760 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | 
|  | 3762 | $as_echo "$ac_cv_objext" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3763 | OBJEXT=$ac_cv_objext | 
|  | 3764 | ac_objext=$OBJEXT | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3765 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | 
|  | 3766 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 3767 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3768 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3769 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3770 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3771 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3772 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3773 | int | 
|  | 3774 | main () | 
|  | 3775 | { | 
|  | 3776 | #ifndef __GNUC__ | 
|  | 3777 | choke me | 
|  | 3778 | #endif | 
|  | 3779 |  | 
|  | 3780 | ; | 
|  | 3781 | return 0; | 
|  | 3782 | } | 
|  | 3783 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3784 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3785 | ac_compiler_gnu=yes | 
|  | 3786 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3787 | ac_compiler_gnu=no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3788 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3789 | 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] | 3790 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | 
|  | 3791 |  | 
|  | 3792 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | 
|  | 3794 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | 
|  | 3795 | if test $ac_compiler_gnu = yes; then | 
|  | 3796 | GCC=yes | 
|  | 3797 | else | 
|  | 3798 | GCC= | 
|  | 3799 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3800 | ac_test_CFLAGS=${CFLAGS+set} | 
|  | 3801 | ac_save_CFLAGS=$CFLAGS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3802 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | 
|  | 3803 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 3804 | if test "${ac_cv_prog_cc_g+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3805 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3806 | else | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3807 | ac_save_c_werror_flag=$ac_c_werror_flag | 
|  | 3808 | ac_c_werror_flag=yes | 
|  | 3809 | ac_cv_prog_cc_g=no | 
|  | 3810 | CFLAGS="-g" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3811 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3812 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3813 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3814 | int | 
|  | 3815 | main () | 
|  | 3816 | { | 
|  | 3817 |  | 
|  | 3818 | ; | 
|  | 3819 | return 0; | 
|  | 3820 | } | 
|  | 3821 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3822 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3823 | ac_cv_prog_cc_g=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3824 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3825 | CFLAGS="" | 
|  | 3826 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3827 | /* end confdefs.h.  */ | 
|  | 3828 |  | 
|  | 3829 | int | 
|  | 3830 | main () | 
|  | 3831 | { | 
|  | 3832 |  | 
|  | 3833 | ; | 
|  | 3834 | return 0; | 
|  | 3835 | } | 
|  | 3836 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3837 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3838 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3839 | else | 
|  | 3840 | ac_c_werror_flag=$ac_save_c_werror_flag | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3841 | CFLAGS="-g" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3842 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3843 | /* end confdefs.h.  */ | 
|  | 3844 |  | 
|  | 3845 | int | 
|  | 3846 | main () | 
|  | 3847 | { | 
|  | 3848 |  | 
|  | 3849 | ; | 
|  | 3850 | return 0; | 
|  | 3851 | } | 
|  | 3852 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3853 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3854 | ac_cv_prog_cc_g=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3855 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3856 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3857 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3858 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 3859 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3860 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 3861 | ac_c_werror_flag=$ac_save_c_werror_flag | 
|  | 3862 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | 
|  | 3864 | $as_echo "$ac_cv_prog_cc_g" >&6; } | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3865 | if test "$ac_test_CFLAGS" = set; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3866 | CFLAGS=$ac_save_CFLAGS | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3867 | elif test $ac_cv_prog_cc_g = yes; then | 
|  | 3868 | if test "$GCC" = yes; then | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3869 | CFLAGS="-g -O2" | 
|  | 3870 | else | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3871 | CFLAGS="-g" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3872 | fi | 
|  | 3873 | else | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3874 | if test "$GCC" = yes; then | 
|  | 3875 | CFLAGS="-O2" | 
|  | 3876 | else | 
|  | 3877 | CFLAGS= | 
|  | 3878 | fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3879 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3880 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | 
|  | 3881 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 3882 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3883 | $as_echo_n "(cached) " >&6 | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3884 | else | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3885 | ac_cv_prog_cc_c89=no | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3886 | ac_save_CC=$CC | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3887 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3888 | /* end confdefs.h.  */ | 
|  | 3889 | #include <stdarg.h> | 
|  | 3890 | #include <stdio.h> | 
|  | 3891 | #include <sys/types.h> | 
|  | 3892 | #include <sys/stat.h> | 
|  | 3893 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */ | 
|  | 3894 | struct buf { int x; }; | 
|  | 3895 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | 
|  | 3896 | static char *e (p, i) | 
|  | 3897 | char **p; | 
|  | 3898 | int i; | 
|  | 3899 | { | 
|  | 3900 | return p[i]; | 
|  | 3901 | } | 
|  | 3902 | static char *f (char * (*g) (char **, int), char **p, ...) | 
|  | 3903 | { | 
|  | 3904 | char *s; | 
|  | 3905 | va_list v; | 
|  | 3906 | va_start (v,p); | 
|  | 3907 | s = g (p, va_arg (v,int)); | 
|  | 3908 | va_end (v); | 
|  | 3909 | return s; | 
|  | 3910 | } | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3911 |  | 
|  | 3912 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has | 
|  | 3913 | function prototypes and stuff, but not '\xHH' hex character constants. | 
|  | 3914 | These don't provoke an error unfortunately, instead are silently treated | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3915 | 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] | 3916 | proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an | 
|  | 3917 | 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] | 3918 | that's true only with -std.  */ | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3919 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | 
|  | 3920 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3921 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | 
|  | 3922 | inside strings and character constants.  */ | 
|  | 3923 | #define FOO(x) 'x' | 
|  | 3924 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | 
|  | 3925 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3926 | int test (int i, double x); | 
|  | 3927 | struct s1 {int (*f) (int a);}; | 
|  | 3928 | struct s2 {int (*f) (double a);}; | 
|  | 3929 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | 
|  | 3930 | int argc; | 
|  | 3931 | char **argv; | 
|  | 3932 | int | 
|  | 3933 | main () | 
|  | 3934 | { | 
|  | 3935 | return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1]; | 
|  | 3936 | ; | 
|  | 3937 | return 0; | 
|  | 3938 | } | 
|  | 3939 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3940 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | 
|  | 3941 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3942 | do | 
|  | 3943 | CC="$ac_save_CC $ac_arg" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3944 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3945 | ac_cv_prog_cc_c89=$ac_arg | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3946 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3947 | rm -f core conftest.err conftest.$ac_objext | 
|  | 3948 | test "x$ac_cv_prog_cc_c89" != "xno" && break | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3949 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3950 | rm -f conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3951 | CC=$ac_save_CC | 
|  | 3952 |  | 
|  | 3953 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3954 | # AC_CACHE_VAL | 
|  | 3955 | case "x$ac_cv_prog_cc_c89" in | 
|  | 3956 | x) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | 
|  | 3958 | $as_echo "none needed" >&6; } ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3959 | xno) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | 
|  | 3961 | $as_echo "unsupported" >&6; } ;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3962 | *) | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3963 | CC="$CC $ac_cv_prog_cc_c89" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | 
|  | 3965 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3966 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3967 | if test "x$ac_cv_prog_cc_c89" != xno; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3968 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3969 | fi | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3970 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3971 | ac_ext=c | 
|  | 3972 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 3973 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 3974 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 3975 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3976 |  | 
| Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3977 |  | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3978 |  | 
|  | 3979 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3980 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-cxx-main=<compiler>" >&5 | 
|  | 3981 | $as_echo_n "checking for --with-cxx-main=<compiler>... " >&6; } | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3982 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3983 | # Check whether --with-cxx_main was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3984 | if test "${with_cxx_main+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3985 | withval=$with_cxx_main; | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3986 |  | 
|  | 3987 | case $withval in | 
|  | 3988 | no)	with_cxx_main=no | 
|  | 3989 | MAINCC='$(CC)';; | 
|  | 3990 | yes)	with_cxx_main=yes | 
|  | 3991 | MAINCC='$(CXX)';; | 
|  | 3992 | *)	with_cxx_main=yes | 
|  | 3993 | MAINCC=$withval | 
|  | 3994 | if test -z "$CXX" | 
|  | 3995 | then | 
|  | 3996 | CXX=$withval | 
|  | 3997 | fi;; | 
|  | 3998 | esac | 
|  | 3999 | else | 
|  | 4000 |  | 
|  | 4001 | with_cxx_main=no | 
|  | 4002 | MAINCC='$(CC)' | 
|  | 4003 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4004 | fi | 
|  | 4005 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_cxx_main" >&5 | 
|  | 4007 | $as_echo "$with_cxx_main" >&6; } | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4008 |  | 
|  | 4009 | preset_cxx="$CXX" | 
|  | 4010 | if test -z "$CXX" | 
|  | 4011 | then | 
|  | 4012 | case "$CC" in | 
|  | 4013 | gcc)    # Extract the first word of "g++", so it can be a program name with args. | 
|  | 4014 | set dummy g++; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4015 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 4016 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 4017 | if test "${ac_cv_path_CXX+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4018 | $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4019 | else | 
|  | 4020 | case $CXX in | 
|  | 4021 | [\\/]* | ?:[\\/]*) | 
|  | 4022 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. | 
|  | 4023 | ;; | 
|  | 4024 | *) | 
|  | 4025 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4026 | for as_dir in notfound | 
|  | 4027 | do | 
|  | 4028 | IFS=$as_save_IFS | 
|  | 4029 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4030 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4031 | 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] | 4032 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4033 | $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] | 4034 | break 2 | 
|  | 4035 | fi | 
|  | 4036 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4037 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4038 | IFS=$as_save_IFS | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4039 |  | 
|  | 4040 | test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="g++" | 
|  | 4041 | ;; | 
|  | 4042 | esac | 
|  | 4043 | fi | 
|  | 4044 | CXX=$ac_cv_path_CXX | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4045 | if test -n "$CXX"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4046 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | 
|  | 4047 | $as_echo "$CXX" >&6; } | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4048 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4049 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 4050 | $as_echo "no" >&6; } | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4051 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4052 |  | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4053 | ;; | 
|  | 4054 | cc)     # Extract the first word of "c++", so it can be a program name with args. | 
|  | 4055 | set dummy c++; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4056 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 4057 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 4058 | if test "${ac_cv_path_CXX+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4059 | $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4060 | else | 
|  | 4061 | case $CXX in | 
|  | 4062 | [\\/]* | ?:[\\/]*) | 
|  | 4063 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. | 
|  | 4064 | ;; | 
|  | 4065 | *) | 
|  | 4066 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4067 | for as_dir in notfound | 
|  | 4068 | do | 
|  | 4069 | IFS=$as_save_IFS | 
|  | 4070 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4071 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4072 | 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] | 4073 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4074 | $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] | 4075 | break 2 | 
|  | 4076 | fi | 
|  | 4077 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4078 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4079 | IFS=$as_save_IFS | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4080 |  | 
|  | 4081 | test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="c++" | 
|  | 4082 | ;; | 
|  | 4083 | esac | 
|  | 4084 | fi | 
|  | 4085 | CXX=$ac_cv_path_CXX | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4086 | if test -n "$CXX"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | 
|  | 4088 | $as_echo "$CXX" >&6; } | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4089 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 4091 | $as_echo "no" >&6; } | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4092 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4093 |  | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4094 | ;; | 
|  | 4095 | esac | 
|  | 4096 | if test "$CXX" = "notfound" | 
|  | 4097 | then | 
|  | 4098 | CXX="" | 
|  | 4099 | fi | 
|  | 4100 | fi | 
|  | 4101 | if test -z "$CXX" | 
|  | 4102 | then | 
|  | 4103 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl | 
|  | 4104 | do | 
|  | 4105 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 4106 | set dummy $ac_prog; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4107 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 4108 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 4109 | if test "${ac_cv_prog_CXX+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4110 | $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4111 | else | 
|  | 4112 | if test -n "$CXX"; then | 
|  | 4113 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | 
|  | 4114 | else | 
|  | 4115 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4116 | for as_dir in $PATH | 
|  | 4117 | do | 
|  | 4118 | IFS=$as_save_IFS | 
|  | 4119 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4120 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4121 | 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] | 4122 | ac_cv_prog_CXX="$ac_prog" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4123 | $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] | 4124 | break 2 | 
|  | 4125 | fi | 
|  | 4126 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4127 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4128 | IFS=$as_save_IFS | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4129 |  | 
|  | 4130 | fi | 
|  | 4131 | fi | 
|  | 4132 | CXX=$ac_cv_prog_CXX | 
|  | 4133 | if test -n "$CXX"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | 
|  | 4135 | $as_echo "$CXX" >&6; } | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4136 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4137 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 4138 | $as_echo "no" >&6; } | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4139 | fi | 
|  | 4140 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4141 |  | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4142 | test -n "$CXX" && break | 
|  | 4143 | done | 
|  | 4144 | test -n "$CXX" || CXX="notfound" | 
|  | 4145 |  | 
|  | 4146 | if test "$CXX" = "notfound" | 
|  | 4147 | then | 
|  | 4148 | CXX="" | 
|  | 4149 | fi | 
|  | 4150 | fi | 
|  | 4151 | if test "$preset_cxx" != "$CXX" | 
|  | 4152 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4153 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4154 |  | 
|  | 4155 | By default, distutils will build C++ extension modules with \"$CXX\". | 
|  | 4156 | If this is not intended, then set CXX on the configure command line. | 
|  | 4157 | " >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4158 | $as_echo "$as_me: WARNING: | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4159 |  | 
|  | 4160 | By default, distutils will build C++ extension modules with \"$CXX\". | 
|  | 4161 | If this is not intended, then set CXX on the configure command line. | 
|  | 4162 | " >&2;} | 
|  | 4163 | fi | 
|  | 4164 |  | 
|  | 4165 |  | 
| Martin v. Löwis | 48e14d3 | 2011-05-09 07:37:45 +0200 | [diff] [blame] | 4166 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wl,--no-as-needed" >&5 | 
|  | 4167 | $as_echo_n "checking for -Wl,--no-as-needed... " >&6; } | 
|  | 4168 | save_LDFLAGS="$LDFLAGS" | 
|  | 4169 | LDFLAGS="$LDFLAGS -Wl,--no-as-needed" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4170 |  | 
| Martin v. Löwis | 48e14d3 | 2011-05-09 07:37:45 +0200 | [diff] [blame] | 4171 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 4172 | /* end confdefs.h.  */ | 
|  | 4173 |  | 
|  | 4174 | int | 
|  | 4175 | main () | 
|  | 4176 | { | 
|  | 4177 |  | 
|  | 4178 | ; | 
|  | 4179 | return 0; | 
|  | 4180 | } | 
|  | 4181 | _ACEOF | 
|  | 4182 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 4183 | NO_AS_NEEDED="-Wl,--no-as-needed" | 
|  | 4184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 4185 | $as_echo "yes" >&6; } | 
|  | 4186 | else | 
|  | 4187 | NO_AS_NEEDED="" | 
|  | 4188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 4189 | $as_echo "no" >&6; } | 
|  | 4190 | fi | 
|  | 4191 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 4192 | conftest$ac_exeext conftest.$ac_ext | 
|  | 4193 | LDFLAGS="$save_LDFLAGS" | 
|  | 4194 |  | 
|  | 4195 |  | 
|  | 4196 |  | 
|  | 4197 | # checks for UNIX variants that set C preprocessor variables | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4198 | ac_ext=c | 
|  | 4199 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 4200 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 4201 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 4202 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4203 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | 
|  | 4204 | $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] | 4205 | # On Suns, sometimes $CPP names a directory. | 
|  | 4206 | if test -n "$CPP" && test -d "$CPP"; then | 
|  | 4207 | CPP= | 
|  | 4208 | fi | 
|  | 4209 | if test -z "$CPP"; then | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 4210 | if test "${ac_cv_prog_CPP+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4211 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 4212 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4213 | # Double quotes because CPP needs to be expanded | 
|  | 4214 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | 
|  | 4215 | do | 
|  | 4216 | ac_preproc_ok=false | 
|  | 4217 | for ac_c_preproc_warn_flag in '' yes | 
|  | 4218 | do | 
|  | 4219 | # Use a header file that comes with gcc, so configuring glibc | 
|  | 4220 | # with a fresh cross-compiler works. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4221 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 4222 | # <limits.h> exists even on freestanding compilers. | 
| Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 4223 | # 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] | 4224 | # not just through cpp. "Syntax error" is here to catch this case. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4225 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4226 | /* end confdefs.h.  */ | 
|  | 4227 | #ifdef __STDC__ | 
|  | 4228 | # include <limits.h> | 
|  | 4229 | #else | 
|  | 4230 | # include <assert.h> | 
|  | 4231 | #endif | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4232 | Syntax error | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4233 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4234 | if ac_fn_c_try_cpp "$LINENO"; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4235 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4236 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4237 | # Broken: fails on valid input. | 
|  | 4238 | continue | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 4239 | fi | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 4240 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 4241 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4242 | # OK, works on sane cases.  Now check whether nonexistent headers | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4243 | # can be detected and how. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4244 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4245 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4246 | #include <ac_nonexistent.h> | 
|  | 4247 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4248 | if ac_fn_c_try_cpp "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4249 | # Broken: success on invalid input. | 
|  | 4250 | continue | 
|  | 4251 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4252 | # Passes both tests. | 
|  | 4253 | ac_preproc_ok=: | 
|  | 4254 | break | 
|  | 4255 | fi | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 4256 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4257 |  | 
|  | 4258 | done | 
|  | 4259 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 4260 | rm -f conftest.i conftest.err conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4261 | if $ac_preproc_ok; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4262 | break | 
|  | 4263 | fi | 
|  | 4264 |  | 
|  | 4265 | done | 
|  | 4266 | ac_cv_prog_CPP=$CPP | 
|  | 4267 |  | 
|  | 4268 | fi | 
|  | 4269 | CPP=$ac_cv_prog_CPP | 
|  | 4270 | else | 
|  | 4271 | ac_cv_prog_CPP=$CPP | 
|  | 4272 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | 
|  | 4274 | $as_echo "$CPP" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4275 | ac_preproc_ok=false | 
|  | 4276 | for ac_c_preproc_warn_flag in '' yes | 
|  | 4277 | do | 
|  | 4278 | # Use a header file that comes with gcc, so configuring glibc | 
|  | 4279 | # with a fresh cross-compiler works. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4280 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 4281 | # <limits.h> exists even on freestanding compilers. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4282 | # On the NeXT, cc -E runs the code through the compiler's parser, | 
|  | 4283 | # not just through cpp. "Syntax error" is here to catch this case. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4284 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4285 | /* end confdefs.h.  */ | 
|  | 4286 | #ifdef __STDC__ | 
|  | 4287 | # include <limits.h> | 
|  | 4288 | #else | 
|  | 4289 | # include <assert.h> | 
|  | 4290 | #endif | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4291 | Syntax error | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4292 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4293 | if ac_fn_c_try_cpp "$LINENO"; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4294 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4295 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4296 | # Broken: fails on valid input. | 
|  | 4297 | continue | 
|  | 4298 | fi | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 4299 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4300 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4301 | # OK, works on sane cases.  Now check whether nonexistent headers | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4302 | # can be detected and how. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4303 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4304 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4305 | #include <ac_nonexistent.h> | 
|  | 4306 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4307 | if ac_fn_c_try_cpp "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4308 | # Broken: success on invalid input. | 
|  | 4309 | continue | 
|  | 4310 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4311 | # Passes both tests. | 
|  | 4312 | ac_preproc_ok=: | 
|  | 4313 | break | 
|  | 4314 | fi | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 4315 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4316 |  | 
|  | 4317 | done | 
|  | 4318 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 4319 | rm -f conftest.i conftest.err conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4320 | if $ac_preproc_ok; then : | 
|  | 4321 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4322 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4323 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 4324 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 4325 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 4326 | See \`config.log' for more details" "$LINENO" 5 ; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4327 | fi | 
|  | 4328 |  | 
|  | 4329 | ac_ext=c | 
|  | 4330 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 4331 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 4332 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 4333 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 4334 |  | 
|  | 4335 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4336 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | 
|  | 4337 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 4338 | if test "${ac_cv_path_GREP+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4339 | $as_echo_n "(cached) " >&6 | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4340 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4341 | if test -z "$GREP"; then | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4342 | ac_path_GREP_found=false | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +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=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4349 | for ac_prog in grep ggrep; do | 
|  | 4350 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 4351 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | 
|  | 4352 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | 
|  | 4353 | # 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] | 4354 | # Check for GNU $ac_path_GREP | 
|  | 4355 | case `"$ac_path_GREP" --version 2>&1` in | 
|  | 4356 | *GNU*) | 
|  | 4357 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | 
|  | 4358 | *) | 
|  | 4359 | ac_count=0 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +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" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4366 | $as_echo 'GREP' >> "conftest.nl" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4367 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | 
|  | 4368 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +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_GREP_max-0}; then | 
|  | 4371 | # Best one so far, save it but keep looking for a better one | 
|  | 4372 | ac_cv_path_GREP="$ac_path_GREP" | 
|  | 4373 | ac_path_GREP_max=$ac_count | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4374 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 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 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4381 | $ac_path_GREP_found && break 3 | 
|  | 4382 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4383 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4384 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4385 | IFS=$as_save_IFS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4386 | if test -z "$ac_cv_path_GREP"; then | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 4387 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4388 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4389 | else | 
|  | 4390 | ac_cv_path_GREP=$GREP | 
|  | 4391 | fi | 
|  | 4392 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4393 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | 
|  | 4395 | $as_echo "$ac_cv_path_GREP" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4396 | GREP="$ac_cv_path_GREP" | 
|  | 4397 |  | 
|  | 4398 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4399 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | 
|  | 4400 | $as_echo_n "checking for egrep... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 4401 | if test "${ac_cv_path_EGREP+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4402 | $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4403 | else | 
|  | 4404 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | 
|  | 4405 | then ac_cv_path_EGREP="$GREP -E" | 
|  | 4406 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4407 | if test -z "$EGREP"; then | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4408 | ac_path_EGREP_found=false | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4409 | # Loop through the user's path and test for each of PROGNAME-LIST | 
|  | 4410 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4411 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | 
|  | 4412 | do | 
|  | 4413 | IFS=$as_save_IFS | 
|  | 4414 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4415 | for ac_prog in egrep; do | 
|  | 4416 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 4417 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | 
|  | 4418 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | 
|  | 4419 | # 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] | 4420 | # Check for GNU $ac_path_EGREP | 
|  | 4421 | case `"$ac_path_EGREP" --version 2>&1` in | 
|  | 4422 | *GNU*) | 
|  | 4423 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | 
|  | 4424 | *) | 
|  | 4425 | ac_count=0 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4426 | $as_echo_n 0123456789 >"conftest.in" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4427 | while : | 
|  | 4428 | do | 
|  | 4429 | cat "conftest.in" "conftest.in" >"conftest.tmp" | 
|  | 4430 | mv "conftest.tmp" "conftest.in" | 
|  | 4431 | cp "conftest.in" "conftest.nl" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4432 | $as_echo 'EGREP' >> "conftest.nl" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4433 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | 
|  | 4434 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4435 | as_fn_arith $ac_count + 1 && ac_count=$as_val | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4436 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | 
|  | 4437 | # Best one so far, save it but keep looking for a better one | 
|  | 4438 | ac_cv_path_EGREP="$ac_path_EGREP" | 
|  | 4439 | ac_path_EGREP_max=$ac_count | 
|  | 4440 | fi | 
|  | 4441 | # 10*(2^10) chars as input seems more than enough | 
|  | 4442 | test $ac_count -gt 10 && break | 
|  | 4443 | done | 
|  | 4444 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | 
|  | 4445 | esac | 
|  | 4446 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4447 | $ac_path_EGREP_found && break 3 | 
|  | 4448 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4449 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4450 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4451 | IFS=$as_save_IFS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4452 | if test -z "$ac_cv_path_EGREP"; then | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 4453 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4454 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4455 | else | 
|  | 4456 | ac_cv_path_EGREP=$EGREP | 
|  | 4457 | fi | 
|  | 4458 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4459 | fi | 
|  | 4460 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4461 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | 
|  | 4462 | $as_echo "$ac_cv_path_EGREP" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4463 | EGREP="$ac_cv_path_EGREP" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4464 |  | 
|  | 4465 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4466 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | 
|  | 4467 | $as_echo_n "checking for ANSI C header files... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 4468 | if test "${ac_cv_header_stdc+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4469 | $as_echo_n "(cached) " >&6 | 
|  | 4470 | else | 
|  | 4471 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 4472 | /* end confdefs.h.  */ | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4473 | #include <stdlib.h> | 
|  | 4474 | #include <stdarg.h> | 
|  | 4475 | #include <string.h> | 
|  | 4476 | #include <float.h> | 
|  | 4477 |  | 
|  | 4478 | int | 
|  | 4479 | main () | 
|  | 4480 | { | 
|  | 4481 |  | 
|  | 4482 | ; | 
|  | 4483 | return 0; | 
|  | 4484 | } | 
|  | 4485 | _ACEOF | 
|  | 4486 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 4487 | ac_cv_header_stdc=yes | 
|  | 4488 | else | 
|  | 4489 | ac_cv_header_stdc=no | 
|  | 4490 | fi | 
|  | 4491 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 4492 |  | 
|  | 4493 | if test $ac_cv_header_stdc = yes; then | 
|  | 4494 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | 
|  | 4495 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 4496 | /* end confdefs.h.  */ | 
|  | 4497 | #include <string.h> | 
| Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 4498 |  | 
| Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 4499 | _ACEOF | 
| Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 4500 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4501 | $EGREP "memchr" >/dev/null 2>&1; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4502 |  | 
| Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 4503 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4504 | ac_cv_header_stdc=no | 
| Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 4505 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 4506 | rm -f conftest* | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4507 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4508 | fi | 
|  | 4509 |  | 
|  | 4510 | if test $ac_cv_header_stdc = yes; then | 
|  | 4511 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | 
|  | 4512 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 4513 | /* end confdefs.h.  */ | 
|  | 4514 | #include <stdlib.h> | 
|  | 4515 |  | 
|  | 4516 | _ACEOF | 
|  | 4517 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
|  | 4518 | $EGREP "free" >/dev/null 2>&1; then : | 
|  | 4519 |  | 
|  | 4520 | else | 
|  | 4521 | ac_cv_header_stdc=no | 
|  | 4522 | fi | 
|  | 4523 | rm -f conftest* | 
|  | 4524 |  | 
|  | 4525 | fi | 
|  | 4526 |  | 
|  | 4527 | if test $ac_cv_header_stdc = yes; then | 
|  | 4528 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | 
|  | 4529 | if test "$cross_compiling" = yes; then : | 
|  | 4530 | : | 
|  | 4531 | else | 
|  | 4532 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 4533 | /* end confdefs.h.  */ | 
|  | 4534 | #include <ctype.h> | 
|  | 4535 | #include <stdlib.h> | 
|  | 4536 | #if ((' ' & 0x0FF) == 0x020) | 
|  | 4537 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | 
|  | 4538 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | 
|  | 4539 | #else | 
|  | 4540 | # define ISLOWER(c) \ | 
|  | 4541 | (('a' <= (c) && (c) <= 'i') \ | 
|  | 4542 | || ('j' <= (c) && (c) <= 'r') \ | 
|  | 4543 | || ('s' <= (c) && (c) <= 'z')) | 
|  | 4544 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | 
|  | 4545 | #endif | 
|  | 4546 |  | 
|  | 4547 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | 
|  | 4548 | int | 
|  | 4549 | main () | 
|  | 4550 | { | 
|  | 4551 | int i; | 
|  | 4552 | for (i = 0; i < 256; i++) | 
|  | 4553 | if (XOR (islower (i), ISLOWER (i)) | 
|  | 4554 | || toupper (i) != TOUPPER (i)) | 
|  | 4555 | return 2; | 
|  | 4556 | return 0; | 
|  | 4557 | } | 
|  | 4558 | _ACEOF | 
|  | 4559 | if ac_fn_c_try_run "$LINENO"; then : | 
|  | 4560 |  | 
|  | 4561 | else | 
|  | 4562 | ac_cv_header_stdc=no | 
|  | 4563 | fi | 
|  | 4564 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 4565 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
|  | 4566 | fi | 
|  | 4567 |  | 
|  | 4568 | fi | 
|  | 4569 | fi | 
|  | 4570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | 
|  | 4571 | $as_echo "$ac_cv_header_stdc" >&6; } | 
|  | 4572 | if test $ac_cv_header_stdc = yes; then | 
|  | 4573 |  | 
|  | 4574 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | 
|  | 4575 |  | 
|  | 4576 | fi | 
|  | 4577 |  | 
|  | 4578 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | 
|  | 4579 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | 
|  | 4580 | inttypes.h stdint.h unistd.h | 
|  | 4581 | do : | 
|  | 4582 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 4583 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | 
|  | 4584 | " | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 4585 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4586 | cat >>confdefs.h <<_ACEOF | 
|  | 4587 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
|  | 4588 | _ACEOF | 
|  | 4589 |  | 
|  | 4590 | fi | 
|  | 4591 |  | 
|  | 4592 | done | 
|  | 4593 |  | 
|  | 4594 |  | 
|  | 4595 |  | 
|  | 4596 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 4597 | if test "x$ac_cv_header_minix_config_h" = x""yes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4598 | MINIX=yes | 
|  | 4599 | else | 
|  | 4600 | MINIX= | 
|  | 4601 | fi | 
|  | 4602 |  | 
|  | 4603 |  | 
|  | 4604 | if test "$MINIX" = yes; then | 
|  | 4605 |  | 
|  | 4606 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | 
|  | 4607 |  | 
|  | 4608 |  | 
|  | 4609 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h | 
|  | 4610 |  | 
|  | 4611 |  | 
|  | 4612 | $as_echo "#define _MINIX 1" >>confdefs.h | 
|  | 4613 |  | 
|  | 4614 | fi | 
|  | 4615 |  | 
|  | 4616 |  | 
|  | 4617 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 | 
|  | 4618 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 4619 | if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4620 | $as_echo_n "(cached) " >&6 | 
|  | 4621 | else | 
|  | 4622 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 4623 | /* end confdefs.h.  */ | 
|  | 4624 |  | 
|  | 4625 | #	  define __EXTENSIONS__ 1 | 
|  | 4626 | $ac_includes_default | 
|  | 4627 | int | 
|  | 4628 | main () | 
|  | 4629 | { | 
|  | 4630 |  | 
|  | 4631 | ; | 
|  | 4632 | return 0; | 
|  | 4633 | } | 
|  | 4634 | _ACEOF | 
|  | 4635 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 4636 | ac_cv_safe_to_define___extensions__=yes | 
|  | 4637 | else | 
|  | 4638 | ac_cv_safe_to_define___extensions__=no | 
|  | 4639 | fi | 
|  | 4640 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 4641 | fi | 
|  | 4642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 | 
|  | 4643 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | 
|  | 4644 | test $ac_cv_safe_to_define___extensions__ = yes && | 
|  | 4645 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | 
|  | 4646 |  | 
|  | 4647 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h | 
|  | 4648 |  | 
|  | 4649 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | 
|  | 4650 |  | 
|  | 4651 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h | 
|  | 4652 |  | 
|  | 4653 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | 
|  | 4654 |  | 
|  | 4655 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4656 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4657 | # Check for unsupported systems | 
|  | 4658 | case $ac_sys_system/$ac_sys_release in | 
|  | 4659 | atheos*|Linux*/1*) | 
|  | 4660 | echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported. | 
|  | 4661 | echo See README for details. | 
|  | 4662 | exit 1;; | 
|  | 4663 | esac | 
|  | 4664 |  | 
|  | 4665 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4666 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-suffix" >&5 | 
|  | 4667 | $as_echo_n "checking for --with-suffix... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4668 |  | 
|  | 4669 | # Check whether --with-suffix was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4670 | if test "${with_suffix+set}" = set; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4671 | withval=$with_suffix; | 
|  | 4672 | case $withval in | 
|  | 4673 | no)	EXEEXT=;; | 
|  | 4674 | yes)	EXEEXT=.exe;; | 
|  | 4675 | *)	EXEEXT=$withval;; | 
|  | 4676 | esac | 
|  | 4677 | fi | 
|  | 4678 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXEEXT" >&5 | 
|  | 4680 | $as_echo "$EXEEXT" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4681 |  | 
|  | 4682 | # Test whether we're running on a non-case-sensitive system, in which | 
|  | 4683 | # case we give a warning if no ext is given | 
|  | 4684 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4685 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for case-insensitive build directory" >&5 | 
|  | 4686 | $as_echo_n "checking for case-insensitive build directory... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4687 | if test ! -d CaseSensitiveTestDir; then | 
|  | 4688 | mkdir CaseSensitiveTestDir | 
|  | 4689 | fi | 
|  | 4690 |  | 
|  | 4691 | if test -d casesensitivetestdir | 
|  | 4692 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 4694 | $as_echo "yes" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4695 | BUILDEXEEXT=.exe | 
|  | 4696 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 4698 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4699 | BUILDEXEEXT=$EXEEXT | 
|  | 4700 | fi | 
|  | 4701 | rmdir CaseSensitiveTestDir | 
|  | 4702 |  | 
|  | 4703 | case $MACHDEP in | 
|  | 4704 | bsdos*) | 
|  | 4705 | case $CC in | 
|  | 4706 | gcc) CC="$CC -D_HAVE_BSDI";; | 
|  | 4707 | esac;; | 
|  | 4708 | esac | 
|  | 4709 |  | 
|  | 4710 | case $ac_sys_system in | 
|  | 4711 | hp*|HP*) | 
|  | 4712 | case $CC in | 
|  | 4713 | cc|*/cc) CC="$CC -Ae";; | 
|  | 4714 | esac;; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4715 | esac | 
|  | 4716 |  | 
|  | 4717 |  | 
|  | 4718 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4719 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY" >&5 | 
|  | 4720 | $as_echo_n "checking LIBRARY... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4721 | if test -z "$LIBRARY" | 
|  | 4722 | then | 
| Barry Warsaw | f040d7d | 2010-10-18 17:09:07 +0000 | [diff] [blame] | 4723 | LIBRARY='libpython$(VERSION)$(ABIFLAGS).a' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4724 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBRARY" >&5 | 
|  | 4726 | $as_echo "$LIBRARY" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4727 |  | 
|  | 4728 | # LDLIBRARY is the name of the library to link against (as opposed to the | 
|  | 4729 | # name of the library into which to insert object files). BLDLIBRARY is also | 
|  | 4730 | # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY | 
|  | 4731 | # is blank as the main program is not linked directly against LDLIBRARY. | 
|  | 4732 | # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On | 
|  | 4733 | # systems without shared libraries, LDLIBRARY is the same as LIBRARY | 
|  | 4734 | # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, | 
|  | 4735 | # DLLLIBRARY is the shared (i.e., DLL) library. | 
|  | 4736 | # | 
|  | 4737 | # RUNSHARED is used to run shared python without installed libraries | 
|  | 4738 | # | 
|  | 4739 | # INSTSONAME is the name of the shared library that will be use to install | 
|  | 4740 | # on the system - some systems like version suffix, others don't | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 4741 | # | 
|  | 4742 | # LDVERSION is the shared library version number, normally the Python version | 
|  | 4743 | # with the ABI build flags appended. | 
|  | 4744 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4745 |  | 
|  | 4746 |  | 
|  | 4747 |  | 
|  | 4748 |  | 
|  | 4749 |  | 
|  | 4750 |  | 
| Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 +0000 | [diff] [blame] | 4751 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4752 | LDLIBRARY="$LIBRARY" | 
|  | 4753 | BLDLIBRARY='$(LDLIBRARY)' | 
|  | 4754 | INSTSONAME='$(LDLIBRARY)' | 
|  | 4755 | DLLLIBRARY='' | 
|  | 4756 | LDLIBRARYDIR='' | 
|  | 4757 | RUNSHARED='' | 
| Barry Warsaw | 14d98ac | 2010-11-24 19:43:47 +0000 | [diff] [blame] | 4758 | LDVERSION="$VERSION" | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4759 |  | 
|  | 4760 | # LINKCC is the command that links the python executable -- default is $(CC). | 
|  | 4761 | # If CXX is set, and if it is needed to link a main function that was | 
|  | 4762 | # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: | 
|  | 4763 | # python might then depend on the C++ runtime | 
|  | 4764 | # This is altered for AIX in order to build the export list before | 
|  | 4765 | # linking. | 
|  | 4766 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4767 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKCC" >&5 | 
|  | 4768 | $as_echo_n "checking LINKCC... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4769 | if test -z "$LINKCC" | 
|  | 4770 | then | 
|  | 4771 | LINKCC='$(PURIFY) $(MAINCC)' | 
|  | 4772 | case $ac_sys_system in | 
|  | 4773 | AIX*) | 
|  | 4774 | exp_extra="\"\"" | 
|  | 4775 | if test $ac_sys_release -ge 5 -o \ | 
|  | 4776 | $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then | 
|  | 4777 | exp_extra="." | 
|  | 4778 | fi | 
|  | 4779 | LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4780 | QNX*) | 
|  | 4781 | # qcc must be used because the other compilers do not | 
|  | 4782 | # support -N. | 
|  | 4783 | LINKCC=qcc;; | 
|  | 4784 | esac | 
|  | 4785 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKCC" >&5 | 
|  | 4787 | $as_echo "$LINKCC" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4788 |  | 
|  | 4789 | # GNULD is set to "yes" if the GNU linker is used.  If this goes wrong | 
|  | 4790 | # make sure we default having it set to "no": this is used by | 
|  | 4791 | # distutils.unixccompiler to know if it should add --enable-new-dtags | 
|  | 4792 | # to linker command lines, and failing to detect GNU ld simply results | 
|  | 4793 | # in the same bahaviour as before. | 
|  | 4794 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4795 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | 
|  | 4796 | $as_echo_n "checking for GNU ld... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4797 | ac_prog=ld | 
|  | 4798 | if test "$GCC" = yes; then | 
|  | 4799 | ac_prog=`$CC -print-prog-name=ld` | 
|  | 4800 | fi | 
|  | 4801 | case `"$ac_prog" -V 2>&1 < /dev/null` in | 
|  | 4802 | *GNU*) | 
|  | 4803 | GNULD=yes;; | 
|  | 4804 | *) | 
|  | 4805 | GNULD=no;; | 
|  | 4806 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNULD" >&5 | 
|  | 4808 | $as_echo "$GNULD" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4809 |  | 
| Daniel Stutzbach | a606faa | 2010-08-31 19:51:07 +0000 | [diff] [blame] | 4810 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 | 
|  | 4811 | $as_echo_n "checking for inline... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 4812 | if test "${ac_cv_c_inline+set}" = set; then : | 
| Daniel Stutzbach | a606faa | 2010-08-31 19:51:07 +0000 | [diff] [blame] | 4813 | $as_echo_n "(cached) " >&6 | 
|  | 4814 | else | 
|  | 4815 | ac_cv_c_inline=no | 
|  | 4816 | for ac_kw in inline __inline__ __inline; do | 
|  | 4817 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 4818 | /* end confdefs.h.  */ | 
|  | 4819 | #ifndef __cplusplus | 
|  | 4820 | typedef int foo_t; | 
|  | 4821 | static $ac_kw foo_t static_foo () {return 0; } | 
|  | 4822 | $ac_kw foo_t foo () {return 0; } | 
|  | 4823 | #endif | 
|  | 4824 |  | 
|  | 4825 | _ACEOF | 
|  | 4826 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 4827 | ac_cv_c_inline=$ac_kw | 
|  | 4828 | fi | 
|  | 4829 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 4830 | test "$ac_cv_c_inline" != no && break | 
|  | 4831 | done | 
|  | 4832 |  | 
|  | 4833 | fi | 
|  | 4834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 | 
|  | 4835 | $as_echo "$ac_cv_c_inline" >&6; } | 
|  | 4836 |  | 
|  | 4837 | case $ac_cv_c_inline in | 
|  | 4838 | inline | yes) ;; | 
|  | 4839 | *) | 
|  | 4840 | case $ac_cv_c_inline in | 
|  | 4841 | no) ac_val=;; | 
|  | 4842 | *) ac_val=$ac_cv_c_inline;; | 
|  | 4843 | esac | 
|  | 4844 | cat >>confdefs.h <<_ACEOF | 
|  | 4845 | #ifndef __cplusplus | 
|  | 4846 | #define inline $ac_val | 
|  | 4847 | #endif | 
|  | 4848 | _ACEOF | 
|  | 4849 | ;; | 
|  | 4850 | esac | 
|  | 4851 |  | 
|  | 4852 | if test "$ac_cv_c_inline" != no ; then | 
| Benjamin Peterson | d7f73e9 | 2010-09-05 00:09:07 +0000 | [diff] [blame] | 4853 |  | 
|  | 4854 | $as_echo "#define USE_INLINE 1" >>confdefs.h | 
| Daniel Stutzbach | a606faa | 2010-08-31 19:51:07 +0000 | [diff] [blame] | 4855 |  | 
|  | 4856 |  | 
|  | 4857 | fi | 
|  | 4858 |  | 
|  | 4859 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4860 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-shared" >&5 | 
|  | 4861 | $as_echo_n "checking for --enable-shared... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4862 | # Check whether --enable-shared was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4863 | if test "${enable_shared+set}" = set; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4864 | enableval=$enable_shared; | 
|  | 4865 | fi | 
|  | 4866 |  | 
|  | 4867 |  | 
|  | 4868 | if test -z "$enable_shared" | 
|  | 4869 | then | 
|  | 4870 | case $ac_sys_system in | 
| Antoine Pitrou | 6103ab1 | 2009-10-24 20:11:21 +0000 | [diff] [blame] | 4871 | CYGWIN*) | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4872 | enable_shared="yes";; | 
|  | 4873 | *) | 
|  | 4874 | enable_shared="no";; | 
|  | 4875 | esac | 
|  | 4876 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | 
|  | 4878 | $as_echo "$enable_shared" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4879 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4880 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-profiling" >&5 | 
|  | 4881 | $as_echo_n "checking for --enable-profiling... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4882 | # Check whether --enable-profiling was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4883 | if test "${enable_profiling+set}" = set; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4884 | enableval=$enable_profiling; ac_save_cc="$CC" | 
|  | 4885 | CC="$CC -pg" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4886 | if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4887 | ac_enable_profiling="no" | 
|  | 4888 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4889 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4890 | /* end confdefs.h.  */ | 
|  | 4891 | int main() { return 0; } | 
|  | 4892 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4893 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4894 | ac_enable_profiling="yes" | 
|  | 4895 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4896 | ac_enable_profiling="no" | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4897 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4898 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 4899 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4900 | fi | 
|  | 4901 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4902 | CC="$ac_save_cc" | 
|  | 4903 | fi | 
|  | 4904 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_profiling" >&5 | 
|  | 4906 | $as_echo "$ac_enable_profiling" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4907 |  | 
|  | 4908 | case "$ac_enable_profiling" in | 
|  | 4909 | "yes") | 
|  | 4910 | BASECFLAGS="-pg $BASECFLAGS" | 
|  | 4911 | LDFLAGS="-pg $LDFLAGS" | 
|  | 4912 | ;; | 
|  | 4913 | esac | 
|  | 4914 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4915 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDLIBRARY" >&5 | 
|  | 4916 | $as_echo_n "checking LDLIBRARY... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4917 |  | 
|  | 4918 | # MacOSX framework builds need more magic. LDLIBRARY is the dynamic | 
|  | 4919 | # library that we build, but we do not want to link against it (we | 
|  | 4920 | # will find it with a -framework option). For this reason there is an | 
|  | 4921 | # extra variable BLDLIBRARY against which Python and the extension | 
|  | 4922 | # modules are linked, BLDLIBRARY. This is normally the same as | 
|  | 4923 | # LDLIBRARY, but empty for MacOSX framework builds. | 
|  | 4924 | if test "$enable_framework" | 
|  | 4925 | then | 
|  | 4926 | LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
|  | 4927 | RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH" | 
|  | 4928 | BLDLIBRARY='' | 
|  | 4929 | else | 
|  | 4930 | BLDLIBRARY='$(LDLIBRARY)' | 
|  | 4931 | fi | 
|  | 4932 |  | 
|  | 4933 | # Other platforms follow | 
|  | 4934 | if test $enable_shared = "yes"; then | 
|  | 4935 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4936 | $as_echo "#define Py_ENABLE_SHARED 1" >>confdefs.h | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4937 |  | 
|  | 4938 | case $ac_sys_system in | 
|  | 4939 | CYGWIN*) | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 4940 | LDLIBRARY='libpython$(LDVERSION).dll.a' | 
|  | 4941 | DLLLIBRARY='libpython$(LDVERSION).dll' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4942 | ;; | 
|  | 4943 | SunOS*) | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 4944 | LDLIBRARY='libpython$(LDVERSION).so' | 
|  | 4945 | BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(LDVERSION)' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4946 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} | 
|  | 4947 | INSTSONAME="$LDLIBRARY".$SOVERSION | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 4948 | if test "$with_pydebug" != yes | 
| Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 +0000 | [diff] [blame] | 4949 | then | 
|  | 4950 | PY3LIBRARY=libpython3.so | 
|  | 4951 | fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4952 | ;; | 
|  | 4953 | Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*) | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 4954 | LDLIBRARY='libpython$(LDVERSION).so' | 
|  | 4955 | BLDLIBRARY='-L. -lpython$(LDVERSION)' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4956 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} | 
|  | 4957 | case $ac_sys_system in | 
|  | 4958 | FreeBSD*) | 
|  | 4959 | SOVERSION=`echo $SOVERSION|cut -d "." -f 1` | 
|  | 4960 | ;; | 
|  | 4961 | esac | 
|  | 4962 | INSTSONAME="$LDLIBRARY".$SOVERSION | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 4963 | if test "$with_pydebug" != yes | 
| Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 +0000 | [diff] [blame] | 4964 | then | 
|  | 4965 | PY3LIBRARY=libpython3.so | 
|  | 4966 | fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4967 | ;; | 
|  | 4968 | hp*|HP*) | 
|  | 4969 | case `uname -m` in | 
|  | 4970 | ia64) | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 4971 | LDLIBRARY='libpython$(LDVERSION).so' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4972 | ;; | 
|  | 4973 | *) | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 4974 | LDLIBRARY='libpython$(LDVERSION).sl' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4975 | ;; | 
|  | 4976 | esac | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 4977 | BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(LDVERSION)' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4978 | RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH} | 
|  | 4979 | ;; | 
|  | 4980 | OSF*) | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 4981 | LDLIBRARY='libpython$(LDVERSION).so' | 
|  | 4982 | BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(LDVERSION)' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4983 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} | 
|  | 4984 | ;; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4985 | Darwin*) | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 4986 | LDLIBRARY='libpython$(LDVERSION).dylib' | 
|  | 4987 | BLDLIBRARY='-L. -lpython$(LDVERSION)' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4988 | RUNSHARED='DYLD_LIBRARY_PATH=`pwd`:${DYLD_LIBRARY_PATH}' | 
|  | 4989 | ;; | 
| Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 4990 | AIX*) | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 4991 | LDLIBRARY='libpython$(LDVERSION).so' | 
| Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 4992 | RUNSHARED=LIBPATH=`pwd`:${LIBPATH} | 
|  | 4993 | ;; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4994 |  | 
|  | 4995 | esac | 
|  | 4996 | else # shared is disabled | 
|  | 4997 | case $ac_sys_system in | 
|  | 4998 | CYGWIN*) | 
|  | 4999 | BLDLIBRARY='$(LIBRARY)' | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5000 | LDLIBRARY='libpython$(LDVERSION).dll.a' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5001 | ;; | 
|  | 5002 | esac | 
|  | 5003 | fi | 
|  | 5004 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDLIBRARY" >&5 | 
|  | 5006 | $as_echo "$LDLIBRARY" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5007 |  | 
|  | 5008 | if test -n "$ac_tool_prefix"; then | 
|  | 5009 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | 
|  | 5010 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5011 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 5012 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 5013 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5014 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5015 | else | 
|  | 5016 | if test -n "$RANLIB"; then | 
|  | 5017 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | 
|  | 5018 | else | 
|  | 5019 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 5020 | for as_dir in $PATH | 
|  | 5021 | do | 
|  | 5022 | IFS=$as_save_IFS | 
|  | 5023 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5024 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5025 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 5026 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5027 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5028 | break 2 | 
|  | 5029 | fi | 
|  | 5030 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5031 | done | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5032 | IFS=$as_save_IFS | 
|  | 5033 |  | 
|  | 5034 | fi | 
|  | 5035 | fi | 
|  | 5036 | RANLIB=$ac_cv_prog_RANLIB | 
|  | 5037 | if test -n "$RANLIB"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | 
|  | 5039 | $as_echo "$RANLIB" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5040 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 5042 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5043 | fi | 
|  | 5044 |  | 
|  | 5045 |  | 
|  | 5046 | fi | 
|  | 5047 | if test -z "$ac_cv_prog_RANLIB"; then | 
|  | 5048 | ac_ct_RANLIB=$RANLIB | 
|  | 5049 | # Extract the first word of "ranlib", so it can be a program name with args. | 
|  | 5050 | set dummy ranlib; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5051 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 5052 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 5053 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5054 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5055 | else | 
|  | 5056 | if test -n "$ac_ct_RANLIB"; then | 
|  | 5057 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | 
|  | 5058 | else | 
|  | 5059 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 5060 | for as_dir in $PATH | 
|  | 5061 | do | 
|  | 5062 | IFS=$as_save_IFS | 
|  | 5063 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5064 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5065 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 5066 | ac_cv_prog_ac_ct_RANLIB="ranlib" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5067 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5068 | break 2 | 
|  | 5069 | fi | 
|  | 5070 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5071 | done | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5072 | IFS=$as_save_IFS | 
|  | 5073 |  | 
|  | 5074 | fi | 
|  | 5075 | fi | 
|  | 5076 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | 
|  | 5077 | if test -n "$ac_ct_RANLIB"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | 
|  | 5079 | $as_echo "$ac_ct_RANLIB" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5080 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5081 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 5082 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5083 | fi | 
|  | 5084 |  | 
|  | 5085 | if test "x$ac_ct_RANLIB" = x; then | 
|  | 5086 | RANLIB=":" | 
|  | 5087 | else | 
|  | 5088 | case $cross_compiling:$ac_tool_warned in | 
|  | 5089 | yes:) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5090 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
|  | 5091 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5092 | ac_tool_warned=yes ;; | 
|  | 5093 | esac | 
|  | 5094 | RANLIB=$ac_ct_RANLIB | 
|  | 5095 | fi | 
|  | 5096 | else | 
|  | 5097 | RANLIB="$ac_cv_prog_RANLIB" | 
|  | 5098 | fi | 
|  | 5099 |  | 
|  | 5100 |  | 
|  | 5101 | for ac_prog in ar aal | 
|  | 5102 | do | 
|  | 5103 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 5104 | set dummy $ac_prog; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5105 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 5106 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 5107 | if test "${ac_cv_prog_AR+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5108 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5109 | else | 
|  | 5110 | if test -n "$AR"; then | 
|  | 5111 | ac_cv_prog_AR="$AR" # Let the user override the test. | 
|  | 5112 | else | 
|  | 5113 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 5114 | for as_dir in $PATH | 
|  | 5115 | do | 
|  | 5116 | IFS=$as_save_IFS | 
|  | 5117 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5118 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5119 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 5120 | ac_cv_prog_AR="$ac_prog" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5121 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5122 | break 2 | 
|  | 5123 | fi | 
|  | 5124 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5125 | done | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5126 | IFS=$as_save_IFS | 
|  | 5127 |  | 
|  | 5128 | fi | 
|  | 5129 | fi | 
|  | 5130 | AR=$ac_cv_prog_AR | 
|  | 5131 | if test -n "$AR"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | 
|  | 5133 | $as_echo "$AR" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5134 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 5136 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5137 | fi | 
|  | 5138 |  | 
|  | 5139 |  | 
|  | 5140 | test -n "$AR" && break | 
|  | 5141 | done | 
|  | 5142 | test -n "$AR" || AR="ar" | 
|  | 5143 |  | 
|  | 5144 |  | 
|  | 5145 | # tweak ARFLAGS only if the user didn't set it on the command line | 
|  | 5146 |  | 
|  | 5147 | if test -z "$ARFLAGS" | 
|  | 5148 | then | 
|  | 5149 | ARFLAGS="rc" | 
|  | 5150 | fi | 
|  | 5151 |  | 
|  | 5152 |  | 
|  | 5153 | # Extract the first word of "svnversion", so it can be a program name with args. | 
|  | 5154 | set dummy svnversion; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5155 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 5156 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 5157 | if test "${ac_cv_prog_SVNVERSION+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5158 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5159 | else | 
|  | 5160 | if test -n "$SVNVERSION"; then | 
|  | 5161 | ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test. | 
|  | 5162 | else | 
|  | 5163 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 5164 | for as_dir in $PATH | 
|  | 5165 | do | 
|  | 5166 | IFS=$as_save_IFS | 
|  | 5167 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5168 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5169 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 5170 | ac_cv_prog_SVNVERSION="found" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5171 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5172 | break 2 | 
|  | 5173 | fi | 
|  | 5174 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5175 | done | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5176 | IFS=$as_save_IFS | 
|  | 5177 |  | 
|  | 5178 | test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION="not-found" | 
|  | 5179 | fi | 
|  | 5180 | fi | 
|  | 5181 | SVNVERSION=$ac_cv_prog_SVNVERSION | 
|  | 5182 | if test -n "$SVNVERSION"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVNVERSION" >&5 | 
|  | 5184 | $as_echo "$SVNVERSION" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5185 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 5187 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5188 | fi | 
|  | 5189 |  | 
|  | 5190 |  | 
|  | 5191 | if test $SVNVERSION = found | 
|  | 5192 | then | 
|  | 5193 | SVNVERSION="svnversion \$(srcdir)" | 
|  | 5194 | else | 
|  | 5195 | SVNVERSION="echo Unversioned directory" | 
|  | 5196 | fi | 
|  | 5197 |  | 
| Georg Brandl | 1ca2e79 | 2011-03-05 20:51:24 +0100 | [diff] [blame] | 5198 |  | 
|  | 5199 |  | 
|  | 5200 |  | 
| Georg Brandl | 187c111 | 2011-07-03 09:23:20 +0200 | [diff] [blame] | 5201 |  | 
|  | 5202 | if test -e $srcdir/.hg/00changelog.i | 
|  | 5203 | then | 
| Georg Brandl | 1ca2e79 | 2011-03-05 20:51:24 +0100 | [diff] [blame] | 5204 | # Extract the first word of "hg", so it can be a program name with args. | 
|  | 5205 | set dummy hg; ac_word=$2 | 
|  | 5206 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 5207 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 5208 | if test "${ac_cv_prog_HAS_HG+set}" = set; then : | 
| Georg Brandl | 1ca2e79 | 2011-03-05 20:51:24 +0100 | [diff] [blame] | 5209 | $as_echo_n "(cached) " >&6 | 
|  | 5210 | else | 
|  | 5211 | if test -n "$HAS_HG"; then | 
|  | 5212 | ac_cv_prog_HAS_HG="$HAS_HG" # Let the user override the test. | 
|  | 5213 | else | 
|  | 5214 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 5215 | for as_dir in $PATH | 
|  | 5216 | do | 
|  | 5217 | IFS=$as_save_IFS | 
|  | 5218 | test -z "$as_dir" && as_dir=. | 
|  | 5219 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 5220 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 5221 | ac_cv_prog_HAS_HG="found" | 
|  | 5222 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 5223 | break 2 | 
|  | 5224 | fi | 
|  | 5225 | done | 
|  | 5226 | done | 
|  | 5227 | IFS=$as_save_IFS | 
|  | 5228 |  | 
|  | 5229 | test -z "$ac_cv_prog_HAS_HG" && ac_cv_prog_HAS_HG="not-found" | 
|  | 5230 | fi | 
|  | 5231 | fi | 
|  | 5232 | HAS_HG=$ac_cv_prog_HAS_HG | 
|  | 5233 | if test -n "$HAS_HG"; then | 
|  | 5234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAS_HG" >&5 | 
|  | 5235 | $as_echo "$HAS_HG" >&6; } | 
|  | 5236 | else | 
|  | 5237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 5238 | $as_echo "no" >&6; } | 
|  | 5239 | fi | 
|  | 5240 |  | 
|  | 5241 |  | 
| Georg Brandl | 187c111 | 2011-07-03 09:23:20 +0200 | [diff] [blame] | 5242 | else | 
|  | 5243 | HAS_HG=no-repository | 
|  | 5244 | fi | 
| Georg Brandl | 1ca2e79 | 2011-03-05 20:51:24 +0100 | [diff] [blame] | 5245 | if test $HAS_HG = found | 
|  | 5246 | then | 
|  | 5247 | HGVERSION="hg id -i \$(srcdir)" | 
|  | 5248 | HGTAG="hg id -t \$(srcdir)" | 
|  | 5249 | HGBRANCH="hg id -b \$(srcdir)" | 
|  | 5250 | else | 
|  | 5251 | HGVERSION="" | 
|  | 5252 | HGTAG="" | 
|  | 5253 | HGBRANCH="" | 
|  | 5254 | fi | 
|  | 5255 |  | 
| Georg Brandl | 187c111 | 2011-07-03 09:23:20 +0200 | [diff] [blame] | 5256 |  | 
|  | 5257 | DISABLE_ASDLGEN="" | 
|  | 5258 | # Extract the first word of "python", so it can be a program name with args. | 
|  | 5259 | set dummy python; ac_word=$2 | 
|  | 5260 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 5261 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 5262 | if test "${ac_cv_prog_HAS_PYTHON+set}" = set; then : | 
| Georg Brandl | 187c111 | 2011-07-03 09:23:20 +0200 | [diff] [blame] | 5263 | $as_echo_n "(cached) " >&6 | 
|  | 5264 | else | 
|  | 5265 | if test -n "$HAS_PYTHON"; then | 
|  | 5266 | ac_cv_prog_HAS_PYTHON="$HAS_PYTHON" # Let the user override the test. | 
|  | 5267 | else | 
|  | 5268 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 5269 | for as_dir in $PATH | 
|  | 5270 | do | 
|  | 5271 | IFS=$as_save_IFS | 
|  | 5272 | test -z "$as_dir" && as_dir=. | 
|  | 5273 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 5274 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 5275 | ac_cv_prog_HAS_PYTHON="found" | 
|  | 5276 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 5277 | break 2 | 
|  | 5278 | fi | 
|  | 5279 | done | 
|  | 5280 | done | 
|  | 5281 | IFS=$as_save_IFS | 
|  | 5282 |  | 
|  | 5283 | test -z "$ac_cv_prog_HAS_PYTHON" && ac_cv_prog_HAS_PYTHON="not-found" | 
|  | 5284 | fi | 
|  | 5285 | fi | 
|  | 5286 | HAS_PYTHON=$ac_cv_prog_HAS_PYTHON | 
|  | 5287 | if test -n "$HAS_PYTHON"; then | 
|  | 5288 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAS_PYTHON" >&5 | 
|  | 5289 | $as_echo "$HAS_PYTHON" >&6; } | 
|  | 5290 | else | 
|  | 5291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 5292 | $as_echo "no" >&6; } | 
|  | 5293 | fi | 
|  | 5294 |  | 
|  | 5295 |  | 
|  | 5296 | if test $HAS_HG != found -o $HAS_PYTHON != found | 
|  | 5297 | then | 
|  | 5298 | DISABLE_ASDLGEN="@echo hg: $HAS_HG, python: $HAS_PYTHON! cannot run \$(srcdir)/Parser/asdl_c.py #" | 
|  | 5299 | fi | 
|  | 5300 |  | 
|  | 5301 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5302 | case $MACHDEP in | 
|  | 5303 | bsdos*|hp*|HP*) | 
|  | 5304 | # install -d does not work on BSDI or HP-UX | 
|  | 5305 | if test -z "$INSTALL" | 
|  | 5306 | then | 
|  | 5307 | INSTALL="${srcdir}/install-sh -c" | 
|  | 5308 | fi | 
|  | 5309 | esac | 
|  | 5310 | ac_aux_dir= | 
|  | 5311 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 5312 | if test -f "$ac_dir/install-sh"; then | 
|  | 5313 | ac_aux_dir=$ac_dir | 
|  | 5314 | ac_install_sh="$ac_aux_dir/install-sh -c" | 
|  | 5315 | break | 
|  | 5316 | elif test -f "$ac_dir/install.sh"; then | 
|  | 5317 | ac_aux_dir=$ac_dir | 
|  | 5318 | ac_install_sh="$ac_aux_dir/install.sh -c" | 
|  | 5319 | break | 
|  | 5320 | elif test -f "$ac_dir/shtool"; then | 
|  | 5321 | ac_aux_dir=$ac_dir | 
|  | 5322 | ac_install_sh="$ac_aux_dir/shtool install -c" | 
|  | 5323 | break | 
|  | 5324 | fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5325 | done | 
|  | 5326 | if test -z "$ac_aux_dir"; then | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 5327 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5328 | fi | 
|  | 5329 |  | 
|  | 5330 | # These three variables are undocumented and unsupported, | 
|  | 5331 | # and are intended to be withdrawn in a future Autoconf release. | 
|  | 5332 | # They can cause serious problems if a builder's source tree is in a directory | 
|  | 5333 | # whose full name contains unusual characters. | 
|  | 5334 | ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var. | 
|  | 5335 | ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var. | 
|  | 5336 | ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var. | 
|  | 5337 |  | 
|  | 5338 |  | 
|  | 5339 | # Find a good install program.  We prefer a C program (faster), | 
|  | 5340 | # so one script is as good as another.  But avoid the broken or | 
|  | 5341 | # incompatible versions: | 
|  | 5342 | # SysV /etc/install, /usr/sbin/install | 
|  | 5343 | # SunOS /usr/etc/install | 
|  | 5344 | # IRIX /sbin/install | 
|  | 5345 | # AIX /bin/install | 
|  | 5346 | # AmigaOS /C/install, which installs bootblocks on floppy discs | 
|  | 5347 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | 
|  | 5348 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | 
|  | 5349 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | 
|  | 5350 | # OS/2's system install, which has a completely different semantic | 
|  | 5351 | # ./install, which can be erroneously created by make from ./install.sh. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5352 | # Reject install programs that cannot install multiple files. | 
|  | 5353 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | 
|  | 5354 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5355 | if test -z "$INSTALL"; then | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 5356 | if test "${ac_cv_path_install+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5357 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5358 | else | 
|  | 5359 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 5360 | for as_dir in $PATH | 
|  | 5361 | do | 
|  | 5362 | IFS=$as_save_IFS | 
|  | 5363 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5364 | # Account for people who put trailing slashes in PATH elements. | 
|  | 5365 | case $as_dir/ in #(( | 
|  | 5366 | ./ | .// | /[cC]/* | \ | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5367 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5368 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5369 | /usr/ucb/* ) ;; | 
|  | 5370 | *) | 
|  | 5371 | # OSF1 and SCO ODT 3.0 have their own names for install. | 
|  | 5372 | # Don't use installbsd from OSF since it installs stuff as root | 
|  | 5373 | # by default. | 
|  | 5374 | for ac_prog in ginstall scoinst install; do | 
|  | 5375 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 5376 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | 
|  | 5377 | if test $ac_prog = install && | 
|  | 5378 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | 
|  | 5379 | # AIX install.  It has an incompatible calling convention. | 
|  | 5380 | : | 
|  | 5381 | elif test $ac_prog = install && | 
|  | 5382 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | 
|  | 5383 | # program-specific install script used by HP pwplus--don't use. | 
|  | 5384 | : | 
|  | 5385 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5386 | rm -rf conftest.one conftest.two conftest.dir | 
|  | 5387 | echo one > conftest.one | 
|  | 5388 | echo two > conftest.two | 
|  | 5389 | mkdir conftest.dir | 
|  | 5390 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | 
|  | 5391 | test -s conftest.one && test -s conftest.two && | 
|  | 5392 | test -s conftest.dir/conftest.one && | 
|  | 5393 | test -s conftest.dir/conftest.two | 
|  | 5394 | then | 
|  | 5395 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | 
|  | 5396 | break 3 | 
|  | 5397 | fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5398 | fi | 
|  | 5399 | fi | 
|  | 5400 | done | 
|  | 5401 | done | 
|  | 5402 | ;; | 
|  | 5403 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5404 |  | 
|  | 5405 | done | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5406 | IFS=$as_save_IFS | 
|  | 5407 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5408 | rm -rf conftest.one conftest.two conftest.dir | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5409 |  | 
|  | 5410 | fi | 
|  | 5411 | if test "${ac_cv_path_install+set}" = set; then | 
|  | 5412 | INSTALL=$ac_cv_path_install | 
|  | 5413 | else | 
|  | 5414 | # As a last resort, use the slow shell script.  Don't cache a | 
|  | 5415 | # value for INSTALL within a source directory, because that will | 
|  | 5416 | # break other packages using the cache if that directory is | 
|  | 5417 | # removed, or if the value is a relative name. | 
|  | 5418 | INSTALL=$ac_install_sh | 
|  | 5419 | fi | 
|  | 5420 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | 
|  | 5422 | $as_echo "$INSTALL" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5423 |  | 
|  | 5424 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | 
|  | 5425 | # It thinks the first close brace ends the variable substitution. | 
|  | 5426 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | 
|  | 5427 |  | 
|  | 5428 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | 
|  | 5429 |  | 
|  | 5430 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | 
|  | 5431 |  | 
|  | 5432 |  | 
|  | 5433 | # Not every filesystem supports hard links | 
|  | 5434 |  | 
|  | 5435 | if test -z "$LN" ; then | 
|  | 5436 | case $ac_sys_system in | 
|  | 5437 | CYGWIN*) LN="ln -s";; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5438 | *) LN=ln;; | 
|  | 5439 | esac | 
|  | 5440 | fi | 
|  | 5441 |  | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 5442 | # For calculating the .so ABI tag. | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5443 |  | 
|  | 5444 | ABIFLAGS="" | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 5445 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5446 | # Check for --with-pydebug | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5447 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pydebug" >&5 | 
|  | 5448 | $as_echo_n "checking for --with-pydebug... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5449 |  | 
|  | 5450 | # Check whether --with-pydebug was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5451 | if test "${with_pydebug+set}" = set; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5452 | withval=$with_pydebug; | 
|  | 5453 | if test "$withval" != no | 
|  | 5454 | then | 
|  | 5455 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5456 | $as_echo "#define Py_DEBUG 1" >>confdefs.h | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5457 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 5459 | $as_echo "yes" >&6; }; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5460 | Py_DEBUG='true' | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5461 | ABIFLAGS="${ABIFLAGS}d" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5462 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 5463 | $as_echo "no" >&6; }; Py_DEBUG='false' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5464 | fi | 
|  | 5465 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 5467 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5468 | fi | 
|  | 5469 |  | 
|  | 5470 |  | 
|  | 5471 | # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be | 
|  | 5472 | # merged with this chunk of code? | 
|  | 5473 |  | 
|  | 5474 | # Optimizer/debugger flags | 
|  | 5475 | # ------------------------ | 
|  | 5476 | # (The following bit of code is complicated enough - please keep things | 
|  | 5477 | # indented properly.  Just pretend you're editing Python code. ;-) | 
|  | 5478 |  | 
|  | 5479 | # There are two parallel sets of case statements below, one that checks to | 
|  | 5480 | # see if OPT was set and one that does BASECFLAGS setting based upon | 
|  | 5481 | # compiler and platform.  BASECFLAGS tweaks need to be made even if the | 
|  | 5482 | # user set OPT. | 
|  | 5483 |  | 
|  | 5484 | # tweak OPT based on compiler and platform, only if the user didn't set | 
|  | 5485 | # it on the command line | 
|  | 5486 |  | 
| Benjamin Peterson | 65b4ec5 | 2010-03-23 21:02:34 +0000 | [diff] [blame] | 5487 | if test "${OPT-unset}" = "unset" | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5488 | then | 
|  | 5489 | case $GCC in | 
|  | 5490 | yes) | 
|  | 5491 | if test "$CC" != 'g++' ; then | 
|  | 5492 | STRICT_PROTO="-Wstrict-prototypes" | 
|  | 5493 | fi | 
|  | 5494 | # For gcc 4.x we need to use -fwrapv so lets check if its supported | 
|  | 5495 | if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then | 
|  | 5496 | WRAP="-fwrapv" | 
|  | 5497 | fi | 
|  | 5498 | case $ac_cv_prog_cc_g in | 
|  | 5499 | yes) | 
|  | 5500 | if test "$Py_DEBUG" = 'true' ; then | 
|  | 5501 | # Optimization messes up debuggers, so turn it off for | 
|  | 5502 | # debug builds. | 
| Mark Dickinson | b2153e9 | 2010-05-05 22:31:36 +0000 | [diff] [blame] | 5503 | OPT="-g -O0 -Wall $STRICT_PROTO" | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5504 | else | 
|  | 5505 | OPT="-g $WRAP -O3 -Wall $STRICT_PROTO" | 
|  | 5506 | fi | 
|  | 5507 | ;; | 
|  | 5508 | *) | 
|  | 5509 | OPT="-O3 -Wall $STRICT_PROTO" | 
|  | 5510 | ;; | 
|  | 5511 | esac | 
|  | 5512 | case $ac_sys_system in | 
|  | 5513 | SCO_SV*) OPT="$OPT -m486 -DSCO5" | 
|  | 5514 | ;; | 
|  | 5515 | esac | 
|  | 5516 | ;; | 
|  | 5517 |  | 
|  | 5518 | *) | 
|  | 5519 | OPT="-O" | 
|  | 5520 | ;; | 
|  | 5521 | esac | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5522 | fi | 
|  | 5523 |  | 
|  | 5524 |  | 
|  | 5525 |  | 
|  | 5526 | # The -arch flags for universal builds on OSX | 
|  | 5527 | UNIVERSAL_ARCH_FLAGS= | 
|  | 5528 |  | 
|  | 5529 |  | 
|  | 5530 | # tweak BASECFLAGS based on compiler and platform | 
|  | 5531 | case $GCC in | 
|  | 5532 | yes) | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 5533 | # Python doesn't violate C99 aliasing rules, but older versions of | 
|  | 5534 | # GCC produce warnings for legal Python code.  Enable | 
|  | 5535 | # -fno-strict-aliasing on versions of GCC that support but produce | 
|  | 5536 | # warnings.  See Issue3326 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5537 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts and needs -fno-strict-aliasing" >&5 | 
|  | 5538 | $as_echo_n "checking whether $CC accepts and needs -fno-strict-aliasing... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5539 | ac_save_cc="$CC" | 
|  | 5540 | CC="$CC -fno-strict-aliasing" | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 5541 | save_CFLAGS="$CFLAGS" | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 5542 | if test "${ac_cv_no_strict_aliasing+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5543 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 5544 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5545 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5546 | /* end confdefs.h.  */ | 
| Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 +0000 | [diff] [blame] | 5547 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 5548 |  | 
| Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 +0000 | [diff] [blame] | 5549 | int | 
|  | 5550 | main () | 
|  | 5551 | { | 
| Mark Dickinson | 8c2b6f1 | 2010-05-11 09:23:07 +0000 | [diff] [blame] | 5552 |  | 
| Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 +0000 | [diff] [blame] | 5553 | ; | 
|  | 5554 | return 0; | 
|  | 5555 | } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 5556 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5557 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5558 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 5559 |  | 
|  | 5560 | CC="$ac_save_cc -fstrict-aliasing" | 
|  | 5561 | CFLAGS="$CFLAGS -Werror -Wstrict-aliasing" | 
|  | 5562 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 5563 | /* end confdefs.h.  */ | 
|  | 5564 |  | 
| Mark Dickinson | 8c2b6f1 | 2010-05-11 09:23:07 +0000 | [diff] [blame] | 5565 | void f(int **x) {} | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 5566 | int | 
|  | 5567 | main () | 
|  | 5568 | { | 
| Mark Dickinson | 8c2b6f1 | 2010-05-11 09:23:07 +0000 | [diff] [blame] | 5569 | double *x; f((int **) &x); | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 5570 | ; | 
|  | 5571 | return 0; | 
|  | 5572 | } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 5573 |  | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 5574 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5575 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 5576 |  | 
|  | 5577 | ac_cv_no_strict_aliasing=no | 
|  | 5578 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5579 | else | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 5580 |  | 
|  | 5581 | ac_cv_no_strict_aliasing=yes | 
|  | 5582 |  | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 5583 | fi | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 5584 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 5585 |  | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 5586 | else | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 5587 |  | 
|  | 5588 | ac_cv_no_strict_aliasing=no | 
|  | 5589 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5590 | fi | 
| Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 +0000 | [diff] [blame] | 5591 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 5592 | fi | 
|  | 5593 |  | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 5594 | CFLAGS="$save_CFLAGS" | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5595 | CC="$ac_save_cc" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_no_strict_aliasing" >&5 | 
|  | 5597 | $as_echo "$ac_cv_no_strict_aliasing" >&6; } | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 5598 | if test $ac_cv_no_strict_aliasing = yes | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5599 | then | 
|  | 5600 | BASECFLAGS="$BASECFLAGS -fno-strict-aliasing" | 
|  | 5601 | fi | 
|  | 5602 |  | 
|  | 5603 | # if using gcc on alpha, use -mieee to get (near) full IEEE 754 | 
|  | 5604 | # support.  Without this, treatment of subnormals doesn't follow | 
|  | 5605 | # the standard. | 
|  | 5606 | case $ac_sys_machine in | 
|  | 5607 | alpha*) | 
|  | 5608 | BASECFLAGS="$BASECFLAGS -mieee" | 
|  | 5609 | ;; | 
|  | 5610 | esac | 
|  | 5611 |  | 
|  | 5612 | case $ac_sys_system in | 
|  | 5613 | SCO_SV*) | 
|  | 5614 | BASECFLAGS="$BASECFLAGS -m486 -DSCO5" | 
|  | 5615 | ;; | 
|  | 5616 | # is there any other compiler on Darwin besides gcc? | 
|  | 5617 | Darwin*) | 
|  | 5618 | # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd | 
|  | 5619 | # used to be here, but non-Apple gcc doesn't accept them. | 
| Ronald Oussoren | 666028b | 2010-04-18 19:07:43 +0000 | [diff] [blame] | 5620 | if test "${CC}" = gcc | 
|  | 5621 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5622 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which compiler should be used" >&5 | 
|  | 5623 | $as_echo_n "checking which compiler should be used... " >&6; } | 
| Ronald Oussoren | 666028b | 2010-04-18 19:07:43 +0000 | [diff] [blame] | 5624 | case "${UNIVERSALSDK}" in | 
|  | 5625 | */MacOSX10.4u.sdk) | 
|  | 5626 | # Build using 10.4 SDK, force usage of gcc when the | 
|  | 5627 | # compiler is gcc, otherwise the user will get very | 
|  | 5628 | # confusing error messages when building on OSX 10.6 | 
|  | 5629 | CC=gcc-4.0 | 
|  | 5630 | CPP=cpp-4.0 | 
|  | 5631 | ;; | 
|  | 5632 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
|  | 5634 | $as_echo "$CC" >&6; } | 
| Ronald Oussoren | 666028b | 2010-04-18 19:07:43 +0000 | [diff] [blame] | 5635 | fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5636 |  | 
|  | 5637 |  | 
|  | 5638 | if test "${enable_universalsdk}"; then | 
|  | 5639 | UNIVERSAL_ARCH_FLAGS="" | 
|  | 5640 | if test "$UNIVERSAL_ARCHS" = "32-bit" ; then | 
|  | 5641 | UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386" | 
|  | 5642 | ARCH_RUN_32BIT="" | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 5643 | LIPO_32BIT_FLAGS="" | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5644 | elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then | 
|  | 5645 | UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64" | 
| Ronald Oussoren | 6f6c562 | 2009-12-24 14:03:19 +0000 | [diff] [blame] | 5646 | LIPO_32BIT_FLAGS="" | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 5647 | ARCH_RUN_32BIT="true" | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5648 |  | 
|  | 5649 | elif test "$UNIVERSAL_ARCHS" = "all" ; then | 
|  | 5650 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64" | 
| Ronald Oussoren | 6f6c562 | 2009-12-24 14:03:19 +0000 | [diff] [blame] | 5651 | LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" | 
| Ronald Oussoren | 564f7f2 | 2010-02-11 13:23:08 +0000 | [diff] [blame] | 5652 | ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5653 |  | 
| Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 5654 | elif test "$UNIVERSAL_ARCHS" = "intel" ; then | 
|  | 5655 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64" | 
| Ronald Oussoren | 6f6c562 | 2009-12-24 14:03:19 +0000 | [diff] [blame] | 5656 | LIPO_32BIT_FLAGS="-extract i386" | 
| Ronald Oussoren | 564f7f2 | 2010-02-11 13:23:08 +0000 | [diff] [blame] | 5657 | ARCH_RUN_32BIT="/usr/bin/arch -i386" | 
| Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 5658 |  | 
|  | 5659 | elif test "$UNIVERSAL_ARCHS" = "3-way" ; then | 
|  | 5660 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64" | 
| Ronald Oussoren | 6f6c562 | 2009-12-24 14:03:19 +0000 | [diff] [blame] | 5661 | LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" | 
| Ronald Oussoren | 564f7f2 | 2010-02-11 13:23:08 +0000 | [diff] [blame] | 5662 | ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" | 
| Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 5663 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5664 | else | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 5665 | as_fn_error $? "proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" "$LINENO" 5 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5666 |  | 
|  | 5667 | fi | 
|  | 5668 |  | 
|  | 5669 |  | 
| Ronald Oussoren | 666028b | 2010-04-18 19:07:43 +0000 | [diff] [blame] | 5670 | CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}" | 
|  | 5671 | if test "${UNIVERSALSDK}" != "/" | 
|  | 5672 | then | 
|  | 5673 | CFLAGS="-isysroot ${UNIVERSALSDK} ${CFLAGS}" | 
|  | 5674 | LDFLAGS="-isysroot ${UNIVERSALSDK} ${LDFLAGS}" | 
| Ronald Oussoren | 712979d | 2010-04-20 19:51:33 +0000 | [diff] [blame] | 5675 | CPPFLAGS="-isysroot ${UNIVERSALSDK} ${CPPFLAGS}" | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5676 | fi | 
|  | 5677 | fi | 
|  | 5678 |  | 
|  | 5679 | # Calculate the right deployment target for this build. | 
|  | 5680 | # | 
|  | 5681 | cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'` | 
|  | 5682 | if test ${cur_target} '>' 10.2; then | 
|  | 5683 | cur_target=10.3 | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 5684 | if test ${enable_universalsdk}; then | 
|  | 5685 | if test "${UNIVERSAL_ARCHS}" = "all"; then | 
|  | 5686 | # Ensure that the default platform for a | 
|  | 5687 | # 4-way universal build is OSX 10.5, | 
|  | 5688 | # that's the first OS release where | 
|  | 5689 | # 4-way builds make sense. | 
|  | 5690 | cur_target='10.5' | 
| Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 5691 |  | 
|  | 5692 | elif test "${UNIVERSAL_ARCHS}" = "3-way"; then | 
|  | 5693 | cur_target='10.5' | 
|  | 5694 |  | 
|  | 5695 | elif test "${UNIVERSAL_ARCHS}" = "intel"; then | 
|  | 5696 | cur_target='10.5' | 
|  | 5697 |  | 
|  | 5698 | elif test "${UNIVERSAL_ARCHS}" = "64-bit"; then | 
|  | 5699 | cur_target='10.5' | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 5700 | fi | 
|  | 5701 | else | 
| Ronald Oussoren | e3da75a | 2010-02-11 13:38:58 +0000 | [diff] [blame] | 5702 | if test `/usr/bin/arch` = "i386"; then | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 5703 | # On Intel macs default to a deployment | 
|  | 5704 | # target of 10.4, that's the first OSX | 
|  | 5705 | # release with Intel support. | 
|  | 5706 | cur_target="10.4" | 
|  | 5707 | fi | 
|  | 5708 | fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5709 | fi | 
|  | 5710 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}} | 
|  | 5711 |  | 
|  | 5712 | # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the | 
|  | 5713 | # environment with a value that is the same as what we'll use | 
|  | 5714 | # in the Makefile to ensure that we'll get the same compiler | 
|  | 5715 | # environment during configure and build time. | 
|  | 5716 | MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET" | 
|  | 5717 | export MACOSX_DEPLOYMENT_TARGET | 
|  | 5718 | EXPORT_MACOSX_DEPLOYMENT_TARGET='' | 
|  | 5719 |  | 
|  | 5720 | ;; | 
|  | 5721 | OSF*) | 
|  | 5722 | BASECFLAGS="$BASECFLAGS -mieee" | 
|  | 5723 | ;; | 
|  | 5724 | esac | 
|  | 5725 | ;; | 
|  | 5726 |  | 
|  | 5727 | *) | 
|  | 5728 | case $ac_sys_system in | 
|  | 5729 | OpenUNIX*|UnixWare*) | 
|  | 5730 | BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca " | 
|  | 5731 | ;; | 
|  | 5732 | OSF*) | 
|  | 5733 | BASECFLAGS="$BASECFLAGS -ieee -std" | 
|  | 5734 | ;; | 
|  | 5735 | SCO_SV*) | 
|  | 5736 | BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5" | 
|  | 5737 | ;; | 
|  | 5738 | esac | 
|  | 5739 | ;; | 
|  | 5740 | esac | 
|  | 5741 |  | 
|  | 5742 | if test "$Py_DEBUG" = 'true'; then | 
|  | 5743 | : | 
|  | 5744 | else | 
|  | 5745 | OPT="-DNDEBUG $OPT" | 
|  | 5746 | fi | 
|  | 5747 |  | 
|  | 5748 | if test "$ac_arch_flags" | 
|  | 5749 | then | 
|  | 5750 | BASECFLAGS="$BASECFLAGS $ac_arch_flags" | 
|  | 5751 | fi | 
|  | 5752 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5753 | # Check whether GCC supports PyArg_ParseTuple format | 
|  | 5754 | if test "$GCC" = "yes" | 
|  | 5755 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5756 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc supports ParseTuple __format__" >&5 | 
|  | 5757 | $as_echo_n "checking whether gcc supports ParseTuple __format__... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5758 | save_CFLAGS=$CFLAGS | 
|  | 5759 | CFLAGS="$CFLAGS -Werror" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5760 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5761 | /* end confdefs.h.  */ | 
|  | 5762 |  | 
|  | 5763 | void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2))); | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5764 | int | 
|  | 5765 | main () | 
|  | 5766 | { | 
|  | 5767 |  | 
|  | 5768 | ; | 
|  | 5769 | return 0; | 
|  | 5770 | } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 5771 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5772 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5773 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5774 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 5775 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5776 | $as_echo "#define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1" >>confdefs.h | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5777 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 5778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5779 | $as_echo "yes" >&6; } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 5780 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5781 | else | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 5782 |  | 
|  | 5783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5784 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5785 |  | 
|  | 5786 | fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5787 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 5788 | CFLAGS=$save_CFLAGS | 
|  | 5789 | fi | 
|  | 5790 |  | 
|  | 5791 | # On some compilers, pthreads are available without further options | 
|  | 5792 | # (e.g. MacOS X). On some of these systems, the compiler will not | 
|  | 5793 | # complain if unaccepted options are passed (e.g. gcc on Mac OS X). | 
|  | 5794 | # So we have to see first whether pthreads are available without | 
|  | 5795 | # options before we can check whether -Kpthread improves anything. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5796 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads are available without options" >&5 | 
|  | 5797 | $as_echo_n "checking whether pthreads are available without options... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 5798 | if test "${ac_cv_pthread_is_default+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5799 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5800 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5801 | if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5802 | ac_cv_pthread_is_default=no | 
|  | 5803 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5804 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5805 | /* end confdefs.h.  */ | 
|  | 5806 |  | 
|  | 5807 | #include <pthread.h> | 
|  | 5808 |  | 
|  | 5809 | void* routine(void* p){return NULL;} | 
|  | 5810 |  | 
|  | 5811 | int main(){ | 
|  | 5812 | pthread_t p; | 
|  | 5813 | if(pthread_create(&p,NULL,routine,NULL)!=0) | 
|  | 5814 | return 1; | 
|  | 5815 | (void)pthread_detach(p); | 
|  | 5816 | return 0; | 
|  | 5817 | } | 
|  | 5818 |  | 
|  | 5819 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5820 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5821 |  | 
|  | 5822 | ac_cv_pthread_is_default=yes | 
|  | 5823 | ac_cv_kthread=no | 
|  | 5824 | ac_cv_pthread=no | 
|  | 5825 |  | 
|  | 5826 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5827 | ac_cv_pthread_is_default=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5828 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5829 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 5830 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5831 | fi | 
|  | 5832 |  | 
|  | 5833 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5834 | fi | 
|  | 5835 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_is_default" >&5 | 
|  | 5837 | $as_echo "$ac_cv_pthread_is_default" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5838 |  | 
|  | 5839 |  | 
|  | 5840 | if test $ac_cv_pthread_is_default = yes | 
|  | 5841 | then | 
|  | 5842 | ac_cv_kpthread=no | 
|  | 5843 | else | 
|  | 5844 | # -Kpthread, if available, provides the right #defines | 
|  | 5845 | # and linker options to make pthread_create available | 
|  | 5846 | # Some compilers won't report that they do not support -Kpthread, | 
|  | 5847 | # so we need to run a program to see whether it really made the | 
|  | 5848 | # function available. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5849 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kpthread" >&5 | 
|  | 5850 | $as_echo_n "checking whether $CC accepts -Kpthread... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 5851 | if test "${ac_cv_kpthread+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5852 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5853 | else | 
|  | 5854 | ac_save_cc="$CC" | 
|  | 5855 | CC="$CC -Kpthread" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5856 | if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5857 | ac_cv_kpthread=no | 
|  | 5858 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5859 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5860 | /* end confdefs.h.  */ | 
|  | 5861 |  | 
|  | 5862 | #include <pthread.h> | 
|  | 5863 |  | 
|  | 5864 | void* routine(void* p){return NULL;} | 
|  | 5865 |  | 
|  | 5866 | int main(){ | 
|  | 5867 | pthread_t p; | 
|  | 5868 | if(pthread_create(&p,NULL,routine,NULL)!=0) | 
|  | 5869 | return 1; | 
|  | 5870 | (void)pthread_detach(p); | 
|  | 5871 | return 0; | 
|  | 5872 | } | 
|  | 5873 |  | 
|  | 5874 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5875 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5876 | ac_cv_kpthread=yes | 
|  | 5877 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5878 | ac_cv_kpthread=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5879 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5880 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 5881 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5882 | fi | 
|  | 5883 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5884 | CC="$ac_save_cc" | 
|  | 5885 | fi | 
|  | 5886 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kpthread" >&5 | 
|  | 5888 | $as_echo "$ac_cv_kpthread" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5889 | fi | 
|  | 5890 |  | 
|  | 5891 | if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no | 
|  | 5892 | then | 
|  | 5893 | # -Kthread, if available, provides the right #defines | 
|  | 5894 | # and linker options to make pthread_create available | 
|  | 5895 | # Some compilers won't report that they do not support -Kthread, | 
|  | 5896 | # so we need to run a program to see whether it really made the | 
|  | 5897 | # function available. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5898 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kthread" >&5 | 
|  | 5899 | $as_echo_n "checking whether $CC accepts -Kthread... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 5900 | if test "${ac_cv_kthread+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5901 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5902 | else | 
|  | 5903 | ac_save_cc="$CC" | 
|  | 5904 | CC="$CC -Kthread" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5905 | if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5906 | ac_cv_kthread=no | 
|  | 5907 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5908 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5909 | /* end confdefs.h.  */ | 
|  | 5910 |  | 
|  | 5911 | #include <pthread.h> | 
|  | 5912 |  | 
|  | 5913 | void* routine(void* p){return NULL;} | 
|  | 5914 |  | 
|  | 5915 | int main(){ | 
|  | 5916 | pthread_t p; | 
|  | 5917 | if(pthread_create(&p,NULL,routine,NULL)!=0) | 
|  | 5918 | return 1; | 
|  | 5919 | (void)pthread_detach(p); | 
|  | 5920 | return 0; | 
|  | 5921 | } | 
|  | 5922 |  | 
|  | 5923 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5924 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5925 | ac_cv_kthread=yes | 
|  | 5926 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5927 | ac_cv_kthread=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5928 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5929 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 5930 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5931 | fi | 
|  | 5932 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5933 | CC="$ac_save_cc" | 
|  | 5934 | fi | 
|  | 5935 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kthread" >&5 | 
|  | 5937 | $as_echo "$ac_cv_kthread" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5938 | fi | 
|  | 5939 |  | 
|  | 5940 | if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no | 
|  | 5941 | then | 
|  | 5942 | # -pthread, if available, provides the right #defines | 
|  | 5943 | # and linker options to make pthread_create available | 
|  | 5944 | # Some compilers won't report that they do not support -pthread, | 
|  | 5945 | # so we need to run a program to see whether it really made the | 
|  | 5946 | # function available. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5947 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -pthread" >&5 | 
|  | 5948 | $as_echo_n "checking whether $CC accepts -pthread... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 5949 | if test "${ac_cv_thread+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5950 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5951 | else | 
|  | 5952 | ac_save_cc="$CC" | 
|  | 5953 | CC="$CC -pthread" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5954 | if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5955 | ac_cv_pthread=no | 
|  | 5956 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5957 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5958 | /* end confdefs.h.  */ | 
|  | 5959 |  | 
|  | 5960 | #include <pthread.h> | 
|  | 5961 |  | 
|  | 5962 | void* routine(void* p){return NULL;} | 
|  | 5963 |  | 
|  | 5964 | int main(){ | 
|  | 5965 | pthread_t p; | 
|  | 5966 | if(pthread_create(&p,NULL,routine,NULL)!=0) | 
|  | 5967 | return 1; | 
|  | 5968 | (void)pthread_detach(p); | 
|  | 5969 | return 0; | 
|  | 5970 | } | 
|  | 5971 |  | 
|  | 5972 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5973 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5974 | ac_cv_pthread=yes | 
|  | 5975 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5976 | ac_cv_pthread=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5977 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5978 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 5979 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5980 | fi | 
|  | 5981 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5982 | CC="$ac_save_cc" | 
|  | 5983 | fi | 
|  | 5984 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread" >&5 | 
|  | 5986 | $as_echo "$ac_cv_pthread" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5987 | fi | 
|  | 5988 |  | 
|  | 5989 | # If we have set a CC compiler flag for thread support then | 
|  | 5990 | # check if it works for CXX, too. | 
|  | 5991 | ac_cv_cxx_thread=no | 
|  | 5992 | if test ! -z "$CXX" | 
|  | 5993 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5994 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX also accepts flags for thread support" >&5 | 
|  | 5995 | $as_echo_n "checking whether $CXX also accepts flags for thread support... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5996 | ac_save_cxx="$CXX" | 
|  | 5997 |  | 
|  | 5998 | if test "$ac_cv_kpthread" = "yes" | 
|  | 5999 | then | 
|  | 6000 | CXX="$CXX -Kpthread" | 
|  | 6001 | ac_cv_cxx_thread=yes | 
|  | 6002 | elif test "$ac_cv_kthread" = "yes" | 
|  | 6003 | then | 
|  | 6004 | CXX="$CXX -Kthread" | 
|  | 6005 | ac_cv_cxx_thread=yes | 
|  | 6006 | elif test "$ac_cv_pthread" = "yes" | 
|  | 6007 | then | 
|  | 6008 | CXX="$CXX -pthread" | 
|  | 6009 | ac_cv_cxx_thread=yes | 
|  | 6010 | fi | 
|  | 6011 |  | 
|  | 6012 | if test $ac_cv_cxx_thread = yes | 
|  | 6013 | then | 
|  | 6014 | echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext | 
|  | 6015 | $CXX -c conftest.$ac_ext 2>&5 | 
|  | 6016 | if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ | 
|  | 6017 | && test -s conftest$ac_exeext && ./conftest$ac_exeext | 
|  | 6018 | then | 
|  | 6019 | ac_cv_cxx_thread=yes | 
|  | 6020 | else | 
|  | 6021 | ac_cv_cxx_thread=no | 
|  | 6022 | fi | 
|  | 6023 | rm -fr conftest* | 
|  | 6024 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_thread" >&5 | 
|  | 6026 | $as_echo "$ac_cv_cxx_thread" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6027 | fi | 
|  | 6028 | CXX="$ac_save_cxx" | 
|  | 6029 |  | 
|  | 6030 |  | 
|  | 6031 | # checks for header files | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6032 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | 
|  | 6033 | $as_echo_n "checking for ANSI C header files... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 6034 | if test "${ac_cv_header_stdc+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6035 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6036 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6037 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6038 | /* end confdefs.h.  */ | 
|  | 6039 | #include <stdlib.h> | 
|  | 6040 | #include <stdarg.h> | 
|  | 6041 | #include <string.h> | 
|  | 6042 | #include <float.h> | 
|  | 6043 |  | 
|  | 6044 | int | 
|  | 6045 | main () | 
|  | 6046 | { | 
|  | 6047 |  | 
|  | 6048 | ; | 
|  | 6049 | return 0; | 
|  | 6050 | } | 
|  | 6051 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6052 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6053 | ac_cv_header_stdc=yes | 
|  | 6054 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6055 | ac_cv_header_stdc=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6056 | fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6057 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 6058 |  | 
|  | 6059 | if test $ac_cv_header_stdc = yes; then | 
|  | 6060 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6061 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6062 | /* end confdefs.h.  */ | 
|  | 6063 | #include <string.h> | 
|  | 6064 |  | 
|  | 6065 | _ACEOF | 
|  | 6066 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6067 | $EGREP "memchr" >/dev/null 2>&1; then : | 
|  | 6068 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6069 | else | 
|  | 6070 | ac_cv_header_stdc=no | 
|  | 6071 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 6072 | rm -f conftest* | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6073 |  | 
|  | 6074 | fi | 
|  | 6075 |  | 
|  | 6076 | if test $ac_cv_header_stdc = yes; then | 
|  | 6077 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6078 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6079 | /* end confdefs.h.  */ | 
|  | 6080 | #include <stdlib.h> | 
|  | 6081 |  | 
|  | 6082 | _ACEOF | 
|  | 6083 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6084 | $EGREP "free" >/dev/null 2>&1; then : | 
|  | 6085 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6086 | else | 
|  | 6087 | ac_cv_header_stdc=no | 
|  | 6088 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 6089 | rm -f conftest* | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6090 |  | 
|  | 6091 | fi | 
|  | 6092 |  | 
|  | 6093 | if test $ac_cv_header_stdc = yes; then | 
|  | 6094 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6095 | if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6096 | : | 
|  | 6097 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6098 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6099 | /* end confdefs.h.  */ | 
|  | 6100 | #include <ctype.h> | 
|  | 6101 | #include <stdlib.h> | 
|  | 6102 | #if ((' ' & 0x0FF) == 0x020) | 
|  | 6103 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | 
|  | 6104 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | 
|  | 6105 | #else | 
|  | 6106 | # define ISLOWER(c) \ | 
|  | 6107 | (('a' <= (c) && (c) <= 'i') \ | 
|  | 6108 | || ('j' <= (c) && (c) <= 'r') \ | 
|  | 6109 | || ('s' <= (c) && (c) <= 'z')) | 
|  | 6110 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | 
|  | 6111 | #endif | 
|  | 6112 |  | 
|  | 6113 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | 
|  | 6114 | int | 
|  | 6115 | main () | 
|  | 6116 | { | 
|  | 6117 | int i; | 
|  | 6118 | for (i = 0; i < 256; i++) | 
|  | 6119 | if (XOR (islower (i), ISLOWER (i)) | 
|  | 6120 | || toupper (i) != TOUPPER (i)) | 
|  | 6121 | return 2; | 
|  | 6122 | return 0; | 
|  | 6123 | } | 
|  | 6124 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6125 | if ac_fn_c_try_run "$LINENO"; then : | 
|  | 6126 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6127 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6128 | ac_cv_header_stdc=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6129 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6130 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 6131 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6132 | fi | 
|  | 6133 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6134 | fi | 
|  | 6135 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6136 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | 
|  | 6137 | $as_echo "$ac_cv_header_stdc" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6138 | if test $ac_cv_header_stdc = yes; then | 
|  | 6139 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6140 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6141 |  | 
|  | 6142 | fi | 
|  | 6143 |  | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 6144 | for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \ | 
|  | 6145 | fcntl.h grp.h \ | 
| Christian Heimes | bbe741d | 2008-03-28 10:53:29 +0000 | [diff] [blame] | 6146 | 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] | 6147 | 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] | 6148 | unistd.h utime.h \ | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 6149 | sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \ | 
|  | 6150 | sys/lock.h sys/mkdev.h sys/modem.h \ | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 6151 | 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] | 6152 | sys/termio.h sys/time.h \ | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 6153 | 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] | 6154 | sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \ | 
| Ronald Oussoren | 755740f | 2010-02-07 19:56:39 +0000 | [diff] [blame] | 6155 | bluetooth/bluetooth.h linux/tipc.h spawn.h util.h | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6156 | do : | 
|  | 6157 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 6158 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 6159 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6160 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6161 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6162 | _ACEOF | 
|  | 6163 |  | 
|  | 6164 | fi | 
|  | 6165 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6166 | done | 
|  | 6167 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6168 | ac_header_dirent=no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6169 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6170 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | 
|  | 6171 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 | 
|  | 6172 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 6173 | if eval "test \"\${$as_ac_Header+set}\"" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6174 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6175 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +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.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6178 | #include <sys/types.h> | 
|  | 6179 | #include <$ac_hdr> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6180 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6181 | int | 
|  | 6182 | main () | 
|  | 6183 | { | 
|  | 6184 | if ((DIR *) 0) | 
|  | 6185 | return 0; | 
|  | 6186 | ; | 
|  | 6187 | return 0; | 
|  | 6188 | } | 
|  | 6189 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6190 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6191 | eval "$as_ac_Header=yes" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6192 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6193 | eval "$as_ac_Header=no" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6194 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6195 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6196 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6197 | eval ac_res=\$$as_ac_Header | 
|  | 6198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
|  | 6199 | $as_echo "$ac_res" >&6; } | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 6200 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6201 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6202 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6203 | _ACEOF | 
|  | 6204 |  | 
|  | 6205 | ac_header_dirent=$ac_hdr; break | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6206 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6207 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6208 | done | 
|  | 6209 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | 
|  | 6210 | if test $ac_header_dirent = dirent.h; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6211 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 | 
|  | 6212 | $as_echo_n "checking for library containing opendir... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 6213 | if test "${ac_cv_search_opendir+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6214 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6215 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6216 | ac_func_search_save_LIBS=$LIBS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6217 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6218 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6219 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6220 | /* Override any GCC internal prototype to avoid an error. | 
|  | 6221 | Use char because int might match the return type of a GCC | 
|  | 6222 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6223 | #ifdef __cplusplus | 
|  | 6224 | extern "C" | 
|  | 6225 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6226 | char opendir (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6227 | int | 
|  | 6228 | main () | 
|  | 6229 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6230 | return opendir (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6231 | ; | 
|  | 6232 | return 0; | 
|  | 6233 | } | 
|  | 6234 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6235 | for ac_lib in '' dir; do | 
|  | 6236 | if test -z "$ac_lib"; then | 
|  | 6237 | ac_res="none required" | 
|  | 6238 | else | 
|  | 6239 | ac_res=-l$ac_lib | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 6240 | LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6241 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6242 | if ac_fn_c_try_link "$LINENO"; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6243 | ac_cv_search_opendir=$ac_res | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6244 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6245 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 6246 | conftest$ac_exeext | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 6247 | if test "${ac_cv_search_opendir+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6248 | break | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 6249 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6250 | done | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 6251 | if test "${ac_cv_search_opendir+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6252 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6253 | else | 
|  | 6254 | ac_cv_search_opendir=no | 
|  | 6255 | fi | 
|  | 6256 | rm conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6257 | LIBS=$ac_func_search_save_LIBS | 
|  | 6258 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 | 
|  | 6260 | $as_echo "$ac_cv_search_opendir" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6261 | ac_res=$ac_cv_search_opendir | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6262 | if test "$ac_res" != no; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6263 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6264 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6265 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6266 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6267 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6268 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 | 
|  | 6269 | $as_echo_n "checking for library containing opendir... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 6270 | if test "${ac_cv_search_opendir+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6271 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6272 | else | 
|  | 6273 | ac_func_search_save_LIBS=$LIBS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6274 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6275 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6276 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6277 | /* Override any GCC internal prototype to avoid an error. | 
|  | 6278 | Use char because int might match the return type of a GCC | 
|  | 6279 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6280 | #ifdef __cplusplus | 
|  | 6281 | extern "C" | 
|  | 6282 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6283 | char opendir (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6284 | int | 
|  | 6285 | main () | 
|  | 6286 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6287 | return opendir (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6288 | ; | 
|  | 6289 | return 0; | 
|  | 6290 | } | 
|  | 6291 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6292 | for ac_lib in '' x; do | 
|  | 6293 | if test -z "$ac_lib"; then | 
|  | 6294 | ac_res="none required" | 
|  | 6295 | else | 
|  | 6296 | ac_res=-l$ac_lib | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 6297 | LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6298 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6299 | if ac_fn_c_try_link "$LINENO"; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6300 | ac_cv_search_opendir=$ac_res | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6301 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6302 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 6303 | conftest$ac_exeext | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 6304 | if test "${ac_cv_search_opendir+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6305 | break | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 6306 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6307 | done | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 6308 | if test "${ac_cv_search_opendir+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6309 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6310 | else | 
|  | 6311 | ac_cv_search_opendir=no | 
|  | 6312 | fi | 
|  | 6313 | rm conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6314 | LIBS=$ac_func_search_save_LIBS | 
|  | 6315 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6316 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 | 
|  | 6317 | $as_echo "$ac_cv_search_opendir" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6318 | ac_res=$ac_cv_search_opendir | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6319 | if test "$ac_res" != no; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6320 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6321 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6322 | fi | 
|  | 6323 |  | 
|  | 6324 | fi | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6325 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6326 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5 | 
|  | 6327 | $as_echo_n "checking whether sys/types.h defines makedev... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 6328 | if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6329 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6330 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6331 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6332 | /* end confdefs.h.  */ | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6333 | #include <sys/types.h> | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6334 | int | 
|  | 6335 | main () | 
|  | 6336 | { | 
|  | 6337 | return makedev(0, 0); | 
|  | 6338 | ; | 
|  | 6339 | return 0; | 
|  | 6340 | } | 
|  | 6341 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6342 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6343 | ac_cv_header_sys_types_h_makedev=yes | 
|  | 6344 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6345 | ac_cv_header_sys_types_h_makedev=no | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6346 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6347 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 6348 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6349 |  | 
|  | 6350 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5 | 
|  | 6352 | $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; } | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6353 |  | 
|  | 6354 | if test $ac_cv_header_sys_types_h_makedev = no; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6355 | ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default" | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 6356 | if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6357 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6358 | $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6359 |  | 
|  | 6360 | fi | 
|  | 6361 |  | 
|  | 6362 |  | 
|  | 6363 |  | 
|  | 6364 | if test $ac_cv_header_sys_mkdev_h = no; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6365 | ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default" | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 6366 | if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6367 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6368 | $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6369 |  | 
|  | 6370 | fi | 
|  | 6371 |  | 
|  | 6372 |  | 
|  | 6373 | fi | 
|  | 6374 | fi | 
|  | 6375 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6376 |  | 
| Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6377 | # On Solaris, term.h requires curses.h | 
| Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6378 | for ac_header in term.h | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6379 | do : | 
|  | 6380 | 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] | 6381 | #ifdef HAVE_CURSES_H | 
|  | 6382 | #include <curses.h> | 
|  | 6383 | #endif | 
|  | 6384 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6385 | " | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 6386 | 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] | 6387 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6388 | #define HAVE_TERM_H 1 | 
| Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6389 | _ACEOF | 
| Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6390 |  | 
| Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6391 | fi | 
|  | 6392 |  | 
|  | 6393 | done | 
| Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6394 |  | 
|  | 6395 |  | 
| Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6396 | # On Linux, netlink.h requires asm/types.h | 
| Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6397 | for ac_header in linux/netlink.h | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6398 | do : | 
|  | 6399 | 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] | 6400 | #ifdef HAVE_ASM_TYPES_H | 
|  | 6401 | #include <asm/types.h> | 
|  | 6402 | #endif | 
|  | 6403 | #ifdef HAVE_SYS_SOCKET_H | 
|  | 6404 | #include <sys/socket.h> | 
|  | 6405 | #endif | 
|  | 6406 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6407 | " | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 6408 | 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] | 6409 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6410 | #define HAVE_LINUX_NETLINK_H 1 | 
| Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6411 | _ACEOF | 
|  | 6412 |  | 
|  | 6413 | fi | 
|  | 6414 |  | 
|  | 6415 | done | 
|  | 6416 |  | 
|  | 6417 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6418 | # checks for typedefs | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6419 | was_it_defined=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6420 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t in time.h" >&5 | 
|  | 6421 | $as_echo_n "checking for clock_t in time.h... " >&6; } | 
|  | 6422 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6423 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6424 | #include <time.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6425 |  | 
|  | 6426 | _ACEOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6427 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6428 | $EGREP "clock_t" >/dev/null 2>&1; then : | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6429 | was_it_defined=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6430 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6431 |  | 
|  | 6432 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6433 | $as_echo "#define clock_t long" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6434 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 6435 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6436 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 6437 | rm -f conftest* | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6438 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5 | 
|  | 6440 | $as_echo "$was_it_defined" >&6; } | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6441 |  | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6442 | # Check whether using makedev requires defining _OSF_SOURCE | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6443 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for makedev" >&5 | 
|  | 6444 | $as_echo_n "checking for makedev... " >&6; } | 
|  | 6445 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6446 | /* end confdefs.h.  */ | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6447 |  | 
| Jesus Cea | 740f53a | 2010-04-28 11:35:30 +0000 | [diff] [blame] | 6448 | #if defined(MAJOR_IN_MKDEV) | 
|  | 6449 | #include <sys/mkdev.h> | 
|  | 6450 | #elif defined(MAJOR_IN_SYSMACROS) | 
|  | 6451 | #include <sys/sysmacros.h> | 
|  | 6452 | #else | 
|  | 6453 | #include <sys/types.h> | 
|  | 6454 | #endif | 
|  | 6455 |  | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6456 | int | 
|  | 6457 | main () | 
|  | 6458 | { | 
| Jesus Cea | 740f53a | 2010-04-28 11:35:30 +0000 | [diff] [blame] | 6459 |  | 
|  | 6460 | makedev(0, 0) | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6461 | ; | 
|  | 6462 | return 0; | 
|  | 6463 | } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6464 |  | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6465 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6466 | if ac_fn_c_try_link "$LINENO"; then : | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6467 | ac_cv_has_makedev=yes | 
|  | 6468 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6469 | ac_cv_has_makedev=no | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6470 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6471 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 6472 | conftest$ac_exeext conftest.$ac_ext | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6473 | if test "$ac_cv_has_makedev" = "no"; then | 
|  | 6474 | # we didn't link, try if _OSF_SOURCE will allow us to link | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6475 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6476 | /* end confdefs.h.  */ | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6477 |  | 
| Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 6478 | #define _OSF_SOURCE 1 | 
|  | 6479 | #include <sys/types.h> | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6480 |  | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6481 | int | 
|  | 6482 | main () | 
|  | 6483 | { | 
|  | 6484 | makedev(0, 0) | 
|  | 6485 | ; | 
|  | 6486 | return 0; | 
|  | 6487 | } | 
|  | 6488 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6489 | if ac_fn_c_try_link "$LINENO"; then : | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6490 | ac_cv_has_makedev=yes | 
|  | 6491 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6492 | ac_cv_has_makedev=no | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6493 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6494 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 6495 | conftest$ac_exeext conftest.$ac_ext | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6496 | if test "$ac_cv_has_makedev" = "yes"; then | 
|  | 6497 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6498 | $as_echo "#define _OSF_SOURCE 1" >>confdefs.h | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6499 |  | 
|  | 6500 | fi | 
|  | 6501 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6502 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_makedev" >&5 | 
|  | 6503 | $as_echo "$ac_cv_has_makedev" >&6; } | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6504 | if test "$ac_cv_has_makedev" = "yes"; then | 
|  | 6505 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6506 | $as_echo "#define HAVE_MAKEDEV 1" >>confdefs.h | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6507 |  | 
|  | 6508 | fi | 
|  | 6509 |  | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6510 | # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in | 
|  | 6511 | # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are | 
|  | 6512 | # defined, but the compiler does not support pragma redefine_extname, | 
|  | 6513 | # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit | 
|  | 6514 | # structures (such as rlimit64) without declaring them. As a | 
|  | 6515 | # work-around, disable LFS on such configurations | 
|  | 6516 |  | 
|  | 6517 | use_lfs=yes | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6518 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking Solaris LFS bug" >&5 | 
|  | 6519 | $as_echo_n "checking Solaris LFS bug... " >&6; } | 
|  | 6520 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6521 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6522 |  | 
|  | 6523 | #define _LARGEFILE_SOURCE 1 | 
|  | 6524 | #define _FILE_OFFSET_BITS 64 | 
|  | 6525 | #include <sys/resource.h> | 
|  | 6526 |  | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6527 | int | 
|  | 6528 | main () | 
|  | 6529 | { | 
|  | 6530 | struct rlimit foo; | 
|  | 6531 | ; | 
|  | 6532 | return 0; | 
|  | 6533 | } | 
|  | 6534 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6535 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6536 | sol_lfs_bug=no | 
|  | 6537 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6538 | sol_lfs_bug=yes | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6539 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6540 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sol_lfs_bug" >&5 | 
|  | 6542 | $as_echo "$sol_lfs_bug" >&6; } | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6543 | if test "$sol_lfs_bug" = "yes"; then | 
|  | 6544 | use_lfs=no | 
|  | 6545 | fi | 
|  | 6546 |  | 
|  | 6547 | if test "$use_lfs" = "yes"; then | 
| Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6548 | # Two defines needed to enable largefile support on various platforms | 
|  | 6549 | # These may affect some typedefs | 
| Georg Brandl | 216e404 | 2011-02-19 08:58:23 +0000 | [diff] [blame] | 6550 | case $ac_sys_system/$ac_sys_release in | 
|  | 6551 | AIX*) | 
|  | 6552 |  | 
|  | 6553 | $as_echo "#define _LARGE_FILES 1" >>confdefs.h | 
|  | 6554 |  | 
|  | 6555 | ;; | 
|  | 6556 | esac | 
| Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6557 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6558 | $as_echo "#define _LARGEFILE_SOURCE 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6559 |  | 
|  | 6560 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6561 | $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h | 
| Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6562 |  | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6563 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6564 |  | 
| Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 6565 | # Add some code to confdefs.h so that the test for off_t works on SCO | 
|  | 6566 | cat >> confdefs.h <<\EOF | 
|  | 6567 | #if defined(SCO_DS) | 
|  | 6568 | #undef _OFF_T | 
|  | 6569 | #endif | 
|  | 6570 | EOF | 
|  | 6571 |  | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6572 | # Type availability checks | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6573 | ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 6574 | if test "x$ac_cv_type_mode_t" = x""yes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6575 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6576 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6577 |  | 
|  | 6578 | cat >>confdefs.h <<_ACEOF | 
|  | 6579 | #define mode_t int | 
|  | 6580 | _ACEOF | 
|  | 6581 |  | 
|  | 6582 | fi | 
|  | 6583 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6584 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 6585 | if test "x$ac_cv_type_off_t" = x""yes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6586 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6587 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6588 |  | 
|  | 6589 | cat >>confdefs.h <<_ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6590 | #define off_t long int | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6591 | _ACEOF | 
|  | 6592 |  | 
|  | 6593 | fi | 
|  | 6594 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6595 | ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 6596 | if test "x$ac_cv_type_pid_t" = x""yes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6597 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6598 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6599 |  | 
|  | 6600 | cat >>confdefs.h <<_ACEOF | 
|  | 6601 | #define pid_t int | 
|  | 6602 | _ACEOF | 
|  | 6603 |  | 
|  | 6604 | fi | 
|  | 6605 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6606 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6607 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | bada4c3 | 2010-04-25 21:18:48 +0000 | [diff] [blame] | 6608 | #define RETSIGTYPE void | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6609 | _ACEOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6610 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6611 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 6612 | if test "x$ac_cv_type_size_t" = x""yes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6613 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6614 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6615 |  | 
|  | 6616 | cat >>confdefs.h <<_ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6617 | #define size_t unsigned int | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6618 | _ACEOF | 
|  | 6619 |  | 
|  | 6620 | fi | 
|  | 6621 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6622 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 | 
|  | 6623 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 6624 | if test "${ac_cv_type_uid_t+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6625 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6626 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6627 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6628 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6629 | #include <sys/types.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6630 |  | 
|  | 6631 | _ACEOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6632 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6633 | $EGREP "uid_t" >/dev/null 2>&1; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6634 | ac_cv_type_uid_t=yes | 
|  | 6635 | else | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6636 | ac_cv_type_uid_t=no | 
|  | 6637 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 6638 | rm -f conftest* | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6639 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6640 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 | 
|  | 6642 | $as_echo "$ac_cv_type_uid_t" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6643 | if test $ac_cv_type_uid_t = no; then | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6644 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6645 | $as_echo "#define uid_t int" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6646 |  | 
|  | 6647 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6648 | $as_echo "#define gid_t int" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6649 |  | 
|  | 6650 | fi | 
|  | 6651 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6652 | ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" | 
|  | 6653 | case $ac_cv_c_uint32_t in #( | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 6654 | no|yes) ;; #( | 
|  | 6655 | *) | 
|  | 6656 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6657 | $as_echo "#define _UINT32_T 1" >>confdefs.h | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 6658 |  | 
|  | 6659 |  | 
|  | 6660 | cat >>confdefs.h <<_ACEOF | 
|  | 6661 | #define uint32_t $ac_cv_c_uint32_t | 
|  | 6662 | _ACEOF | 
|  | 6663 | ;; | 
|  | 6664 | esac | 
|  | 6665 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6666 | ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t" | 
|  | 6667 | case $ac_cv_c_uint64_t in #( | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 6668 | no|yes) ;; #( | 
|  | 6669 | *) | 
|  | 6670 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6671 | $as_echo "#define _UINT64_T 1" >>confdefs.h | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 6672 |  | 
|  | 6673 |  | 
|  | 6674 | cat >>confdefs.h <<_ACEOF | 
|  | 6675 | #define uint64_t $ac_cv_c_uint64_t | 
|  | 6676 | _ACEOF | 
|  | 6677 | ;; | 
|  | 6678 | esac | 
|  | 6679 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6680 | ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" | 
|  | 6681 | case $ac_cv_c_int32_t in #( | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 6682 | no|yes) ;; #( | 
|  | 6683 | *) | 
|  | 6684 |  | 
|  | 6685 | cat >>confdefs.h <<_ACEOF | 
|  | 6686 | #define int32_t $ac_cv_c_int32_t | 
|  | 6687 | _ACEOF | 
|  | 6688 | ;; | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 6689 | esac | 
|  | 6690 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6691 | ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t" | 
|  | 6692 | case $ac_cv_c_int64_t in #( | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 6693 | no|yes) ;; #( | 
|  | 6694 | *) | 
|  | 6695 |  | 
|  | 6696 | cat >>confdefs.h <<_ACEOF | 
|  | 6697 | #define int64_t $ac_cv_c_int64_t | 
|  | 6698 | _ACEOF | 
|  | 6699 | ;; | 
| Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 6700 | esac | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6701 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6702 | ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 6703 | if test "x$ac_cv_type_ssize_t" = x""yes; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6704 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6705 | $as_echo "#define HAVE_SSIZE_T 1" >>confdefs.h | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6706 |  | 
|  | 6707 | fi | 
|  | 6708 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 6709 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6710 | # Sizes of various common basic types | 
| Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 6711 | # ANSI C requires sizeof(char) == 1, so no need to check it | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6712 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 6713 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 6714 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 6715 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 | 
|  | 6717 | $as_echo_n "checking size of int... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 6718 | if test "${ac_cv_sizeof_int+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6719 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6720 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6721 | 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] | 6722 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6723 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6724 | if test "$ac_cv_type_int" = yes; then | 
|  | 6725 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 6726 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 6727 | as_fn_error 77 "cannot compute sizeof (int) | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 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_int=0 | 
|  | 6731 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6732 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6733 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6734 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 | 
|  | 6736 | $as_echo "$ac_cv_sizeof_int" >&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 | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6741 | #define SIZEOF_INT $ac_cv_sizeof_int | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6742 | _ACEOF | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +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. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6749 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 | 
|  | 6750 | $as_echo_n "checking size of long... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 6751 | if test "${ac_cv_sizeof_long+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +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 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6754 | 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] | 6755 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6756 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6757 | if test "$ac_cv_type_long" = yes; then | 
|  | 6758 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 6759 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 6760 | as_fn_error 77 "cannot compute sizeof (long) | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 6761 | See \`config.log' for more details" "$LINENO" 5 ; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6762 | else | 
|  | 6763 | ac_cv_sizeof_long=0 | 
|  | 6764 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6765 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6766 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6767 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 | 
|  | 6769 | $as_echo "$ac_cv_sizeof_long" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6770 |  | 
|  | 6771 |  | 
|  | 6772 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6773 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6774 | #define SIZEOF_LONG $ac_cv_sizeof_long | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6775 | _ACEOF | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6776 |  | 
|  | 6777 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6778 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 6779 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 6780 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 6781 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6782 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 | 
|  | 6783 | $as_echo_n "checking size of void *... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 6784 | if test "${ac_cv_sizeof_void_p+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6785 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6786 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6787 | 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] | 6788 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6789 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6790 | if test "$ac_cv_type_void_p" = yes; then | 
|  | 6791 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 6792 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 6793 | as_fn_error 77 "cannot compute sizeof (void *) | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 6794 | See \`config.log' for more details" "$LINENO" 5 ; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6795 | else | 
|  | 6796 | ac_cv_sizeof_void_p=0 | 
|  | 6797 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6798 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6799 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6800 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 | 
|  | 6802 | $as_echo "$ac_cv_sizeof_void_p" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6803 |  | 
|  | 6804 |  | 
|  | 6805 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6806 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6807 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6808 | _ACEOF | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6809 |  | 
|  | 6810 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6811 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 6812 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 6813 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 6814 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6815 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 | 
|  | 6816 | $as_echo_n "checking size of short... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 6817 | if test "${ac_cv_sizeof_short+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6818 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6819 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6820 | 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] | 6821 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6822 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6823 | if test "$ac_cv_type_short" = yes; then | 
|  | 6824 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 6825 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 6826 | as_fn_error 77 "cannot compute sizeof (short) | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 6827 | See \`config.log' for more details" "$LINENO" 5 ; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6828 | else | 
|  | 6829 | ac_cv_sizeof_short=0 | 
|  | 6830 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6831 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6832 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6833 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 | 
|  | 6835 | $as_echo "$ac_cv_sizeof_short" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6836 |  | 
|  | 6837 |  | 
|  | 6838 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6839 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6840 | #define SIZEOF_SHORT $ac_cv_sizeof_short | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6841 | _ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6842 |  | 
|  | 6843 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6844 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 6845 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 6846 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 6847 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6848 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5 | 
|  | 6849 | $as_echo_n "checking size of float... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 6850 | if test "${ac_cv_sizeof_float+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6851 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6852 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6853 | 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] | 6854 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6855 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6856 | if test "$ac_cv_type_float" = yes; then | 
|  | 6857 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 6858 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 6859 | as_fn_error 77 "cannot compute sizeof (float) | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 6860 | See \`config.log' for more details" "$LINENO" 5 ; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6861 | else | 
|  | 6862 | ac_cv_sizeof_float=0 | 
|  | 6863 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6864 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6865 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6866 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5 | 
|  | 6868 | $as_echo "$ac_cv_sizeof_float" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6869 |  | 
|  | 6870 |  | 
|  | 6871 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6872 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6873 | #define SIZEOF_FLOAT $ac_cv_sizeof_float | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6874 | _ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6875 |  | 
|  | 6876 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6877 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 6878 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 6879 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 6880 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6881 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5 | 
|  | 6882 | $as_echo_n "checking size of double... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 6883 | if test "${ac_cv_sizeof_double+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6884 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6885 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6886 | 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] | 6887 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6888 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6889 | if test "$ac_cv_type_double" = yes; then | 
|  | 6890 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 6891 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 6892 | as_fn_error 77 "cannot compute sizeof (double) | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 6893 | See \`config.log' for more details" "$LINENO" 5 ; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6894 | else | 
|  | 6895 | ac_cv_sizeof_double=0 | 
|  | 6896 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6897 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6898 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6899 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5 | 
|  | 6901 | $as_echo "$ac_cv_sizeof_double" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6902 |  | 
|  | 6903 |  | 
|  | 6904 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6905 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6906 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6907 | _ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6908 |  | 
|  | 6909 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6910 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 6911 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 6912 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 6913 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6914 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of fpos_t" >&5 | 
|  | 6915 | $as_echo_n "checking size of fpos_t... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 6916 | if test "${ac_cv_sizeof_fpos_t+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6917 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6918 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6919 | 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] | 6920 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6921 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6922 | if test "$ac_cv_type_fpos_t" = yes; then | 
|  | 6923 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 6924 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 6925 | as_fn_error 77 "cannot compute sizeof (fpos_t) | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 6926 | See \`config.log' for more details" "$LINENO" 5 ; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6927 | else | 
|  | 6928 | ac_cv_sizeof_fpos_t=0 | 
|  | 6929 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6930 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6931 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6932 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_fpos_t" >&5 | 
|  | 6934 | $as_echo "$ac_cv_sizeof_fpos_t" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6935 |  | 
|  | 6936 |  | 
|  | 6937 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6938 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 6939 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6940 | _ACEOF | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 6941 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6942 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6943 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 6944 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 6945 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 6946 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6947 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 | 
|  | 6948 | $as_echo_n "checking size of size_t... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 6949 | if test "${ac_cv_sizeof_size_t+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6950 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6951 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6952 | 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] | 6953 |  | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6954 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6955 | if test "$ac_cv_type_size_t" = yes; then | 
|  | 6956 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 6957 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 6958 | as_fn_error 77 "cannot compute sizeof (size_t) | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 6959 | See \`config.log' for more details" "$LINENO" 5 ; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6960 | else | 
|  | 6961 | ac_cv_sizeof_size_t=0 | 
|  | 6962 | fi | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6963 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6964 |  | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6965 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 | 
|  | 6967 | $as_echo "$ac_cv_sizeof_size_t" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6968 |  | 
|  | 6969 |  | 
|  | 6970 |  | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6971 | cat >>confdefs.h <<_ACEOF | 
|  | 6972 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t | 
|  | 6973 | _ACEOF | 
|  | 6974 |  | 
|  | 6975 |  | 
| Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 6976 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 6977 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 6978 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 6979 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6980 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pid_t" >&5 | 
|  | 6981 | $as_echo_n "checking size of pid_t... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 6982 | if test "${ac_cv_sizeof_pid_t+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6983 | $as_echo_n "(cached) " >&6 | 
| Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 6984 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6985 | 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] | 6986 |  | 
| Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 6987 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6988 | if test "$ac_cv_type_pid_t" = yes; then | 
|  | 6989 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 6990 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 6991 | as_fn_error 77 "cannot compute sizeof (pid_t) | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 6992 | See \`config.log' for more details" "$LINENO" 5 ; } | 
| Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 6993 | else | 
|  | 6994 | ac_cv_sizeof_pid_t=0 | 
|  | 6995 | fi | 
|  | 6996 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6997 |  | 
| Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 6998 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pid_t" >&5 | 
|  | 7000 | $as_echo "$ac_cv_sizeof_pid_t" >&6; } | 
| Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 7001 |  | 
|  | 7002 |  | 
|  | 7003 |  | 
|  | 7004 | cat >>confdefs.h <<_ACEOF | 
|  | 7005 | #define SIZEOF_PID_T $ac_cv_sizeof_pid_t | 
|  | 7006 | _ACEOF | 
|  | 7007 |  | 
|  | 7008 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7009 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7010 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support" >&5 | 
|  | 7011 | $as_echo_n "checking for long long support... " >&6; } | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7012 | have_long_long=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7013 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7014 | /* end confdefs.h.  */ | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7015 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7016 | int | 
|  | 7017 | main () | 
|  | 7018 | { | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7019 | long long x; x = (long long)0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7020 | ; | 
|  | 7021 | return 0; | 
|  | 7022 | } | 
|  | 7023 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7024 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7025 |  | 
|  | 7026 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7027 | $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7028 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 7029 | have_long_long=yes | 
|  | 7030 |  | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7031 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7032 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_long_long" >&5 | 
|  | 7034 | $as_echo "$have_long_long" >&6; } | 
| Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 7035 | if test "$have_long_long" = yes ; then | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7036 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 7037 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 7038 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 7039 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7040 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 | 
|  | 7041 | $as_echo_n "checking size of long long... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 7042 | if test "${ac_cv_sizeof_long_long+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7043 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7044 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7045 | 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] | 7046 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7047 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7048 | if test "$ac_cv_type_long_long" = yes; then | 
|  | 7049 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 7050 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 7051 | as_fn_error 77 "cannot compute sizeof (long long) | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 7052 | See \`config.log' for more details" "$LINENO" 5 ; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7053 | else | 
|  | 7054 | ac_cv_sizeof_long_long=0 | 
|  | 7055 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7056 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7057 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7058 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 | 
|  | 7060 | $as_echo "$ac_cv_sizeof_long_long" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7061 |  | 
|  | 7062 |  | 
|  | 7063 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7064 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7065 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7066 | _ACEOF | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7067 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7068 |  | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7069 | fi | 
|  | 7070 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7071 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support" >&5 | 
|  | 7072 | $as_echo_n "checking for long double support... " >&6; } | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 7073 | have_long_double=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7074 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 7075 | /* end confdefs.h.  */ | 
|  | 7076 |  | 
|  | 7077 | int | 
|  | 7078 | main () | 
|  | 7079 | { | 
|  | 7080 | long double x; x = (long double)0; | 
|  | 7081 | ; | 
|  | 7082 | return 0; | 
|  | 7083 | } | 
|  | 7084 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7085 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 7086 |  | 
|  | 7087 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7088 | $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 7089 |  | 
|  | 7090 | have_long_double=yes | 
|  | 7091 |  | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 7092 | fi | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 7093 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_long_double" >&5 | 
|  | 7095 | $as_echo "$have_long_double" >&6; } | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 7096 | if test "$have_long_double" = yes ; then | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 7097 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 7098 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 7099 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 7100 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7101 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5 | 
|  | 7102 | $as_echo_n "checking size of long double... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 7103 | if test "${ac_cv_sizeof_long_double+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7104 | $as_echo_n "(cached) " >&6 | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 7105 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7106 | 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] | 7107 |  | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 7108 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7109 | if test "$ac_cv_type_long_double" = yes; then | 
|  | 7110 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 7111 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 7112 | as_fn_error 77 "cannot compute sizeof (long double) | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 7113 | See \`config.log' for more details" "$LINENO" 5 ; } | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 7114 | else | 
|  | 7115 | ac_cv_sizeof_long_double=0 | 
|  | 7116 | fi | 
|  | 7117 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7118 |  | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 7119 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5 | 
|  | 7121 | $as_echo "$ac_cv_sizeof_long_double" >&6; } | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 7122 |  | 
|  | 7123 |  | 
|  | 7124 |  | 
|  | 7125 | cat >>confdefs.h <<_ACEOF | 
|  | 7126 | #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double | 
|  | 7127 | _ACEOF | 
|  | 7128 |  | 
|  | 7129 |  | 
|  | 7130 | fi | 
|  | 7131 |  | 
|  | 7132 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7133 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Bool support" >&5 | 
|  | 7134 | $as_echo_n "checking for _Bool support... " >&6; } | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 7135 | have_c99_bool=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7136 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 7137 | /* end confdefs.h.  */ | 
|  | 7138 |  | 
|  | 7139 | int | 
|  | 7140 | main () | 
|  | 7141 | { | 
|  | 7142 | _Bool x; x = (_Bool)0; | 
|  | 7143 | ; | 
|  | 7144 | return 0; | 
|  | 7145 | } | 
|  | 7146 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7147 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 7148 |  | 
|  | 7149 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7150 | $as_echo "#define HAVE_C99_BOOL 1" >>confdefs.h | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 7151 |  | 
|  | 7152 | have_c99_bool=yes | 
|  | 7153 |  | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 7154 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7155 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_c99_bool" >&5 | 
|  | 7157 | $as_echo "$have_c99_bool" >&6; } | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 7158 | if test "$have_c99_bool" = yes ; then | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7159 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 7160 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 7161 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 7162 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7163 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of _Bool" >&5 | 
|  | 7164 | $as_echo_n "checking size of _Bool... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 7165 | if test "${ac_cv_sizeof__Bool+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7166 | $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 7167 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7168 | 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] | 7169 |  | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 7170 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7171 | if test "$ac_cv_type__Bool" = yes; then | 
|  | 7172 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 7173 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 7174 | as_fn_error 77 "cannot compute sizeof (_Bool) | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 7175 | See \`config.log' for more details" "$LINENO" 5 ; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7176 | else | 
|  | 7177 | ac_cv_sizeof__Bool=0 | 
|  | 7178 | fi | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 7179 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7180 |  | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 7181 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof__Bool" >&5 | 
|  | 7183 | $as_echo "$ac_cv_sizeof__Bool" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7184 |  | 
|  | 7185 |  | 
|  | 7186 |  | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 7187 | cat >>confdefs.h <<_ACEOF | 
|  | 7188 | #define SIZEOF__BOOL $ac_cv_sizeof__Bool | 
|  | 7189 | _ACEOF | 
|  | 7190 |  | 
|  | 7191 |  | 
|  | 7192 | fi | 
|  | 7193 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7194 | ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#ifdef HAVE_STDINT_H | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 7195 | #include <stdint.h> | 
|  | 7196 | #endif | 
| Antoine Pitrou | 1bf29b7 | 2010-10-10 08:10:16 +0000 | [diff] [blame] | 7197 | #ifdef HAVE_INTTYPES_H | 
|  | 7198 | #include <inttypes.h> | 
|  | 7199 | #endif | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7200 | " | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 7201 | if test "x$ac_cv_type_uintptr_t" = x""yes; then : | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 7202 |  | 
|  | 7203 | cat >>confdefs.h <<_ACEOF | 
|  | 7204 | #define HAVE_UINTPTR_T 1 | 
|  | 7205 | _ACEOF | 
|  | 7206 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7207 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 7208 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 7209 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 7210 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7211 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uintptr_t" >&5 | 
|  | 7212 | $as_echo_n "checking size of uintptr_t... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 7213 | if test "${ac_cv_sizeof_uintptr_t+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7214 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7215 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7216 | 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] | 7217 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7218 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7219 | if test "$ac_cv_type_uintptr_t" = yes; then | 
|  | 7220 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 7221 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 7222 | as_fn_error 77 "cannot compute sizeof (uintptr_t) | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 7223 | See \`config.log' for more details" "$LINENO" 5 ; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7224 | else | 
|  | 7225 | ac_cv_sizeof_uintptr_t=0 | 
|  | 7226 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7227 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7228 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7229 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uintptr_t" >&5 | 
|  | 7231 | $as_echo "$ac_cv_sizeof_uintptr_t" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7232 |  | 
|  | 7233 |  | 
|  | 7234 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7235 | cat >>confdefs.h <<_ACEOF | 
| Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 7236 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7237 | _ACEOF | 
| Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 7238 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7239 |  | 
| Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 7240 | fi | 
|  | 7241 |  | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 7242 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7243 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 7244 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 7245 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 7246 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7247 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 | 
|  | 7248 | $as_echo_n "checking size of off_t... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 7249 | if test "${ac_cv_sizeof_off_t+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7250 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7251 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7252 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        " | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7253 | #ifdef HAVE_SYS_TYPES_H | 
|  | 7254 | #include <sys/types.h> | 
|  | 7255 | #endif | 
|  | 7256 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7257 | "; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7258 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7259 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7260 | if test "$ac_cv_type_off_t" = yes; then | 
|  | 7261 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 7262 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 7263 | as_fn_error 77 "cannot compute sizeof (off_t) | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 7264 | See \`config.log' for more details" "$LINENO" 5 ; } | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7265 | else | 
|  | 7266 | ac_cv_sizeof_off_t=0 | 
|  | 7267 | fi | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7268 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7269 |  | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7270 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 | 
|  | 7272 | $as_echo "$ac_cv_sizeof_off_t" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7273 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7274 |  | 
|  | 7275 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7276 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7277 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7278 | _ACEOF | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7279 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7280 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7281 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7282 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable large file support" >&5 | 
|  | 7283 | $as_echo_n "checking whether to enable large file support... " >&6; } | 
| Mark Dickinson | 2df5d28 | 2009-12-31 21:22:50 +0000 | [diff] [blame] | 7284 | if test "$have_long_long" = yes | 
|  | 7285 | then | 
|  | 7286 | 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] | 7287 | "$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] | 7288 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7289 | $as_echo "#define HAVE_LARGEFILE_SUPPORT 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7290 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 7292 | $as_echo "yes" >&6; } | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7293 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 7295 | $as_echo "no" >&6; } | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7296 | fi | 
| Mark Dickinson | 2df5d28 | 2009-12-31 21:22:50 +0000 | [diff] [blame] | 7297 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 7299 | $as_echo "no" >&6; } | 
| Mark Dickinson | 2df5d28 | 2009-12-31 21:22:50 +0000 | [diff] [blame] | 7300 | fi | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7301 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7302 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 7303 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 7304 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 7305 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7306 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 | 
|  | 7307 | $as_echo_n "checking size of time_t... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 7308 | if test "${ac_cv_sizeof_time_t+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7309 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7310 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7311 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        " | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7312 | #ifdef HAVE_SYS_TYPES_H | 
|  | 7313 | #include <sys/types.h> | 
|  | 7314 | #endif | 
|  | 7315 | #ifdef HAVE_TIME_H | 
|  | 7316 | #include <time.h> | 
|  | 7317 | #endif | 
|  | 7318 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7319 | "; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7320 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7321 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7322 | if test "$ac_cv_type_time_t" = yes; then | 
|  | 7323 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 7324 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 7325 | as_fn_error 77 "cannot compute sizeof (time_t) | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 7326 | See \`config.log' for more details" "$LINENO" 5 ; } | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7327 | else | 
|  | 7328 | ac_cv_sizeof_time_t=0 | 
|  | 7329 | fi | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7330 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7331 |  | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7332 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 | 
|  | 7334 | $as_echo "$ac_cv_sizeof_time_t" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7335 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7336 |  | 
|  | 7337 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7338 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7339 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7340 | _ACEOF | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7341 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7342 |  | 
|  | 7343 |  | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7344 | # if have pthread_t then define SIZEOF_PTHREAD_T | 
| Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 7345 | ac_save_cc="$CC" | 
|  | 7346 | if test "$ac_cv_kpthread" = "yes" | 
|  | 7347 | then CC="$CC -Kpthread" | 
| Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 7348 | elif test "$ac_cv_kthread" = "yes" | 
|  | 7349 | then CC="$CC -Kthread" | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 7350 | elif test "$ac_cv_pthread" = "yes" | 
|  | 7351 | then CC="$CC -pthread" | 
| Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 7352 | fi | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7353 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7354 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_t" >&5 | 
|  | 7355 | $as_echo_n "checking for pthread_t... " >&6; } | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7356 | have_pthread_t=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7357 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7358 | /* end confdefs.h.  */ | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 7359 |  | 
|  | 7360 | #include <pthread.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7361 | int | 
|  | 7362 | main () | 
|  | 7363 | { | 
| Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 7364 | pthread_t x; x = *(pthread_t*)0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7365 | ; | 
|  | 7366 | return 0; | 
|  | 7367 | } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 7368 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7369 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7370 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7371 | have_pthread_t=yes | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7372 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7373 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_t" >&5 | 
|  | 7375 | $as_echo "$have_pthread_t" >&6; } | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7376 | if test "$have_pthread_t" = yes ; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7377 | # The cast to long int works around a bug in the HP C Compiler | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7378 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 7379 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 7380 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7381 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5 | 
|  | 7382 | $as_echo_n "checking size of pthread_t... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 7383 | if test "${ac_cv_sizeof_pthread_t+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7384 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7385 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7386 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t"        " | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7387 | #ifdef HAVE_PTHREAD_H | 
|  | 7388 | #include <pthread.h> | 
|  | 7389 | #endif | 
|  | 7390 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7391 | "; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7392 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7393 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7394 | if test "$ac_cv_type_pthread_t" = yes; then | 
|  | 7395 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 7396 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 7397 | as_fn_error 77 "cannot compute sizeof (pthread_t) | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 7398 | See \`config.log' for more details" "$LINENO" 5 ; } | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7399 | else | 
|  | 7400 | ac_cv_sizeof_pthread_t=0 | 
|  | 7401 | fi | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7402 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7403 |  | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7404 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5 | 
|  | 7406 | $as_echo "$ac_cv_sizeof_pthread_t" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7407 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7408 |  | 
|  | 7409 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7410 | cat >>confdefs.h <<_ACEOF | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7411 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7412 | _ACEOF | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7413 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7414 |  | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7415 | fi | 
| Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 7416 | CC="$ac_save_cc" | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7417 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7418 |  | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7419 | case $ac_sys_system/$ac_sys_release in | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 7420 | Darwin/[01567]\..*) | 
| Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 7421 | OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000" | 
|  | 7422 | ;; | 
|  | 7423 | Darwin/*) | 
|  | 7424 | OTHER_LIBTOOL_OPT="" | 
|  | 7425 | ;; | 
|  | 7426 | esac | 
|  | 7427 |  | 
|  | 7428 |  | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 7429 | ARCH_RUN_32BIT="" | 
|  | 7430 |  | 
| Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 7431 | case $ac_sys_system/$ac_sys_release in | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 7432 | Darwin/[01567]\..*) | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7433 | LIBTOOL_CRUFT="-framework System -lcc_dynamic" | 
|  | 7434 | if test "${enable_universalsdk}"; then | 
|  | 7435 | : | 
|  | 7436 | else | 
| Ronald Oussoren | e3da75a | 2010-02-11 13:38:58 +0000 | [diff] [blame] | 7437 | LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `/usr/bin/arch`" | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7438 | fi | 
| Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 7439 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 7440 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; | 
| Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 7441 | Darwin/*) | 
| Ronald Oussoren | 9812a6c | 2010-02-07 11:53:18 +0000 | [diff] [blame] | 7442 | gcc_version=`gcc -dumpversion` | 
| Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 7443 | if test ${gcc_version} '<' 4.0 | 
|  | 7444 | then | 
|  | 7445 | LIBTOOL_CRUFT="-lcc_dynamic" | 
|  | 7446 | else | 
|  | 7447 | LIBTOOL_CRUFT="" | 
|  | 7448 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7449 | if test "$cross_compiling" = yes; then : | 
| Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 7450 | ac_osx_32bit=yes | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 7451 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7452 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 7453 | /* end confdefs.h.  */ | 
| Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 7454 |  | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 7455 | #include <unistd.h> | 
|  | 7456 | int main(int argc, char*argv[]) | 
|  | 7457 | { | 
|  | 7458 | if (sizeof(long) == 4) { | 
|  | 7459 | return 0; | 
|  | 7460 | } else { | 
|  | 7461 | return 1; | 
|  | 7462 | } | 
| Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 7463 | } | 
|  | 7464 |  | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 7465 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7466 | if ac_fn_c_try_run "$LINENO"; then : | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 7467 | ac_osx_32bit=yes | 
|  | 7468 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7469 | ac_osx_32bit=no | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 7470 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7471 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 7472 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 7473 | fi | 
|  | 7474 |  | 
|  | 7475 |  | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 7476 | if test "${ac_osx_32bit}" = "yes"; then | 
| Ronald Oussoren | e3da75a | 2010-02-11 13:38:58 +0000 | [diff] [blame] | 7477 | case `/usr/bin/arch` in | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 7478 | i386) | 
|  | 7479 | MACOSX_DEFAULT_ARCH="i386" | 
|  | 7480 | ;; | 
|  | 7481 | ppc) | 
|  | 7482 | MACOSX_DEFAULT_ARCH="ppc" | 
|  | 7483 | ;; | 
|  | 7484 | *) | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 7485 | as_fn_error $? "Unexpected output of 'arch' on OSX" "$LINENO" 5 | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 7486 | ;; | 
|  | 7487 | esac | 
|  | 7488 | else | 
| Ronald Oussoren | e3da75a | 2010-02-11 13:38:58 +0000 | [diff] [blame] | 7489 | case `/usr/bin/arch` in | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 7490 | i386) | 
|  | 7491 | MACOSX_DEFAULT_ARCH="x86_64" | 
|  | 7492 | ;; | 
|  | 7493 | ppc) | 
|  | 7494 | MACOSX_DEFAULT_ARCH="ppc64" | 
|  | 7495 | ;; | 
|  | 7496 | *) | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 7497 | as_fn_error $? "Unexpected output of 'arch' on OSX" "$LINENO" 5 | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 7498 | ;; | 
|  | 7499 | esac | 
|  | 7500 |  | 
|  | 7501 | #ARCH_RUN_32BIT="true" | 
|  | 7502 | fi | 
|  | 7503 |  | 
|  | 7504 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}" | 
| Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 7505 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7506 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7507 | esac | 
|  | 7508 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7509 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-framework" >&5 | 
|  | 7510 | $as_echo_n "checking for --enable-framework... " >&6; } | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7511 | if test "$enable_framework" | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7512 | then | 
| Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 7513 | BASECFLAGS="$BASECFLAGS -fno-common -dynamic" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7514 | # -F. is needed to allow linking to the framework while | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7515 | # in the build location. | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7516 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7517 | $as_echo "#define WITH_NEXT_FRAMEWORK 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7518 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7519 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 7520 | $as_echo "yes" >&6; } | 
| Ronald Oussoren | 99aab65 | 2009-06-08 21:22:57 +0000 | [diff] [blame] | 7521 | if test $enable_shared = "yes" | 
|  | 7522 | then | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 7523 | 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] | 7524 | fi | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7525 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 7527 | $as_echo "no" >&6; } | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7528 | fi | 
|  | 7529 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7530 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dyld" >&5 | 
|  | 7531 | $as_echo_n "checking for dyld... " >&6; } | 
| Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 7532 | case $ac_sys_system/$ac_sys_release in | 
|  | 7533 | Darwin/*) | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7534 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7535 | $as_echo "#define WITH_DYLD 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7536 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7537 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: always on for Darwin" >&5 | 
|  | 7538 | $as_echo "always on for Darwin" >&6; } | 
| Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 7539 | ;; | 
|  | 7540 | *) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 7542 | $as_echo "no" >&6; } | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7543 | ;; | 
| Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 7544 | esac | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7545 |  | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7546 | # Set info about shared libraries. | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7547 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7548 |  | 
|  | 7549 |  | 
|  | 7550 |  | 
|  | 7551 |  | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 7552 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7553 |  | 
| Georg Brandl | b1441c7 | 2009-01-03 22:33:39 +0000 | [diff] [blame] | 7554 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7555 | cat >>confdefs.h <<_ACEOF | 
|  | 7556 | #define SHLIB_EXT "$SO" | 
|  | 7557 | _ACEOF | 
|  | 7558 |  | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7559 | # LDSHARED is the ld *command* used to create shared library | 
| Martin v. Löwis | 12af048 | 2004-01-31 12:34:17 +0000 | [diff] [blame] | 7560 | # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5 | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7561 | # (Shared libraries in this instance are shared modules to be loaded into | 
|  | 7562 | # Python, as opposed to building Python itself as a shared library.) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7563 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDSHARED" >&5 | 
|  | 7564 | $as_echo_n "checking LDSHARED... " >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7565 | if test -z "$LDSHARED" | 
|  | 7566 | then | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7567 | case $ac_sys_system/$ac_sys_release in | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 7568 | AIX*) | 
| Georg Brandl | 9a829be | 2011-02-15 15:44:51 +0000 | [diff] [blame] | 7569 | BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:\$(srcdir)/Modules/python.exp" | 
| Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 7570 | LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp" | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 7571 | ;; | 
| Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 7572 | IRIX/5*) LDSHARED="ld -shared";; | 
| Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 7573 | IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7574 | SunOS/5*) | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 7575 | if test "$GCC" = "yes" ; then | 
|  | 7576 | LDSHARED='$(CC) -shared' | 
|  | 7577 | LDCXXSHARED='$(CXX) -shared' | 
|  | 7578 | else | 
|  | 7579 | LDSHARED='$(CC) -G' | 
|  | 7580 | LDCXXSHARED='$(CXX) -G' | 
| Greg Ward | 57c9a663 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 7581 | fi ;; | 
| Thomas Heller | f44b9a1 | 2008-04-04 10:18:23 +0000 | [diff] [blame] | 7582 | hp*|HP*) | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 7583 | if test "$GCC" = "yes" ; then | 
|  | 7584 | LDSHARED='$(CC) -shared' | 
|  | 7585 | LDCXXSHARED='$(CXX) -shared' | 
|  | 7586 | else | 
|  | 7587 | LDSHARED='ld -b' | 
| Thomas Heller | f44b9a1 | 2008-04-04 10:18:23 +0000 | [diff] [blame] | 7588 | fi ;; | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 7589 | OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";; | 
| Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 7590 | Darwin/1.3*) | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 7591 | LDSHARED='$(CC) -bundle' | 
|  | 7592 | LDCXXSHARED='$(CXX) -bundle' | 
| Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 7593 | if test "$enable_framework" ; then | 
|  | 7594 | # Link against the framework. All externals should be defined. | 
| Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 7595 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
|  | 7596 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 7597 | LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 7598 | else | 
|  | 7599 | # No framework. Ignore undefined symbols, assuming they come from Python | 
| Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 7600 | LDSHARED="$LDSHARED -undefined suppress" | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 7601 | LDCXXSHARED="$LDCXXSHARED -undefined suppress" | 
| Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 7602 | fi ;; | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 7603 | Darwin/1.4*|Darwin/5.*|Darwin/6.*) | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 7604 | LDSHARED='$(CC) -bundle' | 
|  | 7605 | LDCXXSHARED='$(CXX) -bundle' | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7606 | if test "$enable_framework" ; then | 
|  | 7607 | # Link against the framework. All externals should be defined. | 
| Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 7608 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
|  | 7609 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 7610 | LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7611 | else | 
| Michael W. Hudson | 594bc80 | 2002-03-07 09:59:15 +0000 | [diff] [blame] | 7612 | # No framework, use the Python app as bundle-loader | 
|  | 7613 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' | 
| Jack Jansen | c28fc37 | 2003-02-25 13:14:43 +0000 | [diff] [blame] | 7614 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 7615 | LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7616 | fi ;; | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 7617 | Darwin/*) | 
|  | 7618 | # Use -undefined dynamic_lookup whenever possible (10.3 and later). | 
|  | 7619 | # This allows an extension to be used in any Python | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 7620 |  | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 7621 | if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2 | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 7622 | then | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7623 | if test "${enable_universalsdk}"; then | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 7624 | LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}" | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7625 | fi | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 7626 | LDSHARED='$(CC) -bundle -undefined dynamic_lookup' | 
|  | 7627 | LDCXXSHARED='$(CXX) -bundle -undefined dynamic_lookup' | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 7628 | BLDSHARED="$LDSHARED" | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 7629 | else | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 7630 | LDSHARED='$(CC) -bundle' | 
|  | 7631 | LDCXXSHARED='$(CXX) -bundle' | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 7632 | if test "$enable_framework" ; then | 
|  | 7633 | # Link against the framework. All externals should be defined. | 
| Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 7634 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
|  | 7635 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 7636 | LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 7637 | else | 
|  | 7638 | # No framework, use the Python app as bundle-loader | 
|  | 7639 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' | 
|  | 7640 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 7641 | LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 7642 | fi | 
|  | 7643 | fi | 
|  | 7644 | ;; | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 7645 | Linux*|GNU*|QNX*) | 
|  | 7646 | LDSHARED='$(CC) -shared' | 
|  | 7647 | LDCXXSHARED='$(CXX) -shared';; | 
|  | 7648 | BSD/OS*/4*) | 
|  | 7649 | LDSHARED="gcc -shared" | 
|  | 7650 | LDCXXSHARED="g++ -shared";; | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 7651 | FreeBSD*) | 
| Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 7652 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] | 
| Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 7653 | then | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 7654 | LDSHARED='$(CC) -shared' | 
|  | 7655 | LDCXXSHARED='$(CXX) -shared' | 
| Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 7656 | else | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 7657 | LDSHARED="ld -Bshareable" | 
| Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 7658 | fi;; | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 7659 | OpenBSD*) | 
|  | 7660 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] | 
|  | 7661 | then | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 7662 | LDSHARED='$(CC) -shared $(CCSHARED)' | 
|  | 7663 | LDCXXSHARED='$(CXX) -shared $(CCSHARED)' | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 7664 | else | 
|  | 7665 | case `uname -r` in | 
|  | 7666 | [01].* | 2.[0-7] | 2.[0-7].*) | 
|  | 7667 | LDSHARED="ld -Bshareable ${LDFLAGS}" | 
|  | 7668 | ;; | 
|  | 7669 | *) | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 7670 | LDSHARED='$(CC) -shared $(CCSHARED)' | 
|  | 7671 | LDCXXSHARED='$(CXX) -shared $(CCSHARED)' | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 7672 | ;; | 
|  | 7673 | esac | 
|  | 7674 | fi;; | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 7675 | NetBSD*|DragonFly*) | 
| Antoine Pitrou | ece919e | 2011-01-02 20:45:21 +0000 | [diff] [blame] | 7676 | LDSHARED='$(CC) -shared' | 
|  | 7677 | LDCXXSHARED='$(CXX) -shared';; | 
| Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 7678 | OpenUNIX*|UnixWare*) | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 7679 | if test "$GCC" = "yes" ; then | 
|  | 7680 | LDSHARED='$(CC) -shared' | 
|  | 7681 | LDCXXSHARED='$(CXX) -shared' | 
|  | 7682 | else | 
|  | 7683 | LDSHARED='$(CC) -G' | 
|  | 7684 | LDCXXSHARED='$(CXX) -G' | 
| Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 7685 | fi;; | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 7686 | SCO_SV*) | 
|  | 7687 | LDSHARED='$(CC) -Wl,-G,-Bexport' | 
|  | 7688 | LDCXXSHARED='$(CXX) -Wl,-G,-Bexport';; | 
|  | 7689 | CYGWIN*) | 
|  | 7690 | LDSHARED="gcc -shared -Wl,--enable-auto-image-base" | 
|  | 7691 | LDCXXSHARED="g++ -shared -Wl,--enable-auto-image-base";; | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7692 | *)	LDSHARED="ld";; | 
|  | 7693 | esac | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7694 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDSHARED" >&5 | 
|  | 7696 | $as_echo "$LDSHARED" >&6; } | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 7697 | LDCXXSHARED=${LDCXXSHARED-$LDSHARED} | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 7698 | BLDSHARED=${BLDSHARED-$LDSHARED} | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7699 | # 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] | 7700 | # library (module) -- this is only needed for a few systems | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7701 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CCSHARED" >&5 | 
|  | 7702 | $as_echo_n "checking CCSHARED... " >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7703 | if test -z "$CCSHARED" | 
|  | 7704 | then | 
| Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 7705 | case $ac_sys_system/$ac_sys_release in | 
| Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 7706 | SunOS*) if test "$GCC" = yes; | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 7707 | then CCSHARED="-fPIC"; | 
|  | 7708 | elif test `uname -p` = sparc; | 
|  | 7709 | then CCSHARED="-xcode=pic32"; | 
|  | 7710 | else CCSHARED="-Kpic"; | 
|  | 7711 | fi;; | 
| Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 7712 | hp*|HP*) if test "$GCC" = yes; | 
| Martin v. Löwis | 703ad70 | 2001-09-05 08:36:52 +0000 | [diff] [blame] | 7713 | then CCSHARED="-fPIC"; | 
| Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 7714 | else CCSHARED="+z"; | 
|  | 7715 | fi;; | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 7716 | Linux*|GNU*) CCSHARED="-fPIC";; | 
| Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 7717 | BSD/OS*/4*) CCSHARED="-fpic";; | 
| Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 7718 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";; | 
| Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 7719 | OpenUNIX*|UnixWare*) | 
| Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 7720 | if test "$GCC" = "yes" | 
|  | 7721 | then CCSHARED="-fPIC" | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 7722 | else CCSHARED="-KPIC" | 
| Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 7723 | fi;; | 
| Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 7724 | SCO_SV*) | 
|  | 7725 | if test "$GCC" = "yes" | 
|  | 7726 | then CCSHARED="-fPIC" | 
|  | 7727 | else CCSHARED="-Kpic -belf" | 
|  | 7728 | fi;; | 
| Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 7729 | IRIX*/6*)  case $CC in | 
|  | 7730 | *gcc*) CCSHARED="-shared";; | 
| Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 7731 | *) CCSHARED="";; | 
| Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 7732 | esac;; | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7733 | esac | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7734 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCSHARED" >&5 | 
|  | 7736 | $as_echo "$CCSHARED" >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7737 | # LINKFORSHARED are the flags passed to the $(CC) command that links | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7738 | # the python executable -- this is only needed for a few systems | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7739 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKFORSHARED" >&5 | 
|  | 7740 | $as_echo_n "checking LINKFORSHARED... " >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7741 | if test -z "$LINKFORSHARED" | 
|  | 7742 | then | 
| Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 7743 | case $ac_sys_system/$ac_sys_release in | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 7744 | AIX*)	LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7745 | hp*|HP*) | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 7746 | LINKFORSHARED="-Wl,-E -Wl,+s";; | 
|  | 7747 | #	    LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; | 
| Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 7748 | BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 7749 | Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7750 | # -u libsys_s pulls in all symbols in libsys | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7751 | Darwin/*) | 
| Benjamin Peterson | 9c80cac | 2009-05-23 16:34:23 +0000 | [diff] [blame] | 7752 | LINKFORSHARED="$extra_undefs -framework CoreFoundation" | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7753 | if test "$enable_framework" | 
|  | 7754 | then | 
| Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 7755 | LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7756 | fi | 
| Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 7757 | LINKFORSHARED="$LINKFORSHARED";; | 
| Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 7758 | OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; | 
| Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 7759 | SCO_SV*) LINKFORSHARED="-Wl,-Bexport";; | 
| Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 7760 | ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; | 
| Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 7761 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) | 
| Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 7762 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] | 
|  | 7763 | then | 
|  | 7764 | LINKFORSHARED="-Wl,--export-dynamic" | 
|  | 7765 | fi;; | 
| Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 7766 | SunOS/5*) case $CC in | 
|  | 7767 | *gcc*) | 
| Martin v. Löwis | a454857 | 2002-04-18 14:51:36 +0000 | [diff] [blame] | 7768 | if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null | 
| Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 7769 | then | 
|  | 7770 | LINKFORSHARED="-Xlinker --export-dynamic" | 
| Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 7771 | fi;; | 
|  | 7772 | esac;; | 
| Jason Tishler | 3076559 | 2003-09-04 11:04:06 +0000 | [diff] [blame] | 7773 | CYGWIN*) | 
|  | 7774 | if test $enable_shared = "no" | 
|  | 7775 | then | 
|  | 7776 | LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)' | 
|  | 7777 | fi;; | 
| Benjamin Peterson | de9c869 | 2008-07-01 18:23:09 +0000 | [diff] [blame] | 7778 | QNX*) | 
|  | 7779 | # -Wl,-E causes the symbols to be added to the dynamic | 
|  | 7780 | # symbol table so that they can be found when a module | 
|  | 7781 | # is loaded.  -N 2048K causes the stack size to be set | 
|  | 7782 | # to 2048 kilobytes so that the stack doesn't overflow | 
|  | 7783 | # when running test_compile.py. | 
|  | 7784 | LINKFORSHARED='-Wl,-E -N 2048K';; | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7785 | esac | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7786 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKFORSHARED" >&5 | 
|  | 7788 | $as_echo "$LINKFORSHARED" >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7789 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7790 |  | 
| Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 7791 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7792 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGSFORSHARED" >&5 | 
|  | 7793 | $as_echo_n "checking CFLAGSFORSHARED... " >&6; } | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 7794 | if test ! "$LIBRARY" = "$LDLIBRARY" | 
|  | 7795 | then | 
| Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 +0000 | [diff] [blame] | 7796 | case $ac_sys_system in | 
|  | 7797 | CYGWIN*) | 
|  | 7798 | # Cygwin needs CCSHARED when building extension DLLs | 
|  | 7799 | # but not when building the interpreter DLL. | 
|  | 7800 | CFLAGSFORSHARED='';; | 
|  | 7801 | *) | 
|  | 7802 | CFLAGSFORSHARED='$(CCSHARED)' | 
|  | 7803 | esac | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 7804 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLAGSFORSHARED" >&5 | 
|  | 7806 | $as_echo "$CFLAGSFORSHARED" >&6; } | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 7807 |  | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 7808 | # SHLIBS are libraries (except -lc and -lm) to link to the python shared | 
|  | 7809 | # library (with --enable-shared). | 
|  | 7810 | # 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] | 7811 | # symbols, this must be set to $(LIBS) (expanded by make). We do this even | 
|  | 7812 | # if it is not required, since it creates a dependency of the shared library | 
|  | 7813 | # to LIBS. This, in turn, means that applications linking the shared libpython | 
|  | 7814 | # don't need to link LIBS explicitly. The default should be only changed | 
|  | 7815 | # on systems where this approach causes problems. | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 7816 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7817 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking SHLIBS" >&5 | 
|  | 7818 | $as_echo_n "checking SHLIBS... " >&6; } | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 7819 | case "$ac_sys_system" in | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 7820 | *) | 
| Martin v. Löwis | d6359c5 | 2002-08-04 12:38:50 +0000 | [diff] [blame] | 7821 | SHLIBS='$(LIBS)';; | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 7822 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIBS" >&5 | 
|  | 7824 | $as_echo "$SHLIBS" >&6; } | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 7825 |  | 
|  | 7826 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7827 | # checks for libraries | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7828 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | 
|  | 7829 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 7830 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7831 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7832 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7833 | ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7834 | LIBS="-ldl  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7835 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7836 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7837 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7838 | /* Override any GCC internal prototype to avoid an error. | 
|  | 7839 | Use char because int might match the return type of a GCC | 
|  | 7840 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7841 | #ifdef __cplusplus | 
|  | 7842 | extern "C" | 
|  | 7843 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7844 | char dlopen (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7845 | int | 
|  | 7846 | main () | 
|  | 7847 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7848 | return dlopen (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7849 | ; | 
|  | 7850 | return 0; | 
|  | 7851 | } | 
|  | 7852 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7853 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7854 | ac_cv_lib_dl_dlopen=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7855 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7856 | ac_cv_lib_dl_dlopen=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7857 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7858 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 7859 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7860 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7861 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7862 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | 
|  | 7863 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 7864 | 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] | 7865 | cat >>confdefs.h <<_ACEOF | 
|  | 7866 | #define HAVE_LIBDL 1 | 
|  | 7867 | _ACEOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7868 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7869 | LIBS="-ldl $LIBS" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7870 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7871 | fi | 
|  | 7872 | # Dynamic linking for SunOS/Solaris and SYSV | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7873 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | 
|  | 7874 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 7875 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7876 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7877 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7878 | ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7879 | LIBS="-ldld  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7880 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7881 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7882 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7883 | /* Override any GCC internal prototype to avoid an error. | 
|  | 7884 | Use char because int might match the return type of a GCC | 
|  | 7885 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7886 | #ifdef __cplusplus | 
|  | 7887 | extern "C" | 
|  | 7888 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7889 | char shl_load (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7890 | int | 
|  | 7891 | main () | 
|  | 7892 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7893 | return shl_load (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7894 | ; | 
|  | 7895 | return 0; | 
|  | 7896 | } | 
|  | 7897 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7898 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7899 | ac_cv_lib_dld_shl_load=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7900 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7901 | ac_cv_lib_dld_shl_load=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7902 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7903 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 7904 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7905 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7906 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 | 
|  | 7908 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 7909 | 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] | 7910 | cat >>confdefs.h <<_ACEOF | 
|  | 7911 | #define HAVE_LIBDLD 1 | 
|  | 7912 | _ACEOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7913 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7914 | LIBS="-ldld $LIBS" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7915 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7916 | fi | 
|  | 7917 | # Dynamic linking for HP-UX | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 7918 |  | 
| Georg Brandl | b1441c7 | 2009-01-03 22:33:39 +0000 | [diff] [blame] | 7919 | # only check for sem_init if thread support is requested | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 7920 | if test "$with_threads" = "yes" -o -z "$with_threads"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7921 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5 | 
|  | 7922 | $as_echo_n "checking for library containing sem_init... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 7923 | if test "${ac_cv_search_sem_init+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7924 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 7925 | else | 
| Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 7926 | ac_func_search_save_LIBS=$LIBS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7927 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7928 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7929 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7930 | /* Override any GCC internal prototype to avoid an error. | 
|  | 7931 | Use char because int might match the return type of a GCC | 
|  | 7932 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7933 | #ifdef __cplusplus | 
|  | 7934 | extern "C" | 
|  | 7935 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7936 | char sem_init (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7937 | int | 
|  | 7938 | main () | 
|  | 7939 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7940 | return sem_init (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7941 | ; | 
|  | 7942 | return 0; | 
|  | 7943 | } | 
|  | 7944 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7945 | for ac_lib in '' pthread rt posix4; do | 
|  | 7946 | if test -z "$ac_lib"; then | 
|  | 7947 | ac_res="none required" | 
|  | 7948 | else | 
|  | 7949 | ac_res=-l$ac_lib | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 7950 | LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7951 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7952 | if ac_fn_c_try_link "$LINENO"; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7953 | ac_cv_search_sem_init=$ac_res | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7954 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7955 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 7956 | conftest$ac_exeext | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 7957 | if test "${ac_cv_search_sem_init+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7958 | break | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 7959 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7960 | done | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 7961 | if test "${ac_cv_search_sem_init+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7962 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7963 | else | 
|  | 7964 | ac_cv_search_sem_init=no | 
|  | 7965 | fi | 
|  | 7966 | rm conftest.$ac_ext | 
| Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 7967 | LIBS=$ac_func_search_save_LIBS | 
|  | 7968 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5 | 
|  | 7970 | $as_echo "$ac_cv_search_sem_init" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7971 | ac_res=$ac_cv_search_sem_init | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7972 | if test "$ac_res" != no; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7973 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
| Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 7974 |  | 
| Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 7975 | fi | 
| Martin v. Löwis | d3545ec | 2003-05-03 11:25:43 +0000 | [diff] [blame] | 7976 | # 'Real Time' functions on Solaris | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 7977 | # posix4 on Solaris 2.6 | 
|  | 7978 | # pthread (first!) on Linux | 
|  | 7979 | fi | 
|  | 7980 |  | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 7981 | # check if we need libintl for locale functions | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7982 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for textdomain in -lintl" >&5 | 
|  | 7983 | $as_echo_n "checking for textdomain in -lintl... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 7984 | if test "${ac_cv_lib_intl_textdomain+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7985 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 7986 | else | 
|  | 7987 | ac_check_lib_save_LIBS=$LIBS | 
|  | 7988 | LIBS="-lintl  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7989 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7990 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 7991 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7992 | /* Override any GCC internal prototype to avoid an error. | 
|  | 7993 | Use char because int might match the return type of a GCC | 
|  | 7994 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 7995 | #ifdef __cplusplus | 
|  | 7996 | extern "C" | 
|  | 7997 | #endif | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 7998 | char textdomain (); | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 7999 | int | 
|  | 8000 | main () | 
|  | 8001 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8002 | return textdomain (); | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8003 | ; | 
|  | 8004 | return 0; | 
|  | 8005 | } | 
|  | 8006 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8007 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8008 | ac_cv_lib_intl_textdomain=yes | 
|  | 8009 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8010 | ac_cv_lib_intl_textdomain=no | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8011 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8012 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 8013 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8014 | LIBS=$ac_check_lib_save_LIBS | 
|  | 8015 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_textdomain" >&5 | 
|  | 8017 | $as_echo "$ac_cv_lib_intl_textdomain" >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 8018 | 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] | 8019 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8020 | $as_echo "#define WITH_LIBINTL 1" >>confdefs.h | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8021 |  | 
| Brett Cannon | c6d936e | 2009-06-07 20:09:53 +0000 | [diff] [blame] | 8022 | LIBS="-lintl $LIBS" | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8023 | fi | 
|  | 8024 |  | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 8025 |  | 
|  | 8026 | # checks for system dependent C++ extensions support | 
|  | 8027 | case "$ac_sys_system" in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8028 | AIX*)	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for genuine AIX C++ extensions support" >&5 | 
|  | 8029 | $as_echo_n "checking for genuine AIX C++ extensions support... " >&6; } | 
|  | 8030 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8031 | /* end confdefs.h.  */ | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8032 |  | 
| Georg Brandl | 59e87bd | 2011-02-15 19:48:59 +0000 | [diff] [blame] | 8033 | #include <load.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8034 | int | 
|  | 8035 | main () | 
|  | 8036 | { | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 8037 | loadAndInit("", 0, "") | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8038 | ; | 
|  | 8039 | return 0; | 
|  | 8040 | } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8041 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8042 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8043 | if ac_fn_c_try_link "$LINENO"; then : | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 8044 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8045 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8046 | $as_echo "#define AIX_GENUINE_CPLUSPLUS 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8047 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8049 | $as_echo "yes" >&6; } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8050 |  | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 8051 | else | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8052 |  | 
|  | 8053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8054 | $as_echo "no" >&6; } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8055 |  | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 8056 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8057 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 8058 | conftest$ac_exeext conftest.$ac_ext;; | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 8059 | *) ;; | 
|  | 8060 | esac | 
|  | 8061 |  | 
| Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 8062 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8063 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_open in -lnsl" >&5 | 
|  | 8064 | $as_echo_n "checking for t_open in -lnsl... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 8065 | if test "${ac_cv_lib_nsl_t_open+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8066 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 8067 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8068 | ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8069 | LIBS="-lnsl  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8070 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8071 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8072 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8073 | /* Override any GCC internal prototype to avoid an error. | 
|  | 8074 | Use char because int might match the return type of a GCC | 
|  | 8075 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8076 | #ifdef __cplusplus | 
|  | 8077 | extern "C" | 
|  | 8078 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8079 | char t_open (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8080 | int | 
|  | 8081 | main () | 
|  | 8082 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8083 | return t_open (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8084 | ; | 
|  | 8085 | return 0; | 
|  | 8086 | } | 
|  | 8087 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8088 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8089 | ac_cv_lib_nsl_t_open=yes | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 8090 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8091 | ac_cv_lib_nsl_t_open=no | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 8092 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8093 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 8094 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8095 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 8096 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_t_open" >&5 | 
|  | 8098 | $as_echo "$ac_cv_lib_nsl_t_open" >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 8099 | 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] | 8100 | LIBS="-lnsl $LIBS" | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 8101 | fi | 
| Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 8102 | # SVR4 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8103 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 | 
|  | 8104 | $as_echo_n "checking for socket in -lsocket... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 8105 | if test "${ac_cv_lib_socket_socket+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8106 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8107 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8108 | ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8109 | LIBS="-lsocket $LIBS $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8110 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8111 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8112 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8113 | /* Override any GCC internal prototype to avoid an error. | 
|  | 8114 | Use char because int might match the return type of a GCC | 
|  | 8115 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8116 | #ifdef __cplusplus | 
|  | 8117 | extern "C" | 
|  | 8118 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8119 | char socket (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8120 | int | 
|  | 8121 | main () | 
|  | 8122 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8123 | return socket (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8124 | ; | 
|  | 8125 | return 0; | 
|  | 8126 | } | 
|  | 8127 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8128 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8129 | ac_cv_lib_socket_socket=yes | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8130 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8131 | ac_cv_lib_socket_socket=no | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8132 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8133 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 8134 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8135 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8136 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8137 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 | 
|  | 8138 | $as_echo "$ac_cv_lib_socket_socket" >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 8139 | if test "x$ac_cv_lib_socket_socket" = x""yes; then : | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8140 | LIBS="-lsocket $LIBS" | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8141 | fi | 
|  | 8142 | # SVR4 sockets | 
| Skip Montanaro | b9949db | 2004-01-17 04:04:13 +0000 | [diff] [blame] | 8143 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8144 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libs" >&5 | 
|  | 8145 | $as_echo_n "checking for --with-libs... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8146 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8147 | # Check whether --with-libs was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8148 | if test "${with_libs+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8149 | withval=$with_libs; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 | 
|  | 8151 | $as_echo "$withval" >&6; } | 
| Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 8152 | LIBS="$withval $LIBS" | 
|  | 8153 |  | 
|  | 8154 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 8156 | $as_echo "no" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8157 | fi | 
|  | 8158 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 8159 |  | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 8160 | if test -n "$ac_tool_prefix"; then | 
| Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 8161 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | 
|  | 8162 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8163 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 8164 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 8165 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8166 | $as_echo_n "(cached) " >&6 | 
| Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 8167 | else | 
|  | 8168 | case $PKG_CONFIG in | 
|  | 8169 | [\\/]* | ?:[\\/]*) | 
|  | 8170 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | 
|  | 8171 | ;; | 
|  | 8172 | *) | 
|  | 8173 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 8174 | for as_dir in $PATH | 
|  | 8175 | do | 
|  | 8176 | IFS=$as_save_IFS | 
|  | 8177 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8178 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 8179 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 8180 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8181 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 8182 | break 2 | 
|  | 8183 | fi | 
|  | 8184 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8185 | done | 
| Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 8186 | IFS=$as_save_IFS | 
|  | 8187 |  | 
|  | 8188 | ;; | 
|  | 8189 | esac | 
|  | 8190 | fi | 
|  | 8191 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | 
|  | 8192 | if test -n "$PKG_CONFIG"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | 
|  | 8194 | $as_echo "$PKG_CONFIG" >&6; } | 
| Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 8195 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 8197 | $as_echo "no" >&6; } | 
| Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 8198 | fi | 
|  | 8199 |  | 
|  | 8200 |  | 
|  | 8201 | fi | 
|  | 8202 | if test -z "$ac_cv_path_PKG_CONFIG"; then | 
|  | 8203 | ac_pt_PKG_CONFIG=$PKG_CONFIG | 
|  | 8204 | # Extract the first word of "pkg-config", so it can be a program name with args. | 
|  | 8205 | set dummy pkg-config; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8206 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 8207 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 8208 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8209 | $as_echo_n "(cached) " >&6 | 
| Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 8210 | else | 
|  | 8211 | case $ac_pt_PKG_CONFIG in | 
|  | 8212 | [\\/]* | ?:[\\/]*) | 
|  | 8213 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | 
|  | 8214 | ;; | 
|  | 8215 | *) | 
|  | 8216 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 8217 | for as_dir in $PATH | 
|  | 8218 | do | 
|  | 8219 | IFS=$as_save_IFS | 
|  | 8220 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8221 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 8222 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 8223 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8224 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 8225 | break 2 | 
|  | 8226 | fi | 
|  | 8227 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8228 | done | 
| Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 8229 | IFS=$as_save_IFS | 
|  | 8230 |  | 
|  | 8231 | ;; | 
|  | 8232 | esac | 
|  | 8233 | fi | 
|  | 8234 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | 
|  | 8235 | if test -n "$ac_pt_PKG_CONFIG"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | 
|  | 8237 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | 
| Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 8238 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 8240 | $as_echo "no" >&6; } | 
| Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 8241 | fi | 
|  | 8242 |  | 
|  | 8243 | if test "x$ac_pt_PKG_CONFIG" = x; then | 
|  | 8244 | PKG_CONFIG="" | 
|  | 8245 | else | 
|  | 8246 | case $cross_compiling:$ac_tool_warned in | 
|  | 8247 | yes:) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8248 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
|  | 8249 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
| Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 8250 | ac_tool_warned=yes ;; | 
|  | 8251 | esac | 
|  | 8252 | PKG_CONFIG=$ac_pt_PKG_CONFIG | 
|  | 8253 | fi | 
|  | 8254 | else | 
|  | 8255 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | 
|  | 8256 | fi | 
|  | 8257 |  | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 8258 |  | 
|  | 8259 | # Check for use of the system expat library | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8260 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-expat" >&5 | 
|  | 8261 | $as_echo_n "checking for --with-system-expat... " >&6; } | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 8262 |  | 
|  | 8263 | # Check whether --with-system_expat was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8264 | if test "${with_system_expat+set}" = set; then : | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 8265 | withval=$with_system_expat; | 
| Benjamin Peterson | 7926325 | 2010-10-31 16:50:44 +0000 | [diff] [blame] | 8266 | else | 
|  | 8267 | with_system_expat="no" | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 8268 | fi | 
|  | 8269 |  | 
|  | 8270 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_expat" >&5 | 
|  | 8272 | $as_echo "$with_system_expat" >&6; } | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 8273 |  | 
|  | 8274 | # Check for use of the system libffi library | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8275 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-ffi" >&5 | 
|  | 8276 | $as_echo_n "checking for --with-system-ffi... " >&6; } | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 8277 |  | 
|  | 8278 | # Check whether --with-system_ffi was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8279 | if test "${with_system_ffi+set}" = set; then : | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 8280 | withval=$with_system_ffi; | 
| Benjamin Peterson | 7926325 | 2010-10-31 16:50:44 +0000 | [diff] [blame] | 8281 | else | 
|  | 8282 | with_system_ffi="no" | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 8283 | fi | 
|  | 8284 |  | 
|  | 8285 |  | 
|  | 8286 | if test "$with_system_ffi" = "yes" && test -n "$PKG_CONFIG"; then | 
| Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 8287 | LIBFFI_INCLUDEDIR="`"$PKG_CONFIG" libffi --cflags-only-I 2>/dev/null | sed -e 's/^-I//;s/ *$//'`" | 
|  | 8288 | else | 
|  | 8289 | LIBFFI_INCLUDEDIR="" | 
|  | 8290 | fi | 
|  | 8291 |  | 
|  | 8292 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_ffi" >&5 | 
|  | 8294 | $as_echo "$with_system_ffi" >&6; } | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 8295 |  | 
| Benjamin Peterson | 076ed00 | 2010-10-31 17:11:02 +0000 | [diff] [blame] | 8296 | # Check for support for loadable sqlite extensions | 
|  | 8297 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-loadable-sqlite-extensions" >&5 | 
|  | 8298 | $as_echo_n "checking for --enable-loadable-sqlite-extensions... " >&6; } | 
|  | 8299 | # Check whether --enable-loadable-sqlite-extensions was given. | 
|  | 8300 | if test "${enable_loadable_sqlite_extensions+set}" = set; then : | 
|  | 8301 | enableval=$enable_loadable_sqlite_extensions; | 
|  | 8302 | else | 
|  | 8303 | enable_loadable_sqlite_extensions="no" | 
|  | 8304 | fi | 
|  | 8305 |  | 
|  | 8306 |  | 
|  | 8307 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_loadable_sqlite_extensions" >&5 | 
|  | 8308 | $as_echo "$enable_loadable_sqlite_extensions" >&6; } | 
|  | 8309 |  | 
| Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 8310 | # Check for --with-dbmliborder | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8311 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dbmliborder" >&5 | 
|  | 8312 | $as_echo_n "checking for --with-dbmliborder... " >&6; } | 
| Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 8313 |  | 
|  | 8314 | # Check whether --with-dbmliborder was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8315 | if test "${with_dbmliborder+set}" = set; then : | 
| Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 8316 | withval=$with_dbmliborder; | 
|  | 8317 | if test x$with_dbmliborder = xyes | 
|  | 8318 | then | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 8319 | as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5 | 
| Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 8320 | else | 
|  | 8321 | for db in `echo $with_dbmliborder | sed 's/:/ /g'`; do | 
|  | 8322 | if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb | 
|  | 8323 | then | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 8324 | as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5 | 
| Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 8325 | fi | 
|  | 8326 | done | 
|  | 8327 | fi | 
|  | 8328 | fi | 
|  | 8329 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_dbmliborder" >&5 | 
|  | 8331 | $as_echo "$with_dbmliborder" >&6; } | 
| Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 8332 |  | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 8333 | # Determine if signalmodule should be used. | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 8334 |  | 
|  | 8335 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8336 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-signal-module" >&5 | 
|  | 8337 | $as_echo_n "checking for --with-signal-module... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8338 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8339 | # Check whether --with-signal-module was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8340 | if test "${with_signal_module+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8341 | withval=$with_signal_module; | 
|  | 8342 | fi | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 8343 |  | 
|  | 8344 |  | 
|  | 8345 | if test -z "$with_signal_module" | 
|  | 8346 | then with_signal_module="yes" | 
|  | 8347 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_signal_module" >&5 | 
|  | 8349 | $as_echo "$with_signal_module" >&6; } | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 8350 |  | 
|  | 8351 | if test "${with_signal_module}" = "yes"; then | 
|  | 8352 | USE_SIGNAL_MODULE="" | 
|  | 8353 | SIGNAL_OBJS="" | 
|  | 8354 | else | 
|  | 8355 | USE_SIGNAL_MODULE="#" | 
|  | 8356 | SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o" | 
|  | 8357 | fi | 
|  | 8358 |  | 
| Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 8359 | # This is used to generate Setup.config | 
| Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 8360 |  | 
| Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 8361 | USE_THREAD_MODULE="" | 
| Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 8362 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8363 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dec-threads" >&5 | 
|  | 8364 | $as_echo_n "checking for --with-dec-threads... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8365 |  | 
| Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 8366 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8367 | # Check whether --with-dec-threads was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8368 | if test "${with_dec_threads+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8369 | withval=$with_dec_threads; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 | 
|  | 8371 | $as_echo "$withval" >&6; } | 
| Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 8372 | LDLAST=-threads | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 8373 | if test "${with_thread+set}" != set; then | 
| Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 8374 | with_thread="$withval"; | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 8375 | fi | 
| Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 8376 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 8378 | $as_echo "no" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8379 | fi | 
|  | 8380 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8381 |  | 
|  | 8382 | # Templates for things AC_DEFINEd more than once. | 
|  | 8383 | # For a single AC_DEFINE, no template is needed. | 
| Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 8384 |  | 
|  | 8385 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8386 |  | 
|  | 8387 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8388 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-threads" >&5 | 
|  | 8389 | $as_echo_n "checking for --with-threads... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8390 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8391 | # Check whether --with-threads was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8392 | if test "${with_threads+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8393 | withval=$with_threads; | 
|  | 8394 | fi | 
| Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 8395 |  | 
|  | 8396 |  | 
| Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 8397 | # --with-thread is deprecated, but check for it anyway | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8398 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8399 | # Check whether --with-thread was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8400 | if test "${with_thread+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8401 | withval=$with_thread; with_threads=$with_thread | 
|  | 8402 | fi | 
|  | 8403 |  | 
| Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 8404 |  | 
|  | 8405 | if test -z "$with_threads" | 
|  | 8406 | then with_threads="yes" | 
|  | 8407 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_threads" >&5 | 
|  | 8409 | $as_echo "$with_threads" >&6; } | 
| Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 8410 |  | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8411 |  | 
| Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 8412 | if test "$with_threads" = "no" | 
|  | 8413 | then | 
|  | 8414 | USE_THREAD_MODULE="#" | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 8415 | elif test "$ac_cv_pthread_is_default" = yes | 
|  | 8416 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8417 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 8418 |  | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 8419 | # Defining _REENTRANT on system with POSIX threads should not hurt. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8420 | $as_echo "#define _REENTRANT 1" >>confdefs.h | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 8421 |  | 
|  | 8422 | posix_threads=yes | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8423 | THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8424 | elif test "$ac_cv_kpthread" = "yes" | 
|  | 8425 | then | 
|  | 8426 | CC="$CC -Kpthread" | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 8427 | if test "$ac_cv_cxx_thread" = "yes"; then | 
|  | 8428 | CXX="$CXX -Kpthread" | 
|  | 8429 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8430 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 8431 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 8432 | posix_threads=yes | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8433 | THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 8434 | elif test "$ac_cv_kthread" = "yes" | 
|  | 8435 | then | 
|  | 8436 | CC="$CC -Kthread" | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 8437 | if test "$ac_cv_cxx_thread" = "yes"; then | 
|  | 8438 | CXX="$CXX -Kthread" | 
|  | 8439 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8440 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 8441 |  | 
|  | 8442 | posix_threads=yes | 
|  | 8443 | THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8444 | elif test "$ac_cv_pthread" = "yes" | 
|  | 8445 | then | 
|  | 8446 | CC="$CC -pthread" | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 8447 | if test "$ac_cv_cxx_thread" = "yes"; then | 
|  | 8448 | CXX="$CXX -pthread" | 
|  | 8449 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8450 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8451 |  | 
|  | 8452 | posix_threads=yes | 
|  | 8453 | THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8454 | else | 
|  | 8455 | if test ! -z "$with_threads" -a -d "$with_threads" | 
|  | 8456 | then LDFLAGS="$LDFLAGS -L$with_threads" | 
|  | 8457 | fi | 
|  | 8458 | if test ! -z "$withval" -a -d "$withval" | 
|  | 8459 | then LDFLAGS="$LDFLAGS -L$withval" | 
|  | 8460 | fi | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8461 |  | 
|  | 8462 | # According to the POSIX spec, a pthreads implementation must | 
| Matthias Klose | a2542be | 2004-08-16 11:35:51 +0000 | [diff] [blame] | 8463 | # define _POSIX_THREADS in unistd.h. Some apparently don't | 
|  | 8464 | # (e.g. gnu pth with pthread emulation) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8465 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _POSIX_THREADS in unistd.h" >&5 | 
|  | 8466 | $as_echo_n "checking for _POSIX_THREADS in unistd.h... " >&6; } | 
|  | 8467 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8468 | /* end confdefs.h.  */ | 
| Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 8469 |  | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8470 | #include <unistd.h> | 
| Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 8471 | #ifdef _POSIX_THREADS | 
|  | 8472 | yes | 
|  | 8473 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8474 |  | 
|  | 8475 | _ACEOF | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8476 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8477 | $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8478 | unistd_defines_pthreads=yes | 
|  | 8479 | else | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8480 | unistd_defines_pthreads=no | 
|  | 8481 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 8482 | rm -f conftest* | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8483 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unistd_defines_pthreads" >&5 | 
|  | 8485 | $as_echo "$unistd_defines_pthreads" >&6; } | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8486 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8487 | $as_echo "#define _REENTRANT 1" >>confdefs.h | 
| Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 8488 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8489 | ac_fn_c_check_header_mongrel "$LINENO" "cthreads.h" "ac_cv_header_cthreads_h" "$ac_includes_default" | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 8490 | if test "x$ac_cv_header_cthreads_h" = x""yes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8491 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8492 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8493 | $as_echo "#define C_THREADS 1" >>confdefs.h | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 8494 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8495 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8496 | $as_echo "#define HURD_C_THREADS 1" >>confdefs.h | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8497 |  | 
|  | 8498 | LIBS="$LIBS -lthreads" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8499 | THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8500 | else | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8501 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8502 | ac_fn_c_check_header_mongrel "$LINENO" "mach/cthreads.h" "ac_cv_header_mach_cthreads_h" "$ac_includes_default" | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 8503 | if test "x$ac_cv_header_mach_cthreads_h" = x""yes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8504 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8505 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8506 | $as_echo "#define C_THREADS 1" >>confdefs.h | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8507 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8508 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8509 | $as_echo "#define MACH_C_THREADS 1" >>confdefs.h | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8510 |  | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8511 | THREADOBJ="Python/thread.o" | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 8512 | else | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 8513 |  | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 8514 | # Just looking for pthread_create in libpthread is not enough: | 
|  | 8515 | # on HP/UX, pthread.h renames pthread_create to a different symbol name. | 
|  | 8516 | # So we really have to include pthread.h, and then link. | 
|  | 8517 | _libs=$LIBS | 
|  | 8518 | LIBS="$LIBS -lpthread" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8519 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 | 
|  | 8520 | $as_echo_n "checking for pthread_create in -lpthread... " >&6; } | 
|  | 8521 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8522 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 8523 | #include <pthread.h> | 
| Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 8524 |  | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 8525 | void * start_routine (void *arg) { exit (0); } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8526 | int | 
|  | 8527 | main () | 
|  | 8528 | { | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 8529 |  | 
|  | 8530 | pthread_create (NULL, NULL, start_routine, NULL) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8531 | ; | 
|  | 8532 | return 0; | 
|  | 8533 | } | 
|  | 8534 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8535 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8536 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8537 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 8538 | $as_echo "yes" >&6; } | 
|  | 8539 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 8540 |  | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8541 | posix_threads=yes | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8542 | THREADOBJ="Python/thread.o" | 
| Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 8543 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8544 |  | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 8545 | LIBS=$_libs | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8546 | ac_fn_c_check_func "$LINENO" "pthread_detach" "ac_cv_func_pthread_detach" | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 8547 | if test "x$ac_cv_func_pthread_detach" = x""yes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8548 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8549 |  | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8550 | posix_threads=yes | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8551 | THREADOBJ="Python/thread.o" | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8552 | else | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8553 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8554 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5 | 
|  | 8555 | $as_echo_n "checking for pthread_create in -lpthreads... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 8556 | if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8557 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8558 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8559 | ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8560 | LIBS="-lpthreads  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8561 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8562 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8563 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8564 | /* Override any GCC internal prototype to avoid an error. | 
|  | 8565 | Use char because int might match the return type of a GCC | 
|  | 8566 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8567 | #ifdef __cplusplus | 
|  | 8568 | extern "C" | 
|  | 8569 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8570 | char pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8571 | int | 
|  | 8572 | main () | 
|  | 8573 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8574 | return pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8575 | ; | 
|  | 8576 | return 0; | 
|  | 8577 | } | 
|  | 8578 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8579 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8580 | ac_cv_lib_pthreads_pthread_create=yes | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 8581 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8582 | ac_cv_lib_pthreads_pthread_create=no | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 8583 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8584 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 8585 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8586 | LIBS=$ac_check_lib_save_LIBS | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 8587 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5 | 
|  | 8589 | $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 8590 | if test "x$ac_cv_lib_pthreads_pthread_create" = x""yes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8591 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 8592 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 8593 | posix_threads=yes | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8594 | LIBS="$LIBS -lpthreads" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8595 | THREADOBJ="Python/thread.o" | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 8596 | else | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 8597 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8598 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5 | 
|  | 8599 | $as_echo_n "checking for pthread_create in -lc_r... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 8600 | if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8601 | $as_echo_n "(cached) " >&6 | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 8602 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8603 | ac_check_lib_save_LIBS=$LIBS | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 8604 | LIBS="-lc_r  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8605 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8606 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8607 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8608 | /* Override any GCC internal prototype to avoid an error. | 
|  | 8609 | Use char because int might match the return type of a GCC | 
|  | 8610 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8611 | #ifdef __cplusplus | 
|  | 8612 | extern "C" | 
|  | 8613 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8614 | char pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8615 | int | 
|  | 8616 | main () | 
|  | 8617 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8618 | return pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8619 | ; | 
|  | 8620 | return 0; | 
|  | 8621 | } | 
|  | 8622 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8623 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8624 | ac_cv_lib_c_r_pthread_create=yes | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 8625 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8626 | ac_cv_lib_c_r_pthread_create=no | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 8627 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8628 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 8629 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8630 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 8631 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5 | 
|  | 8633 | $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 8634 | if test "x$ac_cv_lib_c_r_pthread_create" = x""yes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8635 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 8636 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 8637 | posix_threads=yes | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8638 | LIBS="$LIBS -lc_r" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8639 | THREADOBJ="Python/thread.o" | 
| Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 8640 | else | 
| Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 8641 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8642 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __pthread_create_system in -lpthread" >&5 | 
|  | 8643 | $as_echo_n "checking for __pthread_create_system in -lpthread... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 8644 | if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8645 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 8646 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8647 | ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 8648 | LIBS="-lpthread  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8649 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8650 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8651 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8652 | /* Override any GCC internal prototype to avoid an error. | 
|  | 8653 | Use char because int might match the return type of a GCC | 
|  | 8654 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8655 | #ifdef __cplusplus | 
|  | 8656 | extern "C" | 
|  | 8657 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8658 | char __pthread_create_system (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8659 | int | 
|  | 8660 | main () | 
|  | 8661 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8662 | return __pthread_create_system (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8663 | ; | 
|  | 8664 | return 0; | 
|  | 8665 | } | 
|  | 8666 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8667 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8668 | ac_cv_lib_pthread___pthread_create_system=yes | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 8669 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8670 | ac_cv_lib_pthread___pthread_create_system=no | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 8671 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8672 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 8673 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8674 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 8675 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_create_system" >&5 | 
|  | 8677 | $as_echo "$ac_cv_lib_pthread___pthread_create_system" >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 8678 | if test "x$ac_cv_lib_pthread___pthread_create_system" = x""yes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8679 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 8680 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 8681 | posix_threads=yes | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8682 | LIBS="$LIBS -lpthread" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8683 | THREADOBJ="Python/thread.o" | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 8684 | else | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 8685 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8686 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lcma" >&5 | 
|  | 8687 | $as_echo_n "checking for pthread_create in -lcma... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 8688 | if test "${ac_cv_lib_cma_pthread_create+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8689 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 8690 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8691 | ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 8692 | LIBS="-lcma  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8693 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8694 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8695 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8696 | /* Override any GCC internal prototype to avoid an error. | 
|  | 8697 | Use char because int might match the return type of a GCC | 
|  | 8698 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8699 | #ifdef __cplusplus | 
|  | 8700 | extern "C" | 
|  | 8701 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8702 | char pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8703 | int | 
|  | 8704 | main () | 
|  | 8705 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8706 | return pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8707 | ; | 
|  | 8708 | return 0; | 
|  | 8709 | } | 
|  | 8710 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8711 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8712 | ac_cv_lib_cma_pthread_create=yes | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 8713 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8714 | ac_cv_lib_cma_pthread_create=no | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 8715 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8716 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 8717 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8718 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 8719 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cma_pthread_create" >&5 | 
|  | 8721 | $as_echo "$ac_cv_lib_cma_pthread_create" >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 8722 | if test "x$ac_cv_lib_cma_pthread_create" = x""yes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8723 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 8724 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 8725 | posix_threads=yes | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8726 | LIBS="$LIBS -lcma" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8727 | THREADOBJ="Python/thread.o" | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 8728 | else | 
| Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 8729 |  | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8730 | USE_THREAD_MODULE="#" | 
| Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 8731 | fi | 
|  | 8732 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8733 |  | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 8734 | fi | 
|  | 8735 |  | 
| Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 8736 | fi | 
|  | 8737 |  | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 8738 | fi | 
|  | 8739 |  | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 8740 | fi | 
|  | 8741 |  | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 8742 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8743 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 8744 | conftest$ac_exeext conftest.$ac_ext | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8745 | fi | 
|  | 8746 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8747 |  | 
|  | 8748 | fi | 
|  | 8749 |  | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8750 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8751 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8752 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usconfig in -lmpc" >&5 | 
|  | 8753 | $as_echo_n "checking for usconfig in -lmpc... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 8754 | if test "${ac_cv_lib_mpc_usconfig+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8755 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8756 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8757 | ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8758 | LIBS="-lmpc  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8759 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8760 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8761 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8762 | /* Override any GCC internal prototype to avoid an error. | 
|  | 8763 | Use char because int might match the return type of a GCC | 
|  | 8764 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8765 | #ifdef __cplusplus | 
|  | 8766 | extern "C" | 
|  | 8767 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8768 | char usconfig (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8769 | int | 
|  | 8770 | main () | 
|  | 8771 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8772 | return usconfig (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8773 | ; | 
|  | 8774 | return 0; | 
|  | 8775 | } | 
|  | 8776 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8777 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8778 | ac_cv_lib_mpc_usconfig=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8779 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8780 | ac_cv_lib_mpc_usconfig=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8781 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8782 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 8783 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8784 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8785 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpc_usconfig" >&5 | 
|  | 8787 | $as_echo "$ac_cv_lib_mpc_usconfig" >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 8788 | if test "x$ac_cv_lib_mpc_usconfig" = x""yes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8789 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8790 |  | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8791 | LIBS="$LIBS -lmpc" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8792 | THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8793 | USE_THREAD_MODULE="" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8794 | fi | 
|  | 8795 |  | 
| Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 8796 |  | 
| Neal Norwitz | a978ab0 | 2002-11-02 16:58:05 +0000 | [diff] [blame] | 8797 | if test "$posix_threads" != "yes"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8798 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5 | 
|  | 8799 | $as_echo_n "checking for thr_create in -lthread... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 8800 | if test "${ac_cv_lib_thread_thr_create+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8801 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8802 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8803 | ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8804 | LIBS="-lthread  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8805 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8806 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8807 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8808 | /* Override any GCC internal prototype to avoid an error. | 
|  | 8809 | Use char because int might match the return type of a GCC | 
|  | 8810 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8811 | #ifdef __cplusplus | 
|  | 8812 | extern "C" | 
|  | 8813 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8814 | char thr_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8815 | int | 
|  | 8816 | main () | 
|  | 8817 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8818 | return thr_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8819 | ; | 
|  | 8820 | return 0; | 
|  | 8821 | } | 
|  | 8822 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8823 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8824 | ac_cv_lib_thread_thr_create=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8825 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8826 | ac_cv_lib_thread_thr_create=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8827 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8828 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 8829 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8830 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8831 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5 | 
|  | 8833 | $as_echo "$ac_cv_lib_thread_thr_create" >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 8834 | if test "x$ac_cv_lib_thread_thr_create" = x""yes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8835 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8836 |  | 
| Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 8837 | LIBS="$LIBS -lthread" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8838 | THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 8839 | USE_THREAD_MODULE="" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8840 | fi | 
|  | 8841 |  | 
| Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 8842 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8843 |  | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8844 | if test "$USE_THREAD_MODULE" != "#" | 
|  | 8845 | then | 
|  | 8846 | # If the above checks didn't disable threads, (at least) OSF1 | 
|  | 8847 | # needs this '-threads' argument during linking. | 
|  | 8848 | case $ac_sys_system in | 
|  | 8849 | OSF1) LDLAST=-threads;; | 
|  | 8850 | esac | 
| Jeremy Hylton | 1a2ca86 | 2000-10-16 16:59:12 +0000 | [diff] [blame] | 8851 | fi | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8852 | fi | 
| Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 8853 |  | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8854 | if test "$posix_threads" = "yes"; then | 
|  | 8855 | if test "$unistd_defines_pthreads" = "no"; then | 
| Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 8856 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8857 | $as_echo "#define _POSIX_THREADS 1" >>confdefs.h | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8858 |  | 
|  | 8859 | fi | 
|  | 8860 |  | 
|  | 8861 | # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8. | 
|  | 8862 | case  $ac_sys_system/$ac_sys_release in | 
| Charles-François Natali | 996f606 | 2011-07-21 19:45:31 +0200 | [diff] [blame] | 8863 | SunOS/5.6) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8864 | $as_echo "#define HAVE_PTHREAD_DESTRUCTOR 1" >>confdefs.h | 
| Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 8865 |  | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8866 | ;; | 
|  | 8867 | SunOS/5.8) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8868 | $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8869 |  | 
|  | 8870 | ;; | 
| Charles-François Natali | 996f606 | 2011-07-21 19:45:31 +0200 | [diff] [blame] | 8871 | AIX/*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8872 | $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h | 
| Christian Heimes | 7b3ce6a | 2008-01-31 14:31:45 +0000 | [diff] [blame] | 8873 |  | 
|  | 8874 | ;; | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8875 | esac | 
|  | 8876 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8877 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 | 
|  | 8878 | $as_echo_n "checking if PTHREAD_SCOPE_SYSTEM is supported... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 8879 | if test "${ac_cv_pthread_system_supported+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8880 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8881 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8882 | if test "$cross_compiling" = yes; then : | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8883 | ac_cv_pthread_system_supported=no | 
|  | 8884 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8885 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8886 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8887 | #include <pthread.h> | 
|  | 8888 | void *foo(void *parm) { | 
|  | 8889 | return NULL; | 
|  | 8890 | } | 
|  | 8891 | main() { | 
|  | 8892 | pthread_attr_t attr; | 
|  | 8893 | pthread_t id; | 
|  | 8894 | if (pthread_attr_init(&attr)) exit(-1); | 
|  | 8895 | if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1); | 
|  | 8896 | if (pthread_create(&id, &attr, foo, NULL)) exit(-1); | 
|  | 8897 | exit(0); | 
|  | 8898 | } | 
|  | 8899 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8900 | if ac_fn_c_try_run "$LINENO"; then : | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8901 | ac_cv_pthread_system_supported=yes | 
|  | 8902 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8903 | ac_cv_pthread_system_supported=no | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8904 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8905 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 8906 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8907 | fi | 
| Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 8908 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8909 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8910 | fi | 
|  | 8911 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_system_supported" >&5 | 
|  | 8913 | $as_echo "$ac_cv_pthread_system_supported" >&6; } | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8914 | if test "$ac_cv_pthread_system_supported" = "yes"; then | 
|  | 8915 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8916 | $as_echo "#define PTHREAD_SYSTEM_SCHED_SUPPORTED 1" >>confdefs.h | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8917 |  | 
|  | 8918 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8919 | for ac_func in pthread_sigmask | 
|  | 8920 | do : | 
|  | 8921 | ac_fn_c_check_func "$LINENO" "pthread_sigmask" "ac_cv_func_pthread_sigmask" | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 8922 | 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] | 8923 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8924 | #define HAVE_PTHREAD_SIGMASK 1 | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8925 | _ACEOF | 
| Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 8926 | case $ac_sys_system in | 
|  | 8927 | CYGWIN*) | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8928 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8929 | $as_echo "#define HAVE_BROKEN_PTHREAD_SIGMASK 1" >>confdefs.h | 
| Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 8930 |  | 
|  | 8931 | ;; | 
|  | 8932 | esac | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8933 | fi | 
|  | 8934 | done | 
|  | 8935 |  | 
|  | 8936 | fi | 
|  | 8937 |  | 
|  | 8938 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8939 | # Check for enable-ipv6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8940 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8941 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-ipv6 is specified" >&5 | 
|  | 8942 | $as_echo_n "checking if --enable-ipv6 is specified... " >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8943 | # Check whether --enable-ipv6 was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8944 | if test "${enable_ipv6+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8945 | enableval=$enable_ipv6;  case "$enableval" in | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8946 | no) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 8948 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8949 | ipv6=no | 
|  | 8950 | ;; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8951 | *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 8952 | $as_echo "yes" >&6; } | 
|  | 8953 | $as_echo "#define ENABLE_IPV6 1" >>confdefs.h | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8954 |  | 
|  | 8955 | ipv6=yes | 
|  | 8956 | ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8957 | esac | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8958 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8959 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8960 | if test "$cross_compiling" = yes; then : | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8961 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 8963 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8964 | ipv6=no | 
|  | 8965 |  | 
|  | 8966 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8967 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8968 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8969 | /* AF_INET6 available check */ | 
|  | 8970 | #include <sys/types.h> | 
|  | 8971 | #include <sys/socket.h> | 
|  | 8972 | main() | 
|  | 8973 | { | 
|  | 8974 | if (socket(AF_INET6, SOCK_STREAM, 0) < 0) | 
|  | 8975 | exit(1); | 
|  | 8976 | else | 
|  | 8977 | exit(0); | 
|  | 8978 | } | 
|  | 8979 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8980 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8981 | if ac_fn_c_try_run "$LINENO"; then : | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8982 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8983 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 8984 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8985 | ipv6=yes | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8986 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8987 | else | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8988 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 8990 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8991 | ipv6=no | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8992 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8993 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8994 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 8995 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8996 | fi | 
|  | 8997 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8998 |  | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 8999 | if test "$ipv6" = "yes"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9000 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RFC2553 API is available" >&5 | 
|  | 9001 | $as_echo_n "checking if RFC2553 API is available... " >&6; } | 
|  | 9002 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9003 | /* end confdefs.h.  */ | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9004 |  | 
|  | 9005 | #include <sys/types.h> | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 9006 | #include <netinet/in.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9007 | int | 
|  | 9008 | main () | 
|  | 9009 | { | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 9010 | struct sockaddr_in6 x; | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9011 | x.sin6_scope_id; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9012 | ; | 
|  | 9013 | return 0; | 
|  | 9014 | } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9015 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9016 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9017 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9018 |  | 
|  | 9019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9020 | $as_echo "yes" >&6; } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9021 | ipv6=yes | 
|  | 9022 |  | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 9023 | else | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9024 |  | 
|  | 9025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9026 | $as_echo "no" >&6; } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9027 | ipv6=no | 
|  | 9028 |  | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 9029 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9030 | 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] | 9031 | fi | 
|  | 9032 |  | 
|  | 9033 | if test "$ipv6" = "yes"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9034 | $as_echo "#define ENABLE_IPV6 1" >>confdefs.h | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 9035 |  | 
|  | 9036 | fi | 
|  | 9037 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9038 | fi | 
|  | 9039 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9040 |  | 
|  | 9041 | ipv6type=unknown | 
|  | 9042 | ipv6lib=none | 
|  | 9043 | ipv6trylibc=no | 
|  | 9044 |  | 
|  | 9045 | if test "$ipv6" = "yes"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9046 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking ipv6 stack type" >&5 | 
|  | 9047 | $as_echo_n "checking ipv6 stack type... " >&6; } | 
| Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 9048 | for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; | 
|  | 9049 | do | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9050 | case $i in | 
|  | 9051 | inria) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9052 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9053 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9054 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9055 | #include <netinet/in.h> | 
|  | 9056 | #ifdef IPV6_INRIA_VERSION | 
|  | 9057 | yes | 
|  | 9058 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9059 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9060 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9061 | $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 9062 | ipv6type=$i | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9063 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 9064 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9065 |  | 
|  | 9066 | ;; | 
|  | 9067 | kame) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9068 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9069 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9070 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9071 | #include <netinet/in.h> | 
|  | 9072 | #ifdef __KAME__ | 
|  | 9073 | yes | 
|  | 9074 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9075 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9076 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9077 | $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9078 | ipv6type=$i; | 
|  | 9079 | ipv6lib=inet6 | 
|  | 9080 | ipv6libdir=/usr/local/v6/lib | 
|  | 9081 | ipv6trylibc=yes | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9082 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 9083 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9084 |  | 
|  | 9085 | ;; | 
|  | 9086 | linux-glibc) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9087 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9088 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9089 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9090 | #include <features.h> | 
|  | 9091 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) | 
|  | 9092 | yes | 
|  | 9093 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9094 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9095 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9096 | $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9097 | ipv6type=$i; | 
|  | 9098 | ipv6trylibc=yes | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9099 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 9100 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9101 |  | 
|  | 9102 | ;; | 
|  | 9103 | linux-inet6) | 
|  | 9104 | if test -d /usr/inet6; then | 
|  | 9105 | ipv6type=$i | 
|  | 9106 | ipv6lib=inet6 | 
|  | 9107 | ipv6libdir=/usr/inet6/lib | 
| Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 9108 | BASECFLAGS="-I/usr/inet6/include $BASECFLAGS" | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9109 | fi | 
|  | 9110 | ;; | 
|  | 9111 | solaris) | 
|  | 9112 | if test -f /etc/netconfig; then | 
| Antoine Pitrou | f3fcd9f | 2011-01-03 18:53:50 +0000 | [diff] [blame] | 9113 | if $GREP -q tcp6 /etc/netconfig; then | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9114 | ipv6type=$i | 
|  | 9115 | ipv6trylibc=yes | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9116 | fi | 
|  | 9117 | fi | 
|  | 9118 | ;; | 
|  | 9119 | toshiba) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9120 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9121 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9122 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9123 | #include <sys/param.h> | 
|  | 9124 | #ifdef _TOSHIBA_INET6 | 
|  | 9125 | yes | 
|  | 9126 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9127 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9128 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9129 | $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9130 | ipv6type=$i; | 
|  | 9131 | ipv6lib=inet6; | 
| Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 9132 | ipv6libdir=/usr/local/v6/lib | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9133 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 9134 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9135 |  | 
|  | 9136 | ;; | 
|  | 9137 | v6d) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9138 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9139 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9140 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9141 | #include </usr/local/v6/include/sys/v6config.h> | 
|  | 9142 | #ifdef __V6D__ | 
|  | 9143 | yes | 
|  | 9144 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9145 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9146 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9147 | $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9148 | ipv6type=$i; | 
|  | 9149 | ipv6lib=v6; | 
|  | 9150 | ipv6libdir=/usr/local/v6/lib; | 
| Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 9151 | BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS" | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9152 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 9153 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9154 |  | 
|  | 9155 | ;; | 
|  | 9156 | zeta) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9157 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9158 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9159 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9160 | #include <sys/param.h> | 
|  | 9161 | #ifdef _ZETA_MINAMI_INET6 | 
|  | 9162 | yes | 
|  | 9163 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9164 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9165 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9166 | $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9167 | ipv6type=$i; | 
|  | 9168 | ipv6lib=inet6; | 
| Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 9169 | ipv6libdir=/usr/local/v6/lib | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9170 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 9171 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9172 |  | 
|  | 9173 | ;; | 
|  | 9174 | esac | 
|  | 9175 | if test "$ipv6type" != "unknown"; then | 
|  | 9176 | break | 
|  | 9177 | fi | 
|  | 9178 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6type" >&5 | 
|  | 9180 | $as_echo "$ipv6type" >&6; } | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9181 | fi | 
|  | 9182 |  | 
|  | 9183 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then | 
|  | 9184 | if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then | 
|  | 9185 | LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" | 
|  | 9186 | echo "using lib$ipv6lib" | 
|  | 9187 | else | 
|  | 9188 | if test $ipv6trylibc = "yes"; then | 
|  | 9189 | echo "using libc" | 
|  | 9190 | else | 
|  | 9191 | echo 'Fatal: no $ipv6lib library found.  cannot continue.' | 
|  | 9192 | echo "You need to fetch lib$ipv6lib.a from appropriate" | 
|  | 9193 | echo 'ipv6 kit and compile beforehand.' | 
|  | 9194 | exit 1 | 
|  | 9195 | fi | 
|  | 9196 | fi | 
|  | 9197 | fi | 
|  | 9198 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9199 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSX 10.5 SDK or later" >&5 | 
|  | 9200 | $as_echo_n "checking for OSX 10.5 SDK or later... " >&6; } | 
|  | 9201 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 9202 | /* end confdefs.h.  */ | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9203 |  | 
|  | 9204 | #include <Carbon/Carbon.h> | 
| Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 9205 | int | 
|  | 9206 | main () | 
|  | 9207 | { | 
|  | 9208 | FSIORefNum fRef = 0 | 
|  | 9209 | ; | 
|  | 9210 | return 0; | 
|  | 9211 | } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9212 |  | 
| Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 9213 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9214 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 9215 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9216 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9217 | $as_echo "#define HAVE_OSX105_SDK 1" >>confdefs.h | 
| Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 9218 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 9220 | $as_echo "yes" >&6; } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9221 |  | 
| Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 9222 | else | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9223 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 9225 | $as_echo "no" >&6; } | 
| Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 9226 |  | 
|  | 9227 | fi | 
| Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 9228 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 9229 |  | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 9230 | # Check for --with-doc-strings | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9231 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-doc-strings" >&5 | 
|  | 9232 | $as_echo_n "checking for --with-doc-strings... " >&6; } | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 9233 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9234 | # Check whether --with-doc-strings was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9235 | if test "${with_doc_strings+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9236 | withval=$with_doc_strings; | 
|  | 9237 | fi | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 9238 |  | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 9239 |  | 
|  | 9240 | if test -z "$with_doc_strings" | 
|  | 9241 | then with_doc_strings="yes" | 
|  | 9242 | fi | 
|  | 9243 | if test "$with_doc_strings" != "no" | 
|  | 9244 | then | 
|  | 9245 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9246 | $as_echo "#define WITH_DOC_STRINGS 1" >>confdefs.h | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 9247 |  | 
|  | 9248 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_doc_strings" >&5 | 
|  | 9250 | $as_echo "$with_doc_strings" >&6; } | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 9251 |  | 
| Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 9252 | # Check if eval loop should use timestamp counter profiling | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9253 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tsc" >&5 | 
|  | 9254 | $as_echo_n "checking for --with-tsc... " >&6; } | 
| Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 9255 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9256 | # Check whether --with-tsc was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9257 | if test "${with_tsc+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9258 | withval=$with_tsc; | 
| Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 9259 | if test "$withval" != no | 
|  | 9260 | then | 
|  | 9261 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9262 | $as_echo "#define WITH_TSC 1" >>confdefs.h | 
| Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 9263 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 9265 | $as_echo "yes" >&6; } | 
|  | 9266 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 9267 | $as_echo "no" >&6; } | 
| Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 9268 | fi | 
|  | 9269 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9270 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 9271 | $as_echo "no" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9272 | fi | 
|  | 9273 |  | 
| Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 9274 |  | 
|  | 9275 | # Check for Python-specific malloc support | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9276 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pymalloc" >&5 | 
|  | 9277 | $as_echo_n "checking for --with-pymalloc... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9278 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9279 | # Check whether --with-pymalloc was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9280 | if test "${with_pymalloc+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9281 | withval=$with_pymalloc; | 
|  | 9282 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9283 |  | 
| Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 9284 |  | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 9285 | if test -z "$with_pymalloc" | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 9286 | then | 
|  | 9287 | with_pymalloc="yes" | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 9288 | ABIFLAGS="${ABIFLAGS}m" | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 9289 | fi | 
|  | 9290 | if test "$with_pymalloc" != "no" | 
|  | 9291 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9292 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9293 | $as_echo "#define WITH_PYMALLOC 1" >>confdefs.h | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 9294 |  | 
|  | 9295 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pymalloc" >&5 | 
|  | 9297 | $as_echo "$with_pymalloc" >&6; } | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 9298 |  | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 9299 | # Check for Valgrind support | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9300 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-valgrind" >&5 | 
|  | 9301 | $as_echo_n "checking for --with-valgrind... " >&6; } | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 9302 |  | 
|  | 9303 | # Check whether --with-valgrind was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9304 | if test "${with_valgrind+set}" = set; then : | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 9305 | withval=$with_valgrind; | 
|  | 9306 | else | 
|  | 9307 | with_valgrind=no | 
|  | 9308 | fi | 
|  | 9309 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_valgrind" >&5 | 
|  | 9311 | $as_echo "$with_valgrind" >&6; } | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 9312 | if test "$with_valgrind" != no; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9313 | ac_fn_c_check_header_mongrel "$LINENO" "valgrind/valgrind.h" "ac_cv_header_valgrind_valgrind_h" "$ac_includes_default" | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 9314 | if test "x$ac_cv_header_valgrind_valgrind_h" = x""yes; then : | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 9315 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9316 | $as_echo "#define WITH_VALGRIND 1" >>confdefs.h | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 9317 |  | 
|  | 9318 | else | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 9319 | as_fn_error $? "Valgrind support requested but headers not available" "$LINENO" 5 | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 9320 |  | 
|  | 9321 | fi | 
|  | 9322 |  | 
|  | 9323 |  | 
| Jeffrey Yasskin | 3937083 | 2010-05-03 19:29:34 +0000 | [diff] [blame] | 9324 | OPT="-DDYNAMIC_ANNOTATIONS_ENABLED=1 $OPT" | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 9325 | fi | 
|  | 9326 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9327 | # -I${DLINCLDIR} is added to the compile rule for importdl.o | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 9328 |  | 
| Guido van Rossum | 98935bf | 2001-09-05 19:13:16 +0000 | [diff] [blame] | 9329 | DLINCLDIR=. | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 9330 |  | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9331 | # the dlopen() function means we might want to use dynload_shlib.o. some | 
|  | 9332 | # 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] | 9333 | for ac_func in dlopen | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9334 | do : | 
|  | 9335 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 9336 | if test "x$ac_cv_func_dlopen" = x""yes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9337 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9338 | #define HAVE_DLOPEN 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9339 | _ACEOF | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9340 |  | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9341 | fi | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 9342 | done | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9343 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9344 |  | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9345 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic | 
|  | 9346 | # loading of modules. | 
|  | 9347 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9348 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking DYNLOADFILE" >&5 | 
|  | 9349 | $as_echo_n "checking DYNLOADFILE... " >&6; } | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9350 | if test -z "$DYNLOADFILE" | 
|  | 9351 | then | 
|  | 9352 | case $ac_sys_system/$ac_sys_release in | 
| Martin v. Löwis | c19c5a6 | 2003-11-18 20:00:44 +0000 | [diff] [blame] | 9353 | AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c | 
|  | 9354 | if test "$ac_cv_func_dlopen" = yes | 
|  | 9355 | then DYNLOADFILE="dynload_shlib.o" | 
|  | 9356 | else DYNLOADFILE="dynload_aix.o" | 
|  | 9357 | fi | 
|  | 9358 | ;; | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9359 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 9360 | # Use dynload_next.c only on 10.2 and below, which don't have native dlopen() | 
|  | 9361 | Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";; | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9362 | *) | 
|  | 9363 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub | 
|  | 9364 | # out any dynamic loading | 
|  | 9365 | if test "$ac_cv_func_dlopen" = yes | 
|  | 9366 | then DYNLOADFILE="dynload_shlib.o" | 
|  | 9367 | else DYNLOADFILE="dynload_stub.o" | 
|  | 9368 | fi | 
|  | 9369 | ;; | 
|  | 9370 | esac | 
|  | 9371 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DYNLOADFILE" >&5 | 
|  | 9373 | $as_echo "$DYNLOADFILE" >&6; } | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9374 | if test "$DYNLOADFILE" != "dynload_stub.o" | 
|  | 9375 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9376 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9377 | $as_echo "#define HAVE_DYNAMIC_LOADING 1" >>confdefs.h | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9378 |  | 
|  | 9379 | fi | 
|  | 9380 |  | 
| Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 9381 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python | 
|  | 9382 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9383 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9384 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP_OBJS" >&5 | 
|  | 9385 | $as_echo_n "checking MACHDEP_OBJS... " >&6; } | 
| Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 9386 | if test -z "$MACHDEP_OBJS" | 
|  | 9387 | then | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9388 | MACHDEP_OBJS=$extra_machdep_objs | 
|  | 9389 | else | 
|  | 9390 | MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" | 
| Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 9391 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: MACHDEP_OBJS" >&5 | 
|  | 9393 | $as_echo "MACHDEP_OBJS" >&6; } | 
| Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 9394 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9395 | # checks for library functions | 
| Antoine Pitrou | b1c5496 | 2010-10-14 15:05:38 +0000 | [diff] [blame] | 9396 | for ac_func in alarm accept4 setitimer getitimer bind_textdomain_codeset chown \ | 
| Martin v. Löwis | 823725e | 2008-03-24 13:39:54 +0000 | [diff] [blame] | 9397 | clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \ | 
| Martin v. Löwis | 438b534 | 2002-12-27 10:16:42 +0000 | [diff] [blame] | 9398 | gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \ | 
| Martin v. Löwis | 7aed61a | 2009-11-27 14:09:49 +0000 | [diff] [blame] | 9399 | getpriority getresuid getresgid getpwent getspnam getspent getsid getwd \ | 
| Antoine Pitrou | b7572f0 | 2009-12-02 20:46:48 +0000 | [diff] [blame] | 9400 | initgroups kill killpg lchmod lchown lstat mbrtowc mkfifo mknod mktime \ | 
| Martin v. Löwis | a5f0907 | 2002-10-11 05:37:59 +0000 | [diff] [blame] | 9401 | mremap nice pathconf pause plock poll pthread_init \ | 
| Guido van Rossum | 162e38c | 2003-02-19 15:25:10 +0000 | [diff] [blame] | 9402 | putenv readlink realpath \ | 
| Benjamin Peterson | 965ce87 | 2009-04-05 21:24:58 +0000 | [diff] [blame] | 9403 | select sem_open sem_timedwait sem_getvalue sem_unlink setegid seteuid \ | 
|  | 9404 | setgid \ | 
| Martin v. Löwis | 7aed61a | 2009-11-27 14:09:49 +0000 | [diff] [blame] | 9405 | setlocale setregid setreuid setresuid setresgid setsid setpgid setpgrp setuid setvbuf \ | 
| Jean-Paul Calderone | 6ed7ac4 | 2010-06-19 19:58:37 +0000 | [diff] [blame] | 9406 | sigaction siginterrupt sigrelse snprintf strftime strlcpy \ | 
| Michael W. Hudson | 34f20ea | 2002-05-27 15:08:24 +0000 | [diff] [blame] | 9407 | sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ | 
| Martin v. Löwis | 113a085 | 2009-05-29 17:25:39 +0000 | [diff] [blame] | 9408 | truncate uname unsetenv utimes waitpid wait3 wait4 \ | 
|  | 9409 | wcscoll wcsftime wcsxfrm _getpty | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9410 | do : | 
|  | 9411 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 9412 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 9413 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9414 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9415 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9416 | _ACEOF | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 9417 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 9418 | fi | 
|  | 9419 | done | 
|  | 9420 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9421 |  | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9422 | # For some functions, having a definition is not sufficient, since | 
|  | 9423 | # we want to take their address. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9424 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chroot" >&5 | 
|  | 9425 | $as_echo_n "checking for chroot... " >&6; } | 
|  | 9426 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9427 | /* end confdefs.h.  */ | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9428 | #include <unistd.h> | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9429 | int | 
|  | 9430 | main () | 
|  | 9431 | { | 
|  | 9432 | void *x=chroot | 
|  | 9433 | ; | 
|  | 9434 | return 0; | 
|  | 9435 | } | 
|  | 9436 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9437 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9438 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9439 | $as_echo "#define HAVE_CHROOT 1" >>confdefs.h | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9440 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9442 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9443 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 9445 | $as_echo "no" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9446 |  | 
|  | 9447 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9448 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9449 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for link" >&5 | 
|  | 9450 | $as_echo_n "checking for link... " >&6; } | 
|  | 9451 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9452 | /* end confdefs.h.  */ | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9453 | #include <unistd.h> | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9454 | int | 
|  | 9455 | main () | 
|  | 9456 | { | 
|  | 9457 | void *x=link | 
|  | 9458 | ; | 
|  | 9459 | return 0; | 
|  | 9460 | } | 
|  | 9461 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9462 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9463 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9464 | $as_echo "#define HAVE_LINK 1" >>confdefs.h | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9465 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9467 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9468 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 9470 | $as_echo "no" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9471 |  | 
|  | 9472 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9473 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9474 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for symlink" >&5 | 
|  | 9475 | $as_echo_n "checking for symlink... " >&6; } | 
|  | 9476 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9477 | /* end confdefs.h.  */ | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9478 | #include <unistd.h> | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9479 | int | 
|  | 9480 | main () | 
|  | 9481 | { | 
|  | 9482 | void *x=symlink | 
|  | 9483 | ; | 
|  | 9484 | return 0; | 
|  | 9485 | } | 
|  | 9486 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9487 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9488 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9489 | $as_echo "#define HAVE_SYMLINK 1" >>confdefs.h | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9490 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9492 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9493 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 9495 | $as_echo "no" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9496 |  | 
|  | 9497 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9498 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9499 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fchdir" >&5 | 
|  | 9500 | $as_echo_n "checking for fchdir... " >&6; } | 
|  | 9501 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9502 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9503 | #include <unistd.h> | 
|  | 9504 | int | 
|  | 9505 | main () | 
|  | 9506 | { | 
|  | 9507 | void *x=fchdir | 
|  | 9508 | ; | 
|  | 9509 | return 0; | 
|  | 9510 | } | 
|  | 9511 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9512 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9513 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9514 | $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9515 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9516 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9517 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9518 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9519 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 9520 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9521 |  | 
|  | 9522 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9523 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9524 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fsync" >&5 | 
|  | 9525 | $as_echo_n "checking for fsync... " >&6; } | 
|  | 9526 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9527 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9528 | #include <unistd.h> | 
|  | 9529 | int | 
|  | 9530 | main () | 
|  | 9531 | { | 
|  | 9532 | void *x=fsync | 
|  | 9533 | ; | 
|  | 9534 | return 0; | 
|  | 9535 | } | 
|  | 9536 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9537 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9538 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9539 | $as_echo "#define HAVE_FSYNC 1" >>confdefs.h | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9540 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9542 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9543 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 9545 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9546 |  | 
|  | 9547 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9548 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9549 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fdatasync" >&5 | 
|  | 9550 | $as_echo_n "checking for fdatasync... " >&6; } | 
|  | 9551 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9552 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9553 | #include <unistd.h> | 
|  | 9554 | int | 
|  | 9555 | main () | 
|  | 9556 | { | 
|  | 9557 | void *x=fdatasync | 
|  | 9558 | ; | 
|  | 9559 | return 0; | 
|  | 9560 | } | 
|  | 9561 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9562 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9563 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9564 | $as_echo "#define HAVE_FDATASYNC 1" >>confdefs.h | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9565 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9566 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9567 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9568 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 9570 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9571 |  | 
|  | 9572 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9573 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9574 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll" >&5 | 
|  | 9575 | $as_echo_n "checking for epoll... " >&6; } | 
|  | 9576 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 9577 | /* end confdefs.h.  */ | 
|  | 9578 | #include <sys/epoll.h> | 
|  | 9579 | int | 
|  | 9580 | main () | 
|  | 9581 | { | 
|  | 9582 | void *x=epoll_create | 
|  | 9583 | ; | 
|  | 9584 | return 0; | 
|  | 9585 | } | 
|  | 9586 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9587 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9588 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9589 | $as_echo "#define HAVE_EPOLL 1" >>confdefs.h | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 9590 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9592 | $as_echo "yes" >&6; } | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 9593 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 9595 | $as_echo "no" >&6; } | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 9596 |  | 
|  | 9597 | fi | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 9598 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9599 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kqueue" >&5 | 
|  | 9600 | $as_echo_n "checking for kqueue... " >&6; } | 
|  | 9601 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 9602 | /* end confdefs.h.  */ | 
|  | 9603 |  | 
|  | 9604 | #include <sys/types.h> | 
|  | 9605 | #include <sys/event.h> | 
|  | 9606 |  | 
|  | 9607 | int | 
|  | 9608 | main () | 
|  | 9609 | { | 
|  | 9610 | int x=kqueue() | 
|  | 9611 | ; | 
|  | 9612 | return 0; | 
|  | 9613 | } | 
|  | 9614 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9615 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 9616 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9617 | $as_echo "#define HAVE_KQUEUE 1" >>confdefs.h | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 9618 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9620 | $as_echo "yes" >&6; } | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 9621 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 9623 | $as_echo "no" >&6; } | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 9624 |  | 
|  | 9625 | fi | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 9626 | 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] | 9627 | # On some systems (eg. FreeBSD 5), we would find a definition of the | 
|  | 9628 | # functions ctermid_r, setgroups in the library, but no prototype | 
|  | 9629 | # (e.g. because we use _XOPEN_SOURCE). See whether we can take their | 
|  | 9630 | # address to avoid compiler warnings and potential miscompilations | 
|  | 9631 | # because of the missing prototypes. | 
|  | 9632 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9633 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctermid_r" >&5 | 
|  | 9634 | $as_echo_n "checking for ctermid_r... " >&6; } | 
|  | 9635 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9636 | /* end confdefs.h.  */ | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 9637 |  | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 9638 | #include <stdio.h> | 
|  | 9639 |  | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 9640 | int | 
|  | 9641 | main () | 
|  | 9642 | { | 
|  | 9643 | void* p = ctermid_r | 
|  | 9644 | ; | 
|  | 9645 | return 0; | 
|  | 9646 | } | 
|  | 9647 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9648 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 9649 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9650 | $as_echo "#define HAVE_CTERMID_R 1" >>confdefs.h | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 9651 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9653 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 9654 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 9656 | $as_echo "no" >&6; } | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 9657 |  | 
|  | 9658 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9659 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 9660 |  | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 9661 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock declaration" >&5 | 
|  | 9662 | $as_echo_n "checking for flock declaration... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 9663 | if test "${ac_cv_flock_decl+set}" = set; then : | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 9664 | $as_echo_n "(cached) " >&6 | 
|  | 9665 | else | 
|  | 9666 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9667 | /* end confdefs.h.  */ | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9668 | #include <sys/file.h> | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9669 | int | 
|  | 9670 | main () | 
|  | 9671 | { | 
|  | 9672 | void* p = flock | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 9673 |  | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9674 | ; | 
|  | 9675 | return 0; | 
|  | 9676 | } | 
|  | 9677 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9678 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 9679 | ac_cv_flock_decl=yes | 
|  | 9680 | else | 
|  | 9681 | ac_cv_flock_decl=no | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9682 |  | 
|  | 9683 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9684 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 9685 |  | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 9686 | fi | 
|  | 9687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flock_decl" >&5 | 
|  | 9688 | $as_echo "$ac_cv_flock_decl" >&6; } | 
|  | 9689 | if test "x${ac_cv_flock_decl}" = xyes; then | 
|  | 9690 | for ac_func in flock | 
|  | 9691 | do : | 
|  | 9692 | ac_fn_c_check_func "$LINENO" "flock" "ac_cv_func_flock" | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 9693 | if test "x$ac_cv_func_flock" = x""yes; then : | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 9694 | cat >>confdefs.h <<_ACEOF | 
|  | 9695 | #define HAVE_FLOCK 1 | 
| Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 9696 | _ACEOF | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 9697 |  | 
| Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 9698 | else | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 9699 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock in -lbsd" >&5 | 
| Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 9700 | $as_echo_n "checking for flock in -lbsd... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 9701 | if test "${ac_cv_lib_bsd_flock+set}" = set; then : | 
| Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 9702 | $as_echo_n "(cached) " >&6 | 
|  | 9703 | else | 
|  | 9704 | ac_check_lib_save_LIBS=$LIBS | 
|  | 9705 | LIBS="-lbsd  $LIBS" | 
|  | 9706 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 9707 | /* end confdefs.h.  */ | 
|  | 9708 |  | 
|  | 9709 | /* Override any GCC internal prototype to avoid an error. | 
|  | 9710 | Use char because int might match the return type of a GCC | 
|  | 9711 | builtin and then its argument prototype would still apply.  */ | 
|  | 9712 | #ifdef __cplusplus | 
|  | 9713 | extern "C" | 
|  | 9714 | #endif | 
|  | 9715 | char flock (); | 
|  | 9716 | int | 
|  | 9717 | main () | 
|  | 9718 | { | 
|  | 9719 | return flock (); | 
|  | 9720 | ; | 
|  | 9721 | return 0; | 
|  | 9722 | } | 
|  | 9723 | _ACEOF | 
|  | 9724 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 9725 | ac_cv_lib_bsd_flock=yes | 
|  | 9726 | else | 
|  | 9727 | ac_cv_lib_bsd_flock=no | 
|  | 9728 | fi | 
|  | 9729 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 9730 | conftest$ac_exeext conftest.$ac_ext | 
|  | 9731 | LIBS=$ac_check_lib_save_LIBS | 
|  | 9732 | fi | 
|  | 9733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_flock" >&5 | 
|  | 9734 | $as_echo "$ac_cv_lib_bsd_flock" >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 9735 | if test "x$ac_cv_lib_bsd_flock" = x""yes; then : | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 9736 | $as_echo "#define HAVE_FLOCK 1" >>confdefs.h | 
| Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 9737 |  | 
|  | 9738 |  | 
|  | 9739 | $as_echo "#define FLOCK_NEEDS_LIBBSD 1" >>confdefs.h | 
|  | 9740 |  | 
|  | 9741 |  | 
|  | 9742 | fi | 
|  | 9743 |  | 
|  | 9744 |  | 
|  | 9745 | fi | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 9746 | done | 
|  | 9747 |  | 
| Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 9748 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9749 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9750 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize" >&5 | 
|  | 9751 | $as_echo_n "checking for getpagesize... " >&6; } | 
|  | 9752 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9753 | /* end confdefs.h.  */ | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9754 |  | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9755 | #include <unistd.h> | 
|  | 9756 |  | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9757 | int | 
|  | 9758 | main () | 
|  | 9759 | { | 
|  | 9760 | void* p = getpagesize | 
|  | 9761 | ; | 
|  | 9762 | return 0; | 
|  | 9763 | } | 
|  | 9764 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9765 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9766 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9767 | $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9768 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9770 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9771 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 9773 | $as_echo "no" >&6; } | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9774 |  | 
|  | 9775 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9776 | 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] | 9777 |  | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9778 | for ac_prog in true | 
|  | 9779 | do | 
|  | 9780 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 9781 | set dummy $ac_prog; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9782 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 9783 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 9784 | if test "${ac_cv_prog_TRUE+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9785 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9786 | else | 
|  | 9787 | if test -n "$TRUE"; then | 
|  | 9788 | ac_cv_prog_TRUE="$TRUE" # Let the user override the test. | 
|  | 9789 | else | 
|  | 9790 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 9791 | for as_dir in $PATH | 
|  | 9792 | do | 
|  | 9793 | IFS=$as_save_IFS | 
|  | 9794 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9795 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9796 | 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] | 9797 | ac_cv_prog_TRUE="$ac_prog" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9798 | $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] | 9799 | break 2 | 
|  | 9800 | fi | 
|  | 9801 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9802 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9803 | IFS=$as_save_IFS | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9804 |  | 
|  | 9805 | fi | 
|  | 9806 | fi | 
|  | 9807 | TRUE=$ac_cv_prog_TRUE | 
|  | 9808 | if test -n "$TRUE"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUE" >&5 | 
|  | 9810 | $as_echo "$TRUE" >&6; } | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9811 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 9813 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9814 | fi | 
|  | 9815 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9816 |  | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9817 | test -n "$TRUE" && break | 
|  | 9818 | done | 
|  | 9819 | test -n "$TRUE" || TRUE="/bin/true" | 
|  | 9820 |  | 
|  | 9821 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9822 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lc" >&5 | 
|  | 9823 | $as_echo_n "checking for inet_aton in -lc... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 9824 | if test "${ac_cv_lib_c_inet_aton+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9825 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9826 | else | 
|  | 9827 | ac_check_lib_save_LIBS=$LIBS | 
|  | 9828 | LIBS="-lc  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9829 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9830 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9831 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9832 | /* Override any GCC internal prototype to avoid an error. | 
|  | 9833 | Use char because int might match the return type of a GCC | 
|  | 9834 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9835 | #ifdef __cplusplus | 
|  | 9836 | extern "C" | 
|  | 9837 | #endif | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9838 | char inet_aton (); | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9839 | int | 
|  | 9840 | main () | 
|  | 9841 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9842 | return inet_aton (); | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9843 | ; | 
|  | 9844 | return 0; | 
|  | 9845 | } | 
|  | 9846 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9847 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9848 | ac_cv_lib_c_inet_aton=yes | 
|  | 9849 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9850 | ac_cv_lib_c_inet_aton=no | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9851 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9852 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 9853 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9854 | LIBS=$ac_check_lib_save_LIBS | 
|  | 9855 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_inet_aton" >&5 | 
|  | 9857 | $as_echo "$ac_cv_lib_c_inet_aton" >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 9858 | 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] | 9859 | $ac_cv_prog_TRUE | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9860 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9861 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5 | 
|  | 9862 | $as_echo_n "checking for inet_aton in -lresolv... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 9863 | if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9864 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9865 | else | 
|  | 9866 | ac_check_lib_save_LIBS=$LIBS | 
|  | 9867 | LIBS="-lresolv  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9868 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9869 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9870 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9871 | /* Override any GCC internal prototype to avoid an error. | 
|  | 9872 | Use char because int might match the return type of a GCC | 
|  | 9873 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9874 | #ifdef __cplusplus | 
|  | 9875 | extern "C" | 
|  | 9876 | #endif | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9877 | char inet_aton (); | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9878 | int | 
|  | 9879 | main () | 
|  | 9880 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9881 | return inet_aton (); | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9882 | ; | 
|  | 9883 | return 0; | 
|  | 9884 | } | 
|  | 9885 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9886 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9887 | ac_cv_lib_resolv_inet_aton=yes | 
|  | 9888 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9889 | ac_cv_lib_resolv_inet_aton=no | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9890 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9891 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 9892 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9893 | LIBS=$ac_check_lib_save_LIBS | 
|  | 9894 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5 | 
|  | 9896 | $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 9897 | 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] | 9898 | cat >>confdefs.h <<_ACEOF | 
|  | 9899 | #define HAVE_LIBRESOLV 1 | 
|  | 9900 | _ACEOF | 
|  | 9901 |  | 
|  | 9902 | LIBS="-lresolv $LIBS" | 
|  | 9903 |  | 
|  | 9904 | fi | 
|  | 9905 |  | 
|  | 9906 |  | 
|  | 9907 | fi | 
|  | 9908 |  | 
|  | 9909 |  | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 9910 | # On Tru64, chflags seems to be present, but calling it will | 
|  | 9911 | # exit Python | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9912 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chflags" >&5 | 
|  | 9913 | $as_echo_n "checking for chflags... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 9914 | if test "${ac_cv_have_chflags+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9915 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9916 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9917 | if test "$cross_compiling" = yes; then : | 
| Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 9918 | ac_cv_have_chflags=cross | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 9919 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9920 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 9921 | /* end confdefs.h.  */ | 
| Ned Deily | 3eb67d5 | 2011-06-28 00:00:28 -0700 | [diff] [blame] | 9922 |  | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 9923 | #include <sys/stat.h> | 
|  | 9924 | #include <unistd.h> | 
|  | 9925 | int main(int argc, char*argv[]) | 
|  | 9926 | { | 
|  | 9927 | if(chflags(argv[0], 0) != 0) | 
|  | 9928 | return 1; | 
|  | 9929 | return 0; | 
|  | 9930 | } | 
| Ned Deily | 3eb67d5 | 2011-06-28 00:00:28 -0700 | [diff] [blame] | 9931 |  | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 9932 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9933 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9934 | ac_cv_have_chflags=yes | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9935 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9936 | ac_cv_have_chflags=no | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9937 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9938 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 9939 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 9940 | fi | 
|  | 9941 |  | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9942 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9943 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_chflags" >&5 | 
|  | 9945 | $as_echo "$ac_cv_have_chflags" >&6; } | 
| Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 9946 | if test "$ac_cv_have_chflags" = cross ; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9947 | ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags" | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 9948 | if test "x$ac_cv_func_chflags" = x""yes; then : | 
| Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 9949 | ac_cv_have_chflags="yes" | 
|  | 9950 | else | 
|  | 9951 | ac_cv_have_chflags="no" | 
|  | 9952 | fi | 
|  | 9953 |  | 
|  | 9954 | fi | 
|  | 9955 | if test "$ac_cv_have_chflags" = yes ; then | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9956 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9957 | $as_echo "#define HAVE_CHFLAGS 1" >>confdefs.h | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9958 |  | 
|  | 9959 | fi | 
|  | 9960 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9961 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lchflags" >&5 | 
|  | 9962 | $as_echo_n "checking for lchflags... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 9963 | if test "${ac_cv_have_lchflags+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9964 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9965 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9966 | if test "$cross_compiling" = yes; then : | 
| Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 9967 | ac_cv_have_lchflags=cross | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 9968 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9969 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 9970 | /* end confdefs.h.  */ | 
| Ned Deily | 3eb67d5 | 2011-06-28 00:00:28 -0700 | [diff] [blame] | 9971 |  | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 9972 | #include <sys/stat.h> | 
|  | 9973 | #include <unistd.h> | 
|  | 9974 | int main(int argc, char*argv[]) | 
|  | 9975 | { | 
|  | 9976 | if(lchflags(argv[0], 0) != 0) | 
|  | 9977 | return 1; | 
|  | 9978 | return 0; | 
|  | 9979 | } | 
| Ned Deily | 3eb67d5 | 2011-06-28 00:00:28 -0700 | [diff] [blame] | 9980 |  | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 9981 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9982 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9983 | ac_cv_have_lchflags=yes | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9984 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9985 | ac_cv_have_lchflags=no | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 9986 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9987 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 9988 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9989 | fi | 
|  | 9990 |  | 
|  | 9991 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9992 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_lchflags" >&5 | 
|  | 9994 | $as_echo "$ac_cv_have_lchflags" >&6; } | 
| Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 9995 | if test "$ac_cv_have_lchflags" = cross ; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9996 | ac_fn_c_check_func "$LINENO" "lchflags" "ac_cv_func_lchflags" | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 9997 | if test "x$ac_cv_func_lchflags" = x""yes; then : | 
| Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 9998 | ac_cv_have_lchflags="yes" | 
|  | 9999 | else | 
|  | 10000 | ac_cv_have_lchflags="no" | 
|  | 10001 | fi | 
|  | 10002 |  | 
|  | 10003 | fi | 
|  | 10004 | if test "$ac_cv_have_lchflags" = yes ; then | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10005 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10006 | $as_echo "#define HAVE_LCHFLAGS 1" >>confdefs.h | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10007 |  | 
|  | 10008 | fi | 
|  | 10009 |  | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 10010 | case $ac_sys_system/$ac_sys_release in | 
|  | 10011 | Darwin/*) | 
|  | 10012 | _CUR_CFLAGS="${CFLAGS}" | 
|  | 10013 | _CUR_LDFLAGS="${LDFLAGS}" | 
|  | 10014 | CFLAGS="${CFLAGS} -Wl,-search_paths_first" | 
|  | 10015 | LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib" | 
|  | 10016 | ;; | 
|  | 10017 | esac | 
|  | 10018 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10019 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5 | 
|  | 10020 | $as_echo_n "checking for inflateCopy in -lz... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 10021 | if test "${ac_cv_lib_z_inflateCopy+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10022 | $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 10023 | else | 
|  | 10024 | ac_check_lib_save_LIBS=$LIBS | 
|  | 10025 | LIBS="-lz  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10026 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 10027 | /* end confdefs.h.  */ | 
|  | 10028 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10029 | /* Override any GCC internal prototype to avoid an error. | 
|  | 10030 | Use char because int might match the return type of a GCC | 
|  | 10031 | builtin and then its argument prototype would still apply.  */ | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 10032 | #ifdef __cplusplus | 
|  | 10033 | extern "C" | 
|  | 10034 | #endif | 
|  | 10035 | char inflateCopy (); | 
|  | 10036 | int | 
|  | 10037 | main () | 
|  | 10038 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10039 | return inflateCopy (); | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 10040 | ; | 
|  | 10041 | return 0; | 
|  | 10042 | } | 
|  | 10043 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10044 | if ac_fn_c_try_link "$LINENO"; then : | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 10045 | ac_cv_lib_z_inflateCopy=yes | 
|  | 10046 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10047 | ac_cv_lib_z_inflateCopy=no | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 10048 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10049 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 10050 | conftest$ac_exeext conftest.$ac_ext | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 10051 | LIBS=$ac_check_lib_save_LIBS | 
|  | 10052 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5 | 
|  | 10054 | $as_echo "$ac_cv_lib_z_inflateCopy" >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 10055 | if test "x$ac_cv_lib_z_inflateCopy" = x""yes; then : | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 10056 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10057 | $as_echo "#define HAVE_ZLIB_COPY 1" >>confdefs.h | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 10058 |  | 
|  | 10059 | fi | 
|  | 10060 |  | 
|  | 10061 |  | 
|  | 10062 | case $ac_sys_system/$ac_sys_release in | 
|  | 10063 | Darwin/*) | 
|  | 10064 | CFLAGS="${_CUR_CFLAGS}" | 
|  | 10065 | LDFLAGS="${_CUR_LDFLAGS}" | 
|  | 10066 | ;; | 
|  | 10067 | esac | 
|  | 10068 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10069 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hstrerror" >&5 | 
|  | 10070 | $as_echo_n "checking for hstrerror... " >&6; } | 
|  | 10071 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10072 | /* end confdefs.h.  */ | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10073 |  | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10074 | #include <netdb.h> | 
|  | 10075 |  | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10076 | int | 
|  | 10077 | main () | 
|  | 10078 | { | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10079 | void* p = hstrerror; hstrerror(0) | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10080 | ; | 
|  | 10081 | return 0; | 
|  | 10082 | } | 
|  | 10083 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10084 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10085 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10086 | $as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10087 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10089 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10090 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 10092 | $as_echo "no" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10093 |  | 
|  | 10094 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10095 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 10096 | conftest$ac_exeext conftest.$ac_ext | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10097 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10098 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton" >&5 | 
|  | 10099 | $as_echo_n "checking for inet_aton... " >&6; } | 
|  | 10100 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10101 | /* end confdefs.h.  */ | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10102 |  | 
| Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 10103 | #include <sys/types.h> | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10104 | #include <sys/socket.h> | 
|  | 10105 | #include <netinet/in.h> | 
|  | 10106 | #include <arpa/inet.h> | 
|  | 10107 |  | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10108 | int | 
|  | 10109 | main () | 
|  | 10110 | { | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10111 | void* p = inet_aton;inet_aton(0,0) | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10112 | ; | 
|  | 10113 | return 0; | 
|  | 10114 | } | 
|  | 10115 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10116 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10117 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10118 | $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10119 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10121 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10122 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 10124 | $as_echo "no" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10125 |  | 
|  | 10126 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10127 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 10128 | conftest$ac_exeext conftest.$ac_ext | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10129 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10130 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_pton" >&5 | 
|  | 10131 | $as_echo_n "checking for inet_pton... " >&6; } | 
|  | 10132 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10133 | /* end confdefs.h.  */ | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10134 |  | 
| Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 10135 | #include <sys/types.h> | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10136 | #include <sys/socket.h> | 
|  | 10137 | #include <netinet/in.h> | 
|  | 10138 | #include <arpa/inet.h> | 
|  | 10139 |  | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10140 | int | 
|  | 10141 | main () | 
|  | 10142 | { | 
|  | 10143 | void* p = inet_pton | 
|  | 10144 | ; | 
|  | 10145 | return 0; | 
|  | 10146 | } | 
|  | 10147 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10148 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10149 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10150 | $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10151 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10152 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10153 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10154 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 10156 | $as_echo "no" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10157 |  | 
|  | 10158 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10159 | 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] | 10160 |  | 
| Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 10161 | # On some systems, setgroups is in unistd.h, on others, in grp.h | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10162 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setgroups" >&5 | 
|  | 10163 | $as_echo_n "checking for setgroups... " >&6; } | 
|  | 10164 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10165 | /* end confdefs.h.  */ | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10166 |  | 
| Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 10167 | #include <unistd.h> | 
| Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 10168 | #ifdef HAVE_GRP_H | 
|  | 10169 | #include <grp.h> | 
|  | 10170 | #endif | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10171 |  | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10172 | int | 
|  | 10173 | main () | 
|  | 10174 | { | 
|  | 10175 | void* p = setgroups | 
|  | 10176 | ; | 
|  | 10177 | return 0; | 
|  | 10178 | } | 
|  | 10179 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10180 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10181 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10182 | $as_echo "#define HAVE_SETGROUPS 1" >>confdefs.h | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10183 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10185 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10186 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 10188 | $as_echo "no" >&6; } | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10189 |  | 
|  | 10190 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10191 | 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] | 10192 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10193 | # check for openpty and forkpty | 
|  | 10194 |  | 
|  | 10195 | for ac_func in openpty | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10196 | do : | 
|  | 10197 | ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty" | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 10198 | if test "x$ac_cv_func_openpty" = x""yes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10199 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10200 | #define HAVE_OPENPTY 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10201 | _ACEOF | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10202 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10203 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10204 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5 | 
|  | 10205 | $as_echo_n "checking for openpty in -lutil... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 10206 | if test "${ac_cv_lib_util_openpty+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10207 | $as_echo_n "(cached) " >&6 | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10208 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10209 | ac_check_lib_save_LIBS=$LIBS | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10210 | LIBS="-lutil  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10211 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10212 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10213 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10214 | /* Override any GCC internal prototype to avoid an error. | 
|  | 10215 | Use char because int might match the return type of a GCC | 
|  | 10216 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10217 | #ifdef __cplusplus | 
|  | 10218 | extern "C" | 
|  | 10219 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10220 | char openpty (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10221 | int | 
|  | 10222 | main () | 
|  | 10223 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10224 | return openpty (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10225 | ; | 
|  | 10226 | return 0; | 
|  | 10227 | } | 
|  | 10228 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10229 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10230 | ac_cv_lib_util_openpty=yes | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10231 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10232 | ac_cv_lib_util_openpty=no | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10233 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10234 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 10235 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10236 | LIBS=$ac_check_lib_save_LIBS | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10237 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5 | 
|  | 10239 | $as_echo "$ac_cv_lib_util_openpty" >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 10240 | if test "x$ac_cv_lib_util_openpty" = x""yes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10241 | $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10242 | LIBS="$LIBS -lutil" | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10243 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10244 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lbsd" >&5 | 
|  | 10245 | $as_echo_n "checking for openpty in -lbsd... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 10246 | if test "${ac_cv_lib_bsd_openpty+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10247 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10248 | else | 
|  | 10249 | ac_check_lib_save_LIBS=$LIBS | 
|  | 10250 | LIBS="-lbsd  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10251 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10252 | /* end confdefs.h.  */ | 
|  | 10253 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10254 | /* Override any GCC internal prototype to avoid an error. | 
|  | 10255 | Use char because int might match the return type of a GCC | 
|  | 10256 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10257 | #ifdef __cplusplus | 
|  | 10258 | extern "C" | 
|  | 10259 | #endif | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10260 | char openpty (); | 
|  | 10261 | int | 
|  | 10262 | main () | 
|  | 10263 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10264 | return openpty (); | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10265 | ; | 
|  | 10266 | return 0; | 
|  | 10267 | } | 
|  | 10268 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10269 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10270 | ac_cv_lib_bsd_openpty=yes | 
|  | 10271 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10272 | ac_cv_lib_bsd_openpty=no | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10273 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10274 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 10275 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10276 | LIBS=$ac_check_lib_save_LIBS | 
|  | 10277 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_openpty" >&5 | 
|  | 10279 | $as_echo "$ac_cv_lib_bsd_openpty" >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 10280 | if test "x$ac_cv_lib_bsd_openpty" = x""yes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10281 | $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10282 | LIBS="$LIBS -lbsd" | 
|  | 10283 | fi | 
|  | 10284 |  | 
|  | 10285 |  | 
|  | 10286 | fi | 
|  | 10287 |  | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10288 |  | 
|  | 10289 | fi | 
|  | 10290 | done | 
|  | 10291 |  | 
|  | 10292 | for ac_func in forkpty | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10293 | do : | 
|  | 10294 | ac_fn_c_check_func "$LINENO" "forkpty" "ac_cv_func_forkpty" | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 10295 | if test "x$ac_cv_func_forkpty" = x""yes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10296 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10297 | #define HAVE_FORKPTY 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10298 | _ACEOF | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10299 |  | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10300 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10301 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lutil" >&5 | 
|  | 10302 | $as_echo_n "checking for forkpty in -lutil... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 10303 | if test "${ac_cv_lib_util_forkpty+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10304 | $as_echo_n "(cached) " >&6 | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10305 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10306 | ac_check_lib_save_LIBS=$LIBS | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10307 | LIBS="-lutil  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10308 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10309 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10310 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10311 | /* Override any GCC internal prototype to avoid an error. | 
|  | 10312 | Use char because int might match the return type of a GCC | 
|  | 10313 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10314 | #ifdef __cplusplus | 
|  | 10315 | extern "C" | 
|  | 10316 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10317 | char forkpty (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10318 | int | 
|  | 10319 | main () | 
|  | 10320 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10321 | return forkpty (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10322 | ; | 
|  | 10323 | return 0; | 
|  | 10324 | } | 
|  | 10325 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10326 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10327 | ac_cv_lib_util_forkpty=yes | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10328 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10329 | ac_cv_lib_util_forkpty=no | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10330 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10331 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 10332 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10333 | LIBS=$ac_check_lib_save_LIBS | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10334 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_forkpty" >&5 | 
|  | 10336 | $as_echo "$ac_cv_lib_util_forkpty" >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 10337 | if test "x$ac_cv_lib_util_forkpty" = x""yes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10338 | $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10339 | LIBS="$LIBS -lutil" | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10340 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10341 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lbsd" >&5 | 
|  | 10342 | $as_echo_n "checking for forkpty in -lbsd... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 10343 | if test "${ac_cv_lib_bsd_forkpty+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10344 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10345 | else | 
|  | 10346 | ac_check_lib_save_LIBS=$LIBS | 
|  | 10347 | LIBS="-lbsd  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10348 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10349 | /* end confdefs.h.  */ | 
|  | 10350 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10351 | /* Override any GCC internal prototype to avoid an error. | 
|  | 10352 | Use char because int might match the return type of a GCC | 
|  | 10353 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10354 | #ifdef __cplusplus | 
|  | 10355 | extern "C" | 
|  | 10356 | #endif | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10357 | char forkpty (); | 
|  | 10358 | int | 
|  | 10359 | main () | 
|  | 10360 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10361 | return forkpty (); | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10362 | ; | 
|  | 10363 | return 0; | 
|  | 10364 | } | 
|  | 10365 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10366 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10367 | ac_cv_lib_bsd_forkpty=yes | 
|  | 10368 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10369 | ac_cv_lib_bsd_forkpty=no | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10370 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10371 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 10372 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10373 | LIBS=$ac_check_lib_save_LIBS | 
|  | 10374 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_forkpty" >&5 | 
|  | 10376 | $as_echo "$ac_cv_lib_bsd_forkpty" >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 10377 | if test "x$ac_cv_lib_bsd_forkpty" = x""yes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10378 | $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10379 | LIBS="$LIBS -lbsd" | 
|  | 10380 | fi | 
|  | 10381 |  | 
|  | 10382 |  | 
|  | 10383 | fi | 
|  | 10384 |  | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10385 |  | 
|  | 10386 | fi | 
|  | 10387 | done | 
|  | 10388 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 10389 |  | 
| Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 10390 | # Stuff for expat. | 
| Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 10391 | for ac_func in memmove | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10392 | do : | 
|  | 10393 | ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove" | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 10394 | if test "x$ac_cv_func_memmove" = x""yes; then : | 
| Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 10395 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10396 | #define HAVE_MEMMOVE 1 | 
| Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 10397 | _ACEOF | 
|  | 10398 |  | 
|  | 10399 | fi | 
|  | 10400 | done | 
|  | 10401 |  | 
|  | 10402 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10403 | # check for long file support functions | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10404 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10405 | do : | 
|  | 10406 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 10407 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 10408 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10409 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10410 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10411 | _ACEOF | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10412 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10413 | fi | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10414 | done | 
|  | 10415 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10416 |  | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 10417 | ac_fn_c_check_func "$LINENO" "dup2" "ac_cv_func_dup2" | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 10418 | if test "x$ac_cv_func_dup2" = x""yes; then : | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 10419 | $as_echo "#define HAVE_DUP2 1" >>confdefs.h | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 10420 |  | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 10421 | else | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10422 | case " $LIBOBJS " in | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 10423 | *" dup2.$ac_objext "* ) ;; | 
|  | 10424 | *) LIBOBJS="$LIBOBJS dup2.$ac_objext" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10425 | ;; | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10426 | esac | 
|  | 10427 |  | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 10428 | fi | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 10429 |  | 
|  | 10430 | ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd" | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 10431 | if test "x$ac_cv_func_getcwd" = x""yes; then : | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 10432 | $as_echo "#define HAVE_GETCWD 1" >>confdefs.h | 
|  | 10433 |  | 
|  | 10434 | else | 
|  | 10435 | case " $LIBOBJS " in | 
|  | 10436 | *" getcwd.$ac_objext "* ) ;; | 
|  | 10437 | *) LIBOBJS="$LIBOBJS getcwd.$ac_objext" | 
|  | 10438 | ;; | 
|  | 10439 | esac | 
|  | 10440 |  | 
|  | 10441 | fi | 
|  | 10442 |  | 
|  | 10443 | ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup" | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 10444 | if test "x$ac_cv_func_strdup" = x""yes; then : | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 10445 | $as_echo "#define HAVE_STRDUP 1" >>confdefs.h | 
|  | 10446 |  | 
|  | 10447 | else | 
|  | 10448 | case " $LIBOBJS " in | 
|  | 10449 | *" strdup.$ac_objext "* ) ;; | 
|  | 10450 | *) LIBOBJS="$LIBOBJS strdup.$ac_objext" | 
|  | 10451 | ;; | 
|  | 10452 | esac | 
|  | 10453 |  | 
|  | 10454 | fi | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 10455 |  | 
|  | 10456 |  | 
|  | 10457 | for ac_func in getpgrp | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10458 | do : | 
|  | 10459 | ac_fn_c_check_func "$LINENO" "getpgrp" "ac_cv_func_getpgrp" | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 10460 | if test "x$ac_cv_func_getpgrp" = x""yes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10461 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10462 | #define HAVE_GETPGRP 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10463 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10464 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10465 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10466 | #include <unistd.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10467 | int | 
|  | 10468 | main () | 
|  | 10469 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10470 | getpgrp(0); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10471 | ; | 
|  | 10472 | return 0; | 
|  | 10473 | } | 
|  | 10474 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10475 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10476 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10477 | $as_echo "#define GETPGRP_HAVE_ARG 1" >>confdefs.h | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10478 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10479 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10480 | 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] | 10481 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10482 | fi | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 10483 | done | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10484 |  | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 10485 | for ac_func in setpgrp | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10486 | do : | 
|  | 10487 | ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp" | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 10488 | if test "x$ac_cv_func_setpgrp" = x""yes; then : | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 10489 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10490 | #define HAVE_SETPGRP 1 | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 10491 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10492 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10493 | /* end confdefs.h.  */ | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 10494 | #include <unistd.h> | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 10495 | int | 
|  | 10496 | main () | 
|  | 10497 | { | 
|  | 10498 | setpgrp(0,0); | 
|  | 10499 | ; | 
|  | 10500 | return 0; | 
|  | 10501 | } | 
|  | 10502 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10503 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10504 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10505 | $as_echo "#define SETPGRP_HAVE_ARG 1" >>confdefs.h | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10506 |  | 
| Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 10507 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10508 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 10509 |  | 
|  | 10510 | fi | 
|  | 10511 | done | 
| Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 10512 |  | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 10513 | for ac_func in gettimeofday | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10514 | do : | 
|  | 10515 | ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 10516 | if test "x$ac_cv_func_gettimeofday" = x""yes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10517 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10518 | #define HAVE_GETTIMEOFDAY 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10519 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10520 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10521 | /* end confdefs.h.  */ | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10522 | #include <sys/time.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10523 | int | 
|  | 10524 | main () | 
|  | 10525 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10526 | gettimeofday((struct timeval*)0,(struct timezone*)0); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10527 | ; | 
|  | 10528 | return 0; | 
|  | 10529 | } | 
|  | 10530 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10531 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 10532 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10533 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10534 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10535 | $as_echo "#define GETTIMEOFDAY_NO_TZ 1" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10536 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10537 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10538 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10539 | 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] | 10540 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10541 | fi | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 10542 | done | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10543 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10544 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10545 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for major" >&5 | 
|  | 10546 | $as_echo_n "checking for major... " >&6; } | 
|  | 10547 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10548 | /* end confdefs.h.  */ | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 10549 |  | 
| Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 10550 | #if defined(MAJOR_IN_MKDEV) | 
|  | 10551 | #include <sys/mkdev.h> | 
|  | 10552 | #elif defined(MAJOR_IN_SYSMACROS) | 
|  | 10553 | #include <sys/sysmacros.h> | 
|  | 10554 | #else | 
|  | 10555 | #include <sys/types.h> | 
|  | 10556 | #endif | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 10557 |  | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 10558 | int | 
|  | 10559 | main () | 
|  | 10560 | { | 
|  | 10561 |  | 
|  | 10562 | makedev(major(0),minor(0)); | 
|  | 10563 |  | 
|  | 10564 | ; | 
|  | 10565 | return 0; | 
|  | 10566 | } | 
|  | 10567 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10568 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 10569 |  | 
|  | 10570 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10571 | $as_echo "#define HAVE_DEVICE_MACROS 1" >>confdefs.h | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 10572 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 10574 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 10575 |  | 
|  | 10576 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10577 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 10579 | $as_echo "no" >&6; } | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 10580 |  | 
|  | 10581 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10582 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 10583 | conftest$ac_exeext conftest.$ac_ext | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10584 |  | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 10585 | # 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] | 10586 | # for [no]getaddrinfo in netdb.h. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10587 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5 | 
|  | 10588 | $as_echo_n "checking for getaddrinfo... " >&6; } | 
|  | 10589 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10590 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 10591 |  | 
| Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 10592 | #include <sys/types.h> | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 10593 | #include <sys/socket.h> | 
|  | 10594 | #include <netdb.h> | 
| Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 10595 | #include <stdio.h> | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10596 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10597 | int | 
|  | 10598 | main () | 
|  | 10599 | { | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 10600 | getaddrinfo(NULL, NULL, NULL, NULL); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10601 | ; | 
|  | 10602 | return 0; | 
|  | 10603 | } | 
|  | 10604 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10605 | if ac_fn_c_try_link "$LINENO"; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10606 | have_getaddrinfo=yes | 
|  | 10607 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10608 | have_getaddrinfo=no | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10609 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10610 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 10611 | conftest$ac_exeext conftest.$ac_ext | 
|  | 10612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getaddrinfo" >&5 | 
|  | 10613 | $as_echo "$have_getaddrinfo" >&6; } | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10614 | if test $have_getaddrinfo = yes | 
|  | 10615 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10616 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking getaddrinfo bug" >&5 | 
|  | 10617 | $as_echo_n "checking getaddrinfo bug... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 10618 | if test "${ac_cv_buggy_getaddrinfo+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10619 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10620 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10621 | if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10622 | ac_cv_buggy_getaddrinfo=yes | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10623 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10624 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10625 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10626 |  | 
|  | 10627 | #include <sys/types.h> | 
|  | 10628 | #include <netdb.h> | 
|  | 10629 | #include <string.h> | 
|  | 10630 | #include <sys/socket.h> | 
|  | 10631 | #include <netinet/in.h> | 
|  | 10632 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10633 | int main() | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10634 | { | 
|  | 10635 | int passive, gaierr, inet4 = 0, inet6 = 0; | 
|  | 10636 | struct addrinfo hints, *ai, *aitop; | 
|  | 10637 | char straddr[INET6_ADDRSTRLEN], strport[16]; | 
|  | 10638 |  | 
|  | 10639 | for (passive = 0; passive <= 1; passive++) { | 
|  | 10640 | memset(&hints, 0, sizeof(hints)); | 
|  | 10641 | hints.ai_family = AF_UNSPEC; | 
|  | 10642 | hints.ai_flags = passive ? AI_PASSIVE : 0; | 
|  | 10643 | hints.ai_socktype = SOCK_STREAM; | 
| Hye-Shik Chang | 54f9439 | 2004-04-14 07:55:31 +0000 | [diff] [blame] | 10644 | hints.ai_protocol = IPPROTO_TCP; | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10645 | if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { | 
|  | 10646 | (void)gai_strerror(gaierr); | 
|  | 10647 | goto bad; | 
|  | 10648 | } | 
|  | 10649 | for (ai = aitop; ai; ai = ai->ai_next) { | 
|  | 10650 | if (ai->ai_addr == NULL || | 
|  | 10651 | ai->ai_addrlen == 0 || | 
|  | 10652 | getnameinfo(ai->ai_addr, ai->ai_addrlen, | 
|  | 10653 | straddr, sizeof(straddr), strport, sizeof(strport), | 
|  | 10654 | NI_NUMERICHOST|NI_NUMERICSERV) != 0) { | 
|  | 10655 | goto bad; | 
|  | 10656 | } | 
|  | 10657 | switch (ai->ai_family) { | 
|  | 10658 | case AF_INET: | 
|  | 10659 | if (strcmp(strport, "54321") != 0) { | 
|  | 10660 | goto bad; | 
|  | 10661 | } | 
|  | 10662 | if (passive) { | 
|  | 10663 | if (strcmp(straddr, "0.0.0.0") != 0) { | 
|  | 10664 | goto bad; | 
|  | 10665 | } | 
|  | 10666 | } else { | 
|  | 10667 | if (strcmp(straddr, "127.0.0.1") != 0) { | 
|  | 10668 | goto bad; | 
|  | 10669 | } | 
|  | 10670 | } | 
|  | 10671 | inet4++; | 
|  | 10672 | break; | 
|  | 10673 | case AF_INET6: | 
|  | 10674 | if (strcmp(strport, "54321") != 0) { | 
|  | 10675 | goto bad; | 
|  | 10676 | } | 
|  | 10677 | if (passive) { | 
|  | 10678 | if (strcmp(straddr, "::") != 0) { | 
|  | 10679 | goto bad; | 
|  | 10680 | } | 
|  | 10681 | } else { | 
|  | 10682 | if (strcmp(straddr, "::1") != 0) { | 
|  | 10683 | goto bad; | 
|  | 10684 | } | 
|  | 10685 | } | 
|  | 10686 | inet6++; | 
|  | 10687 | break; | 
|  | 10688 | case AF_UNSPEC: | 
|  | 10689 | goto bad; | 
|  | 10690 | break; | 
|  | 10691 | default: | 
|  | 10692 | /* another family support? */ | 
|  | 10693 | break; | 
|  | 10694 | } | 
|  | 10695 | } | 
|  | 10696 | } | 
|  | 10697 |  | 
|  | 10698 | if (!(inet4 == 0 || inet4 == 2)) | 
|  | 10699 | goto bad; | 
|  | 10700 | if (!(inet6 == 0 || inet6 == 2)) | 
|  | 10701 | goto bad; | 
|  | 10702 |  | 
|  | 10703 | if (aitop) | 
|  | 10704 | freeaddrinfo(aitop); | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10705 | return 0; | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10706 |  | 
|  | 10707 | bad: | 
|  | 10708 | if (aitop) | 
|  | 10709 | freeaddrinfo(aitop); | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10710 | return 1; | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10711 | } | 
|  | 10712 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10713 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10714 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10715 | ac_cv_buggy_getaddrinfo=no | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10716 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10717 | ac_cv_buggy_getaddrinfo=yes | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10718 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10719 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 10720 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| 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 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10723 | fi | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10724 |  | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 10725 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10726 |  | 
| Benjamin Peterson | d4694ed | 2010-11-01 01:44:30 +0000 | [diff] [blame] | 10727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_buggy_getaddrinfo" >&5 | 
|  | 10728 | $as_echo "$ac_cv_buggy_getaddrinfo" >&6; } | 
|  | 10729 |  | 
| Mark Dickinson | 2df5d28 | 2009-12-31 21:22:50 +0000 | [diff] [blame] | 10730 | if test $have_getaddrinfo = no -o "$ac_cv_buggy_getaddrinfo" = yes | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 10731 | then | 
|  | 10732 | if test $ipv6 = yes | 
|  | 10733 | then | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10734 | echo 'Fatal: You must get working getaddrinfo() function.' | 
|  | 10735 | echo '       or you can specify "--disable-ipv6"'. | 
|  | 10736 | exit 1 | 
|  | 10737 | fi | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 10738 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10739 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10740 | $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 10741 |  | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10742 | fi | 
| Benjamin Peterson | d4694ed | 2010-11-01 01:44:30 +0000 | [diff] [blame] | 10743 |  | 
| Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 10744 | for ac_func in getnameinfo | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10745 | do : | 
|  | 10746 | ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo" | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 10747 | if test "x$ac_cv_func_getnameinfo" = x""yes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10748 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10749 | #define HAVE_GETNAMEINFO 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10750 | _ACEOF | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10751 |  | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10752 | fi | 
|  | 10753 | done | 
|  | 10754 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10755 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10756 | # checks for structures | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10757 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 | 
|  | 10758 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 10759 | if test "${ac_cv_header_time+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10760 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10761 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10762 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10763 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10764 | #include <sys/types.h> | 
|  | 10765 | #include <sys/time.h> | 
|  | 10766 | #include <time.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10767 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10768 | int | 
|  | 10769 | main () | 
|  | 10770 | { | 
|  | 10771 | if ((struct tm *) 0) | 
|  | 10772 | return 0; | 
|  | 10773 | ; | 
|  | 10774 | return 0; | 
|  | 10775 | } | 
|  | 10776 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10777 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10778 | ac_cv_header_time=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10779 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10780 | ac_cv_header_time=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10781 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10782 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10783 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 | 
|  | 10785 | $as_echo "$ac_cv_header_time" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10786 | if test $ac_cv_header_time = yes; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10787 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10788 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10789 |  | 
|  | 10790 | fi | 
|  | 10791 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10792 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 | 
|  | 10793 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 10794 | if test "${ac_cv_struct_tm+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10795 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10796 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10797 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10798 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10799 | #include <sys/types.h> | 
|  | 10800 | #include <time.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10801 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10802 | int | 
|  | 10803 | main () | 
|  | 10804 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10805 | struct tm tm; | 
|  | 10806 | int *p = &tm.tm_sec; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10807 | return !p; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10808 | ; | 
|  | 10809 | return 0; | 
|  | 10810 | } | 
|  | 10811 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10812 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10813 | ac_cv_struct_tm=time.h | 
|  | 10814 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10815 | ac_cv_struct_tm=sys/time.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10816 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10817 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10818 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 | 
|  | 10820 | $as_echo "$ac_cv_struct_tm" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10821 | if test $ac_cv_struct_tm = sys/time.h; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10822 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10823 | $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10824 |  | 
|  | 10825 | fi | 
|  | 10826 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10827 | 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] | 10828 | #include <$ac_cv_struct_tm> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10829 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10830 | " | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 10831 | 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] | 10832 |  | 
|  | 10833 | cat >>confdefs.h <<_ACEOF | 
|  | 10834 | #define HAVE_STRUCT_TM_TM_ZONE 1 | 
|  | 10835 | _ACEOF | 
|  | 10836 |  | 
|  | 10837 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10838 | fi | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10839 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10840 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then | 
|  | 10841 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10842 | $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10843 |  | 
|  | 10844 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10845 | ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> | 
|  | 10846 | " | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 10847 | if test "x$ac_cv_have_decl_tzname" = x""yes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10848 | ac_have_decl=1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10849 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10850 | ac_have_decl=0 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10851 | fi | 
|  | 10852 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10853 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10854 | #define HAVE_DECL_TZNAME $ac_have_decl | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10855 | _ACEOF | 
|  | 10856 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10857 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 | 
|  | 10858 | $as_echo_n "checking for tzname... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 10859 | if test "${ac_cv_var_tzname+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10860 | $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10861 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10862 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10863 | /* end confdefs.h.  */ | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10864 | #include <time.h> | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10865 | #if !HAVE_DECL_TZNAME | 
|  | 10866 | extern char *tzname[]; | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10867 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10868 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10869 | int | 
|  | 10870 | main () | 
|  | 10871 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10872 | return tzname[0][0]; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10873 | ; | 
|  | 10874 | return 0; | 
|  | 10875 | } | 
|  | 10876 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10877 | if ac_fn_c_try_link "$LINENO"; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10878 | ac_cv_var_tzname=yes | 
|  | 10879 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10880 | ac_cv_var_tzname=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10881 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10882 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 10883 | conftest$ac_exeext conftest.$ac_ext | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10884 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 | 
|  | 10886 | $as_echo "$ac_cv_var_tzname" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10887 | if test $ac_cv_var_tzname = yes; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10888 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10889 | $as_echo "#define HAVE_TZNAME 1" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10890 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10891 | fi | 
|  | 10892 | fi | 
|  | 10893 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10894 | ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 10895 | 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] | 10896 |  | 
|  | 10897 | cat >>confdefs.h <<_ACEOF | 
|  | 10898 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | 
|  | 10899 | _ACEOF | 
|  | 10900 |  | 
|  | 10901 |  | 
| Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 10902 | fi | 
|  | 10903 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10904 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default" | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 10905 | 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] | 10906 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10907 | cat >>confdefs.h <<_ACEOF | 
|  | 10908 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | 
|  | 10909 | _ACEOF | 
|  | 10910 |  | 
|  | 10911 |  | 
| Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 10912 | fi | 
|  | 10913 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10914 | ac_fn_c_check_member "$LINENO" "struct stat" "st_flags" "ac_cv_member_struct_stat_st_flags" "$ac_includes_default" | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 10915 | 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] | 10916 |  | 
|  | 10917 | cat >>confdefs.h <<_ACEOF | 
|  | 10918 | #define HAVE_STRUCT_STAT_ST_FLAGS 1 | 
|  | 10919 | _ACEOF | 
|  | 10920 |  | 
|  | 10921 |  | 
|  | 10922 | fi | 
|  | 10923 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10924 | ac_fn_c_check_member "$LINENO" "struct stat" "st_gen" "ac_cv_member_struct_stat_st_gen" "$ac_includes_default" | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 10925 | 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] | 10926 |  | 
|  | 10927 | cat >>confdefs.h <<_ACEOF | 
|  | 10928 | #define HAVE_STRUCT_STAT_ST_GEN 1 | 
|  | 10929 | _ACEOF | 
|  | 10930 |  | 
|  | 10931 |  | 
|  | 10932 | fi | 
|  | 10933 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10934 | ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "$ac_includes_default" | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 10935 | 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] | 10936 |  | 
|  | 10937 | cat >>confdefs.h <<_ACEOF | 
|  | 10938 | #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1 | 
|  | 10939 | _ACEOF | 
|  | 10940 |  | 
|  | 10941 |  | 
|  | 10942 | fi | 
|  | 10943 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10944 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default" | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 10945 | 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] | 10946 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10947 | cat >>confdefs.h <<_ACEOF | 
|  | 10948 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 | 
|  | 10949 | _ACEOF | 
|  | 10950 |  | 
|  | 10951 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10952 | $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h | 
| Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 10953 |  | 
|  | 10954 | else | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10955 | case " $LIBOBJS " in | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10956 | *" fileblocks.$ac_objext "* ) ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10957 | *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" | 
|  | 10958 | ;; | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10959 | esac | 
|  | 10960 |  | 
| Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 10961 | fi | 
|  | 10962 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10963 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10964 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10965 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for time.h that defines altzone" >&5 | 
|  | 10966 | $as_echo_n "checking for time.h that defines altzone... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 10967 | if test "${ac_cv_header_time_altzone+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10968 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10969 | else | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10970 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10971 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10972 | /* end confdefs.h.  */ | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 10973 | #include <time.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10974 | int | 
|  | 10975 | main () | 
|  | 10976 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10977 | return altzone; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10978 | ; | 
|  | 10979 | return 0; | 
|  | 10980 | } | 
|  | 10981 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10982 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10983 | ac_cv_header_time_altzone=yes | 
|  | 10984 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10985 | ac_cv_header_time_altzone=no | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 10986 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10987 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10988 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10989 | fi | 
|  | 10990 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time_altzone" >&5 | 
|  | 10992 | $as_echo "$ac_cv_header_time_altzone" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10993 | if test $ac_cv_header_time_altzone = yes; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10994 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10995 | $as_echo "#define HAVE_ALTZONE 1" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10996 |  | 
|  | 10997 | fi | 
|  | 10998 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 10999 | was_it_defined=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11000 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be included" >&5 | 
|  | 11001 | $as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; } | 
|  | 11002 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11003 | /* end confdefs.h.  */ | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11004 |  | 
|  | 11005 | #include <sys/types.h> | 
|  | 11006 | #include <sys/select.h> | 
|  | 11007 | #include <sys/time.h> | 
|  | 11008 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11009 | int | 
|  | 11010 | main () | 
|  | 11011 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11012 | ; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11013 | ; | 
|  | 11014 | return 0; | 
|  | 11015 | } | 
|  | 11016 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11017 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11018 |  | 
|  | 11019 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11020 | $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] | 11021 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 11022 | was_it_defined=yes | 
|  | 11023 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11024 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11025 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5 | 
|  | 11027 | $as_echo "$was_it_defined" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11028 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11029 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for addrinfo" >&5 | 
|  | 11030 | $as_echo_n "checking for addrinfo... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 11031 | if test "${ac_cv_struct_addrinfo+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11032 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11033 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11034 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11035 | /* end confdefs.h.  */ | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11036 | #include <netdb.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11037 | int | 
|  | 11038 | main () | 
|  | 11039 | { | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11040 | struct addrinfo a | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11041 | ; | 
|  | 11042 | return 0; | 
|  | 11043 | } | 
|  | 11044 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11045 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11046 | ac_cv_struct_addrinfo=yes | 
|  | 11047 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11048 | ac_cv_struct_addrinfo=no | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11049 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11050 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 11051 | fi | 
|  | 11052 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_addrinfo" >&5 | 
|  | 11054 | $as_echo "$ac_cv_struct_addrinfo" >&6; } | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11055 | if test $ac_cv_struct_addrinfo = yes; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11056 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11057 | $as_echo "#define HAVE_ADDRINFO 1" >>confdefs.h | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11058 |  | 
|  | 11059 | fi | 
|  | 11060 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11061 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage" >&5 | 
|  | 11062 | $as_echo_n "checking for sockaddr_storage... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 11063 | if test "${ac_cv_struct_sockaddr_storage+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11064 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11065 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11066 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11067 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11068 |  | 
|  | 11069 | #		include <sys/types.h> | 
|  | 11070 | #		include <sys/socket.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11071 | int | 
|  | 11072 | main () | 
|  | 11073 | { | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11074 | struct sockaddr_storage s | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11075 | ; | 
|  | 11076 | return 0; | 
|  | 11077 | } | 
|  | 11078 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11079 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11080 | ac_cv_struct_sockaddr_storage=yes | 
|  | 11081 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11082 | ac_cv_struct_sockaddr_storage=no | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +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 | 
|  | 11085 | fi | 
|  | 11086 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_storage" >&5 | 
|  | 11088 | $as_echo "$ac_cv_struct_sockaddr_storage" >&6; } | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11089 | if test $ac_cv_struct_sockaddr_storage = yes; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11090 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11091 | $as_echo "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11092 |  | 
|  | 11093 | fi | 
|  | 11094 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11095 | # checks for compiler characteristics | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11096 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11097 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5 | 
|  | 11098 | $as_echo_n "checking whether char is unsigned... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 11099 | if test "${ac_cv_c_char_unsigned+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11100 | $as_echo_n "(cached) " >&6 | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 11101 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11102 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11103 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11104 | $ac_includes_default | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11105 | int | 
|  | 11106 | main () | 
|  | 11107 | { | 
|  | 11108 | static int test_array [1 - 2 * !(((char) -1) < 0)]; | 
|  | 11109 | test_array [0] = 0 | 
|  | 11110 |  | 
|  | 11111 | ; | 
|  | 11112 | return 0; | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11113 | } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11114 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11115 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11116 | ac_cv_c_char_unsigned=no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11117 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11118 | ac_cv_c_char_unsigned=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11119 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11120 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11121 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5 | 
|  | 11123 | $as_echo "$ac_cv_c_char_unsigned" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11124 | if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11125 | $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11126 |  | 
|  | 11127 | fi | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11128 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11129 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 | 
|  | 11130 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 11131 | if test "${ac_cv_c_const+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11132 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11133 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11134 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11135 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11136 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11137 | int | 
|  | 11138 | main () | 
|  | 11139 | { | 
|  | 11140 | /* FIXME: Include the comments suggested by Paul. */ | 
|  | 11141 | #ifndef __cplusplus | 
|  | 11142 | /* Ultrix mips cc rejects this.  */ | 
|  | 11143 | typedef int charset[2]; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11144 | const charset cs; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11145 | /* SunOS 4.1.1 cc rejects this.  */ | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11146 | char const *const *pcpcc; | 
|  | 11147 | char **ppc; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11148 | /* NEC SVR4.0.2 mips cc rejects this.  */ | 
|  | 11149 | struct point {int x, y;}; | 
|  | 11150 | static struct point const zero = {0,0}; | 
|  | 11151 | /* AIX XL C 1.02.0.0 rejects this. | 
|  | 11152 | It does not let you subtract one const X* pointer from another in | 
|  | 11153 | an arm of an if-expression whose if-part is not a constant | 
|  | 11154 | expression */ | 
|  | 11155 | const char *g = "string"; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11156 | pcpcc = &g + (g ? g-g : 0); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11157 | /* HPUX 7.0 cc rejects these. */ | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11158 | ++pcpcc; | 
|  | 11159 | ppc = (char**) pcpcc; | 
|  | 11160 | pcpcc = (char const *const *) ppc; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11161 | { /* SCO 3.2v4 cc rejects this.  */ | 
|  | 11162 | char *t; | 
|  | 11163 | char const *s = 0 ? (char *) 0 : (char const *) 0; | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11164 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11165 | *t++ = 0; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11166 | if (s) return 0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11167 | } | 
|  | 11168 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */ | 
|  | 11169 | int x[] = {25, 17}; | 
|  | 11170 | const int *foo = &x[0]; | 
|  | 11171 | ++foo; | 
|  | 11172 | } | 
|  | 11173 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | 
|  | 11174 | typedef const int *iptr; | 
|  | 11175 | iptr p = 0; | 
|  | 11176 | ++p; | 
|  | 11177 | } | 
|  | 11178 | { /* AIX XL C 1.02.0.0 rejects this saying | 
|  | 11179 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | 
|  | 11180 | struct s { int j; const int *ap[3]; }; | 
|  | 11181 | struct s *b; b->j = 5; | 
|  | 11182 | } | 
|  | 11183 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | 
|  | 11184 | const int foo = 10; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11185 | if (!foo) return 0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11186 | } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11187 | return !cs[0] && !zero.x; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11188 | #endif | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11189 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11190 | ; | 
|  | 11191 | return 0; | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11192 | } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11193 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11194 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11195 | ac_cv_c_const=yes | 
|  | 11196 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11197 | ac_cv_c_const=no | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11198 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11199 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11200 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 | 
|  | 11202 | $as_echo "$ac_cv_c_const" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11203 | if test $ac_cv_c_const = no; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11204 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11205 | $as_echo "#define const /**/" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11206 |  | 
|  | 11207 | fi | 
|  | 11208 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11209 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11210 | works=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11211 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 | 
|  | 11212 | $as_echo_n "checking for working volatile... " >&6; } | 
|  | 11213 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11214 | /* end confdefs.h.  */ | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11215 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11216 | int | 
|  | 11217 | main () | 
|  | 11218 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11219 | volatile int x; x = 0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11220 | ; | 
|  | 11221 | return 0; | 
|  | 11222 | } | 
|  | 11223 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11224 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11225 | works=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11226 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11227 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11228 | $as_echo "#define volatile /**/" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11229 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 11230 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11231 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11232 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 | 
|  | 11234 | $as_echo "$works" >&6; } | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11235 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11236 | works=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11237 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working signed char" >&5 | 
|  | 11238 | $as_echo_n "checking for working signed char... " >&6; } | 
|  | 11239 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11240 | /* end confdefs.h.  */ | 
| Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 11241 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11242 | int | 
|  | 11243 | main () | 
|  | 11244 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11245 | signed char c; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11246 | ; | 
|  | 11247 | return 0; | 
|  | 11248 | } | 
|  | 11249 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11250 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11251 | works=yes | 
| Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 11252 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11253 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11254 | $as_echo "#define signed /**/" >>confdefs.h | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11255 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 11256 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11257 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11258 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 | 
|  | 11260 | $as_echo "$works" >&6; } | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11261 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11262 | have_prototypes=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11263 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prototypes" >&5 | 
|  | 11264 | $as_echo_n "checking for prototypes... " >&6; } | 
|  | 11265 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11266 | /* end confdefs.h.  */ | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11267 | int foo(int x) { return 0; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11268 | int | 
|  | 11269 | main () | 
|  | 11270 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11271 | return foo(10); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11272 | ; | 
|  | 11273 | return 0; | 
|  | 11274 | } | 
|  | 11275 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11276 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11277 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11278 | $as_echo "#define HAVE_PROTOTYPES 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11279 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11280 | have_prototypes=yes | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11281 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11282 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_prototypes" >&5 | 
|  | 11284 | $as_echo "$have_prototypes" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11285 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11286 | works=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11287 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for variable length prototypes and stdarg.h" >&5 | 
|  | 11288 | $as_echo_n "checking for variable length prototypes and stdarg.h... " >&6; } | 
|  | 11289 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11290 | /* end confdefs.h.  */ | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11291 |  | 
|  | 11292 | #include <stdarg.h> | 
| Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 11293 | int foo(int x, ...) { | 
|  | 11294 | va_list va; | 
|  | 11295 | va_start(va, x); | 
|  | 11296 | va_arg(va, int); | 
|  | 11297 | va_arg(va, char *); | 
|  | 11298 | va_arg(va, double); | 
|  | 11299 | return 0; | 
|  | 11300 | } | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11301 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11302 | int | 
|  | 11303 | main () | 
|  | 11304 | { | 
| Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 11305 | return foo(10, "", 3.14); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11306 | ; | 
|  | 11307 | return 0; | 
|  | 11308 | } | 
|  | 11309 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11310 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11311 |  | 
|  | 11312 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11313 | $as_echo "#define HAVE_STDARG_PROTOTYPES 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11314 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 11315 | works=yes | 
|  | 11316 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11317 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11318 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11319 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 | 
|  | 11320 | $as_echo "$works" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11321 |  | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 11322 | # check for socketpair | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11323 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socketpair" >&5 | 
|  | 11324 | $as_echo_n "checking for socketpair... " >&6; } | 
|  | 11325 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 11326 | /* end confdefs.h.  */ | 
|  | 11327 |  | 
|  | 11328 | #include <sys/types.h> | 
|  | 11329 | #include <sys/socket.h> | 
|  | 11330 |  | 
|  | 11331 | int | 
|  | 11332 | main () | 
|  | 11333 | { | 
|  | 11334 | void *x=socketpair | 
|  | 11335 | ; | 
|  | 11336 | return 0; | 
|  | 11337 | } | 
|  | 11338 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11339 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 11340 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11341 | $as_echo "#define HAVE_SOCKETPAIR 1" >>confdefs.h | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 11342 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11344 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 11345 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11347 | $as_echo "no" >&6; } | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 11348 |  | 
|  | 11349 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11350 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 11351 |  | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11352 | # check if sockaddr has sa_len member | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11353 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr has sa_len member" >&5 | 
|  | 11354 | $as_echo_n "checking if sockaddr has sa_len member... " >&6; } | 
|  | 11355 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11356 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11357 | #include <sys/types.h> | 
|  | 11358 | #include <sys/socket.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11359 | int | 
|  | 11360 | main () | 
|  | 11361 | { | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11362 | struct sockaddr x; | 
|  | 11363 | x.sa_len = 0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11364 | ; | 
|  | 11365 | return 0; | 
|  | 11366 | } | 
|  | 11367 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11368 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 11369 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 11370 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11371 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11372 | $as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11373 |  | 
|  | 11374 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11376 | $as_echo "no" >&6; } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11377 |  | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11378 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11379 | 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] | 11380 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11381 | va_list_is_array=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11382 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether va_list is an array" >&5 | 
|  | 11383 | $as_echo_n "checking whether va_list is an array... " >&6; } | 
|  | 11384 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11385 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11386 |  | 
|  | 11387 | #ifdef HAVE_STDARG_PROTOTYPES | 
|  | 11388 | #include <stdarg.h> | 
|  | 11389 | #else | 
|  | 11390 | #include <varargs.h> | 
|  | 11391 | #endif | 
|  | 11392 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11393 | int | 
|  | 11394 | main () | 
|  | 11395 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11396 | va_list list1, list2; list1 = list2; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11397 | ; | 
|  | 11398 | return 0; | 
|  | 11399 | } | 
|  | 11400 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11401 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 11402 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11403 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11404 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11405 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11406 | $as_echo "#define VA_LIST_IS_ARRAY 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11407 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11408 | va_list_is_array=yes | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 11409 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11410 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11411 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $va_list_is_array" >&5 | 
|  | 11413 | $as_echo "$va_list_is_array" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11414 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11415 | # 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] | 11416 |  | 
|  | 11417 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11418 | ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r" | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 11419 | 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] | 11420 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11421 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h | 
| Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 11422 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11423 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 6 args" >&5 | 
|  | 11424 | $as_echo_n "checking gethostbyname_r with 6 args... " >&6; } | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11425 | OLD_CFLAGS=$CFLAGS | 
|  | 11426 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11427 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11428 | /* end confdefs.h.  */ | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11429 |  | 
|  | 11430 | #   include <netdb.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11431 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11432 | int | 
|  | 11433 | main () | 
|  | 11434 | { | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11435 |  | 
|  | 11436 | char *name; | 
|  | 11437 | struct hostent *he, *res; | 
|  | 11438 | char buffer[2048]; | 
|  | 11439 | int buflen = 2048; | 
|  | 11440 | int h_errnop; | 
|  | 11441 |  | 
|  | 11442 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11443 |  | 
|  | 11444 | ; | 
|  | 11445 | return 0; | 
|  | 11446 | } | 
|  | 11447 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11448 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11449 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11450 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h | 
| Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 11451 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11452 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11453 | $as_echo "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11454 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 11456 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11457 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11458 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11459 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11461 | $as_echo "no" >&6; } | 
|  | 11462 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 5 args" >&5 | 
|  | 11463 | $as_echo_n "checking gethostbyname_r with 5 args... " >&6; } | 
|  | 11464 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11465 | /* end confdefs.h.  */ | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11466 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11467 | #       include <netdb.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11468 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11469 | int | 
|  | 11470 | main () | 
|  | 11471 | { | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11472 |  | 
|  | 11473 | char *name; | 
|  | 11474 | struct hostent *he; | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11475 | char buffer[2048]; | 
|  | 11476 | int buflen = 2048; | 
|  | 11477 | int h_errnop; | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11478 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11479 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11480 |  | 
|  | 11481 | ; | 
|  | 11482 | return 0; | 
|  | 11483 | } | 
|  | 11484 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11485 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11486 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11487 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h | 
| Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 11488 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11489 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11490 | $as_echo "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11491 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 11493 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11494 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11495 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11496 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11498 | $as_echo "no" >&6; } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11499 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 3 args" >&5 | 
|  | 11500 | $as_echo_n "checking gethostbyname_r with 3 args... " >&6; } | 
|  | 11501 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 11502 | /* end confdefs.h.  */ | 
|  | 11503 |  | 
|  | 11504 | #           include <netdb.h> | 
|  | 11505 |  | 
|  | 11506 | int | 
|  | 11507 | main () | 
|  | 11508 | { | 
|  | 11509 |  | 
|  | 11510 | char *name; | 
|  | 11511 | struct hostent *he; | 
|  | 11512 | struct hostent_data data; | 
|  | 11513 |  | 
|  | 11514 | (void) gethostbyname_r(name, he, &data); | 
|  | 11515 |  | 
|  | 11516 | ; | 
|  | 11517 | return 0; | 
|  | 11518 | } | 
|  | 11519 | _ACEOF | 
|  | 11520 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 11521 |  | 
|  | 11522 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h | 
|  | 11523 |  | 
|  | 11524 |  | 
|  | 11525 | $as_echo "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h | 
|  | 11526 |  | 
|  | 11527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 11528 | $as_echo "yes" >&6; } | 
|  | 11529 |  | 
|  | 11530 | else | 
|  | 11531 |  | 
|  | 11532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11533 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11534 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11535 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11536 | 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] | 11537 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11538 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11539 | 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] | 11540 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11541 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11542 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11543 | CFLAGS=$OLD_CFLAGS | 
|  | 11544 |  | 
|  | 11545 | else | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11546 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11547 | for ac_func in gethostbyname | 
|  | 11548 | do : | 
|  | 11549 | ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 11550 | if test "x$ac_cv_func_gethostbyname" = x""yes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11551 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11552 | #define HAVE_GETHOSTBYNAME 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11553 | _ACEOF | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11554 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11555 | fi | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11556 | done | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11557 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11558 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11559 | fi | 
|  | 11560 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11561 |  | 
|  | 11562 |  | 
|  | 11563 |  | 
|  | 11564 |  | 
|  | 11565 |  | 
|  | 11566 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11567 | # checks for system services | 
|  | 11568 | # (none yet) | 
|  | 11569 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11570 | # Linux requires this for correct f.p. operations | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11571 | ac_fn_c_check_func "$LINENO" "__fpu_control" "ac_cv_func___fpu_control" | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 11572 | if test "x$ac_cv_func___fpu_control" = x""yes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11573 |  | 
| Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 11574 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11575 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __fpu_control in -lieee" >&5 | 
|  | 11576 | $as_echo_n "checking for __fpu_control in -lieee... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 11577 | if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11578 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11579 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11580 | ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11581 | LIBS="-lieee  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11582 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11583 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11584 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11585 | /* Override any GCC internal prototype to avoid an error. | 
|  | 11586 | Use char because int might match the return type of a GCC | 
|  | 11587 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11588 | #ifdef __cplusplus | 
|  | 11589 | extern "C" | 
|  | 11590 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11591 | char __fpu_control (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11592 | int | 
|  | 11593 | main () | 
|  | 11594 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11595 | return __fpu_control (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11596 | ; | 
|  | 11597 | return 0; | 
|  | 11598 | } | 
|  | 11599 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11600 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11601 | ac_cv_lib_ieee___fpu_control=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11602 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11603 | ac_cv_lib_ieee___fpu_control=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11604 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11605 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 11606 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11607 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11608 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ieee___fpu_control" >&5 | 
|  | 11610 | $as_echo "$ac_cv_lib_ieee___fpu_control" >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 11611 | 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] | 11612 | cat >>confdefs.h <<_ACEOF | 
|  | 11613 | #define HAVE_LIBIEEE 1 | 
|  | 11614 | _ACEOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11615 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11616 | LIBS="-lieee $LIBS" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11617 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11618 | fi | 
|  | 11619 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11620 |  | 
| Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 11621 | fi | 
|  | 11622 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11623 |  | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11624 | # Check for --with-fpectl | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11625 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-fpectl" >&5 | 
|  | 11626 | $as_echo_n "checking for --with-fpectl... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11627 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11628 | # Check whether --with-fpectl was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11629 | if test "${with_fpectl+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11630 | withval=$with_fpectl; | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11631 | if test "$withval" != no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11632 | then | 
|  | 11633 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11634 | $as_echo "#define WANT_SIGFPE_HANDLER 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11635 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 11637 | $as_echo "yes" >&6; } | 
|  | 11638 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11639 | $as_echo "no" >&6; } | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11640 | fi | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 11641 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11643 | $as_echo "no" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11644 | fi | 
|  | 11645 |  | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11646 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11647 | # check for --with-libm=... | 
|  | 11648 |  | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 11649 | case $ac_sys_system in | 
| Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 11650 | Darwin) ;; | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 11651 | *) LIBM=-lm | 
|  | 11652 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11653 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libm=STRING" >&5 | 
|  | 11654 | $as_echo_n "checking for --with-libm=STRING... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11655 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11656 | # Check whether --with-libm was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11657 | if test "${with_libm+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11658 | withval=$with_libm; | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11659 | if test "$withval" = no | 
|  | 11660 | then LIBM= | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBM empty" >&5 | 
|  | 11662 | $as_echo "force LIBM empty" >&6; } | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11663 | elif test "$withval" != yes | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11664 | then LIBM=$withval | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBM=\"$withval\"" >&5 | 
|  | 11666 | $as_echo "set LIBM=\"$withval\"" >&6; } | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 11667 | 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] | 11668 | fi | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11669 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBM=\"$LIBM\"" >&5 | 
|  | 11671 | $as_echo "default LIBM=\"$LIBM\"" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11672 | fi | 
|  | 11673 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11674 |  | 
|  | 11675 | # check for --with-libc=... | 
|  | 11676 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11677 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libc=STRING" >&5 | 
|  | 11678 | $as_echo_n "checking for --with-libc=STRING... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11679 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11680 | # Check whether --with-libc was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11681 | if test "${with_libc+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11682 | withval=$with_libc; | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11683 | if test "$withval" = no | 
|  | 11684 | then LIBC= | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBC empty" >&5 | 
|  | 11686 | $as_echo "force LIBC empty" >&6; } | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11687 | elif test "$withval" != yes | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11688 | then LIBC=$withval | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBC=\"$withval\"" >&5 | 
|  | 11690 | $as_echo "set LIBC=\"$withval\"" >&6; } | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 11691 | 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] | 11692 | fi | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11693 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBC=\"$LIBC\"" >&5 | 
|  | 11695 | $as_echo "default LIBC=\"$LIBC\"" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11696 | fi | 
|  | 11697 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11698 |  | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11699 | # ************************************************** | 
|  | 11700 | # * Check for various properties of floating point * | 
|  | 11701 | # ************************************************** | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 11702 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11703 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are little-endian IEEE 754 binary64" >&5 | 
|  | 11704 | $as_echo_n "checking whether C doubles are little-endian IEEE 754 binary64... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 11705 | if test "${ac_cv_little_endian_double+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11706 | $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11707 | else | 
|  | 11708 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11709 | if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11710 | ac_cv_little_endian_double=no | 
|  | 11711 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11712 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11713 | /* end confdefs.h.  */ | 
|  | 11714 |  | 
|  | 11715 | #include <string.h> | 
|  | 11716 | int main() { | 
|  | 11717 | double x = 9006104071832581.0; | 
|  | 11718 | if (memcmp(&x, "\x05\x04\x03\x02\x01\xff\x3f\x43", 8) == 0) | 
|  | 11719 | return 0; | 
|  | 11720 | else | 
|  | 11721 | return 1; | 
|  | 11722 | } | 
|  | 11723 |  | 
|  | 11724 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11725 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11726 | ac_cv_little_endian_double=yes | 
|  | 11727 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11728 | ac_cv_little_endian_double=no | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11729 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11730 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 11731 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11732 | fi | 
|  | 11733 |  | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11734 | fi | 
|  | 11735 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_little_endian_double" >&5 | 
|  | 11737 | $as_echo "$ac_cv_little_endian_double" >&6; } | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11738 | if test "$ac_cv_little_endian_double" = yes | 
|  | 11739 | then | 
|  | 11740 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11741 | $as_echo "#define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1" >>confdefs.h | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11742 |  | 
|  | 11743 | fi | 
|  | 11744 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11745 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are big-endian IEEE 754 binary64" >&5 | 
|  | 11746 | $as_echo_n "checking whether C doubles are big-endian IEEE 754 binary64... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 11747 | if test "${ac_cv_big_endian_double+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11748 | $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11749 | else | 
|  | 11750 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11751 | if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11752 | ac_cv_big_endian_double=no | 
|  | 11753 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11754 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11755 | /* end confdefs.h.  */ | 
|  | 11756 |  | 
|  | 11757 | #include <string.h> | 
|  | 11758 | int main() { | 
|  | 11759 | double x = 9006104071832581.0; | 
|  | 11760 | if (memcmp(&x, "\x43\x3f\xff\x01\x02\x03\x04\x05", 8) == 0) | 
|  | 11761 | return 0; | 
|  | 11762 | else | 
|  | 11763 | return 1; | 
|  | 11764 | } | 
|  | 11765 |  | 
|  | 11766 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11767 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11768 | ac_cv_big_endian_double=yes | 
|  | 11769 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11770 | ac_cv_big_endian_double=no | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11771 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11772 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 11773 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11774 | fi | 
|  | 11775 |  | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11776 | fi | 
|  | 11777 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_big_endian_double" >&5 | 
|  | 11779 | $as_echo "$ac_cv_big_endian_double" >&6; } | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11780 | if test "$ac_cv_big_endian_double" = yes | 
|  | 11781 | then | 
|  | 11782 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11783 | $as_echo "#define DOUBLE_IS_BIG_ENDIAN_IEEE754 1" >>confdefs.h | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11784 |  | 
|  | 11785 | fi | 
|  | 11786 |  | 
|  | 11787 | # Some ARM platforms use a mixed-endian representation for doubles. | 
|  | 11788 | # While Python doesn't currently have full support for these platforms | 
|  | 11789 | # (see e.g., issue 1762561), we can at least make sure that float <-> string | 
|  | 11790 | # conversions work. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11791 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are ARM mixed-endian IEEE 754 binary64" >&5 | 
|  | 11792 | $as_echo_n "checking whether C doubles are ARM mixed-endian IEEE 754 binary64... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 11793 | if test "${ac_cv_mixed_endian_double+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11794 | $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11795 | else | 
|  | 11796 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11797 | if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11798 | ac_cv_mixed_endian_double=no | 
|  | 11799 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11800 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11801 | /* end confdefs.h.  */ | 
|  | 11802 |  | 
|  | 11803 | #include <string.h> | 
|  | 11804 | int main() { | 
|  | 11805 | double x = 9006104071832581.0; | 
|  | 11806 | if (memcmp(&x, "\x01\xff\x3f\x43\x05\x04\x03\x02", 8) == 0) | 
|  | 11807 | return 0; | 
|  | 11808 | else | 
|  | 11809 | return 1; | 
|  | 11810 | } | 
|  | 11811 |  | 
|  | 11812 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11813 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11814 | ac_cv_mixed_endian_double=yes | 
|  | 11815 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11816 | ac_cv_mixed_endian_double=no | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11817 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11818 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 11819 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11820 | fi | 
|  | 11821 |  | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11822 | fi | 
|  | 11823 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mixed_endian_double" >&5 | 
|  | 11825 | $as_echo "$ac_cv_mixed_endian_double" >&6; } | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11826 | if test "$ac_cv_mixed_endian_double" = yes | 
|  | 11827 | then | 
|  | 11828 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11829 | $as_echo "#define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1" >>confdefs.h | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11830 |  | 
|  | 11831 | fi | 
|  | 11832 |  | 
| Mark Dickinson | 7abf8d4 | 2009-04-18 20:17:52 +0000 | [diff] [blame] | 11833 | # The short float repr introduced in Python 3.1 requires the | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 11834 | # correctly-rounded string <-> double conversion functions from | 
| Mark Dickinson | 7abf8d4 | 2009-04-18 20:17:52 +0000 | [diff] [blame] | 11835 | # 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] | 11836 | # rounding; this is a problem on x86, where the x87 FPU has a default | 
| Mark Dickinson | f4243f6 | 2009-11-15 13:47:27 +0000 | [diff] [blame] | 11837 | # rounding precision of 64 bits.  For gcc/x86, we can fix this by | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 11838 | # using inline assembler to get and set the x87 FPU control word. | 
| Mark Dickinson | f4243f6 | 2009-11-15 13:47:27 +0000 | [diff] [blame] | 11839 |  | 
|  | 11840 | # This inline assembler syntax may also work for suncc and icc, | 
|  | 11841 | # so we try it on all platforms. | 
|  | 11842 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11843 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set x87 control word" >&5 | 
|  | 11844 | $as_echo_n "checking whether we can use gcc inline assembler to get and set x87 control word... " >&6; } | 
|  | 11845 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11846 | /* end confdefs.h.  */ | 
|  | 11847 |  | 
|  | 11848 | int | 
|  | 11849 | main () | 
|  | 11850 | { | 
|  | 11851 |  | 
| Mark Dickinson | f4243f6 | 2009-11-15 13:47:27 +0000 | [diff] [blame] | 11852 | unsigned short cw; | 
|  | 11853 | __asm__ __volatile__ ("fnstcw %0" : "=m" (cw)); | 
|  | 11854 | __asm__ __volatile__ ("fldcw %0" : : "m" (cw)); | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11855 |  | 
|  | 11856 | ; | 
|  | 11857 | return 0; | 
|  | 11858 | } | 
|  | 11859 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11860 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11861 | have_gcc_asm_for_x87=yes | 
|  | 11862 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11863 | have_gcc_asm_for_x87=no | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11864 | fi | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11865 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_x87" >&5 | 
|  | 11867 | $as_echo "$have_gcc_asm_for_x87" >&6; } | 
| Mark Dickinson | f4243f6 | 2009-11-15 13:47:27 +0000 | [diff] [blame] | 11868 | if test "$have_gcc_asm_for_x87" = yes | 
|  | 11869 | then | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11870 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11871 | $as_echo "#define HAVE_GCC_ASM_FOR_X87 1" >>confdefs.h | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11872 |  | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11873 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11874 |  | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 11875 | # Detect whether system arithmetic is subject to x87-style double | 
|  | 11876 | # rounding issues.  The result of this test has little meaning on non | 
|  | 11877 | # IEEE 754 platforms.  On IEEE 754, test should return 1 if rounding | 
|  | 11878 | # mode is round-to-nearest and double rounding issues are present, and | 
|  | 11879 | # 0 otherwise.  See http://bugs.python.org/issue2937 for more info. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11880 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x87-style double rounding" >&5 | 
|  | 11881 | $as_echo_n "checking for x87-style double rounding... " >&6; } | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11882 | # $BASECFLAGS may affect the result | 
|  | 11883 | ac_save_cc="$CC" | 
|  | 11884 | CC="$CC $BASECFLAGS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11885 | if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 11886 | ac_cv_x87_double_rounding=no | 
|  | 11887 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11888 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 11889 | /* end confdefs.h.  */ | 
|  | 11890 |  | 
|  | 11891 | #include <stdlib.h> | 
|  | 11892 | #include <math.h> | 
|  | 11893 | int main() { | 
|  | 11894 | volatile double x, y, z; | 
|  | 11895 | /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */ | 
|  | 11896 | x = 0.99999999999999989; /* 1-2**-53 */ | 
|  | 11897 | y = 1./x; | 
|  | 11898 | if (y != 1.) | 
|  | 11899 | exit(0); | 
|  | 11900 | /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */ | 
|  | 11901 | x = 1e16; | 
|  | 11902 | y = 2.99999; | 
|  | 11903 | z = x + y; | 
|  | 11904 | if (z != 1e16+4.) | 
|  | 11905 | exit(0); | 
|  | 11906 | /* both tests show evidence of double rounding */ | 
|  | 11907 | exit(1); | 
|  | 11908 | } | 
|  | 11909 |  | 
|  | 11910 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11911 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 11912 | ac_cv_x87_double_rounding=no | 
|  | 11913 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11914 | ac_cv_x87_double_rounding=yes | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 11915 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11916 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 11917 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 11918 | fi | 
|  | 11919 |  | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11920 | CC="$ac_save_cc" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_x87_double_rounding" >&5 | 
|  | 11922 | $as_echo "$ac_cv_x87_double_rounding" >&6; } | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 11923 | if test "$ac_cv_x87_double_rounding" = yes | 
|  | 11924 | then | 
|  | 11925 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11926 | $as_echo "#define X87_DOUBLE_ROUNDING 1" >>confdefs.h | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 11927 |  | 
|  | 11928 | fi | 
|  | 11929 |  | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 11930 | # ************************************ | 
|  | 11931 | # * Check for mathematical functions * | 
|  | 11932 | # ************************************ | 
|  | 11933 |  | 
|  | 11934 | LIBS_SAVE=$LIBS | 
|  | 11935 | LIBS="$LIBS $LIBM" | 
|  | 11936 |  | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 11937 | for ac_func in acosh asinh atanh copysign erf erfc expm1 finite gamma | 
|  | 11938 | do : | 
|  | 11939 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 11940 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 11941 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 11942 | cat >>confdefs.h <<_ACEOF | 
|  | 11943 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
|  | 11944 | _ACEOF | 
|  | 11945 |  | 
|  | 11946 | fi | 
|  | 11947 | done | 
|  | 11948 |  | 
|  | 11949 | for ac_func in hypot lgamma log1p round tgamma | 
|  | 11950 | do : | 
|  | 11951 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 11952 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 11953 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 11954 | cat >>confdefs.h <<_ACEOF | 
|  | 11955 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
|  | 11956 | _ACEOF | 
|  | 11957 |  | 
|  | 11958 | fi | 
|  | 11959 | done | 
|  | 11960 |  | 
|  | 11961 | ac_fn_c_check_decl "$LINENO" "isinf" "ac_cv_have_decl_isinf" "#include <math.h> | 
|  | 11962 | " | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 11963 | if test "x$ac_cv_have_decl_isinf" = x""yes; then : | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 11964 | ac_have_decl=1 | 
|  | 11965 | else | 
|  | 11966 | ac_have_decl=0 | 
|  | 11967 | fi | 
|  | 11968 |  | 
|  | 11969 | cat >>confdefs.h <<_ACEOF | 
|  | 11970 | #define HAVE_DECL_ISINF $ac_have_decl | 
|  | 11971 | _ACEOF | 
|  | 11972 | ac_fn_c_check_decl "$LINENO" "isnan" "ac_cv_have_decl_isnan" "#include <math.h> | 
|  | 11973 | " | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 11974 | if test "x$ac_cv_have_decl_isnan" = x""yes; then : | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 11975 | ac_have_decl=1 | 
|  | 11976 | else | 
|  | 11977 | ac_have_decl=0 | 
|  | 11978 | fi | 
|  | 11979 |  | 
|  | 11980 | cat >>confdefs.h <<_ACEOF | 
|  | 11981 | #define HAVE_DECL_ISNAN $ac_have_decl | 
|  | 11982 | _ACEOF | 
|  | 11983 | ac_fn_c_check_decl "$LINENO" "isfinite" "ac_cv_have_decl_isfinite" "#include <math.h> | 
|  | 11984 | " | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 11985 | if test "x$ac_cv_have_decl_isfinite" = x""yes; then : | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 11986 | ac_have_decl=1 | 
|  | 11987 | else | 
|  | 11988 | ac_have_decl=0 | 
|  | 11989 | fi | 
|  | 11990 |  | 
|  | 11991 | cat >>confdefs.h <<_ACEOF | 
|  | 11992 | #define HAVE_DECL_ISFINITE $ac_have_decl | 
|  | 11993 | _ACEOF | 
|  | 11994 |  | 
|  | 11995 |  | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 11996 | # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of | 
|  | 11997 | # -0. on some architectures. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11998 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tanh preserves the sign of zero" >&5 | 
|  | 11999 | $as_echo_n "checking whether tanh preserves the sign of zero... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 12000 | if test "${ac_cv_tanh_preserves_zero_sign+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12001 | $as_echo_n "(cached) " >&6 | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 12002 | else | 
|  | 12003 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12004 | if test "$cross_compiling" = yes; then : | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 12005 | ac_cv_tanh_preserves_zero_sign=no | 
|  | 12006 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12007 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 12008 | /* end confdefs.h.  */ | 
|  | 12009 |  | 
|  | 12010 | #include <math.h> | 
|  | 12011 | #include <stdlib.h> | 
|  | 12012 | int main() { | 
|  | 12013 | /* return 0 if either negative zeros don't exist | 
|  | 12014 | on this platform or if negative zeros exist | 
|  | 12015 | and tanh(-0.) == -0. */ | 
|  | 12016 | if (atan2(0., -1.) == atan2(-0., -1.) || | 
|  | 12017 | atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0); | 
|  | 12018 | else exit(1); | 
|  | 12019 | } | 
|  | 12020 |  | 
|  | 12021 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12022 | if ac_fn_c_try_run "$LINENO"; then : | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 12023 | ac_cv_tanh_preserves_zero_sign=yes | 
|  | 12024 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12025 | ac_cv_tanh_preserves_zero_sign=no | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 12026 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12027 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 12028 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 12029 | fi | 
|  | 12030 |  | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 12031 | fi | 
|  | 12032 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tanh_preserves_zero_sign" >&5 | 
|  | 12034 | $as_echo "$ac_cv_tanh_preserves_zero_sign" >&6; } | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 12035 | if test "$ac_cv_tanh_preserves_zero_sign" = yes | 
|  | 12036 | then | 
|  | 12037 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12038 | $as_echo "#define TANH_PRESERVES_ZERO_SIGN 1" >>confdefs.h | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 12039 |  | 
|  | 12040 | fi | 
|  | 12041 |  | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 12042 | if test "$ac_cv_func_log1p" = yes | 
|  | 12043 | then | 
|  | 12044 | # On some versions of AIX, log1p(-0.) returns 0. instead of | 
|  | 12045 | # -0.  See issue #9920. | 
|  | 12046 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether log1p drops the sign of negative zero" >&5 | 
|  | 12047 | $as_echo_n "checking whether log1p drops the sign of negative zero... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 12048 | if test "${ac_cv_log1p_drops_zero_sign+set}" = set; then : | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 12049 | $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 12050 | else | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 12051 |  | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 12052 | if test "$cross_compiling" = yes; then : | 
|  | 12053 | ac_cv_log1p_drops_zero_sign=no | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 12054 | else | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 12055 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 12056 | /* end confdefs.h.  */ | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 12057 |  | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 12058 | #include <math.h> | 
|  | 12059 | #include <stdlib.h> | 
|  | 12060 | int main() { | 
|  | 12061 | /* Fail if the signs of log1p(-0.) and -0. can be | 
|  | 12062 | distinguished. */ | 
|  | 12063 | if (atan2(log1p(-0.), -1.) == atan2(-0., -1.)) | 
|  | 12064 | return 0; | 
|  | 12065 | else | 
|  | 12066 | return 1; | 
|  | 12067 | } | 
|  | 12068 |  | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 12069 | _ACEOF | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 12070 | if ac_fn_c_try_run "$LINENO"; then : | 
|  | 12071 | ac_cv_log1p_drops_zero_sign=no | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 12072 | else | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 12073 | ac_cv_log1p_drops_zero_sign=yes | 
|  | 12074 | fi | 
|  | 12075 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 12076 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 12077 | fi | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 12078 |  | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 12079 | fi | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 12080 |  | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 12081 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_log1p_drops_zero_sign" >&5 | 
|  | 12082 | $as_echo "$ac_cv_log1p_drops_zero_sign" >&6; } | 
|  | 12083 | fi | 
|  | 12084 | if test "$ac_cv_log1p_drops_zero_sign" = yes | 
|  | 12085 | then | 
|  | 12086 |  | 
|  | 12087 | $as_echo "#define LOG1P_DROPS_ZERO_SIGN 1" >>confdefs.h | 
|  | 12088 |  | 
|  | 12089 | fi | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 12090 |  | 
| Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 12091 | LIBS=$LIBS_SAVE | 
|  | 12092 |  | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 12093 | # For multiprocessing module, check that sem_open | 
|  | 12094 | # actually works.  For FreeBSD versions <= 7.2, | 
|  | 12095 | # the kernel module that provides POSIX semaphores | 
|  | 12096 | # isn't loaded by default, so an attempt to call | 
|  | 12097 | # sem_open results in a 'Signal 12' error. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12098 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX semaphores are enabled" >&5 | 
|  | 12099 | $as_echo_n "checking whether POSIX semaphores are enabled... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 12100 | if test "${ac_cv_posix_semaphores_enabled+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12101 | $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 12102 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12103 | if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 12104 | ac_cv_posix_semaphores_enabled=yes | 
|  | 12105 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12106 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 12107 | /* end confdefs.h.  */ | 
|  | 12108 |  | 
|  | 12109 | #include <unistd.h> | 
|  | 12110 | #include <fcntl.h> | 
|  | 12111 | #include <stdio.h> | 
|  | 12112 | #include <semaphore.h> | 
|  | 12113 | #include <sys/stat.h> | 
|  | 12114 |  | 
|  | 12115 | int main(void) { | 
|  | 12116 | sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0); | 
|  | 12117 | if (a == SEM_FAILED) { | 
|  | 12118 | perror("sem_open"); | 
|  | 12119 | return 1; | 
|  | 12120 | } | 
|  | 12121 | sem_close(a); | 
| Mark Dickinson | ba79b35 | 2009-12-13 21:10:57 +0000 | [diff] [blame] | 12122 | sem_unlink("/autoconf"); | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 12123 | return 0; | 
|  | 12124 | } | 
|  | 12125 |  | 
|  | 12126 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12127 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 12128 | ac_cv_posix_semaphores_enabled=yes | 
|  | 12129 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12130 | ac_cv_posix_semaphores_enabled=no | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 12131 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12132 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 12133 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 12134 | fi | 
|  | 12135 |  | 
|  | 12136 |  | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 12137 | fi | 
|  | 12138 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12139 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_semaphores_enabled" >&5 | 
|  | 12140 | $as_echo "$ac_cv_posix_semaphores_enabled" >&6; } | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 12141 | if test $ac_cv_posix_semaphores_enabled = no | 
|  | 12142 | then | 
|  | 12143 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12144 | $as_echo "#define POSIX_SEMAPHORES_NOT_ENABLED 1" >>confdefs.h | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 12145 |  | 
|  | 12146 | fi | 
|  | 12147 |  | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 12148 | # Multiprocessing check for broken sem_getvalue | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12149 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken sem_getvalue" >&5 | 
|  | 12150 | $as_echo_n "checking for broken sem_getvalue... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 12151 | if test "${ac_cv_broken_sem_getvalue+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12152 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12153 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12154 | if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12155 | ac_cv_broken_sem_getvalue=yes | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 12156 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12157 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 12158 | /* end confdefs.h.  */ | 
|  | 12159 |  | 
|  | 12160 | #include <unistd.h> | 
|  | 12161 | #include <fcntl.h> | 
|  | 12162 | #include <stdio.h> | 
|  | 12163 | #include <semaphore.h> | 
|  | 12164 | #include <sys/stat.h> | 
|  | 12165 |  | 
|  | 12166 | int main(void){ | 
| Mark Dickinson | ba79b35 | 2009-12-13 21:10:57 +0000 | [diff] [blame] | 12167 | 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] | 12168 | int count; | 
|  | 12169 | int res; | 
|  | 12170 | if(a==SEM_FAILED){ | 
|  | 12171 | perror("sem_open"); | 
|  | 12172 | return 1; | 
|  | 12173 |  | 
|  | 12174 | } | 
|  | 12175 | res = sem_getvalue(a, &count); | 
|  | 12176 | sem_close(a); | 
| Mark Dickinson | ba79b35 | 2009-12-13 21:10:57 +0000 | [diff] [blame] | 12177 | sem_unlink("/autocftw"); | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 12178 | return res==-1 ? 1 : 0; | 
|  | 12179 | } | 
|  | 12180 |  | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 12181 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12182 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12183 | ac_cv_broken_sem_getvalue=no | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 12184 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12185 | ac_cv_broken_sem_getvalue=yes | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12186 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12187 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 12188 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 12189 | fi | 
|  | 12190 |  | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12191 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12192 | fi | 
|  | 12193 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12194 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_sem_getvalue" >&5 | 
|  | 12195 | $as_echo "$ac_cv_broken_sem_getvalue" >&6; } | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12196 | if test $ac_cv_broken_sem_getvalue = yes | 
|  | 12197 | then | 
|  | 12198 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12199 | $as_echo "#define HAVE_BROKEN_SEM_GETVALUE 1" >>confdefs.h | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12200 |  | 
|  | 12201 | fi | 
|  | 12202 |  | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 12203 | # determine what size digit to use for Python's longs | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12204 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking digit size for Python's longs" >&5 | 
|  | 12205 | $as_echo_n "checking digit size for Python's longs... " >&6; } | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 12206 | # Check whether --enable-big-digits was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12207 | if test "${enable_big_digits+set}" = set; then : | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 12208 | enableval=$enable_big_digits; case $enable_big_digits in | 
|  | 12209 | yes) | 
|  | 12210 | enable_big_digits=30 ;; | 
|  | 12211 | no) | 
|  | 12212 | enable_big_digits=15 ;; | 
|  | 12213 | 15|30) | 
|  | 12214 | ;; | 
|  | 12215 | *) | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 12216 | 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] | 12217 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_big_digits" >&5 | 
|  | 12219 | $as_echo "$enable_big_digits" >&6; } | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 12220 |  | 
|  | 12221 | cat >>confdefs.h <<_ACEOF | 
|  | 12222 | #define PYLONG_BITS_IN_DIGIT $enable_big_digits | 
|  | 12223 | _ACEOF | 
|  | 12224 |  | 
|  | 12225 |  | 
|  | 12226 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5 | 
|  | 12228 | $as_echo "no value specified" >&6; } | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 12229 | fi | 
|  | 12230 |  | 
|  | 12231 |  | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12232 | # check for wchar.h | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12233 | ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default" | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 12234 | 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] | 12235 |  | 
|  | 12236 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12237 | $as_echo "#define HAVE_WCHAR_H 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12238 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 12239 | wchar_h="yes" | 
|  | 12240 |  | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12241 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12242 | wchar_h="no" | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12243 |  | 
|  | 12244 | fi | 
|  | 12245 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12246 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12247 |  | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12248 | # determine wchar_t size | 
|  | 12249 | if test "$wchar_h" = yes | 
|  | 12250 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12251 | # 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] | 12252 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 12253 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 12254 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12255 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5 | 
|  | 12256 | $as_echo_n "checking size of wchar_t... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 12257 | if test "${ac_cv_sizeof_wchar_t+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12258 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12259 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12260 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t"        "#include <wchar.h> | 
|  | 12261 | "; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12262 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12263 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12264 | if test "$ac_cv_type_wchar_t" = yes; then | 
|  | 12265 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 12266 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 12267 | as_fn_error 77 "cannot compute sizeof (wchar_t) | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 12268 | See \`config.log' for more details" "$LINENO" 5 ; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12269 | else | 
|  | 12270 | ac_cv_sizeof_wchar_t=0 | 
|  | 12271 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12272 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12273 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12274 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5 | 
|  | 12276 | $as_echo "$ac_cv_sizeof_wchar_t" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12277 |  | 
|  | 12278 |  | 
|  | 12279 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12280 | cat >>confdefs.h <<_ACEOF | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12281 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12282 | _ACEOF | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12283 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12284 |  | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12285 | fi | 
|  | 12286 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12287 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UCS-4 tcl" >&5 | 
|  | 12288 | $as_echo_n "checking for UCS-4 tcl... " >&6; } | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 12289 | have_ucs4_tcl=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12290 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12291 | /* end confdefs.h.  */ | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 12292 |  | 
|  | 12293 | #include <tcl.h> | 
|  | 12294 | #if TCL_UTF_MAX != 6 | 
|  | 12295 | # error "NOT UCS4_TCL" | 
|  | 12296 | #endif | 
|  | 12297 | int | 
|  | 12298 | main () | 
|  | 12299 | { | 
|  | 12300 |  | 
|  | 12301 | ; | 
|  | 12302 | return 0; | 
|  | 12303 | } | 
|  | 12304 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12305 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 12306 |  | 
|  | 12307 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12308 | $as_echo "#define HAVE_UCS4_TCL 1" >>confdefs.h | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 12309 |  | 
|  | 12310 | have_ucs4_tcl=yes | 
|  | 12311 |  | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 12312 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12313 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ucs4_tcl" >&5 | 
|  | 12315 | $as_echo "$have_ucs4_tcl" >&6; } | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 12316 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12317 | # check whether wchar_t is signed or not | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12318 | if test "$wchar_h" = yes | 
|  | 12319 | then | 
|  | 12320 | # check whether wchar_t is signed or not | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12321 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wchar_t is signed" >&5 | 
|  | 12322 | $as_echo_n "checking whether wchar_t is signed... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 12323 | if test "${ac_cv_wchar_t_signed+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12324 | $as_echo_n "(cached) " >&6 | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12325 | else | 
|  | 12326 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12327 | if test "$cross_compiling" = yes; then : | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12328 | ac_cv_wchar_t_signed=yes | 
|  | 12329 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12330 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12331 | /* end confdefs.h.  */ | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12332 |  | 
|  | 12333 | #include <wchar.h> | 
|  | 12334 | int main() | 
|  | 12335 | { | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 12336 | /* Success: exit code 0 */ | 
|  | 12337 | exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1); | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12338 | } | 
|  | 12339 |  | 
|  | 12340 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12341 | if ac_fn_c_try_run "$LINENO"; then : | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12342 | ac_cv_wchar_t_signed=yes | 
|  | 12343 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12344 | ac_cv_wchar_t_signed=no | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12345 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12346 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 12347 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12348 | fi | 
|  | 12349 |  | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12350 | fi | 
|  | 12351 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_wchar_t_signed" >&5 | 
|  | 12353 | $as_echo "$ac_cv_wchar_t_signed" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12354 | fi | 
|  | 12355 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12356 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking what type to use for str" >&5 | 
|  | 12357 | $as_echo_n "checking what type to use for str... " >&6; } | 
| Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 12358 |  | 
|  | 12359 | # Check whether --with-wide-unicode was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12360 | if test "${with_wide_unicode+set}" = set; then : | 
| Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 12361 | withval=$with_wide_unicode; | 
|  | 12362 | if test "$withval" != no | 
|  | 12363 | then unicode_size="4" | 
|  | 12364 | else unicode_size="2" | 
|  | 12365 | fi | 
|  | 12366 |  | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12367 | else | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12368 |  | 
| Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 12369 | case "$have_ucs4_tcl" in | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 12370 | yes) unicode_size="4";; | 
| Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 12371 | *)   unicode_size="2" ;; | 
|  | 12372 | esac | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12373 |  | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12374 | fi | 
|  | 12375 |  | 
| Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 12376 |  | 
|  | 12377 |  | 
| Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 12378 | case "$unicode_size" in | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 12379 | 4) | 
|  | 12380 | $as_echo "#define Py_UNICODE_SIZE 4" >>confdefs.h | 
|  | 12381 |  | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 12382 | ABIFLAGS="${ABIFLAGS}u" | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 12383 | ;; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12384 | *) $as_echo "#define Py_UNICODE_SIZE 2" >>confdefs.h | 
| Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 12385 | ;; | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12386 | esac | 
|  | 12387 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12388 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12389 |  | 
| Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 12390 | # wchar_t is only usable if it maps to an unsigned type | 
|  | 12391 | if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \ | 
| Matthias Klose | 7dbeed7 | 2004-12-24 08:22:17 +0000 | [diff] [blame] | 12392 | -a "$ac_cv_wchar_t_signed" = "no" | 
| Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 12393 | then | 
|  | 12394 | PY_UNICODE_TYPE="wchar_t" | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12395 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12396 | $as_echo "#define HAVE_USABLE_WCHAR_T 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12397 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12398 | $as_echo "#define PY_UNICODE_TYPE wchar_t" >>confdefs.h | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12399 |  | 
| Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 12400 | elif test "$ac_cv_sizeof_short" = "$unicode_size" | 
|  | 12401 | then | 
|  | 12402 | PY_UNICODE_TYPE="unsigned short" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12403 | $as_echo "#define PY_UNICODE_TYPE unsigned short" >>confdefs.h | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12404 |  | 
| Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 12405 | elif test "$ac_cv_sizeof_long" = "$unicode_size" | 
|  | 12406 | then | 
|  | 12407 | PY_UNICODE_TYPE="unsigned long" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12408 | $as_echo "#define PY_UNICODE_TYPE unsigned long" >>confdefs.h | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12409 |  | 
| Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 12410 | else | 
|  | 12411 | PY_UNICODE_TYPE="no type found" | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12412 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PY_UNICODE_TYPE" >&5 | 
|  | 12414 | $as_echo "$PY_UNICODE_TYPE" >&6; } | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12415 |  | 
|  | 12416 | # check for endianness | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12417 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 | 
|  | 12418 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 12419 | if test "${ac_cv_c_bigendian+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12420 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12421 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12422 | ac_cv_c_bigendian=unknown | 
|  | 12423 | # See if we're dealing with a universal compiler. | 
|  | 12424 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 12425 | /* end confdefs.h.  */ | 
|  | 12426 | #ifndef __APPLE_CC__ | 
|  | 12427 | not a universal capable compiler | 
|  | 12428 | #endif | 
|  | 12429 | typedef int dummy; | 
|  | 12430 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12431 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12432 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 12433 |  | 
|  | 12434 | # Check for potential -arch flags.  It is not universal unless | 
|  | 12435 | # there are at least two -arch flags with different values. | 
|  | 12436 | ac_arch= | 
|  | 12437 | ac_prev= | 
|  | 12438 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | 
|  | 12439 | if test -n "$ac_prev"; then | 
|  | 12440 | case $ac_word in | 
|  | 12441 | i?86 | x86_64 | ppc | ppc64) | 
|  | 12442 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | 
|  | 12443 | ac_arch=$ac_word | 
|  | 12444 | else | 
|  | 12445 | ac_cv_c_bigendian=universal | 
|  | 12446 | break | 
|  | 12447 | fi | 
|  | 12448 | ;; | 
|  | 12449 | esac | 
|  | 12450 | ac_prev= | 
|  | 12451 | elif test "x$ac_word" = "x-arch"; then | 
|  | 12452 | ac_prev=arch | 
|  | 12453 | fi | 
|  | 12454 | done | 
|  | 12455 | fi | 
|  | 12456 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 12457 | if test $ac_cv_c_bigendian = unknown; then | 
|  | 12458 | # See if sys/param.h defines the BYTE_ORDER macro. | 
|  | 12459 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12460 | /* end confdefs.h.  */ | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12461 | #include <sys/types.h> | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12462 | #include <sys/param.h> | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12463 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12464 | int | 
|  | 12465 | main () | 
|  | 12466 | { | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12467 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ | 
|  | 12468 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | 
|  | 12469 | && LITTLE_ENDIAN) | 
|  | 12470 | bogus endian macros | 
|  | 12471 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12472 |  | 
|  | 12473 | ; | 
|  | 12474 | return 0; | 
|  | 12475 | } | 
|  | 12476 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12477 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12478 | # It does; now see whether it defined to BIG_ENDIAN or not. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12479 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12480 | /* end confdefs.h.  */ | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12481 | #include <sys/types.h> | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12482 | #include <sys/param.h> | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12483 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12484 | int | 
|  | 12485 | main () | 
|  | 12486 | { | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12487 | #if BYTE_ORDER != BIG_ENDIAN | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12488 | not big endian | 
|  | 12489 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12490 |  | 
|  | 12491 | ; | 
|  | 12492 | return 0; | 
|  | 12493 | } | 
|  | 12494 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12495 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12496 | ac_cv_c_bigendian=yes | 
|  | 12497 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12498 | ac_cv_c_bigendian=no | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12499 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12500 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12501 | fi | 
|  | 12502 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 12503 | fi | 
|  | 12504 | if test $ac_cv_c_bigendian = unknown; then | 
|  | 12505 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | 
|  | 12506 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12507 | /* end confdefs.h.  */ | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12508 | #include <limits.h> | 
|  | 12509 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12510 | int | 
|  | 12511 | main () | 
|  | 12512 | { | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12513 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | 
|  | 12514 | bogus endian macros | 
|  | 12515 | #endif | 
|  | 12516 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12517 | ; | 
|  | 12518 | return 0; | 
|  | 12519 | } | 
|  | 12520 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12521 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 12522 | # It does; now see whether it defined to _BIG_ENDIAN or not. | 
|  | 12523 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 12524 | /* end confdefs.h.  */ | 
|  | 12525 | #include <limits.h> | 
|  | 12526 |  | 
|  | 12527 | int | 
|  | 12528 | main () | 
|  | 12529 | { | 
|  | 12530 | #ifndef _BIG_ENDIAN | 
|  | 12531 | not big endian | 
|  | 12532 | #endif | 
|  | 12533 |  | 
|  | 12534 | ; | 
|  | 12535 | return 0; | 
|  | 12536 | } | 
|  | 12537 | _ACEOF | 
|  | 12538 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12539 | ac_cv_c_bigendian=yes | 
| Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 12540 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12541 | ac_cv_c_bigendian=no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12542 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12543 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 12544 | fi | 
|  | 12545 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 12546 | fi | 
|  | 12547 | if test $ac_cv_c_bigendian = unknown; then | 
|  | 12548 | # Compile a test program. | 
|  | 12549 | if test "$cross_compiling" = yes; then : | 
|  | 12550 | # Try to guess by grepping values from an object file. | 
|  | 12551 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 12552 | /* end confdefs.h.  */ | 
|  | 12553 | short int ascii_mm[] = | 
|  | 12554 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | 
|  | 12555 | short int ascii_ii[] = | 
|  | 12556 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | 
|  | 12557 | int use_ascii (int i) { | 
|  | 12558 | return ascii_mm[i] + ascii_ii[i]; | 
|  | 12559 | } | 
|  | 12560 | short int ebcdic_ii[] = | 
|  | 12561 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | 
|  | 12562 | short int ebcdic_mm[] = | 
|  | 12563 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | 
|  | 12564 | int use_ebcdic (int i) { | 
|  | 12565 | return ebcdic_mm[i] + ebcdic_ii[i]; | 
|  | 12566 | } | 
|  | 12567 | extern int foo; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12568 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12569 | int | 
|  | 12570 | main () | 
|  | 12571 | { | 
|  | 12572 | return use_ascii (foo) == use_ebcdic (foo); | 
|  | 12573 | ; | 
|  | 12574 | return 0; | 
|  | 12575 | } | 
|  | 12576 | _ACEOF | 
|  | 12577 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 12578 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | 
|  | 12579 | ac_cv_c_bigendian=yes | 
|  | 12580 | fi | 
|  | 12581 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | 
|  | 12582 | if test "$ac_cv_c_bigendian" = unknown; then | 
|  | 12583 | ac_cv_c_bigendian=no | 
|  | 12584 | else | 
|  | 12585 | # finding both strings is unlikely to happen, but who knows? | 
|  | 12586 | ac_cv_c_bigendian=unknown | 
|  | 12587 | fi | 
|  | 12588 | fi | 
|  | 12589 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12590 | 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] | 12591 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12592 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12593 | /* end confdefs.h.  */ | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12594 | $ac_includes_default | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12595 | int | 
|  | 12596 | main () | 
|  | 12597 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12598 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12599 | /* Are we little or big endian?  From Harbison&Steele.  */ | 
|  | 12600 | union | 
|  | 12601 | { | 
|  | 12602 | long int l; | 
|  | 12603 | char c[sizeof (long int)]; | 
|  | 12604 | } u; | 
|  | 12605 | u.l = 1; | 
|  | 12606 | return u.c[sizeof (long int) - 1] == 1; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12607 |  | 
|  | 12608 | ; | 
|  | 12609 | return 0; | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12610 | } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12611 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12612 | if ac_fn_c_try_run "$LINENO"; then : | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12613 | ac_cv_c_bigendian=no | 
|  | 12614 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12615 | ac_cv_c_bigendian=yes | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12616 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12617 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 12618 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12619 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12620 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12621 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12622 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12623 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 | 
|  | 12624 | $as_echo "$ac_cv_c_bigendian" >&6; } | 
|  | 12625 | case $ac_cv_c_bigendian in #( | 
|  | 12626 | yes) | 
|  | 12627 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | 
|  | 12628 | ;; #( | 
|  | 12629 | no) | 
|  | 12630 | ;; #( | 
|  | 12631 | universal) | 
| Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 12632 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12633 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h | 
| Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 12634 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12635 | ;; #( | 
|  | 12636 | *) | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 12637 | as_fn_error $? "unknown endianness | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 12638 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5  ;; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12639 | esac | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12640 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12641 |  | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 12642 | # ABI version string for Python extension modules.  This appears between the | 
|  | 12643 | # periods in shared library file names, e.g. foo.<SOABI>.so.  It is calculated | 
|  | 12644 | # from the following attributes which affect the ABI of this Python build (in | 
|  | 12645 | # this order): | 
|  | 12646 | # | 
|  | 12647 | # * The Python implementation (always 'cpython-' for us) | 
|  | 12648 | # * The major and minor version numbers | 
|  | 12649 | # * --with-pydebug (adds a 'd') | 
|  | 12650 | # * --with-pymalloc (adds a 'm') | 
|  | 12651 | # * --with-wide-unicode (adds a 'u') | 
|  | 12652 | # | 
|  | 12653 | # Thus for example, Python 3.2 built with wide unicode, pydebug, and pymalloc, | 
| Benjamin Peterson | d7f73e9 | 2010-09-05 00:09:07 +0000 | [diff] [blame] | 12654 | # would get a shared library ABI version tag of 'cpython-32dmu' and shared | 
|  | 12655 | # libraries would be named 'foo.cpython-32dmu.so'. | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 12656 |  | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 12657 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking ABIFLAGS" >&5 | 
|  | 12658 | $as_echo_n "checking ABIFLAGS... " >&6; } | 
|  | 12659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ABIFLAGS" >&5 | 
|  | 12660 | $as_echo "$ABIFLAGS" >&6; } | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 12661 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking SOABI" >&5 | 
|  | 12662 | $as_echo_n "checking SOABI... " >&6; } | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 12663 | SOABI='cpython-'`echo $VERSION | tr -d .`${ABIFLAGS} | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 12664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SOABI" >&5 | 
|  | 12665 | $as_echo "$SOABI" >&6; } | 
|  | 12666 |  | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 12667 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDVERSION" >&5 | 
|  | 12668 | $as_echo_n "checking LDVERSION... " >&6; } | 
|  | 12669 | LDVERSION='$(VERSION)$(ABIFLAGS)' | 
|  | 12670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDVERSION" >&5 | 
|  | 12671 | $as_echo "$LDVERSION" >&6; } | 
|  | 12672 |  | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 12673 | # SO is the extension of shared libraries `(including the dot!) | 
|  | 12674 | # -- usually .so, .sl on HP-UX, .dll on Cygwin | 
|  | 12675 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking SO" >&5 | 
|  | 12676 | $as_echo_n "checking SO... " >&6; } | 
|  | 12677 | if test -z "$SO" | 
|  | 12678 | then | 
|  | 12679 | case $ac_sys_system in | 
|  | 12680 | hp*|HP*) | 
|  | 12681 | case `uname -m` in | 
|  | 12682 | ia64) SO=.so;; | 
|  | 12683 | *)    SO=.sl;; | 
|  | 12684 | esac | 
|  | 12685 | ;; | 
|  | 12686 | CYGWIN*)   SO=.dll;; | 
| Barry Warsaw | 278266f | 2010-10-14 17:38:46 +0000 | [diff] [blame] | 12687 | Linux*|GNU*) | 
|  | 12688 | SO=.${SOABI}.so;; | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 12689 | *)	   SO=.so;; | 
|  | 12690 | esac | 
|  | 12691 | else | 
|  | 12692 | # this might also be a termcap variable, see #610332 | 
| Benjamin Peterson | d7f73e9 | 2010-09-05 00:09:07 +0000 | [diff] [blame] | 12693 | echo | 
|  | 12694 | echo '=====================================================================' | 
|  | 12695 | echo '+                                                                   +' | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 12696 | echo '+ WARNING: You have set SO in your environment.                     +' | 
| Benjamin Peterson | d7f73e9 | 2010-09-05 00:09:07 +0000 | [diff] [blame] | 12697 | echo '+ Do you really mean to change the extension for shared libraries?  +' | 
|  | 12698 | echo '+ Continuing in 10 seconds to let you to ponder.                    +' | 
|  | 12699 | echo '+                                                                   +' | 
|  | 12700 | echo '=====================================================================' | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 12701 | sleep 10 | 
|  | 12702 | fi | 
|  | 12703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SO" >&5 | 
|  | 12704 | $as_echo "$SO" >&6; } | 
|  | 12705 |  | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 12706 | # Check whether right shifting a negative integer extends the sign bit | 
|  | 12707 | # or fills with zeros (like the Cray J90, according to Tim Peters). | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12708 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether right shift extends the sign bit" >&5 | 
|  | 12709 | $as_echo_n "checking whether right shift extends the sign bit... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 12710 | if test "${ac_cv_rshift_extends_sign+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12711 | $as_echo_n "(cached) " >&6 | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 12712 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12713 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12714 | if test "$cross_compiling" = yes; then : | 
| Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 12715 | ac_cv_rshift_extends_sign=yes | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 12716 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12717 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12718 | /* end confdefs.h.  */ | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 12719 |  | 
|  | 12720 | int main() | 
|  | 12721 | { | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 12722 | exit(((-1)>>3 == -1) ? 0 : 1); | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 12723 | } | 
|  | 12724 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12725 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12726 | if ac_fn_c_try_run "$LINENO"; then : | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 12727 | ac_cv_rshift_extends_sign=yes | 
|  | 12728 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12729 | ac_cv_rshift_extends_sign=no | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 12730 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12731 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 12732 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 12733 | fi | 
|  | 12734 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12735 | fi | 
|  | 12736 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rshift_extends_sign" >&5 | 
|  | 12738 | $as_echo "$ac_cv_rshift_extends_sign" >&6; } | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 12739 | if test "$ac_cv_rshift_extends_sign" = no | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 12740 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12741 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12742 | $as_echo "#define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1" >>confdefs.h | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 12743 |  | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 12744 | fi | 
|  | 12745 |  | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 12746 | # check for getc_unlocked and related locking functions | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12747 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getc_unlocked() and friends" >&5 | 
|  | 12748 | $as_echo_n "checking for getc_unlocked() and friends... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 12749 | if test "${ac_cv_have_getc_unlocked+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12750 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 12751 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12752 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12753 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12754 | /* end confdefs.h.  */ | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 12755 | #include <stdio.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12756 | int | 
|  | 12757 | main () | 
|  | 12758 | { | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 12759 |  | 
|  | 12760 | FILE *f = fopen("/dev/null", "r"); | 
|  | 12761 | flockfile(f); | 
|  | 12762 | getc_unlocked(f); | 
|  | 12763 | funlockfile(f); | 
|  | 12764 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12765 | ; | 
|  | 12766 | return 0; | 
|  | 12767 | } | 
|  | 12768 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12769 | if ac_fn_c_try_link "$LINENO"; then : | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 12770 | ac_cv_have_getc_unlocked=yes | 
|  | 12771 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12772 | ac_cv_have_getc_unlocked=no | 
|  | 12773 | fi | 
|  | 12774 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 12775 | conftest$ac_exeext conftest.$ac_ext | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 12776 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12777 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getc_unlocked" >&5 | 
|  | 12779 | $as_echo "$ac_cv_have_getc_unlocked" >&6; } | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 12780 | if test "$ac_cv_have_getc_unlocked" = yes | 
|  | 12781 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12782 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12783 | $as_echo "#define HAVE_GETC_UNLOCKED 1" >>confdefs.h | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 12784 |  | 
|  | 12785 | fi | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 12786 |  | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 12787 | # check where readline lives | 
| Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 12788 | # save the value of LIBS so we don't actually link Python with readline | 
|  | 12789 | LIBS_no_readline=$LIBS | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 12790 |  | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 12791 | # On some systems we need to link readline to a termcap compatible | 
|  | 12792 | # library.  NOTE: Keep the precedence of listed libraries synchronised | 
|  | 12793 | # with setup.py. | 
|  | 12794 | py_cv_lib_readline=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12795 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link readline libs" >&5 | 
|  | 12796 | $as_echo_n "checking how to link readline libs... " >&6; } | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 12797 | for py_libtermcap in "" ncursesw ncurses curses termcap; do | 
|  | 12798 | if test -z "$py_libtermcap"; then | 
|  | 12799 | READLINE_LIBS="-lreadline" | 
|  | 12800 | else | 
|  | 12801 | READLINE_LIBS="-lreadline -l$py_libtermcap" | 
|  | 12802 | fi | 
|  | 12803 | LIBS="$READLINE_LIBS $LIBS_no_readline" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12804 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 12805 | /* end confdefs.h.  */ | 
|  | 12806 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12807 | /* Override any GCC internal prototype to avoid an error. | 
|  | 12808 | Use char because int might match the return type of a GCC | 
|  | 12809 | builtin and then its argument prototype would still apply.  */ | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 12810 | #ifdef __cplusplus | 
|  | 12811 | extern "C" | 
|  | 12812 | #endif | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 12813 | char readline (); | 
|  | 12814 | int | 
|  | 12815 | main () | 
|  | 12816 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12817 | return readline (); | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 12818 | ; | 
|  | 12819 | return 0; | 
|  | 12820 | } | 
|  | 12821 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12822 | if ac_fn_c_try_link "$LINENO"; then : | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 12823 | py_cv_lib_readline=yes | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 12824 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12825 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 12826 | conftest$ac_exeext conftest.$ac_ext | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 12827 | if test $py_cv_lib_readline = yes; then | 
|  | 12828 | break | 
|  | 12829 | fi | 
|  | 12830 | done | 
|  | 12831 | # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts | 
|  | 12832 | #AC_SUBST([READLINE_LIBS]) | 
| Gregory P. Smith | 3856c37 | 2008-09-07 19:24:00 +0000 | [diff] [blame] | 12833 | if test $py_cv_lib_readline = no; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | 
|  | 12835 | $as_echo "none" >&6; } | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 12836 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE_LIBS" >&5 | 
|  | 12838 | $as_echo "$READLINE_LIBS" >&6; } | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 12839 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12840 | $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 12841 |  | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 12842 | fi | 
|  | 12843 |  | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12844 | # check for readline 2.1 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12845 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_callback_handler_install in -lreadline" >&5 | 
|  | 12846 | $as_echo_n "checking for rl_callback_handler_install in -lreadline... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 12847 | if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12848 | $as_echo_n "(cached) " >&6 | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12849 | else | 
|  | 12850 | ac_check_lib_save_LIBS=$LIBS | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 12851 | LIBS="-lreadline $READLINE_LIBS $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12852 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12853 | /* end confdefs.h.  */ | 
|  | 12854 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12855 | /* Override any GCC internal prototype to avoid an error. | 
|  | 12856 | Use char because int might match the return type of a GCC | 
|  | 12857 | builtin and then its argument prototype would still apply.  */ | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12858 | #ifdef __cplusplus | 
|  | 12859 | extern "C" | 
|  | 12860 | #endif | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12861 | char rl_callback_handler_install (); | 
|  | 12862 | int | 
|  | 12863 | main () | 
|  | 12864 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12865 | return rl_callback_handler_install (); | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12866 | ; | 
|  | 12867 | return 0; | 
|  | 12868 | } | 
|  | 12869 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12870 | if ac_fn_c_try_link "$LINENO"; then : | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12871 | ac_cv_lib_readline_rl_callback_handler_install=yes | 
|  | 12872 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12873 | ac_cv_lib_readline_rl_callback_handler_install=no | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12874 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12875 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 12876 | conftest$ac_exeext conftest.$ac_ext | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12877 | LIBS=$ac_check_lib_save_LIBS | 
|  | 12878 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5 | 
|  | 12880 | $as_echo "$ac_cv_lib_readline_rl_callback_handler_install" >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 12881 | 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] | 12882 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12883 | $as_echo "#define HAVE_RL_CALLBACK 1" >>confdefs.h | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12884 |  | 
|  | 12885 | fi | 
|  | 12886 |  | 
|  | 12887 |  | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 12888 | # check for readline 2.2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12889 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12890 | /* end confdefs.h.  */ | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 12891 | #include <readline/readline.h> | 
|  | 12892 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12893 | if ac_fn_c_try_cpp "$LINENO"; then : | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 12894 | have_readline=yes | 
|  | 12895 | else | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 12896 | have_readline=no | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 12897 |  | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 12898 | fi | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 12899 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 12900 | if test $have_readline = yes | 
|  | 12901 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +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.  */ | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 12904 | #include <readline/readline.h> | 
|  | 12905 |  | 
|  | 12906 | _ACEOF | 
|  | 12907 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12908 | $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] | 12909 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12910 | $as_echo "#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1" >>confdefs.h | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 12911 |  | 
|  | 12912 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 12913 | rm -f conftest* | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 12914 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12915 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Antoine Pitrou | d513177 | 2009-10-26 19:22:14 +0000 | [diff] [blame] | 12916 | /* end confdefs.h.  */ | 
|  | 12917 | #include <readline/readline.h> | 
|  | 12918 |  | 
|  | 12919 | _ACEOF | 
|  | 12920 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12921 | $EGREP "extern int rl_completion_suppress_append;" >/dev/null 2>&1; then : | 
| Antoine Pitrou | d513177 | 2009-10-26 19:22:14 +0000 | [diff] [blame] | 12922 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12923 | $as_echo "#define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1" >>confdefs.h | 
| Antoine Pitrou | d513177 | 2009-10-26 19:22:14 +0000 | [diff] [blame] | 12924 |  | 
|  | 12925 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 12926 | rm -f conftest* | 
| Antoine Pitrou | d513177 | 2009-10-26 19:22:14 +0000 | [diff] [blame] | 12927 |  | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 12928 | fi | 
|  | 12929 |  | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 12930 | # check for readline 4.0 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12931 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_pre_input_hook in -lreadline" >&5 | 
|  | 12932 | $as_echo_n "checking for rl_pre_input_hook in -lreadline... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 12933 | if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12934 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 12935 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12936 | ac_check_lib_save_LIBS=$LIBS | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 12937 | LIBS="-lreadline $READLINE_LIBS $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12938 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12939 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12940 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12941 | /* Override any GCC internal prototype to avoid an error. | 
|  | 12942 | Use char because int might match the return type of a GCC | 
|  | 12943 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12944 | #ifdef __cplusplus | 
|  | 12945 | extern "C" | 
|  | 12946 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12947 | char rl_pre_input_hook (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12948 | int | 
|  | 12949 | main () | 
|  | 12950 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12951 | return rl_pre_input_hook (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12952 | ; | 
|  | 12953 | return 0; | 
|  | 12954 | } | 
|  | 12955 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12956 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12957 | ac_cv_lib_readline_rl_pre_input_hook=yes | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 12958 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12959 | ac_cv_lib_readline_rl_pre_input_hook=no | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 12960 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12961 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 12962 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12963 | LIBS=$ac_check_lib_save_LIBS | 
|  | 12964 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5 | 
|  | 12966 | $as_echo "$ac_cv_lib_readline_rl_pre_input_hook" >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 12967 | 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] | 12968 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12969 | $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] | 12970 |  | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 12971 | fi | 
|  | 12972 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12973 |  | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 12974 | # also in 4.0 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12975 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_display_matches_hook in -lreadline" >&5 | 
|  | 12976 | $as_echo_n "checking for rl_completion_display_matches_hook in -lreadline... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 12977 | if test "${ac_cv_lib_readline_rl_completion_display_matches_hook+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12978 | $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 12979 | else | 
|  | 12980 | ac_check_lib_save_LIBS=$LIBS | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 12981 | LIBS="-lreadline $READLINE_LIBS $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12982 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 12983 | /* end confdefs.h.  */ | 
|  | 12984 |  | 
|  | 12985 | /* Override any GCC internal prototype to avoid an error. | 
|  | 12986 | Use char because int might match the return type of a GCC | 
|  | 12987 | builtin and then its argument prototype would still apply.  */ | 
|  | 12988 | #ifdef __cplusplus | 
|  | 12989 | extern "C" | 
|  | 12990 | #endif | 
|  | 12991 | char rl_completion_display_matches_hook (); | 
|  | 12992 | int | 
|  | 12993 | main () | 
|  | 12994 | { | 
|  | 12995 | return rl_completion_display_matches_hook (); | 
|  | 12996 | ; | 
|  | 12997 | return 0; | 
|  | 12998 | } | 
|  | 12999 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13000 | if ac_fn_c_try_link "$LINENO"; then : | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 13001 | ac_cv_lib_readline_rl_completion_display_matches_hook=yes | 
|  | 13002 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13003 | ac_cv_lib_readline_rl_completion_display_matches_hook=no | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 13004 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13005 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 13006 | conftest$ac_exeext conftest.$ac_ext | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 13007 | LIBS=$ac_check_lib_save_LIBS | 
|  | 13008 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5 | 
|  | 13010 | $as_echo "$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 13011 | 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] | 13012 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13013 | $as_echo "#define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1" >>confdefs.h | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 13014 |  | 
|  | 13015 | fi | 
|  | 13016 |  | 
|  | 13017 |  | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 13018 | # check for readline 4.2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13019 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_matches in -lreadline" >&5 | 
|  | 13020 | $as_echo_n "checking for rl_completion_matches in -lreadline... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 13021 | if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13022 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 13023 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13024 | ac_check_lib_save_LIBS=$LIBS | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 13025 | LIBS="-lreadline $READLINE_LIBS $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13026 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13027 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13028 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13029 | /* Override any GCC internal prototype to avoid an error. | 
|  | 13030 | Use char because int might match the return type of a GCC | 
|  | 13031 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13032 | #ifdef __cplusplus | 
|  | 13033 | extern "C" | 
|  | 13034 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13035 | char rl_completion_matches (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13036 | int | 
|  | 13037 | main () | 
|  | 13038 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13039 | return rl_completion_matches (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13040 | ; | 
|  | 13041 | return 0; | 
|  | 13042 | } | 
|  | 13043 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13044 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13045 | ac_cv_lib_readline_rl_completion_matches=yes | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 13046 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13047 | ac_cv_lib_readline_rl_completion_matches=no | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 13048 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13049 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 13050 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13051 | LIBS=$ac_check_lib_save_LIBS | 
|  | 13052 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_matches" >&5 | 
|  | 13054 | $as_echo "$ac_cv_lib_readline_rl_completion_matches" >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 13055 | 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] | 13056 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13057 | $as_echo "#define HAVE_RL_COMPLETION_MATCHES 1" >>confdefs.h | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 13058 |  | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 13059 | fi | 
|  | 13060 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 13061 |  | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13062 | # also in readline 4.2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13063 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13064 | /* end confdefs.h.  */ | 
|  | 13065 | #include <readline/readline.h> | 
|  | 13066 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13067 | if ac_fn_c_try_cpp "$LINENO"; then : | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13068 | have_readline=yes | 
|  | 13069 | else | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13070 | have_readline=no | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13071 |  | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13072 | fi | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 13073 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13074 | if test $have_readline = yes | 
|  | 13075 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13076 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13077 | /* end confdefs.h.  */ | 
|  | 13078 | #include <readline/readline.h> | 
|  | 13079 |  | 
|  | 13080 | _ACEOF | 
|  | 13081 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13082 | $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then : | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13083 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13084 | $as_echo "#define HAVE_RL_CATCH_SIGNAL 1" >>confdefs.h | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13085 |  | 
|  | 13086 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 13087 | rm -f conftest* | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13088 |  | 
|  | 13089 | fi | 
|  | 13090 |  | 
| Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 13091 | # End of readline checks: restore LIBS | 
|  | 13092 | LIBS=$LIBS_no_readline | 
|  | 13093 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13094 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken nice()" >&5 | 
|  | 13095 | $as_echo_n "checking for broken nice()... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 13096 | if test "${ac_cv_broken_nice+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13097 | $as_echo_n "(cached) " >&6 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13098 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13099 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13100 | if test "$cross_compiling" = yes; then : | 
| Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 13101 | ac_cv_broken_nice=no | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 13102 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13103 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13104 | /* end confdefs.h.  */ | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 13105 |  | 
|  | 13106 | int main() | 
|  | 13107 | { | 
|  | 13108 | int val1 = nice(1); | 
|  | 13109 | if (val1 != -1 && val1 == nice(2)) | 
|  | 13110 | exit(0); | 
|  | 13111 | exit(1); | 
|  | 13112 | } | 
|  | 13113 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13114 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13115 | if ac_fn_c_try_run "$LINENO"; then : | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 13116 | ac_cv_broken_nice=yes | 
|  | 13117 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13118 | ac_cv_broken_nice=no | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 13119 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13120 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 13121 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 13122 | fi | 
|  | 13123 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13124 | fi | 
|  | 13125 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_nice" >&5 | 
|  | 13127 | $as_echo "$ac_cv_broken_nice" >&6; } | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 13128 | if test "$ac_cv_broken_nice" = yes | 
|  | 13129 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13130 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13131 | $as_echo "#define HAVE_BROKEN_NICE 1" >>confdefs.h | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 13132 |  | 
|  | 13133 | fi | 
|  | 13134 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13135 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken poll()" >&5 | 
|  | 13136 | $as_echo_n "checking for broken poll()... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 13137 | if test "${ac_cv_broken_poll+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13138 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13139 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13140 | if test "$cross_compiling" = yes; then : | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13141 | ac_cv_broken_poll=no | 
|  | 13142 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13143 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13144 | /* end confdefs.h.  */ | 
|  | 13145 |  | 
|  | 13146 | #include <poll.h> | 
|  | 13147 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13148 | int main() | 
|  | 13149 | { | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13150 | struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 }; | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13151 | int poll_test; | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13152 |  | 
|  | 13153 | close (42); | 
|  | 13154 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13155 | poll_test = poll(&poll_struct, 1, 0); | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13156 | if (poll_test < 0) | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13157 | return 0; | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13158 | else if (poll_test == 0 && poll_struct.revents != POLLNVAL) | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13159 | return 0; | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13160 | else | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13161 | return 1; | 
|  | 13162 | } | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13163 |  | 
|  | 13164 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13165 | if ac_fn_c_try_run "$LINENO"; then : | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13166 | ac_cv_broken_poll=yes | 
|  | 13167 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13168 | ac_cv_broken_poll=no | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13169 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13170 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 13171 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13172 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13173 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13174 | fi | 
|  | 13175 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_poll" >&5 | 
|  | 13177 | $as_echo "$ac_cv_broken_poll" >&6; } | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13178 | if test "$ac_cv_broken_poll" = yes | 
|  | 13179 | then | 
|  | 13180 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13181 | $as_echo "#define HAVE_BROKEN_POLL 1" >>confdefs.h | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13182 |  | 
|  | 13183 | fi | 
|  | 13184 |  | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13185 | # 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] | 13186 | # (which is not required by ISO C or UNIX spec) and/or if we support | 
|  | 13187 | # tzname[] | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13188 | 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] | 13189 | #include <$ac_cv_struct_tm> | 
|  | 13190 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13191 | " | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 13192 | 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] | 13193 |  | 
|  | 13194 | cat >>confdefs.h <<_ACEOF | 
|  | 13195 | #define HAVE_STRUCT_TM_TM_ZONE 1 | 
|  | 13196 | _ACEOF | 
|  | 13197 |  | 
|  | 13198 |  | 
|  | 13199 | fi | 
|  | 13200 |  | 
|  | 13201 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then | 
|  | 13202 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13203 | $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13204 |  | 
|  | 13205 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13206 | ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> | 
|  | 13207 | " | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 13208 | if test "x$ac_cv_have_decl_tzname" = x""yes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13209 | ac_have_decl=1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13210 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13211 | ac_have_decl=0 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13212 | fi | 
|  | 13213 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13214 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13215 | #define HAVE_DECL_TZNAME $ac_have_decl | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13216 | _ACEOF | 
|  | 13217 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13218 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 | 
|  | 13219 | $as_echo_n "checking for tzname... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 13220 | if test "${ac_cv_var_tzname+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13221 | $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13222 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13223 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13224 | /* end confdefs.h.  */ | 
|  | 13225 | #include <time.h> | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13226 | #if !HAVE_DECL_TZNAME | 
|  | 13227 | extern char *tzname[]; | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13228 | #endif | 
|  | 13229 |  | 
|  | 13230 | int | 
|  | 13231 | main () | 
|  | 13232 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13233 | return tzname[0][0]; | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13234 | ; | 
|  | 13235 | return 0; | 
|  | 13236 | } | 
|  | 13237 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13238 | if ac_fn_c_try_link "$LINENO"; then : | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13239 | ac_cv_var_tzname=yes | 
|  | 13240 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13241 | ac_cv_var_tzname=no | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13242 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13243 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 13244 | conftest$ac_exeext conftest.$ac_ext | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13245 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 | 
|  | 13247 | $as_echo "$ac_cv_var_tzname" >&6; } | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13248 | if test $ac_cv_var_tzname = yes; then | 
|  | 13249 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13250 | $as_echo "#define HAVE_TZNAME 1" >>confdefs.h | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13251 |  | 
|  | 13252 | fi | 
|  | 13253 | fi | 
|  | 13254 |  | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13255 |  | 
| Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 13256 | # check tzset(3) exists and works like we expect it to | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13257 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working tzset()" >&5 | 
|  | 13258 | $as_echo_n "checking for working tzset()... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 13259 | if test "${ac_cv_working_tzset+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13260 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13261 | else | 
|  | 13262 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13263 | if test "$cross_compiling" = yes; then : | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13264 | ac_cv_working_tzset=no | 
|  | 13265 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13266 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13267 | /* end confdefs.h.  */ | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13268 |  | 
|  | 13269 | #include <stdlib.h> | 
|  | 13270 | #include <time.h> | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13271 | #include <string.h> | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13272 |  | 
|  | 13273 | #if HAVE_TZNAME | 
|  | 13274 | extern char *tzname[]; | 
|  | 13275 | #endif | 
|  | 13276 |  | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13277 | int main() | 
|  | 13278 | { | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13279 | /* Note that we need to ensure that not only does tzset(3) | 
|  | 13280 | do 'something' with localtime, but it works as documented | 
|  | 13281 | 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] | 13282 | This includes making sure that tzname is set properly if | 
|  | 13283 | tm->tm_zone does not exist since it is the alternative way | 
|  | 13284 | of getting timezone info. | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13285 |  | 
|  | 13286 | Red Hat 6.2 doesn't understand the southern hemisphere | 
| Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 13287 | after New Year's Day. | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13288 | */ | 
|  | 13289 |  | 
| Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 13290 | time_t groundhogday = 1044144000; /* GMT-based */ | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13291 | time_t midyear = groundhogday + (365 * 24 * 3600 / 2); | 
|  | 13292 |  | 
| Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 13293 | putenv("TZ=UTC+0"); | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13294 | tzset(); | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13295 | if (localtime(&groundhogday)->tm_hour != 0) | 
|  | 13296 | exit(1); | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13297 | #if HAVE_TZNAME | 
|  | 13298 | /* For UTC, tzname[1] is sometimes "", sometimes "   " */ | 
|  | 13299 | if (strcmp(tzname[0], "UTC") || | 
|  | 13300 | (tzname[1][0] != 0 && tzname[1][0] != ' ')) | 
|  | 13301 | exit(1); | 
|  | 13302 | #endif | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13303 |  | 
| Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 13304 | putenv("TZ=EST+5EDT,M4.1.0,M10.5.0"); | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13305 | tzset(); | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13306 | if (localtime(&groundhogday)->tm_hour != 19) | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13307 | exit(1); | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13308 | #if HAVE_TZNAME | 
|  | 13309 | if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT")) | 
|  | 13310 | exit(1); | 
|  | 13311 | #endif | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13312 |  | 
|  | 13313 | putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0"); | 
|  | 13314 | tzset(); | 
|  | 13315 | if (localtime(&groundhogday)->tm_hour != 11) | 
|  | 13316 | exit(1); | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13317 | #if HAVE_TZNAME | 
|  | 13318 | if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT")) | 
|  | 13319 | exit(1); | 
|  | 13320 | #endif | 
|  | 13321 |  | 
|  | 13322 | #if HAVE_STRUCT_TM_TM_ZONE | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13323 | if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT")) | 
|  | 13324 | exit(1); | 
|  | 13325 | if (strcmp(localtime(&midyear)->tm_zone, "AEST")) | 
|  | 13326 | exit(1); | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13327 | #endif | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13328 |  | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13329 | exit(0); | 
|  | 13330 | } | 
|  | 13331 |  | 
|  | 13332 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13333 | if ac_fn_c_try_run "$LINENO"; then : | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13334 | ac_cv_working_tzset=yes | 
|  | 13335 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13336 | ac_cv_working_tzset=no | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13337 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13338 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 13339 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13340 | fi | 
|  | 13341 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13342 | fi | 
|  | 13343 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_tzset" >&5 | 
|  | 13345 | $as_echo "$ac_cv_working_tzset" >&6; } | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13346 | if test "$ac_cv_working_tzset" = yes | 
|  | 13347 | then | 
|  | 13348 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13349 | $as_echo "#define HAVE_WORKING_TZSET 1" >>confdefs.h | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13350 |  | 
|  | 13351 | fi | 
|  | 13352 |  | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 13353 | # Look for subsecond timestamps in struct stat | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13354 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec in struct stat" >&5 | 
|  | 13355 | $as_echo_n "checking for tv_nsec in struct stat... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 13356 | if test "${ac_cv_stat_tv_nsec+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13357 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 13358 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13359 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13360 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 13361 | #include <sys/stat.h> | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 13362 | int | 
|  | 13363 | main () | 
|  | 13364 | { | 
|  | 13365 |  | 
|  | 13366 | struct stat st; | 
|  | 13367 | st.st_mtim.tv_nsec = 1; | 
|  | 13368 |  | 
|  | 13369 | ; | 
|  | 13370 | return 0; | 
|  | 13371 | } | 
|  | 13372 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13373 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | a32c994 | 2002-09-09 16:17:47 +0000 | [diff] [blame] | 13374 | ac_cv_stat_tv_nsec=yes | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 13375 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13376 | ac_cv_stat_tv_nsec=no | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 13377 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13378 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 13379 | fi | 
|  | 13380 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec" >&5 | 
|  | 13382 | $as_echo "$ac_cv_stat_tv_nsec" >&6; } | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 13383 | if test "$ac_cv_stat_tv_nsec" = yes | 
|  | 13384 | then | 
|  | 13385 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13386 | $as_echo "#define HAVE_STAT_TV_NSEC 1" >>confdefs.h | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 13387 |  | 
|  | 13388 | fi | 
|  | 13389 |  | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 13390 | # Look for BSD style subsecond timestamps in struct stat | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13391 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec2 in struct stat" >&5 | 
|  | 13392 | $as_echo_n "checking for tv_nsec2 in struct stat... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 13393 | if test "${ac_cv_stat_tv_nsec2+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13394 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 13395 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13396 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 13397 | /* end confdefs.h.  */ | 
|  | 13398 | #include <sys/stat.h> | 
|  | 13399 | int | 
|  | 13400 | main () | 
|  | 13401 | { | 
|  | 13402 |  | 
|  | 13403 | struct stat st; | 
|  | 13404 | st.st_mtimespec.tv_nsec = 1; | 
|  | 13405 |  | 
|  | 13406 | ; | 
|  | 13407 | return 0; | 
|  | 13408 | } | 
|  | 13409 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13410 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 13411 | ac_cv_stat_tv_nsec2=yes | 
|  | 13412 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13413 | ac_cv_stat_tv_nsec2=no | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 13414 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13415 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 13416 | fi | 
|  | 13417 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec2" >&5 | 
|  | 13419 | $as_echo "$ac_cv_stat_tv_nsec2" >&6; } | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 13420 | if test "$ac_cv_stat_tv_nsec2" = yes | 
|  | 13421 | then | 
|  | 13422 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13423 | $as_echo "#define HAVE_STAT_TV_NSEC2 1" >>confdefs.h | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 13424 |  | 
|  | 13425 | fi | 
|  | 13426 |  | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13427 | # On HP/UX 11.0, mvwdelch is a block with a return statement | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13428 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mvwdelch is an expression" >&5 | 
|  | 13429 | $as_echo_n "checking whether mvwdelch is an expression... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 13430 | if test "${ac_cv_mvwdelch_is_expression+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13431 | $as_echo_n "(cached) " >&6 | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13432 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13433 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13434 | /* end confdefs.h.  */ | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13435 | #include <curses.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13436 | int | 
|  | 13437 | main () | 
|  | 13438 | { | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13439 |  | 
|  | 13440 | int rtn; | 
|  | 13441 | rtn = mvwdelch(0,0,0); | 
|  | 13442 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13443 | ; | 
|  | 13444 | return 0; | 
|  | 13445 | } | 
|  | 13446 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13447 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13448 | ac_cv_mvwdelch_is_expression=yes | 
|  | 13449 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13450 | ac_cv_mvwdelch_is_expression=no | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13451 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13452 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 13453 | fi | 
|  | 13454 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mvwdelch_is_expression" >&5 | 
|  | 13456 | $as_echo "$ac_cv_mvwdelch_is_expression" >&6; } | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13457 |  | 
|  | 13458 | if test "$ac_cv_mvwdelch_is_expression" = yes | 
|  | 13459 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13460 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13461 | $as_echo "#define MVWDELCH_IS_EXPRESSION 1" >>confdefs.h | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13462 |  | 
|  | 13463 | fi | 
|  | 13464 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13465 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether WINDOW has _flags" >&5 | 
|  | 13466 | $as_echo_n "checking whether WINDOW has _flags... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 13467 | if test "${ac_cv_window_has_flags+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13468 | $as_echo_n "(cached) " >&6 | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13469 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13470 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13471 | /* end confdefs.h.  */ | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13472 | #include <curses.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13473 | int | 
|  | 13474 | main () | 
|  | 13475 | { | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13476 |  | 
|  | 13477 | WINDOW *w; | 
|  | 13478 | w->_flags = 0; | 
|  | 13479 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13480 | ; | 
|  | 13481 | return 0; | 
|  | 13482 | } | 
|  | 13483 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13484 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13485 | ac_cv_window_has_flags=yes | 
|  | 13486 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13487 | ac_cv_window_has_flags=no | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13488 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13489 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 13490 | fi | 
|  | 13491 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_window_has_flags" >&5 | 
|  | 13493 | $as_echo "$ac_cv_window_has_flags" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13494 |  | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13495 |  | 
|  | 13496 | if test "$ac_cv_window_has_flags" = yes | 
|  | 13497 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13498 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13499 | $as_echo "#define WINDOW_HAS_FLAGS 1" >>confdefs.h | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13500 |  | 
|  | 13501 | fi | 
|  | 13502 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13503 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_term_resized" >&5 | 
|  | 13504 | $as_echo_n "checking for is_term_resized... " >&6; } | 
|  | 13505 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13506 | /* end confdefs.h.  */ | 
|  | 13507 | #include <curses.h> | 
|  | 13508 | int | 
|  | 13509 | main () | 
|  | 13510 | { | 
|  | 13511 | void *x=is_term_resized | 
|  | 13512 | ; | 
|  | 13513 | return 0; | 
|  | 13514 | } | 
|  | 13515 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13516 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 13517 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13518 | $as_echo "#define HAVE_CURSES_IS_TERM_RESIZED 1" >>confdefs.h | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13519 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13521 | $as_echo "yes" >&6; } | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13522 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 13524 | $as_echo "no" >&6; } | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13525 |  | 
|  | 13526 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13527 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 13528 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13529 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resize_term" >&5 | 
|  | 13530 | $as_echo_n "checking for resize_term... " >&6; } | 
|  | 13531 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13532 | /* end confdefs.h.  */ | 
|  | 13533 | #include <curses.h> | 
|  | 13534 | int | 
|  | 13535 | main () | 
|  | 13536 | { | 
|  | 13537 | void *x=resize_term | 
|  | 13538 | ; | 
|  | 13539 | return 0; | 
|  | 13540 | } | 
|  | 13541 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13542 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13543 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13544 | $as_echo "#define HAVE_CURSES_RESIZE_TERM 1" >>confdefs.h | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13545 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13547 | $as_echo "yes" >&6; } | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13548 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 13550 | $as_echo "no" >&6; } | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13551 |  | 
|  | 13552 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13553 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 13554 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13555 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resizeterm" >&5 | 
|  | 13556 | $as_echo_n "checking for resizeterm... " >&6; } | 
|  | 13557 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13558 | /* end confdefs.h.  */ | 
|  | 13559 | #include <curses.h> | 
|  | 13560 | int | 
|  | 13561 | main () | 
|  | 13562 | { | 
|  | 13563 | void *x=resizeterm | 
|  | 13564 | ; | 
|  | 13565 | return 0; | 
|  | 13566 | } | 
|  | 13567 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13568 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13569 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13570 | $as_echo "#define HAVE_CURSES_RESIZETERM 1" >>confdefs.h | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13571 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13573 | $as_echo "yes" >&6; } | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13574 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 13576 | $as_echo "no" >&6; } | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13577 |  | 
|  | 13578 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13579 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 13580 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13581 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5 | 
|  | 13582 | $as_echo_n "checking for /dev/ptmx... " >&6; } | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 13583 |  | 
|  | 13584 | if test -r /dev/ptmx | 
|  | 13585 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 13587 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 13588 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13589 | $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h | 
| Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 13590 |  | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 13591 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13592 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 13593 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 13594 | fi | 
|  | 13595 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13596 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5 | 
|  | 13597 | $as_echo_n "checking for /dev/ptc... " >&6; } | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 13598 |  | 
|  | 13599 | if test -r /dev/ptc | 
|  | 13600 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 13602 | $as_echo "yes" >&6; } | 
| Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 13603 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13604 | $as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h | 
| Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 13605 |  | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 13606 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 13608 | $as_echo "no" >&6; } | 
| Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 13609 | fi | 
|  | 13610 |  | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 13611 | if test "$have_long_long" = yes | 
|  | 13612 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13613 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for %lld and %llu printf() format support" >&5 | 
|  | 13614 | $as_echo_n "checking for %lld and %llu printf() format support... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 13615 | if test "${ac_cv_have_long_long_format+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13616 | $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 13617 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13618 | if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 13619 | ac_cv_have_long_long_format=no | 
|  | 13620 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13621 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 13622 | /* end confdefs.h.  */ | 
|  | 13623 |  | 
|  | 13624 | #include <stdio.h> | 
|  | 13625 | #include <stddef.h> | 
|  | 13626 | #include <string.h> | 
|  | 13627 |  | 
|  | 13628 | #ifdef HAVE_SYS_TYPES_H | 
|  | 13629 | #include <sys/types.h> | 
|  | 13630 | #endif | 
|  | 13631 |  | 
|  | 13632 | int main() | 
|  | 13633 | { | 
|  | 13634 | char buffer[256]; | 
|  | 13635 |  | 
|  | 13636 | if (sprintf(buffer, "%lld", (long long)123) < 0) | 
|  | 13637 | return 1; | 
|  | 13638 | if (strcmp(buffer, "123")) | 
|  | 13639 | return 1; | 
|  | 13640 |  | 
|  | 13641 | if (sprintf(buffer, "%lld", (long long)-123) < 0) | 
|  | 13642 | return 1; | 
|  | 13643 | if (strcmp(buffer, "-123")) | 
|  | 13644 | return 1; | 
|  | 13645 |  | 
|  | 13646 | if (sprintf(buffer, "%llu", (unsigned long long)123) < 0) | 
|  | 13647 | return 1; | 
|  | 13648 | if (strcmp(buffer, "123")) | 
|  | 13649 | return 1; | 
|  | 13650 |  | 
|  | 13651 | return 0; | 
|  | 13652 | } | 
|  | 13653 |  | 
|  | 13654 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13655 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 13656 | ac_cv_have_long_long_format=yes | 
|  | 13657 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13658 | ac_cv_have_long_long_format=no | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 13659 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13660 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 13661 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 13662 | fi | 
|  | 13663 |  | 
|  | 13664 |  | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 13665 | fi | 
|  | 13666 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_long_long_format" >&5 | 
|  | 13668 | $as_echo "$ac_cv_have_long_long_format" >&6; } | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 13669 | fi | 
|  | 13670 |  | 
| Mark Dickinson | 89d7d41 | 2009-12-31 20:50:59 +0000 | [diff] [blame] | 13671 | if test "$ac_cv_have_long_long_format" = yes | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 13672 | then | 
|  | 13673 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13674 | $as_echo "#define PY_FORMAT_LONG_LONG \"ll\"" >>confdefs.h | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 13675 |  | 
|  | 13676 | fi | 
|  | 13677 |  | 
| Ronald Oussoren | 3c1928a | 2009-11-19 17:15:31 +0000 | [diff] [blame] | 13678 | if test $ac_sys_system = Darwin | 
|  | 13679 | then | 
|  | 13680 | LIBS="$LIBS -framework CoreFoundation" | 
|  | 13681 | fi | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 13682 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13683 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for %zd printf() format support" >&5 | 
|  | 13684 | $as_echo_n "checking for %zd printf() format support... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 13685 | if test "${ac_cv_have_size_t_format+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13686 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13687 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13688 | if test "$cross_compiling" = yes; then : | 
| Benjamin Peterson | 8f326b2 | 2009-12-13 02:10:36 +0000 | [diff] [blame] | 13689 | ac_cv_have_size_t_format="cross -- assuming yes" | 
|  | 13690 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13691 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13692 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13693 | /* end confdefs.h.  */ | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13694 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13695 | #include <stdio.h> | 
|  | 13696 | #include <stddef.h> | 
|  | 13697 | #include <string.h> | 
|  | 13698 |  | 
| Christian Heimes | 2c18161 | 2007-12-17 20:04:13 +0000 | [diff] [blame] | 13699 | #ifdef HAVE_SYS_TYPES_H | 
|  | 13700 | #include <sys/types.h> | 
|  | 13701 | #endif | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 13702 |  | 
|  | 13703 | #ifdef HAVE_SSIZE_T | 
|  | 13704 | typedef ssize_t Py_ssize_t; | 
|  | 13705 | #elif SIZEOF_VOID_P == SIZEOF_LONG | 
|  | 13706 | typedef long Py_ssize_t; | 
|  | 13707 | #else | 
|  | 13708 | typedef int Py_ssize_t; | 
|  | 13709 | #endif | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13710 |  | 
| Christian Heimes | 2c18161 | 2007-12-17 20:04:13 +0000 | [diff] [blame] | 13711 | int main() | 
|  | 13712 | { | 
|  | 13713 | char buffer[256]; | 
|  | 13714 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13715 | if(sprintf(buffer, "%zd", (size_t)123) < 0) | 
|  | 13716 | return 1; | 
|  | 13717 |  | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 13718 | if (strcmp(buffer, "123")) | 
|  | 13719 | return 1; | 
|  | 13720 |  | 
|  | 13721 | if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0) | 
|  | 13722 | return 1; | 
|  | 13723 |  | 
|  | 13724 | if (strcmp(buffer, "-123")) | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13725 | return 1; | 
|  | 13726 |  | 
|  | 13727 | return 0; | 
|  | 13728 | } | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13729 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13730 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13731 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13732 | ac_cv_have_size_t_format=yes | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 13733 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13734 | ac_cv_have_size_t_format=no | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 13735 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13736 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 13737 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 13738 | fi | 
|  | 13739 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13740 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_size_t_format" >&5 | 
|  | 13742 | $as_echo "$ac_cv_have_size_t_format" >&6; } | 
| Benjamin Peterson | 8f326b2 | 2009-12-13 02:10:36 +0000 | [diff] [blame] | 13743 | if test "$ac_cv_have_size_t_format" != no ; then | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13744 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13745 | $as_echo "#define PY_FORMAT_SIZE_T \"z\"" >>confdefs.h | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13746 |  | 
|  | 13747 | fi | 
|  | 13748 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13749 | ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " | 
| Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 13750 | #ifdef HAVE_SYS_TYPES_H | 
|  | 13751 | #include <sys/types.h> | 
|  | 13752 | #endif | 
|  | 13753 | #ifdef HAVE_SYS_SOCKET_H | 
|  | 13754 | #include <sys/socket.h> | 
|  | 13755 | #endif | 
|  | 13756 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13757 | " | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 13758 | if test "x$ac_cv_type_socklen_t" = x""yes; then : | 
| Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 13759 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13760 | else | 
| Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 13761 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13762 | $as_echo "#define socklen_t int" >>confdefs.h | 
| Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 13763 |  | 
|  | 13764 | fi | 
|  | 13765 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13766 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13767 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken mbstowcs" >&5 | 
|  | 13768 | $as_echo_n "checking for broken mbstowcs... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 13769 | if test "${ac_cv_broken_mbstowcs+set}" = set; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13770 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13771 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13772 | if test "$cross_compiling" = yes; then : | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 13773 | ac_cv_broken_mbstowcs=no | 
|  | 13774 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13775 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 13776 | /* end confdefs.h.  */ | 
|  | 13777 |  | 
|  | 13778 | #include<stdlib.h> | 
|  | 13779 | int main() { | 
|  | 13780 | size_t len = -1; | 
|  | 13781 | const char *str = "text"; | 
|  | 13782 | len = mbstowcs(NULL, str, 0); | 
|  | 13783 | return (len != 4); | 
|  | 13784 | } | 
|  | 13785 |  | 
|  | 13786 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13787 | if ac_fn_c_try_run "$LINENO"; then : | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 13788 | ac_cv_broken_mbstowcs=no | 
|  | 13789 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13790 | ac_cv_broken_mbstowcs=yes | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 13791 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13792 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 13793 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 13794 | fi | 
|  | 13795 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13796 | fi | 
|  | 13797 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_mbstowcs" >&5 | 
|  | 13799 | $as_echo "$ac_cv_broken_mbstowcs" >&6; } | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 13800 | if test "$ac_cv_broken_mbstowcs" = yes | 
|  | 13801 | then | 
|  | 13802 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13803 | $as_echo "#define HAVE_BROKEN_MBSTOWCS 1" >>confdefs.h | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 13804 |  | 
|  | 13805 | fi | 
|  | 13806 |  | 
| Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 13807 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports computed gotos" >&5 | 
|  | 13808 | $as_echo_n "checking whether $CC supports computed gotos... " >&6; } | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 13809 | if test "${ac_cv_computed_gotos+set}" = set; then : | 
| Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 13810 | $as_echo_n "(cached) " >&6 | 
|  | 13811 | else | 
|  | 13812 | if test "$cross_compiling" = yes; then : | 
|  | 13813 | ac_cv_computed_gotos=no | 
|  | 13814 | else | 
|  | 13815 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 13816 | /* end confdefs.h.  */ | 
|  | 13817 |  | 
|  | 13818 | int main(int argc, char **argv) | 
|  | 13819 | { | 
|  | 13820 | static void *targets[1] = { &&LABEL1 }; | 
|  | 13821 | goto LABEL2; | 
|  | 13822 | LABEL1: | 
|  | 13823 | return 0; | 
|  | 13824 | LABEL2: | 
|  | 13825 | goto *targets[0]; | 
|  | 13826 | return 1; | 
|  | 13827 | } | 
|  | 13828 |  | 
|  | 13829 | _ACEOF | 
|  | 13830 | if ac_fn_c_try_run "$LINENO"; then : | 
|  | 13831 | ac_cv_computed_gotos=yes | 
|  | 13832 | else | 
|  | 13833 | ac_cv_computed_gotos=no | 
|  | 13834 | fi | 
|  | 13835 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 13836 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
|  | 13837 | fi | 
|  | 13838 |  | 
|  | 13839 | fi | 
|  | 13840 |  | 
|  | 13841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_computed_gotos" >&5 | 
|  | 13842 | $as_echo "$ac_cv_computed_gotos" >&6; } | 
|  | 13843 | if test "$ac_cv_computed_gotos" = yes | 
|  | 13844 | then | 
|  | 13845 |  | 
|  | 13846 | $as_echo "#define HAVE_COMPUTED_GOTOS 1" >>confdefs.h | 
|  | 13847 |  | 
|  | 13848 | fi | 
|  | 13849 |  | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13850 | # Check for --with-computed-gotos | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13851 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-computed-gotos" >&5 | 
|  | 13852 | $as_echo_n "checking for --with-computed-gotos... " >&6; } | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13853 |  | 
|  | 13854 | # Check whether --with-computed-gotos was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13855 | if test "${with_computed_gotos+set}" = set; then : | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13856 | withval=$with_computed_gotos; | 
| Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 13857 | if test "$withval" = yes | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13858 | then | 
|  | 13859 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13860 | $as_echo "#define USE_COMPUTED_GOTOS 1" >>confdefs.h | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13861 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13862 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 13863 | $as_echo "yes" >&6; } | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13864 | fi | 
| Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 13865 | if test "$withval" = no | 
|  | 13866 | then | 
|  | 13867 |  | 
|  | 13868 | $as_echo "#define USE_COMPUTED_GOTOS 0" >>confdefs.h | 
|  | 13869 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 13871 | $as_echo "no" >&6; } | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13872 | fi | 
|  | 13873 |  | 
| Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 13874 | else | 
|  | 13875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5 | 
|  | 13876 | $as_echo "no value specified" >&6; } | 
|  | 13877 | fi | 
|  | 13878 |  | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13879 |  | 
| Benjamin Peterson | d8d835b | 2010-10-15 23:14:46 +0000 | [diff] [blame] | 13880 | case $ac_sys_system in | 
|  | 13881 | AIX*) | 
|  | 13882 |  | 
|  | 13883 | $as_echo "#define HAVE_BROKEN_PIPE_BUF 1" >>confdefs.h | 
|  | 13884 | ;; | 
|  | 13885 | esac | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 13886 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13887 |  | 
| Jesus Cea | 6a79229 | 2010-05-03 21:18:48 +0000 | [diff] [blame] | 13888 | case $ac_sys_system in | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 13889 | OSF*) as_fn_error $? "OSF* systems are deprecated unless somebody volunteers. Check http://bugs.python.org/issue8606" "$LINENO" 5  ;; | 
| Jesus Cea | 6a79229 | 2010-05-03 21:18:48 +0000 | [diff] [blame] | 13890 | esac | 
|  | 13891 |  | 
| Gregory P. Smith | 138fa43 | 2010-12-13 08:00:52 +0000 | [diff] [blame] | 13892 | ac_fn_c_check_func "$LINENO" "pipe2" "ac_cv_func_pipe2" | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 13893 | if test "x$ac_cv_func_pipe2" = x""yes; then : | 
| Gregory P. Smith | 138fa43 | 2010-12-13 08:00:52 +0000 | [diff] [blame] | 13894 |  | 
|  | 13895 | $as_echo "#define HAVE_PIPE2 1" >>confdefs.h | 
|  | 13896 |  | 
|  | 13897 | fi | 
| Jesus Cea | 6a79229 | 2010-05-03 21:18:48 +0000 | [diff] [blame] | 13898 |  | 
|  | 13899 |  | 
| Mark Dickinson | b2153e9 | 2010-05-05 22:31:36 +0000 | [diff] [blame] | 13900 |  | 
|  | 13901 |  | 
| Martin v. Löwis | 06f15bb | 2001-12-02 13:02:32 +0000 | [diff] [blame] | 13902 | for h in `(cd $srcdir;echo Python/thread_*.h)` | 
|  | 13903 | do | 
|  | 13904 | THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" | 
|  | 13905 | done | 
|  | 13906 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13907 |  | 
| Neal Norwitz | d24499d | 2005-12-18 21:36:39 +0000 | [diff] [blame] | 13908 | SRCDIRS="Parser Grammar Objects Python Modules Mac" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13909 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build directories" >&5 | 
|  | 13910 | $as_echo_n "checking for build directories... " >&6; } | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 13911 | for dir in $SRCDIRS; do | 
|  | 13912 | if test ! -d $dir; then | 
|  | 13913 | mkdir $dir | 
| Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 13914 | fi | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 13915 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | 
|  | 13917 | $as_echo "done" >&6; } | 
| Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 13918 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13919 | # generate output files | 
| Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 13920 | 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] | 13921 |  | 
| Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 13922 | ac_config_files="$ac_config_files Modules/ld_so_aix" | 
|  | 13923 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13924 | cat >confcache <<\_ACEOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13925 | # This file is a shell script that caches the results of configure | 
|  | 13926 | # 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] | 13927 | # scripts and configure runs, see configure's option --config-cache. | 
|  | 13928 | # It is not useful on other systems.  If it contains results you don't | 
|  | 13929 | # want to keep, you may remove or edit it. | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13930 | # | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13931 | # config.status only pays attention to the cache file if you give it | 
|  | 13932 | # the --recheck option to rerun configure. | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13933 | # | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13934 | # `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] | 13935 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | 
|  | 13936 | # following values. | 
|  | 13937 |  | 
|  | 13938 | _ACEOF | 
|  | 13939 |  | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 13940 | # The following way of writing the cache mishandles newlines in values, | 
|  | 13941 | # but we know of no workaround that is simple, portable, and efficient. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13942 | # So, we kill variables containing newlines. | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13943 | # Ultrix sh set writes to stderr and can't be redirected directly, | 
|  | 13944 | # 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] | 13945 | ( | 
|  | 13946 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | 
|  | 13947 | eval ac_val=\$$ac_var | 
|  | 13948 | case $ac_val in #( | 
|  | 13949 | *${as_nl}*) | 
|  | 13950 | case $ac_var in #( | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13951 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | 
|  | 13952 | $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] | 13953 | esac | 
|  | 13954 | case $ac_var in #( | 
|  | 13955 | _ | IFS | as_nl) ;; #( | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13956 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | 
|  | 13957 | *) { eval $ac_var=; unset $ac_var;} ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13958 | esac ;; | 
|  | 13959 | esac | 
|  | 13960 | done | 
|  | 13961 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13962 | (set) 2>&1 | | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13963 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | 
|  | 13964 | *${as_nl}ac_space=\ *) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13965 | # `set' does not quote correctly, so add quotes: double-quote | 
|  | 13966 | # substitution turns \\\\ into \\, and sed turns \\ into \. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13967 | sed -n \ | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13968 | "s/'/'\\\\''/g; | 
|  | 13969 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13970 | ;; #( | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13971 | *) | 
|  | 13972 | # `set' quotes correctly as required by POSIX, so do not add quotes. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13973 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13974 | ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13975 | esac | | 
|  | 13976 | sort | 
|  | 13977 | ) | | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13978 | sed ' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13979 | /^ac_cv_env_/b end | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13980 | t clear | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13981 | :clear | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13982 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | 
|  | 13983 | t end | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13984 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | 
|  | 13985 | :end' >>confcache | 
|  | 13986 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | 
|  | 13987 | if test -w "$cache_file"; then | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 13988 | test "x$cache_file" != "x/dev/null" && | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13989 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | 
|  | 13990 | $as_echo "$as_me: updating cache $cache_file" >&6;} | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 13991 | cat confcache >$cache_file | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13992 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13993 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | 
|  | 13994 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13995 | fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13996 | fi | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13997 | rm -f confcache | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13998 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13999 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | 
|  | 14000 | # Let make expand exec_prefix. | 
|  | 14001 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14002 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14003 | DEFS=-DHAVE_CONFIG_H | 
|  | 14004 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14005 | ac_libobjs= | 
|  | 14006 | ac_ltlibobjs= | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 14007 | U= | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14008 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | 
|  | 14009 | # 1. Remove the extension, and $U if already installed. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14010 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14011 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14012 | # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR | 
|  | 14013 | #    will be set to the directory where LIBOBJS objects are built. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14014 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | 
|  | 14015 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14016 | done | 
|  | 14017 | LIBOBJS=$ac_libobjs | 
|  | 14018 |  | 
|  | 14019 | LTLIBOBJS=$ac_ltlibobjs | 
|  | 14020 |  | 
|  | 14021 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14022 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14023 |  | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 14024 | : ${CONFIG_STATUS=./config.status} | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14025 | ac_write_fail=0 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14026 | ac_clean_files_save=$ac_clean_files | 
|  | 14027 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14028 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | 
|  | 14029 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | 
|  | 14030 | as_write_fail=0 | 
|  | 14031 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14032 | #! $SHELL | 
|  | 14033 | # Generated by $as_me. | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14034 | # Run this file to recreate the current configuration. | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14035 | # Compiler output produced by configure, useful for debugging | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14036 | # configure, is in config.log if it exists. | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14037 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14038 | debug=false | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14039 | ac_cs_recheck=false | 
|  | 14040 | ac_cs_silent=false | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 14041 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14042 | SHELL=\${CONFIG_SHELL-$SHELL} | 
|  | 14043 | export SHELL | 
|  | 14044 | _ASEOF | 
|  | 14045 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | 
|  | 14046 | ## -------------------- ## | 
|  | 14047 | ## M4sh Initialization. ## | 
|  | 14048 | ## -------------------- ## | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 14049 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14050 | # Be more Bourne compatible | 
|  | 14051 | DUALCASE=1; export DUALCASE # for MKS sh | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14052 | 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] | 14053 | emulate sh | 
|  | 14054 | NULLCMD=: | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14055 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14056 | # is contrary to our usage.  Disable this feature. | 
|  | 14057 | alias -g '${1+"$@"}'='"$@"' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14058 | setopt NO_GLOB_SUBST | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 14059 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14060 | case `(set -o) 2>/dev/null` in #( | 
|  | 14061 | *posix*) : | 
|  | 14062 | set -o posix ;; #( | 
|  | 14063 | *) : | 
|  | 14064 | ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14065 | esac | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14066 | fi | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 14067 |  | 
|  | 14068 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14069 | as_nl=' | 
|  | 14070 | ' | 
|  | 14071 | export as_nl | 
|  | 14072 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | 
|  | 14073 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | 
|  | 14074 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | 
|  | 14075 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | 
|  | 14076 | # Prefer a ksh shell builtin over an external printf program on Solaris, | 
|  | 14077 | # but without wasting forks for bash or zsh. | 
|  | 14078 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | 
|  | 14079 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | 
|  | 14080 | as_echo='print -r --' | 
|  | 14081 | as_echo_n='print -rn --' | 
|  | 14082 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | 
|  | 14083 | as_echo='printf %s\n' | 
|  | 14084 | as_echo_n='printf %s' | 
|  | 14085 | else | 
|  | 14086 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | 
|  | 14087 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | 
|  | 14088 | as_echo_n='/usr/ucb/echo -n' | 
|  | 14089 | else | 
|  | 14090 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | 
|  | 14091 | as_echo_n_body='eval | 
|  | 14092 | arg=$1; | 
|  | 14093 | case $arg in #( | 
|  | 14094 | *"$as_nl"*) | 
|  | 14095 | expr "X$arg" : "X\\(.*\\)$as_nl"; | 
|  | 14096 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | 
|  | 14097 | esac; | 
|  | 14098 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | 
|  | 14099 | ' | 
|  | 14100 | export as_echo_n_body | 
|  | 14101 | as_echo_n='sh -c $as_echo_n_body as_echo' | 
|  | 14102 | fi | 
|  | 14103 | export as_echo_body | 
|  | 14104 | as_echo='sh -c $as_echo_body as_echo' | 
|  | 14105 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14106 |  | 
|  | 14107 | # The user is always right. | 
|  | 14108 | if test "${PATH_SEPARATOR+set}" != set; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14109 | PATH_SEPARATOR=: | 
|  | 14110 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | 
|  | 14111 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | 
|  | 14112 | PATH_SEPARATOR=';' | 
|  | 14113 | } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14114 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14115 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14116 |  | 
|  | 14117 | # IFS | 
|  | 14118 | # We need space, tab and new line, in precisely that order.  Quoting is | 
|  | 14119 | # there to prevent editors from complaining about space-tab. | 
|  | 14120 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | 
|  | 14121 | # splitting by setting IFS to empty value.) | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14122 | IFS=" ""	$as_nl" | 
|  | 14123 |  | 
|  | 14124 | # Find who we are.  Look in the path if we contain no directory separator. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14125 | case $0 in #(( | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14126 | *[\\/]* ) as_myself=$0 ;; | 
|  | 14127 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14128 | for as_dir in $PATH | 
|  | 14129 | do | 
|  | 14130 | IFS=$as_save_IFS | 
|  | 14131 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14132 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | 
|  | 14133 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14134 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14135 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14136 | ;; | 
|  | 14137 | esac | 
|  | 14138 | # We did not find ourselves, most probably we were run as `sh COMMAND' | 
|  | 14139 | # in which case we are not to be found in the path. | 
|  | 14140 | if test "x$as_myself" = x; then | 
|  | 14141 | as_myself=$0 | 
|  | 14142 | fi | 
|  | 14143 | if test ! -f "$as_myself"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14144 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | 
|  | 14145 | exit 1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14146 | fi | 
|  | 14147 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14148 | # Unset variables that we do not need and which cause bugs (e.g. in | 
|  | 14149 | # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1" | 
|  | 14150 | # suppresses any "Segmentation fault" message there.  '((' could | 
|  | 14151 | # trigger a bug in pdksh 5.2.14. | 
|  | 14152 | for as_var in BASH_ENV ENV MAIL MAILPATH | 
|  | 14153 | do eval test x\${$as_var+set} = xset \ | 
|  | 14154 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14155 | done | 
|  | 14156 | PS1='$ ' | 
|  | 14157 | PS2='> ' | 
|  | 14158 | PS4='+ ' | 
|  | 14159 |  | 
|  | 14160 | # NLS nuisances. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14161 | LC_ALL=C | 
|  | 14162 | export LC_ALL | 
|  | 14163 | LANGUAGE=C | 
|  | 14164 | export LANGUAGE | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14165 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14166 | # CDPATH. | 
|  | 14167 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | 
|  | 14168 |  | 
|  | 14169 |  | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 14170 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | 
|  | 14171 | # ---------------------------------------- | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14172 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | 
|  | 14173 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 14174 | # script with STATUS, using 1 if that was 0. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14175 | as_fn_error () | 
|  | 14176 | { | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 14177 | as_status=$1; test $as_status -eq 0 && as_status=1 | 
|  | 14178 | if test "$4"; then | 
|  | 14179 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 14180 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14181 | fi | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 14182 | $as_echo "$as_me: error: $2" >&2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14183 | as_fn_exit $as_status | 
|  | 14184 | } # as_fn_error | 
|  | 14185 |  | 
|  | 14186 |  | 
|  | 14187 | # as_fn_set_status STATUS | 
|  | 14188 | # ----------------------- | 
|  | 14189 | # Set $? to STATUS, without forking. | 
|  | 14190 | as_fn_set_status () | 
|  | 14191 | { | 
|  | 14192 | return $1 | 
|  | 14193 | } # as_fn_set_status | 
|  | 14194 |  | 
|  | 14195 | # as_fn_exit STATUS | 
|  | 14196 | # ----------------- | 
|  | 14197 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | 
|  | 14198 | as_fn_exit () | 
|  | 14199 | { | 
|  | 14200 | set +e | 
|  | 14201 | as_fn_set_status $1 | 
|  | 14202 | exit $1 | 
|  | 14203 | } # as_fn_exit | 
|  | 14204 |  | 
|  | 14205 | # as_fn_unset VAR | 
|  | 14206 | # --------------- | 
|  | 14207 | # Portably unset VAR. | 
|  | 14208 | as_fn_unset () | 
|  | 14209 | { | 
|  | 14210 | { eval $1=; unset $1;} | 
|  | 14211 | } | 
|  | 14212 | as_unset=as_fn_unset | 
|  | 14213 | # as_fn_append VAR VALUE | 
|  | 14214 | # ---------------------- | 
|  | 14215 | # Append the text in VALUE to the end of the definition contained in VAR. Take | 
|  | 14216 | # advantage of any shell optimizations that allow amortized linear growth over | 
|  | 14217 | # repeated appends, instead of the typical quadratic growth present in naive | 
|  | 14218 | # implementations. | 
|  | 14219 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | 
|  | 14220 | eval 'as_fn_append () | 
|  | 14221 | { | 
|  | 14222 | eval $1+=\$2 | 
|  | 14223 | }' | 
|  | 14224 | else | 
|  | 14225 | as_fn_append () | 
|  | 14226 | { | 
|  | 14227 | eval $1=\$$1\$2 | 
|  | 14228 | } | 
|  | 14229 | fi # as_fn_append | 
|  | 14230 |  | 
|  | 14231 | # as_fn_arith ARG... | 
|  | 14232 | # ------------------ | 
|  | 14233 | # Perform arithmetic evaluation on the ARGs, and store the result in the | 
|  | 14234 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | 
|  | 14235 | # must be portable across $(()) and expr. | 
|  | 14236 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | 
|  | 14237 | eval 'as_fn_arith () | 
|  | 14238 | { | 
|  | 14239 | as_val=$(( $* )) | 
|  | 14240 | }' | 
|  | 14241 | else | 
|  | 14242 | as_fn_arith () | 
|  | 14243 | { | 
|  | 14244 | as_val=`expr "$@" || test $? -eq 1` | 
|  | 14245 | } | 
|  | 14246 | fi # as_fn_arith | 
|  | 14247 |  | 
|  | 14248 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14249 | if expr a : '\(a\)' >/dev/null 2>&1 && | 
|  | 14250 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | 
|  | 14251 | as_expr=expr | 
|  | 14252 | else | 
|  | 14253 | as_expr=false | 
|  | 14254 | fi | 
|  | 14255 |  | 
|  | 14256 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | 
|  | 14257 | as_basename=basename | 
|  | 14258 | else | 
|  | 14259 | as_basename=false | 
|  | 14260 | fi | 
|  | 14261 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14262 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | 
|  | 14263 | as_dirname=dirname | 
|  | 14264 | else | 
|  | 14265 | as_dirname=false | 
|  | 14266 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14267 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14268 | as_me=`$as_basename -- "$0" || | 
|  | 14269 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | 
|  | 14270 | X"$0" : 'X\(//\)$' \| \ | 
|  | 14271 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14272 | $as_echo X/"$0" | | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14273 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | 
|  | 14274 | s//\1/ | 
|  | 14275 | q | 
|  | 14276 | } | 
|  | 14277 | /^X\/\(\/\/\)$/{ | 
|  | 14278 | s//\1/ | 
|  | 14279 | q | 
|  | 14280 | } | 
|  | 14281 | /^X\/\(\/\).*/{ | 
|  | 14282 | s//\1/ | 
|  | 14283 | q | 
|  | 14284 | } | 
|  | 14285 | s/.*/./; q'` | 
|  | 14286 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14287 | # Avoid depending upon Character Ranges. | 
|  | 14288 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | 
|  | 14289 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | 
|  | 14290 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | 
|  | 14291 | as_cr_digits='0123456789' | 
|  | 14292 | as_cr_alnum=$as_cr_Letters$as_cr_digits | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14293 |  | 
|  | 14294 | ECHO_C= ECHO_N= ECHO_T= | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14295 | case `echo -n x` in #((((( | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14296 | -n*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14297 | case `echo 'xy\c'` in | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14298 | *c*) ECHO_T='	';;	# ECHO_T is single tab character. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14299 | xy)  ECHO_C='\c';; | 
|  | 14300 | *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null | 
|  | 14301 | ECHO_T='	';; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14302 | esac;; | 
|  | 14303 | *) | 
|  | 14304 | ECHO_N='-n';; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14305 | esac | 
| Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 14306 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14307 | rm -f conf$$ conf$$.exe conf$$.file | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14308 | if test -d conf$$.dir; then | 
|  | 14309 | rm -f conf$$.dir/conf$$.file | 
|  | 14310 | else | 
|  | 14311 | rm -f conf$$.dir | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14312 | mkdir conf$$.dir 2>/dev/null | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14313 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14314 | if (echo >conf$$.file) 2>/dev/null; then | 
|  | 14315 | if ln -s conf$$.file conf$$ 2>/dev/null; then | 
|  | 14316 | as_ln_s='ln -s' | 
|  | 14317 | # ... but there are two gotchas: | 
|  | 14318 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | 
|  | 14319 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | 
|  | 14320 | # In both cases, we have to default to `cp -p'. | 
|  | 14321 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | 
|  | 14322 | as_ln_s='cp -p' | 
|  | 14323 | elif ln conf$$.file conf$$ 2>/dev/null; then | 
|  | 14324 | as_ln_s=ln | 
|  | 14325 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14326 | as_ln_s='cp -p' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14327 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14328 | else | 
|  | 14329 | as_ln_s='cp -p' | 
|  | 14330 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14331 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | 
|  | 14332 | rmdir conf$$.dir 2>/dev/null | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14333 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14334 |  | 
|  | 14335 | # as_fn_mkdir_p | 
|  | 14336 | # ------------- | 
|  | 14337 | # Create "$as_dir" as a directory, including parents if necessary. | 
|  | 14338 | as_fn_mkdir_p () | 
|  | 14339 | { | 
|  | 14340 |  | 
|  | 14341 | case $as_dir in #( | 
|  | 14342 | -*) as_dir=./$as_dir;; | 
|  | 14343 | esac | 
|  | 14344 | test -d "$as_dir" || eval $as_mkdir_p || { | 
|  | 14345 | as_dirs= | 
|  | 14346 | while :; do | 
|  | 14347 | case $as_dir in #( | 
|  | 14348 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | 
|  | 14349 | *) as_qdir=$as_dir;; | 
|  | 14350 | esac | 
|  | 14351 | as_dirs="'$as_qdir' $as_dirs" | 
|  | 14352 | as_dir=`$as_dirname -- "$as_dir" || | 
|  | 14353 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
|  | 14354 | X"$as_dir" : 'X\(//\)[^/]' \| \ | 
|  | 14355 | X"$as_dir" : 'X\(//\)$' \| \ | 
|  | 14356 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | 
|  | 14357 | $as_echo X"$as_dir" | | 
|  | 14358 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
|  | 14359 | s//\1/ | 
|  | 14360 | q | 
|  | 14361 | } | 
|  | 14362 | /^X\(\/\/\)[^/].*/{ | 
|  | 14363 | s//\1/ | 
|  | 14364 | q | 
|  | 14365 | } | 
|  | 14366 | /^X\(\/\/\)$/{ | 
|  | 14367 | s//\1/ | 
|  | 14368 | q | 
|  | 14369 | } | 
|  | 14370 | /^X\(\/\).*/{ | 
|  | 14371 | s//\1/ | 
|  | 14372 | q | 
|  | 14373 | } | 
|  | 14374 | s/.*/./; q'` | 
|  | 14375 | test -d "$as_dir" && break | 
|  | 14376 | done | 
|  | 14377 | test -z "$as_dirs" || eval "mkdir $as_dirs" | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 14378 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14379 |  | 
|  | 14380 |  | 
|  | 14381 | } # as_fn_mkdir_p | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14382 | if mkdir -p . 2>/dev/null; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14383 | as_mkdir_p='mkdir -p "$as_dir"' | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14384 | else | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14385 | test -d ./-p && rmdir ./-p | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14386 | as_mkdir_p=false | 
|  | 14387 | fi | 
|  | 14388 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14389 | if test -x / >/dev/null 2>&1; then | 
|  | 14390 | as_test_x='test -x' | 
|  | 14391 | else | 
|  | 14392 | if ls -dL / >/dev/null 2>&1; then | 
|  | 14393 | as_ls_L_option=L | 
|  | 14394 | else | 
|  | 14395 | as_ls_L_option= | 
|  | 14396 | fi | 
|  | 14397 | as_test_x=' | 
|  | 14398 | eval sh -c '\'' | 
|  | 14399 | if test -d "$1"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14400 | test -d "$1/."; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14401 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14402 | case $1 in #( | 
|  | 14403 | -*)set "./$1";; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14404 | esac; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14405 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14406 | ???[sx]*):;;*)false;;esac;fi | 
|  | 14407 | '\'' sh | 
|  | 14408 | ' | 
|  | 14409 | fi | 
|  | 14410 | as_executable_p=$as_test_x | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14411 |  | 
|  | 14412 | # Sed expression to map a string onto a valid CPP name. | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14413 | 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] | 14414 |  | 
|  | 14415 | # Sed expression to map a string onto a valid variable name. | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14416 | 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] | 14417 |  | 
|  | 14418 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14419 | exec 6>&1 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14420 | ## ----------------------------------- ## | 
|  | 14421 | ## Main body of $CONFIG_STATUS script. ## | 
|  | 14422 | ## ----------------------------------- ## | 
|  | 14423 | _ASEOF | 
|  | 14424 | 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] | 14425 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14426 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
|  | 14427 | # 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] | 14428 | # report actual input values of CONFIG_FILES etc. instead of their | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14429 | # values after options handling. | 
|  | 14430 | ac_log=" | 
| Benjamin Peterson | 46ea4f7 | 2009-06-27 21:40:27 +0000 | [diff] [blame] | 14431 | This file was extended by python $as_me 3.2, which was | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 14432 | generated by GNU Autoconf 2.67.  Invocation command line was | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14433 |  | 
|  | 14434 | CONFIG_FILES    = $CONFIG_FILES | 
|  | 14435 | CONFIG_HEADERS  = $CONFIG_HEADERS | 
|  | 14436 | CONFIG_LINKS    = $CONFIG_LINKS | 
|  | 14437 | CONFIG_COMMANDS = $CONFIG_COMMANDS | 
|  | 14438 | $ $0 $@ | 
|  | 14439 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14440 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | 
|  | 14441 | " | 
|  | 14442 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14443 | _ACEOF | 
|  | 14444 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14445 | case $ac_config_files in *" | 
|  | 14446 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | 
|  | 14447 | esac | 
|  | 14448 |  | 
|  | 14449 | case $ac_config_headers in *" | 
|  | 14450 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | 
|  | 14451 | esac | 
|  | 14452 |  | 
|  | 14453 |  | 
|  | 14454 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14455 | # Files that config.status was made for. | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 14456 | config_files="$ac_config_files" | 
|  | 14457 | config_headers="$ac_config_headers" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14458 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14459 | _ACEOF | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14460 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14461 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14462 | ac_cs_usage="\ | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14463 | \`$as_me' instantiates files and other configuration actions | 
|  | 14464 | from templates according to the current configuration.  Unless the files | 
|  | 14465 | 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] | 14466 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14467 | Usage: $0 [OPTION]... [TAG]... | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14468 |  | 
|  | 14469 | -h, --help       print this help, then exit | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14470 | -V, --version    print version number and configuration settings, then exit | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14471 | --config     print configuration, then exit | 
|  | 14472 | -q, --quiet, --silent | 
|  | 14473 | do not print progress messages | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14474 | -d, --debug      don't remove temporary files | 
|  | 14475 | --recheck    update $as_me by reconfiguring in the same conditions | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14476 | --file=FILE[:TEMPLATE] | 
|  | 14477 | instantiate the configuration file FILE | 
|  | 14478 | --header=FILE[:TEMPLATE] | 
|  | 14479 | instantiate the configuration header FILE | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14480 |  | 
|  | 14481 | Configuration files: | 
|  | 14482 | $config_files | 
|  | 14483 |  | 
|  | 14484 | Configuration headers: | 
|  | 14485 | $config_headers | 
|  | 14486 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14487 | Report bugs to <http://bugs.python.org/>." | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 14488 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14489 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14490 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
|  | 14491 | 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] | 14492 | ac_cs_version="\\ | 
| Benjamin Peterson | 46ea4f7 | 2009-06-27 21:40:27 +0000 | [diff] [blame] | 14493 | python config.status 3.2 | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 14494 | configured by $0, generated by GNU Autoconf 2.67, | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14495 | with options \\"\$ac_cs_config\\" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14496 |  | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 14497 | Copyright (C) 2010 Free Software Foundation, Inc. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14498 | This config.status script is free software; the Free Software Foundation | 
|  | 14499 | gives unlimited permission to copy, distribute and modify it." | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14500 |  | 
|  | 14501 | ac_pwd='$ac_pwd' | 
|  | 14502 | srcdir='$srcdir' | 
|  | 14503 | INSTALL='$INSTALL' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14504 | test -n "\$AWK" || AWK=awk | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14505 | _ACEOF | 
|  | 14506 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14507 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
|  | 14508 | # 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] | 14509 | ac_need_defaults=: | 
|  | 14510 | while test $# != 0 | 
|  | 14511 | do | 
|  | 14512 | case $1 in | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 14513 | --*=?*) | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14514 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | 
|  | 14515 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14516 | ac_shift=: | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14517 | ;; | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 14518 | --*=) | 
|  | 14519 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | 
|  | 14520 | ac_optarg= | 
|  | 14521 | ac_shift=: | 
|  | 14522 | ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14523 | *) | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14524 | ac_option=$1 | 
|  | 14525 | ac_optarg=$2 | 
|  | 14526 | ac_shift=shift | 
|  | 14527 | ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14528 | esac | 
|  | 14529 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14530 | case $ac_option in | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14531 | # Handling of the options. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14532 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | 
|  | 14533 | ac_cs_recheck=: ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14534 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14535 | $as_echo "$ac_cs_version"; exit ;; | 
|  | 14536 | --config | --confi | --conf | --con | --co | --c ) | 
|  | 14537 | $as_echo "$ac_cs_config"; exit ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14538 | --debug | --debu | --deb | --de | --d | -d ) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14539 | debug=: ;; | 
|  | 14540 | --file | --fil | --fi | --f ) | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14541 | $ac_shift | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14542 | case $ac_optarg in | 
|  | 14543 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 14544 | '') as_fn_error $? "missing file argument" ;; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14545 | esac | 
|  | 14546 | as_fn_append CONFIG_FILES " '$ac_optarg'" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14547 | ac_need_defaults=false;; | 
|  | 14548 | --header | --heade | --head | --hea ) | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14549 | $ac_shift | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14550 | case $ac_optarg in | 
|  | 14551 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | 
|  | 14552 | esac | 
|  | 14553 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14554 | ac_need_defaults=false;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14555 | --he | --h) | 
|  | 14556 | # Conflict between --help and --header | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 14557 | as_fn_error $? "ambiguous option: \`$1' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14558 | Try \`$0 --help' for more information.";; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14559 | --help | --hel | -h ) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14560 | $as_echo "$ac_cs_usage"; exit ;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14561 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
|  | 14562 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | 
|  | 14563 | ac_cs_silent=: ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14564 |  | 
|  | 14565 | # This is an error. | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 14566 | -*) as_fn_error $? "unrecognized option: \`$1' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14567 | Try \`$0 --help' for more information." ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14568 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14569 | *) as_fn_append ac_config_targets " $1" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14570 | ac_need_defaults=false ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14571 |  | 
|  | 14572 | esac | 
|  | 14573 | shift | 
|  | 14574 | done | 
|  | 14575 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14576 | ac_configure_extra_args= | 
|  | 14577 |  | 
|  | 14578 | if $ac_cs_silent; then | 
|  | 14579 | exec 6>/dev/null | 
|  | 14580 | ac_configure_extra_args="$ac_configure_extra_args --silent" | 
|  | 14581 | fi | 
|  | 14582 |  | 
|  | 14583 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14584 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14585 | if \$ac_cs_recheck; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14586 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | 
|  | 14587 | shift | 
|  | 14588 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | 
|  | 14589 | CONFIG_SHELL='$SHELL' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14590 | export CONFIG_SHELL | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14591 | exec "\$@" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14592 | fi | 
|  | 14593 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14594 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14595 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14596 | exec 5>>config.log | 
|  | 14597 | { | 
|  | 14598 | echo | 
|  | 14599 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | 
|  | 14600 | ## Running $as_me. ## | 
|  | 14601 | _ASBOX | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14602 | $as_echo "$ac_log" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14603 | } >&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14604 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14605 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14606 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14607 | _ACEOF | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14608 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14609 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14610 |  | 
|  | 14611 | # Handling of arguments. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14612 | for ac_config_target in $ac_config_targets | 
|  | 14613 | do | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14614 | case $ac_config_target in | 
|  | 14615 | "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; | 
|  | 14616 | "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;; | 
|  | 14617 | "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;; | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14618 | "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;; | 
|  | 14619 | "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] | 14620 | "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; | 
|  | 14621 | "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;; | 
| Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14622 | "Misc/python.pc") CONFIG_FILES="$CONFIG_FILES Misc/python.pc" ;; | 
| Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 14623 | "Modules/ld_so_aix") CONFIG_FILES="$CONFIG_FILES Modules/ld_so_aix" ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14624 |  | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 14625 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14626 | esac | 
|  | 14627 | done | 
|  | 14628 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14629 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14630 | # If the user did not use the arguments to specify the items to instantiate, | 
|  | 14631 | # then the envvar interface is used.  Set only those that are not. | 
|  | 14632 | # We use the long form for the default assignment because of an extremely | 
|  | 14633 | # bizarre bug on SunOS 4.1.3. | 
|  | 14634 | if $ac_need_defaults; then | 
|  | 14635 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | 
|  | 14636 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | 
|  | 14637 | fi | 
|  | 14638 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14639 | # Have a temporary directory for convenience.  Make it in the build tree | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14640 | # 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] | 14641 | # creating and moving files from /tmp can sometimes cause problems. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14642 | # Hook for its removal unless debugging. | 
|  | 14643 | # Note that there is a small window in which the directory will not be cleaned: | 
|  | 14644 | # 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] | 14645 | $debug || | 
|  | 14646 | { | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 14647 | tmp= | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14648 | trap 'exit_status=$? | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 14649 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14650 | ' 0 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14651 | trap 'as_fn_exit 1' 1 2 13 15 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14652 | } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14653 | # Create a (secure) tmp directory for tmp files. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14654 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14655 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14656 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 14657 | test -n "$tmp" && test -d "$tmp" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14658 | }  || | 
|  | 14659 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14660 | tmp=./conf$$-$RANDOM | 
|  | 14661 | (umask 077 && mkdir "$tmp") | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 14662 | } || 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] | 14663 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14664 | # Set up the scripts for CONFIG_FILES section. | 
|  | 14665 | # No need to generate them if there are no CONFIG_FILES. | 
|  | 14666 | # This happens for instance with `./config.status config.h'. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14667 | if test -n "$CONFIG_FILES"; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14668 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14669 |  | 
|  | 14670 | ac_cr=`echo X | tr X '\015'` | 
|  | 14671 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | 
|  | 14672 | # But we know of no other shell where ac_cr would be empty at this | 
|  | 14673 | # point, so we can use a bashism as a fallback. | 
|  | 14674 | if test "x$ac_cr" = x; then | 
|  | 14675 | eval ac_cr=\$\'\\r\' | 
|  | 14676 | fi | 
|  | 14677 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | 
|  | 14678 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 14679 | ac_cs_awk_cr='\\r' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14680 | else | 
|  | 14681 | ac_cs_awk_cr=$ac_cr | 
|  | 14682 | fi | 
|  | 14683 |  | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 14684 | echo 'BEGIN {' >"$tmp/subs1.awk" && | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14685 | _ACEOF | 
|  | 14686 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14687 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14688 | { | 
|  | 14689 | echo "cat >conf$$subs.awk <<_ACEOF" && | 
|  | 14690 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | 
|  | 14691 | echo "_ACEOF" | 
|  | 14692 | } >conf$$subs.sh || | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 14693 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | 
|  | 14694 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14695 | ac_delim='%!_!# ' | 
|  | 14696 | for ac_last_try in false false false false false :; do | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14697 | . ./conf$$subs.sh || | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 14698 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14699 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14700 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | 
|  | 14701 | if test $ac_delim_n = $ac_delim_num; then | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14702 | break | 
|  | 14703 | elif $ac_last_try; then | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 14704 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14705 | else | 
|  | 14706 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14707 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14708 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14709 | rm -f conf$$subs.sh | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14710 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14711 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 14712 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14713 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14714 | sed -n ' | 
|  | 14715 | h | 
|  | 14716 | s/^/S["/; s/!.*/"]=/ | 
|  | 14717 | p | 
|  | 14718 | g | 
|  | 14719 | s/^[^!]*!// | 
|  | 14720 | :repl | 
|  | 14721 | t repl | 
|  | 14722 | s/'"$ac_delim"'$// | 
|  | 14723 | t delim | 
|  | 14724 | :nl | 
|  | 14725 | h | 
|  | 14726 | s/\(.\{148\}\)..*/\1/ | 
|  | 14727 | t more1 | 
|  | 14728 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | 
|  | 14729 | p | 
|  | 14730 | n | 
|  | 14731 | b repl | 
|  | 14732 | :more1 | 
|  | 14733 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | 
|  | 14734 | p | 
|  | 14735 | g | 
|  | 14736 | s/.\{148\}// | 
|  | 14737 | t nl | 
|  | 14738 | :delim | 
|  | 14739 | h | 
|  | 14740 | s/\(.\{148\}\)..*/\1/ | 
|  | 14741 | t more2 | 
|  | 14742 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | 
|  | 14743 | p | 
|  | 14744 | b | 
|  | 14745 | :more2 | 
|  | 14746 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | 
|  | 14747 | p | 
|  | 14748 | g | 
|  | 14749 | s/.\{148\}// | 
|  | 14750 | t delim | 
|  | 14751 | ' <conf$$subs.awk | sed ' | 
|  | 14752 | /^[^""]/{ | 
|  | 14753 | N | 
|  | 14754 | s/\n// | 
|  | 14755 | } | 
|  | 14756 | ' >>$CONFIG_STATUS || ac_write_fail=1 | 
|  | 14757 | rm -f conf$$subs.awk | 
|  | 14758 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
|  | 14759 | _ACAWK | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 14760 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14761 | for (key in S) S_is_set[key] = 1 | 
|  | 14762 | FS = "" | 
|  | 14763 |  | 
|  | 14764 | } | 
|  | 14765 | { | 
|  | 14766 | line = $ 0 | 
|  | 14767 | nfields = split(line, field, "@") | 
|  | 14768 | substed = 0 | 
|  | 14769 | len = length(field[1]) | 
|  | 14770 | for (i = 2; i < nfields; i++) { | 
|  | 14771 | key = field[i] | 
|  | 14772 | keylen = length(key) | 
|  | 14773 | if (S_is_set[key]) { | 
|  | 14774 | value = S[key] | 
|  | 14775 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | 
|  | 14776 | len += length(value) + length(field[++i]) | 
|  | 14777 | substed = 1 | 
|  | 14778 | } else | 
|  | 14779 | len += 1 + keylen | 
|  | 14780 | } | 
|  | 14781 |  | 
|  | 14782 | print line | 
|  | 14783 | } | 
|  | 14784 |  | 
|  | 14785 | _ACAWK | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14786 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14787 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
|  | 14788 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | 
|  | 14789 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | 
|  | 14790 | else | 
|  | 14791 | cat | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 14792 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 14793 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | 
| Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 14794 | _ACEOF | 
|  | 14795 |  | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 14796 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), | 
|  | 14797 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14798 | # trailing colons and then remove the whole line if VPATH becomes empty | 
|  | 14799 | # (actually we leave an empty line to preserve line numbers). | 
|  | 14800 | if test "x$srcdir" = x.; then | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 14801 | ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{ | 
|  | 14802 | h | 
|  | 14803 | s/// | 
|  | 14804 | s/^/:/ | 
|  | 14805 | s/[	 ]*$/:/ | 
|  | 14806 | s/:\$(srcdir):/:/g | 
|  | 14807 | s/:\${srcdir}:/:/g | 
|  | 14808 | s/:@srcdir@:/:/g | 
|  | 14809 | s/^:*// | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14810 | s/:*$// | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 14811 | x | 
|  | 14812 | s/\(=[	 ]*\).*/\1/ | 
|  | 14813 | G | 
|  | 14814 | s/\n// | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14815 | s/^[^=]*=[	 ]*$// | 
|  | 14816 | }' | 
|  | 14817 | fi | 
|  | 14818 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14819 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14820 | fi # test -n "$CONFIG_FILES" | 
|  | 14821 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14822 | # Set up the scripts for CONFIG_HEADERS section. | 
|  | 14823 | # No need to generate them if there are no CONFIG_HEADERS. | 
|  | 14824 | # This happens for instance with `./config.status Makefile'. | 
|  | 14825 | if test -n "$CONFIG_HEADERS"; then | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 14826 | cat >"$tmp/defines.awk" <<\_ACAWK || | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14827 | BEGIN { | 
|  | 14828 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14829 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14830 | # Transform confdefs.h into an awk script `defines.awk', embedded as | 
|  | 14831 | # here-document in config.status, that substitutes the proper values into | 
|  | 14832 | # config.h.in to produce config.h. | 
|  | 14833 |  | 
|  | 14834 | # Create a delimiter string that does not exist in confdefs.h, to ease | 
|  | 14835 | # handling of long lines. | 
|  | 14836 | ac_delim='%!_!# ' | 
|  | 14837 | for ac_last_try in false false :; do | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 14838 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | 
|  | 14839 | if test -z "$ac_t"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14840 | break | 
|  | 14841 | elif $ac_last_try; then | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 14842 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14843 | else | 
|  | 14844 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | 
|  | 14845 | fi | 
|  | 14846 | done | 
|  | 14847 |  | 
|  | 14848 | # For the awk script, D is an array of macro values keyed by name, | 
|  | 14849 | # likewise P contains macro parameters if any.  Preserve backslash | 
|  | 14850 | # newline sequences. | 
|  | 14851 |  | 
|  | 14852 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | 
|  | 14853 | sed -n ' | 
|  | 14854 | s/.\{148\}/&'"$ac_delim"'/g | 
|  | 14855 | t rset | 
|  | 14856 | :rset | 
|  | 14857 | s/^[	 ]*#[	 ]*define[	 ][	 ]*/ / | 
|  | 14858 | t def | 
|  | 14859 | d | 
|  | 14860 | :def | 
|  | 14861 | s/\\$// | 
|  | 14862 | t bsnl | 
|  | 14863 | s/["\\]/\\&/g | 
|  | 14864 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\ | 
|  | 14865 | D["\1"]=" \3"/p | 
|  | 14866 | s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p | 
|  | 14867 | d | 
|  | 14868 | :bsnl | 
|  | 14869 | s/["\\]/\\&/g | 
|  | 14870 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\ | 
|  | 14871 | D["\1"]=" \3\\\\\\n"\\/p | 
|  | 14872 | t cont | 
|  | 14873 | s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | 
|  | 14874 | t cont | 
|  | 14875 | d | 
|  | 14876 | :cont | 
|  | 14877 | n | 
|  | 14878 | s/.\{148\}/&'"$ac_delim"'/g | 
|  | 14879 | t clear | 
|  | 14880 | :clear | 
|  | 14881 | s/\\$// | 
|  | 14882 | t bsnlc | 
|  | 14883 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | 
|  | 14884 | d | 
|  | 14885 | :bsnlc | 
|  | 14886 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | 
|  | 14887 | b cont | 
|  | 14888 | ' <confdefs.h | sed ' | 
|  | 14889 | s/'"$ac_delim"'/"\\\ | 
|  | 14890 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | 
|  | 14891 |  | 
|  | 14892 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
|  | 14893 | for (key in D) D_is_set[key] = 1 | 
|  | 14894 | FS = "" | 
|  | 14895 | } | 
|  | 14896 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | 
|  | 14897 | line = \$ 0 | 
|  | 14898 | split(line, arg, " ") | 
|  | 14899 | if (arg[1] == "#") { | 
|  | 14900 | defundef = arg[2] | 
|  | 14901 | mac1 = arg[3] | 
|  | 14902 | } else { | 
|  | 14903 | defundef = substr(arg[1], 2) | 
|  | 14904 | mac1 = arg[2] | 
|  | 14905 | } | 
|  | 14906 | split(mac1, mac2, "(") #) | 
|  | 14907 | macro = mac2[1] | 
|  | 14908 | prefix = substr(line, 1, index(line, defundef) - 1) | 
|  | 14909 | if (D_is_set[macro]) { | 
|  | 14910 | # Preserve the white space surrounding the "#". | 
|  | 14911 | print prefix "define", macro P[macro] D[macro] | 
|  | 14912 | next | 
|  | 14913 | } else { | 
|  | 14914 | # Replace #undef with comments.  This is necessary, for example, | 
|  | 14915 | # in the case of _POSIX_SOURCE, which is predefined and required | 
|  | 14916 | # on some systems where configure will not decide to define it. | 
|  | 14917 | if (defundef == "undef") { | 
|  | 14918 | print "/*", prefix defundef, macro, "*/" | 
|  | 14919 | next | 
|  | 14920 | } | 
|  | 14921 | } | 
|  | 14922 | } | 
|  | 14923 | { print } | 
|  | 14924 | _ACAWK | 
|  | 14925 | _ACEOF | 
|  | 14926 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 14927 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14928 | fi # test -n "$CONFIG_HEADERS" | 
|  | 14929 |  | 
|  | 14930 |  | 
|  | 14931 | eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    " | 
|  | 14932 | shift | 
|  | 14933 | for ac_tag | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14934 | do | 
|  | 14935 | case $ac_tag in | 
|  | 14936 | :[FHLC]) ac_mode=$ac_tag; continue;; | 
|  | 14937 | esac | 
|  | 14938 | case $ac_mode$ac_tag in | 
|  | 14939 | :[FHL]*:*);; | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 14940 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14941 | :[FH]-) ac_tag=-:-;; | 
|  | 14942 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | 
|  | 14943 | esac | 
|  | 14944 | ac_save_IFS=$IFS | 
|  | 14945 | IFS=: | 
|  | 14946 | set x $ac_tag | 
|  | 14947 | IFS=$ac_save_IFS | 
|  | 14948 | shift | 
|  | 14949 | ac_file=$1 | 
|  | 14950 | shift | 
|  | 14951 |  | 
|  | 14952 | case $ac_mode in | 
|  | 14953 | :L) ac_source=$1;; | 
|  | 14954 | :[FH]) | 
|  | 14955 | ac_file_inputs= | 
|  | 14956 | for ac_f | 
|  | 14957 | do | 
|  | 14958 | case $ac_f in | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 14959 | -) ac_f="$tmp/stdin";; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14960 | *) # Look for the file first in the build tree, then in the source tree | 
|  | 14961 | # (if the path is not absolute).  The absolute path cannot be DOS-style, | 
|  | 14962 | # because $ac_f cannot contain `:'. | 
|  | 14963 | test -f "$ac_f" || | 
|  | 14964 | case $ac_f in | 
|  | 14965 | [\\/$]*) false;; | 
|  | 14966 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | 
|  | 14967 | esac || | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 14968 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14969 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14970 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | 
|  | 14971 | as_fn_append ac_file_inputs " '$ac_f'" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14972 | done | 
|  | 14973 |  | 
|  | 14974 | # Let's still pretend it is `configure' which instantiates (i.e., don't | 
|  | 14975 | # use $as_me), people would be surprised to read: | 
|  | 14976 | #    /* config.h.  Generated by config.status.  */ | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14977 | configure_input='Generated from '` | 
|  | 14978 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | 
|  | 14979 | `' by configure.' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14980 | if test x"$ac_file" != x-; then | 
|  | 14981 | configure_input="$ac_file.  $configure_input" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14982 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | 
|  | 14983 | $as_echo "$as_me: creating $ac_file" >&6;} | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14984 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14985 | # Neutralize special characters interpreted by sed in replacement strings. | 
|  | 14986 | case $configure_input in #( | 
|  | 14987 | *\&* | *\|* | *\\* ) | 
|  | 14988 | ac_sed_conf_input=`$as_echo "$configure_input" | | 
|  | 14989 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | 
|  | 14990 | *) ac_sed_conf_input=$configure_input;; | 
|  | 14991 | esac | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14992 |  | 
|  | 14993 | case $ac_tag in | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 14994 | *:-:* | *:-) cat >"$tmp/stdin" \ | 
|  | 14995 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14996 | esac | 
|  | 14997 | ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14998 | esac | 
|  | 14999 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15000 | ac_dir=`$as_dirname -- "$ac_file" || | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15001 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15002 | X"$ac_file" : 'X\(//\)[^/]' \| \ | 
|  | 15003 | X"$ac_file" : 'X\(//\)$' \| \ | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15004 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15005 | $as_echo X"$ac_file" | | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15006 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
|  | 15007 | s//\1/ | 
|  | 15008 | q | 
|  | 15009 | } | 
|  | 15010 | /^X\(\/\/\)[^/].*/{ | 
|  | 15011 | s//\1/ | 
|  | 15012 | q | 
|  | 15013 | } | 
|  | 15014 | /^X\(\/\/\)$/{ | 
|  | 15015 | s//\1/ | 
|  | 15016 | q | 
|  | 15017 | } | 
|  | 15018 | /^X\(\/\).*/{ | 
|  | 15019 | s//\1/ | 
|  | 15020 | q | 
|  | 15021 | } | 
|  | 15022 | s/.*/./; q'` | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15023 | as_dir="$ac_dir"; as_fn_mkdir_p | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15024 | ac_builddir=. | 
|  | 15025 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15026 | case "$ac_dir" in | 
|  | 15027 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
|  | 15028 | *) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15029 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15030 | # A ".." for each directory in $ac_dir_suffix. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15031 | 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] | 15032 | case $ac_top_builddir_sub in | 
|  | 15033 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
|  | 15034 | *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;; | 
|  | 15035 | esac ;; | 
|  | 15036 | esac | 
|  | 15037 | ac_abs_top_builddir=$ac_pwd | 
|  | 15038 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | 
|  | 15039 | # for backward compatibility: | 
|  | 15040 | ac_top_builddir=$ac_top_build_prefix | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15041 |  | 
|  | 15042 | case $srcdir in | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15043 | .)  # We are building in place. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15044 | ac_srcdir=. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15045 | ac_top_srcdir=$ac_top_builddir_sub | 
|  | 15046 | ac_abs_top_srcdir=$ac_pwd ;; | 
|  | 15047 | [\\/]* | ?:[\\/]* )  # Absolute name. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15048 | ac_srcdir=$srcdir$ac_dir_suffix; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15049 | ac_top_srcdir=$srcdir | 
|  | 15050 | ac_abs_top_srcdir=$srcdir ;; | 
|  | 15051 | *) # Relative name. | 
|  | 15052 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | 
|  | 15053 | ac_top_srcdir=$ac_top_build_prefix$srcdir | 
|  | 15054 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15055 | esac | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15056 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15057 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15058 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15059 | case $ac_mode in | 
|  | 15060 | :F) | 
|  | 15061 | # | 
|  | 15062 | # CONFIG_FILE | 
|  | 15063 | # | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15064 |  | 
|  | 15065 | case $INSTALL in | 
|  | 15066 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15067 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15068 | esac | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15069 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15070 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15071 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15072 | # If the template does not know about datarootdir, expand it. | 
|  | 15073 | # FIXME: This hack should be removed a few years after 2.60. | 
|  | 15074 | ac_datarootdir_hack=; ac_datarootdir_seen= | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15075 | ac_sed_dataroot=' | 
|  | 15076 | /datarootdir/ { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15077 | p | 
|  | 15078 | q | 
|  | 15079 | } | 
|  | 15080 | /@datadir@/p | 
|  | 15081 | /@docdir@/p | 
|  | 15082 | /@infodir@/p | 
|  | 15083 | /@localedir@/p | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15084 | /@mandir@/p' | 
|  | 15085 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15086 | *datarootdir*) ac_datarootdir_seen=yes;; | 
|  | 15087 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15088 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | 
|  | 15089 | $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] | 15090 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15091 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15092 | ac_datarootdir_hack=' | 
|  | 15093 | s&@datadir@&$datadir&g | 
|  | 15094 | s&@docdir@&$docdir&g | 
|  | 15095 | s&@infodir@&$infodir&g | 
|  | 15096 | s&@localedir@&$localedir&g | 
|  | 15097 | s&@mandir@&$mandir&g | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15098 | s&\\\${datarootdir}&$datarootdir&g' ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15099 | esac | 
|  | 15100 | _ACEOF | 
|  | 15101 |  | 
|  | 15102 | # Neutralize VPATH when `$srcdir' = `.'. | 
|  | 15103 | # Shell code in configure.ac might set extrasub. | 
|  | 15104 | # FIXME: do we really want to maintain this feature? | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15105 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
|  | 15106 | ac_sed_extra="$ac_vpsub | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15107 | $extrasub | 
|  | 15108 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15109 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15110 | :t | 
|  | 15111 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15112 | s|@configure_input@|$ac_sed_conf_input|;t t | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15113 | s&@top_builddir@&$ac_top_builddir_sub&;t t | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15114 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15115 | s&@srcdir@&$ac_srcdir&;t t | 
|  | 15116 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | 
|  | 15117 | s&@top_srcdir@&$ac_top_srcdir&;t t | 
|  | 15118 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | 
|  | 15119 | s&@builddir@&$ac_builddir&;t t | 
|  | 15120 | s&@abs_builddir@&$ac_abs_builddir&;t t | 
|  | 15121 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | 
|  | 15122 | s&@INSTALL@&$ac_INSTALL&;t t | 
|  | 15123 | $ac_datarootdir_hack | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15124 | " | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 15125 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | 
|  | 15126 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15127 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15128 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 15129 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | 
|  | 15130 | { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15131 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 15132 | which seems to be undefined.  Please make sure it is defined" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15133 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 15134 | which seems to be undefined.  Please make sure it is defined" >&2;} | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 15135 |  | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 15136 | rm -f "$tmp/stdin" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15137 | case $ac_file in | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 15138 | -) cat "$tmp/out" && rm -f "$tmp/out";; | 
|  | 15139 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15140 | esac \ | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 15141 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15142 | ;; | 
|  | 15143 | :H) | 
|  | 15144 | # | 
|  | 15145 | # CONFIG_HEADER | 
|  | 15146 | # | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15147 | if test x"$ac_file" != x-; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15148 | { | 
|  | 15149 | $as_echo "/* $configure_input  */" \ | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 15150 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | 
|  | 15151 | } >"$tmp/config.h" \ | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 15152 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 15153 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15154 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | 
|  | 15155 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15156 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15157 | rm -f "$ac_file" | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 15158 | mv "$tmp/config.h" "$ac_file" \ | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 15159 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15160 | fi | 
|  | 15161 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15162 | $as_echo "/* $configure_input  */" \ | 
| Charles-François Natali | beed47e | 2011-07-22 23:48:44 +0200 | [diff] [blame] | 15163 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 15164 | || as_fn_error $? "could not create -" "$LINENO" 5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15165 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15166 | ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15167 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15168 |  | 
|  | 15169 | esac | 
|  | 15170 |  | 
| Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 15171 |  | 
|  | 15172 | case $ac_file$ac_mode in | 
|  | 15173 | "Modules/ld_so_aix":F) chmod +x Modules/ld_so_aix ;; | 
|  | 15174 |  | 
|  | 15175 | esac | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15176 | done # for ac_tag | 
|  | 15177 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15178 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15179 | as_fn_exit 0 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15180 | _ACEOF | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15181 | ac_clean_files=$ac_clean_files_save | 
|  | 15182 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15183 | test $ac_write_fail = 0 || | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 15184 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15185 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15186 |  | 
|  | 15187 | # configure is writing to config.log, and then calls config.status. | 
|  | 15188 | # config.status does its own redirection, appending to config.log. | 
|  | 15189 | # Unfortunately, on DOS this fails, as config.log is still kept open | 
|  | 15190 | # by configure, so config.status won't be able to write to it; its | 
|  | 15191 | # output is simply discarded.  So we exec the FD to /dev/null, | 
|  | 15192 | # effectively closing config.log, so it can be properly (re)opened and | 
|  | 15193 | # appended to by config.status.  When coming back to configure, we | 
|  | 15194 | # need to make the FD available again. | 
|  | 15195 | if test "$no_create" != yes; then | 
|  | 15196 | ac_cs_success=: | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15197 | ac_config_status_args= | 
|  | 15198 | test "$silent" = yes && | 
|  | 15199 | ac_config_status_args="$ac_config_status_args --quiet" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15200 | exec 5>/dev/null | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15201 | $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] | 15202 | exec 5>>config.log | 
|  | 15203 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | 
|  | 15204 | # would make configure fail if this is the last instruction. | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 15205 | $ac_cs_success || as_fn_exit 1 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15206 | fi | 
|  | 15207 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | 
|  | 15208 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | 
|  | 15209 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15210 | fi | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15211 |  | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 15212 |  | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 15213 | echo "creating Modules/Setup" | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 15214 | if test ! -f Modules/Setup | 
|  | 15215 | then | 
|  | 15216 | cp $srcdir/Modules/Setup.dist Modules/Setup | 
|  | 15217 | fi | 
|  | 15218 |  | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 15219 | echo "creating Modules/Setup.local" | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 15220 | if test ! -f Modules/Setup.local | 
|  | 15221 | then | 
|  | 15222 | echo "# Edit this file for local setup changes" >Modules/Setup.local | 
|  | 15223 | fi | 
|  | 15224 |  | 
|  | 15225 | echo "creating Makefile" | 
|  | 15226 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ | 
|  | 15227 | -s Modules Modules/Setup.config \ | 
| Neil Schemenauer | f8b71c5 | 2001-04-21 17:41:16 +0000 | [diff] [blame] | 15228 | Modules/Setup.local Modules/Setup | 
| Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 15229 | mv config.c Modules |