| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1 | #! /bin/sh | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2 | # Guess values for system-dependent variables and create Makefiles. | 
| Ross Lagerwall | 2bb842a | 2012-10-29 17:39:19 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.69 for python 3.4. | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4 | # | 
| Georg Brandl | e2e1561 | 2009-05-20 18:25:10 +0000 | [diff] [blame] | 5 | # Report bugs to <http://bugs.python.org/>. | 
| Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 6 | # | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7 | # | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 8 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9 | # | 
 | 10 | # | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11 | # This configure script is free software; the Free Software Foundation | 
 | 12 | # gives unlimited permission to copy, distribute and modify it. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13 | ## -------------------- ## | 
 | 14 | ## M4sh Initialization. ## | 
 | 15 | ## -------------------- ## | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17 | # Be more Bourne compatible | 
 | 18 | DUALCASE=1; export DUALCASE # for MKS sh | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 19 | 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] | 20 |   emulate sh | 
 | 21 |   NULLCMD=: | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 22 |   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23 |   # is contrary to our usage.  Disable this feature. | 
 | 24 |   alias -g '${1+"$@"}'='"$@"' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25 |   setopt NO_GLOB_SUBST | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 26 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 27 |   case `(set -o) 2>/dev/null` in #( | 
 | 28 |   *posix*) : | 
 | 29 |     set -o posix ;; #( | 
 | 30 |   *) : | 
 | 31 |      ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 32 | esac | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 33 | fi | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 34 |  | 
 | 35 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 36 | as_nl=' | 
 | 37 | ' | 
 | 38 | export as_nl | 
 | 39 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | 
 | 40 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | 
 | 41 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | 
 | 42 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | 
 | 43 | # Prefer a ksh shell builtin over an external printf program on Solaris, | 
 | 44 | # but without wasting forks for bash or zsh. | 
 | 45 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | 
 | 46 |     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | 
 | 47 |   as_echo='print -r --' | 
 | 48 |   as_echo_n='print -rn --' | 
 | 49 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | 
 | 50 |   as_echo='printf %s\n' | 
 | 51 |   as_echo_n='printf %s' | 
 | 52 | else | 
 | 53 |   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | 
 | 54 |     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | 
 | 55 |     as_echo_n='/usr/ucb/echo -n' | 
 | 56 |   else | 
 | 57 |     as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | 
 | 58 |     as_echo_n_body='eval | 
 | 59 |       arg=$1; | 
 | 60 |       case $arg in #( | 
 | 61 |       *"$as_nl"*) | 
 | 62 | 	expr "X$arg" : "X\\(.*\\)$as_nl"; | 
 | 63 | 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | 
 | 64 |       esac; | 
 | 65 |       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | 
 | 66 |     ' | 
 | 67 |     export as_echo_n_body | 
 | 68 |     as_echo_n='sh -c $as_echo_n_body as_echo' | 
 | 69 |   fi | 
 | 70 |   export as_echo_body | 
 | 71 |   as_echo='sh -c $as_echo_body as_echo' | 
 | 72 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 73 |  | 
 | 74 | # The user is always right. | 
 | 75 | if test "${PATH_SEPARATOR+set}" != set; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 76 |   PATH_SEPARATOR=: | 
 | 77 |   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | 
 | 78 |     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | 
 | 79 |       PATH_SEPARATOR=';' | 
 | 80 |   } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 81 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 82 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 83 |  | 
 | 84 | # IFS | 
 | 85 | # We need space, tab and new line, in precisely that order.  Quoting is | 
 | 86 | # there to prevent editors from complaining about space-tab. | 
 | 87 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | 
 | 88 | # splitting by setting IFS to empty value.) | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 89 | IFS=" ""	$as_nl" | 
 | 90 |  | 
 | 91 | # Find who we are.  Look in the path if we contain no directory separator. | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 92 | as_myself= | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 93 | case $0 in #(( | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 94 |   *[\\/]* ) as_myself=$0 ;; | 
 | 95 |   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 96 | for as_dir in $PATH | 
 | 97 | do | 
 | 98 |   IFS=$as_save_IFS | 
 | 99 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 100 |     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | 
 | 101 |   done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 102 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 103 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 104 |      ;; | 
 | 105 | esac | 
 | 106 | # We did not find ourselves, most probably we were run as `sh COMMAND' | 
 | 107 | # in which case we are not to be found in the path. | 
 | 108 | if test "x$as_myself" = x; then | 
 | 109 |   as_myself=$0 | 
 | 110 | fi | 
 | 111 | if test ! -f "$as_myself"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 112 |   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | 
 | 113 |   exit 1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 114 | fi | 
 | 115 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 116 | # Unset variables that we do not need and which cause bugs (e.g. in | 
 | 117 | # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1" | 
 | 118 | # suppresses any "Segmentation fault" message there.  '((' could | 
 | 119 | # trigger a bug in pdksh 5.2.14. | 
 | 120 | for as_var in BASH_ENV ENV MAIL MAILPATH | 
 | 121 | do eval test x\${$as_var+set} = xset \ | 
 | 122 |   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 123 | done | 
 | 124 | PS1='$ ' | 
 | 125 | PS2='> ' | 
 | 126 | PS4='+ ' | 
 | 127 |  | 
 | 128 | # NLS nuisances. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 129 | LC_ALL=C | 
 | 130 | export LC_ALL | 
 | 131 | LANGUAGE=C | 
 | 132 | export LANGUAGE | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 133 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 134 | # CDPATH. | 
 | 135 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | 
 | 136 |  | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 137 | # Use a proper internal environment variable to ensure we don't fall | 
 | 138 |   # into an infinite loop, continuously re-executing ourselves. | 
 | 139 |   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then | 
 | 140 |     _as_can_reexec=no; export _as_can_reexec; | 
 | 141 |     # We cannot yet assume a decent shell, so we have to provide a | 
 | 142 | # neutralization value for shells without unset; and this also | 
 | 143 | # works around shells that cannot unset nonexistent variables. | 
 | 144 | # Preserve -v and -x to the replacement shell. | 
 | 145 | BASH_ENV=/dev/null | 
 | 146 | ENV=/dev/null | 
 | 147 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | 
 | 148 | case $- in # (((( | 
 | 149 |   *v*x* | *x*v* ) as_opts=-vx ;; | 
 | 150 |   *v* ) as_opts=-v ;; | 
 | 151 |   *x* ) as_opts=-x ;; | 
 | 152 |   * ) as_opts= ;; | 
 | 153 | esac | 
 | 154 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | 
 | 155 | # Admittedly, this is quite paranoid, since all the known shells bail | 
 | 156 | # out after a failed `exec'. | 
 | 157 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | 
 | 158 | as_fn_exit 255 | 
 | 159 |   fi | 
 | 160 |   # We don't want this to propagate to other subprocesses. | 
 | 161 |           { _as_can_reexec=; unset _as_can_reexec;} | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 162 | if test "x$CONFIG_SHELL" = x; then | 
 | 163 |   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | 
 | 164 |   emulate sh | 
 | 165 |   NULLCMD=: | 
 | 166 |   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | 
 | 167 |   # is contrary to our usage.  Disable this feature. | 
 | 168 |   alias -g '\${1+\"\$@\"}'='\"\$@\"' | 
 | 169 |   setopt NO_GLOB_SUBST | 
 | 170 | else | 
 | 171 |   case \`(set -o) 2>/dev/null\` in #( | 
 | 172 |   *posix*) : | 
 | 173 |     set -o posix ;; #( | 
 | 174 |   *) : | 
 | 175 |      ;; | 
 | 176 | esac | 
 | 177 | fi | 
 | 178 | " | 
 | 179 |   as_required="as_fn_return () { (exit \$1); } | 
 | 180 | as_fn_success () { as_fn_return 0; } | 
 | 181 | as_fn_failure () { as_fn_return 1; } | 
 | 182 | as_fn_ret_success () { return 0; } | 
 | 183 | as_fn_ret_failure () { return 1; } | 
 | 184 |  | 
 | 185 | exitcode=0 | 
 | 186 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | 
 | 187 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | 
 | 188 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | 
 | 189 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | 
 | 190 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | 
 | 191 |  | 
 | 192 | else | 
 | 193 |   exitcode=1; echo positional parameters were not saved. | 
 | 194 | fi | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 195 | test x\$exitcode = x0 || exit 1 | 
 | 196 | test -x / || exit 1" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 197 |   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | 
 | 198 |   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | 
 | 199 |   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | 
 | 200 |   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | 
 | 201 | test \$(( 1 + 1 )) = 2 || exit 1" | 
 | 202 |   if (eval "$as_required") 2>/dev/null; then : | 
 | 203 |   as_have_required=yes | 
 | 204 | else | 
 | 205 |   as_have_required=no | 
 | 206 | fi | 
 | 207 |   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | 
 | 208 |  | 
 | 209 | else | 
 | 210 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 211 | as_found=false | 
 | 212 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | 
 | 213 | do | 
 | 214 |   IFS=$as_save_IFS | 
 | 215 |   test -z "$as_dir" && as_dir=. | 
 | 216 |   as_found=: | 
 | 217 |   case $as_dir in #( | 
 | 218 | 	 /*) | 
 | 219 | 	   for as_base in sh bash ksh sh5; do | 
 | 220 | 	     # Try only shells that exist, to save several forks. | 
 | 221 | 	     as_shell=$as_dir/$as_base | 
 | 222 | 	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | 
 | 223 | 		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | 
 | 224 |   CONFIG_SHELL=$as_shell as_have_required=yes | 
 | 225 | 		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | 
 | 226 |   break 2 | 
 | 227 | fi | 
 | 228 | fi | 
 | 229 | 	   done;; | 
 | 230 |        esac | 
 | 231 |   as_found=false | 
 | 232 | done | 
 | 233 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | 
 | 234 | 	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | 
 | 235 |   CONFIG_SHELL=$SHELL as_have_required=yes | 
 | 236 | fi; } | 
 | 237 | IFS=$as_save_IFS | 
 | 238 |  | 
 | 239 |  | 
 | 240 |       if test "x$CONFIG_SHELL" != x; then : | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 241 |   export CONFIG_SHELL | 
 | 242 |              # We cannot yet assume a decent shell, so we have to provide a | 
 | 243 | # neutralization value for shells without unset; and this also | 
 | 244 | # works around shells that cannot unset nonexistent variables. | 
 | 245 | # Preserve -v and -x to the replacement shell. | 
 | 246 | BASH_ENV=/dev/null | 
 | 247 | ENV=/dev/null | 
 | 248 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | 
 | 249 | case $- in # (((( | 
 | 250 |   *v*x* | *x*v* ) as_opts=-vx ;; | 
 | 251 |   *v* ) as_opts=-v ;; | 
 | 252 |   *x* ) as_opts=-x ;; | 
 | 253 |   * ) as_opts= ;; | 
 | 254 | esac | 
 | 255 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | 
 | 256 | # Admittedly, this is quite paranoid, since all the known shells bail | 
 | 257 | # out after a failed `exec'. | 
 | 258 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | 
 | 259 | exit 255 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 260 | fi | 
 | 261 |  | 
 | 262 |     if test x$as_have_required = xno; then : | 
 | 263 |   $as_echo "$0: This script requires a shell more modern than all" | 
 | 264 |   $as_echo "$0: the shells that I found on your system." | 
 | 265 |   if test x${ZSH_VERSION+set} = xset ; then | 
 | 266 |     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | 
 | 267 |     $as_echo "$0: be upgraded to zsh 4.3.4 or later." | 
 | 268 |   else | 
 | 269 |     $as_echo "$0: Please tell bug-autoconf@gnu.org and | 
 | 270 | $0: http://bugs.python.org/ about your system, including | 
 | 271 | $0: any error possibly output before this message. Then | 
 | 272 | $0: install a modern shell, or manually run the script | 
 | 273 | $0: under such a shell if you do have one." | 
 | 274 |   fi | 
 | 275 |   exit 1 | 
 | 276 | fi | 
 | 277 | fi | 
 | 278 | fi | 
 | 279 | SHELL=${CONFIG_SHELL-/bin/sh} | 
 | 280 | export SHELL | 
 | 281 | # Unset more variables known to interfere with behavior of common tools. | 
 | 282 | CLICOLOR_FORCE= GREP_OPTIONS= | 
 | 283 | unset CLICOLOR_FORCE GREP_OPTIONS | 
 | 284 |  | 
 | 285 | ## --------------------- ## | 
 | 286 | ## M4sh Shell Functions. ## | 
 | 287 | ## --------------------- ## | 
 | 288 | # as_fn_unset VAR | 
 | 289 | # --------------- | 
 | 290 | # Portably unset VAR. | 
 | 291 | as_fn_unset () | 
 | 292 | { | 
 | 293 |   { eval $1=; unset $1;} | 
 | 294 | } | 
 | 295 | as_unset=as_fn_unset | 
 | 296 |  | 
 | 297 | # as_fn_set_status STATUS | 
 | 298 | # ----------------------- | 
 | 299 | # Set $? to STATUS, without forking. | 
 | 300 | as_fn_set_status () | 
 | 301 | { | 
 | 302 |   return $1 | 
 | 303 | } # as_fn_set_status | 
 | 304 |  | 
 | 305 | # as_fn_exit STATUS | 
 | 306 | # ----------------- | 
 | 307 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | 
 | 308 | as_fn_exit () | 
 | 309 | { | 
 | 310 |   set +e | 
 | 311 |   as_fn_set_status $1 | 
 | 312 |   exit $1 | 
 | 313 | } # as_fn_exit | 
 | 314 |  | 
 | 315 | # as_fn_mkdir_p | 
 | 316 | # ------------- | 
 | 317 | # Create "$as_dir" as a directory, including parents if necessary. | 
 | 318 | as_fn_mkdir_p () | 
 | 319 | { | 
 | 320 |  | 
 | 321 |   case $as_dir in #( | 
 | 322 |   -*) as_dir=./$as_dir;; | 
 | 323 |   esac | 
 | 324 |   test -d "$as_dir" || eval $as_mkdir_p || { | 
 | 325 |     as_dirs= | 
 | 326 |     while :; do | 
 | 327 |       case $as_dir in #( | 
 | 328 |       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | 
 | 329 |       *) as_qdir=$as_dir;; | 
 | 330 |       esac | 
 | 331 |       as_dirs="'$as_qdir' $as_dirs" | 
 | 332 |       as_dir=`$as_dirname -- "$as_dir" || | 
 | 333 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
 | 334 | 	 X"$as_dir" : 'X\(//\)[^/]' \| \ | 
 | 335 | 	 X"$as_dir" : 'X\(//\)$' \| \ | 
 | 336 | 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | 
 | 337 | $as_echo X"$as_dir" | | 
 | 338 |     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
 | 339 | 	    s//\1/ | 
 | 340 | 	    q | 
 | 341 | 	  } | 
 | 342 | 	  /^X\(\/\/\)[^/].*/{ | 
 | 343 | 	    s//\1/ | 
 | 344 | 	    q | 
 | 345 | 	  } | 
 | 346 | 	  /^X\(\/\/\)$/{ | 
 | 347 | 	    s//\1/ | 
 | 348 | 	    q | 
 | 349 | 	  } | 
 | 350 | 	  /^X\(\/\).*/{ | 
 | 351 | 	    s//\1/ | 
 | 352 | 	    q | 
 | 353 | 	  } | 
 | 354 | 	  s/.*/./; q'` | 
 | 355 |       test -d "$as_dir" && break | 
 | 356 |     done | 
 | 357 |     test -z "$as_dirs" || eval "mkdir $as_dirs" | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 358 |   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 359 |  | 
 | 360 |  | 
 | 361 | } # as_fn_mkdir_p | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 362 |  | 
 | 363 | # as_fn_executable_p FILE | 
 | 364 | # ----------------------- | 
 | 365 | # Test if FILE is an executable regular file. | 
 | 366 | as_fn_executable_p () | 
 | 367 | { | 
 | 368 |   test -f "$1" && test -x "$1" | 
 | 369 | } # as_fn_executable_p | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 370 | # as_fn_append VAR VALUE | 
 | 371 | # ---------------------- | 
 | 372 | # Append the text in VALUE to the end of the definition contained in VAR. Take | 
 | 373 | # advantage of any shell optimizations that allow amortized linear growth over | 
 | 374 | # repeated appends, instead of the typical quadratic growth present in naive | 
 | 375 | # implementations. | 
 | 376 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | 
 | 377 |   eval 'as_fn_append () | 
 | 378 |   { | 
 | 379 |     eval $1+=\$2 | 
 | 380 |   }' | 
 | 381 | else | 
 | 382 |   as_fn_append () | 
 | 383 |   { | 
 | 384 |     eval $1=\$$1\$2 | 
 | 385 |   } | 
 | 386 | fi # as_fn_append | 
 | 387 |  | 
 | 388 | # as_fn_arith ARG... | 
 | 389 | # ------------------ | 
 | 390 | # Perform arithmetic evaluation on the ARGs, and store the result in the | 
 | 391 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | 
 | 392 | # must be portable across $(()) and expr. | 
 | 393 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | 
 | 394 |   eval 'as_fn_arith () | 
 | 395 |   { | 
 | 396 |     as_val=$(( $* )) | 
 | 397 |   }' | 
 | 398 | else | 
 | 399 |   as_fn_arith () | 
 | 400 |   { | 
 | 401 |     as_val=`expr "$@" || test $? -eq 1` | 
 | 402 |   } | 
 | 403 | fi # as_fn_arith | 
 | 404 |  | 
 | 405 |  | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 406 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | 
 | 407 | # ---------------------------------------- | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 408 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | 
 | 409 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 410 | # script with STATUS, using 1 if that was 0. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 411 | as_fn_error () | 
 | 412 | { | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 413 |   as_status=$1; test $as_status -eq 0 && as_status=1 | 
 | 414 |   if test "$4"; then | 
 | 415 |     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 416 |     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 417 |   fi | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 418 |   $as_echo "$as_me: error: $2" >&2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 419 |   as_fn_exit $as_status | 
 | 420 | } # as_fn_error | 
 | 421 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 422 | if expr a : '\(a\)' >/dev/null 2>&1 && | 
 | 423 |    test "X`expr 00001 : '.*\(...\)'`" = X001; then | 
 | 424 |   as_expr=expr | 
 | 425 | else | 
 | 426 |   as_expr=false | 
 | 427 | fi | 
 | 428 |  | 
 | 429 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | 
 | 430 |   as_basename=basename | 
 | 431 | else | 
 | 432 |   as_basename=false | 
 | 433 | fi | 
 | 434 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 435 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | 
 | 436 |   as_dirname=dirname | 
 | 437 | else | 
 | 438 |   as_dirname=false | 
 | 439 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 440 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 441 | as_me=`$as_basename -- "$0" || | 
 | 442 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | 
 | 443 | 	 X"$0" : 'X\(//\)$' \| \ | 
 | 444 | 	 X"$0" : 'X\(/\)' \| . 2>/dev/null || | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 445 | $as_echo X/"$0" | | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 446 |     sed '/^.*\/\([^/][^/]*\)\/*$/{ | 
 | 447 | 	    s//\1/ | 
 | 448 | 	    q | 
 | 449 | 	  } | 
 | 450 | 	  /^X\/\(\/\/\)$/{ | 
 | 451 | 	    s//\1/ | 
 | 452 | 	    q | 
 | 453 | 	  } | 
 | 454 | 	  /^X\/\(\/\).*/{ | 
 | 455 | 	    s//\1/ | 
 | 456 | 	    q | 
 | 457 | 	  } | 
 | 458 | 	  s/.*/./; q'` | 
 | 459 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 460 | # Avoid depending upon Character Ranges. | 
 | 461 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | 
 | 462 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | 
 | 463 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | 
 | 464 | as_cr_digits='0123456789' | 
 | 465 | as_cr_alnum=$as_cr_Letters$as_cr_digits | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 466 |  | 
 | 467 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 468 |   as_lineno_1=$LINENO as_lineno_1a=$LINENO | 
 | 469 |   as_lineno_2=$LINENO as_lineno_2a=$LINENO | 
 | 470 |   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | 
 | 471 |   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | 
 | 472 |   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-) | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 473 |   sed -n ' | 
 | 474 |     p | 
 | 475 |     /[$]LINENO/= | 
 | 476 |   ' <$as_myself | | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 477 |     sed ' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 478 |       s/[$]LINENO.*/&-/ | 
 | 479 |       t lineno | 
 | 480 |       b | 
 | 481 |       :lineno | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 482 |       N | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 483 |       :loop | 
 | 484 |       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 485 |       t loop | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 486 |       s/-\n.*// | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 487 |     ' >$as_me.lineno && | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 488 |   chmod +x "$as_me.lineno" || | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 489 |     { $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] | 490 |  | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 491 |   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have | 
 | 492 |   # already done that, so ensure we don't try to do so again and fall | 
 | 493 |   # in an infinite loop.  This has already happened in practice. | 
 | 494 |   _as_can_reexec=no; export _as_can_reexec | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 495 |   # Don't try to exec as it changes $[0], causing all sort of problems | 
 | 496 |   # (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] | 497 |   # original and so on.  Autoconf is especially sensitive to this). | 
 | 498 |   . "./$as_me.lineno" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 499 |   # Exit status is that of the last command. | 
 | 500 |   exit | 
 | 501 | } | 
 | 502 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 503 | ECHO_C= ECHO_N= ECHO_T= | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 504 | case `echo -n x` in #((((( | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 505 | -n*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 506 |   case `echo 'xy\c'` in | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 507 |   *c*) ECHO_T='	';;	# ECHO_T is single tab character. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 508 |   xy)  ECHO_C='\c';; | 
 | 509 |   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null | 
 | 510 |        ECHO_T='	';; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 511 |   esac;; | 
 | 512 | *) | 
 | 513 |   ECHO_N='-n';; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 514 | esac | 
| Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 515 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 516 | rm -f conf$$ conf$$.exe conf$$.file | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 517 | if test -d conf$$.dir; then | 
 | 518 |   rm -f conf$$.dir/conf$$.file | 
 | 519 | else | 
 | 520 |   rm -f conf$$.dir | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 521 |   mkdir conf$$.dir 2>/dev/null | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 522 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 523 | if (echo >conf$$.file) 2>/dev/null; then | 
 | 524 |   if ln -s conf$$.file conf$$ 2>/dev/null; then | 
 | 525 |     as_ln_s='ln -s' | 
 | 526 |     # ... but there are two gotchas: | 
 | 527 |     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | 
 | 528 |     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 529 |     # In both cases, we have to default to `cp -pR'. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 530 |     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 531 |       as_ln_s='cp -pR' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 532 |   elif ln conf$$.file conf$$ 2>/dev/null; then | 
 | 533 |     as_ln_s=ln | 
 | 534 |   else | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 535 |     as_ln_s='cp -pR' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 536 |   fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 537 | else | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 538 |   as_ln_s='cp -pR' | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 539 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 540 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | 
 | 541 | rmdir conf$$.dir 2>/dev/null | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 542 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 543 | if mkdir -p . 2>/dev/null; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 544 |   as_mkdir_p='mkdir -p "$as_dir"' | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 545 | else | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 546 |   test -d ./-p && rmdir ./-p | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 547 |   as_mkdir_p=false | 
 | 548 | fi | 
 | 549 |  | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 550 | as_test_x='test -x' | 
 | 551 | as_executable_p=as_fn_executable_p | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 552 |  | 
 | 553 | # Sed expression to map a string onto a valid CPP name. | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 554 | 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] | 555 |  | 
 | 556 | # Sed expression to map a string onto a valid variable name. | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 557 | 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] | 558 |  | 
 | 559 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 560 | test -n "$DJDIR" || exec 7<&0 </dev/null | 
 | 561 | exec 6>&1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 562 |  | 
 | 563 | # Name of the host. | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 564 | # 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] | 565 | # so uname gets run too. | 
 | 566 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | 
 | 567 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 568 | # | 
 | 569 | # Initializations. | 
 | 570 | # | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 571 | ac_default_prefix=/usr/local | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 572 | ac_clean_files= | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 573 | ac_config_libobj_dir=. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 574 | LIBOBJS= | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 575 | cross_compiling=no | 
 | 576 | subdirs= | 
 | 577 | MFLAGS= | 
 | 578 | MAKEFLAGS= | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 579 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 580 | # Identity of this package. | 
| Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 581 | PACKAGE_NAME='python' | 
 | 582 | PACKAGE_TARNAME='python' | 
| Georg Brandl | 08a9012 | 2012-09-29 09:34:13 +0200 | [diff] [blame] | 583 | PACKAGE_VERSION='3.4' | 
 | 584 | PACKAGE_STRING='python 3.4' | 
| Georg Brandl | e2e1561 | 2009-05-20 18:25:10 +0000 | [diff] [blame] | 585 | PACKAGE_BUGREPORT='http://bugs.python.org/' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 586 | PACKAGE_URL='' | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 587 |  | 
 | 588 | ac_unique_file="Include/object.h" | 
 | 589 | # Factoring default headers for most tests. | 
 | 590 | ac_includes_default="\ | 
 | 591 | #include <stdio.h> | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 592 | #ifdef HAVE_SYS_TYPES_H | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 593 | # include <sys/types.h> | 
 | 594 | #endif | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 595 | #ifdef HAVE_SYS_STAT_H | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 596 | # include <sys/stat.h> | 
 | 597 | #endif | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 598 | #ifdef STDC_HEADERS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 599 | # include <stdlib.h> | 
 | 600 | # include <stddef.h> | 
 | 601 | #else | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 602 | # ifdef HAVE_STDLIB_H | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 603 | #  include <stdlib.h> | 
 | 604 | # endif | 
 | 605 | #endif | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 606 | #ifdef HAVE_STRING_H | 
 | 607 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 608 | #  include <memory.h> | 
 | 609 | # endif | 
 | 610 | # include <string.h> | 
 | 611 | #endif | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 612 | #ifdef HAVE_STRINGS_H | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 613 | # include <strings.h> | 
 | 614 | #endif | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 615 | #ifdef HAVE_INTTYPES_H | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 616 | # include <inttypes.h> | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 617 | #endif | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 618 | #ifdef HAVE_STDINT_H | 
 | 619 | # include <stdint.h> | 
 | 620 | #endif | 
 | 621 | #ifdef HAVE_UNISTD_H | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 622 | # include <unistd.h> | 
 | 623 | #endif" | 
 | 624 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 625 | ac_subst_vars='LTLIBOBJS | 
| Ned Deily | 322f5ba | 2013-11-21 23:01:59 -0800 | [diff] [blame] | 626 | ENSUREPIP | 
| Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 627 | SRCDIRS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 628 | THREADHEADERS | 
| doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 629 | LIBPL | 
 | 630 | PY_ENABLE_SHARED | 
| doko@ubuntu.com | d5537d0 | 2013-03-21 13:21:49 -0700 | [diff] [blame] | 631 | EXT_SUFFIX | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 632 | SOABI | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 633 | LIBC | 
 | 634 | LIBM | 
 | 635 | HAVE_GETHOSTBYNAME | 
 | 636 | HAVE_GETHOSTBYNAME_R | 
 | 637 | HAVE_GETHOSTBYNAME_R_3_ARG | 
 | 638 | HAVE_GETHOSTBYNAME_R_5_ARG | 
 | 639 | HAVE_GETHOSTBYNAME_R_6_ARG | 
 | 640 | LIBOBJS | 
 | 641 | TRUE | 
 | 642 | MACHDEP_OBJS | 
 | 643 | DYNLOADFILE | 
 | 644 | DLINCLDIR | 
 | 645 | THREADOBJ | 
 | 646 | LDLAST | 
 | 647 | USE_THREAD_MODULE | 
 | 648 | SIGNAL_OBJS | 
 | 649 | USE_SIGNAL_MODULE | 
| Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 650 | TCLTK_LIBS | 
 | 651 | TCLTK_INCLUDES | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 652 | LIBFFI_INCLUDEDIR | 
 | 653 | PKG_CONFIG | 
 | 654 | SHLIBS | 
 | 655 | CFLAGSFORSHARED | 
 | 656 | LINKFORSHARED | 
 | 657 | CCSHARED | 
 | 658 | BLDSHARED | 
 | 659 | LDCXXSHARED | 
 | 660 | LDSHARED | 
| doko@ubuntu.com | d5537d0 | 2013-03-21 13:21:49 -0700 | [diff] [blame] | 661 | SHLIB_SUFFIX | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 662 | LIBTOOL_CRUFT | 
 | 663 | OTHER_LIBTOOL_OPT | 
 | 664 | UNIVERSAL_ARCH_FLAGS | 
 | 665 | BASECFLAGS | 
 | 666 | OPT | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 667 | ABIFLAGS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 668 | LN | 
| Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 669 | MKDIR_P | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 670 | INSTALL_DATA | 
 | 671 | INSTALL_SCRIPT | 
 | 672 | INSTALL_PROGRAM | 
| Matthias Klose | c4c4842 | 2012-10-21 23:05:35 +0200 | [diff] [blame] | 673 | PYTHON | 
 | 674 | ASDLGEN | 
| doko@ubuntu.com | 5884449 | 2012-06-30 18:25:32 +0200 | [diff] [blame] | 675 | ac_ct_READELF | 
 | 676 | READELF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 677 | ARFLAGS | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 678 | ac_ct_AR | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 679 | AR | 
 | 680 | RANLIB | 
| Daniel Stutzbach | a606faa | 2010-08-31 19:51:07 +0000 | [diff] [blame] | 681 | USE_INLINE | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 682 | GNULD | 
 | 683 | LINKCC | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 684 | LDVERSION | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 685 | RUNSHARED | 
 | 686 | INSTSONAME | 
 | 687 | LDLIBRARYDIR | 
| Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 +0000 | [diff] [blame] | 688 | PY3LIBRARY | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 689 | BLDLIBRARY | 
 | 690 | DLLLIBRARY | 
 | 691 | LDLIBRARY | 
 | 692 | LIBRARY | 
| doko@python.org | 3e6e2ac | 2013-01-25 13:12:29 +0100 | [diff] [blame] | 693 | MULTIARCH | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 694 | BUILDEXEEXT | 
 | 695 | EGREP | 
 | 696 | GREP | 
 | 697 | CPP | 
| Martin v. Löwis | 48e14d3 | 2011-05-09 07:37:45 +0200 | [diff] [blame] | 698 | NO_AS_NEEDED | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 699 | ac_ct_CXX | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 700 | MAINCC | 
 | 701 | CXX | 
 | 702 | OBJEXT | 
 | 703 | EXEEXT | 
 | 704 | ac_ct_CC | 
 | 705 | CPPFLAGS | 
 | 706 | LDFLAGS | 
 | 707 | CFLAGS | 
 | 708 | CC | 
 | 709 | EXPORT_MACOSX_DEPLOYMENT_TARGET | 
 | 710 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET | 
 | 711 | SGI_ABI | 
| doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 712 | _PYTHON_HOST_PLATFORM | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 713 | MACHDEP | 
| Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 714 | FRAMEWORKINSTALLAPPSPREFIX | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 715 | FRAMEWORKUNIXTOOLSPREFIX | 
| Ned Deily | b8f944f | 2013-11-21 22:42:25 -0800 | [diff] [blame] | 716 | FRAMEWORKPYTHONW | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 717 | FRAMEWORKALTINSTALLLAST | 
 | 718 | FRAMEWORKALTINSTALLFIRST | 
 | 719 | FRAMEWORKINSTALLLAST | 
 | 720 | FRAMEWORKINSTALLFIRST | 
 | 721 | PYTHONFRAMEWORKINSTALLDIR | 
 | 722 | PYTHONFRAMEWORKPREFIX | 
 | 723 | PYTHONFRAMEWORKDIR | 
 | 724 | PYTHONFRAMEWORKIDENTIFIER | 
 | 725 | PYTHONFRAMEWORK | 
 | 726 | LIPO_32BIT_FLAGS | 
 | 727 | ARCH_RUN_32BIT | 
 | 728 | UNIVERSALSDK | 
 | 729 | CONFIG_ARGS | 
 | 730 | SOVERSION | 
 | 731 | VERSION | 
| doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 732 | PYTHON_FOR_BUILD | 
| Matthias Klose | ca2f6ec | 2012-03-15 21:30:11 +0100 | [diff] [blame] | 733 | host_os | 
 | 734 | host_vendor | 
 | 735 | host_cpu | 
 | 736 | host | 
 | 737 | build_os | 
 | 738 | build_vendor | 
 | 739 | build_cpu | 
 | 740 | build | 
| Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 741 | HAS_HG | 
 | 742 | HGBRANCH | 
 | 743 | HGTAG | 
 | 744 | HGVERSION | 
| Trent Nelson | 4d4ec65 | 2012-10-16 08:51:24 -0400 | [diff] [blame] | 745 | BASECPPFLAGS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 746 | target_alias | 
 | 747 | host_alias | 
 | 748 | build_alias | 
 | 749 | LIBS | 
 | 750 | ECHO_T | 
 | 751 | ECHO_N | 
 | 752 | ECHO_C | 
 | 753 | DEFS | 
 | 754 | mandir | 
 | 755 | localedir | 
 | 756 | libdir | 
 | 757 | psdir | 
 | 758 | pdfdir | 
 | 759 | dvidir | 
 | 760 | htmldir | 
 | 761 | infodir | 
 | 762 | docdir | 
 | 763 | oldincludedir | 
 | 764 | includedir | 
 | 765 | localstatedir | 
 | 766 | sharedstatedir | 
 | 767 | sysconfdir | 
 | 768 | datadir | 
 | 769 | datarootdir | 
 | 770 | libexecdir | 
 | 771 | sbindir | 
 | 772 | bindir | 
 | 773 | program_transform_name | 
 | 774 | prefix | 
 | 775 | exec_prefix | 
 | 776 | PACKAGE_URL | 
 | 777 | PACKAGE_BUGREPORT | 
 | 778 | PACKAGE_STRING | 
 | 779 | PACKAGE_VERSION | 
 | 780 | PACKAGE_TARNAME | 
 | 781 | PACKAGE_NAME | 
 | 782 | PATH_SEPARATOR | 
 | 783 | SHELL' | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 784 | ac_subst_files='' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 785 | ac_user_opts=' | 
 | 786 | enable_option_checking | 
 | 787 | enable_universalsdk | 
 | 788 | with_universal_archs | 
 | 789 | with_framework_name | 
 | 790 | enable_framework | 
 | 791 | with_gcc | 
 | 792 | with_cxx_main | 
 | 793 | with_suffix | 
 | 794 | enable_shared | 
 | 795 | enable_profiling | 
 | 796 | with_pydebug | 
| Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 797 | with_hash_algorithm | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 798 | with_libs | 
 | 799 | with_system_expat | 
 | 800 | with_system_ffi | 
| Stefan Krah | 60187b5 | 2012-03-23 19:06:27 +0100 | [diff] [blame] | 801 | with_system_libmpdec | 
| Benjamin Peterson | 076ed00 | 2010-10-31 17:11:02 +0000 | [diff] [blame] | 802 | enable_loadable_sqlite_extensions | 
| Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 803 | with_tcltk_includes | 
 | 804 | with_tcltk_libs | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 805 | with_dbmliborder | 
 | 806 | with_signal_module | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 807 | with_threads | 
 | 808 | with_thread | 
 | 809 | enable_ipv6 | 
 | 810 | with_doc_strings | 
 | 811 | with_tsc | 
 | 812 | with_pymalloc | 
 | 813 | with_valgrind | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 814 | with_fpectl | 
 | 815 | with_libm | 
 | 816 | with_libc | 
 | 817 | enable_big_digits | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 818 | with_computed_gotos | 
| Ned Deily | 322f5ba | 2013-11-21 23:01:59 -0800 | [diff] [blame] | 819 | with_ensurepip | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 820 | ' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 821 |       ac_precious_vars='build_alias | 
 | 822 | host_alias | 
 | 823 | target_alias | 
| doko@python.org | eab42bf | 2013-01-26 18:57:19 +0100 | [diff] [blame] | 824 | MACHDEP | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 825 | CC | 
 | 826 | CFLAGS | 
 | 827 | LDFLAGS | 
 | 828 | LIBS | 
 | 829 | CPPFLAGS | 
| Charles-François Natali | 47413c1 | 2011-10-06 19:47:44 +0200 | [diff] [blame] | 830 | CPP' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 831 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 832 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 833 | # Initialize some variables set by options. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 834 | ac_init_help= | 
 | 835 | ac_init_version=false | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 836 | ac_unrecognized_opts= | 
 | 837 | ac_unrecognized_sep= | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 838 | # The variables have the same names as the options, with | 
 | 839 | # dashes changed to underlines. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 840 | cache_file=/dev/null | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 841 | exec_prefix=NONE | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 842 | no_create= | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 843 | no_recursion= | 
 | 844 | prefix=NONE | 
 | 845 | program_prefix=NONE | 
 | 846 | program_suffix=NONE | 
 | 847 | program_transform_name=s,x,x, | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 848 | silent= | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 849 | site= | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 850 | srcdir= | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 851 | verbose= | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 852 | x_includes=NONE | 
 | 853 | x_libraries=NONE | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 854 |  | 
 | 855 | # Installation directory options. | 
 | 856 | # These are left unexpanded so users can "make install exec_prefix=/foo" | 
 | 857 | # and all the variables that are supposed to be based on exec_prefix | 
 | 858 | # by default will actually change. | 
 | 859 | # Use braces instead of parens because sh, perl, etc. also accept them. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 860 | # (The list follows the same order as the GNU Coding Standards.) | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 861 | bindir='${exec_prefix}/bin' | 
 | 862 | sbindir='${exec_prefix}/sbin' | 
 | 863 | libexecdir='${exec_prefix}/libexec' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 864 | datarootdir='${prefix}/share' | 
 | 865 | datadir='${datarootdir}' | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 866 | sysconfdir='${prefix}/etc' | 
 | 867 | sharedstatedir='${prefix}/com' | 
 | 868 | localstatedir='${prefix}/var' | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 869 | includedir='${prefix}/include' | 
 | 870 | oldincludedir='/usr/include' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 871 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | 
 | 872 | infodir='${datarootdir}/info' | 
 | 873 | htmldir='${docdir}' | 
 | 874 | dvidir='${docdir}' | 
 | 875 | pdfdir='${docdir}' | 
 | 876 | psdir='${docdir}' | 
 | 877 | libdir='${exec_prefix}/lib' | 
 | 878 | localedir='${datarootdir}/locale' | 
 | 879 | mandir='${datarootdir}/man' | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 880 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 881 | ac_prev= | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 882 | ac_dashdash= | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 883 | for ac_option | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 884 | do | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 885 |   # If the previous option needs an argument, assign it. | 
 | 886 |   if test -n "$ac_prev"; then | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 887 |     eval $ac_prev=\$ac_option | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 888 |     ac_prev= | 
 | 889 |     continue | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 890 |   fi | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 891 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 892 |   case $ac_option in | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 893 |   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | 
 | 894 |   *=)   ac_optarg= ;; | 
 | 895 |   *)    ac_optarg=yes ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 896 |   esac | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 897 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 898 |   # Accept the important Cygnus configure options, so we can diagnose typos. | 
 | 899 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 900 |   case $ac_dashdash$ac_option in | 
 | 901 |   --) | 
 | 902 |     ac_dashdash=yes ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 903 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 904 |   -bindir | --bindir | --bindi | --bind | --bin | --bi) | 
 | 905 |     ac_prev=bindir ;; | 
 | 906 |   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 907 |     bindir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 908 |  | 
 | 909 |   -build | --build | --buil | --bui | --bu) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 910 |     ac_prev=build_alias ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 911 |   -build=* | --build=* | --buil=* | --bui=* | --bu=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 912 |     build_alias=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 913 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 914 |   -cache-file | --cache-file | --cache-fil | --cache-fi \ | 
 | 915 |   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | 
 | 916 |     ac_prev=cache_file ;; | 
 | 917 |   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | 
 | 918 |   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 919 |     cache_file=$ac_optarg ;; | 
 | 920 |  | 
 | 921 |   --config-cache | -C) | 
 | 922 |     cache_file=config.cache ;; | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 923 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 924 |   -datadir | --datadir | --datadi | --datad) | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 925 |     ac_prev=datadir ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 926 |   -datadir=* | --datadir=* | --datadi=* | --datad=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 927 |     datadir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 928 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 929 |   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | 
 | 930 |   | --dataroo | --dataro | --datar) | 
 | 931 |     ac_prev=datarootdir ;; | 
 | 932 |   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | 
 | 933 |   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | 
 | 934 |     datarootdir=$ac_optarg ;; | 
 | 935 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 936 |   -disable-* | --disable-*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 937 |     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 938 |     # Reject names that are not valid shell variable names. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 939 |     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 940 |       as_fn_error $? "invalid feature name: $ac_useropt" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 941 |     ac_useropt_orig=$ac_useropt | 
 | 942 |     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 
 | 943 |     case $ac_user_opts in | 
 | 944 |       *" | 
 | 945 | "enable_$ac_useropt" | 
 | 946 | "*) ;; | 
 | 947 |       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | 
 | 948 | 	 ac_unrecognized_sep=', ';; | 
 | 949 |     esac | 
 | 950 |     eval enable_$ac_useropt=no ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 951 |  | 
 | 952 |   -docdir | --docdir | --docdi | --doc | --do) | 
 | 953 |     ac_prev=docdir ;; | 
 | 954 |   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | 
 | 955 |     docdir=$ac_optarg ;; | 
 | 956 |  | 
 | 957 |   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | 
 | 958 |     ac_prev=dvidir ;; | 
 | 959 |   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | 
 | 960 |     dvidir=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 961 |  | 
 | 962 |   -enable-* | --enable-*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 963 |     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 964 |     # Reject names that are not valid shell variable names. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 965 |     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 966 |       as_fn_error $? "invalid feature name: $ac_useropt" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 967 |     ac_useropt_orig=$ac_useropt | 
 | 968 |     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 
 | 969 |     case $ac_user_opts in | 
 | 970 |       *" | 
 | 971 | "enable_$ac_useropt" | 
 | 972 | "*) ;; | 
 | 973 |       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | 
 | 974 | 	 ac_unrecognized_sep=', ';; | 
 | 975 |     esac | 
 | 976 |     eval enable_$ac_useropt=\$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 977 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 978 |   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | 
 | 979 |   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | 
 | 980 |   | --exec | --exe | --ex) | 
 | 981 |     ac_prev=exec_prefix ;; | 
 | 982 |   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | 
 | 983 |   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | 
 | 984 |   | --exec=* | --exe=* | --ex=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 985 |     exec_prefix=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 986 |  | 
 | 987 |   -gas | --gas | --ga | --g) | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 988 |     # Obsolete; use --with-gas. | 
 | 989 |     with_gas=yes ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 990 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 991 |   -help | --help | --hel | --he | -h) | 
 | 992 |     ac_init_help=long ;; | 
 | 993 |   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | 
 | 994 |     ac_init_help=recursive ;; | 
 | 995 |   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | 
 | 996 |     ac_init_help=short ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 997 |  | 
 | 998 |   -host | --host | --hos | --ho) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 999 |     ac_prev=host_alias ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1000 |   -host=* | --host=* | --hos=* | --ho=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1001 |     host_alias=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1002 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1003 |   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | 
 | 1004 |     ac_prev=htmldir ;; | 
 | 1005 |   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | 
 | 1006 |   | --ht=*) | 
 | 1007 |     htmldir=$ac_optarg ;; | 
 | 1008 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1009 |   -includedir | --includedir | --includedi | --included | --include \ | 
 | 1010 |   | --includ | --inclu | --incl | --inc) | 
 | 1011 |     ac_prev=includedir ;; | 
 | 1012 |   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | 
 | 1013 |   | --includ=* | --inclu=* | --incl=* | --inc=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1014 |     includedir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1015 |  | 
 | 1016 |   -infodir | --infodir | --infodi | --infod | --info | --inf) | 
 | 1017 |     ac_prev=infodir ;; | 
 | 1018 |   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1019 |     infodir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1020 |  | 
 | 1021 |   -libdir | --libdir | --libdi | --libd) | 
 | 1022 |     ac_prev=libdir ;; | 
 | 1023 |   -libdir=* | --libdir=* | --libdi=* | --libd=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1024 |     libdir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1025 |  | 
 | 1026 |   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | 
 | 1027 |   | --libexe | --libex | --libe) | 
 | 1028 |     ac_prev=libexecdir ;; | 
 | 1029 |   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | 
 | 1030 |   | --libexe=* | --libex=* | --libe=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1031 |     libexecdir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1032 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1033 |   -localedir | --localedir | --localedi | --localed | --locale) | 
 | 1034 |     ac_prev=localedir ;; | 
 | 1035 |   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | 
 | 1036 |     localedir=$ac_optarg ;; | 
 | 1037 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1038 |   -localstatedir | --localstatedir | --localstatedi | --localstated \ | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1039 |   | --localstate | --localstat | --localsta | --localst | --locals) | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1040 |     ac_prev=localstatedir ;; | 
 | 1041 |   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1042 |   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1043 |     localstatedir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1044 |  | 
 | 1045 |   -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | 
 | 1046 |     ac_prev=mandir ;; | 
 | 1047 |   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1048 |     mandir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1049 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1050 |   -nfp | --nfp | --nf) | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1051 |     # Obsolete; use --without-fp. | 
 | 1052 |     with_fp=no ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1053 |  | 
 | 1054 |   -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1055 |   | --no-cr | --no-c | -n) | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1056 |     no_create=yes ;; | 
 | 1057 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1058 |   -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | 
 | 1059 |   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | 
 | 1060 |     no_recursion=yes ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1061 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1062 |   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | 
 | 1063 |   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | 
 | 1064 |   | --oldin | --oldi | --old | --ol | --o) | 
 | 1065 |     ac_prev=oldincludedir ;; | 
 | 1066 |   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | 
 | 1067 |   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | 
 | 1068 |   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1069 |     oldincludedir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1070 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1071 |   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | 
 | 1072 |     ac_prev=prefix ;; | 
 | 1073 |   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1074 |     prefix=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1075 |  | 
 | 1076 |   -program-prefix | --program-prefix | --program-prefi | --program-pref \ | 
 | 1077 |   | --program-pre | --program-pr | --program-p) | 
 | 1078 |     ac_prev=program_prefix ;; | 
 | 1079 |   -program-prefix=* | --program-prefix=* | --program-prefi=* \ | 
 | 1080 |   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1081 |     program_prefix=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1082 |  | 
 | 1083 |   -program-suffix | --program-suffix | --program-suffi | --program-suff \ | 
 | 1084 |   | --program-suf | --program-su | --program-s) | 
 | 1085 |     ac_prev=program_suffix ;; | 
 | 1086 |   -program-suffix=* | --program-suffix=* | --program-suffi=* \ | 
 | 1087 |   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1088 |     program_suffix=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1089 |  | 
 | 1090 |   -program-transform-name | --program-transform-name \ | 
 | 1091 |   | --program-transform-nam | --program-transform-na \ | 
 | 1092 |   | --program-transform-n | --program-transform- \ | 
 | 1093 |   | --program-transform | --program-transfor \ | 
 | 1094 |   | --program-transfo | --program-transf \ | 
 | 1095 |   | --program-trans | --program-tran \ | 
 | 1096 |   | --progr-tra | --program-tr | --program-t) | 
 | 1097 |     ac_prev=program_transform_name ;; | 
 | 1098 |   -program-transform-name=* | --program-transform-name=* \ | 
 | 1099 |   | --program-transform-nam=* | --program-transform-na=* \ | 
 | 1100 |   | --program-transform-n=* | --program-transform-=* \ | 
 | 1101 |   | --program-transform=* | --program-transfor=* \ | 
 | 1102 |   | --program-transfo=* | --program-transf=* \ | 
 | 1103 |   | --program-trans=* | --program-tran=* \ | 
 | 1104 |   | --progr-tra=* | --program-tr=* | --program-t=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1105 |     program_transform_name=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1106 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1107 |   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | 
 | 1108 |     ac_prev=pdfdir ;; | 
 | 1109 |   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | 
 | 1110 |     pdfdir=$ac_optarg ;; | 
 | 1111 |  | 
 | 1112 |   -psdir | --psdir | --psdi | --psd | --ps) | 
 | 1113 |     ac_prev=psdir ;; | 
 | 1114 |   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | 
 | 1115 |     psdir=$ac_optarg ;; | 
 | 1116 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1117 |   -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
 | 1118 |   | -silent | --silent | --silen | --sile | --sil) | 
 | 1119 |     silent=yes ;; | 
 | 1120 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1121 |   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | 
 | 1122 |     ac_prev=sbindir ;; | 
 | 1123 |   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | 
 | 1124 |   | --sbi=* | --sb=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1125 |     sbindir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1126 |  | 
 | 1127 |   -sharedstatedir | --sharedstatedir | --sharedstatedi \ | 
 | 1128 |   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | 
 | 1129 |   | --sharedst | --shareds | --shared | --share | --shar \ | 
 | 1130 |   | --sha | --sh) | 
 | 1131 |     ac_prev=sharedstatedir ;; | 
 | 1132 |   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | 
 | 1133 |   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | 
 | 1134 |   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | 
 | 1135 |   | --sha=* | --sh=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1136 |     sharedstatedir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1137 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1138 |   -site | --site | --sit) | 
 | 1139 |     ac_prev=site ;; | 
 | 1140 |   -site=* | --site=* | --sit=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1141 |     site=$ac_optarg ;; | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1142 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1143 |   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | 
 | 1144 |     ac_prev=srcdir ;; | 
 | 1145 |   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1146 |     srcdir=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1147 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1148 |   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | 
 | 1149 |   | --syscon | --sysco | --sysc | --sys | --sy) | 
 | 1150 |     ac_prev=sysconfdir ;; | 
 | 1151 |   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | 
 | 1152 |   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1153 |     sysconfdir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1154 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1155 |   -target | --target | --targe | --targ | --tar | --ta | --t) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1156 |     ac_prev=target_alias ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1157 |   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1158 |     target_alias=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1159 |  | 
 | 1160 |   -v | -verbose | --verbose | --verbos | --verbo | --verb) | 
 | 1161 |     verbose=yes ;; | 
 | 1162 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1163 |   -version | --version | --versio | --versi | --vers | -V) | 
 | 1164 |     ac_init_version=: ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1165 |  | 
 | 1166 |   -with-* | --with-*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1167 |     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1168 |     # Reject names that are not valid shell variable names. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1169 |     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1170 |       as_fn_error $? "invalid package name: $ac_useropt" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1171 |     ac_useropt_orig=$ac_useropt | 
 | 1172 |     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 
 | 1173 |     case $ac_user_opts in | 
 | 1174 |       *" | 
 | 1175 | "with_$ac_useropt" | 
 | 1176 | "*) ;; | 
 | 1177 |       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | 
 | 1178 | 	 ac_unrecognized_sep=', ';; | 
 | 1179 |     esac | 
 | 1180 |     eval with_$ac_useropt=\$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1181 |  | 
 | 1182 |   -without-* | --without-*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1183 |     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1184 |     # Reject names that are not valid shell variable names. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1185 |     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1186 |       as_fn_error $? "invalid package name: $ac_useropt" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1187 |     ac_useropt_orig=$ac_useropt | 
 | 1188 |     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 
 | 1189 |     case $ac_user_opts in | 
 | 1190 |       *" | 
 | 1191 | "with_$ac_useropt" | 
 | 1192 | "*) ;; | 
 | 1193 |       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | 
 | 1194 | 	 ac_unrecognized_sep=', ';; | 
 | 1195 |     esac | 
 | 1196 |     eval with_$ac_useropt=no ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1197 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1198 |   --x) | 
 | 1199 |     # Obsolete; use --with-x. | 
 | 1200 |     with_x=yes ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1201 |  | 
 | 1202 |   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | 
 | 1203 |   | --x-incl | --x-inc | --x-in | --x-i) | 
 | 1204 |     ac_prev=x_includes ;; | 
 | 1205 |   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | 
 | 1206 |   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1207 |     x_includes=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1208 |  | 
 | 1209 |   -x-libraries | --x-libraries | --x-librarie | --x-librari \ | 
 | 1210 |   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | 
 | 1211 |     ac_prev=x_libraries ;; | 
 | 1212 |   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | 
 | 1213 |   | --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] | 1214 |     x_libraries=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1215 |  | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1216 |   -*) as_fn_error $? "unrecognized option: \`$ac_option' | 
 | 1217 | Try \`$0 --help' for more information" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1218 |     ;; | 
 | 1219 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1220 |   *=*) | 
 | 1221 |     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | 
 | 1222 |     # Reject names that are not valid shell variable names. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1223 |     case $ac_envvar in #( | 
 | 1224 |       '' | [0-9]* | *[!_$as_cr_alnum]* ) | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1225 |       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1226 |     esac | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1227 |     eval $ac_envvar=\$ac_optarg | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1228 |     export $ac_envvar ;; | 
 | 1229 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1230 |   *) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1231 |     # FIXME: should be removed in autoconf 3.0. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1232 |     $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] | 1233 |     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1234 |       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1235 |     : "${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] | 1236 |     ;; | 
 | 1237 |  | 
 | 1238 |   esac | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1239 | done | 
 | 1240 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1241 | if test -n "$ac_prev"; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1242 |   ac_option=--`echo $ac_prev | sed 's/_/-/g'` | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1243 |   as_fn_error $? "missing argument to $ac_option" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1244 | fi | 
 | 1245 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1246 | if test -n "$ac_unrecognized_opts"; then | 
 | 1247 |   case $enable_option_checking in | 
 | 1248 |     no) ;; | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1249 |     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1250 |     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | 
 | 1251 |   esac | 
 | 1252 | fi | 
 | 1253 |  | 
 | 1254 | # Check all directory arguments for consistency. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1255 | for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \ | 
 | 1256 | 		datadir sysconfdir sharedstatedir localstatedir includedir \ | 
 | 1257 | 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | 
 | 1258 | 		libdir localedir mandir | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1259 | do | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1260 |   eval ac_val=\$$ac_var | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1261 |   # Remove trailing slashes. | 
 | 1262 |   case $ac_val in | 
 | 1263 |     */ ) | 
 | 1264 |       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | 
 | 1265 |       eval $ac_var=\$ac_val;; | 
 | 1266 |   esac | 
 | 1267 |   # Be sure to have absolute directory names. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1268 |   case $ac_val in | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1269 |     [\\/$]* | ?:[\\/]* )  continue;; | 
 | 1270 |     NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1271 |   esac | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1272 |   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] | 1273 | done | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1274 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1275 | # There might be people who depend on the old broken behavior: `$host' | 
 | 1276 | # used to hold the argument of --host etc. | 
 | 1277 | # FIXME: To remove some day. | 
 | 1278 | build=$build_alias | 
 | 1279 | host=$host_alias | 
 | 1280 | target=$target_alias | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1281 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1282 | # FIXME: To remove some day. | 
 | 1283 | if test "x$host_alias" != x; then | 
 | 1284 |   if test "x$build_alias" = x; then | 
 | 1285 |     cross_compiling=maybe | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1286 |   elif test "x$build_alias" != "x$host_alias"; then | 
 | 1287 |     cross_compiling=yes | 
 | 1288 |   fi | 
 | 1289 | fi | 
 | 1290 |  | 
 | 1291 | ac_tool_prefix= | 
 | 1292 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | 
 | 1293 |  | 
 | 1294 | test "$silent" = yes && exec 6>/dev/null | 
 | 1295 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1296 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1297 | ac_pwd=`pwd` && test -n "$ac_pwd" && | 
 | 1298 | ac_ls_di=`ls -di .` && | 
 | 1299 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1300 |   as_fn_error $? "working directory cannot be determined" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1301 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1302 |   as_fn_error $? "pwd does not report name of working directory" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1303 |  | 
 | 1304 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1305 | # Find the source files, if location was not specified. | 
 | 1306 | if test -z "$srcdir"; then | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1307 |   ac_srcdir_defaulted=yes | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1308 |   # Try the directory containing this script, then the parent directory. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1309 |   ac_confdir=`$as_dirname -- "$as_myself" || | 
 | 1310 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
 | 1311 | 	 X"$as_myself" : 'X\(//\)[^/]' \| \ | 
 | 1312 | 	 X"$as_myself" : 'X\(//\)$' \| \ | 
 | 1313 | 	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | 
 | 1314 | $as_echo X"$as_myself" | | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1315 |     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
 | 1316 | 	    s//\1/ | 
 | 1317 | 	    q | 
 | 1318 | 	  } | 
 | 1319 | 	  /^X\(\/\/\)[^/].*/{ | 
 | 1320 | 	    s//\1/ | 
 | 1321 | 	    q | 
 | 1322 | 	  } | 
 | 1323 | 	  /^X\(\/\/\)$/{ | 
 | 1324 | 	    s//\1/ | 
 | 1325 | 	    q | 
 | 1326 | 	  } | 
 | 1327 | 	  /^X\(\/\).*/{ | 
 | 1328 | 	    s//\1/ | 
 | 1329 | 	    q | 
 | 1330 | 	  } | 
 | 1331 | 	  s/.*/./; q'` | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1332 |   srcdir=$ac_confdir | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1333 |   if test ! -r "$srcdir/$ac_unique_file"; then | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1334 |     srcdir=.. | 
 | 1335 |   fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1336 | else | 
 | 1337 |   ac_srcdir_defaulted=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1338 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1339 | if test ! -r "$srcdir/$ac_unique_file"; then | 
 | 1340 |   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1341 |   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1342 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1343 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | 
 | 1344 | ac_abs_confdir=`( | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1345 | 	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1346 | 	pwd)` | 
 | 1347 | # When building in place, set srcdir=. | 
 | 1348 | if test "$ac_abs_confdir" = "$ac_pwd"; then | 
 | 1349 |   srcdir=. | 
 | 1350 | fi | 
 | 1351 | # Remove unnecessary trailing slashes from srcdir. | 
 | 1352 | # Double slashes in file names in object file debugging info | 
 | 1353 | # mess up M-x gdb in Emacs. | 
 | 1354 | case $srcdir in | 
 | 1355 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | 
 | 1356 | esac | 
 | 1357 | for ac_var in $ac_precious_vars; do | 
 | 1358 |   eval ac_env_${ac_var}_set=\${${ac_var}+set} | 
 | 1359 |   eval ac_env_${ac_var}_value=\$${ac_var} | 
 | 1360 |   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | 
 | 1361 |   eval ac_cv_env_${ac_var}_value=\$${ac_var} | 
 | 1362 | done | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1363 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1364 | # | 
 | 1365 | # Report the --help message. | 
 | 1366 | # | 
 | 1367 | if test "$ac_init_help" = "long"; then | 
 | 1368 |   # Omit some internal or obsolete options to make the list less imposing. | 
 | 1369 |   # This message is too long to be a string in the A/UX 3.1 sh. | 
 | 1370 |   cat <<_ACEOF | 
| Georg Brandl | 08a9012 | 2012-09-29 09:34:13 +0200 | [diff] [blame] | 1371 | \`configure' configures python 3.4 to adapt to many kinds of systems. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1372 |  | 
 | 1373 | Usage: $0 [OPTION]... [VAR=VALUE]... | 
 | 1374 |  | 
 | 1375 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | 
 | 1376 | VAR=VALUE.  See below for descriptions of some of the useful variables. | 
 | 1377 |  | 
 | 1378 | Defaults for the options are specified in brackets. | 
 | 1379 |  | 
 | 1380 | Configuration: | 
 | 1381 |   -h, --help              display this help and exit | 
 | 1382 |       --help=short        display options specific to this package | 
 | 1383 |       --help=recursive    display the short help of all the included packages | 
 | 1384 |   -V, --version           display version information and exit | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1385 |   -q, --quiet, --silent   do not print \`checking ...' messages | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1386 |       --cache-file=FILE   cache test results in FILE [disabled] | 
 | 1387 |   -C, --config-cache      alias for \`--cache-file=config.cache' | 
 | 1388 |   -n, --no-create         do not create output files | 
 | 1389 |       --srcdir=DIR        find the sources in DIR [configure dir or \`..'] | 
 | 1390 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1391 | Installation directories: | 
 | 1392 |   --prefix=PREFIX         install architecture-independent files in PREFIX | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1393 |                           [$ac_default_prefix] | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1394 |   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1395 |                           [PREFIX] | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1396 |  | 
 | 1397 | By default, \`make install' will install all the files in | 
 | 1398 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify | 
 | 1399 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | 
 | 1400 | for instance \`--prefix=\$HOME'. | 
 | 1401 |  | 
 | 1402 | For better control, use the options below. | 
 | 1403 |  | 
 | 1404 | Fine tuning of the installation directories: | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1405 |   --bindir=DIR            user executables [EPREFIX/bin] | 
 | 1406 |   --sbindir=DIR           system admin executables [EPREFIX/sbin] | 
 | 1407 |   --libexecdir=DIR        program executables [EPREFIX/libexec] | 
 | 1408 |   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc] | 
 | 1409 |   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com] | 
 | 1410 |   --localstatedir=DIR     modifiable single-machine data [PREFIX/var] | 
 | 1411 |   --libdir=DIR            object code libraries [EPREFIX/lib] | 
 | 1412 |   --includedir=DIR        C header files [PREFIX/include] | 
 | 1413 |   --oldincludedir=DIR     C header files for non-gcc [/usr/include] | 
 | 1414 |   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share] | 
 | 1415 |   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR] | 
 | 1416 |   --infodir=DIR           info documentation [DATAROOTDIR/info] | 
 | 1417 |   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale] | 
 | 1418 |   --mandir=DIR            man documentation [DATAROOTDIR/man] | 
 | 1419 |   --docdir=DIR            documentation root [DATAROOTDIR/doc/python] | 
 | 1420 |   --htmldir=DIR           html documentation [DOCDIR] | 
 | 1421 |   --dvidir=DIR            dvi documentation [DOCDIR] | 
 | 1422 |   --pdfdir=DIR            pdf documentation [DOCDIR] | 
 | 1423 |   --psdir=DIR             ps documentation [DOCDIR] | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1424 | _ACEOF | 
 | 1425 |  | 
 | 1426 |   cat <<\_ACEOF | 
| Matthias Klose | ca2f6ec | 2012-03-15 21:30:11 +0100 | [diff] [blame] | 1427 |  | 
 | 1428 | System types: | 
 | 1429 |   --build=BUILD     configure for building on BUILD [guessed] | 
 | 1430 |   --host=HOST       cross-compile to build programs to run on HOST [BUILD] | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1431 | _ACEOF | 
 | 1432 | fi | 
 | 1433 |  | 
 | 1434 | if test -n "$ac_init_help"; then | 
| Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1435 |   case $ac_init_help in | 
| Georg Brandl | 08a9012 | 2012-09-29 09:34:13 +0200 | [diff] [blame] | 1436 |      short | recursive ) echo "Configuration of python 3.4:";; | 
| Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1437 |    esac | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1438 |   cat <<\_ACEOF | 
 | 1439 |  | 
 | 1440 | Optional Features: | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1441 |   --disable-option-checking  ignore unrecognized --enable/--with options | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1442 |   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no) | 
 | 1443 |   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes] | 
| Christian Heimes | 68f5fbe | 2008-02-14 08:27:37 +0000 | [diff] [blame] | 1444 |   --enable-universalsdk[=SDKDIR] | 
| Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 1445 |                           Build fat binary against Mac OS X SDK | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1446 |   --enable-framework[=INSTALLDIR] | 
 | 1447 |                           Build (MacOSX|Darwin) framework | 
 | 1448 |   --enable-shared         disable/enable building shared python library | 
| Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 1449 |   --enable-profiling      enable C-level code profiling | 
| Benjamin Peterson | 076ed00 | 2010-10-31 17:11:02 +0000 | [diff] [blame] | 1450 |   --enable-loadable-sqlite-extensions | 
 | 1451 |                           support loadable extensions in _sqlite module | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1452 |   --enable-ipv6           Enable ipv6 (with ipv4) support | 
 | 1453 |   --disable-ipv6          Disable ipv6 support | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 1454 |   --enable-big-digits[=BITS] | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1455 |                           use big digits for Python longs [[BITS=30]] | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1456 |  | 
 | 1457 | Optional Packages: | 
 | 1458 |   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes] | 
 | 1459 |   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no) | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 1460 |   --with-universal-archs=ARCH | 
 | 1461 |                           select architectures for universal build ("32-bit", | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 1462 |                           "64-bit", "3-way", "intel", "intel-32", or "all") | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 1463 |   --with-framework-name=FRAMEWORK | 
 | 1464 |                           specify an alternate name of the framework built | 
 | 1465 |                           with --enable-framework | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1466 |   --without-gcc           never use gcc | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 1467 |   --with-cxx-main=<compiler> | 
 | 1468 |                           compile main() and link python executable with C++ | 
 | 1469 |                           compiler | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1470 |   --with-suffix=.exe      set executable suffix | 
 | 1471 |   --with-pydebug          build with Py_DEBUG defined | 
| Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 1472 |   --with-hash-algorithm=[fnv|siphash24] | 
 | 1473 |                           select hash algorithm | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1474 |   --with-libs='lib1 ...'  link against additional libs | 
| Benjamin Peterson | b2d9046 | 2009-12-31 03:23:10 +0000 | [diff] [blame] | 1475 |   --with-system-expat     build pyexpat module using an installed expat | 
 | 1476 |                           library | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 1477 |   --with-system-ffi       build _ctypes module using an installed ffi library | 
| Stefan Krah | 60187b5 | 2012-03-23 19:06:27 +0100 | [diff] [blame] | 1478 |   --with-system-libmpdec  build _decimal module using an installed libmpdec | 
 | 1479 |                           library | 
| Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 1480 |   --with-tcltk-includes='-I...' | 
 | 1481 |                           override search for Tcl and Tk include files | 
 | 1482 |   --with-tcltk-libs='-L...' | 
 | 1483 |                           override search for Tcl and Tk libs | 
| Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 1484 |   --with-dbmliborder=db1:db2:... | 
 | 1485 |                           order to check db backends for dbm. Valid value is a | 
 | 1486 |                           colon separated string with the backend names | 
 | 1487 |                           `ndbm', `gdbm' and `bdb'. | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1488 |   --with-signal-module    disable/enable signal module | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1489 |   --with(out)-threads[=DIRECTORY] | 
 | 1490 |                           disable/enable thread support | 
 | 1491 |   --with(out)-thread[=DIRECTORY] | 
 | 1492 |                           deprecated; use --with(out)-threads | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1493 |   --with(out)-doc-strings disable/enable documentation strings | 
| Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 1494 |   --with(out)-tsc         enable/disable timestamp counter profile | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1495 |   --with(out)-pymalloc    disable/enable specialized mallocs | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 1496 |   --with-valgrind         Enable Valgrind support | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1497 |   --with-fpectl           enable SIGFPE catching | 
 | 1498 |   --with-libm=STRING      math library | 
 | 1499 |   --with-libc=STRING      C library | 
| Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 1500 |   --with(out)-computed-gotos | 
 | 1501 |                           Use computed gotos in evaluation loop (enabled by | 
 | 1502 |                           default on supported compilers) | 
| Ned Deily | 322f5ba | 2013-11-21 23:01:59 -0800 | [diff] [blame] | 1503 |   --with(out)-ensurepip=[=upgrade] | 
 | 1504 |                           "install" or "upgrade" using bundled pip | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1505 |  | 
 | 1506 | Some influential environment variables: | 
| doko@python.org | eab42bf | 2013-01-26 18:57:19 +0100 | [diff] [blame] | 1507 |   MACHDEP     name for machine-dependent library files | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1508 |   CC          C compiler command | 
 | 1509 |   CFLAGS      C compiler flags | 
 | 1510 |   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a | 
 | 1511 |               nonstandard directory <lib dir> | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1512 |   LIBS        libraries to pass to the linker, e.g. -l<library> | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1513 |   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1514 |               you have headers in a nonstandard directory <include dir> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1515 |   CPP         C preprocessor | 
 | 1516 |  | 
 | 1517 | Use these variables to override the choices made by `configure' or to help | 
 | 1518 | it to find libraries and programs with nonstandard names/locations. | 
 | 1519 |  | 
| Georg Brandl | e2e1561 | 2009-05-20 18:25:10 +0000 | [diff] [blame] | 1520 | Report bugs to <http://bugs.python.org/>. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1521 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1522 | ac_status=$? | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1523 | fi | 
 | 1524 |  | 
 | 1525 | if test "$ac_init_help" = "recursive"; then | 
 | 1526 |   # If there are subdirs, report their specific --help. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1527 |   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] | 1528 |     test -d "$ac_dir" || | 
 | 1529 |       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | 
 | 1530 |       continue | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1531 |     ac_builddir=. | 
 | 1532 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1533 | case "$ac_dir" in | 
 | 1534 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
 | 1535 | *) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1536 |   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1537 |   # A ".." for each directory in $ac_dir_suffix. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1538 |   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] | 1539 |   case $ac_top_builddir_sub in | 
 | 1540 |   "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
 | 1541 |   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;; | 
 | 1542 |   esac ;; | 
 | 1543 | esac | 
 | 1544 | ac_abs_top_builddir=$ac_pwd | 
 | 1545 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | 
 | 1546 | # for backward compatibility: | 
 | 1547 | ac_top_builddir=$ac_top_build_prefix | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1548 |  | 
 | 1549 | case $srcdir in | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1550 |   .)  # We are building in place. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1551 |     ac_srcdir=. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1552 |     ac_top_srcdir=$ac_top_builddir_sub | 
 | 1553 |     ac_abs_top_srcdir=$ac_pwd ;; | 
 | 1554 |   [\\/]* | ?:[\\/]* )  # Absolute name. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1555 |     ac_srcdir=$srcdir$ac_dir_suffix; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1556 |     ac_top_srcdir=$srcdir | 
 | 1557 |     ac_abs_top_srcdir=$srcdir ;; | 
 | 1558 |   *) # Relative name. | 
 | 1559 |     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | 
 | 1560 |     ac_top_srcdir=$ac_top_build_prefix$srcdir | 
 | 1561 |     ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1562 | esac | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1563 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1564 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1565 |     cd "$ac_dir" || { ac_status=$?; continue; } | 
 | 1566 |     # Check for guested configure. | 
 | 1567 |     if test -f "$ac_srcdir/configure.gnu"; then | 
 | 1568 |       echo && | 
 | 1569 |       $SHELL "$ac_srcdir/configure.gnu" --help=recursive | 
 | 1570 |     elif test -f "$ac_srcdir/configure"; then | 
 | 1571 |       echo && | 
 | 1572 |       $SHELL "$ac_srcdir/configure" --help=recursive | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1573 |     else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1574 |       $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] | 1575 |     fi || ac_status=$? | 
 | 1576 |     cd "$ac_pwd" || { ac_status=$?; break; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1577 |   done | 
 | 1578 | fi | 
 | 1579 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1580 | test -n "$ac_init_help" && exit $ac_status | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1581 | if $ac_init_version; then | 
 | 1582 |   cat <<\_ACEOF | 
| Georg Brandl | 08a9012 | 2012-09-29 09:34:13 +0200 | [diff] [blame] | 1583 | python configure 3.4 | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 1584 | generated by GNU Autoconf 2.69 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1585 |  | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 1586 | Copyright (C) 2012 Free Software Foundation, Inc. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1587 | This configure script is free software; the Free Software Foundation | 
 | 1588 | gives unlimited permission to copy, distribute and modify it. | 
 | 1589 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1590 |   exit | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1591 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1592 |  | 
 | 1593 | ## ------------------------ ## | 
 | 1594 | ## Autoconf initialization. ## | 
 | 1595 | ## ------------------------ ## | 
 | 1596 |  | 
 | 1597 | # ac_fn_c_try_compile LINENO | 
 | 1598 | # -------------------------- | 
 | 1599 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | 
 | 1600 | ac_fn_c_try_compile () | 
 | 1601 | { | 
 | 1602 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 1603 |   rm -f conftest.$ac_objext | 
 | 1604 |   if { { ac_try="$ac_compile" | 
 | 1605 | case "(($ac_try" in | 
 | 1606 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 1607 |   *) ac_try_echo=$ac_try;; | 
 | 1608 | esac | 
 | 1609 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 1610 | $as_echo "$ac_try_echo"; } >&5 | 
 | 1611 |   (eval "$ac_compile") 2>conftest.err | 
 | 1612 |   ac_status=$? | 
 | 1613 |   if test -s conftest.err; then | 
 | 1614 |     grep -v '^ *+' conftest.err >conftest.er1 | 
 | 1615 |     cat conftest.er1 >&5 | 
 | 1616 |     mv -f conftest.er1 conftest.err | 
 | 1617 |   fi | 
 | 1618 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 1619 |   test $ac_status = 0; } && { | 
 | 1620 | 	 test -z "$ac_c_werror_flag" || | 
 | 1621 | 	 test ! -s conftest.err | 
 | 1622 |        } && test -s conftest.$ac_objext; then : | 
 | 1623 |   ac_retval=0 | 
 | 1624 | else | 
 | 1625 |   $as_echo "$as_me: failed program was:" >&5 | 
 | 1626 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 1627 |  | 
 | 1628 | 	ac_retval=1 | 
 | 1629 | fi | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1630 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1631 |   as_fn_set_status $ac_retval | 
 | 1632 |  | 
 | 1633 | } # ac_fn_c_try_compile | 
 | 1634 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1635 | # ac_fn_c_try_link LINENO | 
 | 1636 | # ----------------------- | 
 | 1637 | # Try to link conftest.$ac_ext, and return whether this succeeded. | 
 | 1638 | ac_fn_c_try_link () | 
 | 1639 | { | 
 | 1640 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 1641 |   rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 1642 |   if { { ac_try="$ac_link" | 
 | 1643 | case "(($ac_try" in | 
 | 1644 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 1645 |   *) ac_try_echo=$ac_try;; | 
 | 1646 | esac | 
 | 1647 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 1648 | $as_echo "$ac_try_echo"; } >&5 | 
 | 1649 |   (eval "$ac_link") 2>conftest.err | 
 | 1650 |   ac_status=$? | 
 | 1651 |   if test -s conftest.err; then | 
 | 1652 |     grep -v '^ *+' conftest.err >conftest.er1 | 
 | 1653 |     cat conftest.er1 >&5 | 
 | 1654 |     mv -f conftest.er1 conftest.err | 
 | 1655 |   fi | 
 | 1656 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 1657 |   test $ac_status = 0; } && { | 
 | 1658 | 	 test -z "$ac_c_werror_flag" || | 
 | 1659 | 	 test ! -s conftest.err | 
 | 1660 |        } && test -s conftest$ac_exeext && { | 
 | 1661 | 	 test "$cross_compiling" = yes || | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 1662 | 	 test -x conftest$ac_exeext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1663 |        }; then : | 
 | 1664 |   ac_retval=0 | 
 | 1665 | else | 
 | 1666 |   $as_echo "$as_me: failed program was:" >&5 | 
 | 1667 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 1668 |  | 
 | 1669 | 	ac_retval=1 | 
 | 1670 | fi | 
 | 1671 |   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | 
 | 1672 |   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | 
 | 1673 |   # interfere with the next link command; also delete a directory that is | 
 | 1674 |   # left behind by Apple's compiler.  We do this before executing the actions. | 
 | 1675 |   rm -rf conftest.dSYM conftest_ipa8_conftest.oo | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1676 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1677 |   as_fn_set_status $ac_retval | 
 | 1678 |  | 
 | 1679 | } # ac_fn_c_try_link | 
 | 1680 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1681 | # ac_fn_c_try_cpp LINENO | 
 | 1682 | # ---------------------- | 
 | 1683 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | 
 | 1684 | ac_fn_c_try_cpp () | 
 | 1685 | { | 
 | 1686 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 1687 |   if { { ac_try="$ac_cpp conftest.$ac_ext" | 
 | 1688 | case "(($ac_try" in | 
 | 1689 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 1690 |   *) ac_try_echo=$ac_try;; | 
 | 1691 | esac | 
 | 1692 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 1693 | $as_echo "$ac_try_echo"; } >&5 | 
 | 1694 |   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | 
 | 1695 |   ac_status=$? | 
 | 1696 |   if test -s conftest.err; then | 
 | 1697 |     grep -v '^ *+' conftest.err >conftest.er1 | 
 | 1698 |     cat conftest.er1 >&5 | 
 | 1699 |     mv -f conftest.er1 conftest.err | 
 | 1700 |   fi | 
 | 1701 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1702 |   test $ac_status = 0; } > conftest.i && { | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1703 | 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | 
 | 1704 | 	 test ! -s conftest.err | 
 | 1705 |        }; then : | 
 | 1706 |   ac_retval=0 | 
 | 1707 | else | 
 | 1708 |   $as_echo "$as_me: failed program was:" >&5 | 
 | 1709 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 1710 |  | 
 | 1711 |     ac_retval=1 | 
 | 1712 | fi | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1713 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1714 |   as_fn_set_status $ac_retval | 
 | 1715 |  | 
 | 1716 | } # ac_fn_c_try_cpp | 
 | 1717 |  | 
 | 1718 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | 
 | 1719 | # ------------------------------------------------------- | 
 | 1720 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | 
 | 1721 | # the include files in INCLUDES and setting the cache variable VAR | 
 | 1722 | # accordingly. | 
 | 1723 | ac_fn_c_check_header_mongrel () | 
 | 1724 | { | 
 | 1725 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1726 |   if eval \${$3+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1727 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
 | 1728 | $as_echo_n "checking for $2... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1729 | if eval \${$3+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1730 |   $as_echo_n "(cached) " >&6 | 
 | 1731 | fi | 
 | 1732 | eval ac_res=\$$3 | 
 | 1733 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 1734 | $as_echo "$ac_res" >&6; } | 
 | 1735 | else | 
 | 1736 |   # Is the header compilable? | 
 | 1737 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | 
 | 1738 | $as_echo_n "checking $2 usability... " >&6; } | 
 | 1739 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 1740 | /* end confdefs.h.  */ | 
 | 1741 | $4 | 
 | 1742 | #include <$2> | 
 | 1743 | _ACEOF | 
 | 1744 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 1745 |   ac_header_compiler=yes | 
 | 1746 | else | 
 | 1747 |   ac_header_compiler=no | 
 | 1748 | fi | 
 | 1749 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 1750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | 
 | 1751 | $as_echo "$ac_header_compiler" >&6; } | 
 | 1752 |  | 
 | 1753 | # Is the header present? | 
 | 1754 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | 
 | 1755 | $as_echo_n "checking $2 presence... " >&6; } | 
 | 1756 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 1757 | /* end confdefs.h.  */ | 
 | 1758 | #include <$2> | 
 | 1759 | _ACEOF | 
 | 1760 | if ac_fn_c_try_cpp "$LINENO"; then : | 
 | 1761 |   ac_header_preproc=yes | 
 | 1762 | else | 
 | 1763 |   ac_header_preproc=no | 
 | 1764 | fi | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1765 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | 
 | 1767 | $as_echo "$ac_header_preproc" >&6; } | 
 | 1768 |  | 
 | 1769 | # So?  What about this header? | 
 | 1770 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | 
 | 1771 |   yes:no: ) | 
 | 1772 |     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | 
 | 1773 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
 | 1774 |     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | 
 | 1775 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | 
 | 1776 |     ;; | 
 | 1777 |   no:yes:* ) | 
 | 1778 |     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | 
 | 1779 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | 
 | 1780 |     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5 | 
 | 1781 | $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;} | 
 | 1782 |     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | 
 | 1783 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | 
 | 1784 |     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5 | 
 | 1785 | $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;} | 
 | 1786 |     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | 
 | 1787 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1788 | ( $as_echo "## -------------------------------------- ## | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1789 | ## Report this to http://bugs.python.org/ ## | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1790 | ## -------------------------------------- ##" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1791 |      ) | sed "s/^/$as_me: WARNING:     /" >&2 | 
 | 1792 |     ;; | 
 | 1793 | esac | 
 | 1794 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
 | 1795 | $as_echo_n "checking for $2... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1796 | if eval \${$3+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1797 |   $as_echo_n "(cached) " >&6 | 
 | 1798 | else | 
 | 1799 |   eval "$3=\$ac_header_compiler" | 
 | 1800 | fi | 
 | 1801 | eval ac_res=\$$3 | 
 | 1802 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 1803 | $as_echo "$ac_res" >&6; } | 
 | 1804 | fi | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1805 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1806 |  | 
 | 1807 | } # ac_fn_c_check_header_mongrel | 
 | 1808 |  | 
 | 1809 | # ac_fn_c_try_run LINENO | 
 | 1810 | # ---------------------- | 
 | 1811 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | 
 | 1812 | # that executables *can* be run. | 
 | 1813 | ac_fn_c_try_run () | 
 | 1814 | { | 
 | 1815 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 1816 |   if { { ac_try="$ac_link" | 
 | 1817 | case "(($ac_try" in | 
 | 1818 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 1819 |   *) ac_try_echo=$ac_try;; | 
 | 1820 | esac | 
 | 1821 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 1822 | $as_echo "$ac_try_echo"; } >&5 | 
 | 1823 |   (eval "$ac_link") 2>&5 | 
 | 1824 |   ac_status=$? | 
 | 1825 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 1826 |   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | 
 | 1827 |   { { case "(($ac_try" in | 
 | 1828 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 1829 |   *) ac_try_echo=$ac_try;; | 
 | 1830 | esac | 
 | 1831 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 1832 | $as_echo "$ac_try_echo"; } >&5 | 
 | 1833 |   (eval "$ac_try") 2>&5 | 
 | 1834 |   ac_status=$? | 
 | 1835 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 1836 |   test $ac_status = 0; }; }; then : | 
 | 1837 |   ac_retval=0 | 
 | 1838 | else | 
 | 1839 |   $as_echo "$as_me: program exited with status $ac_status" >&5 | 
 | 1840 |        $as_echo "$as_me: failed program was:" >&5 | 
 | 1841 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 1842 |  | 
 | 1843 |        ac_retval=$ac_status | 
 | 1844 | fi | 
 | 1845 |   rm -rf conftest.dSYM conftest_ipa8_conftest.oo | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1846 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1847 |   as_fn_set_status $ac_retval | 
 | 1848 |  | 
 | 1849 | } # ac_fn_c_try_run | 
 | 1850 |  | 
 | 1851 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | 
 | 1852 | # ------------------------------------------------------- | 
 | 1853 | # Tests whether HEADER exists and can be compiled using the include files in | 
 | 1854 | # INCLUDES, setting the cache variable VAR accordingly. | 
 | 1855 | ac_fn_c_check_header_compile () | 
 | 1856 | { | 
 | 1857 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 1858 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
 | 1859 | $as_echo_n "checking for $2... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1860 | if eval \${$3+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1861 |   $as_echo_n "(cached) " >&6 | 
 | 1862 | else | 
 | 1863 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 1864 | /* end confdefs.h.  */ | 
 | 1865 | $4 | 
 | 1866 | #include <$2> | 
 | 1867 | _ACEOF | 
 | 1868 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 1869 |   eval "$3=yes" | 
 | 1870 | else | 
 | 1871 |   eval "$3=no" | 
 | 1872 | fi | 
 | 1873 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 1874 | fi | 
 | 1875 | eval ac_res=\$$3 | 
 | 1876 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 1877 | $as_echo "$ac_res" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1878 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1879 |  | 
 | 1880 | } # ac_fn_c_check_header_compile | 
 | 1881 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1882 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES | 
 | 1883 | # ------------------------------------------- | 
 | 1884 | # Tests whether TYPE exists after having included INCLUDES, setting cache | 
 | 1885 | # variable VAR accordingly. | 
 | 1886 | ac_fn_c_check_type () | 
 | 1887 | { | 
 | 1888 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 1889 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
 | 1890 | $as_echo_n "checking for $2... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1891 | if eval \${$3+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1892 |   $as_echo_n "(cached) " >&6 | 
 | 1893 | else | 
 | 1894 |   eval "$3=no" | 
 | 1895 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 1896 | /* end confdefs.h.  */ | 
 | 1897 | $4 | 
 | 1898 | int | 
 | 1899 | main () | 
 | 1900 | { | 
 | 1901 | if (sizeof ($2)) | 
 | 1902 | 	 return 0; | 
 | 1903 |   ; | 
 | 1904 |   return 0; | 
 | 1905 | } | 
 | 1906 | _ACEOF | 
 | 1907 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 1908 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 1909 | /* end confdefs.h.  */ | 
 | 1910 | $4 | 
 | 1911 | int | 
 | 1912 | main () | 
 | 1913 | { | 
 | 1914 | if (sizeof (($2))) | 
 | 1915 | 	    return 0; | 
 | 1916 |   ; | 
 | 1917 |   return 0; | 
 | 1918 | } | 
 | 1919 | _ACEOF | 
 | 1920 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 1921 |  | 
 | 1922 | else | 
 | 1923 |   eval "$3=yes" | 
 | 1924 | fi | 
 | 1925 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 1926 | fi | 
 | 1927 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 1928 | fi | 
 | 1929 | eval ac_res=\$$3 | 
 | 1930 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 1931 | $as_echo "$ac_res" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1932 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1933 |  | 
 | 1934 | } # ac_fn_c_check_type | 
 | 1935 |  | 
 | 1936 | # ac_fn_c_find_uintX_t LINENO BITS VAR | 
 | 1937 | # ------------------------------------ | 
 | 1938 | # Finds an unsigned integer type with width BITS, setting cache variable VAR | 
 | 1939 | # accordingly. | 
 | 1940 | ac_fn_c_find_uintX_t () | 
 | 1941 | { | 
 | 1942 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 1943 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 | 
 | 1944 | $as_echo_n "checking for uint$2_t... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1945 | if eval \${$3+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1946 |   $as_echo_n "(cached) " >&6 | 
 | 1947 | else | 
 | 1948 |   eval "$3=no" | 
 | 1949 |      # Order is important - never check a type that is potentially smaller | 
 | 1950 |      # than half of the expected target width. | 
 | 1951 |      for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ | 
 | 1952 | 	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do | 
 | 1953 |        cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 1954 | /* end confdefs.h.  */ | 
 | 1955 | $ac_includes_default | 
 | 1956 | int | 
 | 1957 | main () | 
 | 1958 | { | 
 | 1959 | static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 1960 | test_array [0] = 0; | 
 | 1961 | return test_array [0]; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1962 |  | 
 | 1963 |   ; | 
 | 1964 |   return 0; | 
 | 1965 | } | 
 | 1966 | _ACEOF | 
 | 1967 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 1968 |   case $ac_type in #( | 
 | 1969 |   uint$2_t) : | 
 | 1970 |     eval "$3=yes" ;; #( | 
 | 1971 |   *) : | 
 | 1972 |     eval "$3=\$ac_type" ;; | 
 | 1973 | esac | 
 | 1974 | fi | 
 | 1975 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1976 |        if eval test \"x\$"$3"\" = x"no"; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1977 |  | 
 | 1978 | else | 
 | 1979 |   break | 
 | 1980 | fi | 
 | 1981 |      done | 
 | 1982 | fi | 
 | 1983 | eval ac_res=\$$3 | 
 | 1984 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 1985 | $as_echo "$ac_res" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1986 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1987 |  | 
 | 1988 | } # ac_fn_c_find_uintX_t | 
 | 1989 |  | 
 | 1990 | # ac_fn_c_find_intX_t LINENO BITS VAR | 
 | 1991 | # ----------------------------------- | 
 | 1992 | # Finds a signed integer type with width BITS, setting cache variable VAR | 
 | 1993 | # accordingly. | 
 | 1994 | ac_fn_c_find_intX_t () | 
 | 1995 | { | 
 | 1996 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 1997 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 | 
 | 1998 | $as_echo_n "checking for int$2_t... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1999 | if eval \${$3+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2000 |   $as_echo_n "(cached) " >&6 | 
 | 2001 | else | 
 | 2002 |   eval "$3=no" | 
 | 2003 |      # Order is important - never check a type that is potentially smaller | 
 | 2004 |      # than half of the expected target width. | 
 | 2005 |      for ac_type in int$2_t 'int' 'long int' \ | 
 | 2006 | 	 'long long int' 'short int' 'signed char'; do | 
 | 2007 |        cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2008 | /* end confdefs.h.  */ | 
 | 2009 | $ac_includes_default | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 2010 | 	     enum { N = $2 / 2 - 1 }; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2011 | int | 
 | 2012 | main () | 
 | 2013 | { | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 2014 | static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2015 | test_array [0] = 0; | 
 | 2016 | return test_array [0]; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2017 |  | 
 | 2018 |   ; | 
 | 2019 |   return 0; | 
 | 2020 | } | 
 | 2021 | _ACEOF | 
 | 2022 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2023 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2024 | /* end confdefs.h.  */ | 
 | 2025 | $ac_includes_default | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 2026 | 	        enum { N = $2 / 2 - 1 }; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2027 | int | 
 | 2028 | main () | 
 | 2029 | { | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 2030 | 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] | 2031 | 		 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2032 | test_array [0] = 0; | 
 | 2033 | return test_array [0]; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2034 |  | 
 | 2035 |   ; | 
 | 2036 |   return 0; | 
 | 2037 | } | 
 | 2038 | _ACEOF | 
 | 2039 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2040 |  | 
 | 2041 | else | 
 | 2042 |   case $ac_type in #( | 
 | 2043 |   int$2_t) : | 
 | 2044 |     eval "$3=yes" ;; #( | 
 | 2045 |   *) : | 
 | 2046 |     eval "$3=\$ac_type" ;; | 
 | 2047 | esac | 
 | 2048 | fi | 
 | 2049 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2050 | fi | 
 | 2051 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2052 |        if eval test \"x\$"$3"\" = x"no"; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2053 |  | 
 | 2054 | else | 
 | 2055 |   break | 
 | 2056 | fi | 
 | 2057 |      done | 
 | 2058 | fi | 
 | 2059 | eval ac_res=\$$3 | 
 | 2060 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 2061 | $as_echo "$ac_res" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2062 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2063 |  | 
 | 2064 | } # ac_fn_c_find_intX_t | 
 | 2065 |  | 
 | 2066 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES | 
 | 2067 | # -------------------------------------------- | 
 | 2068 | # Tries to find the compile-time value of EXPR in a program that includes | 
 | 2069 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | 
 | 2070 | # computed | 
 | 2071 | ac_fn_c_compute_int () | 
 | 2072 | { | 
 | 2073 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 2074 |   if test "$cross_compiling" = yes; then | 
 | 2075 |     # Depending upon the size, compute the lo and hi bounds. | 
 | 2076 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2077 | /* end confdefs.h.  */ | 
 | 2078 | $4 | 
 | 2079 | int | 
 | 2080 | main () | 
 | 2081 | { | 
 | 2082 | static int test_array [1 - 2 * !(($2) >= 0)]; | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2083 | test_array [0] = 0; | 
 | 2084 | return test_array [0]; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2085 |  | 
 | 2086 |   ; | 
 | 2087 |   return 0; | 
 | 2088 | } | 
 | 2089 | _ACEOF | 
 | 2090 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2091 |   ac_lo=0 ac_mid=0 | 
 | 2092 |   while :; do | 
 | 2093 |     cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2094 | /* end confdefs.h.  */ | 
 | 2095 | $4 | 
 | 2096 | int | 
 | 2097 | main () | 
 | 2098 | { | 
 | 2099 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2100 | test_array [0] = 0; | 
 | 2101 | return test_array [0]; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2102 |  | 
 | 2103 |   ; | 
 | 2104 |   return 0; | 
 | 2105 | } | 
 | 2106 | _ACEOF | 
 | 2107 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2108 |   ac_hi=$ac_mid; break | 
 | 2109 | else | 
 | 2110 |   as_fn_arith $ac_mid + 1 && ac_lo=$as_val | 
 | 2111 | 			if test $ac_lo -le $ac_mid; then | 
 | 2112 | 			  ac_lo= ac_hi= | 
 | 2113 | 			  break | 
 | 2114 | 			fi | 
 | 2115 | 			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | 
 | 2116 | fi | 
 | 2117 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2118 |   done | 
 | 2119 | else | 
 | 2120 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2121 | /* end confdefs.h.  */ | 
 | 2122 | $4 | 
 | 2123 | int | 
 | 2124 | main () | 
 | 2125 | { | 
 | 2126 | static int test_array [1 - 2 * !(($2) < 0)]; | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2127 | test_array [0] = 0; | 
 | 2128 | return test_array [0]; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2129 |  | 
 | 2130 |   ; | 
 | 2131 |   return 0; | 
 | 2132 | } | 
 | 2133 | _ACEOF | 
 | 2134 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2135 |   ac_hi=-1 ac_mid=-1 | 
 | 2136 |   while :; do | 
 | 2137 |     cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2138 | /* end confdefs.h.  */ | 
 | 2139 | $4 | 
 | 2140 | int | 
 | 2141 | main () | 
 | 2142 | { | 
 | 2143 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2144 | test_array [0] = 0; | 
 | 2145 | return test_array [0]; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2146 |  | 
 | 2147 |   ; | 
 | 2148 |   return 0; | 
 | 2149 | } | 
 | 2150 | _ACEOF | 
 | 2151 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2152 |   ac_lo=$ac_mid; break | 
 | 2153 | else | 
 | 2154 |   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | 
 | 2155 | 			if test $ac_mid -le $ac_hi; then | 
 | 2156 | 			  ac_lo= ac_hi= | 
 | 2157 | 			  break | 
 | 2158 | 			fi | 
 | 2159 | 			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | 
 | 2160 | fi | 
 | 2161 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2162 |   done | 
 | 2163 | else | 
 | 2164 |   ac_lo= ac_hi= | 
 | 2165 | fi | 
 | 2166 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2167 | fi | 
 | 2168 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2169 | # Binary search between lo and hi bounds. | 
 | 2170 | while test "x$ac_lo" != "x$ac_hi"; do | 
 | 2171 |   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | 
 | 2172 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2173 | /* end confdefs.h.  */ | 
 | 2174 | $4 | 
 | 2175 | int | 
 | 2176 | main () | 
 | 2177 | { | 
 | 2178 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2179 | test_array [0] = 0; | 
 | 2180 | return test_array [0]; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2181 |  | 
 | 2182 |   ; | 
 | 2183 |   return 0; | 
 | 2184 | } | 
 | 2185 | _ACEOF | 
 | 2186 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2187 |   ac_hi=$ac_mid | 
 | 2188 | else | 
 | 2189 |   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | 
 | 2190 | fi | 
 | 2191 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2192 | done | 
 | 2193 | case $ac_lo in #(( | 
 | 2194 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | 
 | 2195 | '') ac_retval=1 ;; | 
 | 2196 | esac | 
 | 2197 |   else | 
 | 2198 |     cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2199 | /* end confdefs.h.  */ | 
 | 2200 | $4 | 
 | 2201 | static long int longval () { return $2; } | 
 | 2202 | static unsigned long int ulongval () { return $2; } | 
 | 2203 | #include <stdio.h> | 
 | 2204 | #include <stdlib.h> | 
 | 2205 | int | 
 | 2206 | main () | 
 | 2207 | { | 
 | 2208 |  | 
 | 2209 |   FILE *f = fopen ("conftest.val", "w"); | 
 | 2210 |   if (! f) | 
 | 2211 |     return 1; | 
 | 2212 |   if (($2) < 0) | 
 | 2213 |     { | 
 | 2214 |       long int i = longval (); | 
 | 2215 |       if (i != ($2)) | 
 | 2216 | 	return 1; | 
 | 2217 |       fprintf (f, "%ld", i); | 
 | 2218 |     } | 
 | 2219 |   else | 
 | 2220 |     { | 
 | 2221 |       unsigned long int i = ulongval (); | 
 | 2222 |       if (i != ($2)) | 
 | 2223 | 	return 1; | 
 | 2224 |       fprintf (f, "%lu", i); | 
 | 2225 |     } | 
 | 2226 |   /* Do not output a trailing newline, as this causes \r\n confusion | 
 | 2227 |      on some platforms.  */ | 
 | 2228 |   return ferror (f) || fclose (f) != 0; | 
 | 2229 |  | 
 | 2230 |   ; | 
 | 2231 |   return 0; | 
 | 2232 | } | 
 | 2233 | _ACEOF | 
 | 2234 | if ac_fn_c_try_run "$LINENO"; then : | 
 | 2235 |   echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | 
 | 2236 | else | 
 | 2237 |   ac_retval=1 | 
 | 2238 | fi | 
 | 2239 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 2240 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
 | 2241 | rm -f conftest.val | 
 | 2242 |  | 
 | 2243 |   fi | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2244 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2245 |   as_fn_set_status $ac_retval | 
 | 2246 |  | 
 | 2247 | } # ac_fn_c_compute_int | 
 | 2248 |  | 
 | 2249 | # ac_fn_c_check_func LINENO FUNC VAR | 
 | 2250 | # ---------------------------------- | 
 | 2251 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | 
 | 2252 | ac_fn_c_check_func () | 
 | 2253 | { | 
 | 2254 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 2255 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
 | 2256 | $as_echo_n "checking for $2... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2257 | if eval \${$3+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2258 |   $as_echo_n "(cached) " >&6 | 
 | 2259 | else | 
 | 2260 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2261 | /* end confdefs.h.  */ | 
 | 2262 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | 
 | 2263 |    For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
 | 2264 | #define $2 innocuous_$2 | 
 | 2265 |  | 
 | 2266 | /* System header to define __stub macros and hopefully few prototypes, | 
 | 2267 |     which can conflict with char $2 (); below. | 
 | 2268 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 2269 |     <limits.h> exists even on freestanding compilers.  */ | 
 | 2270 |  | 
 | 2271 | #ifdef __STDC__ | 
 | 2272 | # include <limits.h> | 
 | 2273 | #else | 
 | 2274 | # include <assert.h> | 
 | 2275 | #endif | 
 | 2276 |  | 
 | 2277 | #undef $2 | 
 | 2278 |  | 
 | 2279 | /* Override any GCC internal prototype to avoid an error. | 
 | 2280 |    Use char because int might match the return type of a GCC | 
 | 2281 |    builtin and then its argument prototype would still apply.  */ | 
 | 2282 | #ifdef __cplusplus | 
 | 2283 | extern "C" | 
 | 2284 | #endif | 
 | 2285 | char $2 (); | 
 | 2286 | /* The GNU C library defines this for functions which it implements | 
 | 2287 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 2288 |     something starting with __ and the normal name is an alias.  */ | 
 | 2289 | #if defined __stub_$2 || defined __stub___$2 | 
 | 2290 | choke me | 
 | 2291 | #endif | 
 | 2292 |  | 
 | 2293 | int | 
 | 2294 | main () | 
 | 2295 | { | 
 | 2296 | return $2 (); | 
 | 2297 |   ; | 
 | 2298 |   return 0; | 
 | 2299 | } | 
 | 2300 | _ACEOF | 
 | 2301 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 2302 |   eval "$3=yes" | 
 | 2303 | else | 
 | 2304 |   eval "$3=no" | 
 | 2305 | fi | 
 | 2306 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 2307 |     conftest$ac_exeext conftest.$ac_ext | 
 | 2308 | fi | 
 | 2309 | eval ac_res=\$$3 | 
 | 2310 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 2311 | $as_echo "$ac_res" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2312 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2313 |  | 
 | 2314 | } # ac_fn_c_check_func | 
 | 2315 |  | 
| Gregory P. Smith | df300d5 | 2012-01-21 18:20:15 -0800 | [diff] [blame] | 2316 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES | 
 | 2317 | # --------------------------------------------- | 
 | 2318 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR | 
 | 2319 | # accordingly. | 
 | 2320 | ac_fn_c_check_decl () | 
 | 2321 | { | 
 | 2322 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 2323 |   as_decl_name=`echo $2|sed 's/ *(.*//'` | 
 | 2324 |   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | 
 | 2325 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | 
 | 2326 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | 
 | 2327 | if eval \${$3+:} false; then : | 
 | 2328 |   $as_echo_n "(cached) " >&6 | 
 | 2329 | else | 
 | 2330 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2331 | /* end confdefs.h.  */ | 
 | 2332 | $4 | 
 | 2333 | int | 
 | 2334 | main () | 
 | 2335 | { | 
 | 2336 | #ifndef $as_decl_name | 
 | 2337 | #ifdef __cplusplus | 
 | 2338 |   (void) $as_decl_use; | 
 | 2339 | #else | 
 | 2340 |   (void) $as_decl_name; | 
 | 2341 | #endif | 
 | 2342 | #endif | 
 | 2343 |  | 
 | 2344 |   ; | 
 | 2345 |   return 0; | 
 | 2346 | } | 
 | 2347 | _ACEOF | 
 | 2348 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2349 |   eval "$3=yes" | 
 | 2350 | else | 
 | 2351 |   eval "$3=no" | 
 | 2352 | fi | 
 | 2353 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2354 | fi | 
 | 2355 | eval ac_res=\$$3 | 
 | 2356 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 2357 | $as_echo "$ac_res" >&6; } | 
 | 2358 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
 | 2359 |  | 
 | 2360 | } # ac_fn_c_check_decl | 
 | 2361 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2362 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES | 
 | 2363 | # ---------------------------------------------------- | 
 | 2364 | # Tries to find if the field MEMBER exists in type AGGR, after including | 
 | 2365 | # INCLUDES, setting cache variable VAR accordingly. | 
 | 2366 | ac_fn_c_check_member () | 
 | 2367 | { | 
 | 2368 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 2369 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 | 
 | 2370 | $as_echo_n "checking for $2.$3... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2371 | if eval \${$4+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2372 |   $as_echo_n "(cached) " >&6 | 
 | 2373 | else | 
 | 2374 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2375 | /* end confdefs.h.  */ | 
 | 2376 | $5 | 
 | 2377 | int | 
 | 2378 | main () | 
 | 2379 | { | 
 | 2380 | static $2 ac_aggr; | 
 | 2381 | if (ac_aggr.$3) | 
 | 2382 | return 0; | 
 | 2383 |   ; | 
 | 2384 |   return 0; | 
 | 2385 | } | 
 | 2386 | _ACEOF | 
 | 2387 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2388 |   eval "$4=yes" | 
 | 2389 | else | 
 | 2390 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2391 | /* end confdefs.h.  */ | 
 | 2392 | $5 | 
 | 2393 | int | 
 | 2394 | main () | 
 | 2395 | { | 
 | 2396 | static $2 ac_aggr; | 
 | 2397 | if (sizeof ac_aggr.$3) | 
 | 2398 | return 0; | 
 | 2399 |   ; | 
 | 2400 |   return 0; | 
 | 2401 | } | 
 | 2402 | _ACEOF | 
 | 2403 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2404 |   eval "$4=yes" | 
 | 2405 | else | 
 | 2406 |   eval "$4=no" | 
 | 2407 | fi | 
 | 2408 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2409 | fi | 
 | 2410 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2411 | fi | 
 | 2412 | eval ac_res=\$$4 | 
 | 2413 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 2414 | $as_echo "$ac_res" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2415 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2416 |  | 
 | 2417 | } # ac_fn_c_check_member | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2418 | cat >config.log <<_ACEOF | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2419 | This file contains any messages produced by compilers while | 
 | 2420 | running configure, to aid debugging if configure makes a mistake. | 
 | 2421 |  | 
| Georg Brandl | 08a9012 | 2012-09-29 09:34:13 +0200 | [diff] [blame] | 2422 | It was created by python $as_me 3.4, which was | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2423 | generated by GNU Autoconf 2.69.  Invocation command line was | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2424 |  | 
 | 2425 |   $ $0 $@ | 
 | 2426 |  | 
 | 2427 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2428 | exec 5>>config.log | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2429 | { | 
 | 2430 | cat <<_ASUNAME | 
 | 2431 | ## --------- ## | 
 | 2432 | ## Platform. ## | 
 | 2433 | ## --------- ## | 
 | 2434 |  | 
 | 2435 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | 
 | 2436 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | 
 | 2437 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | 
 | 2438 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | 
 | 2439 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | 
 | 2440 |  | 
 | 2441 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | 
 | 2442 | /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown` | 
 | 2443 |  | 
 | 2444 | /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown` | 
 | 2445 | /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown` | 
 | 2446 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2447 | /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] | 2448 | /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown` | 
 | 2449 | /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown` | 
 | 2450 | /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown` | 
 | 2451 |  | 
 | 2452 | _ASUNAME | 
 | 2453 |  | 
 | 2454 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 2455 | for as_dir in $PATH | 
 | 2456 | do | 
 | 2457 |   IFS=$as_save_IFS | 
 | 2458 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2459 |     $as_echo "PATH: $as_dir" | 
 | 2460 |   done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2461 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2462 |  | 
 | 2463 | } >&5 | 
 | 2464 |  | 
 | 2465 | cat >&5 <<_ACEOF | 
 | 2466 |  | 
 | 2467 |  | 
 | 2468 | ## ----------- ## | 
 | 2469 | ## Core tests. ## | 
 | 2470 | ## ----------- ## | 
 | 2471 |  | 
 | 2472 | _ACEOF | 
 | 2473 |  | 
 | 2474 |  | 
 | 2475 | # Keep a trace of the command line. | 
 | 2476 | # 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] | 2477 | # 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] | 2478 | # Also quote any args containing shell meta-characters. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2479 | # Make two passes to allow for proper duplicate-argument suppression. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2480 | ac_configure_args= | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2481 | ac_configure_args0= | 
 | 2482 | ac_configure_args1= | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2483 | ac_must_keep_next=false | 
 | 2484 | for ac_pass in 1 2 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2485 | do | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2486 |   for ac_arg | 
 | 2487 |   do | 
 | 2488 |     case $ac_arg in | 
 | 2489 |     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | 
 | 2490 |     -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
 | 2491 |     | -silent | --silent | --silen | --sile | --sil) | 
 | 2492 |       continue ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2493 |     *\'*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2494 |       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2495 |     esac | 
 | 2496 |     case $ac_pass in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2497 |     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2498 |     2) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2499 |       as_fn_append ac_configure_args1 " '$ac_arg'" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2500 |       if test $ac_must_keep_next = true; then | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2501 | 	ac_must_keep_next=false # Got value, back to normal. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2502 |       else | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2503 | 	case $ac_arg in | 
 | 2504 | 	  *=* | --config-cache | -C | -disable-* | --disable-* \ | 
 | 2505 | 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | 
 | 2506 | 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | 
 | 2507 | 	  | -with-* | --with-* | -without-* | --without-* | --x) | 
 | 2508 | 	    case "$ac_configure_args0 " in | 
 | 2509 | 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | 
 | 2510 | 	    esac | 
 | 2511 | 	    ;; | 
 | 2512 | 	  -* ) ac_must_keep_next=true ;; | 
 | 2513 | 	esac | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2514 |       fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2515 |       as_fn_append ac_configure_args " '$ac_arg'" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2516 |       ;; | 
 | 2517 |     esac | 
 | 2518 |   done | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2519 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2520 | { ac_configure_args0=; unset ac_configure_args0;} | 
 | 2521 | { ac_configure_args1=; unset ac_configure_args1;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2522 |  | 
 | 2523 | # When interrupted or exit'd, cleanup temporary files, and complete | 
 | 2524 | # config.log.  We remove comments because anyway the quotes in there | 
 | 2525 | # would cause problems or look ugly. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2526 | # WARNING: Use '\'' to represent an apostrophe within the trap. | 
 | 2527 | # 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] | 2528 | trap 'exit_status=$? | 
 | 2529 |   # Save into config.log some information that might help in debugging. | 
 | 2530 |   { | 
 | 2531 |     echo | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2532 |  | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2533 |     $as_echo "## ---------------- ## | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2534 | ## Cache variables. ## | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2535 | ## ---------------- ##" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2536 |     echo | 
 | 2537 |     # The following way of writing the cache mishandles newlines in values, | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2538 | ( | 
 | 2539 |   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | 
 | 2540 |     eval ac_val=\$$ac_var | 
 | 2541 |     case $ac_val in #( | 
 | 2542 |     *${as_nl}*) | 
 | 2543 |       case $ac_var in #( | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2544 |       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | 
 | 2545 | $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] | 2546 |       esac | 
 | 2547 |       case $ac_var in #( | 
 | 2548 |       _ | IFS | as_nl) ;; #( | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2549 |       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | 
 | 2550 |       *) { eval $ac_var=; unset $ac_var;} ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2551 |       esac ;; | 
 | 2552 |     esac | 
 | 2553 |   done | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2554 |   (set) 2>&1 | | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2555 |     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | 
 | 2556 |     *${as_nl}ac_space=\ *) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2557 |       sed -n \ | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2558 | 	"s/'\''/'\''\\\\'\'''\''/g; | 
 | 2559 | 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | 
 | 2560 |       ;; #( | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 2561 |     *) | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2562 |       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 2563 |       ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2564 |     esac | | 
 | 2565 |     sort | 
 | 2566 | ) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2567 |     echo | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2568 |  | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2569 |     $as_echo "## ----------------- ## | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2570 | ## Output variables. ## | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2571 | ## ----------------- ##" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2572 |     echo | 
 | 2573 |     for ac_var in $ac_subst_vars | 
 | 2574 |     do | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2575 |       eval ac_val=\$$ac_var | 
 | 2576 |       case $ac_val in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2577 |       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2578 |       esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2579 |       $as_echo "$ac_var='\''$ac_val'\''" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2580 |     done | sort | 
 | 2581 |     echo | 
 | 2582 |  | 
 | 2583 |     if test -n "$ac_subst_files"; then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2584 |       $as_echo "## ------------------- ## | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2585 | ## File substitutions. ## | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2586 | ## ------------------- ##" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2587 |       echo | 
 | 2588 |       for ac_var in $ac_subst_files | 
 | 2589 |       do | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2590 | 	eval ac_val=\$$ac_var | 
 | 2591 | 	case $ac_val in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2592 | 	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2593 | 	esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2594 | 	$as_echo "$ac_var='\''$ac_val'\''" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2595 |       done | sort | 
 | 2596 |       echo | 
 | 2597 |     fi | 
 | 2598 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2599 |     if test -s confdefs.h; then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2600 |       $as_echo "## ----------- ## | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2601 | ## confdefs.h. ## | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2602 | ## ----------- ##" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2603 |       echo | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2604 |       cat confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2605 |       echo | 
 | 2606 |     fi | 
 | 2607 |     test "$ac_signal" != 0 && | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2608 |       $as_echo "$as_me: caught signal $ac_signal" | 
 | 2609 |     $as_echo "$as_me: exit $exit_status" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2610 |   } >&5 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2611 |   rm -f core *.core core.conftest.* && | 
 | 2612 |     rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2613 |     exit $exit_status | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2614 | ' 0 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2615 | for ac_signal in 1 2 13 15; do | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2616 |   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] | 2617 | done | 
 | 2618 | ac_signal=0 | 
 | 2619 |  | 
 | 2620 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2621 | rm -f -r conftest* confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2622 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2623 | $as_echo "/* confdefs.h */" > confdefs.h | 
 | 2624 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2625 | # Predefined preprocessor variables. | 
 | 2626 |  | 
 | 2627 | cat >>confdefs.h <<_ACEOF | 
 | 2628 | #define PACKAGE_NAME "$PACKAGE_NAME" | 
 | 2629 | _ACEOF | 
 | 2630 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2631 | cat >>confdefs.h <<_ACEOF | 
 | 2632 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | 
 | 2633 | _ACEOF | 
 | 2634 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2635 | cat >>confdefs.h <<_ACEOF | 
 | 2636 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | 
 | 2637 | _ACEOF | 
 | 2638 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2639 | cat >>confdefs.h <<_ACEOF | 
 | 2640 | #define PACKAGE_STRING "$PACKAGE_STRING" | 
 | 2641 | _ACEOF | 
 | 2642 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2643 | cat >>confdefs.h <<_ACEOF | 
 | 2644 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | 
 | 2645 | _ACEOF | 
 | 2646 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2647 | cat >>confdefs.h <<_ACEOF | 
 | 2648 | #define PACKAGE_URL "$PACKAGE_URL" | 
 | 2649 | _ACEOF | 
 | 2650 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2651 |  | 
 | 2652 | # 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] | 2653 | # Prefer an explicitly selected file to automatically selected ones. | 
 | 2654 | ac_site_file1=NONE | 
 | 2655 | ac_site_file2=NONE | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2656 | if test -n "$CONFIG_SITE"; then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2657 |   # We do not want a PATH search for config.site. | 
 | 2658 |   case $CONFIG_SITE in #(( | 
 | 2659 |     -*)  ac_site_file1=./$CONFIG_SITE;; | 
 | 2660 |     */*) ac_site_file1=$CONFIG_SITE;; | 
 | 2661 |     *)   ac_site_file1=./$CONFIG_SITE;; | 
 | 2662 |   esac | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2663 | elif test "x$prefix" != xNONE; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2664 |   ac_site_file1=$prefix/share/config.site | 
 | 2665 |   ac_site_file2=$prefix/etc/config.site | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2666 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2667 |   ac_site_file1=$ac_default_prefix/share/config.site | 
 | 2668 |   ac_site_file2=$ac_default_prefix/etc/config.site | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2669 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2670 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2671 | do | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2672 |   test "x$ac_site_file" = xNONE && continue | 
 | 2673 |   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | 
 | 2674 |     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | 
 | 2675 | $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] | 2676 |     sed 's/^/| /' "$ac_site_file" >&5 | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2677 |     . "$ac_site_file" \ | 
 | 2678 |       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 2679 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
 | 2680 | as_fn_error $? "failed to load site script $ac_site_file | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2681 | See \`config.log' for more details" "$LINENO" 5; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2682 |   fi | 
 | 2683 | done | 
 | 2684 |  | 
 | 2685 | if test -r "$cache_file"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2686 |   # Some versions of bash will fail to source /dev/null (special files | 
 | 2687 |   # actually), so we avoid doing that.  DJGPP emulates it as a regular file. | 
 | 2688 |   if test /dev/null != "$cache_file" && test -f "$cache_file"; then | 
 | 2689 |     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | 
 | 2690 | $as_echo "$as_me: loading cache $cache_file" >&6;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2691 |     case $cache_file in | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2692 |       [\\/]* | ?:[\\/]* ) . "$cache_file";; | 
 | 2693 |       *)                      . "./$cache_file";; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2694 |     esac | 
 | 2695 |   fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2696 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2697 |   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | 
 | 2698 | $as_echo "$as_me: creating cache $cache_file" >&6;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2699 |   >$cache_file | 
 | 2700 | fi | 
 | 2701 |  | 
 | 2702 | # Check that the precious variables saved in the cache have kept the same | 
 | 2703 | # value. | 
 | 2704 | ac_cache_corrupted=false | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2705 | for ac_var in $ac_precious_vars; do | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2706 |   eval ac_old_set=\$ac_cv_env_${ac_var}_set | 
 | 2707 |   eval ac_new_set=\$ac_env_${ac_var}_set | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2708 |   eval ac_old_val=\$ac_cv_env_${ac_var}_value | 
 | 2709 |   eval ac_new_val=\$ac_env_${ac_var}_value | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2710 |   case $ac_old_set,$ac_new_set in | 
 | 2711 |     set,) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2712 |       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | 
 | 2713 | $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] | 2714 |       ac_cache_corrupted=: ;; | 
 | 2715 |     ,set) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2716 |       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | 
 | 2717 | $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] | 2718 |       ac_cache_corrupted=: ;; | 
 | 2719 |     ,);; | 
 | 2720 |     *) | 
 | 2721 |       if test "x$ac_old_val" != "x$ac_new_val"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2722 | 	# differences in whitespace do not lead to failure. | 
 | 2723 | 	ac_old_val_w=`echo x $ac_old_val` | 
 | 2724 | 	ac_new_val_w=`echo x $ac_new_val` | 
 | 2725 | 	if test "$ac_old_val_w" != "$ac_new_val_w"; then | 
 | 2726 | 	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | 
 | 2727 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | 
 | 2728 | 	  ac_cache_corrupted=: | 
 | 2729 | 	else | 
 | 2730 | 	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | 
 | 2731 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | 
 | 2732 | 	  eval $ac_var=\$ac_old_val | 
 | 2733 | 	fi | 
 | 2734 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5 | 
 | 2735 | $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;} | 
 | 2736 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5 | 
 | 2737 | $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2738 |       fi;; | 
 | 2739 |   esac | 
 | 2740 |   # Pass precious variables to config.status. | 
 | 2741 |   if test "$ac_new_set" = set; then | 
 | 2742 |     case $ac_new_val in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2743 |     *\'*) 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] | 2744 |     *) ac_arg=$ac_var=$ac_new_val ;; | 
 | 2745 |     esac | 
 | 2746 |     case " $ac_configure_args " in | 
 | 2747 |       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2748 |       *) as_fn_append ac_configure_args " '$ac_arg'" ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2749 |     esac | 
 | 2750 |   fi | 
 | 2751 | done | 
 | 2752 | if $ac_cache_corrupted; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2753 |   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 2754 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
 | 2755 |   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | 
 | 2756 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2757 |   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] | 2758 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2759 | ## -------------------- ## | 
 | 2760 | ## Main body of script. ## | 
 | 2761 | ## -------------------- ## | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2762 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2763 | ac_ext=c | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2764 | ac_cpp='$CPP $CPPFLAGS' | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2765 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 2766 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 2767 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2768 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2769 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2770 |  | 
| Trent Nelson | 4d4ec65 | 2012-10-16 08:51:24 -0400 | [diff] [blame] | 2771 |  | 
| Trent Nelson | 5595ab5 | 2012-10-17 04:47:31 -0400 | [diff] [blame] | 2772 | if test "$abs_srcdir" != "$abs_builddir"; then | 
| Trent Nelson | 4d4ec65 | 2012-10-16 08:51:24 -0400 | [diff] [blame] | 2773 |     # If we're building out-of-tree, we need to make sure the following | 
 | 2774 |     # resources get picked up before their $srcdir counterparts. | 
 | 2775 |     #   Objects/ -> typeslots.inc | 
 | 2776 |     #   Include/ -> Python-ast.h, graminit.h | 
 | 2777 |     #   Python/  -> importlib.h | 
 | 2778 |     # (A side effect of this is that these resources will automatically be | 
 | 2779 |     #  regenerated when building out-of-tree, regardless of whether or not | 
 | 2780 |     #  the $srcdir counterpart is up-to-date.  This is an acceptable trade | 
 | 2781 |     #  off.) | 
 | 2782 |     BASECPPFLAGS="-IObjects -IInclude -IPython" | 
 | 2783 | else | 
 | 2784 |     BASECPPFLAGS="" | 
 | 2785 | fi | 
 | 2786 |  | 
| Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2787 |  | 
 | 2788 |  | 
 | 2789 |  | 
 | 2790 |  | 
| Antoine Pitrou | d3b2aef | 2011-07-27 01:22:41 +0200 | [diff] [blame] | 2791 | if test -e $srcdir/.hg/dirstate | 
| Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2792 | then | 
 | 2793 | # Extract the first word of "hg", so it can be a program name with args. | 
 | 2794 | set dummy hg; ac_word=$2 | 
 | 2795 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 2796 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2797 | if ${ac_cv_prog_HAS_HG+:} false; then : | 
| Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2798 |   $as_echo_n "(cached) " >&6 | 
 | 2799 | else | 
 | 2800 |   if test -n "$HAS_HG"; then | 
 | 2801 |   ac_cv_prog_HAS_HG="$HAS_HG" # Let the user override the test. | 
 | 2802 | else | 
 | 2803 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 2804 | for as_dir in $PATH | 
 | 2805 | do | 
 | 2806 |   IFS=$as_save_IFS | 
 | 2807 |   test -z "$as_dir" && as_dir=. | 
 | 2808 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 2809 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2810 |     ac_cv_prog_HAS_HG="found" | 
 | 2811 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 2812 |     break 2 | 
 | 2813 |   fi | 
 | 2814 | done | 
 | 2815 |   done | 
 | 2816 | IFS=$as_save_IFS | 
 | 2817 |  | 
 | 2818 |   test -z "$ac_cv_prog_HAS_HG" && ac_cv_prog_HAS_HG="not-found" | 
 | 2819 | fi | 
 | 2820 | fi | 
 | 2821 | HAS_HG=$ac_cv_prog_HAS_HG | 
 | 2822 | if test -n "$HAS_HG"; then | 
 | 2823 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAS_HG" >&5 | 
 | 2824 | $as_echo "$HAS_HG" >&6; } | 
 | 2825 | else | 
 | 2826 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 2827 | $as_echo "no" >&6; } | 
 | 2828 | fi | 
 | 2829 |  | 
 | 2830 |  | 
 | 2831 | else | 
 | 2832 | HAS_HG=no-repository | 
 | 2833 | fi | 
 | 2834 | if test $HAS_HG = found | 
 | 2835 | then | 
 | 2836 |     HGVERSION="hg id -i \$(srcdir)" | 
 | 2837 |     HGTAG="hg id -t \$(srcdir)" | 
 | 2838 |     HGBRANCH="hg id -b \$(srcdir)" | 
 | 2839 | else | 
 | 2840 |     HGVERSION="" | 
 | 2841 |     HGTAG="" | 
 | 2842 |     HGBRANCH="" | 
 | 2843 | fi | 
 | 2844 |  | 
 | 2845 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2846 | ac_config_headers="$ac_config_headers pyconfig.h" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2847 |  | 
 | 2848 |  | 
| Matthias Klose | ca2f6ec | 2012-03-15 21:30:11 +0100 | [diff] [blame] | 2849 | ac_aux_dir= | 
 | 2850 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | 
 | 2851 |   if test -f "$ac_dir/install-sh"; then | 
 | 2852 |     ac_aux_dir=$ac_dir | 
 | 2853 |     ac_install_sh="$ac_aux_dir/install-sh -c" | 
 | 2854 |     break | 
 | 2855 |   elif test -f "$ac_dir/install.sh"; then | 
 | 2856 |     ac_aux_dir=$ac_dir | 
 | 2857 |     ac_install_sh="$ac_aux_dir/install.sh -c" | 
 | 2858 |     break | 
 | 2859 |   elif test -f "$ac_dir/shtool"; then | 
 | 2860 |     ac_aux_dir=$ac_dir | 
 | 2861 |     ac_install_sh="$ac_aux_dir/shtool install -c" | 
 | 2862 |     break | 
 | 2863 |   fi | 
 | 2864 | done | 
 | 2865 | if test -z "$ac_aux_dir"; then | 
 | 2866 |   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | 
 | 2867 | fi | 
 | 2868 |  | 
 | 2869 | # These three variables are undocumented and unsupported, | 
 | 2870 | # and are intended to be withdrawn in a future Autoconf release. | 
 | 2871 | # They can cause serious problems if a builder's source tree is in a directory | 
 | 2872 | # whose full name contains unusual characters. | 
 | 2873 | ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var. | 
 | 2874 | ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var. | 
 | 2875 | ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var. | 
 | 2876 |  | 
 | 2877 |  | 
 | 2878 | # Make sure we can run config.sub. | 
 | 2879 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | 
 | 2880 |   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | 
 | 2881 |  | 
 | 2882 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | 
 | 2883 | $as_echo_n "checking build system type... " >&6; } | 
 | 2884 | if ${ac_cv_build+:} false; then : | 
 | 2885 |   $as_echo_n "(cached) " >&6 | 
 | 2886 | else | 
 | 2887 |   ac_build_alias=$build_alias | 
 | 2888 | test "x$ac_build_alias" = x && | 
 | 2889 |   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | 
 | 2890 | test "x$ac_build_alias" = x && | 
 | 2891 |   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | 
 | 2892 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | 
 | 2893 |   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | 
 | 2894 |  | 
 | 2895 | fi | 
 | 2896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | 
 | 2897 | $as_echo "$ac_cv_build" >&6; } | 
 | 2898 | case $ac_cv_build in | 
 | 2899 | *-*-*) ;; | 
 | 2900 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | 
 | 2901 | esac | 
 | 2902 | build=$ac_cv_build | 
 | 2903 | ac_save_IFS=$IFS; IFS='-' | 
 | 2904 | set x $ac_cv_build | 
 | 2905 | shift | 
 | 2906 | build_cpu=$1 | 
 | 2907 | build_vendor=$2 | 
 | 2908 | shift; shift | 
 | 2909 | # Remember, the first character of IFS is used to create $*, | 
 | 2910 | # except with old shells: | 
 | 2911 | build_os=$* | 
 | 2912 | IFS=$ac_save_IFS | 
 | 2913 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | 
 | 2914 |  | 
 | 2915 |  | 
 | 2916 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | 
 | 2917 | $as_echo_n "checking host system type... " >&6; } | 
 | 2918 | if ${ac_cv_host+:} false; then : | 
 | 2919 |   $as_echo_n "(cached) " >&6 | 
 | 2920 | else | 
 | 2921 |   if test "x$host_alias" = x; then | 
 | 2922 |   ac_cv_host=$ac_cv_build | 
 | 2923 | else | 
 | 2924 |   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | 
 | 2925 |     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | 
 | 2926 | fi | 
 | 2927 |  | 
 | 2928 | fi | 
 | 2929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | 
 | 2930 | $as_echo "$ac_cv_host" >&6; } | 
 | 2931 | case $ac_cv_host in | 
 | 2932 | *-*-*) ;; | 
 | 2933 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | 
 | 2934 | esac | 
 | 2935 | host=$ac_cv_host | 
 | 2936 | ac_save_IFS=$IFS; IFS='-' | 
 | 2937 | set x $ac_cv_host | 
 | 2938 | shift | 
 | 2939 | host_cpu=$1 | 
 | 2940 | host_vendor=$2 | 
 | 2941 | shift; shift | 
 | 2942 | # Remember, the first character of IFS is used to create $*, | 
 | 2943 | # except with old shells: | 
 | 2944 | host_os=$* | 
 | 2945 | IFS=$ac_save_IFS | 
 | 2946 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | 
 | 2947 |  | 
 | 2948 |  | 
 | 2949 |  | 
| doko@python.org | a10e4a9 | 2013-01-25 18:45:12 +0100 | [diff] [blame] | 2950 |  | 
 | 2951 |  | 
| doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 2952 | if test "$cross_compiling" = yes; then | 
 | 2953 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python interpreter for cross build" >&5 | 
 | 2954 | $as_echo_n "checking for python interpreter for cross build... " >&6; } | 
 | 2955 |     if test -z "$PYTHON_FOR_BUILD"; then | 
 | 2956 |         for interp in python$PACKAGE_VERSION python3 python; do | 
 | 2957 | 	    which $interp >/dev/null 2>&1 || continue | 
 | 2958 | 	    if $interp -c 'import sys;sys.exit(not sys.version_info[:2] >= (3,3))'; then | 
 | 2959 | 	        break | 
 | 2960 | 	    fi | 
 | 2961 |             interp= | 
 | 2962 | 	done | 
 | 2963 |         if test x$interp = x; then | 
 | 2964 | 	    as_fn_error $? "python$PACKAGE_VERSION interpreter not found" "$LINENO" 5 | 
 | 2965 | 	fi | 
 | 2966 |         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $interp" >&5 | 
 | 2967 | $as_echo "$interp" >&6; } | 
| doko@python.org | 244b687 | 2013-01-26 12:08:25 +0100 | [diff] [blame] | 2968 | 	PYTHON_FOR_BUILD='_PYTHON_PROJECT_BASE=$(abs_builddir) _PYTHON_HOST_PLATFORM=$(_PYTHON_HOST_PLATFORM) PYTHONPATH=$(shell test -f pybuilddir.txt && echo $(abs_builddir)/`cat pybuilddir.txt`:)$(srcdir)/Lib:$(srcdir)/Lib/$(PLATDIR) '$interp | 
| doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 2969 |     fi | 
| Christian Heimes | 954ac03 | 2012-12-12 13:10:21 +0100 | [diff] [blame] | 2970 | elif test "$cross_compiling" = maybe; then | 
 | 2971 |     as_fn_error $? "Cross compiling required --host=HOST-TUPLE and --build=ARCH" "$LINENO" 5 | 
| doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 2972 | else | 
 | 2973 |     PYTHON_FOR_BUILD='./$(BUILDPYTHON) -E' | 
 | 2974 | fi | 
 | 2975 |  | 
 | 2976 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2977 |  | 
| Benjamin Peterson | d23f822 | 2009-04-05 19:13:16 +0000 | [diff] [blame] | 2978 | if test "$prefix" != "/"; then | 
 | 2979 |     prefix=`echo "$prefix" | sed -e 's/\/$//g'` | 
 | 2980 | fi | 
 | 2981 |  | 
 | 2982 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2983 |  | 
 | 2984 |  | 
| Martin v. Löwis | 8316feb | 2003-06-14 07:48:07 +0000 | [diff] [blame] | 2985 | # We don't use PACKAGE_ variables, and they cause conflicts | 
 | 2986 | # with other autoconf-based packages that include Python.h | 
 | 2987 | grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new | 
 | 2988 | rm confdefs.h | 
 | 2989 | mv confdefs.h.new confdefs.h | 
 | 2990 |  | 
| Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 2991 |  | 
| Georg Brandl | 08a9012 | 2012-09-29 09:34:13 +0200 | [diff] [blame] | 2992 | VERSION=3.4 | 
| Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 2993 |  | 
| Benjamin Peterson | d7f73e9 | 2010-09-05 00:09:07 +0000 | [diff] [blame] | 2994 | # Version number of Python's own shared library file. | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 2995 |  | 
 | 2996 | SOVERSION=1.0 | 
 | 2997 |  | 
| Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 2998 | # The later defininition of _XOPEN_SOURCE disables certain features | 
 | 2999 | # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone). | 
 | 3000 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3001 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | 
| Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 3002 |  | 
 | 3003 |  | 
| Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 3004 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables | 
 | 3005 | # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable | 
 | 3006 | # them. | 
 | 3007 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3008 | $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h | 
| Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 3009 |  | 
 | 3010 |  | 
| Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 3011 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables | 
 | 3012 | # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable | 
 | 3013 | # them. | 
 | 3014 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3015 | $as_echo "#define __BSD_VISIBLE 1" >>confdefs.h | 
| Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 3016 |  | 
 | 3017 |  | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 3018 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables | 
 | 3019 | # u_int on Irix 5.3. Defining _BSD_TYPES brings it back. | 
 | 3020 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3021 | $as_echo "#define _BSD_TYPES 1" >>confdefs.h | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 3022 |  | 
 | 3023 |  | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3024 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables | 
 | 3025 | # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable | 
 | 3026 | # them. | 
 | 3027 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3028 | $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3029 |  | 
 | 3030 |  | 
 | 3031 |  | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3032 | define_xopen_source=yes | 
| Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 3033 |  | 
| Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 +0000 | [diff] [blame] | 3034 | # Arguments passed to configure. | 
 | 3035 |  | 
 | 3036 | CONFIG_ARGS="$ac_configure_args" | 
 | 3037 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3038 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-universalsdk" >&5 | 
 | 3039 | $as_echo_n "checking for --enable-universalsdk... " >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3040 | # Check whether --enable-universalsdk was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3041 | if test "${enable_universalsdk+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3042 |   enableval=$enable_universalsdk; | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3043 | 	case $enableval in | 
 | 3044 | 	yes) | 
| Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3045 | 		# Locate the best usable SDK, see Mac/README.txt for more | 
 | 3046 | 		# information | 
 | 3047 | 		enableval="`/usr/bin/xcodebuild -version -sdk macosx Path 2>/dev/null`" | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 3048 | 		if ! ( echo $enableval | grep -E '\.sdk' 1>/dev/null ) | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3049 | 		then | 
| Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3050 | 			enableval=/Developer/SDKs/MacOSX10.4u.sdk | 
 | 3051 | 			if test ! -d "${enableval}" | 
 | 3052 | 			then | 
 | 3053 | 				enableval=/ | 
 | 3054 | 			fi | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3055 | 		fi | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3056 | 		;; | 
 | 3057 | 	esac | 
 | 3058 | 	case $enableval in | 
 | 3059 | 	no) | 
 | 3060 | 		UNIVERSALSDK= | 
 | 3061 | 		enable_universalsdk= | 
 | 3062 | 		;; | 
 | 3063 | 	*) | 
 | 3064 | 		UNIVERSALSDK=$enableval | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3065 | 		if test ! -d "${UNIVERSALSDK}" | 
 | 3066 | 		then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 3067 | 			as_fn_error $? "--enable-universalsdk specifies non-existing SDK: ${UNIVERSALSDK}" "$LINENO" 5 | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3068 | 		fi | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3069 | 		;; | 
 | 3070 | 	esac | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3071 |  | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3072 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3073 | else | 
 | 3074 |  | 
 | 3075 |    	UNIVERSALSDK= | 
 | 3076 | 	enable_universalsdk= | 
 | 3077 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3078 | fi | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3079 |  | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3080 | if test -n "${UNIVERSALSDK}" | 
 | 3081 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3082 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSALSDK}" >&5 | 
 | 3083 | $as_echo "${UNIVERSALSDK}" >&6; } | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3084 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3085 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 3086 | $as_echo "no" >&6; } | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3087 | fi | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3088 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3089 |  | 
| Benjamin Peterson | 6794aa3 | 2008-07-16 20:33:37 +0000 | [diff] [blame] | 3090 |  | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 3091 | ARCH_RUN_32BIT="" | 
| Benjamin Peterson | 6794aa3 | 2008-07-16 20:33:37 +0000 | [diff] [blame] | 3092 |  | 
| Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3093 | # For backward compatibility reasons we prefer to select '32-bit' if available, | 
 | 3094 | # otherwise use 'intel' | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3095 | UNIVERSAL_ARCHS="32-bit" | 
| Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3096 | if test "`uname -s`" = "Darwin" | 
 | 3097 | then | 
 | 3098 | 	if test -n "${UNIVERSALSDK}" | 
 | 3099 | 	then | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 3100 | 		if test -z "`/usr/bin/file -L "${UNIVERSALSDK}/usr/lib/libSystem.dylib" | grep ppc`" | 
| Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3101 | 		then | 
 | 3102 | 			UNIVERSAL_ARCHS="intel" | 
 | 3103 | 		fi | 
 | 3104 | 	fi | 
 | 3105 | fi | 
 | 3106 |  | 
| Ronald Oussoren | 6f6c562 | 2009-12-24 14:03:19 +0000 | [diff] [blame] | 3107 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3108 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-universal-archs" >&5 | 
 | 3109 | $as_echo_n "checking for --with-universal-archs... " >&6; } | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3110 |  | 
 | 3111 | # Check whether --with-universal-archs was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3112 | if test "${with_universal_archs+set}" = set; then : | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3113 |   withval=$with_universal_archs; | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3114 | 	UNIVERSAL_ARCHS="$withval" | 
 | 3115 |  | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3116 | fi | 
 | 3117 |  | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 3118 | if test -n "${UNIVERSALSDK}" | 
 | 3119 | then | 
 | 3120 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSAL_ARCHS}" >&5 | 
 | 3121 | $as_echo "${UNIVERSAL_ARCHS}" >&6; } | 
 | 3122 | else | 
 | 3123 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 3124 | $as_echo "no" >&6; } | 
 | 3125 | fi | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3126 |  | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 3127 |  | 
 | 3128 | # Check whether --with-framework-name was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3129 | if test "${with_framework_name+set}" = set; then : | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 3130 |   withval=$with_framework_name; | 
 | 3131 |     PYTHONFRAMEWORK=${withval} | 
 | 3132 |     PYTHONFRAMEWORKDIR=${withval}.framework | 
 | 3133 |     PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'` | 
 | 3134 |  | 
 | 3135 | else | 
 | 3136 |  | 
 | 3137 |     PYTHONFRAMEWORK=Python | 
 | 3138 |     PYTHONFRAMEWORKDIR=Python.framework | 
 | 3139 |     PYTHONFRAMEWORKIDENTIFIER=org.python.python | 
 | 3140 |  | 
 | 3141 | fi | 
 | 3142 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3143 | # Check whether --enable-framework was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3144 | if test "${enable_framework+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3145 |   enableval=$enable_framework; | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3146 | 	case $enableval in | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3147 | 	yes) | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3148 | 		enableval=/Library/Frameworks | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3149 | 	esac | 
 | 3150 | 	case $enableval in | 
 | 3151 | 	no) | 
 | 3152 | 		PYTHONFRAMEWORK= | 
 | 3153 | 		PYTHONFRAMEWORKDIR=no-framework | 
 | 3154 | 		PYTHONFRAMEWORKPREFIX= | 
 | 3155 | 		PYTHONFRAMEWORKINSTALLDIR= | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3156 | 		FRAMEWORKINSTALLFIRST= | 
 | 3157 | 		FRAMEWORKINSTALLLAST= | 
| Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3158 | 		FRAMEWORKALTINSTALLFIRST= | 
 | 3159 | 		FRAMEWORKALTINSTALLLAST= | 
| Ned Deily | b8f944f | 2013-11-21 22:42:25 -0800 | [diff] [blame] | 3160 | 		FRAMEWORKPYTHONW= | 
| Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3161 | 		if test "x${prefix}" = "xNONE"; then | 
 | 3162 | 			FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" | 
 | 3163 | 		else | 
 | 3164 | 			FRAMEWORKUNIXTOOLSPREFIX="${prefix}" | 
 | 3165 | 		fi | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3166 | 		enable_framework= | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3167 | 		;; | 
 | 3168 | 	*) | 
| Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 3169 | 		PYTHONFRAMEWORKPREFIX="${enableval}" | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3170 | 		PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3171 | 		FRAMEWORKINSTALLFIRST="frameworkinstallstructure" | 
| Ronald Oussoren | f6ccbf6 | 2009-06-02 10:55:56 +0000 | [diff] [blame] | 3172 | 		FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure " | 
| Ronald Oussoren | 6f6c562 | 2009-12-24 14:03:19 +0000 | [diff] [blame] | 3173 | 		FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools" | 
 | 3174 | 		FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools" | 
| Ned Deily | b8f944f | 2013-11-21 22:42:25 -0800 | [diff] [blame] | 3175 | 		FRAMEWORKPYTHONW="frameworkpythonw" | 
| Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 3176 | 		FRAMEWORKINSTALLAPPSPREFIX="/Applications" | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3177 |  | 
| Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3178 | 		if test "x${prefix}" = "xNONE" ; then | 
 | 3179 | 			FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" | 
| Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 3180 |  | 
| Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3181 | 		else | 
 | 3182 | 			FRAMEWORKUNIXTOOLSPREFIX="${prefix}" | 
 | 3183 | 		fi | 
| Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 3184 |  | 
 | 3185 | 		case "${enableval}" in | 
 | 3186 | 		/System*) | 
 | 3187 | 			FRAMEWORKINSTALLAPPSPREFIX="/Applications" | 
 | 3188 | 			if test "${prefix}" = "NONE" ; then | 
 | 3189 | 				# See below | 
 | 3190 | 				FRAMEWORKUNIXTOOLSPREFIX="/usr" | 
 | 3191 | 			fi | 
 | 3192 | 			;; | 
 | 3193 |  | 
 | 3194 | 		/Library*) | 
 | 3195 | 			FRAMEWORKINSTALLAPPSPREFIX="/Applications" | 
 | 3196 | 			;; | 
 | 3197 |  | 
 | 3198 | 		*/Library/Frameworks) | 
 | 3199 | 			MDIR="`dirname "${enableval}"`" | 
 | 3200 | 			MDIR="`dirname "${MDIR}"`" | 
 | 3201 | 			FRAMEWORKINSTALLAPPSPREFIX="${MDIR}/Applications" | 
 | 3202 |  | 
 | 3203 | 			if test "${prefix}" = "NONE"; then | 
 | 3204 | 				# User hasn't specified the | 
 | 3205 | 				# --prefix option, but wants to install | 
 | 3206 | 				# the framework in a non-default location, | 
 | 3207 | 				# ensure that the compatibility links get | 
 | 3208 | 				# installed relative to that prefix as well | 
 | 3209 | 				# instead of in /usr/local. | 
 | 3210 | 				FRAMEWORKUNIXTOOLSPREFIX="${MDIR}" | 
 | 3211 | 			fi | 
 | 3212 | 			;; | 
 | 3213 |  | 
 | 3214 | 		*) | 
 | 3215 | 			FRAMEWORKINSTALLAPPSPREFIX="/Applications" | 
 | 3216 | 			;; | 
 | 3217 | 		esac | 
 | 3218 |  | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3219 | 		prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3220 |  | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 3221 | 		# Add files for Mac specific code to the list of output | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3222 | 		# files: | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3223 | 		ac_config_files="$ac_config_files Mac/Makefile" | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3224 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3225 | 		ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile" | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3226 |  | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 3227 | 		ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist" | 
 | 3228 |  | 
 | 3229 | 		ac_config_files="$ac_config_files Mac/Resources/app/Info.plist" | 
 | 3230 |  | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3231 | 	esac | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3232 |  | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3233 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3234 |  | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3235 | 	PYTHONFRAMEWORK= | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3236 | 	PYTHONFRAMEWORKDIR=no-framework | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3237 | 	PYTHONFRAMEWORKPREFIX= | 
 | 3238 | 	PYTHONFRAMEWORKINSTALLDIR= | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3239 | 	FRAMEWORKINSTALLFIRST= | 
 | 3240 | 	FRAMEWORKINSTALLLAST= | 
| Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3241 | 	FRAMEWORKALTINSTALLFIRST= | 
 | 3242 | 	FRAMEWORKALTINSTALLLAST= | 
| Ned Deily | b8f944f | 2013-11-21 22:42:25 -0800 | [diff] [blame] | 3243 | 	FRAMEWORKPYTHONW= | 
| Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3244 | 	if test "x${prefix}" = "xNONE" ; then | 
 | 3245 | 		FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" | 
 | 3246 | 	else | 
 | 3247 | 		FRAMEWORKUNIXTOOLSPREFIX="${prefix}" | 
 | 3248 | 	fi | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3249 | 	enable_framework= | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3250 |  | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3251 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3252 | fi | 
 | 3253 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3254 |  | 
 | 3255 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3256 |  | 
 | 3257 |  | 
 | 3258 |  | 
 | 3259 |  | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3260 |  | 
| Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3261 |  | 
 | 3262 |  | 
 | 3263 |  | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 3264 |  | 
| Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 3265 |  | 
| Ned Deily | b8f944f | 2013-11-21 22:42:25 -0800 | [diff] [blame] | 3266 |  | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3267 | ##AC_ARG_WITH(dyld, | 
| Matthias Klose | 2b8733f | 2010-04-25 18:34:36 +0000 | [diff] [blame] | 3268 | ##            AS_HELP_STRING([--with-dyld], | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 3269 | ##                           [Use (OpenStep|Rhapsody) dynamic linker])) | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3270 | ## | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3271 | # Set name for machine-dependent library files | 
 | 3272 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3273 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP" >&5 | 
 | 3274 | $as_echo_n "checking MACHDEP... " >&6; } | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3275 | if test -z "$MACHDEP" | 
 | 3276 | then | 
| Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 3277 |     # avoid using uname for cross builds | 
 | 3278 |     if test "$cross_compiling" = yes; then | 
| doko@python.org | 44bbbda | 2013-01-25 14:44:00 +0100 | [diff] [blame] | 3279 |        # ac_sys_system and ac_sys_release are used for setting | 
 | 3280 |        # a lot of different things including 'define_xopen_source' | 
 | 3281 |        # in the case statement below. | 
| Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 3282 | 	case "$host" in | 
 | 3283 | 	*-*-linux*) | 
 | 3284 | 		ac_sys_system=Linux | 
 | 3285 | 		;; | 
 | 3286 | 	*-*-cygwin*) | 
 | 3287 | 		ac_sys_system=Cygwin | 
 | 3288 | 		;; | 
 | 3289 | 	*) | 
 | 3290 | 		# for now, limit cross builds to known configurations | 
 | 3291 | 		MACHDEP="unknown" | 
 | 3292 | 		as_fn_error $? "cross build not supported for $host" "$LINENO" 5 | 
 | 3293 | 	esac | 
 | 3294 | 	ac_sys_release= | 
 | 3295 |     else | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3296 | 	ac_sys_system=`uname -s` | 
| Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 3297 | 	if test "$ac_sys_system" = "AIX" \ | 
| Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 3298 | 	-o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3299 | 		ac_sys_release=`uname -v` | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3300 | 	else | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3301 | 		ac_sys_release=`uname -r` | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3302 | 	fi | 
| Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 3303 |     fi | 
 | 3304 |     ac_md_system=`echo $ac_sys_system | | 
 | 3305 | 			tr -d '/ ' | tr '[A-Z]' '[a-z]'` | 
 | 3306 |     ac_md_release=`echo $ac_sys_release | | 
 | 3307 | 			tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'` | 
 | 3308 |     MACHDEP="$ac_md_system$ac_md_release" | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3309 |  | 
| Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 3310 |     case $MACHDEP in | 
| Victor Stinner | 7209ff2 | 2011-08-21 00:00:16 +0200 | [diff] [blame] | 3311 | 	linux*) MACHDEP="linux";; | 
| Andrew M. Kuchling | 5a3e4cb | 2001-07-20 19:29:04 +0000 | [diff] [blame] | 3312 | 	cygwin*) MACHDEP="cygwin";; | 
| Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame] | 3313 | 	darwin*) MACHDEP="darwin";; | 
| doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 3314 | 	irix646) MACHDEP="irix6";; | 
| Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 3315 | 	'')	MACHDEP="unknown";; | 
| Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 3316 |     esac | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3317 | fi | 
| Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3318 |  | 
| doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 3319 |  | 
 | 3320 | if test "$cross_compiling" = yes; then | 
 | 3321 | 	case "$host" in | 
 | 3322 | 	*-*-linux*) | 
 | 3323 | 		case "$host_cpu" in | 
 | 3324 | 		arm*) | 
 | 3325 | 			_host_cpu=arm | 
 | 3326 | 			;; | 
 | 3327 | 		*) | 
 | 3328 | 			_host_cpu=$host_cpu | 
 | 3329 | 		esac | 
 | 3330 | 		;; | 
 | 3331 | 	*-*-cygwin*) | 
 | 3332 | 		_host_cpu= | 
 | 3333 | 		;; | 
 | 3334 | 	*) | 
 | 3335 | 		# for now, limit cross builds to known configurations | 
 | 3336 | 		MACHDEP="unknown" | 
 | 3337 | 		as_fn_error $? "cross build not supported for $host" "$LINENO" 5 | 
 | 3338 | 	esac | 
 | 3339 | 	_PYTHON_HOST_PLATFORM="$MACHDEP${_host_cpu:+-$_host_cpu}" | 
 | 3340 | fi | 
 | 3341 |  | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3342 | # Some systems cannot stand _XOPEN_SOURCE being defined at all; they | 
 | 3343 | # disable features if it is defined, without any means to access these | 
 | 3344 | # features as extensions. For these systems, we skip the definition of | 
 | 3345 | # _XOPEN_SOURCE. Before adding a system to the list to gain access to | 
 | 3346 | # some feature, make sure there is no alternative way to access this | 
 | 3347 | # feature. Also, when using wildcards, make sure you have verified the | 
 | 3348 | # need for not defining _XOPEN_SOURCE on all systems matching the | 
 | 3349 | # wildcard, and that the wildcard does not include future systems | 
 | 3350 | # (which may remove their limitations). | 
 | 3351 | case $ac_sys_system/$ac_sys_release in | 
 | 3352 |   # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined, | 
 | 3353 |   # 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] | 3354 |   # 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] | 3355 |   # In addition, Stefan Krah confirms that issue #1244610 exists through | 
 | 3356 |   # OpenBSD 4.6, but is fixed in 4.7. | 
| Charles-François Natali | 54ef40b | 2011-07-22 23:52:02 +0200 | [diff] [blame] | 3357 |   OpenBSD/2.* | OpenBSD/3.* | OpenBSD/4.[0123456]) | 
| Christian Heimes | 5b5e81c | 2007-12-31 16:14:33 +0000 | [diff] [blame] | 3358 |     define_xopen_source=no | 
 | 3359 |     # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is | 
 | 3360 |     # also defined. This can be overridden by defining _BSD_SOURCE | 
 | 3361 |     # As this has a different meaning on Linux, only define it on OpenBSD | 
 | 3362 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3363 | $as_echo "#define _BSD_SOURCE 1" >>confdefs.h | 
| Christian Heimes | 5b5e81c | 2007-12-31 16:14:33 +0000 | [diff] [blame] | 3364 |  | 
 | 3365 |     ;; | 
| Charles-François Natali | 54ef40b | 2011-07-22 23:52:02 +0200 | [diff] [blame] | 3366 |   OpenBSD/*) | 
| Martin v. Löwis | 7671efc | 2010-02-15 08:35:16 +0000 | [diff] [blame] | 3367 |     # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is | 
 | 3368 |     # also defined. This can be overridden by defining _BSD_SOURCE | 
 | 3369 |     # As this has a different meaning on Linux, only define it on OpenBSD | 
 | 3370 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3371 | $as_echo "#define _BSD_SOURCE 1" >>confdefs.h | 
| Martin v. Löwis | 7671efc | 2010-02-15 08:35:16 +0000 | [diff] [blame] | 3372 |  | 
 | 3373 |     ;; | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 3374 |   # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of | 
 | 3375 |   # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by | 
 | 3376 |   # Marc Recht | 
| Benjamin Peterson | f608c61 | 2008-11-16 18:33:53 +0000 | [diff] [blame] | 3377 |   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] | 3378 |     define_xopen_source=no;; | 
| Martin v. Löwis | 1a41576 | 2010-05-28 15:44:20 +0000 | [diff] [blame] | 3379 |   # From the perspective of Solaris, _XOPEN_SOURCE is not so much a | 
 | 3380 |   # request to enable features supported by the standard as a request | 
 | 3381 |   # to disable features not supported by the standard.  The best way | 
 | 3382 |   # for Python to use Solaris is simply to leave _XOPEN_SOURCE out | 
 | 3383 |   # entirely and define __EXTENSIONS__ instead. | 
 | 3384 |   SunOS/*) | 
| Martin v. Löwis | a9d7142 | 2003-03-28 18:43:31 +0000 | [diff] [blame] | 3385 |     define_xopen_source=no;; | 
| Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 3386 |   # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE, | 
 | 3387 |   # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice. | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3388 |   # Reconfirmed for 7.1.4 by Martin v. Loewis. | 
| Martin v. Löwis | 253d1f4 | 2004-05-07 19:14:14 +0000 | [diff] [blame] | 3389 |   OpenUNIX/8.0.0| UnixWare/7.1.[0-4]) | 
| Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 3390 |     define_xopen_source=no;; | 
 | 3391 |   # 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] | 3392 |   # 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] | 3393 |   SCO_SV/3.2) | 
| Martin v. Löwis | 53e73c3 | 2003-05-05 05:13:18 +0000 | [diff] [blame] | 3394 |     define_xopen_source=no;; | 
| Martin v. Löwis | b37509b | 2008-11-04 20:45:29 +0000 | [diff] [blame] | 3395 |   # On FreeBSD 4, the math functions C89 does not cover are never defined | 
 | 3396 |   # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them. | 
 | 3397 |   FreeBSD/4.*) | 
 | 3398 |     define_xopen_source=no;; | 
 | 3399 |   # On MacOS X 10.2, a bug in ncurses.h means that it craps out if | 
 | 3400 |   # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which | 
 | 3401 |   # identifies itself as Darwin/7.* | 
 | 3402 |   # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE | 
 | 3403 |   # disables platform specific features beyond repair. | 
 | 3404 |   # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE | 
 | 3405 |   # has no effect, don't bother defining them | 
 | 3406 |   Darwin/[6789].*) | 
| Anthony Baxter | 6169c6b | 2003-10-04 07:46:23 +0000 | [diff] [blame] | 3407 |     define_xopen_source=no;; | 
| Ronald Oussoren | 92fb941 | 2010-03-09 06:40:19 +0000 | [diff] [blame] | 3408 |   Darwin/1[0-9].*) | 
| Ronald Oussoren | b8f11a6 | 2010-03-08 07:02:03 +0000 | [diff] [blame] | 3409 |     define_xopen_source=no;; | 
| Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 3410 |   # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but | 
 | 3411 |   # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined | 
 | 3412 |   # 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] | 3413 |   AIX/4) | 
 | 3414 |     define_xopen_source=no;; | 
| Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 3415 |   AIX/5) | 
 | 3416 |     if test `uname -r` -eq 1; then | 
 | 3417 |       define_xopen_source=no | 
 | 3418 |     fi | 
 | 3419 |     ;; | 
| Benjamin Peterson | de9c869 | 2008-07-01 18:23:09 +0000 | [diff] [blame] | 3420 |   # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from | 
 | 3421 |   # defining NI_NUMERICHOST. | 
 | 3422 |   QNX/6.3.2) | 
 | 3423 |     define_xopen_source=no | 
 | 3424 |     ;; | 
| Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 3425 |  | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3426 | esac | 
 | 3427 |  | 
 | 3428 | if test $define_xopen_source = yes | 
 | 3429 | then | 
| Victor Stinner | 14d098d | 2011-09-07 22:29:43 +0200 | [diff] [blame] | 3430 |   # X/Open 7, incorporating POSIX.1-2008 | 
| Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3431 |  | 
| Victor Stinner | 14d098d | 2011-09-07 22:29:43 +0200 | [diff] [blame] | 3432 | $as_echo "#define _XOPEN_SOURCE 700" >>confdefs.h | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3433 |  | 
| Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3434 |  | 
 | 3435 |   # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires | 
 | 3436 |   # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else | 
 | 3437 |   # several APIs are not declared. Since this is also needed in some | 
 | 3438 |   # cases for HP-UX, we define it globally. | 
| Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3439 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3440 | $as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h | 
| Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3441 |  | 
 | 3442 |  | 
| Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 3443 |  | 
| Victor Stinner | d169fdc | 2011-09-08 00:56:17 +0200 | [diff] [blame] | 3444 | $as_echo "#define _POSIX_C_SOURCE 200809L" >>confdefs.h | 
| Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3445 |  | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3446 | fi | 
 | 3447 |  | 
| Christian Heimes | 647cd87 | 2013-12-07 23:39:33 +0100 | [diff] [blame] | 3448 | # On HP-UX mbstate_t requires _INCLUDE__STDC_A1_SOURCE | 
 | 3449 | case $ac_sys_system in | 
| Christian Heimes | b02bcae | 2013-12-08 15:21:08 +0100 | [diff] [blame] | 3450 |   hp*|HP*) | 
 | 3451 |     define_stdc_a1=yes;; | 
 | 3452 |   *) | 
 | 3453 |     define_stdc_a1=no;; | 
 | 3454 | esac | 
 | 3455 |  | 
 | 3456 | if test $define_stdc_a1 = yes | 
 | 3457 | then | 
| Christian Heimes | 647cd87 | 2013-12-07 23:39:33 +0100 | [diff] [blame] | 3458 |  | 
 | 3459 | $as_echo "#define _INCLUDE__STDC_A1_SOURCE 1" >>confdefs.h | 
 | 3460 |  | 
| Christian Heimes | b02bcae | 2013-12-08 15:21:08 +0100 | [diff] [blame] | 3461 | fi | 
| Christian Heimes | 647cd87 | 2013-12-07 23:39:33 +0100 | [diff] [blame] | 3462 |  | 
| Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3463 | # | 
 | 3464 | # SGI compilers allow the specification of the both the ABI and the | 
 | 3465 | # ISA on the command line.  Depending on the values of these switches, | 
 | 3466 | # different and often incompatable code will be generated. | 
 | 3467 | # | 
 | 3468 | # The SGI_ABI variable can be used to modify the CC and LDFLAGS and | 
 | 3469 | # thus supply support for various ABI/ISA combinations.  The MACHDEP | 
 | 3470 | # variable is also adjusted. | 
 | 3471 | # | 
 | 3472 |  | 
 | 3473 | if test ! -z "$SGI_ABI" | 
 | 3474 | then | 
 | 3475 |         CC="cc $SGI_ABI" | 
 | 3476 |         LDFLAGS="$SGI_ABI $LDFLAGS" | 
 | 3477 |         MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'` | 
 | 3478 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3479 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACHDEP" >&5 | 
 | 3480 | $as_echo "$MACHDEP" >&6; } | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3481 |  | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3482 | # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET, | 
 | 3483 | # it may influence the way we can build extensions, so distutils | 
 | 3484 | # needs to check it | 
 | 3485 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3486 |  | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3487 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET= | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3488 | EXPORT_MACOSX_DEPLOYMENT_TARGET='#' | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3489 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3490 | # checks for alternative programs | 
| Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3491 |  | 
 | 3492 | # compiler flags are generated in two sets, BASECFLAGS and OPT.  OPT is just | 
 | 3493 | # for debug/optimization stuff.  BASECFLAGS is for flags that are required | 
 | 3494 | # just to get things to compile and link.  Users are free to override OPT | 
 | 3495 | # when running configure or make.  The build should not break if they do. | 
 | 3496 | # BASECFLAGS should generally not be messed with, however. | 
 | 3497 |  | 
 | 3498 | # XXX shouldn't some/most/all of this code be merged with the stuff later | 
 | 3499 | # on that fiddles with OPT and BASECFLAGS? | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3500 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --without-gcc" >&5 | 
 | 3501 | $as_echo_n "checking for --without-gcc... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3502 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3503 | # Check whether --with-gcc was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3504 | if test "${with_gcc+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3505 |   withval=$with_gcc; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3506 | 	case $withval in | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3507 | 	no)	CC=${CC:-cc} | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3508 | 		without_gcc=yes;; | 
 | 3509 | 	yes)	CC=gcc | 
 | 3510 | 		without_gcc=no;; | 
 | 3511 | 	*)	CC=$withval | 
 | 3512 | 		without_gcc=$withval;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3513 | 	esac | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3514 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3515 |  | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3516 | 	case $ac_sys_system in | 
| Antoine Pitrou | f6350d2 | 2010-09-21 15:19:14 +0000 | [diff] [blame] | 3517 | 	AIX*)   CC=${CC:-xlc_r} | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 3518 | 		without_gcc=;; | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3519 | 	*)	without_gcc=no;; | 
| Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 3520 | 	esac | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3521 | fi | 
 | 3522 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $without_gcc" >&5 | 
 | 3524 | $as_echo "$without_gcc" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3525 |  | 
| Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 3526 | # If the user switches compilers, we can't believe the cache | 
 | 3527 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" | 
 | 3528 | then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 3529 |   as_fn_error $? "cached CC is different -- throw away $cache_file | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3530 | (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] | 3531 | fi | 
 | 3532 |  | 
| Jeffrey Yasskin | d4fcdb1 | 2010-07-09 16:30:58 +0000 | [diff] [blame] | 3533 | # Don't let AC_PROG_CC set the default CFLAGS. It normally sets -g -O2 | 
 | 3534 | # when the compiler supports them, but we don't always want -O2, and | 
 | 3535 | # we set -g later. | 
 | 3536 | if test -z "$CFLAGS"; then | 
 | 3537 |         CFLAGS= | 
 | 3538 | fi | 
| Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3539 |  | 
 | 3540 | if test "$ac_sys_system" = "Darwin" | 
 | 3541 | then | 
 | 3542 | 	# Compiler selection on MacOSX is more complicated than | 
 | 3543 | 	# AC_PROG_CC can handle, see Mac/README.txt for more | 
 | 3544 | 	# information | 
 | 3545 | 	if test -z "${CC}" | 
 | 3546 | 	then | 
 | 3547 | 		found_gcc= | 
 | 3548 | 		found_clang= | 
 | 3549 | 		as_save_IFS=$IFS; IFS=: | 
 | 3550 | 		for as_dir in $PATH | 
 | 3551 | 		do | 
 | 3552 | 			IFS=$as_save_IFS | 
 | 3553 | 			if test -x $as_dir/gcc; then | 
 | 3554 | 				if test -z "${found_gcc}"; then | 
 | 3555 | 					found_gcc=$as_dir/gcc | 
 | 3556 | 				fi | 
 | 3557 | 			fi | 
 | 3558 | 			if test -x $as_dir/clang; then | 
 | 3559 | 				if test -z "${found_clang}"; then | 
 | 3560 | 					found_clang=$as_dir/clang | 
 | 3561 | 				fi | 
 | 3562 | 			fi | 
 | 3563 | 		done | 
 | 3564 | 		IFS=$as_save_IFS | 
 | 3565 |  | 
 | 3566 | 		if test -n "$found_gcc" -a -n "$found_clang" | 
 | 3567 | 		then | 
 | 3568 | 			if test -n "`"$found_gcc" --version | grep llvm-gcc`" | 
 | 3569 | 			then | 
 | 3570 | 				{ $as_echo "$as_me:${as_lineno-$LINENO}: Detected llvm-gcc, falling back to clang" >&5 | 
 | 3571 | $as_echo "$as_me: Detected llvm-gcc, falling back to clang" >&6;} | 
 | 3572 | 				CC="$found_clang" | 
 | 3573 | 				CXX="$found_clang++" | 
 | 3574 | 			fi | 
 | 3575 |  | 
 | 3576 |  | 
 | 3577 | 		elif test -z "$found_gcc" -a -n "$found_clang" | 
 | 3578 | 		then | 
 | 3579 | 			{ $as_echo "$as_me:${as_lineno-$LINENO}: No GCC found, use CLANG" >&5 | 
 | 3580 | $as_echo "$as_me: No GCC found, use CLANG" >&6;} | 
 | 3581 | 			CC="$found_clang" | 
 | 3582 | 			CXX="$found_clang++" | 
 | 3583 |  | 
 | 3584 | 		elif test -z "$found_gcc" -a -z "$found_clang" | 
 | 3585 | 		then | 
 | 3586 | 			found_clang=`/usr/bin/xcrun -find clang 2>/dev/null` | 
 | 3587 | 			if test -n "${found_clang}" | 
 | 3588 | 			then | 
 | 3589 | 				{ $as_echo "$as_me:${as_lineno-$LINENO}: Using clang from Xcode.app" >&5 | 
 | 3590 | $as_echo "$as_me: Using clang from Xcode.app" >&6;} | 
 | 3591 | 				CC="${found_clang}" | 
 | 3592 | 				CXX="`/usr/bin/xcrun -find clang++`" | 
 | 3593 |  | 
 | 3594 | 			# else: use default behaviour | 
 | 3595 | 			fi | 
 | 3596 | 		fi | 
 | 3597 | 	fi | 
 | 3598 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3599 | ac_ext=c | 
 | 3600 | ac_cpp='$CPP $CPPFLAGS' | 
 | 3601 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 3602 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 3603 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 3604 | if test -n "$ac_tool_prefix"; then | 
 | 3605 |   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | 
 | 3606 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3607 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 3608 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3609 | if ${ac_cv_prog_CC+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3610 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3611 | else | 
 | 3612 |   if test -n "$CC"; then | 
 | 3613 |   ac_cv_prog_CC="$CC" # Let the user override the test. | 
 | 3614 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3615 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 3616 | for as_dir in $PATH | 
 | 3617 | do | 
 | 3618 |   IFS=$as_save_IFS | 
 | 3619 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3620 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 3621 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3622 |     ac_cv_prog_CC="${ac_tool_prefix}gcc" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3623 |     $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] | 3624 |     break 2 | 
 | 3625 |   fi | 
 | 3626 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3627 |   done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3628 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3629 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3630 | fi | 
 | 3631 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3632 | CC=$ac_cv_prog_CC | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3633 | if test -n "$CC"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3634 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
 | 3635 | $as_echo "$CC" >&6; } | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3636 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3637 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 3638 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3639 | fi | 
 | 3640 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3641 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3642 | fi | 
 | 3643 | if test -z "$ac_cv_prog_CC"; then | 
 | 3644 |   ac_ct_CC=$CC | 
 | 3645 |   # Extract the first word of "gcc", so it can be a program name with args. | 
 | 3646 | set dummy gcc; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3647 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 3648 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3649 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3650 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3651 | else | 
 | 3652 |   if test -n "$ac_ct_CC"; then | 
 | 3653 |   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | 
 | 3654 | else | 
 | 3655 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 3656 | for as_dir in $PATH | 
 | 3657 | do | 
 | 3658 |   IFS=$as_save_IFS | 
 | 3659 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3660 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 3661 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3662 |     ac_cv_prog_ac_ct_CC="gcc" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3663 |     $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] | 3664 |     break 2 | 
 | 3665 |   fi | 
 | 3666 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3667 |   done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3668 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3669 |  | 
 | 3670 | fi | 
 | 3671 | fi | 
 | 3672 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | 
 | 3673 | if test -n "$ac_ct_CC"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3674 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | 
 | 3675 | $as_echo "$ac_ct_CC" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3676 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3677 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 3678 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3679 | fi | 
 | 3680 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3681 |   if test "x$ac_ct_CC" = x; then | 
 | 3682 |     CC="" | 
 | 3683 |   else | 
 | 3684 |     case $cross_compiling:$ac_tool_warned in | 
 | 3685 | yes:) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3686 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 3687 | $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] | 3688 | ac_tool_warned=yes ;; | 
 | 3689 | esac | 
 | 3690 |     CC=$ac_ct_CC | 
 | 3691 |   fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3692 | else | 
 | 3693 |   CC="$ac_cv_prog_CC" | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3694 | fi | 
 | 3695 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3696 | if test -z "$CC"; then | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3697 |           if test -n "$ac_tool_prefix"; then | 
 | 3698 |     # 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] | 3699 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3700 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 3701 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3702 | if ${ac_cv_prog_CC+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3703 |   $as_echo_n "(cached) " >&6 | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3704 | else | 
 | 3705 |   if test -n "$CC"; then | 
 | 3706 |   ac_cv_prog_CC="$CC" # Let the user override the test. | 
 | 3707 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3708 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 3709 | for as_dir in $PATH | 
 | 3710 | do | 
 | 3711 |   IFS=$as_save_IFS | 
 | 3712 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3713 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 3714 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3715 |     ac_cv_prog_CC="${ac_tool_prefix}cc" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3716 |     $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] | 3717 |     break 2 | 
 | 3718 |   fi | 
 | 3719 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3720 |   done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3721 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3722 |  | 
 | 3723 | fi | 
 | 3724 | fi | 
 | 3725 | CC=$ac_cv_prog_CC | 
 | 3726 | if test -n "$CC"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3727 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
 | 3728 | $as_echo "$CC" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3729 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3730 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 3731 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3732 | fi | 
 | 3733 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3734 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3735 |   fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3736 | fi | 
 | 3737 | if test -z "$CC"; then | 
 | 3738 |   # Extract the first word of "cc", so it can be a program name with args. | 
 | 3739 | set dummy cc; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3740 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 3741 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3742 | if ${ac_cv_prog_CC+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3743 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3744 | else | 
 | 3745 |   if test -n "$CC"; then | 
 | 3746 |   ac_cv_prog_CC="$CC" # Let the user override the test. | 
 | 3747 | else | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3748 |   ac_prog_rejected=no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3749 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 3750 | for as_dir in $PATH | 
 | 3751 | do | 
 | 3752 |   IFS=$as_save_IFS | 
 | 3753 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3754 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 3755 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3756 |     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | 
 | 3757 |        ac_prog_rejected=yes | 
 | 3758 |        continue | 
 | 3759 |      fi | 
 | 3760 |     ac_cv_prog_CC="cc" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3761 |     $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] | 3762 |     break 2 | 
 | 3763 |   fi | 
 | 3764 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3765 |   done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3766 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3767 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3768 | if test $ac_prog_rejected = yes; then | 
 | 3769 |   # We found a bogon in the path, so make sure we never use it. | 
 | 3770 |   set dummy $ac_cv_prog_CC | 
 | 3771 |   shift | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3772 |   if test $# != 0; then | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3773 |     # We chose a different compiler from the bogus one. | 
 | 3774 |     # However, it has the same basename, so the bogon will be chosen | 
 | 3775 |     # first if we set CC to just the basename; use the full file name. | 
 | 3776 |     shift | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3777 |     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3778 |   fi | 
 | 3779 | fi | 
 | 3780 | fi | 
 | 3781 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3782 | CC=$ac_cv_prog_CC | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3783 | if test -n "$CC"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3784 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
 | 3785 | $as_echo "$CC" >&6; } | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3786 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3787 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 3788 | $as_echo "no" >&6; } | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3789 | fi | 
 | 3790 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3791 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3792 | fi | 
 | 3793 | if test -z "$CC"; then | 
 | 3794 |   if test -n "$ac_tool_prefix"; then | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3795 |   for ac_prog in cl.exe | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3796 |   do | 
 | 3797 |     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
 | 3798 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3799 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 3800 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3801 | if ${ac_cv_prog_CC+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3802 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3803 | else | 
 | 3804 |   if test -n "$CC"; then | 
 | 3805 |   ac_cv_prog_CC="$CC" # Let the user override the test. | 
 | 3806 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3807 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 3808 | for as_dir in $PATH | 
 | 3809 | do | 
 | 3810 |   IFS=$as_save_IFS | 
 | 3811 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3812 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 3813 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3814 |     ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3815 |     $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] | 3816 |     break 2 | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3817 |   fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3818 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3819 |   done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3820 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3821 |  | 
 | 3822 | fi | 
 | 3823 | fi | 
 | 3824 | CC=$ac_cv_prog_CC | 
 | 3825 | if test -n "$CC"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3826 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
 | 3827 | $as_echo "$CC" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3828 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3829 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 3830 | $as_echo "no" >&6; } | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3831 | fi | 
 | 3832 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3833 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3834 |     test -n "$CC" && break | 
 | 3835 |   done | 
 | 3836 | fi | 
 | 3837 | if test -z "$CC"; then | 
 | 3838 |   ac_ct_CC=$CC | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3839 |   for ac_prog in cl.exe | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3840 | do | 
 | 3841 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 3842 | set dummy $ac_prog; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3843 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 3844 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3845 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3846 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3847 | else | 
 | 3848 |   if test -n "$ac_ct_CC"; then | 
 | 3849 |   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | 
 | 3850 | else | 
 | 3851 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 3852 | for as_dir in $PATH | 
 | 3853 | do | 
 | 3854 |   IFS=$as_save_IFS | 
 | 3855 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3856 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 3857 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3858 |     ac_cv_prog_ac_ct_CC="$ac_prog" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3859 |     $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] | 3860 |     break 2 | 
 | 3861 |   fi | 
 | 3862 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3863 |   done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3864 | IFS=$as_save_IFS | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3865 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3866 | fi | 
 | 3867 | fi | 
 | 3868 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | 
 | 3869 | if test -n "$ac_ct_CC"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3870 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | 
 | 3871 | $as_echo "$ac_ct_CC" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3872 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3873 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 3874 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3875 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3876 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3877 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3878 |   test -n "$ac_ct_CC" && break | 
 | 3879 | done | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3880 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3881 |   if test "x$ac_ct_CC" = x; then | 
 | 3882 |     CC="" | 
 | 3883 |   else | 
 | 3884 |     case $cross_compiling:$ac_tool_warned in | 
 | 3885 | yes:) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3886 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 3887 | $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] | 3888 | ac_tool_warned=yes ;; | 
 | 3889 | esac | 
 | 3890 |     CC=$ac_ct_CC | 
 | 3891 |   fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3892 | fi | 
 | 3893 |  | 
 | 3894 | fi | 
 | 3895 |  | 
 | 3896 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3897 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 3898 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 3899 | as_fn_error $? "no acceptable C compiler found in \$PATH | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3900 | See \`config.log' for more details" "$LINENO" 5; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3901 |  | 
 | 3902 | # Provide some information about the compiler. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3903 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | 
 | 3904 | set X $ac_compile | 
 | 3905 | ac_compiler=$2 | 
 | 3906 | for ac_option in --version -v -V -qversion; do | 
 | 3907 |   { { ac_try="$ac_compiler $ac_option >&5" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3908 | case "(($ac_try" in | 
 | 3909 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 3910 |   *) ac_try_echo=$ac_try;; | 
 | 3911 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3912 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 3913 | $as_echo "$ac_try_echo"; } >&5 | 
 | 3914 |   (eval "$ac_compiler $ac_option >&5") 2>conftest.err | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3915 |   ac_status=$? | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3916 |   if test -s conftest.err; then | 
 | 3917 |     sed '10a\ | 
 | 3918 | ... rest of stderr output deleted ... | 
 | 3919 |          10q' conftest.err >conftest.er1 | 
 | 3920 |     cat conftest.er1 >&5 | 
 | 3921 |   fi | 
 | 3922 |   rm -f conftest.er1 conftest.err | 
 | 3923 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 3924 |   test $ac_status = 0; } | 
 | 3925 | done | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3926 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3927 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3928 | /* end confdefs.h.  */ | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3929 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3930 | int | 
 | 3931 | main () | 
 | 3932 | { | 
 | 3933 |  | 
 | 3934 |   ; | 
 | 3935 |   return 0; | 
 | 3936 | } | 
 | 3937 | _ACEOF | 
 | 3938 | ac_clean_files_save=$ac_clean_files | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3939 | 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] | 3940 | # Try to create an executable without -o first, disregard a.out. | 
 | 3941 | # It will help us diagnose broken compilers, and finding out an intuition | 
 | 3942 | # of exeext. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3943 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | 
 | 3944 | $as_echo_n "checking whether the C compiler works... " >&6; } | 
 | 3945 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | 
 | 3946 |  | 
 | 3947 | # The possible output files: | 
 | 3948 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | 
 | 3949 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3950 | ac_rmfiles= | 
 | 3951 | for ac_file in $ac_files | 
 | 3952 | do | 
 | 3953 |   case $ac_file in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3954 |     *.$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] | 3955 |     * ) ac_rmfiles="$ac_rmfiles $ac_file";; | 
 | 3956 |   esac | 
 | 3957 | done | 
 | 3958 | rm -f $ac_rmfiles | 
 | 3959 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3960 | if { { ac_try="$ac_link_default" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3961 | case "(($ac_try" in | 
 | 3962 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 3963 |   *) ac_try_echo=$ac_try;; | 
 | 3964 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3965 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 3966 | $as_echo "$ac_try_echo"; } >&5 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3967 |   (eval "$ac_link_default") 2>&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3968 |   ac_status=$? | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3969 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 3970 |   test $ac_status = 0; }; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3971 |   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | 
 | 3972 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | 
 | 3973 | # in a Makefile.  We should not override ac_cv_exeext if it was cached, | 
 | 3974 | # so that the user can short-circuit this test for compilers unknown to | 
 | 3975 | # Autoconf. | 
 | 3976 | for ac_file in $ac_files '' | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3977 | do | 
 | 3978 |   test -f "$ac_file" || continue | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3979 |   case $ac_file in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3980 |     *.$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] | 3981 | 	;; | 
 | 3982 |     [ab].out ) | 
 | 3983 | 	# We found the default executable, but exeext='' is most | 
 | 3984 | 	# certainly right. | 
 | 3985 | 	break;; | 
 | 3986 |     *.* ) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3987 | 	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3988 | 	then :; else | 
 | 3989 | 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | 
 | 3990 | 	fi | 
 | 3991 | 	# We set ac_cv_exeext here because the later test for it is not | 
 | 3992 | 	# safe: cross compilers may not add the suffix if given an `-o' | 
 | 3993 | 	# argument, so we may need to know it at that point already. | 
 | 3994 | 	# Even if this section looks crufty: it has the advantage of | 
 | 3995 | 	# actually working. | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 3996 | 	break;; | 
 | 3997 |     * ) | 
 | 3998 | 	break;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3999 |   esac | 
 | 4000 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4001 | test "$ac_cv_exeext" = no && ac_cv_exeext= | 
 | 4002 |  | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4003 | else | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4004 |   ac_file='' | 
 | 4005 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4006 | if test -z "$ac_file"; then : | 
 | 4007 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 4008 | $as_echo "no" >&6; } | 
 | 4009 | $as_echo "$as_me: failed program was:" >&5 | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4010 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 4011 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4012 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 4013 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 4014 | as_fn_error 77 "C compiler cannot create executables | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4015 | See \`config.log' for more details" "$LINENO" 5; } | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4016 | else | 
 | 4017 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 4018 | $as_echo "yes" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4019 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4020 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | 
 | 4021 | $as_echo_n "checking for C compiler default output file name... " >&6; } | 
 | 4022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | 
 | 4023 | $as_echo "$ac_file" >&6; } | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4024 | ac_exeext=$ac_cv_exeext | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4025 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4026 | 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] | 4027 | ac_clean_files=$ac_clean_files_save | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4028 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | 
 | 4029 | $as_echo_n "checking for suffix of executables... " >&6; } | 
 | 4030 | if { { ac_try="$ac_link" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4031 | case "(($ac_try" in | 
 | 4032 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 4033 |   *) ac_try_echo=$ac_try;; | 
 | 4034 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4035 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 4036 | $as_echo "$ac_try_echo"; } >&5 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4037 |   (eval "$ac_link") 2>&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4038 |   ac_status=$? | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4039 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 4040 |   test $ac_status = 0; }; then : | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4041 |   # If both `conftest.exe' and `conftest' are `present' (well, observable) | 
 | 4042 | # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will | 
 | 4043 | # work properly (i.e., refer to `conftest.exe'), while it won't with | 
 | 4044 | # `rm'. | 
 | 4045 | for ac_file in conftest.exe conftest conftest.*; do | 
 | 4046 |   test -f "$ac_file" || continue | 
 | 4047 |   case $ac_file in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4048 |     *.$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] | 4049 |     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | 
 | 4050 | 	  break;; | 
 | 4051 |     * ) break;; | 
 | 4052 |   esac | 
 | 4053 | done | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4054 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4055 |   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 4056 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 4057 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4058 | See \`config.log' for more details" "$LINENO" 5; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4059 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4060 | rm -f conftest conftest$ac_cv_exeext | 
 | 4061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | 
 | 4062 | $as_echo "$ac_cv_exeext" >&6; } | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4063 |  | 
 | 4064 | rm -f conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4065 | EXEEXT=$ac_cv_exeext | 
 | 4066 | ac_exeext=$EXEEXT | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4067 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 4068 | /* end confdefs.h.  */ | 
 | 4069 | #include <stdio.h> | 
 | 4070 | int | 
 | 4071 | main () | 
 | 4072 | { | 
 | 4073 | FILE *f = fopen ("conftest.out", "w"); | 
 | 4074 |  return ferror (f) || fclose (f) != 0; | 
 | 4075 |  | 
 | 4076 |   ; | 
 | 4077 |   return 0; | 
 | 4078 | } | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4079 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4080 | ac_clean_files="$ac_clean_files conftest.out" | 
 | 4081 | # Check that the compiler produces executables we can run.  If not, either | 
 | 4082 | # the compiler is broken, or we cross compile. | 
 | 4083 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | 
 | 4084 | $as_echo_n "checking whether we are cross compiling... " >&6; } | 
 | 4085 | if test "$cross_compiling" != yes; then | 
 | 4086 |   { { ac_try="$ac_link" | 
 | 4087 | case "(($ac_try" in | 
 | 4088 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 4089 |   *) ac_try_echo=$ac_try;; | 
 | 4090 | esac | 
 | 4091 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 4092 | $as_echo "$ac_try_echo"; } >&5 | 
 | 4093 |   (eval "$ac_link") 2>&5 | 
 | 4094 |   ac_status=$? | 
 | 4095 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 4096 |   test $ac_status = 0; } | 
 | 4097 |   if { ac_try='./conftest$ac_cv_exeext' | 
 | 4098 |   { { case "(($ac_try" in | 
 | 4099 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 4100 |   *) ac_try_echo=$ac_try;; | 
 | 4101 | esac | 
 | 4102 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 4103 | $as_echo "$ac_try_echo"; } >&5 | 
 | 4104 |   (eval "$ac_try") 2>&5 | 
 | 4105 |   ac_status=$? | 
 | 4106 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 4107 |   test $ac_status = 0; }; }; then | 
 | 4108 |     cross_compiling=no | 
 | 4109 |   else | 
 | 4110 |     if test "$cross_compiling" = maybe; then | 
 | 4111 | 	cross_compiling=yes | 
 | 4112 |     else | 
 | 4113 | 	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 4114 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 4115 | as_fn_error $? "cannot run C compiled programs. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4116 | If you meant to cross compile, use \`--host'. | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4117 | See \`config.log' for more details" "$LINENO" 5; } | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4118 |     fi | 
 | 4119 |   fi | 
 | 4120 | fi | 
 | 4121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | 
 | 4122 | $as_echo "$cross_compiling" >&6; } | 
 | 4123 |  | 
 | 4124 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | 
 | 4125 | ac_clean_files=$ac_clean_files_save | 
 | 4126 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | 
 | 4127 | $as_echo_n "checking for suffix of object files... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4128 | if ${ac_cv_objext+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4129 |   $as_echo_n "(cached) " >&6 | 
 | 4130 | else | 
 | 4131 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4132 | /* end confdefs.h.  */ | 
 | 4133 |  | 
 | 4134 | int | 
 | 4135 | main () | 
 | 4136 | { | 
 | 4137 |  | 
 | 4138 |   ; | 
 | 4139 |   return 0; | 
 | 4140 | } | 
 | 4141 | _ACEOF | 
 | 4142 | rm -f conftest.o conftest.obj | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4143 | if { { ac_try="$ac_compile" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4144 | case "(($ac_try" in | 
 | 4145 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 4146 |   *) ac_try_echo=$ac_try;; | 
 | 4147 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4148 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 4149 | $as_echo "$ac_try_echo"; } >&5 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4150 |   (eval "$ac_compile") 2>&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4151 |   ac_status=$? | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4152 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 4153 |   test $ac_status = 0; }; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4154 |   for ac_file in conftest.o conftest.obj conftest.*; do | 
 | 4155 |   test -f "$ac_file" || continue; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4156 |   case $ac_file in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4157 |     *.$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] | 4158 |     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | 
 | 4159 |        break;; | 
 | 4160 |   esac | 
 | 4161 | done | 
 | 4162 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4163 |   $as_echo "$as_me: failed program was:" >&5 | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4164 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 4165 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4166 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 4167 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 4168 | as_fn_error $? "cannot compute suffix of object files: cannot compile | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4169 | See \`config.log' for more details" "$LINENO" 5; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4170 | fi | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4171 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4172 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | 
 | 4174 | $as_echo "$ac_cv_objext" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4175 | OBJEXT=$ac_cv_objext | 
 | 4176 | ac_objext=$OBJEXT | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4177 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | 
 | 4178 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4179 | if ${ac_cv_c_compiler_gnu+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4180 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4181 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4182 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4183 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4184 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4185 | int | 
 | 4186 | main () | 
 | 4187 | { | 
 | 4188 | #ifndef __GNUC__ | 
 | 4189 |        choke me | 
 | 4190 | #endif | 
 | 4191 |  | 
 | 4192 |   ; | 
 | 4193 |   return 0; | 
 | 4194 | } | 
 | 4195 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4196 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4197 |   ac_compiler_gnu=yes | 
 | 4198 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4199 |   ac_compiler_gnu=no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4200 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4201 | 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] | 4202 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | 
 | 4203 |  | 
 | 4204 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | 
 | 4206 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | 
 | 4207 | if test $ac_compiler_gnu = yes; then | 
 | 4208 |   GCC=yes | 
 | 4209 | else | 
 | 4210 |   GCC= | 
 | 4211 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4212 | ac_test_CFLAGS=${CFLAGS+set} | 
 | 4213 | ac_save_CFLAGS=$CFLAGS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4214 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | 
 | 4215 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4216 | if ${ac_cv_prog_cc_g+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4217 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4218 | else | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4219 |   ac_save_c_werror_flag=$ac_c_werror_flag | 
 | 4220 |    ac_c_werror_flag=yes | 
 | 4221 |    ac_cv_prog_cc_g=no | 
 | 4222 |    CFLAGS="-g" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4223 |    cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4224 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4225 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4226 | int | 
 | 4227 | main () | 
 | 4228 | { | 
 | 4229 |  | 
 | 4230 |   ; | 
 | 4231 |   return 0; | 
 | 4232 | } | 
 | 4233 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4234 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4235 |   ac_cv_prog_cc_g=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4236 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4237 |   CFLAGS="" | 
 | 4238 |       cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4239 | /* end confdefs.h.  */ | 
 | 4240 |  | 
 | 4241 | int | 
 | 4242 | main () | 
 | 4243 | { | 
 | 4244 |  | 
 | 4245 |   ; | 
 | 4246 |   return 0; | 
 | 4247 | } | 
 | 4248 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4249 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4250 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4251 | else | 
 | 4252 |   ac_c_werror_flag=$ac_save_c_werror_flag | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4253 | 	 CFLAGS="-g" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4254 | 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4255 | /* end confdefs.h.  */ | 
 | 4256 |  | 
 | 4257 | int | 
 | 4258 | main () | 
 | 4259 | { | 
 | 4260 |  | 
 | 4261 |   ; | 
 | 4262 |   return 0; | 
 | 4263 | } | 
 | 4264 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4265 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4266 |   ac_cv_prog_cc_g=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4267 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4268 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4269 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4270 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 4271 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4272 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 4273 |    ac_c_werror_flag=$ac_save_c_werror_flag | 
 | 4274 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | 
 | 4276 | $as_echo "$ac_cv_prog_cc_g" >&6; } | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4277 | if test "$ac_test_CFLAGS" = set; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4278 |   CFLAGS=$ac_save_CFLAGS | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4279 | elif test $ac_cv_prog_cc_g = yes; then | 
 | 4280 |   if test "$GCC" = yes; then | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4281 |     CFLAGS="-g -O2" | 
 | 4282 |   else | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4283 |     CFLAGS="-g" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4284 |   fi | 
 | 4285 | else | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4286 |   if test "$GCC" = yes; then | 
 | 4287 |     CFLAGS="-O2" | 
 | 4288 |   else | 
 | 4289 |     CFLAGS= | 
 | 4290 |   fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4291 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4292 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | 
 | 4293 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4294 | if ${ac_cv_prog_cc_c89+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4295 |   $as_echo_n "(cached) " >&6 | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4296 | else | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4297 |   ac_cv_prog_cc_c89=no | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4298 | ac_save_CC=$CC | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4299 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4300 | /* end confdefs.h.  */ | 
 | 4301 | #include <stdarg.h> | 
 | 4302 | #include <stdio.h> | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 4303 | struct stat; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4304 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */ | 
 | 4305 | struct buf { int x; }; | 
 | 4306 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | 
 | 4307 | static char *e (p, i) | 
 | 4308 |      char **p; | 
 | 4309 |      int i; | 
 | 4310 | { | 
 | 4311 |   return p[i]; | 
 | 4312 | } | 
 | 4313 | static char *f (char * (*g) (char **, int), char **p, ...) | 
 | 4314 | { | 
 | 4315 |   char *s; | 
 | 4316 |   va_list v; | 
 | 4317 |   va_start (v,p); | 
 | 4318 |   s = g (p, va_arg (v,int)); | 
 | 4319 |   va_end (v); | 
 | 4320 |   return s; | 
 | 4321 | } | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4322 |  | 
 | 4323 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has | 
 | 4324 |    function prototypes and stuff, but not '\xHH' hex character constants. | 
 | 4325 |    These don't provoke an error unfortunately, instead are silently treated | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4326 |    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] | 4327 |    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an | 
 | 4328 |    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] | 4329 |    that's true only with -std.  */ | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4330 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | 
 | 4331 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4332 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | 
 | 4333 |    inside strings and character constants.  */ | 
 | 4334 | #define FOO(x) 'x' | 
 | 4335 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | 
 | 4336 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4337 | int test (int i, double x); | 
 | 4338 | struct s1 {int (*f) (int a);}; | 
 | 4339 | struct s2 {int (*f) (double a);}; | 
 | 4340 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | 
 | 4341 | int argc; | 
 | 4342 | char **argv; | 
 | 4343 | int | 
 | 4344 | main () | 
 | 4345 | { | 
 | 4346 | return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1]; | 
 | 4347 |   ; | 
 | 4348 |   return 0; | 
 | 4349 | } | 
 | 4350 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4351 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | 
 | 4352 | 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4353 | do | 
 | 4354 |   CC="$ac_save_CC $ac_arg" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4355 |   if ac_fn_c_try_compile "$LINENO"; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4356 |   ac_cv_prog_cc_c89=$ac_arg | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4357 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4358 | rm -f core conftest.err conftest.$ac_objext | 
 | 4359 |   test "x$ac_cv_prog_cc_c89" != "xno" && break | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4360 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4361 | rm -f conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4362 | CC=$ac_save_CC | 
 | 4363 |  | 
 | 4364 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4365 | # AC_CACHE_VAL | 
 | 4366 | case "x$ac_cv_prog_cc_c89" in | 
 | 4367 |   x) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4368 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | 
 | 4369 | $as_echo "none needed" >&6; } ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4370 |   xno) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4371 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | 
 | 4372 | $as_echo "unsupported" >&6; } ;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4373 |   *) | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4374 |     CC="$CC $ac_cv_prog_cc_c89" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4375 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | 
 | 4376 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4377 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4378 | if test "x$ac_cv_prog_cc_c89" != xno; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4379 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4380 | fi | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4381 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4382 | ac_ext=c | 
 | 4383 | ac_cpp='$CPP $CPPFLAGS' | 
 | 4384 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 4385 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 4386 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4387 |  | 
| Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 4388 |  | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4389 |  | 
 | 4390 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4391 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-cxx-main=<compiler>" >&5 | 
 | 4392 | $as_echo_n "checking for --with-cxx-main=<compiler>... " >&6; } | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4393 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4394 | # Check whether --with-cxx_main was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4395 | if test "${with_cxx_main+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4396 |   withval=$with_cxx_main; | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4397 |  | 
 | 4398 | 	case $withval in | 
 | 4399 | 	no)	with_cxx_main=no | 
 | 4400 | 		MAINCC='$(CC)';; | 
 | 4401 | 	yes)	with_cxx_main=yes | 
 | 4402 | 		MAINCC='$(CXX)';; | 
 | 4403 | 	*)	with_cxx_main=yes | 
 | 4404 | 		MAINCC=$withval | 
 | 4405 | 		if test -z "$CXX" | 
 | 4406 | 		then | 
 | 4407 | 			CXX=$withval | 
 | 4408 | 		fi;; | 
 | 4409 | 	esac | 
 | 4410 | else | 
 | 4411 |  | 
 | 4412 | 	with_cxx_main=no | 
 | 4413 | 	MAINCC='$(CC)' | 
 | 4414 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4415 | fi | 
 | 4416 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_cxx_main" >&5 | 
 | 4418 | $as_echo "$with_cxx_main" >&6; } | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4419 |  | 
 | 4420 | preset_cxx="$CXX" | 
 | 4421 | if test -z "$CXX" | 
 | 4422 | then | 
 | 4423 |         case "$CC" in | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4424 |         gcc)    if test -n "$ac_tool_prefix"; then | 
 | 4425 |   # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args. | 
 | 4426 | set dummy ${ac_tool_prefix}g++; ac_word=$2 | 
 | 4427 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 4428 | $as_echo_n "checking for $ac_word... " >&6; } | 
 | 4429 | if ${ac_cv_path_CXX+:} false; then : | 
 | 4430 |   $as_echo_n "(cached) " >&6 | 
 | 4431 | else | 
 | 4432 |   case $CXX in | 
 | 4433 |   [\\/]* | ?:[\\/]*) | 
 | 4434 |   ac_cv_path_CXX="$CXX" # Let the user override the test with a path. | 
 | 4435 |   ;; | 
 | 4436 |   *) | 
 | 4437 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4438 | for as_dir in notfound | 
 | 4439 | do | 
 | 4440 |   IFS=$as_save_IFS | 
 | 4441 |   test -z "$as_dir" && as_dir=. | 
 | 4442 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 4443 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4444 |     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" | 
 | 4445 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 4446 |     break 2 | 
 | 4447 |   fi | 
 | 4448 | done | 
 | 4449 |   done | 
 | 4450 | IFS=$as_save_IFS | 
 | 4451 |  | 
 | 4452 |   ;; | 
 | 4453 | esac | 
 | 4454 | fi | 
 | 4455 | CXX=$ac_cv_path_CXX | 
 | 4456 | if test -n "$CXX"; then | 
 | 4457 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | 
 | 4458 | $as_echo "$CXX" >&6; } | 
 | 4459 | else | 
 | 4460 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 4461 | $as_echo "no" >&6; } | 
 | 4462 | fi | 
 | 4463 |  | 
 | 4464 |  | 
 | 4465 | fi | 
 | 4466 | if test -z "$ac_cv_path_CXX"; then | 
 | 4467 |   ac_pt_CXX=$CXX | 
 | 4468 |   # Extract the first word of "g++", so it can be a program name with args. | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4469 | set dummy g++; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4470 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 4471 | $as_echo_n "checking for $ac_word... " >&6; } | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4472 | if ${ac_cv_path_ac_pt_CXX+:} false; then : | 
 | 4473 |   $as_echo_n "(cached) " >&6 | 
 | 4474 | else | 
 | 4475 |   case $ac_pt_CXX in | 
 | 4476 |   [\\/]* | ?:[\\/]*) | 
 | 4477 |   ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. | 
 | 4478 |   ;; | 
 | 4479 |   *) | 
 | 4480 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4481 | for as_dir in notfound | 
 | 4482 | do | 
 | 4483 |   IFS=$as_save_IFS | 
 | 4484 |   test -z "$as_dir" && as_dir=. | 
 | 4485 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 4486 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4487 |     ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext" | 
 | 4488 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 4489 |     break 2 | 
 | 4490 |   fi | 
 | 4491 | done | 
 | 4492 |   done | 
 | 4493 | IFS=$as_save_IFS | 
 | 4494 |  | 
 | 4495 |   ;; | 
 | 4496 | esac | 
 | 4497 | fi | 
 | 4498 | ac_pt_CXX=$ac_cv_path_ac_pt_CXX | 
 | 4499 | if test -n "$ac_pt_CXX"; then | 
 | 4500 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 | 
 | 4501 | $as_echo "$ac_pt_CXX" >&6; } | 
 | 4502 | else | 
 | 4503 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 4504 | $as_echo "no" >&6; } | 
 | 4505 | fi | 
 | 4506 |  | 
 | 4507 |   if test "x$ac_pt_CXX" = x; then | 
 | 4508 |     CXX="g++" | 
 | 4509 |   else | 
 | 4510 |     case $cross_compiling:$ac_tool_warned in | 
 | 4511 | yes:) | 
 | 4512 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 4513 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
 | 4514 | ac_tool_warned=yes ;; | 
 | 4515 | esac | 
 | 4516 |     CXX=$ac_pt_CXX | 
 | 4517 |   fi | 
 | 4518 | else | 
 | 4519 |   CXX="$ac_cv_path_CXX" | 
 | 4520 | fi | 
 | 4521 |  ;; | 
 | 4522 |         cc)     if test -n "$ac_tool_prefix"; then | 
 | 4523 |   # Extract the first word of "${ac_tool_prefix}c++", so it can be a program name with args. | 
 | 4524 | set dummy ${ac_tool_prefix}c++; ac_word=$2 | 
 | 4525 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 4526 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4527 | if ${ac_cv_path_CXX+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4528 |   $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4529 | else | 
 | 4530 |   case $CXX in | 
 | 4531 |   [\\/]* | ?:[\\/]*) | 
 | 4532 |   ac_cv_path_CXX="$CXX" # Let the user override the test with a path. | 
 | 4533 |   ;; | 
 | 4534 |   *) | 
 | 4535 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4536 | for as_dir in notfound | 
 | 4537 | do | 
 | 4538 |   IFS=$as_save_IFS | 
 | 4539 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4540 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 4541 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4542 |     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4543 |     $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] | 4544 |     break 2 | 
 | 4545 |   fi | 
 | 4546 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4547 |   done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4548 | IFS=$as_save_IFS | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4549 |  | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4550 |   ;; | 
 | 4551 | esac | 
 | 4552 | fi | 
 | 4553 | CXX=$ac_cv_path_CXX | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4554 | if test -n "$CXX"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4555 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | 
 | 4556 | $as_echo "$CXX" >&6; } | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4557 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4558 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 4559 | $as_echo "no" >&6; } | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4560 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4561 |  | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4562 |  | 
 | 4563 | fi | 
 | 4564 | if test -z "$ac_cv_path_CXX"; then | 
 | 4565 |   ac_pt_CXX=$CXX | 
 | 4566 |   # Extract the first word of "c++", so it can be a program name with args. | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4567 | set dummy c++; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4568 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 4569 | $as_echo_n "checking for $ac_word... " >&6; } | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4570 | if ${ac_cv_path_ac_pt_CXX+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4571 |   $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4572 | else | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4573 |   case $ac_pt_CXX in | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4574 |   [\\/]* | ?:[\\/]*) | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4575 |   ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4576 |   ;; | 
 | 4577 |   *) | 
 | 4578 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4579 | for as_dir in notfound | 
 | 4580 | do | 
 | 4581 |   IFS=$as_save_IFS | 
 | 4582 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4583 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 4584 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4585 |     ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4586 |     $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] | 4587 |     break 2 | 
 | 4588 |   fi | 
 | 4589 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4590 |   done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4591 | IFS=$as_save_IFS | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4592 |  | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4593 |   ;; | 
 | 4594 | esac | 
 | 4595 | fi | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4596 | ac_pt_CXX=$ac_cv_path_ac_pt_CXX | 
 | 4597 | if test -n "$ac_pt_CXX"; then | 
 | 4598 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 | 
 | 4599 | $as_echo "$ac_pt_CXX" >&6; } | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4600 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4601 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 4602 | $as_echo "no" >&6; } | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4603 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4604 |  | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4605 |   if test "x$ac_pt_CXX" = x; then | 
 | 4606 |     CXX="c++" | 
 | 4607 |   else | 
 | 4608 |     case $cross_compiling:$ac_tool_warned in | 
 | 4609 | yes:) | 
 | 4610 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 4611 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
 | 4612 | ac_tool_warned=yes ;; | 
 | 4613 | esac | 
 | 4614 |     CXX=$ac_pt_CXX | 
 | 4615 |   fi | 
 | 4616 | else | 
 | 4617 |   CXX="$ac_cv_path_CXX" | 
 | 4618 | fi | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4619 |  ;; | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4620 |         clang|*/clang)     if test -n "$ac_tool_prefix"; then | 
 | 4621 |   # Extract the first word of "${ac_tool_prefix}clang++", so it can be a program name with args. | 
 | 4622 | set dummy ${ac_tool_prefix}clang++; ac_word=$2 | 
| Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 4623 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 4624 | $as_echo_n "checking for $ac_word... " >&6; } | 
 | 4625 | if ${ac_cv_path_CXX+:} false; then : | 
 | 4626 |   $as_echo_n "(cached) " >&6 | 
 | 4627 | else | 
 | 4628 |   case $CXX in | 
 | 4629 |   [\\/]* | ?:[\\/]*) | 
 | 4630 |   ac_cv_path_CXX="$CXX" # Let the user override the test with a path. | 
 | 4631 |   ;; | 
 | 4632 |   *) | 
 | 4633 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4634 | for as_dir in notfound | 
 | 4635 | do | 
 | 4636 |   IFS=$as_save_IFS | 
 | 4637 |   test -z "$as_dir" && as_dir=. | 
 | 4638 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 4639 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 4640 |     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" | 
 | 4641 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 4642 |     break 2 | 
 | 4643 |   fi | 
 | 4644 | done | 
 | 4645 |   done | 
 | 4646 | IFS=$as_save_IFS | 
 | 4647 |  | 
| Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 4648 |   ;; | 
 | 4649 | esac | 
 | 4650 | fi | 
 | 4651 | CXX=$ac_cv_path_CXX | 
 | 4652 | if test -n "$CXX"; then | 
 | 4653 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | 
 | 4654 | $as_echo "$CXX" >&6; } | 
 | 4655 | else | 
 | 4656 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 4657 | $as_echo "no" >&6; } | 
 | 4658 | fi | 
 | 4659 |  | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4660 |  | 
 | 4661 | fi | 
 | 4662 | if test -z "$ac_cv_path_CXX"; then | 
 | 4663 |   ac_pt_CXX=$CXX | 
 | 4664 |   # Extract the first word of "clang++", so it can be a program name with args. | 
 | 4665 | set dummy clang++; ac_word=$2 | 
 | 4666 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 4667 | $as_echo_n "checking for $ac_word... " >&6; } | 
 | 4668 | if ${ac_cv_path_ac_pt_CXX+:} false; then : | 
 | 4669 |   $as_echo_n "(cached) " >&6 | 
 | 4670 | else | 
 | 4671 |   case $ac_pt_CXX in | 
 | 4672 |   [\\/]* | ?:[\\/]*) | 
 | 4673 |   ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. | 
 | 4674 |   ;; | 
 | 4675 |   *) | 
 | 4676 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4677 | for as_dir in notfound | 
 | 4678 | do | 
 | 4679 |   IFS=$as_save_IFS | 
 | 4680 |   test -z "$as_dir" && as_dir=. | 
 | 4681 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 4682 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4683 |     ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext" | 
 | 4684 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 4685 |     break 2 | 
 | 4686 |   fi | 
 | 4687 | done | 
 | 4688 |   done | 
 | 4689 | IFS=$as_save_IFS | 
 | 4690 |  | 
 | 4691 |   ;; | 
 | 4692 | esac | 
 | 4693 | fi | 
 | 4694 | ac_pt_CXX=$ac_cv_path_ac_pt_CXX | 
 | 4695 | if test -n "$ac_pt_CXX"; then | 
 | 4696 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 | 
 | 4697 | $as_echo "$ac_pt_CXX" >&6; } | 
 | 4698 | else | 
 | 4699 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 4700 | $as_echo "no" >&6; } | 
 | 4701 | fi | 
 | 4702 |  | 
 | 4703 |   if test "x$ac_pt_CXX" = x; then | 
 | 4704 |     CXX="clang++" | 
 | 4705 |   else | 
 | 4706 |     case $cross_compiling:$ac_tool_warned in | 
 | 4707 | yes:) | 
 | 4708 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 4709 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
 | 4710 | ac_tool_warned=yes ;; | 
 | 4711 | esac | 
 | 4712 |     CXX=$ac_pt_CXX | 
 | 4713 |   fi | 
 | 4714 | else | 
 | 4715 |   CXX="$ac_cv_path_CXX" | 
 | 4716 | fi | 
| Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 4717 |  ;; | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4718 |         esac | 
 | 4719 | 	if test "$CXX" = "notfound" | 
 | 4720 | 	then | 
 | 4721 | 		CXX="" | 
 | 4722 | 	fi | 
 | 4723 | fi | 
 | 4724 | if test -z "$CXX" | 
 | 4725 | then | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4726 | 	if test -n "$ac_tool_prefix"; then | 
 | 4727 |   for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl | 
 | 4728 |   do | 
 | 4729 |     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
 | 4730 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4731 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 4732 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4733 | if ${ac_cv_prog_CXX+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4734 |   $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4735 | else | 
 | 4736 |   if test -n "$CXX"; then | 
 | 4737 |   ac_cv_prog_CXX="$CXX" # Let the user override the test. | 
 | 4738 | else | 
 | 4739 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4740 | for as_dir in $PATH | 
 | 4741 | do | 
 | 4742 |   IFS=$as_save_IFS | 
 | 4743 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4744 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 4745 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4746 |     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4747 |     $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] | 4748 |     break 2 | 
 | 4749 |   fi | 
 | 4750 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4751 |   done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4752 | IFS=$as_save_IFS | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4753 |  | 
 | 4754 | fi | 
 | 4755 | fi | 
 | 4756 | CXX=$ac_cv_prog_CXX | 
 | 4757 | if test -n "$CXX"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4758 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | 
 | 4759 | $as_echo "$CXX" >&6; } | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4760 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4761 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 4762 | $as_echo "no" >&6; } | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4763 | fi | 
 | 4764 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4765 |  | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4766 |     test -n "$CXX" && break | 
 | 4767 |   done | 
 | 4768 | fi | 
 | 4769 | if test -z "$CXX"; then | 
 | 4770 |   ac_ct_CXX=$CXX | 
 | 4771 |   for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl | 
 | 4772 | do | 
 | 4773 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 4774 | set dummy $ac_prog; ac_word=$2 | 
 | 4775 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 4776 | $as_echo_n "checking for $ac_word... " >&6; } | 
 | 4777 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : | 
 | 4778 |   $as_echo_n "(cached) " >&6 | 
 | 4779 | else | 
 | 4780 |   if test -n "$ac_ct_CXX"; then | 
 | 4781 |   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | 
 | 4782 | else | 
 | 4783 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4784 | for as_dir in $PATH | 
 | 4785 | do | 
 | 4786 |   IFS=$as_save_IFS | 
 | 4787 |   test -z "$as_dir" && as_dir=. | 
 | 4788 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 4789 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4790 |     ac_cv_prog_ac_ct_CXX="$ac_prog" | 
 | 4791 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 4792 |     break 2 | 
 | 4793 |   fi | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4794 | done | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4795 |   done | 
 | 4796 | IFS=$as_save_IFS | 
 | 4797 |  | 
 | 4798 | fi | 
 | 4799 | fi | 
 | 4800 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | 
 | 4801 | if test -n "$ac_ct_CXX"; then | 
 | 4802 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | 
 | 4803 | $as_echo "$ac_ct_CXX" >&6; } | 
 | 4804 | else | 
 | 4805 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 4806 | $as_echo "no" >&6; } | 
 | 4807 | fi | 
 | 4808 |  | 
 | 4809 |  | 
 | 4810 |   test -n "$ac_ct_CXX" && break | 
 | 4811 | done | 
 | 4812 |  | 
 | 4813 |   if test "x$ac_ct_CXX" = x; then | 
 | 4814 |     CXX="notfound" | 
 | 4815 |   else | 
 | 4816 |     case $cross_compiling:$ac_tool_warned in | 
 | 4817 | yes:) | 
 | 4818 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 4819 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
 | 4820 | ac_tool_warned=yes ;; | 
 | 4821 | esac | 
 | 4822 |     CXX=$ac_ct_CXX | 
 | 4823 |   fi | 
 | 4824 | fi | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4825 |  | 
 | 4826 | 	if test "$CXX" = "notfound" | 
 | 4827 | 	then | 
 | 4828 | 		CXX="" | 
 | 4829 | 	fi | 
 | 4830 | fi | 
 | 4831 | if test "$preset_cxx" != "$CXX" | 
 | 4832 | then | 
| Christian Heimes | fe32aec | 2013-11-20 01:18:26 +0100 | [diff] [blame] | 4833 |         { $as_echo "$as_me:${as_lineno-$LINENO}: | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4834 |  | 
 | 4835 |   By default, distutils will build C++ extension modules with \"$CXX\". | 
 | 4836 |   If this is not intended, then set CXX on the configure command line. | 
 | 4837 |   " >&5 | 
| Christian Heimes | fe32aec | 2013-11-20 01:18:26 +0100 | [diff] [blame] | 4838 | $as_echo "$as_me: | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4839 |  | 
 | 4840 |   By default, distutils will build C++ extension modules with \"$CXX\". | 
 | 4841 |   If this is not intended, then set CXX on the configure command line. | 
| Christian Heimes | fe32aec | 2013-11-20 01:18:26 +0100 | [diff] [blame] | 4842 |   " >&6;} | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4843 | fi | 
 | 4844 |  | 
 | 4845 |  | 
| Martin v. Löwis | 48e14d3 | 2011-05-09 07:37:45 +0200 | [diff] [blame] | 4846 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wl,--no-as-needed" >&5 | 
 | 4847 | $as_echo_n "checking for -Wl,--no-as-needed... " >&6; } | 
 | 4848 | save_LDFLAGS="$LDFLAGS" | 
 | 4849 | LDFLAGS="$LDFLAGS -Wl,--no-as-needed" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4850 |  | 
| Martin v. Löwis | 48e14d3 | 2011-05-09 07:37:45 +0200 | [diff] [blame] | 4851 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 4852 | /* end confdefs.h.  */ | 
 | 4853 |  | 
 | 4854 | int | 
 | 4855 | main () | 
 | 4856 | { | 
 | 4857 |  | 
 | 4858 |   ; | 
 | 4859 |   return 0; | 
 | 4860 | } | 
 | 4861 | _ACEOF | 
 | 4862 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 4863 |   NO_AS_NEEDED="-Wl,--no-as-needed" | 
 | 4864 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 4865 | $as_echo "yes" >&6; } | 
 | 4866 | else | 
 | 4867 |   NO_AS_NEEDED="" | 
 | 4868 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 4869 | $as_echo "no" >&6; } | 
 | 4870 | fi | 
 | 4871 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 4872 |     conftest$ac_exeext conftest.$ac_ext | 
 | 4873 | LDFLAGS="$save_LDFLAGS" | 
 | 4874 |  | 
 | 4875 |  | 
 | 4876 |  | 
 | 4877 | # checks for UNIX variants that set C preprocessor variables | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4878 | ac_ext=c | 
 | 4879 | ac_cpp='$CPP $CPPFLAGS' | 
 | 4880 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 4881 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 4882 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4883 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | 
 | 4884 | $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] | 4885 | # On Suns, sometimes $CPP names a directory. | 
 | 4886 | if test -n "$CPP" && test -d "$CPP"; then | 
 | 4887 |   CPP= | 
 | 4888 | fi | 
 | 4889 | if test -z "$CPP"; then | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4890 |   if ${ac_cv_prog_CPP+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4891 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 4892 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4893 |       # Double quotes because CPP needs to be expanded | 
 | 4894 |     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | 
 | 4895 |     do | 
 | 4896 |       ac_preproc_ok=false | 
 | 4897 | for ac_c_preproc_warn_flag in '' yes | 
 | 4898 | do | 
 | 4899 |   # Use a header file that comes with gcc, so configuring glibc | 
 | 4900 |   # with a fresh cross-compiler works. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4901 |   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 4902 |   # <limits.h> exists even on freestanding compilers. | 
| Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 4903 |   # 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] | 4904 |   # not just through cpp. "Syntax error" is here to catch this case. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4905 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4906 | /* end confdefs.h.  */ | 
 | 4907 | #ifdef __STDC__ | 
 | 4908 | # include <limits.h> | 
 | 4909 | #else | 
 | 4910 | # include <assert.h> | 
 | 4911 | #endif | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4912 | 		     Syntax error | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4913 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4914 | if ac_fn_c_try_cpp "$LINENO"; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4915 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4916 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4917 |   # Broken: fails on valid input. | 
 | 4918 | continue | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 4919 | fi | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 4920 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 4921 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4922 |   # OK, works on sane cases.  Now check whether nonexistent headers | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4923 |   # can be detected and how. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4924 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4925 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4926 | #include <ac_nonexistent.h> | 
 | 4927 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4928 | if ac_fn_c_try_cpp "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4929 |   # Broken: success on invalid input. | 
 | 4930 | continue | 
 | 4931 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4932 |   # Passes both tests. | 
 | 4933 | ac_preproc_ok=: | 
 | 4934 | break | 
 | 4935 | fi | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 4936 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4937 |  | 
 | 4938 | done | 
 | 4939 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 4940 | rm -f conftest.i conftest.err conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4941 | if $ac_preproc_ok; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4942 |   break | 
 | 4943 | fi | 
 | 4944 |  | 
 | 4945 |     done | 
 | 4946 |     ac_cv_prog_CPP=$CPP | 
 | 4947 |  | 
 | 4948 | fi | 
 | 4949 |   CPP=$ac_cv_prog_CPP | 
 | 4950 | else | 
 | 4951 |   ac_cv_prog_CPP=$CPP | 
 | 4952 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | 
 | 4954 | $as_echo "$CPP" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4955 | ac_preproc_ok=false | 
 | 4956 | for ac_c_preproc_warn_flag in '' yes | 
 | 4957 | do | 
 | 4958 |   # Use a header file that comes with gcc, so configuring glibc | 
 | 4959 |   # with a fresh cross-compiler works. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4960 |   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 4961 |   # <limits.h> exists even on freestanding compilers. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4962 |   # On the NeXT, cc -E runs the code through the compiler's parser, | 
 | 4963 |   # not just through cpp. "Syntax error" is here to catch this case. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4964 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4965 | /* end confdefs.h.  */ | 
 | 4966 | #ifdef __STDC__ | 
 | 4967 | # include <limits.h> | 
 | 4968 | #else | 
 | 4969 | # include <assert.h> | 
 | 4970 | #endif | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4971 | 		     Syntax error | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4972 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4973 | if ac_fn_c_try_cpp "$LINENO"; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4974 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4975 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4976 |   # Broken: fails on valid input. | 
 | 4977 | continue | 
 | 4978 | fi | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 4979 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4980 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4981 |   # OK, works on sane cases.  Now check whether nonexistent headers | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4982 |   # can be detected and how. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4983 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4984 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4985 | #include <ac_nonexistent.h> | 
 | 4986 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4987 | if ac_fn_c_try_cpp "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4988 |   # Broken: success on invalid input. | 
 | 4989 | continue | 
 | 4990 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4991 |   # Passes both tests. | 
 | 4992 | ac_preproc_ok=: | 
 | 4993 | break | 
 | 4994 | fi | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 4995 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4996 |  | 
 | 4997 | done | 
 | 4998 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 4999 | rm -f conftest.i conftest.err conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5000 | if $ac_preproc_ok; then : | 
 | 5001 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5002 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5003 |   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 5004 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 5005 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 5006 | See \`config.log' for more details" "$LINENO" 5; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5007 | fi | 
 | 5008 |  | 
 | 5009 | ac_ext=c | 
 | 5010 | ac_cpp='$CPP $CPPFLAGS' | 
 | 5011 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 5012 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 5013 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 5014 |  | 
 | 5015 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5016 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | 
 | 5017 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 5018 | if ${ac_cv_path_GREP+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5019 |   $as_echo_n "(cached) " >&6 | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5020 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5021 |   if test -z "$GREP"; then | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5022 |   ac_path_GREP_found=false | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5023 |   # Loop through the user's path and test for each of PROGNAME-LIST | 
 | 5024 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5025 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | 
 | 5026 | do | 
 | 5027 |   IFS=$as_save_IFS | 
 | 5028 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5029 |     for ac_prog in grep ggrep; do | 
 | 5030 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 5031 |       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 5032 |       as_fn_executable_p "$ac_path_GREP" || continue | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5033 | # 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] | 5034 |   # Check for GNU $ac_path_GREP | 
 | 5035 | case `"$ac_path_GREP" --version 2>&1` in | 
 | 5036 | *GNU*) | 
 | 5037 |   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | 
 | 5038 | *) | 
 | 5039 |   ac_count=0 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5040 |   $as_echo_n 0123456789 >"conftest.in" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5041 |   while : | 
 | 5042 |   do | 
 | 5043 |     cat "conftest.in" "conftest.in" >"conftest.tmp" | 
 | 5044 |     mv "conftest.tmp" "conftest.in" | 
 | 5045 |     cp "conftest.in" "conftest.nl" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5046 |     $as_echo 'GREP' >> "conftest.nl" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5047 |     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | 
 | 5048 |     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5049 |     as_fn_arith $ac_count + 1 && ac_count=$as_val | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5050 |     if test $ac_count -gt ${ac_path_GREP_max-0}; then | 
 | 5051 |       # Best one so far, save it but keep looking for a better one | 
 | 5052 |       ac_cv_path_GREP="$ac_path_GREP" | 
 | 5053 |       ac_path_GREP_max=$ac_count | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5054 |     fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5055 |     # 10*(2^10) chars as input seems more than enough | 
 | 5056 |     test $ac_count -gt 10 && break | 
 | 5057 |   done | 
 | 5058 |   rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | 
 | 5059 | esac | 
 | 5060 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5061 |       $ac_path_GREP_found && break 3 | 
 | 5062 |     done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5063 |   done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5064 |   done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5065 | IFS=$as_save_IFS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5066 |   if test -z "$ac_cv_path_GREP"; then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 5067 |     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] | 5068 |   fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5069 | else | 
 | 5070 |   ac_cv_path_GREP=$GREP | 
 | 5071 | fi | 
 | 5072 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5073 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | 
 | 5075 | $as_echo "$ac_cv_path_GREP" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5076 |  GREP="$ac_cv_path_GREP" | 
 | 5077 |  | 
 | 5078 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5079 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | 
 | 5080 | $as_echo_n "checking for egrep... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 5081 | if ${ac_cv_path_EGREP+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5082 |   $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5083 | else | 
 | 5084 |   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | 
 | 5085 |    then ac_cv_path_EGREP="$GREP -E" | 
 | 5086 |    else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5087 |      if test -z "$EGREP"; then | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5088 |   ac_path_EGREP_found=false | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5089 |   # Loop through the user's path and test for each of PROGNAME-LIST | 
 | 5090 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5091 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | 
 | 5092 | do | 
 | 5093 |   IFS=$as_save_IFS | 
 | 5094 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5095 |     for ac_prog in egrep; do | 
 | 5096 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 5097 |       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 5098 |       as_fn_executable_p "$ac_path_EGREP" || continue | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5099 | # 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] | 5100 |   # Check for GNU $ac_path_EGREP | 
 | 5101 | case `"$ac_path_EGREP" --version 2>&1` in | 
 | 5102 | *GNU*) | 
 | 5103 |   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | 
 | 5104 | *) | 
 | 5105 |   ac_count=0 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5106 |   $as_echo_n 0123456789 >"conftest.in" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5107 |   while : | 
 | 5108 |   do | 
 | 5109 |     cat "conftest.in" "conftest.in" >"conftest.tmp" | 
 | 5110 |     mv "conftest.tmp" "conftest.in" | 
 | 5111 |     cp "conftest.in" "conftest.nl" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5112 |     $as_echo 'EGREP' >> "conftest.nl" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5113 |     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | 
 | 5114 |     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5115 |     as_fn_arith $ac_count + 1 && ac_count=$as_val | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5116 |     if test $ac_count -gt ${ac_path_EGREP_max-0}; then | 
 | 5117 |       # Best one so far, save it but keep looking for a better one | 
 | 5118 |       ac_cv_path_EGREP="$ac_path_EGREP" | 
 | 5119 |       ac_path_EGREP_max=$ac_count | 
 | 5120 |     fi | 
 | 5121 |     # 10*(2^10) chars as input seems more than enough | 
 | 5122 |     test $ac_count -gt 10 && break | 
 | 5123 |   done | 
 | 5124 |   rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | 
 | 5125 | esac | 
 | 5126 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5127 |       $ac_path_EGREP_found && break 3 | 
 | 5128 |     done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5129 |   done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5130 |   done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5131 | IFS=$as_save_IFS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5132 |   if test -z "$ac_cv_path_EGREP"; then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 5133 |     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] | 5134 |   fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5135 | else | 
 | 5136 |   ac_cv_path_EGREP=$EGREP | 
 | 5137 | fi | 
 | 5138 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5139 |    fi | 
 | 5140 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | 
 | 5142 | $as_echo "$ac_cv_path_EGREP" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5143 |  EGREP="$ac_cv_path_EGREP" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5144 |  | 
 | 5145 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5146 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | 
 | 5147 | $as_echo_n "checking for ANSI C header files... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 5148 | if ${ac_cv_header_stdc+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5149 |   $as_echo_n "(cached) " >&6 | 
 | 5150 | else | 
 | 5151 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 5152 | /* end confdefs.h.  */ | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5153 | #include <stdlib.h> | 
 | 5154 | #include <stdarg.h> | 
 | 5155 | #include <string.h> | 
 | 5156 | #include <float.h> | 
 | 5157 |  | 
 | 5158 | int | 
 | 5159 | main () | 
 | 5160 | { | 
 | 5161 |  | 
 | 5162 |   ; | 
 | 5163 |   return 0; | 
 | 5164 | } | 
 | 5165 | _ACEOF | 
 | 5166 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 5167 |   ac_cv_header_stdc=yes | 
 | 5168 | else | 
 | 5169 |   ac_cv_header_stdc=no | 
 | 5170 | fi | 
 | 5171 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 5172 |  | 
 | 5173 | if test $ac_cv_header_stdc = yes; then | 
 | 5174 |   # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | 
 | 5175 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 5176 | /* end confdefs.h.  */ | 
 | 5177 | #include <string.h> | 
| Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 5178 |  | 
| Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 5179 | _ACEOF | 
| Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 5180 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5181 |   $EGREP "memchr" >/dev/null 2>&1; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5182 |  | 
| Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 5183 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5184 |   ac_cv_header_stdc=no | 
| Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 5185 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 5186 | rm -f conftest* | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5187 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5188 | fi | 
 | 5189 |  | 
 | 5190 | if test $ac_cv_header_stdc = yes; then | 
 | 5191 |   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | 
 | 5192 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 5193 | /* end confdefs.h.  */ | 
 | 5194 | #include <stdlib.h> | 
 | 5195 |  | 
 | 5196 | _ACEOF | 
 | 5197 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
 | 5198 |   $EGREP "free" >/dev/null 2>&1; then : | 
 | 5199 |  | 
 | 5200 | else | 
 | 5201 |   ac_cv_header_stdc=no | 
 | 5202 | fi | 
 | 5203 | rm -f conftest* | 
 | 5204 |  | 
 | 5205 | fi | 
 | 5206 |  | 
 | 5207 | if test $ac_cv_header_stdc = yes; then | 
 | 5208 |   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | 
 | 5209 |   if test "$cross_compiling" = yes; then : | 
 | 5210 |   : | 
 | 5211 | else | 
 | 5212 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 5213 | /* end confdefs.h.  */ | 
 | 5214 | #include <ctype.h> | 
 | 5215 | #include <stdlib.h> | 
 | 5216 | #if ((' ' & 0x0FF) == 0x020) | 
 | 5217 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | 
 | 5218 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | 
 | 5219 | #else | 
 | 5220 | # define ISLOWER(c) \ | 
 | 5221 | 		   (('a' <= (c) && (c) <= 'i') \ | 
 | 5222 | 		     || ('j' <= (c) && (c) <= 'r') \ | 
 | 5223 | 		     || ('s' <= (c) && (c) <= 'z')) | 
 | 5224 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | 
 | 5225 | #endif | 
 | 5226 |  | 
 | 5227 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | 
 | 5228 | int | 
 | 5229 | main () | 
 | 5230 | { | 
 | 5231 |   int i; | 
 | 5232 |   for (i = 0; i < 256; i++) | 
 | 5233 |     if (XOR (islower (i), ISLOWER (i)) | 
 | 5234 | 	|| toupper (i) != TOUPPER (i)) | 
 | 5235 |       return 2; | 
 | 5236 |   return 0; | 
 | 5237 | } | 
 | 5238 | _ACEOF | 
 | 5239 | if ac_fn_c_try_run "$LINENO"; then : | 
 | 5240 |  | 
 | 5241 | else | 
 | 5242 |   ac_cv_header_stdc=no | 
 | 5243 | fi | 
 | 5244 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 5245 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
 | 5246 | fi | 
 | 5247 |  | 
 | 5248 | fi | 
 | 5249 | fi | 
 | 5250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | 
 | 5251 | $as_echo "$ac_cv_header_stdc" >&6; } | 
 | 5252 | if test $ac_cv_header_stdc = yes; then | 
 | 5253 |  | 
 | 5254 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | 
 | 5255 |  | 
 | 5256 | fi | 
 | 5257 |  | 
 | 5258 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | 
 | 5259 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | 
 | 5260 | 		  inttypes.h stdint.h unistd.h | 
 | 5261 | do : | 
 | 5262 |   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
 | 5263 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | 
 | 5264 | " | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 5265 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5266 |   cat >>confdefs.h <<_ACEOF | 
 | 5267 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
 | 5268 | _ACEOF | 
 | 5269 |  | 
 | 5270 | fi | 
 | 5271 |  | 
 | 5272 | done | 
 | 5273 |  | 
 | 5274 |  | 
 | 5275 |  | 
 | 5276 |   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 5277 | if test "x$ac_cv_header_minix_config_h" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5278 |   MINIX=yes | 
 | 5279 | else | 
 | 5280 |   MINIX= | 
 | 5281 | fi | 
 | 5282 |  | 
 | 5283 |  | 
 | 5284 |   if test "$MINIX" = yes; then | 
 | 5285 |  | 
 | 5286 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | 
 | 5287 |  | 
 | 5288 |  | 
 | 5289 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h | 
 | 5290 |  | 
 | 5291 |  | 
 | 5292 | $as_echo "#define _MINIX 1" >>confdefs.h | 
 | 5293 |  | 
 | 5294 |   fi | 
 | 5295 |  | 
 | 5296 |  | 
 | 5297 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 | 
 | 5298 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 5299 | if ${ac_cv_safe_to_define___extensions__+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5300 |   $as_echo_n "(cached) " >&6 | 
 | 5301 | else | 
 | 5302 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 5303 | /* end confdefs.h.  */ | 
 | 5304 |  | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 5305 | #         define __EXTENSIONS__ 1 | 
 | 5306 |           $ac_includes_default | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5307 | int | 
 | 5308 | main () | 
 | 5309 | { | 
 | 5310 |  | 
 | 5311 |   ; | 
 | 5312 |   return 0; | 
 | 5313 | } | 
 | 5314 | _ACEOF | 
 | 5315 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 5316 |   ac_cv_safe_to_define___extensions__=yes | 
 | 5317 | else | 
 | 5318 |   ac_cv_safe_to_define___extensions__=no | 
 | 5319 | fi | 
 | 5320 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 5321 | fi | 
 | 5322 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 | 
 | 5323 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | 
 | 5324 |   test $ac_cv_safe_to_define___extensions__ = yes && | 
 | 5325 |     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | 
 | 5326 |  | 
 | 5327 |   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h | 
 | 5328 |  | 
 | 5329 |   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | 
 | 5330 |  | 
 | 5331 |   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h | 
 | 5332 |  | 
 | 5333 |   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | 
 | 5334 |  | 
 | 5335 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5336 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5337 | # Check for unsupported systems | 
 | 5338 | case $ac_sys_system/$ac_sys_release in | 
 | 5339 | atheos*|Linux*/1*) | 
 | 5340 |    echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported. | 
 | 5341 |    echo See README for details. | 
 | 5342 |    exit 1;; | 
 | 5343 | esac | 
 | 5344 |  | 
 | 5345 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5346 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-suffix" >&5 | 
 | 5347 | $as_echo_n "checking for --with-suffix... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5348 |  | 
 | 5349 | # Check whether --with-suffix was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5350 | if test "${with_suffix+set}" = set; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5351 |   withval=$with_suffix; | 
 | 5352 | 	case $withval in | 
 | 5353 | 	no)	EXEEXT=;; | 
 | 5354 | 	yes)	EXEEXT=.exe;; | 
 | 5355 | 	*)	EXEEXT=$withval;; | 
 | 5356 | 	esac | 
 | 5357 | fi | 
 | 5358 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5359 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXEEXT" >&5 | 
 | 5360 | $as_echo "$EXEEXT" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5361 |  | 
 | 5362 | # Test whether we're running on a non-case-sensitive system, in which | 
 | 5363 | # case we give a warning if no ext is given | 
 | 5364 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5365 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for case-insensitive build directory" >&5 | 
 | 5366 | $as_echo_n "checking for case-insensitive build directory... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5367 | if test ! -d CaseSensitiveTestDir; then | 
 | 5368 | mkdir CaseSensitiveTestDir | 
 | 5369 | fi | 
 | 5370 |  | 
 | 5371 | if test -d casesensitivetestdir | 
 | 5372 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5373 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 5374 | $as_echo "yes" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5375 |     BUILDEXEEXT=.exe | 
 | 5376 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5377 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 5378 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5379 | 	BUILDEXEEXT=$EXEEXT | 
 | 5380 | fi | 
 | 5381 | rmdir CaseSensitiveTestDir | 
 | 5382 |  | 
 | 5383 | case $MACHDEP in | 
 | 5384 | bsdos*) | 
 | 5385 |     case $CC in | 
 | 5386 |     gcc) CC="$CC -D_HAVE_BSDI";; | 
 | 5387 |     esac;; | 
 | 5388 | esac | 
 | 5389 |  | 
 | 5390 | case $ac_sys_system in | 
 | 5391 | hp*|HP*) | 
 | 5392 |     case $CC in | 
 | 5393 |     cc|*/cc) CC="$CC -Ae";; | 
 | 5394 |     esac;; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5395 | esac | 
 | 5396 |  | 
| doko@python.org | 3e6e2ac | 2013-01-25 13:12:29 +0100 | [diff] [blame] | 5397 | MULTIARCH=$($CC --print-multiarch 2>/dev/null) | 
 | 5398 |  | 
 | 5399 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5400 |  | 
 | 5401 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5402 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY" >&5 | 
 | 5403 | $as_echo_n "checking LIBRARY... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5404 | if test -z "$LIBRARY" | 
 | 5405 | then | 
| Barry Warsaw | f040d7d | 2010-10-18 17:09:07 +0000 | [diff] [blame] | 5406 | 	LIBRARY='libpython$(VERSION)$(ABIFLAGS).a' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5407 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBRARY" >&5 | 
 | 5409 | $as_echo "$LIBRARY" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5410 |  | 
 | 5411 | # LDLIBRARY is the name of the library to link against (as opposed to the | 
 | 5412 | # name of the library into which to insert object files). BLDLIBRARY is also | 
 | 5413 | # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY | 
 | 5414 | # is blank as the main program is not linked directly against LDLIBRARY. | 
 | 5415 | # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On | 
 | 5416 | # systems without shared libraries, LDLIBRARY is the same as LIBRARY | 
 | 5417 | # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, | 
 | 5418 | # DLLLIBRARY is the shared (i.e., DLL) library. | 
 | 5419 | # | 
 | 5420 | # RUNSHARED is used to run shared python without installed libraries | 
 | 5421 | # | 
 | 5422 | # INSTSONAME is the name of the shared library that will be use to install | 
 | 5423 | # on the system - some systems like version suffix, others don't | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5424 | # | 
 | 5425 | # LDVERSION is the shared library version number, normally the Python version | 
 | 5426 | # with the ABI build flags appended. | 
 | 5427 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5428 |  | 
 | 5429 |  | 
 | 5430 |  | 
 | 5431 |  | 
 | 5432 |  | 
 | 5433 |  | 
| Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 +0000 | [diff] [blame] | 5434 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5435 | LDLIBRARY="$LIBRARY" | 
 | 5436 | BLDLIBRARY='$(LDLIBRARY)' | 
 | 5437 | INSTSONAME='$(LDLIBRARY)' | 
 | 5438 | DLLLIBRARY='' | 
 | 5439 | LDLIBRARYDIR='' | 
 | 5440 | RUNSHARED='' | 
| Barry Warsaw | 14d98ac | 2010-11-24 19:43:47 +0000 | [diff] [blame] | 5441 | LDVERSION="$VERSION" | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5442 |  | 
 | 5443 | # LINKCC is the command that links the python executable -- default is $(CC). | 
 | 5444 | # If CXX is set, and if it is needed to link a main function that was | 
 | 5445 | # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: | 
 | 5446 | # python might then depend on the C++ runtime | 
 | 5447 | # This is altered for AIX in order to build the export list before | 
 | 5448 | # linking. | 
 | 5449 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5450 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKCC" >&5 | 
 | 5451 | $as_echo_n "checking LINKCC... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5452 | if test -z "$LINKCC" | 
 | 5453 | then | 
 | 5454 | 	LINKCC='$(PURIFY) $(MAINCC)' | 
 | 5455 | 	case $ac_sys_system in | 
 | 5456 | 	AIX*) | 
 | 5457 | 	   exp_extra="\"\"" | 
 | 5458 | 	   if test $ac_sys_release -ge 5 -o \ | 
 | 5459 | 		   $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then | 
 | 5460 | 	       exp_extra="." | 
 | 5461 | 	   fi | 
 | 5462 | 	   LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5463 | 	QNX*) | 
 | 5464 | 	   # qcc must be used because the other compilers do not | 
 | 5465 | 	   # support -N. | 
 | 5466 | 	   LINKCC=qcc;; | 
 | 5467 | 	esac | 
 | 5468 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKCC" >&5 | 
 | 5470 | $as_echo "$LINKCC" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5471 |  | 
 | 5472 | # GNULD is set to "yes" if the GNU linker is used.  If this goes wrong | 
 | 5473 | # make sure we default having it set to "no": this is used by | 
 | 5474 | # distutils.unixccompiler to know if it should add --enable-new-dtags | 
 | 5475 | # to linker command lines, and failing to detect GNU ld simply results | 
 | 5476 | # in the same bahaviour as before. | 
 | 5477 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5478 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | 
 | 5479 | $as_echo_n "checking for GNU ld... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5480 | ac_prog=ld | 
 | 5481 | if test "$GCC" = yes; then | 
 | 5482 |        ac_prog=`$CC -print-prog-name=ld` | 
 | 5483 | fi | 
 | 5484 | case `"$ac_prog" -V 2>&1 < /dev/null` in | 
 | 5485 |       *GNU*) | 
 | 5486 |           GNULD=yes;; | 
 | 5487 |       *) | 
 | 5488 |           GNULD=no;; | 
 | 5489 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNULD" >&5 | 
 | 5491 | $as_echo "$GNULD" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5492 |  | 
| Daniel Stutzbach | a606faa | 2010-08-31 19:51:07 +0000 | [diff] [blame] | 5493 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 | 
 | 5494 | $as_echo_n "checking for inline... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 5495 | if ${ac_cv_c_inline+:} false; then : | 
| Daniel Stutzbach | a606faa | 2010-08-31 19:51:07 +0000 | [diff] [blame] | 5496 |   $as_echo_n "(cached) " >&6 | 
 | 5497 | else | 
 | 5498 |   ac_cv_c_inline=no | 
 | 5499 | for ac_kw in inline __inline__ __inline; do | 
 | 5500 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 5501 | /* end confdefs.h.  */ | 
 | 5502 | #ifndef __cplusplus | 
 | 5503 | typedef int foo_t; | 
 | 5504 | static $ac_kw foo_t static_foo () {return 0; } | 
 | 5505 | $ac_kw foo_t foo () {return 0; } | 
 | 5506 | #endif | 
 | 5507 |  | 
 | 5508 | _ACEOF | 
 | 5509 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 5510 |   ac_cv_c_inline=$ac_kw | 
 | 5511 | fi | 
 | 5512 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 5513 |   test "$ac_cv_c_inline" != no && break | 
 | 5514 | done | 
 | 5515 |  | 
 | 5516 | fi | 
 | 5517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 | 
 | 5518 | $as_echo "$ac_cv_c_inline" >&6; } | 
 | 5519 |  | 
 | 5520 | case $ac_cv_c_inline in | 
 | 5521 |   inline | yes) ;; | 
 | 5522 |   *) | 
 | 5523 |     case $ac_cv_c_inline in | 
 | 5524 |       no) ac_val=;; | 
 | 5525 |       *) ac_val=$ac_cv_c_inline;; | 
 | 5526 |     esac | 
 | 5527 |     cat >>confdefs.h <<_ACEOF | 
 | 5528 | #ifndef __cplusplus | 
 | 5529 | #define inline $ac_val | 
 | 5530 | #endif | 
 | 5531 | _ACEOF | 
 | 5532 |     ;; | 
 | 5533 | esac | 
 | 5534 |  | 
 | 5535 | if test "$ac_cv_c_inline" != no ; then | 
| Benjamin Peterson | d7f73e9 | 2010-09-05 00:09:07 +0000 | [diff] [blame] | 5536 |  | 
 | 5537 | $as_echo "#define USE_INLINE 1" >>confdefs.h | 
| Daniel Stutzbach | a606faa | 2010-08-31 19:51:07 +0000 | [diff] [blame] | 5538 |  | 
 | 5539 |  | 
 | 5540 | fi | 
 | 5541 |  | 
 | 5542 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5543 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-shared" >&5 | 
 | 5544 | $as_echo_n "checking for --enable-shared... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5545 | # Check whether --enable-shared was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5546 | if test "${enable_shared+set}" = set; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5547 |   enableval=$enable_shared; | 
 | 5548 | fi | 
 | 5549 |  | 
 | 5550 |  | 
 | 5551 | if test -z "$enable_shared" | 
 | 5552 | then | 
 | 5553 |   case $ac_sys_system in | 
| Antoine Pitrou | 6103ab1 | 2009-10-24 20:11:21 +0000 | [diff] [blame] | 5554 |   CYGWIN*) | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5555 |     enable_shared="yes";; | 
 | 5556 |   *) | 
 | 5557 |     enable_shared="no";; | 
 | 5558 |   esac | 
 | 5559 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | 
 | 5561 | $as_echo "$enable_shared" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5562 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5563 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-profiling" >&5 | 
 | 5564 | $as_echo_n "checking for --enable-profiling... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5565 | # Check whether --enable-profiling was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5566 | if test "${enable_profiling+set}" = set; then : | 
| doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 5567 |   enableval=$enable_profiling; | 
 | 5568 | fi | 
 | 5569 |  | 
 | 5570 | if test "x$enable_profiling" = xyes; then | 
 | 5571 |   ac_save_cc="$CC" | 
| Benjamin Peterson | 615ea1a | 2013-03-26 08:55:37 -0400 | [diff] [blame] | 5572 |   CC="$CC -pg" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5573 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5574 | /* end confdefs.h.  */ | 
 | 5575 | int main() { return 0; } | 
 | 5576 | _ACEOF | 
| doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 5577 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 5578 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5579 | else | 
| doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 5580 |   enable_profiling=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5581 | fi | 
| doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 5582 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 5583 |     conftest$ac_exeext conftest.$ac_ext | 
 | 5584 |   CC="$ac_save_cc" | 
 | 5585 | else | 
 | 5586 |   enable_profiling=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5587 | fi | 
| doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 5588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_profiling" >&5 | 
 | 5589 | $as_echo "$enable_profiling" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5590 |  | 
| doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 5591 | if test "x$enable_profiling" = xyes; then | 
 | 5592 |   BASECFLAGS="-pg $BASECFLAGS" | 
 | 5593 |   LDFLAGS="-pg $LDFLAGS" | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5594 | fi | 
 | 5595 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5596 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDLIBRARY" >&5 | 
 | 5597 | $as_echo_n "checking LDLIBRARY... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5598 |  | 
 | 5599 | # MacOSX framework builds need more magic. LDLIBRARY is the dynamic | 
 | 5600 | # library that we build, but we do not want to link against it (we | 
 | 5601 | # will find it with a -framework option). For this reason there is an | 
 | 5602 | # extra variable BLDLIBRARY against which Python and the extension | 
 | 5603 | # modules are linked, BLDLIBRARY. This is normally the same as | 
 | 5604 | # LDLIBRARY, but empty for MacOSX framework builds. | 
 | 5605 | if test "$enable_framework" | 
 | 5606 | then | 
 | 5607 |   LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
 | 5608 |   RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH" | 
 | 5609 |   BLDLIBRARY='' | 
 | 5610 | else | 
 | 5611 |   BLDLIBRARY='$(LDLIBRARY)' | 
 | 5612 | fi | 
 | 5613 |  | 
 | 5614 | # Other platforms follow | 
 | 5615 | if test $enable_shared = "yes"; then | 
| doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 5616 |   PY_ENABLE_SHARED=1 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5617 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5618 | $as_echo "#define Py_ENABLE_SHARED 1" >>confdefs.h | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5619 |  | 
 | 5620 |   case $ac_sys_system in | 
 | 5621 |     CYGWIN*) | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5622 |           LDLIBRARY='libpython$(LDVERSION).dll.a' | 
 | 5623 |           DLLLIBRARY='libpython$(LDVERSION).dll' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5624 |           ;; | 
 | 5625 |     SunOS*) | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5626 | 	  LDLIBRARY='libpython$(LDVERSION).so' | 
 | 5627 | 	  BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(LDVERSION)' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5628 | 	  RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} | 
 | 5629 | 	  INSTSONAME="$LDLIBRARY".$SOVERSION | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 5630 | 	  if test "$with_pydebug" != yes | 
| Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 +0000 | [diff] [blame] | 5631 | 	  then | 
 | 5632 | 	      PY3LIBRARY=libpython3.so | 
 | 5633 | 	  fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5634 |           ;; | 
| Charles-François Natali | 749400a | 2011-07-24 22:41:18 +0200 | [diff] [blame] | 5635 |     Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*|OpenBSD*) | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5636 | 	  LDLIBRARY='libpython$(LDVERSION).so' | 
 | 5637 | 	  BLDLIBRARY='-L. -lpython$(LDVERSION)' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5638 | 	  RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} | 
 | 5639 | 	  case $ac_sys_system in | 
 | 5640 | 	      FreeBSD*) | 
 | 5641 | 		SOVERSION=`echo $SOVERSION|cut -d "." -f 1` | 
 | 5642 | 		;; | 
 | 5643 | 	  esac | 
 | 5644 | 	  INSTSONAME="$LDLIBRARY".$SOVERSION | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 5645 | 	  if test "$with_pydebug" != yes | 
| Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 +0000 | [diff] [blame] | 5646 |           then | 
 | 5647 | 	      PY3LIBRARY=libpython3.so | 
 | 5648 | 	  fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5649 | 	  ;; | 
 | 5650 |     hp*|HP*) | 
 | 5651 | 	  case `uname -m` in | 
 | 5652 | 		ia64) | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5653 | 			LDLIBRARY='libpython$(LDVERSION).so' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5654 | 			;; | 
 | 5655 | 		*) | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5656 | 			LDLIBRARY='libpython$(LDVERSION).sl' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5657 | 			;; | 
 | 5658 | 	  esac | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5659 | 	  BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(LDVERSION)' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5660 | 	  RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH} | 
 | 5661 | 	  ;; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5662 |     Darwin*) | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5663 |     	LDLIBRARY='libpython$(LDVERSION).dylib' | 
 | 5664 | 	BLDLIBRARY='-L. -lpython$(LDVERSION)' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5665 | 	RUNSHARED='DYLD_LIBRARY_PATH=`pwd`:${DYLD_LIBRARY_PATH}' | 
 | 5666 | 	;; | 
| Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 5667 |     AIX*) | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5668 | 	LDLIBRARY='libpython$(LDVERSION).so' | 
| Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 5669 | 	RUNSHARED=LIBPATH=`pwd`:${LIBPATH} | 
 | 5670 | 	;; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5671 |  | 
 | 5672 |   esac | 
 | 5673 | else # shared is disabled | 
| doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 5674 |   PY_ENABLE_SHARED=0 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5675 |   case $ac_sys_system in | 
 | 5676 |     CYGWIN*) | 
 | 5677 |           BLDLIBRARY='$(LIBRARY)' | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5678 |           LDLIBRARY='libpython$(LDVERSION).dll.a' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5679 |           ;; | 
 | 5680 |   esac | 
 | 5681 | fi | 
 | 5682 |  | 
| doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 5683 | if test "$cross_compiling" = yes; then | 
 | 5684 | 	RUNSHARED= | 
 | 5685 | fi | 
 | 5686 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDLIBRARY" >&5 | 
 | 5688 | $as_echo "$LDLIBRARY" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5689 |  | 
 | 5690 | if test -n "$ac_tool_prefix"; then | 
 | 5691 |   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | 
 | 5692 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5693 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 5694 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 5695 | if ${ac_cv_prog_RANLIB+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5696 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5697 | else | 
 | 5698 |   if test -n "$RANLIB"; then | 
 | 5699 |   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | 
 | 5700 | else | 
 | 5701 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5702 | for as_dir in $PATH | 
 | 5703 | do | 
 | 5704 |   IFS=$as_save_IFS | 
 | 5705 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5706 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 5707 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5708 |     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5709 |     $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] | 5710 |     break 2 | 
 | 5711 |   fi | 
 | 5712 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5713 |   done | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5714 | IFS=$as_save_IFS | 
 | 5715 |  | 
 | 5716 | fi | 
 | 5717 | fi | 
 | 5718 | RANLIB=$ac_cv_prog_RANLIB | 
 | 5719 | if test -n "$RANLIB"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5720 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | 
 | 5721 | $as_echo "$RANLIB" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5722 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5723 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 5724 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5725 | fi | 
 | 5726 |  | 
 | 5727 |  | 
 | 5728 | fi | 
 | 5729 | if test -z "$ac_cv_prog_RANLIB"; then | 
 | 5730 |   ac_ct_RANLIB=$RANLIB | 
 | 5731 |   # Extract the first word of "ranlib", so it can be a program name with args. | 
 | 5732 | set dummy ranlib; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5733 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 5734 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 5735 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5736 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5737 | else | 
 | 5738 |   if test -n "$ac_ct_RANLIB"; then | 
 | 5739 |   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | 
 | 5740 | else | 
 | 5741 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5742 | for as_dir in $PATH | 
 | 5743 | do | 
 | 5744 |   IFS=$as_save_IFS | 
 | 5745 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5746 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 5747 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5748 |     ac_cv_prog_ac_ct_RANLIB="ranlib" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5749 |     $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] | 5750 |     break 2 | 
 | 5751 |   fi | 
 | 5752 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5753 |   done | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5754 | IFS=$as_save_IFS | 
 | 5755 |  | 
 | 5756 | fi | 
 | 5757 | fi | 
 | 5758 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | 
 | 5759 | if test -n "$ac_ct_RANLIB"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5760 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | 
 | 5761 | $as_echo "$ac_ct_RANLIB" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5762 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5763 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 5764 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5765 | fi | 
 | 5766 |  | 
 | 5767 |   if test "x$ac_ct_RANLIB" = x; then | 
 | 5768 |     RANLIB=":" | 
 | 5769 |   else | 
 | 5770 |     case $cross_compiling:$ac_tool_warned in | 
 | 5771 | yes:) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5772 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 5773 | $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] | 5774 | ac_tool_warned=yes ;; | 
 | 5775 | esac | 
 | 5776 |     RANLIB=$ac_ct_RANLIB | 
 | 5777 |   fi | 
 | 5778 | else | 
 | 5779 |   RANLIB="$ac_cv_prog_RANLIB" | 
 | 5780 | fi | 
 | 5781 |  | 
 | 5782 |  | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5783 | if test -n "$ac_tool_prefix"; then | 
 | 5784 |   for ac_prog in ar aal | 
 | 5785 |   do | 
 | 5786 |     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
 | 5787 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5788 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 5789 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 5790 | if ${ac_cv_prog_AR+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5791 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5792 | else | 
 | 5793 |   if test -n "$AR"; then | 
 | 5794 |   ac_cv_prog_AR="$AR" # Let the user override the test. | 
 | 5795 | else | 
 | 5796 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5797 | for as_dir in $PATH | 
 | 5798 | do | 
 | 5799 |   IFS=$as_save_IFS | 
 | 5800 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5801 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 5802 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5803 |     ac_cv_prog_AR="$ac_tool_prefix$ac_prog" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5804 |     $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] | 5805 |     break 2 | 
 | 5806 |   fi | 
 | 5807 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5808 |   done | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5809 | IFS=$as_save_IFS | 
 | 5810 |  | 
 | 5811 | fi | 
 | 5812 | fi | 
 | 5813 | AR=$ac_cv_prog_AR | 
 | 5814 | if test -n "$AR"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5815 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | 
 | 5816 | $as_echo "$AR" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5817 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5818 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 5819 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5820 | fi | 
 | 5821 |  | 
 | 5822 |  | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5823 |     test -n "$AR" && break | 
 | 5824 |   done | 
 | 5825 | fi | 
 | 5826 | if test -z "$AR"; then | 
 | 5827 |   ac_ct_AR=$AR | 
 | 5828 |   for ac_prog in ar aal | 
 | 5829 | do | 
 | 5830 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 5831 | set dummy $ac_prog; ac_word=$2 | 
 | 5832 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 5833 | $as_echo_n "checking for $ac_word... " >&6; } | 
 | 5834 | if ${ac_cv_prog_ac_ct_AR+:} false; then : | 
 | 5835 |   $as_echo_n "(cached) " >&6 | 
 | 5836 | else | 
 | 5837 |   if test -n "$ac_ct_AR"; then | 
 | 5838 |   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | 
 | 5839 | else | 
 | 5840 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5841 | for as_dir in $PATH | 
 | 5842 | do | 
 | 5843 |   IFS=$as_save_IFS | 
 | 5844 |   test -z "$as_dir" && as_dir=. | 
 | 5845 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 5846 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5847 |     ac_cv_prog_ac_ct_AR="$ac_prog" | 
 | 5848 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 5849 |     break 2 | 
 | 5850 |   fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5851 | done | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5852 |   done | 
 | 5853 | IFS=$as_save_IFS | 
 | 5854 |  | 
 | 5855 | fi | 
 | 5856 | fi | 
 | 5857 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | 
 | 5858 | if test -n "$ac_ct_AR"; then | 
 | 5859 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | 
 | 5860 | $as_echo "$ac_ct_AR" >&6; } | 
 | 5861 | else | 
 | 5862 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 5863 | $as_echo "no" >&6; } | 
 | 5864 | fi | 
 | 5865 |  | 
 | 5866 |  | 
 | 5867 |   test -n "$ac_ct_AR" && break | 
 | 5868 | done | 
 | 5869 |  | 
 | 5870 |   if test "x$ac_ct_AR" = x; then | 
 | 5871 |     AR="ar" | 
 | 5872 |   else | 
 | 5873 |     case $cross_compiling:$ac_tool_warned in | 
 | 5874 | yes:) | 
 | 5875 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 5876 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
 | 5877 | ac_tool_warned=yes ;; | 
 | 5878 | esac | 
 | 5879 |     AR=$ac_ct_AR | 
 | 5880 |   fi | 
 | 5881 | fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5882 |  | 
 | 5883 |  | 
 | 5884 | # tweak ARFLAGS only if the user didn't set it on the command line | 
 | 5885 |  | 
 | 5886 | if test -z "$ARFLAGS" | 
 | 5887 | then | 
 | 5888 |         ARFLAGS="rc" | 
 | 5889 | fi | 
 | 5890 |  | 
| doko@ubuntu.com | 5884449 | 2012-06-30 18:25:32 +0200 | [diff] [blame] | 5891 | if test -n "$ac_tool_prefix"; then | 
 | 5892 |   for ac_prog in readelf | 
 | 5893 |   do | 
 | 5894 |     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
 | 5895 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
 | 5896 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 5897 | $as_echo_n "checking for $ac_word... " >&6; } | 
 | 5898 | if ${ac_cv_prog_READELF+:} false; then : | 
 | 5899 |   $as_echo_n "(cached) " >&6 | 
 | 5900 | else | 
 | 5901 |   if test -n "$READELF"; then | 
 | 5902 |   ac_cv_prog_READELF="$READELF" # Let the user override the test. | 
 | 5903 | else | 
 | 5904 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5905 | for as_dir in $PATH | 
 | 5906 | do | 
 | 5907 |   IFS=$as_save_IFS | 
 | 5908 |   test -z "$as_dir" && as_dir=. | 
 | 5909 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 5910 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| doko@ubuntu.com | 5884449 | 2012-06-30 18:25:32 +0200 | [diff] [blame] | 5911 |     ac_cv_prog_READELF="$ac_tool_prefix$ac_prog" | 
 | 5912 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 5913 |     break 2 | 
 | 5914 |   fi | 
 | 5915 | done | 
 | 5916 |   done | 
 | 5917 | IFS=$as_save_IFS | 
 | 5918 |  | 
 | 5919 | fi | 
 | 5920 | fi | 
 | 5921 | READELF=$ac_cv_prog_READELF | 
 | 5922 | if test -n "$READELF"; then | 
 | 5923 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | 
 | 5924 | $as_echo "$READELF" >&6; } | 
 | 5925 | else | 
 | 5926 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 5927 | $as_echo "no" >&6; } | 
 | 5928 | fi | 
 | 5929 |  | 
 | 5930 |  | 
 | 5931 |     test -n "$READELF" && break | 
 | 5932 |   done | 
 | 5933 | fi | 
 | 5934 | if test -z "$READELF"; then | 
 | 5935 |   ac_ct_READELF=$READELF | 
 | 5936 |   for ac_prog in readelf | 
 | 5937 | do | 
 | 5938 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 5939 | set dummy $ac_prog; ac_word=$2 | 
 | 5940 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 5941 | $as_echo_n "checking for $ac_word... " >&6; } | 
 | 5942 | if ${ac_cv_prog_ac_ct_READELF+:} false; then : | 
 | 5943 |   $as_echo_n "(cached) " >&6 | 
 | 5944 | else | 
 | 5945 |   if test -n "$ac_ct_READELF"; then | 
 | 5946 |   ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test. | 
 | 5947 | else | 
 | 5948 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5949 | for as_dir in $PATH | 
 | 5950 | do | 
 | 5951 |   IFS=$as_save_IFS | 
 | 5952 |   test -z "$as_dir" && as_dir=. | 
 | 5953 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 5954 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| doko@ubuntu.com | 5884449 | 2012-06-30 18:25:32 +0200 | [diff] [blame] | 5955 |     ac_cv_prog_ac_ct_READELF="$ac_prog" | 
 | 5956 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 5957 |     break 2 | 
 | 5958 |   fi | 
 | 5959 | done | 
 | 5960 |   done | 
 | 5961 | IFS=$as_save_IFS | 
 | 5962 |  | 
 | 5963 | fi | 
 | 5964 | fi | 
 | 5965 | ac_ct_READELF=$ac_cv_prog_ac_ct_READELF | 
 | 5966 | if test -n "$ac_ct_READELF"; then | 
 | 5967 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5 | 
 | 5968 | $as_echo "$ac_ct_READELF" >&6; } | 
 | 5969 | else | 
 | 5970 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 5971 | $as_echo "no" >&6; } | 
 | 5972 | fi | 
 | 5973 |  | 
 | 5974 |  | 
 | 5975 |   test -n "$ac_ct_READELF" && break | 
 | 5976 | done | 
 | 5977 |  | 
 | 5978 |   if test "x$ac_ct_READELF" = x; then | 
 | 5979 |     READELF=":" | 
 | 5980 |   else | 
 | 5981 |     case $cross_compiling:$ac_tool_warned in | 
 | 5982 | yes:) | 
 | 5983 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 5984 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
 | 5985 | ac_tool_warned=yes ;; | 
 | 5986 | esac | 
 | 5987 |     READELF=$ac_ct_READELF | 
 | 5988 |   fi | 
 | 5989 | fi | 
 | 5990 |  | 
 | 5991 | if test "$cross_compiling" = yes; then | 
 | 5992 |     case "$READELF" in | 
 | 5993 | 	readelf|:) | 
 | 5994 | 	as_fn_error $? "readelf for the host is required for cross builds" "$LINENO" 5 | 
 | 5995 | 	;; | 
 | 5996 |     esac | 
 | 5997 | fi | 
 | 5998 |  | 
 | 5999 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6000 |  | 
| Matthias Klose | c4c4842 | 2012-10-21 23:05:35 +0200 | [diff] [blame] | 6001 | for ac_prog in python$PACKAGE_VERSION python3 python | 
 | 6002 | do | 
 | 6003 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 6004 | set dummy $ac_prog; ac_word=$2 | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 6005 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 6006 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Matthias Klose | c4c4842 | 2012-10-21 23:05:35 +0200 | [diff] [blame] | 6007 | if ${ac_cv_prog_PYTHON+:} false; then : | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 6008 |   $as_echo_n "(cached) " >&6 | 
 | 6009 | else | 
| Matthias Klose | c4c4842 | 2012-10-21 23:05:35 +0200 | [diff] [blame] | 6010 |   if test -n "$PYTHON"; then | 
 | 6011 |   ac_cv_prog_PYTHON="$PYTHON" # Let the user override the test. | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 6012 | else | 
 | 6013 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 6014 | for as_dir in $PATH | 
 | 6015 | do | 
 | 6016 |   IFS=$as_save_IFS | 
 | 6017 |   test -z "$as_dir" && as_dir=. | 
 | 6018 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 6019 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| Matthias Klose | c4c4842 | 2012-10-21 23:05:35 +0200 | [diff] [blame] | 6020 |     ac_cv_prog_PYTHON="$ac_prog" | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 6021 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 6022 |     break 2 | 
 | 6023 |   fi | 
 | 6024 | done | 
 | 6025 |   done | 
 | 6026 | IFS=$as_save_IFS | 
 | 6027 |  | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 6028 | fi | 
 | 6029 | fi | 
| Matthias Klose | c4c4842 | 2012-10-21 23:05:35 +0200 | [diff] [blame] | 6030 | PYTHON=$ac_cv_prog_PYTHON | 
 | 6031 | if test -n "$PYTHON"; then | 
 | 6032 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 | 
 | 6033 | $as_echo "$PYTHON" >&6; } | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 6034 | else | 
 | 6035 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 6036 | $as_echo "no" >&6; } | 
 | 6037 | fi | 
 | 6038 |  | 
 | 6039 |  | 
| Matthias Klose | c4c4842 | 2012-10-21 23:05:35 +0200 | [diff] [blame] | 6040 |   test -n "$PYTHON" && break | 
 | 6041 | done | 
 | 6042 | test -n "$PYTHON" || PYTHON="not-found" | 
 | 6043 |  | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 6044 | if test "$PYTHON" = not-found; then | 
| Matthias Klose | c4c4842 | 2012-10-21 23:05:35 +0200 | [diff] [blame] | 6045 |     ASDLGEN="@echo python: $PYTHON! cannot run \$(srcdir)/Parser/asdl_c.py #" | 
 | 6046 | else | 
 | 6047 |     ASDLGEN="$PYTHON" | 
| Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 6048 | fi | 
 | 6049 |  | 
 | 6050 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6051 | case $MACHDEP in | 
 | 6052 | bsdos*|hp*|HP*) | 
 | 6053 | 	# install -d does not work on BSDI or HP-UX | 
 | 6054 | 	if test -z "$INSTALL" | 
 | 6055 | 	then | 
 | 6056 | 		INSTALL="${srcdir}/install-sh -c" | 
 | 6057 | 	fi | 
 | 6058 | esac | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6059 | # Find a good install program.  We prefer a C program (faster), | 
 | 6060 | # so one script is as good as another.  But avoid the broken or | 
 | 6061 | # incompatible versions: | 
 | 6062 | # SysV /etc/install, /usr/sbin/install | 
 | 6063 | # SunOS /usr/etc/install | 
 | 6064 | # IRIX /sbin/install | 
 | 6065 | # AIX /bin/install | 
 | 6066 | # AmigaOS /C/install, which installs bootblocks on floppy discs | 
 | 6067 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | 
 | 6068 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | 
 | 6069 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | 
 | 6070 | # OS/2's system install, which has a completely different semantic | 
 | 6071 | # ./install, which can be erroneously created by make from ./install.sh. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6072 | # Reject install programs that cannot install multiple files. | 
 | 6073 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | 
 | 6074 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6075 | if test -z "$INSTALL"; then | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 6076 | if ${ac_cv_path_install+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6077 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6078 | else | 
 | 6079 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 6080 | for as_dir in $PATH | 
 | 6081 | do | 
 | 6082 |   IFS=$as_save_IFS | 
 | 6083 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6084 |     # Account for people who put trailing slashes in PATH elements. | 
 | 6085 | case $as_dir/ in #(( | 
 | 6086 |   ./ | .// | /[cC]/* | \ | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6087 |   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6088 |   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6089 |   /usr/ucb/* ) ;; | 
 | 6090 |   *) | 
 | 6091 |     # OSF1 and SCO ODT 3.0 have their own names for install. | 
 | 6092 |     # Don't use installbsd from OSF since it installs stuff as root | 
 | 6093 |     # by default. | 
 | 6094 |     for ac_prog in ginstall scoinst install; do | 
 | 6095 |       for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 6096 | 	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6097 | 	  if test $ac_prog = install && | 
 | 6098 | 	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | 
 | 6099 | 	    # AIX install.  It has an incompatible calling convention. | 
 | 6100 | 	    : | 
 | 6101 | 	  elif test $ac_prog = install && | 
 | 6102 | 	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | 
 | 6103 | 	    # program-specific install script used by HP pwplus--don't use. | 
 | 6104 | 	    : | 
 | 6105 | 	  else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6106 | 	    rm -rf conftest.one conftest.two conftest.dir | 
 | 6107 | 	    echo one > conftest.one | 
 | 6108 | 	    echo two > conftest.two | 
 | 6109 | 	    mkdir conftest.dir | 
 | 6110 | 	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | 
 | 6111 | 	      test -s conftest.one && test -s conftest.two && | 
 | 6112 | 	      test -s conftest.dir/conftest.one && | 
 | 6113 | 	      test -s conftest.dir/conftest.two | 
 | 6114 | 	    then | 
 | 6115 | 	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | 
 | 6116 | 	      break 3 | 
 | 6117 | 	    fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6118 | 	  fi | 
 | 6119 | 	fi | 
 | 6120 |       done | 
 | 6121 |     done | 
 | 6122 |     ;; | 
 | 6123 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6124 |  | 
 | 6125 |   done | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6126 | IFS=$as_save_IFS | 
 | 6127 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6128 | rm -rf conftest.one conftest.two conftest.dir | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6129 |  | 
 | 6130 | fi | 
 | 6131 |   if test "${ac_cv_path_install+set}" = set; then | 
 | 6132 |     INSTALL=$ac_cv_path_install | 
 | 6133 |   else | 
 | 6134 |     # As a last resort, use the slow shell script.  Don't cache a | 
 | 6135 |     # value for INSTALL within a source directory, because that will | 
 | 6136 |     # break other packages using the cache if that directory is | 
 | 6137 |     # removed, or if the value is a relative name. | 
 | 6138 |     INSTALL=$ac_install_sh | 
 | 6139 |   fi | 
 | 6140 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | 
 | 6142 | $as_echo "$INSTALL" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6143 |  | 
 | 6144 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | 
 | 6145 | # It thinks the first close brace ends the variable substitution. | 
 | 6146 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | 
 | 6147 |  | 
 | 6148 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | 
 | 6149 |  | 
 | 6150 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | 
 | 6151 |  | 
| Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 6152 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | 
 | 6153 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | 
 | 6154 | if test -z "$MKDIR_P"; then | 
 | 6155 |   if ${ac_cv_path_mkdir+:} false; then : | 
 | 6156 |   $as_echo_n "(cached) " >&6 | 
 | 6157 | else | 
 | 6158 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 6159 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | 
 | 6160 | do | 
 | 6161 |   IFS=$as_save_IFS | 
 | 6162 |   test -z "$as_dir" && as_dir=. | 
 | 6163 |     for ac_prog in mkdir gmkdir; do | 
 | 6164 | 	 for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 6165 | 	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue | 
| Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 6166 | 	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | 
 | 6167 | 	     'mkdir (GNU coreutils) '* | \ | 
 | 6168 | 	     'mkdir (coreutils) '* | \ | 
 | 6169 | 	     'mkdir (fileutils) '4.1*) | 
 | 6170 | 	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | 
 | 6171 | 	       break 3;; | 
 | 6172 | 	   esac | 
 | 6173 | 	 done | 
 | 6174 |        done | 
 | 6175 |   done | 
 | 6176 | IFS=$as_save_IFS | 
 | 6177 |  | 
 | 6178 | fi | 
 | 6179 |  | 
 | 6180 |   test -d ./--version && rmdir ./--version | 
 | 6181 |   if test "${ac_cv_path_mkdir+set}" = set; then | 
 | 6182 |     MKDIR_P="$ac_cv_path_mkdir -p" | 
 | 6183 |   else | 
 | 6184 |     # As a last resort, use the slow shell script.  Don't cache a | 
 | 6185 |     # value for MKDIR_P within a source directory, because that will | 
 | 6186 |     # break other packages using the cache if that directory is | 
 | 6187 |     # removed, or if the value is a relative name. | 
 | 6188 |     MKDIR_P="$ac_install_sh -d" | 
 | 6189 |   fi | 
 | 6190 | fi | 
 | 6191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | 
 | 6192 | $as_echo "$MKDIR_P" >&6; } | 
 | 6193 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6194 |  | 
 | 6195 | # Not every filesystem supports hard links | 
 | 6196 |  | 
 | 6197 | if test -z "$LN" ; then | 
 | 6198 | 	case $ac_sys_system in | 
 | 6199 | 		CYGWIN*) LN="ln -s";; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6200 | 		*) LN=ln;; | 
 | 6201 | 	esac | 
 | 6202 | fi | 
 | 6203 |  | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 6204 | # For calculating the .so ABI tag. | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 6205 |  | 
 | 6206 | ABIFLAGS="" | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 6207 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6208 | # Check for --with-pydebug | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6209 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pydebug" >&5 | 
 | 6210 | $as_echo_n "checking for --with-pydebug... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6211 |  | 
 | 6212 | # Check whether --with-pydebug was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6213 | if test "${with_pydebug+set}" = set; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6214 |   withval=$with_pydebug; | 
 | 6215 | if test "$withval" != no | 
 | 6216 | then | 
 | 6217 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6218 | $as_echo "#define Py_DEBUG 1" >>confdefs.h | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6219 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6220 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 6221 | $as_echo "yes" >&6; }; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6222 |   Py_DEBUG='true' | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 6223 |   ABIFLAGS="${ABIFLAGS}d" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6224 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 6225 | $as_echo "no" >&6; }; Py_DEBUG='false' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6226 | fi | 
 | 6227 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6228 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 6229 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6230 | fi | 
 | 6231 |  | 
 | 6232 |  | 
 | 6233 | # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be | 
 | 6234 | # merged with this chunk of code? | 
 | 6235 |  | 
 | 6236 | # Optimizer/debugger flags | 
 | 6237 | # ------------------------ | 
 | 6238 | # (The following bit of code is complicated enough - please keep things | 
 | 6239 | # indented properly.  Just pretend you're editing Python code. ;-) | 
 | 6240 |  | 
 | 6241 | # There are two parallel sets of case statements below, one that checks to | 
 | 6242 | # see if OPT was set and one that does BASECFLAGS setting based upon | 
 | 6243 | # compiler and platform.  BASECFLAGS tweaks need to be made even if the | 
 | 6244 | # user set OPT. | 
 | 6245 |  | 
 | 6246 | # tweak OPT based on compiler and platform, only if the user didn't set | 
 | 6247 | # it on the command line | 
 | 6248 |  | 
| Benjamin Peterson | 65b4ec5 | 2010-03-23 21:02:34 +0000 | [diff] [blame] | 6249 | if test "${OPT-unset}" = "unset" | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6250 | then | 
 | 6251 |     case $GCC in | 
 | 6252 |     yes) | 
 | 6253 |         if test "$CC" != 'g++' ; then | 
 | 6254 | 	    STRICT_PROTO="-Wstrict-prototypes" | 
 | 6255 | 	fi | 
 | 6256 |         # For gcc 4.x we need to use -fwrapv so lets check if its supported | 
 | 6257 |         if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then | 
 | 6258 |            WRAP="-fwrapv" | 
 | 6259 |         fi | 
| Stefan Krah | 962055d | 2011-09-14 15:14:08 +0200 | [diff] [blame] | 6260 |  | 
 | 6261 |         # Clang also needs -fwrapv | 
| Stefan Krah | af04ff2 | 2011-12-08 22:20:31 +0100 | [diff] [blame] | 6262 |         case $CC in | 
 | 6263 |             *clang*) WRAP="-fwrapv" | 
 | 6264 |             ;; | 
 | 6265 |         esac | 
| Stefan Krah | 962055d | 2011-09-14 15:14:08 +0200 | [diff] [blame] | 6266 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6267 | 	case $ac_cv_prog_cc_g in | 
 | 6268 | 	yes) | 
 | 6269 | 	    if test "$Py_DEBUG" = 'true' ; then | 
 | 6270 | 		# Optimization messes up debuggers, so turn it off for | 
 | 6271 | 		# debug builds. | 
| Mark Dickinson | b2153e9 | 2010-05-05 22:31:36 +0000 | [diff] [blame] | 6272 | 		OPT="-g -O0 -Wall $STRICT_PROTO" | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6273 | 	    else | 
 | 6274 | 		OPT="-g $WRAP -O3 -Wall $STRICT_PROTO" | 
 | 6275 | 	    fi | 
 | 6276 | 	    ;; | 
 | 6277 | 	*) | 
 | 6278 | 	    OPT="-O3 -Wall $STRICT_PROTO" | 
 | 6279 | 	    ;; | 
 | 6280 | 	esac | 
 | 6281 | 	case $ac_sys_system in | 
 | 6282 | 	    SCO_SV*) OPT="$OPT -m486 -DSCO5" | 
 | 6283 | 	    ;; | 
 | 6284 |         esac | 
 | 6285 | 	;; | 
 | 6286 |  | 
 | 6287 |     *) | 
 | 6288 | 	OPT="-O" | 
 | 6289 | 	;; | 
 | 6290 |     esac | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6291 | fi | 
 | 6292 |  | 
 | 6293 |  | 
 | 6294 |  | 
 | 6295 | # The -arch flags for universal builds on OSX | 
 | 6296 | UNIVERSAL_ARCH_FLAGS= | 
 | 6297 |  | 
 | 6298 |  | 
 | 6299 | # tweak BASECFLAGS based on compiler and platform | 
 | 6300 | case $GCC in | 
 | 6301 | yes) | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6302 |     # Python doesn't violate C99 aliasing rules, but older versions of | 
 | 6303 |     # GCC produce warnings for legal Python code.  Enable | 
 | 6304 |     # -fno-strict-aliasing on versions of GCC that support but produce | 
 | 6305 |     # warnings.  See Issue3326 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6306 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts and needs -fno-strict-aliasing" >&5 | 
 | 6307 | $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] | 6308 |      ac_save_cc="$CC" | 
 | 6309 |      CC="$CC -fno-strict-aliasing" | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6310 |      save_CFLAGS="$CFLAGS" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 6311 |      if ${ac_cv_no_strict_aliasing+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6312 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 6313 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6314 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6315 | /* end confdefs.h.  */ | 
| Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 +0000 | [diff] [blame] | 6316 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6317 |  | 
| Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 +0000 | [diff] [blame] | 6318 | int | 
 | 6319 | main () | 
 | 6320 | { | 
| Mark Dickinson | 8c2b6f1 | 2010-05-11 09:23:07 +0000 | [diff] [blame] | 6321 |  | 
| Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 +0000 | [diff] [blame] | 6322 |   ; | 
 | 6323 |   return 0; | 
 | 6324 | } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6325 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6326 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6327 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6328 |  | 
 | 6329 | 	   CC="$ac_save_cc -fstrict-aliasing" | 
 | 6330 |            CFLAGS="$CFLAGS -Werror -Wstrict-aliasing" | 
 | 6331 |            cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6332 | /* end confdefs.h.  */ | 
 | 6333 |  | 
| Mark Dickinson | 8c2b6f1 | 2010-05-11 09:23:07 +0000 | [diff] [blame] | 6334 | 	       void f(int **x) {} | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6335 | int | 
 | 6336 | main () | 
 | 6337 | { | 
| Mark Dickinson | 8c2b6f1 | 2010-05-11 09:23:07 +0000 | [diff] [blame] | 6338 | double *x; f((int **) &x); | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6339 |   ; | 
 | 6340 |   return 0; | 
 | 6341 | } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6342 |  | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6343 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6344 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6345 |  | 
 | 6346 | 	       ac_cv_no_strict_aliasing=no | 
 | 6347 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6348 | else | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6349 |  | 
 | 6350 |                ac_cv_no_strict_aliasing=yes | 
 | 6351 |  | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6352 | fi | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6353 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6354 |  | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6355 | else | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6356 |  | 
 | 6357 | 	   ac_cv_no_strict_aliasing=no | 
 | 6358 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6359 | fi | 
| Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 +0000 | [diff] [blame] | 6360 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 6361 | fi | 
 | 6362 |  | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6363 |      CFLAGS="$save_CFLAGS" | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6364 |      CC="$ac_save_cc" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6365 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_no_strict_aliasing" >&5 | 
 | 6366 | $as_echo "$ac_cv_no_strict_aliasing" >&6; } | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6367 |     if test $ac_cv_no_strict_aliasing = yes | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6368 |     then | 
 | 6369 |       BASECFLAGS="$BASECFLAGS -fno-strict-aliasing" | 
 | 6370 |     fi | 
 | 6371 |  | 
| Benjamin Peterson | 7ddbf10 | 2011-09-23 13:23:22 -0400 | [diff] [blame] | 6372 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn off $CC unused result warning" >&5 | 
 | 6373 | $as_echo_n "checking if we can turn off $CC unused result warning... " >&6; } | 
 | 6374 |      ac_save_cc="$CC" | 
 | 6375 |      CC="$CC -Wunused-result -Werror" | 
 | 6376 |      save_CFLAGS="$CFLAGS" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 6377 |      if ${ac_cv_disable_unused_result_warning+:} false; then : | 
| Benjamin Peterson | 7ddbf10 | 2011-09-23 13:23:22 -0400 | [diff] [blame] | 6378 |   $as_echo_n "(cached) " >&6 | 
 | 6379 | else | 
 | 6380 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 6381 | /* end confdefs.h.  */ | 
 | 6382 |  | 
 | 6383 |  | 
 | 6384 | int | 
 | 6385 | main () | 
 | 6386 | { | 
 | 6387 |  | 
 | 6388 |   ; | 
 | 6389 |   return 0; | 
 | 6390 | } | 
 | 6391 |  | 
 | 6392 | _ACEOF | 
 | 6393 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 6394 |  | 
 | 6395 |            ac_cv_disable_unused_result_warning=yes | 
 | 6396 |  | 
 | 6397 | else | 
 | 6398 |  | 
 | 6399 |            ac_cv_disable_unused_result_warning=no | 
 | 6400 |  | 
 | 6401 | fi | 
 | 6402 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 6403 | fi | 
 | 6404 |  | 
 | 6405 |      CFLAGS="$save_CFLAGS" | 
 | 6406 |      CC="$ac_save_cc" | 
 | 6407 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_unused_result_warning" >&5 | 
 | 6408 | $as_echo "$ac_cv_disable_unused_result_warning" >&6; } | 
 | 6409 |  | 
 | 6410 |     if test $ac_cv_disable_unused_result_warning = yes | 
 | 6411 |     then | 
 | 6412 |       BASECFLAGS="$BASECFLAGS -Wno-unused-result" | 
 | 6413 |     fi | 
 | 6414 |  | 
| Benjamin Peterson | cc00e01 | 2013-05-20 08:22:04 -0700 | [diff] [blame] | 6415 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Werror=declaration-after-statement" >&5 | 
 | 6416 | $as_echo_n "checking for -Werror=declaration-after-statement... " >&6; } | 
 | 6417 |      ac_save_cc="$CC" | 
 | 6418 |      CC="$CC -Werror=declaration-after-statement" | 
 | 6419 |      save_CFLAGS="$CFLAGS" | 
 | 6420 |      if ${ac_cv_declaration_after_statement_warning+:} false; then : | 
 | 6421 |   $as_echo_n "(cached) " >&6 | 
 | 6422 | else | 
 | 6423 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 6424 | /* end confdefs.h.  */ | 
 | 6425 |  | 
 | 6426 |  | 
 | 6427 | int | 
 | 6428 | main () | 
 | 6429 | { | 
 | 6430 |  | 
 | 6431 |   ; | 
 | 6432 |   return 0; | 
 | 6433 | } | 
 | 6434 |  | 
 | 6435 | _ACEOF | 
 | 6436 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 6437 |  | 
 | 6438 |            ac_cv_declaration_after_statement_warning=yes | 
 | 6439 |  | 
 | 6440 | else | 
 | 6441 |  | 
 | 6442 |            ac_cv_declaration_after_statement_warning=no | 
 | 6443 |  | 
 | 6444 | fi | 
 | 6445 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 6446 | fi | 
 | 6447 |  | 
 | 6448 |      CFLAGS="$save_CFLAGS" | 
 | 6449 |      CC="$ac_save_cc" | 
 | 6450 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_declaration_after_statement_warning" >&5 | 
 | 6451 | $as_echo "$ac_cv_declaration_after_statement_warning" >&6; } | 
 | 6452 |  | 
 | 6453 |     if test $ac_cv_declaration_after_statement_warning = yes | 
 | 6454 |     then | 
 | 6455 |       BASECFLAGS="$BASECFLAGS -Werror=declaration-after-statement" | 
 | 6456 |     fi | 
 | 6457 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6458 |     # if using gcc on alpha, use -mieee to get (near) full IEEE 754 | 
 | 6459 |     # support.  Without this, treatment of subnormals doesn't follow | 
 | 6460 |     # the standard. | 
| Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 6461 |     case $host in | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6462 |          alpha*) | 
 | 6463 |                 BASECFLAGS="$BASECFLAGS -mieee" | 
 | 6464 |                 ;; | 
 | 6465 |     esac | 
 | 6466 |  | 
 | 6467 |     case $ac_sys_system in | 
 | 6468 | 	SCO_SV*) | 
 | 6469 | 	    BASECFLAGS="$BASECFLAGS -m486 -DSCO5" | 
 | 6470 | 	    ;; | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 6471 |  | 
 | 6472 |     # is there any other compiler on Darwin besides gcc? | 
 | 6473 |     Darwin*) | 
 | 6474 |         # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd | 
 | 6475 |         # used to be here, but non-Apple gcc doesn't accept them. | 
 | 6476 |         if test "${CC}" = gcc | 
 | 6477 |         then | 
 | 6478 |             { $as_echo "$as_me:${as_lineno-$LINENO}: checking which compiler should be used" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6479 | $as_echo_n "checking which compiler should be used... " >&6; } | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 6480 |             case "${UNIVERSALSDK}" in | 
 | 6481 |             */MacOSX10.4u.sdk) | 
 | 6482 |                 # Build using 10.4 SDK, force usage of gcc when the | 
 | 6483 |                 # compiler is gcc, otherwise the user will get very | 
 | 6484 |                 # confusing error messages when building on OSX 10.6 | 
 | 6485 |                 CC=gcc-4.0 | 
 | 6486 |                 CPP=cpp-4.0 | 
 | 6487 |                 ;; | 
 | 6488 |             esac | 
 | 6489 |             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6490 | $as_echo "$CC" >&6; } | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 6491 |         fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6492 |  | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 6493 |         if test "${enable_universalsdk}" | 
 | 6494 |         then | 
 | 6495 |             case "$UNIVERSAL_ARCHS" in | 
 | 6496 |             32-bit) | 
 | 6497 |                UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386" | 
 | 6498 |                LIPO_32BIT_FLAGS="" | 
 | 6499 |                ARCH_RUN_32BIT="" | 
 | 6500 |                ;; | 
 | 6501 |             64-bit) | 
 | 6502 |                UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64" | 
 | 6503 |                LIPO_32BIT_FLAGS="" | 
 | 6504 |                ARCH_RUN_32BIT="true" | 
 | 6505 |                ;; | 
 | 6506 |             all) | 
 | 6507 |                UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64" | 
 | 6508 |                LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" | 
 | 6509 |                ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" | 
 | 6510 |                ;; | 
 | 6511 |             intel) | 
 | 6512 |                UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64" | 
 | 6513 |                LIPO_32BIT_FLAGS="-extract i386" | 
 | 6514 |                ARCH_RUN_32BIT="/usr/bin/arch -i386" | 
 | 6515 |                ;; | 
 | 6516 |             intel-32) | 
 | 6517 |                UNIVERSAL_ARCH_FLAGS="-arch i386" | 
 | 6518 |                LIPO_32BIT_FLAGS="" | 
 | 6519 |                ARCH_RUN_32BIT="" | 
 | 6520 |                ;; | 
 | 6521 |             3-way) | 
 | 6522 |                UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64" | 
 | 6523 |                LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" | 
 | 6524 |                ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" | 
 | 6525 |                ;; | 
 | 6526 |             *) | 
 | 6527 |                as_fn_error $? "proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" "$LINENO" 5 | 
 | 6528 |                ;; | 
 | 6529 |             esac | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6530 |  | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 6531 |             CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}" | 
 | 6532 |             LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}" | 
 | 6533 |             if test "${UNIVERSALSDK}" != "/" | 
 | 6534 |             then | 
 | 6535 |                 CPPFLAGS="-isysroot ${UNIVERSALSDK} ${CPPFLAGS}" | 
 | 6536 |             fi | 
 | 6537 |         fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6538 |  | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 6539 |         # Calculate an appropriate deployment target for this build: | 
 | 6540 |         # The deployment target value is used explicitly to enable certain | 
 | 6541 |         # features are enabled (such as builtin libedit support for readline) | 
 | 6542 |         # through the use of Apple's Availabiliy Macros and is used as a | 
 | 6543 |         # component of the string returned by distutils.get_platform(). | 
 | 6544 |         # | 
 | 6545 |         # Use the value from: | 
 | 6546 |         # 1. the MACOSX_DEPLOYMENT_TARGET environment variable if specified | 
 | 6547 |         # 2. the operating system version of the build machine if >= 10.6 | 
 | 6548 |         # 3. If running on OS X 10.3 through 10.5, use the legacy tests | 
 | 6549 |         #       below to pick either 10.3, 10.4, or 10.5 as the target. | 
 | 6550 |         # 4. If we are running on OS X 10.2 or earlier, good luck! | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6551 |  | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 6552 |         { $as_echo "$as_me:${as_lineno-$LINENO}: checking which MACOSX_DEPLOYMENT_TARGET to use" >&5 | 
 | 6553 | $as_echo_n "checking which MACOSX_DEPLOYMENT_TARGET to use... " >&6; } | 
 | 6554 |         cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'` | 
 | 6555 |         if test ${cur_target} '>' 10.2 && \ | 
 | 6556 |            test ${cur_target} '<' 10.6 | 
 | 6557 |         then | 
 | 6558 |             cur_target=10.3 | 
 | 6559 |             if test ${enable_universalsdk} | 
 | 6560 |             then | 
 | 6561 |                 case "$UNIVERSAL_ARCHS" in | 
 | 6562 |                 all|3-way|intel|64-bit) | 
 | 6563 |                     # These configurations were first supported in 10.5 | 
 | 6564 |                     cur_target='10.5' | 
 | 6565 |                     ;; | 
 | 6566 |                 esac | 
 | 6567 |             else | 
 | 6568 |                 if test `/usr/bin/arch` = "i386" | 
 | 6569 |                 then | 
 | 6570 |                     # 10.4 was the first release to support Intel archs | 
 | 6571 |                     cur_target="10.4" | 
 | 6572 |                 fi | 
 | 6573 |             fi | 
 | 6574 |         fi | 
 | 6575 |         CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}} | 
| Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 6576 |  | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 6577 |         # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the | 
 | 6578 |         # environment with a value that is the same as what we'll use | 
 | 6579 |         # in the Makefile to ensure that we'll get the same compiler | 
 | 6580 |         # environment during configure and build time. | 
 | 6581 |         MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET" | 
 | 6582 |         export MACOSX_DEPLOYMENT_TARGET | 
 | 6583 |         EXPORT_MACOSX_DEPLOYMENT_TARGET='' | 
 | 6584 |         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACOSX_DEPLOYMENT_TARGET" >&5 | 
 | 6585 | $as_echo "$MACOSX_DEPLOYMENT_TARGET" >&6; } | 
| Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 6586 |  | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 6587 |         # end of Darwin* tests | 
 | 6588 |         ;; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6589 |     esac | 
 | 6590 |     ;; | 
 | 6591 |  | 
 | 6592 | *) | 
 | 6593 |     case $ac_sys_system in | 
 | 6594 |     OpenUNIX*|UnixWare*) | 
 | 6595 | 	BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca " | 
 | 6596 | 	;; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6597 |     SCO_SV*) | 
 | 6598 | 	BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5" | 
 | 6599 | 	;; | 
 | 6600 |     esac | 
 | 6601 |     ;; | 
 | 6602 | esac | 
 | 6603 |  | 
 | 6604 | if test "$Py_DEBUG" = 'true'; then | 
 | 6605 |   : | 
 | 6606 | else | 
 | 6607 |   OPT="-DNDEBUG $OPT" | 
 | 6608 | fi | 
 | 6609 |  | 
 | 6610 | if test "$ac_arch_flags" | 
 | 6611 | then | 
 | 6612 | 	BASECFLAGS="$BASECFLAGS $ac_arch_flags" | 
 | 6613 | fi | 
 | 6614 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6615 | # On some compilers, pthreads are available without further options | 
 | 6616 | # (e.g. MacOS X). On some of these systems, the compiler will not | 
 | 6617 | # complain if unaccepted options are passed (e.g. gcc on Mac OS X). | 
 | 6618 | # So we have to see first whether pthreads are available without | 
 | 6619 | # options before we can check whether -Kpthread improves anything. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6620 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads are available without options" >&5 | 
 | 6621 | $as_echo_n "checking whether pthreads are available without options... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 6622 | if ${ac_cv_pthread_is_default+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6623 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6624 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6625 |   if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6626 |   ac_cv_pthread_is_default=no | 
 | 6627 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6628 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6629 | /* end confdefs.h.  */ | 
 | 6630 |  | 
| Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 6631 | #include <stdio.h> | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6632 | #include <pthread.h> | 
 | 6633 |  | 
 | 6634 | void* routine(void* p){return NULL;} | 
 | 6635 |  | 
 | 6636 | int main(){ | 
 | 6637 |   pthread_t p; | 
 | 6638 |   if(pthread_create(&p,NULL,routine,NULL)!=0) | 
 | 6639 |     return 1; | 
 | 6640 |   (void)pthread_detach(p); | 
 | 6641 |   return 0; | 
 | 6642 | } | 
 | 6643 |  | 
 | 6644 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6645 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6646 |  | 
 | 6647 |   ac_cv_pthread_is_default=yes | 
 | 6648 |   ac_cv_kthread=no | 
 | 6649 |   ac_cv_pthread=no | 
 | 6650 |  | 
 | 6651 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6652 |   ac_cv_pthread_is_default=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6653 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6654 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 6655 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6656 | fi | 
 | 6657 |  | 
 | 6658 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6659 | fi | 
 | 6660 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_is_default" >&5 | 
 | 6662 | $as_echo "$ac_cv_pthread_is_default" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6663 |  | 
 | 6664 |  | 
 | 6665 | if test $ac_cv_pthread_is_default = yes | 
 | 6666 | then | 
 | 6667 |   ac_cv_kpthread=no | 
 | 6668 | else | 
 | 6669 | # -Kpthread, if available, provides the right #defines | 
 | 6670 | # and linker options to make pthread_create available | 
 | 6671 | # Some compilers won't report that they do not support -Kpthread, | 
 | 6672 | # so we need to run a program to see whether it really made the | 
 | 6673 | # function available. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6674 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kpthread" >&5 | 
 | 6675 | $as_echo_n "checking whether $CC accepts -Kpthread... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 6676 | if ${ac_cv_kpthread+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6677 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6678 | else | 
 | 6679 |   ac_save_cc="$CC" | 
 | 6680 | CC="$CC -Kpthread" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6681 | if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6682 |   ac_cv_kpthread=no | 
 | 6683 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6684 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6685 | /* end confdefs.h.  */ | 
 | 6686 |  | 
| Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 6687 | #include <stdio.h> | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6688 | #include <pthread.h> | 
 | 6689 |  | 
 | 6690 | void* routine(void* p){return NULL;} | 
 | 6691 |  | 
 | 6692 | int main(){ | 
 | 6693 |   pthread_t p; | 
 | 6694 |   if(pthread_create(&p,NULL,routine,NULL)!=0) | 
 | 6695 |     return 1; | 
 | 6696 |   (void)pthread_detach(p); | 
 | 6697 |   return 0; | 
 | 6698 | } | 
 | 6699 |  | 
 | 6700 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6701 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6702 |   ac_cv_kpthread=yes | 
 | 6703 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6704 |   ac_cv_kpthread=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6705 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6706 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 6707 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6708 | fi | 
 | 6709 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6710 | CC="$ac_save_cc" | 
 | 6711 | fi | 
 | 6712 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kpthread" >&5 | 
 | 6714 | $as_echo "$ac_cv_kpthread" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6715 | fi | 
 | 6716 |  | 
 | 6717 | if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no | 
 | 6718 | then | 
 | 6719 | # -Kthread, if available, provides the right #defines | 
 | 6720 | # and linker options to make pthread_create available | 
 | 6721 | # Some compilers won't report that they do not support -Kthread, | 
 | 6722 | # so we need to run a program to see whether it really made the | 
 | 6723 | # function available. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6724 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kthread" >&5 | 
 | 6725 | $as_echo_n "checking whether $CC accepts -Kthread... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 6726 | if ${ac_cv_kthread+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6727 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6728 | else | 
 | 6729 |   ac_save_cc="$CC" | 
 | 6730 | CC="$CC -Kthread" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6731 | if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6732 |   ac_cv_kthread=no | 
 | 6733 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6734 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6735 | /* end confdefs.h.  */ | 
 | 6736 |  | 
| Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 6737 | #include <stdio.h> | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6738 | #include <pthread.h> | 
 | 6739 |  | 
 | 6740 | void* routine(void* p){return NULL;} | 
 | 6741 |  | 
 | 6742 | int main(){ | 
 | 6743 |   pthread_t p; | 
 | 6744 |   if(pthread_create(&p,NULL,routine,NULL)!=0) | 
 | 6745 |     return 1; | 
 | 6746 |   (void)pthread_detach(p); | 
 | 6747 |   return 0; | 
 | 6748 | } | 
 | 6749 |  | 
 | 6750 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6751 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6752 |   ac_cv_kthread=yes | 
 | 6753 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6754 |   ac_cv_kthread=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6755 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6756 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 6757 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6758 | fi | 
 | 6759 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6760 | CC="$ac_save_cc" | 
 | 6761 | fi | 
 | 6762 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kthread" >&5 | 
 | 6764 | $as_echo "$ac_cv_kthread" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6765 | fi | 
 | 6766 |  | 
 | 6767 | if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no | 
 | 6768 | then | 
 | 6769 | # -pthread, if available, provides the right #defines | 
 | 6770 | # and linker options to make pthread_create available | 
 | 6771 | # Some compilers won't report that they do not support -pthread, | 
 | 6772 | # so we need to run a program to see whether it really made the | 
 | 6773 | # function available. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6774 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -pthread" >&5 | 
 | 6775 | $as_echo_n "checking whether $CC accepts -pthread... " >&6; } | 
| doko@python.org | 7981f20 | 2013-01-25 15:33:25 +0100 | [diff] [blame] | 6776 | if ${ac_cv_pthread+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6777 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6778 | else | 
 | 6779 |   ac_save_cc="$CC" | 
 | 6780 | CC="$CC -pthread" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6781 | if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6782 |   ac_cv_pthread=no | 
 | 6783 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6784 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6785 | /* end confdefs.h.  */ | 
 | 6786 |  | 
| Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 6787 | #include <stdio.h> | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6788 | #include <pthread.h> | 
 | 6789 |  | 
 | 6790 | void* routine(void* p){return NULL;} | 
 | 6791 |  | 
 | 6792 | int main(){ | 
 | 6793 |   pthread_t p; | 
 | 6794 |   if(pthread_create(&p,NULL,routine,NULL)!=0) | 
 | 6795 |     return 1; | 
 | 6796 |   (void)pthread_detach(p); | 
 | 6797 |   return 0; | 
 | 6798 | } | 
 | 6799 |  | 
 | 6800 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6801 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6802 |   ac_cv_pthread=yes | 
 | 6803 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6804 |   ac_cv_pthread=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6805 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6806 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 6807 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6808 | fi | 
 | 6809 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6810 | CC="$ac_save_cc" | 
 | 6811 | fi | 
 | 6812 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread" >&5 | 
 | 6814 | $as_echo "$ac_cv_pthread" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6815 | fi | 
 | 6816 |  | 
 | 6817 | # If we have set a CC compiler flag for thread support then | 
 | 6818 | # check if it works for CXX, too. | 
 | 6819 | ac_cv_cxx_thread=no | 
 | 6820 | if test ! -z "$CXX" | 
 | 6821 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6822 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX also accepts flags for thread support" >&5 | 
 | 6823 | $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] | 6824 | ac_save_cxx="$CXX" | 
 | 6825 |  | 
 | 6826 | if test "$ac_cv_kpthread" = "yes" | 
 | 6827 | then | 
 | 6828 |   CXX="$CXX -Kpthread" | 
 | 6829 |   ac_cv_cxx_thread=yes | 
 | 6830 | elif test "$ac_cv_kthread" = "yes" | 
 | 6831 | then | 
 | 6832 |   CXX="$CXX -Kthread" | 
 | 6833 |   ac_cv_cxx_thread=yes | 
 | 6834 | elif test "$ac_cv_pthread" = "yes" | 
 | 6835 | then | 
 | 6836 |   CXX="$CXX -pthread" | 
 | 6837 |   ac_cv_cxx_thread=yes | 
 | 6838 | fi | 
 | 6839 |  | 
 | 6840 | if test $ac_cv_cxx_thread = yes | 
 | 6841 | then | 
 | 6842 |   echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext | 
 | 6843 |   $CXX -c conftest.$ac_ext 2>&5 | 
 | 6844 |   if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ | 
 | 6845 |      && test -s conftest$ac_exeext && ./conftest$ac_exeext | 
 | 6846 |   then | 
 | 6847 |     ac_cv_cxx_thread=yes | 
 | 6848 |   else | 
 | 6849 |     ac_cv_cxx_thread=no | 
 | 6850 |   fi | 
 | 6851 |   rm -fr conftest* | 
 | 6852 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_thread" >&5 | 
 | 6854 | $as_echo "$ac_cv_cxx_thread" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6855 | fi | 
 | 6856 | CXX="$ac_save_cxx" | 
 | 6857 |  | 
 | 6858 |  | 
 | 6859 | # checks for header files | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6860 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | 
 | 6861 | $as_echo_n "checking for ANSI C header files... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 6862 | if ${ac_cv_header_stdc+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6863 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6864 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6865 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6866 | /* end confdefs.h.  */ | 
 | 6867 | #include <stdlib.h> | 
 | 6868 | #include <stdarg.h> | 
 | 6869 | #include <string.h> | 
 | 6870 | #include <float.h> | 
 | 6871 |  | 
 | 6872 | int | 
 | 6873 | main () | 
 | 6874 | { | 
 | 6875 |  | 
 | 6876 |   ; | 
 | 6877 |   return 0; | 
 | 6878 | } | 
 | 6879 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6880 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6881 |   ac_cv_header_stdc=yes | 
 | 6882 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6883 |   ac_cv_header_stdc=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6884 | fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6885 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 6886 |  | 
 | 6887 | if test $ac_cv_header_stdc = yes; then | 
 | 6888 |   # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6889 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6890 | /* end confdefs.h.  */ | 
 | 6891 | #include <string.h> | 
 | 6892 |  | 
 | 6893 | _ACEOF | 
 | 6894 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6895 |   $EGREP "memchr" >/dev/null 2>&1; then : | 
 | 6896 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6897 | else | 
 | 6898 |   ac_cv_header_stdc=no | 
 | 6899 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 6900 | rm -f conftest* | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6901 |  | 
 | 6902 | fi | 
 | 6903 |  | 
 | 6904 | if test $ac_cv_header_stdc = yes; then | 
 | 6905 |   # 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] | 6906 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6907 | /* end confdefs.h.  */ | 
 | 6908 | #include <stdlib.h> | 
 | 6909 |  | 
 | 6910 | _ACEOF | 
 | 6911 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6912 |   $EGREP "free" >/dev/null 2>&1; then : | 
 | 6913 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6914 | else | 
 | 6915 |   ac_cv_header_stdc=no | 
 | 6916 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 6917 | rm -f conftest* | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6918 |  | 
 | 6919 | fi | 
 | 6920 |  | 
 | 6921 | if test $ac_cv_header_stdc = yes; then | 
 | 6922 |   # /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] | 6923 |   if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6924 |   : | 
 | 6925 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6926 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6927 | /* end confdefs.h.  */ | 
 | 6928 | #include <ctype.h> | 
 | 6929 | #include <stdlib.h> | 
 | 6930 | #if ((' ' & 0x0FF) == 0x020) | 
 | 6931 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | 
 | 6932 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | 
 | 6933 | #else | 
 | 6934 | # define ISLOWER(c) \ | 
 | 6935 | 		   (('a' <= (c) && (c) <= 'i') \ | 
 | 6936 | 		     || ('j' <= (c) && (c) <= 'r') \ | 
 | 6937 | 		     || ('s' <= (c) && (c) <= 'z')) | 
 | 6938 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | 
 | 6939 | #endif | 
 | 6940 |  | 
 | 6941 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | 
 | 6942 | int | 
 | 6943 | main () | 
 | 6944 | { | 
 | 6945 |   int i; | 
 | 6946 |   for (i = 0; i < 256; i++) | 
 | 6947 |     if (XOR (islower (i), ISLOWER (i)) | 
 | 6948 | 	|| toupper (i) != TOUPPER (i)) | 
 | 6949 |       return 2; | 
 | 6950 |   return 0; | 
 | 6951 | } | 
 | 6952 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6953 | if ac_fn_c_try_run "$LINENO"; then : | 
 | 6954 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6955 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6956 |   ac_cv_header_stdc=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6957 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6958 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 6959 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6960 | fi | 
 | 6961 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6962 | fi | 
 | 6963 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | 
 | 6965 | $as_echo "$ac_cv_header_stdc" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6966 | if test $ac_cv_header_stdc = yes; then | 
 | 6967 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6968 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6969 |  | 
 | 6970 | fi | 
 | 6971 |  | 
| doko@ubuntu.com | 1a4f561 | 2014-04-17 20:13:44 +0200 | [diff] [blame^] | 6972 | for ac_header in asm/types.h conio.h direct.h dlfcn.h errno.h \ | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 6973 | fcntl.h grp.h \ | 
| doko@ubuntu.com | 1a4f561 | 2014-04-17 20:13:44 +0200 | [diff] [blame^] | 6974 | ieeefp.h io.h langinfo.h libintl.h process.h pthread.h \ | 
| Benjamin Peterson | 94b580d | 2011-08-02 17:30:04 -0500 | [diff] [blame] | 6975 | sched.h shadow.h signal.h stdint.h stropts.h termios.h \ | 
| Martin v. Löwis | 14e73b1 | 2003-01-01 09:51:12 +0000 | [diff] [blame] | 6976 | unistd.h utime.h \ | 
| Jesus Cea | d8b9ae6 | 2011-11-14 19:07:41 +0100 | [diff] [blame] | 6977 | poll.h sys/devpoll.h sys/epoll.h sys/poll.h \ | 
| Antoine Pitrou | bcf2b59 | 2012-02-08 23:28:36 +0100 | [diff] [blame] | 6978 | sys/audioio.h sys/xattr.h sys/bsdtty.h sys/event.h sys/file.h sys/ioctl.h \ | 
| Martin v. Löwis | 9d6c669 | 2012-02-03 17:44:58 +0100 | [diff] [blame] | 6979 | sys/kern_control.h sys/loadavg.h sys/lock.h sys/mkdev.h sys/modem.h \ | 
| Jesus Cea | d8b9ae6 | 2011-11-14 19:07:41 +0100 | [diff] [blame] | 6980 | sys/param.h sys/select.h sys/sendfile.h sys/socket.h sys/statvfs.h \ | 
| Martin v. Löwis | 9d6c669 | 2012-02-03 17:44:58 +0100 | [diff] [blame] | 6981 | sys/stat.h sys/syscall.h sys/sys_domain.h sys/termio.h sys/time.h \ | 
| Georg Brandl | 941f956 | 2011-02-25 15:21:47 +0000 | [diff] [blame] | 6982 | sys/times.h sys/types.h sys/uio.h sys/un.h sys/utsname.h sys/wait.h pty.h \ | 
| Gregory P. Smith | 3b1f2c3 | 2011-05-15 12:18:23 -0700 | [diff] [blame] | 6983 | libutil.h sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \ | 
| Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 6984 | bluetooth/bluetooth.h linux/tipc.h spawn.h util.h alloca.h endian.h \ | 
 | 6985 | sys/endian.h | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6986 | do : | 
 | 6987 |   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
 | 6988 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 6989 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6990 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6991 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6992 | _ACEOF | 
 | 6993 |  | 
 | 6994 | fi | 
 | 6995 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6996 | done | 
 | 6997 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6998 | ac_header_dirent=no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6999 | 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] | 7000 |   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | 
 | 7001 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 | 
 | 7002 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7003 | if eval \${$as_ac_Header+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7004 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7005 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7006 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7007 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7008 | #include <sys/types.h> | 
 | 7009 | #include <$ac_hdr> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7010 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7011 | int | 
 | 7012 | main () | 
 | 7013 | { | 
 | 7014 | if ((DIR *) 0) | 
 | 7015 | return 0; | 
 | 7016 |   ; | 
 | 7017 |   return 0; | 
 | 7018 | } | 
 | 7019 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7020 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7021 |   eval "$as_ac_Header=yes" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7022 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7023 |   eval "$as_ac_Header=no" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7024 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7025 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7026 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7027 | eval ac_res=\$$as_ac_Header | 
 | 7028 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 7029 | $as_echo "$ac_res" >&6; } | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 7030 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7031 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7032 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7033 | _ACEOF | 
 | 7034 |  | 
 | 7035 | ac_header_dirent=$ac_hdr; break | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7036 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7037 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7038 | done | 
 | 7039 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | 
 | 7040 | if test $ac_header_dirent = dirent.h; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7041 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 | 
 | 7042 | $as_echo_n "checking for library containing opendir... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7043 | if ${ac_cv_search_opendir+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7044 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7045 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7046 |   ac_func_search_save_LIBS=$LIBS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7047 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7048 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7049 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7050 | /* Override any GCC internal prototype to avoid an error. | 
 | 7051 |    Use char because int might match the return type of a GCC | 
 | 7052 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7053 | #ifdef __cplusplus | 
 | 7054 | extern "C" | 
 | 7055 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7056 | char opendir (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7057 | int | 
 | 7058 | main () | 
 | 7059 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7060 | return opendir (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7061 |   ; | 
 | 7062 |   return 0; | 
 | 7063 | } | 
 | 7064 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7065 | for ac_lib in '' dir; do | 
 | 7066 |   if test -z "$ac_lib"; then | 
 | 7067 |     ac_res="none required" | 
 | 7068 |   else | 
 | 7069 |     ac_res=-l$ac_lib | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 7070 |     LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7071 |   fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7072 |   if ac_fn_c_try_link "$LINENO"; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7073 |   ac_cv_search_opendir=$ac_res | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7074 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7075 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 7076 |     conftest$ac_exeext | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7077 |   if ${ac_cv_search_opendir+:} false; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7078 |   break | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 7079 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7080 | done | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7081 | if ${ac_cv_search_opendir+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7082 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7083 | else | 
 | 7084 |   ac_cv_search_opendir=no | 
 | 7085 | fi | 
 | 7086 | rm conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7087 | LIBS=$ac_func_search_save_LIBS | 
 | 7088 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 | 
 | 7090 | $as_echo "$ac_cv_search_opendir" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7091 | ac_res=$ac_cv_search_opendir | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7092 | if test "$ac_res" != no; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7093 |   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7094 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7095 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7096 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7097 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7098 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 | 
 | 7099 | $as_echo_n "checking for library containing opendir... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7100 | if ${ac_cv_search_opendir+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7101 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7102 | else | 
 | 7103 |   ac_func_search_save_LIBS=$LIBS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7104 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7105 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7106 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7107 | /* Override any GCC internal prototype to avoid an error. | 
 | 7108 |    Use char because int might match the return type of a GCC | 
 | 7109 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7110 | #ifdef __cplusplus | 
 | 7111 | extern "C" | 
 | 7112 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7113 | char opendir (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7114 | int | 
 | 7115 | main () | 
 | 7116 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7117 | return opendir (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7118 |   ; | 
 | 7119 |   return 0; | 
 | 7120 | } | 
 | 7121 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7122 | for ac_lib in '' x; do | 
 | 7123 |   if test -z "$ac_lib"; then | 
 | 7124 |     ac_res="none required" | 
 | 7125 |   else | 
 | 7126 |     ac_res=-l$ac_lib | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 7127 |     LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7128 |   fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7129 |   if ac_fn_c_try_link "$LINENO"; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7130 |   ac_cv_search_opendir=$ac_res | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7131 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7132 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 7133 |     conftest$ac_exeext | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7134 |   if ${ac_cv_search_opendir+:} false; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7135 |   break | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 7136 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7137 | done | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7138 | if ${ac_cv_search_opendir+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7139 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7140 | else | 
 | 7141 |   ac_cv_search_opendir=no | 
 | 7142 | fi | 
 | 7143 | rm conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7144 | LIBS=$ac_func_search_save_LIBS | 
 | 7145 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 | 
 | 7147 | $as_echo "$ac_cv_search_opendir" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7148 | ac_res=$ac_cv_search_opendir | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7149 | if test "$ac_res" != no; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7150 |   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7151 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7152 | fi | 
 | 7153 |  | 
 | 7154 | fi | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7155 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7156 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5 | 
 | 7157 | $as_echo_n "checking whether sys/types.h defines makedev... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7158 | if ${ac_cv_header_sys_types_h_makedev+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7159 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7160 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7161 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7162 | /* end confdefs.h.  */ | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7163 | #include <sys/types.h> | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7164 | int | 
 | 7165 | main () | 
 | 7166 | { | 
 | 7167 | return makedev(0, 0); | 
 | 7168 |   ; | 
 | 7169 |   return 0; | 
 | 7170 | } | 
 | 7171 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7172 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7173 |   ac_cv_header_sys_types_h_makedev=yes | 
 | 7174 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7175 |   ac_cv_header_sys_types_h_makedev=no | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7176 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7177 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 7178 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7179 |  | 
 | 7180 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5 | 
 | 7182 | $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; } | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7183 |  | 
 | 7184 | if test $ac_cv_header_sys_types_h_makedev = no; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7185 | ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7186 | if test "x$ac_cv_header_sys_mkdev_h" = xyes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7187 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7188 | $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7189 |  | 
 | 7190 | fi | 
 | 7191 |  | 
 | 7192 |  | 
 | 7193 |  | 
 | 7194 |   if test $ac_cv_header_sys_mkdev_h = no; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7195 |     ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7196 | if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7197 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7198 | $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7199 |  | 
 | 7200 | fi | 
 | 7201 |  | 
 | 7202 |  | 
 | 7203 |   fi | 
 | 7204 | fi | 
 | 7205 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7206 |  | 
| Gregory P. Smith | 3b1f2c3 | 2011-05-15 12:18:23 -0700 | [diff] [blame] | 7207 | # On Darwin (OS X) net/if.h requires sys/socket.h to be imported first. | 
 | 7208 | for ac_header in net/if.h | 
 | 7209 | do : | 
 | 7210 |   ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#include <stdio.h> | 
 | 7211 | #ifdef STDC_HEADERS | 
 | 7212 | # include <stdlib.h> | 
 | 7213 | # include <stddef.h> | 
 | 7214 | #else | 
 | 7215 | # ifdef HAVE_STDLIB_H | 
 | 7216 | #  include <stdlib.h> | 
 | 7217 | # endif | 
 | 7218 | #endif | 
 | 7219 | #ifdef HAVE_SYS_SOCKET_H | 
 | 7220 | # include <sys/socket.h> | 
 | 7221 | #endif | 
 | 7222 |  | 
 | 7223 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7224 | if test "x$ac_cv_header_net_if_h" = xyes; then : | 
| Gregory P. Smith | 3b1f2c3 | 2011-05-15 12:18:23 -0700 | [diff] [blame] | 7225 |   cat >>confdefs.h <<_ACEOF | 
 | 7226 | #define HAVE_NET_IF_H 1 | 
 | 7227 | _ACEOF | 
 | 7228 |  | 
 | 7229 | fi | 
 | 7230 |  | 
 | 7231 | done | 
 | 7232 |  | 
 | 7233 |  | 
| Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 7234 | # On Linux, netlink.h requires asm/types.h | 
| Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 7235 | for ac_header in linux/netlink.h | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7236 | do : | 
 | 7237 |   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] | 7238 | #ifdef HAVE_ASM_TYPES_H | 
 | 7239 | #include <asm/types.h> | 
 | 7240 | #endif | 
 | 7241 | #ifdef HAVE_SYS_SOCKET_H | 
 | 7242 | #include <sys/socket.h> | 
 | 7243 | #endif | 
 | 7244 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7245 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7246 | if test "x$ac_cv_header_linux_netlink_h" = xyes; then : | 
| Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 7247 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7248 | #define HAVE_LINUX_NETLINK_H 1 | 
| Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 7249 | _ACEOF | 
 | 7250 |  | 
 | 7251 | fi | 
 | 7252 |  | 
 | 7253 | done | 
 | 7254 |  | 
 | 7255 |  | 
| Charles-François Natali | 47413c1 | 2011-10-06 19:47:44 +0200 | [diff] [blame] | 7256 | # On Linux, can.h and can/raw.h require sys/socket.h | 
| Charles-François Natali | 773e42d | 2013-02-05 19:42:01 +0100 | [diff] [blame] | 7257 | for ac_header in linux/can.h linux/can/raw.h linux/can/bcm.h | 
| Charles-François Natali | 47413c1 | 2011-10-06 19:47:44 +0200 | [diff] [blame] | 7258 | do : | 
 | 7259 |   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
 | 7260 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " | 
 | 7261 | #ifdef HAVE_SYS_SOCKET_H | 
 | 7262 | #include <sys/socket.h> | 
 | 7263 | #endif | 
 | 7264 |  | 
 | 7265 | " | 
 | 7266 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 
 | 7267 |   cat >>confdefs.h <<_ACEOF | 
 | 7268 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
 | 7269 | _ACEOF | 
 | 7270 |  | 
 | 7271 | fi | 
 | 7272 |  | 
 | 7273 | done | 
 | 7274 |  | 
 | 7275 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7276 | # checks for typedefs | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 7277 | was_it_defined=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7278 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t in time.h" >&5 | 
 | 7279 | $as_echo_n "checking for clock_t in time.h... " >&6; } | 
 | 7280 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7281 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7282 | #include <time.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7283 |  | 
 | 7284 | _ACEOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7285 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7286 |   $EGREP "clock_t" >/dev/null 2>&1; then : | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 7287 |   was_it_defined=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7288 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7289 |  | 
 | 7290 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7291 | $as_echo "#define clock_t long" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7292 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 7293 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7294 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 7295 | rm -f conftest* | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7296 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5 | 
 | 7298 | $as_echo "$was_it_defined" >&6; } | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 7299 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7300 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for makedev" >&5 | 
 | 7301 | $as_echo_n "checking for makedev... " >&6; } | 
 | 7302 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7303 | /* end confdefs.h.  */ | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 7304 |  | 
| Jesus Cea | 740f53a | 2010-04-28 11:35:30 +0000 | [diff] [blame] | 7305 | #if defined(MAJOR_IN_MKDEV) | 
 | 7306 | #include <sys/mkdev.h> | 
 | 7307 | #elif defined(MAJOR_IN_SYSMACROS) | 
 | 7308 | #include <sys/sysmacros.h> | 
 | 7309 | #else | 
 | 7310 | #include <sys/types.h> | 
 | 7311 | #endif | 
 | 7312 |  | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7313 | int | 
 | 7314 | main () | 
 | 7315 | { | 
| Jesus Cea | 740f53a | 2010-04-28 11:35:30 +0000 | [diff] [blame] | 7316 |  | 
 | 7317 |   makedev(0, 0) | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7318 |   ; | 
 | 7319 |   return 0; | 
 | 7320 | } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 7321 |  | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7322 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7323 | if ac_fn_c_try_link "$LINENO"; then : | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7324 |   ac_cv_has_makedev=yes | 
 | 7325 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7326 |   ac_cv_has_makedev=no | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7327 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7328 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 7329 |     conftest$ac_exeext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_makedev" >&5 | 
 | 7331 | $as_echo "$ac_cv_has_makedev" >&6; } | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7332 | if test "$ac_cv_has_makedev" = "yes"; then | 
 | 7333 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7334 | $as_echo "#define HAVE_MAKEDEV 1" >>confdefs.h | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7335 |  | 
 | 7336 | fi | 
 | 7337 |  | 
| Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 7338 | # byte swapping | 
 | 7339 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for le64toh" >&5 | 
 | 7340 | $as_echo_n "checking for le64toh... " >&6; } | 
 | 7341 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 7342 | /* end confdefs.h.  */ | 
 | 7343 |  | 
 | 7344 | #ifdef HAVE_ENDIAN_H | 
 | 7345 | #include <endian.h> | 
 | 7346 | #elif defined(HAVE_SYS_ENDIAN_H) | 
 | 7347 | #include <sys/endian.h> | 
 | 7348 | #endif | 
 | 7349 |  | 
 | 7350 | int | 
 | 7351 | main () | 
 | 7352 | { | 
 | 7353 |  | 
 | 7354 |    le64toh(1) | 
 | 7355 |   ; | 
 | 7356 |   return 0; | 
 | 7357 | } | 
 | 7358 |  | 
 | 7359 | _ACEOF | 
 | 7360 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 7361 |   ac_cv_has_le64toh=yes | 
 | 7362 | else | 
 | 7363 |   ac_cv_has_le64toh=no | 
 | 7364 | fi | 
 | 7365 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 7366 |     conftest$ac_exeext conftest.$ac_ext | 
 | 7367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_le64toh" >&5 | 
 | 7368 | $as_echo "$ac_cv_has_le64toh" >&6; } | 
 | 7369 | if test "$ac_cv_has_le64toh" = "yes"; then | 
 | 7370 |  | 
 | 7371 | $as_echo "#define HAVE_HTOLE64 1" >>confdefs.h | 
 | 7372 |  | 
 | 7373 | fi | 
 | 7374 |  | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 7375 | # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in | 
 | 7376 | # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are | 
 | 7377 | # defined, but the compiler does not support pragma redefine_extname, | 
 | 7378 | # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit | 
 | 7379 | # structures (such as rlimit64) without declaring them. As a | 
 | 7380 | # work-around, disable LFS on such configurations | 
 | 7381 |  | 
 | 7382 | use_lfs=yes | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7383 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking Solaris LFS bug" >&5 | 
 | 7384 | $as_echo_n "checking Solaris LFS bug... " >&6; } | 
 | 7385 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7386 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 7387 |  | 
 | 7388 | #define _LARGEFILE_SOURCE 1 | 
 | 7389 | #define _FILE_OFFSET_BITS 64 | 
 | 7390 | #include <sys/resource.h> | 
 | 7391 |  | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 7392 | int | 
 | 7393 | main () | 
 | 7394 | { | 
 | 7395 | struct rlimit foo; | 
 | 7396 |   ; | 
 | 7397 |   return 0; | 
 | 7398 | } | 
 | 7399 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7400 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 7401 |   sol_lfs_bug=no | 
 | 7402 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7403 |   sol_lfs_bug=yes | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 7404 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7405 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7406 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sol_lfs_bug" >&5 | 
 | 7407 | $as_echo "$sol_lfs_bug" >&6; } | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 7408 | if test "$sol_lfs_bug" = "yes"; then | 
 | 7409 |   use_lfs=no | 
 | 7410 | fi | 
 | 7411 |  | 
 | 7412 | if test "$use_lfs" = "yes"; then | 
| Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 7413 | # Two defines needed to enable largefile support on various platforms | 
 | 7414 | # These may affect some typedefs | 
| Georg Brandl | 216e404 | 2011-02-19 08:58:23 +0000 | [diff] [blame] | 7415 | case $ac_sys_system/$ac_sys_release in | 
 | 7416 | AIX*) | 
 | 7417 |  | 
 | 7418 | $as_echo "#define _LARGE_FILES 1" >>confdefs.h | 
 | 7419 |  | 
 | 7420 |     ;; | 
 | 7421 | esac | 
| Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 7422 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7423 | $as_echo "#define _LARGEFILE_SOURCE 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7424 |  | 
 | 7425 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7426 | $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h | 
| Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 7427 |  | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 7428 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7429 |  | 
| Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 7430 | # Add some code to confdefs.h so that the test for off_t works on SCO | 
 | 7431 | cat >> confdefs.h <<\EOF | 
 | 7432 | #if defined(SCO_DS) | 
 | 7433 | #undef _OFF_T | 
 | 7434 | #endif | 
 | 7435 | EOF | 
 | 7436 |  | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7437 | # Type availability checks | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7438 | ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7439 | if test "x$ac_cv_type_mode_t" = xyes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7440 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7441 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7442 |  | 
 | 7443 | cat >>confdefs.h <<_ACEOF | 
 | 7444 | #define mode_t int | 
 | 7445 | _ACEOF | 
 | 7446 |  | 
 | 7447 | fi | 
 | 7448 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7449 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7450 | if test "x$ac_cv_type_off_t" = xyes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7451 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7452 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7453 |  | 
 | 7454 | cat >>confdefs.h <<_ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7455 | #define off_t long int | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7456 | _ACEOF | 
 | 7457 |  | 
 | 7458 | fi | 
 | 7459 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7460 | ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7461 | if test "x$ac_cv_type_pid_t" = xyes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7462 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7463 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7464 |  | 
 | 7465 | cat >>confdefs.h <<_ACEOF | 
 | 7466 | #define pid_t int | 
 | 7467 | _ACEOF | 
 | 7468 |  | 
 | 7469 | fi | 
 | 7470 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 7471 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7472 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | bada4c3 | 2010-04-25 21:18:48 +0000 | [diff] [blame] | 7473 | #define RETSIGTYPE void | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7474 | _ACEOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7475 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7476 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7477 | if test "x$ac_cv_type_size_t" = xyes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7478 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7479 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7480 |  | 
 | 7481 | cat >>confdefs.h <<_ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7482 | #define size_t unsigned int | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7483 | _ACEOF | 
 | 7484 |  | 
 | 7485 | fi | 
 | 7486 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7487 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 | 
 | 7488 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7489 | if ${ac_cv_type_uid_t+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7490 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7491 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7492 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7493 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7494 | #include <sys/types.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7495 |  | 
 | 7496 | _ACEOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7497 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7498 |   $EGREP "uid_t" >/dev/null 2>&1; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7499 |   ac_cv_type_uid_t=yes | 
 | 7500 | else | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7501 |   ac_cv_type_uid_t=no | 
 | 7502 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 7503 | rm -f conftest* | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7504 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7505 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 | 
 | 7507 | $as_echo "$ac_cv_type_uid_t" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7508 | if test $ac_cv_type_uid_t = no; then | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7509 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7510 | $as_echo "#define uid_t int" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7511 |  | 
 | 7512 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7513 | $as_echo "#define gid_t int" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7514 |  | 
 | 7515 | fi | 
 | 7516 |  | 
| Mark Dickinson | 983bc16 | 2012-12-02 12:11:38 +0000 | [diff] [blame] | 7517 |  | 
 | 7518 | # There are two separate checks for each of the exact-width integer types we | 
 | 7519 | # need.  First we check whether the type is available using the usual | 
 | 7520 | # AC_CHECK_TYPE macro with the default includes (which includes <inttypes.h> | 
 | 7521 | # and <stdint.h> where available).  We then also use the special type checks of | 
 | 7522 | # the form AC_TYPE_UINT32_T, which in the case that uint32_t is not available | 
 | 7523 | # directly, #define's uint32_t to be a suitable type. | 
 | 7524 |  | 
 | 7525 | ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default" | 
 | 7526 | if test "x$ac_cv_type_uint32_t" = xyes; then : | 
 | 7527 |  | 
 | 7528 | $as_echo "#define HAVE_UINT32_T 1" >>confdefs.h | 
 | 7529 |  | 
 | 7530 | fi | 
 | 7531 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7532 | ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" | 
 | 7533 | case $ac_cv_c_uint32_t in #( | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 7534 |   no|yes) ;; #( | 
 | 7535 |   *) | 
 | 7536 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7537 | $as_echo "#define _UINT32_T 1" >>confdefs.h | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 7538 |  | 
 | 7539 |  | 
 | 7540 | cat >>confdefs.h <<_ACEOF | 
 | 7541 | #define uint32_t $ac_cv_c_uint32_t | 
 | 7542 | _ACEOF | 
 | 7543 | ;; | 
 | 7544 |   esac | 
 | 7545 |  | 
| Mark Dickinson | 983bc16 | 2012-12-02 12:11:38 +0000 | [diff] [blame] | 7546 |  | 
 | 7547 | ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default" | 
 | 7548 | if test "x$ac_cv_type_uint64_t" = xyes; then : | 
 | 7549 |  | 
 | 7550 | $as_echo "#define HAVE_UINT64_T 1" >>confdefs.h | 
 | 7551 |  | 
 | 7552 | fi | 
 | 7553 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7554 | ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t" | 
 | 7555 | case $ac_cv_c_uint64_t in #( | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 7556 |   no|yes) ;; #( | 
 | 7557 |   *) | 
 | 7558 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7559 | $as_echo "#define _UINT64_T 1" >>confdefs.h | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 7560 |  | 
 | 7561 |  | 
 | 7562 | cat >>confdefs.h <<_ACEOF | 
 | 7563 | #define uint64_t $ac_cv_c_uint64_t | 
 | 7564 | _ACEOF | 
 | 7565 | ;; | 
 | 7566 |   esac | 
 | 7567 |  | 
| Mark Dickinson | 983bc16 | 2012-12-02 12:11:38 +0000 | [diff] [blame] | 7568 |  | 
 | 7569 | ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default" | 
 | 7570 | if test "x$ac_cv_type_int32_t" = xyes; then : | 
 | 7571 |  | 
 | 7572 | $as_echo "#define HAVE_INT32_T 1" >>confdefs.h | 
 | 7573 |  | 
 | 7574 | fi | 
 | 7575 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7576 | ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" | 
 | 7577 | case $ac_cv_c_int32_t in #( | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 7578 |   no|yes) ;; #( | 
 | 7579 |   *) | 
 | 7580 |  | 
 | 7581 | cat >>confdefs.h <<_ACEOF | 
 | 7582 | #define int32_t $ac_cv_c_int32_t | 
 | 7583 | _ACEOF | 
 | 7584 | ;; | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 7585 | esac | 
 | 7586 |  | 
| Mark Dickinson | 983bc16 | 2012-12-02 12:11:38 +0000 | [diff] [blame] | 7587 |  | 
 | 7588 | ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default" | 
 | 7589 | if test "x$ac_cv_type_int64_t" = xyes; then : | 
 | 7590 |  | 
 | 7591 | $as_echo "#define HAVE_INT64_T 1" >>confdefs.h | 
 | 7592 |  | 
 | 7593 | fi | 
 | 7594 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7595 | ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t" | 
 | 7596 | case $ac_cv_c_int64_t in #( | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 7597 |   no|yes) ;; #( | 
 | 7598 |   *) | 
 | 7599 |  | 
 | 7600 | cat >>confdefs.h <<_ACEOF | 
 | 7601 | #define int64_t $ac_cv_c_int64_t | 
 | 7602 | _ACEOF | 
 | 7603 | ;; | 
| Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 7604 | esac | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7605 |  | 
| Mark Dickinson | 983bc16 | 2012-12-02 12:11:38 +0000 | [diff] [blame] | 7606 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7607 | ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7608 | if test "x$ac_cv_type_ssize_t" = xyes; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7609 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7610 | $as_echo "#define HAVE_SSIZE_T 1" >>confdefs.h | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7611 |  | 
 | 7612 | fi | 
 | 7613 |  | 
| Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 7614 | ac_fn_c_check_type "$LINENO" "__uint128_t" "ac_cv_type___uint128_t" "$ac_includes_default" | 
 | 7615 | if test "x$ac_cv_type___uint128_t" = xyes; then : | 
 | 7616 |  | 
 | 7617 | $as_echo "#define HAVE_GCC_UINT128_T 1" >>confdefs.h | 
 | 7618 |  | 
 | 7619 | fi | 
 | 7620 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 7621 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7622 | # Sizes of various common basic types | 
| Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 7623 | # ANSI C requires sizeof(char) == 1, so no need to check it | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7624 | # The cast to long int works around a bug in the HP C Compiler | 
 | 7625 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 7626 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 7627 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7628 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 | 
 | 7629 | $as_echo_n "checking size of int... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7630 | if ${ac_cv_sizeof_int+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7631 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7632 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7633 |   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] | 7634 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7635 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7636 |   if test "$ac_cv_type_int" = yes; then | 
 | 7637 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 7638 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 7639 | as_fn_error 77 "cannot compute sizeof (int) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7640 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7641 |    else | 
 | 7642 |      ac_cv_sizeof_int=0 | 
 | 7643 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7644 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7645 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7646 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 | 
 | 7648 | $as_echo "$ac_cv_sizeof_int" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7649 |  | 
 | 7650 |  | 
 | 7651 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7652 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7653 | #define SIZEOF_INT $ac_cv_sizeof_int | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7654 | _ACEOF | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7655 |  | 
 | 7656 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7657 | # The cast to long int works around a bug in the HP C Compiler | 
 | 7658 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 7659 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 7660 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7661 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 | 
 | 7662 | $as_echo_n "checking size of long... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7663 | if ${ac_cv_sizeof_long+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7664 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7665 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7666 |   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] | 7667 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7668 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7669 |   if test "$ac_cv_type_long" = yes; then | 
 | 7670 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 7671 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 7672 | as_fn_error 77 "cannot compute sizeof (long) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7673 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7674 |    else | 
 | 7675 |      ac_cv_sizeof_long=0 | 
 | 7676 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7677 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7678 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7679 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 | 
 | 7681 | $as_echo "$ac_cv_sizeof_long" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7682 |  | 
 | 7683 |  | 
 | 7684 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7685 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7686 | #define SIZEOF_LONG $ac_cv_sizeof_long | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7687 | _ACEOF | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7688 |  | 
 | 7689 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7690 | # The cast to long int works around a bug in the HP C Compiler | 
 | 7691 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 7692 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 7693 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7694 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 | 
 | 7695 | $as_echo_n "checking size of void *... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7696 | if ${ac_cv_sizeof_void_p+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7697 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7698 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7699 |   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] | 7700 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7701 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7702 |   if test "$ac_cv_type_void_p" = yes; then | 
 | 7703 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 7704 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 7705 | as_fn_error 77 "cannot compute sizeof (void *) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7706 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7707 |    else | 
 | 7708 |      ac_cv_sizeof_void_p=0 | 
 | 7709 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7710 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7711 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7712 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 | 
 | 7714 | $as_echo "$ac_cv_sizeof_void_p" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7715 |  | 
 | 7716 |  | 
 | 7717 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7718 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7719 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7720 | _ACEOF | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7721 |  | 
 | 7722 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7723 | # The cast to long int works around a bug in the HP C Compiler | 
 | 7724 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 7725 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 7726 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7727 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 | 
 | 7728 | $as_echo_n "checking size of short... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7729 | if ${ac_cv_sizeof_short+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7730 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7731 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7732 |   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] | 7733 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7734 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7735 |   if test "$ac_cv_type_short" = yes; then | 
 | 7736 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 7737 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 7738 | as_fn_error 77 "cannot compute sizeof (short) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7739 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7740 |    else | 
 | 7741 |      ac_cv_sizeof_short=0 | 
 | 7742 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7743 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7744 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7745 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 | 
 | 7747 | $as_echo "$ac_cv_sizeof_short" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7748 |  | 
 | 7749 |  | 
 | 7750 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7751 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7752 | #define SIZEOF_SHORT $ac_cv_sizeof_short | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7753 | _ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7754 |  | 
 | 7755 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7756 | # The cast to long int works around a bug in the HP C Compiler | 
 | 7757 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 7758 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 7759 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7760 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5 | 
 | 7761 | $as_echo_n "checking size of float... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7762 | if ${ac_cv_sizeof_float+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7763 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7764 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7765 |   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] | 7766 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7767 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7768 |   if test "$ac_cv_type_float" = yes; then | 
 | 7769 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 7770 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 7771 | as_fn_error 77 "cannot compute sizeof (float) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7772 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7773 |    else | 
 | 7774 |      ac_cv_sizeof_float=0 | 
 | 7775 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7776 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7777 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7778 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5 | 
 | 7780 | $as_echo "$ac_cv_sizeof_float" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7781 |  | 
 | 7782 |  | 
 | 7783 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7784 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7785 | #define SIZEOF_FLOAT $ac_cv_sizeof_float | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7786 | _ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7787 |  | 
 | 7788 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7789 | # The cast to long int works around a bug in the HP C Compiler | 
 | 7790 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 7791 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 7792 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7793 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5 | 
 | 7794 | $as_echo_n "checking size of double... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7795 | if ${ac_cv_sizeof_double+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7796 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7797 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7798 |   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] | 7799 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7800 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7801 |   if test "$ac_cv_type_double" = yes; then | 
 | 7802 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 7803 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 7804 | as_fn_error 77 "cannot compute sizeof (double) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7805 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7806 |    else | 
 | 7807 |      ac_cv_sizeof_double=0 | 
 | 7808 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7809 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7810 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7811 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5 | 
 | 7813 | $as_echo "$ac_cv_sizeof_double" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7814 |  | 
 | 7815 |  | 
 | 7816 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7817 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7818 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7819 | _ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7820 |  | 
 | 7821 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7822 | # The cast to long int works around a bug in the HP C Compiler | 
 | 7823 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 7824 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 7825 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7826 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of fpos_t" >&5 | 
 | 7827 | $as_echo_n "checking size of fpos_t... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7828 | if ${ac_cv_sizeof_fpos_t+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7829 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7830 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7831 |   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] | 7832 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7833 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7834 |   if test "$ac_cv_type_fpos_t" = yes; then | 
 | 7835 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 7836 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 7837 | as_fn_error 77 "cannot compute sizeof (fpos_t) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7838 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7839 |    else | 
 | 7840 |      ac_cv_sizeof_fpos_t=0 | 
 | 7841 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7842 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7843 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7844 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_fpos_t" >&5 | 
 | 7846 | $as_echo "$ac_cv_sizeof_fpos_t" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7847 |  | 
 | 7848 |  | 
 | 7849 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7850 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7851 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7852 | _ACEOF | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7853 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7854 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7855 | # The cast to long int works around a bug in the HP C Compiler | 
 | 7856 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 7857 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 7858 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7859 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 | 
 | 7860 | $as_echo_n "checking size of size_t... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7861 | if ${ac_cv_sizeof_size_t+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7862 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7863 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7864 |   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] | 7865 |  | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7866 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7867 |   if test "$ac_cv_type_size_t" = yes; then | 
 | 7868 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 7869 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 7870 | as_fn_error 77 "cannot compute sizeof (size_t) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7871 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7872 |    else | 
 | 7873 |      ac_cv_sizeof_size_t=0 | 
 | 7874 |    fi | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7875 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7876 |  | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7877 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 | 
 | 7879 | $as_echo "$ac_cv_sizeof_size_t" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7880 |  | 
 | 7881 |  | 
 | 7882 |  | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7883 | cat >>confdefs.h <<_ACEOF | 
 | 7884 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t | 
 | 7885 | _ACEOF | 
 | 7886 |  | 
 | 7887 |  | 
| Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 7888 | # The cast to long int works around a bug in the HP C Compiler | 
 | 7889 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 7890 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 7891 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7892 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pid_t" >&5 | 
 | 7893 | $as_echo_n "checking size of pid_t... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7894 | if ${ac_cv_sizeof_pid_t+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7895 |   $as_echo_n "(cached) " >&6 | 
| Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 7896 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7897 |   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] | 7898 |  | 
| Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 7899 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7900 |   if test "$ac_cv_type_pid_t" = yes; then | 
 | 7901 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 7902 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 7903 | as_fn_error 77 "cannot compute sizeof (pid_t) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7904 | See \`config.log' for more details" "$LINENO" 5; } | 
| Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 7905 |    else | 
 | 7906 |      ac_cv_sizeof_pid_t=0 | 
 | 7907 |    fi | 
 | 7908 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7909 |  | 
| Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 7910 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7911 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pid_t" >&5 | 
 | 7912 | $as_echo "$ac_cv_sizeof_pid_t" >&6; } | 
| Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 7913 |  | 
 | 7914 |  | 
 | 7915 |  | 
 | 7916 | cat >>confdefs.h <<_ACEOF | 
 | 7917 | #define SIZEOF_PID_T $ac_cv_sizeof_pid_t | 
 | 7918 | _ACEOF | 
 | 7919 |  | 
 | 7920 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7921 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7922 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support" >&5 | 
 | 7923 | $as_echo_n "checking for long long support... " >&6; } | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7924 | have_long_long=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7925 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7926 | /* end confdefs.h.  */ | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7927 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7928 | int | 
 | 7929 | main () | 
 | 7930 | { | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7931 | long long x; x = (long long)0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7932 |   ; | 
 | 7933 |   return 0; | 
 | 7934 | } | 
 | 7935 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7936 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7937 |  | 
 | 7938 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7939 | $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7940 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 7941 |   have_long_long=yes | 
 | 7942 |  | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7943 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7944 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_long_long" >&5 | 
 | 7946 | $as_echo "$have_long_long" >&6; } | 
| Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 7947 | if test "$have_long_long" = yes ; then | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7948 | # The cast to long int works around a bug in the HP C Compiler | 
 | 7949 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 7950 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 7951 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7952 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 | 
 | 7953 | $as_echo_n "checking size of long long... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7954 | if ${ac_cv_sizeof_long_long+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7955 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7956 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7957 |   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] | 7958 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7959 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7960 |   if test "$ac_cv_type_long_long" = yes; then | 
 | 7961 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 7962 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 7963 | as_fn_error 77 "cannot compute sizeof (long long) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7964 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7965 |    else | 
 | 7966 |      ac_cv_sizeof_long_long=0 | 
 | 7967 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7968 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7969 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7970 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 | 
 | 7972 | $as_echo "$ac_cv_sizeof_long_long" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7973 |  | 
 | 7974 |  | 
 | 7975 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7976 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7977 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7978 | _ACEOF | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7979 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7980 |  | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7981 | fi | 
 | 7982 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7983 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support" >&5 | 
 | 7984 | $as_echo_n "checking for long double support... " >&6; } | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 7985 | have_long_double=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7986 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 7987 | /* end confdefs.h.  */ | 
 | 7988 |  | 
 | 7989 | int | 
 | 7990 | main () | 
 | 7991 | { | 
 | 7992 | long double x; x = (long double)0; | 
 | 7993 |   ; | 
 | 7994 |   return 0; | 
 | 7995 | } | 
 | 7996 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7997 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 7998 |  | 
 | 7999 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8000 | $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8001 |  | 
 | 8002 |   have_long_double=yes | 
 | 8003 |  | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8004 | fi | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8005 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_long_double" >&5 | 
 | 8007 | $as_echo "$have_long_double" >&6; } | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8008 | if test "$have_long_double" = yes ; then | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8009 | # The cast to long int works around a bug in the HP C Compiler | 
 | 8010 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 8011 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 8012 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8013 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5 | 
 | 8014 | $as_echo_n "checking size of long double... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8015 | if ${ac_cv_sizeof_long_double+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8016 |   $as_echo_n "(cached) " >&6 | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8017 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8018 |   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] | 8019 |  | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8020 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8021 |   if test "$ac_cv_type_long_double" = yes; then | 
 | 8022 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 8023 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8024 | as_fn_error 77 "cannot compute sizeof (long double) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8025 | See \`config.log' for more details" "$LINENO" 5; } | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8026 |    else | 
 | 8027 |      ac_cv_sizeof_long_double=0 | 
 | 8028 |    fi | 
 | 8029 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8030 |  | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8031 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5 | 
 | 8033 | $as_echo "$ac_cv_sizeof_long_double" >&6; } | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8034 |  | 
 | 8035 |  | 
 | 8036 |  | 
 | 8037 | cat >>confdefs.h <<_ACEOF | 
 | 8038 | #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double | 
 | 8039 | _ACEOF | 
 | 8040 |  | 
 | 8041 |  | 
 | 8042 | fi | 
 | 8043 |  | 
 | 8044 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8045 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Bool support" >&5 | 
 | 8046 | $as_echo_n "checking for _Bool support... " >&6; } | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8047 | have_c99_bool=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8048 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8049 | /* end confdefs.h.  */ | 
 | 8050 |  | 
 | 8051 | int | 
 | 8052 | main () | 
 | 8053 | { | 
 | 8054 | _Bool x; x = (_Bool)0; | 
 | 8055 |   ; | 
 | 8056 |   return 0; | 
 | 8057 | } | 
 | 8058 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8059 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8060 |  | 
 | 8061 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8062 | $as_echo "#define HAVE_C99_BOOL 1" >>confdefs.h | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8063 |  | 
 | 8064 |   have_c99_bool=yes | 
 | 8065 |  | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8066 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8067 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_c99_bool" >&5 | 
 | 8069 | $as_echo "$have_c99_bool" >&6; } | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8070 | if test "$have_c99_bool" = yes ; then | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8071 | # The cast to long int works around a bug in the HP C Compiler | 
 | 8072 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 8073 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 8074 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8075 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of _Bool" >&5 | 
 | 8076 | $as_echo_n "checking size of _Bool... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8077 | if ${ac_cv_sizeof__Bool+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8078 |   $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8079 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8080 |   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] | 8081 |  | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8082 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8083 |   if test "$ac_cv_type__Bool" = yes; then | 
 | 8084 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 8085 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8086 | as_fn_error 77 "cannot compute sizeof (_Bool) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8087 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8088 |    else | 
 | 8089 |      ac_cv_sizeof__Bool=0 | 
 | 8090 |    fi | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8091 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8092 |  | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8093 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof__Bool" >&5 | 
 | 8095 | $as_echo "$ac_cv_sizeof__Bool" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8096 |  | 
 | 8097 |  | 
 | 8098 |  | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8099 | cat >>confdefs.h <<_ACEOF | 
 | 8100 | #define SIZEOF__BOOL $ac_cv_sizeof__Bool | 
 | 8101 | _ACEOF | 
 | 8102 |  | 
 | 8103 |  | 
 | 8104 | fi | 
 | 8105 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8106 | 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] | 8107 |         #include <stdint.h> | 
 | 8108 |         #endif | 
| Antoine Pitrou | 1bf29b7 | 2010-10-10 08:10:16 +0000 | [diff] [blame] | 8109 |         #ifdef HAVE_INTTYPES_H | 
 | 8110 |         #include <inttypes.h> | 
 | 8111 |         #endif | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8112 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8113 | if test "x$ac_cv_type_uintptr_t" = xyes; then : | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 8114 |  | 
 | 8115 | cat >>confdefs.h <<_ACEOF | 
 | 8116 | #define HAVE_UINTPTR_T 1 | 
 | 8117 | _ACEOF | 
 | 8118 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8119 | # The cast to long int works around a bug in the HP C Compiler | 
 | 8120 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 8121 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 8122 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8123 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uintptr_t" >&5 | 
 | 8124 | $as_echo_n "checking size of uintptr_t... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8125 | if ${ac_cv_sizeof_uintptr_t+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8126 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8127 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8128 |   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] | 8129 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8130 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8131 |   if test "$ac_cv_type_uintptr_t" = yes; then | 
 | 8132 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 8133 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8134 | as_fn_error 77 "cannot compute sizeof (uintptr_t) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8135 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8136 |    else | 
 | 8137 |      ac_cv_sizeof_uintptr_t=0 | 
 | 8138 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8139 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8140 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8141 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uintptr_t" >&5 | 
 | 8143 | $as_echo "$ac_cv_sizeof_uintptr_t" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8144 |  | 
 | 8145 |  | 
 | 8146 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8147 | cat >>confdefs.h <<_ACEOF | 
| Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8148 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8149 | _ACEOF | 
| Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8150 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8151 |  | 
| Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8152 | fi | 
 | 8153 |  | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 8154 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8155 | # The cast to long int works around a bug in the HP C Compiler | 
 | 8156 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 8157 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 8158 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8159 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 | 
 | 8160 | $as_echo_n "checking size of off_t... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8161 | if ${ac_cv_sizeof_off_t+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8162 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8163 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8164 |   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] | 8165 | #ifdef HAVE_SYS_TYPES_H | 
 | 8166 | #include <sys/types.h> | 
 | 8167 | #endif | 
 | 8168 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8169 | "; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8170 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8171 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8172 |   if test "$ac_cv_type_off_t" = yes; then | 
 | 8173 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 8174 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8175 | as_fn_error 77 "cannot compute sizeof (off_t) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8176 | See \`config.log' for more details" "$LINENO" 5; } | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8177 |    else | 
 | 8178 |      ac_cv_sizeof_off_t=0 | 
 | 8179 |    fi | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8180 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8181 |  | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8182 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 | 
 | 8184 | $as_echo "$ac_cv_sizeof_off_t" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8185 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8186 |  | 
 | 8187 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8188 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8189 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8190 | _ACEOF | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8191 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8192 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8193 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8194 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable large file support" >&5 | 
 | 8195 | $as_echo_n "checking whether to enable large file support... " >&6; } | 
| Mark Dickinson | 2df5d28 | 2009-12-31 21:22:50 +0000 | [diff] [blame] | 8196 | if test "$have_long_long" = yes | 
 | 8197 | then | 
 | 8198 | 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] | 8199 | 	"$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] | 8200 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8201 | $as_echo "#define HAVE_LARGEFILE_SUPPORT 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8202 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8203 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 8204 | $as_echo "yes" >&6; } | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8205 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8206 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 8207 | $as_echo "no" >&6; } | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8208 | fi | 
| Mark Dickinson | 2df5d28 | 2009-12-31 21:22:50 +0000 | [diff] [blame] | 8209 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8210 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 8211 | $as_echo "no" >&6; } | 
| Mark Dickinson | 2df5d28 | 2009-12-31 21:22:50 +0000 | [diff] [blame] | 8212 | fi | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8213 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8214 | # The cast to long int works around a bug in the HP C Compiler | 
 | 8215 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 8216 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 8217 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8218 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 | 
 | 8219 | $as_echo_n "checking size of time_t... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8220 | if ${ac_cv_sizeof_time_t+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8221 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8222 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8223 |   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] | 8224 | #ifdef HAVE_SYS_TYPES_H | 
 | 8225 | #include <sys/types.h> | 
 | 8226 | #endif | 
 | 8227 | #ifdef HAVE_TIME_H | 
 | 8228 | #include <time.h> | 
 | 8229 | #endif | 
 | 8230 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8231 | "; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8232 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8233 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8234 |   if test "$ac_cv_type_time_t" = yes; then | 
 | 8235 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 8236 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8237 | as_fn_error 77 "cannot compute sizeof (time_t) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8238 | See \`config.log' for more details" "$LINENO" 5; } | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8239 |    else | 
 | 8240 |      ac_cv_sizeof_time_t=0 | 
 | 8241 |    fi | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8242 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8243 |  | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8244 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 | 
 | 8246 | $as_echo "$ac_cv_sizeof_time_t" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8247 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8248 |  | 
 | 8249 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8250 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8251 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8252 | _ACEOF | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8253 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8254 |  | 
 | 8255 |  | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8256 | # if have pthread_t then define SIZEOF_PTHREAD_T | 
| Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 8257 | ac_save_cc="$CC" | 
 | 8258 | if test "$ac_cv_kpthread" = "yes" | 
 | 8259 | then CC="$CC -Kpthread" | 
| Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 8260 | elif test "$ac_cv_kthread" = "yes" | 
 | 8261 | then CC="$CC -Kthread" | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8262 | elif test "$ac_cv_pthread" = "yes" | 
 | 8263 | then CC="$CC -pthread" | 
| Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 8264 | fi | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8265 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8266 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_t" >&5 | 
 | 8267 | $as_echo_n "checking for pthread_t... " >&6; } | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8268 | have_pthread_t=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8269 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8270 | /* end confdefs.h.  */ | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8271 |  | 
 | 8272 |   #include <pthread.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8273 | int | 
 | 8274 | main () | 
 | 8275 | { | 
| Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 8276 | pthread_t x; x = *(pthread_t*)0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8277 |   ; | 
 | 8278 |   return 0; | 
 | 8279 | } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8280 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8281 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8282 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8283 |   have_pthread_t=yes | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8284 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8285 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_t" >&5 | 
 | 8287 | $as_echo "$have_pthread_t" >&6; } | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8288 | if test "$have_pthread_t" = yes ; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8289 |   # 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] | 8290 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 8291 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 8292 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8293 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5 | 
 | 8294 | $as_echo_n "checking size of pthread_t... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8295 | if ${ac_cv_sizeof_pthread_t+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8296 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8297 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8298 |   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] | 8299 | #ifdef HAVE_PTHREAD_H | 
 | 8300 | #include <pthread.h> | 
 | 8301 | #endif | 
 | 8302 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8303 | "; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8304 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8305 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8306 |   if test "$ac_cv_type_pthread_t" = yes; then | 
 | 8307 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 8308 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8309 | as_fn_error 77 "cannot compute sizeof (pthread_t) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8310 | See \`config.log' for more details" "$LINENO" 5; } | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8311 |    else | 
 | 8312 |      ac_cv_sizeof_pthread_t=0 | 
 | 8313 |    fi | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8314 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8315 |  | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8316 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5 | 
 | 8318 | $as_echo "$ac_cv_sizeof_pthread_t" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8319 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8320 |  | 
 | 8321 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8322 | cat >>confdefs.h <<_ACEOF | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8323 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8324 | _ACEOF | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8325 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8326 |  | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8327 | fi | 
| Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 8328 | CC="$ac_save_cc" | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8329 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8330 |  | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8331 | case $ac_sys_system/$ac_sys_release in | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 8332 |   Darwin/[01567]\..*) | 
| Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 8333 |     OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000" | 
 | 8334 |     ;; | 
 | 8335 |   Darwin/*) | 
 | 8336 |     OTHER_LIBTOOL_OPT="" | 
 | 8337 |     ;; | 
 | 8338 | esac | 
 | 8339 |  | 
 | 8340 |  | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 8341 |  | 
| Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 8342 | case $ac_sys_system/$ac_sys_release in | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 8343 |   Darwin/[01567]\..*) | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8344 |     LIBTOOL_CRUFT="-framework System -lcc_dynamic" | 
 | 8345 |     if test "${enable_universalsdk}"; then | 
 | 8346 | 	    : | 
 | 8347 |     else | 
| Ronald Oussoren | e3da75a | 2010-02-11 13:38:58 +0000 | [diff] [blame] | 8348 |         LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `/usr/bin/arch`" | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8349 |     fi | 
| Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 8350 |     LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 8351 |     LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; | 
| Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 8352 |   Darwin/*) | 
| Ronald Oussoren | 9812a6c | 2010-02-07 11:53:18 +0000 | [diff] [blame] | 8353 |     gcc_version=`gcc -dumpversion` | 
| Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 8354 |     if test ${gcc_version} '<' 4.0 | 
 | 8355 |         then | 
 | 8356 |             LIBTOOL_CRUFT="-lcc_dynamic" | 
 | 8357 |         else | 
 | 8358 |             LIBTOOL_CRUFT="" | 
 | 8359 |     fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8360 |     if test "$cross_compiling" = yes; then : | 
| Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 8361 |   ac_osx_32bit=yes | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 8362 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8363 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 8364 | /* end confdefs.h.  */ | 
| Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 8365 |  | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 8366 |     #include <unistd.h> | 
 | 8367 |     int main(int argc, char*argv[]) | 
 | 8368 |     { | 
 | 8369 |       if (sizeof(long) == 4) { | 
 | 8370 |     	  return 0; | 
 | 8371 |       } else { | 
 | 8372 |       	  return 1; | 
 | 8373 |       } | 
| Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 8374 |     } | 
 | 8375 |  | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 8376 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8377 | if ac_fn_c_try_run "$LINENO"; then : | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 8378 |   ac_osx_32bit=yes | 
 | 8379 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8380 |   ac_osx_32bit=no | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 8381 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8382 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 8383 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 8384 | fi | 
 | 8385 |  | 
 | 8386 |  | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 8387 |     if test "${ac_osx_32bit}" = "yes"; then | 
| Ronald Oussoren | e3da75a | 2010-02-11 13:38:58 +0000 | [diff] [blame] | 8388 |     	case `/usr/bin/arch` in | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 8389 |     	i386) | 
 | 8390 |     		MACOSX_DEFAULT_ARCH="i386" | 
 | 8391 |     		;; | 
 | 8392 |     	ppc) | 
 | 8393 |     		MACOSX_DEFAULT_ARCH="ppc" | 
 | 8394 |     		;; | 
 | 8395 |     	*) | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8396 |     		as_fn_error $? "Unexpected output of 'arch' on OSX" "$LINENO" 5 | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 8397 |     		;; | 
 | 8398 |     	esac | 
 | 8399 |     else | 
| Ronald Oussoren | e3da75a | 2010-02-11 13:38:58 +0000 | [diff] [blame] | 8400 |     	case `/usr/bin/arch` in | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 8401 |     	i386) | 
 | 8402 |     		MACOSX_DEFAULT_ARCH="x86_64" | 
 | 8403 |     		;; | 
 | 8404 |     	ppc) | 
 | 8405 |     		MACOSX_DEFAULT_ARCH="ppc64" | 
 | 8406 |     		;; | 
 | 8407 |     	*) | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8408 |     		as_fn_error $? "Unexpected output of 'arch' on OSX" "$LINENO" 5 | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 8409 |     		;; | 
 | 8410 |     	esac | 
 | 8411 |  | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 8412 |     fi | 
 | 8413 |  | 
 | 8414 |     LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}" | 
| Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 8415 |     LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8416 |     LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8417 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8418 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-framework" >&5 | 
 | 8419 | $as_echo_n "checking for --enable-framework... " >&6; } | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8420 | if test "$enable_framework" | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8421 | then | 
| Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 8422 | 	BASECFLAGS="$BASECFLAGS -fno-common -dynamic" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8423 | 	# -F. is needed to allow linking to the framework while | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8424 | 	# in the build location. | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8425 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8426 | $as_echo "#define WITH_NEXT_FRAMEWORK 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8427 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8428 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 8429 | $as_echo "yes" >&6; } | 
| Ronald Oussoren | 99aab65 | 2009-06-08 21:22:57 +0000 | [diff] [blame] | 8430 | 	if test $enable_shared = "yes" | 
 | 8431 | 	then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8432 | 		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] | 8433 | 	fi | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8434 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8435 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 8436 | $as_echo "no" >&6; } | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8437 | fi | 
 | 8438 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8439 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dyld" >&5 | 
 | 8440 | $as_echo_n "checking for dyld... " >&6; } | 
| Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 8441 | case $ac_sys_system/$ac_sys_release in | 
 | 8442 |   Darwin/*) | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8443 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8444 | $as_echo "#define WITH_DYLD 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8445 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8446 |   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: always on for Darwin" >&5 | 
 | 8447 | $as_echo "always on for Darwin" >&6; } | 
| Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 8448 |   	;; | 
 | 8449 |   *) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8450 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 8451 | $as_echo "no" >&6; } | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8452 | 	;; | 
| Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 8453 | esac | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8454 |  | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8455 | # Set info about shared libraries. | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8456 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8457 |  | 
 | 8458 |  | 
 | 8459 |  | 
 | 8460 |  | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 8461 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8462 |  | 
| doko@ubuntu.com | d5537d0 | 2013-03-21 13:21:49 -0700 | [diff] [blame] | 8463 | # SHLIB_SUFFIX is the extension of shared libraries `(including the dot!) | 
 | 8464 | # -- usually .so, .sl on HP-UX, .dll on Cygwin | 
 | 8465 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the extension of shared libraries" >&5 | 
 | 8466 | $as_echo_n "checking the extension of shared libraries... " >&6; } | 
 | 8467 | if test -z "$SHLIB_SUFFIX"; then | 
 | 8468 | 	case $ac_sys_system in | 
 | 8469 | 	hp*|HP*) | 
 | 8470 | 		case `uname -m` in | 
 | 8471 | 			ia64) SHLIB_SUFFIX=.so;; | 
 | 8472 | 	  		*)    SHLIB_SUFFIX=.sl;; | 
 | 8473 | 		esac | 
 | 8474 | 		;; | 
 | 8475 | 	CYGWIN*)   SHLIB_SUFFIX=.dll;; | 
 | 8476 | 	*)	   SHLIB_SUFFIX=.so;; | 
 | 8477 | 	esac | 
 | 8478 | fi | 
 | 8479 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIB_SUFFIX" >&5 | 
 | 8480 | $as_echo "$SHLIB_SUFFIX" >&6; } | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8481 |  | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8482 | # LDSHARED is the ld *command* used to create shared library | 
| Martin v. Löwis | 12af048 | 2004-01-31 12:34:17 +0000 | [diff] [blame] | 8483 | # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5 | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8484 | # (Shared libraries in this instance are shared modules to be loaded into | 
 | 8485 | # Python, as opposed to building Python itself as a shared library.) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8486 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDSHARED" >&5 | 
 | 8487 | $as_echo_n "checking LDSHARED... " >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8488 | if test -z "$LDSHARED" | 
 | 8489 | then | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8490 | 	case $ac_sys_system/$ac_sys_release in | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 8491 | 	AIX*) | 
| Georg Brandl | 9a829be | 2011-02-15 15:44:51 +0000 | [diff] [blame] | 8492 | 		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] | 8493 | 		LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp" | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 8494 | 		;; | 
| Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 8495 | 	IRIX/5*) LDSHARED="ld -shared";; | 
| Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 8496 | 	IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8497 | 	SunOS/5*) | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 8498 | 		if test "$GCC" = "yes" ; then | 
 | 8499 | 			LDSHARED='$(CC) -shared' | 
 | 8500 | 			LDCXXSHARED='$(CXX) -shared' | 
 | 8501 | 		else | 
 | 8502 | 			LDSHARED='$(CC) -G' | 
 | 8503 | 			LDCXXSHARED='$(CXX) -G' | 
| Greg Ward | 57c9a663 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 8504 | 		fi ;; | 
| Thomas Heller | f44b9a1 | 2008-04-04 10:18:23 +0000 | [diff] [blame] | 8505 | 	hp*|HP*) | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 8506 | 		if test "$GCC" = "yes" ; then | 
 | 8507 | 			LDSHARED='$(CC) -shared' | 
 | 8508 | 			LDCXXSHARED='$(CXX) -shared' | 
 | 8509 | 		else | 
 | 8510 | 			LDSHARED='ld -b' | 
| Thomas Heller | f44b9a1 | 2008-04-04 10:18:23 +0000 | [diff] [blame] | 8511 | 		fi ;; | 
| Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 8512 | 	Darwin/1.3*) | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 8513 | 		LDSHARED='$(CC) -bundle' | 
 | 8514 | 		LDCXXSHARED='$(CXX) -bundle' | 
| Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 8515 | 		if test "$enable_framework" ; then | 
 | 8516 | 			# Link against the framework. All externals should be defined. | 
| Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 8517 | 			BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
 | 8518 | 			LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 8519 | 			LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 8520 | 		else | 
 | 8521 | 			# No framework. Ignore undefined symbols, assuming they come from Python | 
| Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 8522 | 			LDSHARED="$LDSHARED -undefined suppress" | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 8523 | 			LDCXXSHARED="$LDCXXSHARED -undefined suppress" | 
| Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 8524 | 		fi ;; | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 8525 | 	Darwin/1.4*|Darwin/5.*|Darwin/6.*) | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 8526 | 		LDSHARED='$(CC) -bundle' | 
 | 8527 | 		LDCXXSHARED='$(CXX) -bundle' | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8528 | 		if test "$enable_framework" ; then | 
 | 8529 | 			# Link against the framework. All externals should be defined. | 
| Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 8530 | 			BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
 | 8531 | 			LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 8532 | 			LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8533 | 		else | 
| Michael W. Hudson | 594bc80 | 2002-03-07 09:59:15 +0000 | [diff] [blame] | 8534 | 			# No framework, use the Python app as bundle-loader | 
 | 8535 | 			BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' | 
| Jack Jansen | c28fc37 | 2003-02-25 13:14:43 +0000 | [diff] [blame] | 8536 | 			LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 8537 | 			LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8538 | 		fi ;; | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 8539 | 	Darwin/*) | 
 | 8540 | 		# Use -undefined dynamic_lookup whenever possible (10.3 and later). | 
 | 8541 | 		# This allows an extension to be used in any Python | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 8542 |  | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 8543 | 		if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2 | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 8544 | 		then | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 8545 | 			LDSHARED='$(CC) -bundle -undefined dynamic_lookup' | 
 | 8546 | 			LDCXXSHARED='$(CXX) -bundle -undefined dynamic_lookup' | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 8547 | 			BLDSHARED="$LDSHARED" | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 8548 | 		else | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 8549 | 			LDSHARED='$(CC) -bundle' | 
 | 8550 | 			LDCXXSHARED='$(CXX) -bundle' | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 8551 | 			if test "$enable_framework" ; then | 
 | 8552 | 				# Link against the framework. All externals should be defined. | 
| Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 8553 | 				BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
 | 8554 | 				LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 8555 | 				LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 8556 | 			else | 
 | 8557 | 				# No framework, use the Python app as bundle-loader | 
 | 8558 | 				BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' | 
 | 8559 | 				LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 8560 | 				LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 8561 | 			fi | 
 | 8562 | 		fi | 
 | 8563 | 		;; | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 8564 | 	Linux*|GNU*|QNX*) | 
 | 8565 | 		LDSHARED='$(CC) -shared' | 
 | 8566 | 		LDCXXSHARED='$(CXX) -shared';; | 
 | 8567 | 	BSD/OS*/4*) | 
 | 8568 | 		LDSHARED="gcc -shared" | 
 | 8569 | 		LDCXXSHARED="g++ -shared";; | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 8570 | 	FreeBSD*) | 
| Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 8571 | 		if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] | 
| Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 8572 | 		then | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 8573 | 			LDSHARED='$(CC) -shared' | 
 | 8574 | 			LDCXXSHARED='$(CXX) -shared' | 
| Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 8575 | 		else | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 8576 | 			LDSHARED="ld -Bshareable" | 
| Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 8577 | 		fi;; | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 8578 | 	OpenBSD*) | 
 | 8579 | 		if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] | 
 | 8580 | 		then | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 8581 | 				LDSHARED='$(CC) -shared $(CCSHARED)' | 
 | 8582 | 				LDCXXSHARED='$(CXX) -shared $(CCSHARED)' | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 8583 | 		else | 
 | 8584 | 				case `uname -r` in | 
 | 8585 | 				[01].* | 2.[0-7] | 2.[0-7].*) | 
 | 8586 | 				   LDSHARED="ld -Bshareable ${LDFLAGS}" | 
 | 8587 | 				   ;; | 
 | 8588 | 				*) | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 8589 | 				   LDSHARED='$(CC) -shared $(CCSHARED)' | 
 | 8590 | 				   LDCXXSHARED='$(CXX) -shared $(CCSHARED)' | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 8591 | 				   ;; | 
 | 8592 | 				esac | 
 | 8593 | 		fi;; | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 8594 | 	NetBSD*|DragonFly*) | 
| Antoine Pitrou | ece919e | 2011-01-02 20:45:21 +0000 | [diff] [blame] | 8595 | 		LDSHARED='$(CC) -shared' | 
 | 8596 | 		LDCXXSHARED='$(CXX) -shared';; | 
| Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 8597 | 	OpenUNIX*|UnixWare*) | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 8598 | 		if test "$GCC" = "yes" ; then | 
 | 8599 | 			LDSHARED='$(CC) -shared' | 
 | 8600 | 			LDCXXSHARED='$(CXX) -shared' | 
 | 8601 | 		else | 
 | 8602 | 			LDSHARED='$(CC) -G' | 
 | 8603 | 			LDCXXSHARED='$(CXX) -G' | 
| Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 8604 | 		fi;; | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 8605 | 	SCO_SV*) | 
 | 8606 | 		LDSHARED='$(CC) -Wl,-G,-Bexport' | 
 | 8607 | 		LDCXXSHARED='$(CXX) -Wl,-G,-Bexport';; | 
 | 8608 | 	CYGWIN*) | 
 | 8609 | 		LDSHARED="gcc -shared -Wl,--enable-auto-image-base" | 
 | 8610 | 		LDCXXSHARED="g++ -shared -Wl,--enable-auto-image-base";; | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8611 | 	*)	LDSHARED="ld";; | 
 | 8612 | 	esac | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8613 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDSHARED" >&5 | 
 | 8615 | $as_echo "$LDSHARED" >&6; } | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 8616 | LDCXXSHARED=${LDCXXSHARED-$LDSHARED} | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 8617 | BLDSHARED=${BLDSHARED-$LDSHARED} | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8618 | # 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] | 8619 | # library (module) -- this is only needed for a few systems | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8620 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CCSHARED" >&5 | 
 | 8621 | $as_echo_n "checking CCSHARED... " >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8622 | if test -z "$CCSHARED" | 
 | 8623 | then | 
| Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 8624 | 	case $ac_sys_system/$ac_sys_release in | 
| Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 8625 | 	SunOS*) if test "$GCC" = yes; | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 8626 | 		then CCSHARED="-fPIC"; | 
 | 8627 | 		elif test `uname -p` = sparc; | 
 | 8628 | 		then CCSHARED="-xcode=pic32"; | 
 | 8629 | 		else CCSHARED="-Kpic"; | 
 | 8630 | 		fi;; | 
| Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 8631 | 	hp*|HP*) if test "$GCC" = yes; | 
| Martin v. Löwis | 703ad70 | 2001-09-05 08:36:52 +0000 | [diff] [blame] | 8632 | 		 then CCSHARED="-fPIC"; | 
| Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 8633 | 		 else CCSHARED="+z"; | 
 | 8634 | 		 fi;; | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8635 | 	Linux*|GNU*) CCSHARED="-fPIC";; | 
| Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 8636 | 	BSD/OS*/4*) CCSHARED="-fpic";; | 
| Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 8637 | 	FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";; | 
| Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 8638 | 	OpenUNIX*|UnixWare*) | 
| Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 8639 | 		if test "$GCC" = "yes" | 
 | 8640 | 		then CCSHARED="-fPIC" | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8641 | 		else CCSHARED="-KPIC" | 
| Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 8642 | 		fi;; | 
| Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 8643 | 	SCO_SV*) | 
 | 8644 | 		if test "$GCC" = "yes" | 
 | 8645 | 		then CCSHARED="-fPIC" | 
 | 8646 | 		else CCSHARED="-Kpic -belf" | 
 | 8647 | 		fi;; | 
| Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 8648 | 	IRIX*/6*)  case $CC in | 
 | 8649 | 		   *gcc*) CCSHARED="-shared";; | 
| Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 8650 | 		   *) CCSHARED="";; | 
| Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 8651 | 		   esac;; | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8652 | 	esac | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8653 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCSHARED" >&5 | 
 | 8655 | $as_echo "$CCSHARED" >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8656 | # LINKFORSHARED are the flags passed to the $(CC) command that links | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8657 | # the python executable -- this is only needed for a few systems | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8658 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKFORSHARED" >&5 | 
 | 8659 | $as_echo_n "checking LINKFORSHARED... " >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8660 | if test -z "$LINKFORSHARED" | 
 | 8661 | then | 
| Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 8662 | 	case $ac_sys_system/$ac_sys_release in | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 8663 | 	AIX*)	LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8664 | 	hp*|HP*) | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 8665 | 	    LINKFORSHARED="-Wl,-E -Wl,+s";; | 
 | 8666 | #	    LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; | 
| Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 8667 | 	BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8668 | 	Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8669 | 	# -u libsys_s pulls in all symbols in libsys | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8670 | 	Darwin/*) | 
| Benjamin Peterson | 9c80cac | 2009-05-23 16:34:23 +0000 | [diff] [blame] | 8671 | 		LINKFORSHARED="$extra_undefs -framework CoreFoundation" | 
| Łukasz Langa | 335ab5b | 2013-05-30 20:58:53 +0200 | [diff] [blame] | 8672 |  | 
 | 8673 | 		# Issue #18075: the default maximum stack size (8MBytes) is too | 
 | 8674 | 		# small for the default recursion limit. Increase the stack size | 
 | 8675 | 		# to ensure that tests don't crash | 
 | 8676 | 		LINKFORSHARED="-Wl,-stack_size,1000000 $LINKFORSHARED" | 
 | 8677 |  | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8678 | 		if test "$enable_framework" | 
 | 8679 | 		then | 
| Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 8680 | 			LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8681 | 		fi | 
| Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 8682 | 		LINKFORSHARED="$LINKFORSHARED";; | 
| Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 8683 | 	OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; | 
| Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 8684 | 	SCO_SV*) LINKFORSHARED="-Wl,-Bexport";; | 
| Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 8685 | 	ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; | 
| Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 8686 | 	FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) | 
| Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 8687 | 		if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] | 
 | 8688 | 		then | 
 | 8689 | 			LINKFORSHARED="-Wl,--export-dynamic" | 
 | 8690 | 		fi;; | 
| Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 8691 | 	SunOS/5*) case $CC in | 
 | 8692 | 		  *gcc*) | 
| Martin v. Löwis | a454857 | 2002-04-18 14:51:36 +0000 | [diff] [blame] | 8693 | 		    if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null | 
| Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 8694 | 		    then | 
 | 8695 | 			LINKFORSHARED="-Xlinker --export-dynamic" | 
| Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 8696 | 		    fi;; | 
 | 8697 | 		  esac;; | 
| Jason Tishler | 3076559 | 2003-09-04 11:04:06 +0000 | [diff] [blame] | 8698 | 	CYGWIN*) | 
 | 8699 | 		if test $enable_shared = "no" | 
 | 8700 | 		then | 
 | 8701 | 			LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)' | 
 | 8702 | 		fi;; | 
| Benjamin Peterson | de9c869 | 2008-07-01 18:23:09 +0000 | [diff] [blame] | 8703 | 	QNX*) | 
 | 8704 | 		# -Wl,-E causes the symbols to be added to the dynamic | 
 | 8705 | 		# symbol table so that they can be found when a module | 
 | 8706 | 		# is loaded.  -N 2048K causes the stack size to be set | 
 | 8707 | 		# to 2048 kilobytes so that the stack doesn't overflow | 
 | 8708 | 		# when running test_compile.py. | 
 | 8709 | 		LINKFORSHARED='-Wl,-E -N 2048K';; | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8710 | 	esac | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8711 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKFORSHARED" >&5 | 
 | 8713 | $as_echo "$LINKFORSHARED" >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8714 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8715 |  | 
| Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 8716 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8717 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGSFORSHARED" >&5 | 
 | 8718 | $as_echo_n "checking CFLAGSFORSHARED... " >&6; } | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 8719 | if test ! "$LIBRARY" = "$LDLIBRARY" | 
 | 8720 | then | 
| Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 +0000 | [diff] [blame] | 8721 | 	case $ac_sys_system in | 
 | 8722 | 	CYGWIN*) | 
 | 8723 | 		# Cygwin needs CCSHARED when building extension DLLs | 
 | 8724 | 		# but not when building the interpreter DLL. | 
 | 8725 | 		CFLAGSFORSHARED='';; | 
 | 8726 | 	*) | 
 | 8727 | 		CFLAGSFORSHARED='$(CCSHARED)' | 
 | 8728 | 	esac | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 8729 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLAGSFORSHARED" >&5 | 
 | 8731 | $as_echo "$CFLAGSFORSHARED" >&6; } | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 8732 |  | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 8733 | # SHLIBS are libraries (except -lc and -lm) to link to the python shared | 
 | 8734 | # library (with --enable-shared). | 
 | 8735 | # 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] | 8736 | # symbols, this must be set to $(LIBS) (expanded by make). We do this even | 
 | 8737 | # if it is not required, since it creates a dependency of the shared library | 
 | 8738 | # to LIBS. This, in turn, means that applications linking the shared libpython | 
 | 8739 | # don't need to link LIBS explicitly. The default should be only changed | 
 | 8740 | # on systems where this approach causes problems. | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 8741 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8742 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking SHLIBS" >&5 | 
 | 8743 | $as_echo_n "checking SHLIBS... " >&6; } | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 8744 | case "$ac_sys_system" in | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 8745 | 	*) | 
| Martin v. Löwis | d6359c5 | 2002-08-04 12:38:50 +0000 | [diff] [blame] | 8746 | 		SHLIBS='$(LIBS)';; | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 8747 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIBS" >&5 | 
 | 8749 | $as_echo "$SHLIBS" >&6; } | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 8750 |  | 
 | 8751 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8752 | # checks for libraries | 
| Georg Brandl | 941f956 | 2011-02-25 15:21:47 +0000 | [diff] [blame] | 8753 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendfile in -lsendfile" >&5 | 
 | 8754 | $as_echo_n "checking for sendfile in -lsendfile... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8755 | if ${ac_cv_lib_sendfile_sendfile+:} false; then : | 
| Georg Brandl | 941f956 | 2011-02-25 15:21:47 +0000 | [diff] [blame] | 8756 |   $as_echo_n "(cached) " >&6 | 
 | 8757 | else | 
 | 8758 |   ac_check_lib_save_LIBS=$LIBS | 
 | 8759 | LIBS="-lsendfile  $LIBS" | 
 | 8760 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 8761 | /* end confdefs.h.  */ | 
 | 8762 |  | 
 | 8763 | /* Override any GCC internal prototype to avoid an error. | 
 | 8764 |    Use char because int might match the return type of a GCC | 
 | 8765 |    builtin and then its argument prototype would still apply.  */ | 
 | 8766 | #ifdef __cplusplus | 
 | 8767 | extern "C" | 
 | 8768 | #endif | 
 | 8769 | char sendfile (); | 
 | 8770 | int | 
 | 8771 | main () | 
 | 8772 | { | 
 | 8773 | return sendfile (); | 
 | 8774 |   ; | 
 | 8775 |   return 0; | 
 | 8776 | } | 
 | 8777 | _ACEOF | 
 | 8778 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 8779 |   ac_cv_lib_sendfile_sendfile=yes | 
 | 8780 | else | 
 | 8781 |   ac_cv_lib_sendfile_sendfile=no | 
 | 8782 | fi | 
 | 8783 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 8784 |     conftest$ac_exeext conftest.$ac_ext | 
 | 8785 | LIBS=$ac_check_lib_save_LIBS | 
 | 8786 | fi | 
 | 8787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sendfile_sendfile" >&5 | 
 | 8788 | $as_echo "$ac_cv_lib_sendfile_sendfile" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8789 | if test "x$ac_cv_lib_sendfile_sendfile" = xyes; then : | 
| Georg Brandl | 941f956 | 2011-02-25 15:21:47 +0000 | [diff] [blame] | 8790 |   cat >>confdefs.h <<_ACEOF | 
 | 8791 | #define HAVE_LIBSENDFILE 1 | 
 | 8792 | _ACEOF | 
 | 8793 |  | 
 | 8794 |   LIBS="-lsendfile $LIBS" | 
 | 8795 |  | 
 | 8796 | fi | 
 | 8797 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8798 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | 
 | 8799 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8800 | if ${ac_cv_lib_dl_dlopen+:} false; 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="-ldl  $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 dlopen (); | 
| 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 dlopen (); | 
| 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_dl_dlopen=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_dl_dlopen=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 | 627b2d7 | 1993-12-24 10:39:16 +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_dl_dlopen" >&5 | 
 | 8833 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8834 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8835 |   cat >>confdefs.h <<_ACEOF | 
 | 8836 | #define HAVE_LIBDL 1 | 
 | 8837 | _ACEOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8838 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8839 |   LIBS="-ldl $LIBS" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 8840 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8841 | fi | 
 | 8842 | 	# Dynamic linking for SunOS/Solaris and SYSV | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8843 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | 
 | 8844 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8845 | if ${ac_cv_lib_dld_shl_load+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8846 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8847 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8848 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8849 | LIBS="-ldld  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8850 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8851 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8852 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8853 | /* Override any GCC internal prototype to avoid an error. | 
 | 8854 |    Use char because int might match the return type of a GCC | 
 | 8855 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8856 | #ifdef __cplusplus | 
 | 8857 | extern "C" | 
 | 8858 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8859 | char shl_load (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8860 | int | 
 | 8861 | main () | 
 | 8862 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8863 | return shl_load (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8864 |   ; | 
 | 8865 |   return 0; | 
 | 8866 | } | 
 | 8867 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8868 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8869 |   ac_cv_lib_dld_shl_load=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8870 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8871 |   ac_cv_lib_dld_shl_load=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8872 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8873 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 8874 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8875 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8876 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 | 
 | 8878 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8879 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8880 |   cat >>confdefs.h <<_ACEOF | 
 | 8881 | #define HAVE_LIBDLD 1 | 
 | 8882 | _ACEOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8883 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8884 |   LIBS="-ldld $LIBS" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8885 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8886 | fi | 
 | 8887 | 	# Dynamic linking for HP-UX | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 8888 |  | 
| Georg Brandl | b1441c7 | 2009-01-03 22:33:39 +0000 | [diff] [blame] | 8889 | # only check for sem_init if thread support is requested | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 8890 | if test "$with_threads" = "yes" -o -z "$with_threads"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8891 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5 | 
 | 8892 | $as_echo_n "checking for library containing sem_init... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8893 | if ${ac_cv_search_sem_init+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8894 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 8895 | else | 
| Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 8896 |   ac_func_search_save_LIBS=$LIBS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8897 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8898 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8899 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8900 | /* Override any GCC internal prototype to avoid an error. | 
 | 8901 |    Use char because int might match the return type of a GCC | 
 | 8902 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8903 | #ifdef __cplusplus | 
 | 8904 | extern "C" | 
 | 8905 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8906 | char sem_init (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8907 | int | 
 | 8908 | main () | 
 | 8909 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8910 | return sem_init (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8911 |   ; | 
 | 8912 |   return 0; | 
 | 8913 | } | 
 | 8914 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8915 | for ac_lib in '' pthread rt posix4; do | 
 | 8916 |   if test -z "$ac_lib"; then | 
 | 8917 |     ac_res="none required" | 
 | 8918 |   else | 
 | 8919 |     ac_res=-l$ac_lib | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 8920 |     LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8921 |   fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8922 |   if ac_fn_c_try_link "$LINENO"; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8923 |   ac_cv_search_sem_init=$ac_res | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8924 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8925 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 8926 |     conftest$ac_exeext | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8927 |   if ${ac_cv_search_sem_init+:} false; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8928 |   break | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 8929 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8930 | done | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8931 | if ${ac_cv_search_sem_init+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8932 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8933 | else | 
 | 8934 |   ac_cv_search_sem_init=no | 
 | 8935 | fi | 
 | 8936 | rm conftest.$ac_ext | 
| Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 8937 | LIBS=$ac_func_search_save_LIBS | 
 | 8938 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5 | 
 | 8940 | $as_echo "$ac_cv_search_sem_init" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8941 | ac_res=$ac_cv_search_sem_init | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8942 | if test "$ac_res" != no; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8943 |   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
| Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 8944 |  | 
| Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 8945 | fi | 
| Martin v. Löwis | d3545ec | 2003-05-03 11:25:43 +0000 | [diff] [blame] | 8946 |  # 'Real Time' functions on Solaris | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 8947 | 						# posix4 on Solaris 2.6 | 
 | 8948 | 						# pthread (first!) on Linux | 
 | 8949 | fi | 
 | 8950 |  | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8951 | # check if we need libintl for locale functions | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8952 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for textdomain in -lintl" >&5 | 
 | 8953 | $as_echo_n "checking for textdomain in -lintl... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8954 | if ${ac_cv_lib_intl_textdomain+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8955 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8956 | else | 
 | 8957 |   ac_check_lib_save_LIBS=$LIBS | 
 | 8958 | LIBS="-lintl  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8959 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8960 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8961 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8962 | /* Override any GCC internal prototype to avoid an error. | 
 | 8963 |    Use char because int might match the return type of a GCC | 
 | 8964 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8965 | #ifdef __cplusplus | 
 | 8966 | extern "C" | 
 | 8967 | #endif | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8968 | char textdomain (); | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8969 | int | 
 | 8970 | main () | 
 | 8971 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8972 | return textdomain (); | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8973 |   ; | 
 | 8974 |   return 0; | 
 | 8975 | } | 
 | 8976 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8977 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8978 |   ac_cv_lib_intl_textdomain=yes | 
 | 8979 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8980 |   ac_cv_lib_intl_textdomain=no | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8981 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8982 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 8983 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8984 | LIBS=$ac_check_lib_save_LIBS | 
 | 8985 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_textdomain" >&5 | 
 | 8987 | $as_echo "$ac_cv_lib_intl_textdomain" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8988 | if test "x$ac_cv_lib_intl_textdomain" = xyes; then : | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8989 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8990 | $as_echo "#define WITH_LIBINTL 1" >>confdefs.h | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8991 |  | 
| Brett Cannon | c6d936e | 2009-06-07 20:09:53 +0000 | [diff] [blame] | 8992 |         LIBS="-lintl $LIBS" | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8993 | fi | 
 | 8994 |  | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 8995 |  | 
 | 8996 | # checks for system dependent C++ extensions support | 
 | 8997 | case "$ac_sys_system" in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8998 | 	AIX*)	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for genuine AIX C++ extensions support" >&5 | 
 | 8999 | $as_echo_n "checking for genuine AIX C++ extensions support... " >&6; } | 
 | 9000 | 		cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9001 | /* end confdefs.h.  */ | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9002 |  | 
| Georg Brandl | 59e87bd | 2011-02-15 19:48:59 +0000 | [diff] [blame] | 9003 | 		  #include <load.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9004 | int | 
 | 9005 | main () | 
 | 9006 | { | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9007 | loadAndInit("", 0, "") | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9008 |   ; | 
 | 9009 |   return 0; | 
 | 9010 | } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9011 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9012 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9013 | if ac_fn_c_try_link "$LINENO"; then : | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9014 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9015 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9016 | $as_echo "#define AIX_GENUINE_CPLUSPLUS 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9017 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9018 | 		  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9019 | $as_echo "yes" >&6; } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9020 |  | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9021 | else | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9022 |  | 
 | 9023 | 		  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9024 | $as_echo "no" >&6; } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9025 |  | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9026 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9027 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 9028 |     conftest$ac_exeext conftest.$ac_ext;; | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9029 | 	*) ;; | 
 | 9030 | esac | 
 | 9031 |  | 
| Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 9032 | # check for systems that require aligned memory access | 
 | 9033 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking aligned memory access is required" >&5 | 
 | 9034 | $as_echo_n "checking aligned memory access is required... " >&6; } | 
 | 9035 | if test "$cross_compiling" = yes; then : | 
 | 9036 |   aligned_required=yes | 
 | 9037 | else | 
 | 9038 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 9039 | /* end confdefs.h.  */ | 
 | 9040 |  | 
 | 9041 | int main() | 
 | 9042 | { | 
 | 9043 |     char s[16]; | 
 | 9044 |     int i, *p1, *p2; | 
 | 9045 |     for (i=0; i < 16; i++) | 
 | 9046 |         s[i] = i; | 
 | 9047 |     p1 = (int*)(s+1); | 
 | 9048 |     p2 = (int*)(s+2); | 
 | 9049 |     if (*p1 == *p2) | 
 | 9050 |         return 1; | 
 | 9051 |     return 0; | 
 | 9052 | } | 
 | 9053 |  | 
 | 9054 | _ACEOF | 
 | 9055 | if ac_fn_c_try_run "$LINENO"; then : | 
 | 9056 |   aligned_required=no | 
 | 9057 | else | 
 | 9058 |   aligned_required=yes | 
 | 9059 | fi | 
 | 9060 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 9061 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
 | 9062 | fi | 
 | 9063 |  | 
 | 9064 |  | 
 | 9065 | if test "$aligned_required" = yes ; then | 
 | 9066 |  | 
 | 9067 | $as_echo "#define HAVE_ALIGNED_REQUIRED 1" >>confdefs.h | 
 | 9068 |  | 
 | 9069 | fi | 
 | 9070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aligned_required" >&5 | 
 | 9071 | $as_echo "$aligned_required" >&6; } | 
 | 9072 |  | 
 | 9073 |  | 
 | 9074 | # str, bytes and memoryview hash algorithm | 
 | 9075 |  | 
 | 9076 |  | 
 | 9077 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-hash-algorithm" >&5 | 
 | 9078 | $as_echo_n "checking for --with-hash-algorithm... " >&6; } | 
 | 9079 |  | 
 | 9080 | # Check whether --with-hash_algorithm was given. | 
 | 9081 | if test "${with_hash_algorithm+set}" = set; then : | 
 | 9082 |   withval=$with_hash_algorithm; | 
 | 9083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 | 
 | 9084 | $as_echo "$withval" >&6; } | 
 | 9085 | case "$withval" in | 
 | 9086 |     siphash24) | 
 | 9087 |         $as_echo "#define Py_HASH_ALGORITHM 1" >>confdefs.h | 
 | 9088 |  | 
 | 9089 |         ;; | 
 | 9090 |     fnv) | 
 | 9091 |         $as_echo "#define Py_HASH_ALGORITHM 2" >>confdefs.h | 
 | 9092 |  | 
 | 9093 |         ;; | 
 | 9094 |     *) | 
 | 9095 |         as_fn_error $? "unknown hash algorithm '$withval'" "$LINENO" 5 | 
 | 9096 |         ;; | 
 | 9097 | esac | 
 | 9098 |  | 
 | 9099 | else | 
 | 9100 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: default" >&5 | 
 | 9101 | $as_echo "default" >&6; } | 
 | 9102 | fi | 
 | 9103 |  | 
 | 9104 |  | 
| Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 9105 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9106 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_open in -lnsl" >&5 | 
 | 9107 | $as_echo_n "checking for t_open in -lnsl... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9108 | if ${ac_cv_lib_nsl_t_open+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9109 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9110 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9111 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9112 | LIBS="-lnsl  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9113 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9114 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9115 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9116 | /* Override any GCC internal prototype to avoid an error. | 
 | 9117 |    Use char because int might match the return type of a GCC | 
 | 9118 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9119 | #ifdef __cplusplus | 
 | 9120 | extern "C" | 
 | 9121 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9122 | char t_open (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9123 | int | 
 | 9124 | main () | 
 | 9125 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9126 | return t_open (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9127 |   ; | 
 | 9128 |   return 0; | 
 | 9129 | } | 
 | 9130 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9131 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9132 |   ac_cv_lib_nsl_t_open=yes | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9133 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9134 |   ac_cv_lib_nsl_t_open=no | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9135 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9136 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 9137 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9138 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9139 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_t_open" >&5 | 
 | 9141 | $as_echo "$ac_cv_lib_nsl_t_open" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9142 | if test "x$ac_cv_lib_nsl_t_open" = xyes; then : | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9143 |   LIBS="-lnsl $LIBS" | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9144 | fi | 
| Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 9145 |  # SVR4 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9146 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 | 
 | 9147 | $as_echo_n "checking for socket in -lsocket... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9148 | if ${ac_cv_lib_socket_socket+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9149 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9150 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9151 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9152 | LIBS="-lsocket $LIBS $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9153 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9154 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9155 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9156 | /* Override any GCC internal prototype to avoid an error. | 
 | 9157 |    Use char because int might match the return type of a GCC | 
 | 9158 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9159 | #ifdef __cplusplus | 
 | 9160 | extern "C" | 
 | 9161 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9162 | char socket (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9163 | int | 
 | 9164 | main () | 
 | 9165 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9166 | return socket (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9167 |   ; | 
 | 9168 |   return 0; | 
 | 9169 | } | 
 | 9170 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9171 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9172 |   ac_cv_lib_socket_socket=yes | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9173 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9174 |   ac_cv_lib_socket_socket=no | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9175 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9176 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 9177 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9178 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9179 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9180 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 | 
 | 9181 | $as_echo "$ac_cv_lib_socket_socket" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9182 | if test "x$ac_cv_lib_socket_socket" = xyes; then : | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9183 |   LIBS="-lsocket $LIBS" | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9184 | fi | 
 | 9185 |  # SVR4 sockets | 
| Skip Montanaro | b9949db | 2004-01-17 04:04:13 +0000 | [diff] [blame] | 9186 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9187 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libs" >&5 | 
 | 9188 | $as_echo_n "checking for --with-libs... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9189 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9190 | # Check whether --with-libs was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9191 | if test "${with_libs+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9192 |   withval=$with_libs; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 | 
 | 9194 | $as_echo "$withval" >&6; } | 
| Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 9195 | LIBS="$withval $LIBS" | 
 | 9196 |  | 
 | 9197 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9198 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 9199 | $as_echo "no" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9200 | fi | 
 | 9201 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 9202 |  | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 9203 | if test -n "$ac_tool_prefix"; then | 
| Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 9204 |   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | 
 | 9205 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9206 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 9207 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9208 | if ${ac_cv_path_PKG_CONFIG+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9209 |   $as_echo_n "(cached) " >&6 | 
| Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 9210 | else | 
 | 9211 |   case $PKG_CONFIG in | 
 | 9212 |   [\\/]* | ?:[\\/]*) | 
 | 9213 |   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | 
 | 9214 |   ;; | 
 | 9215 |   *) | 
 | 9216 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 9217 | for as_dir in $PATH | 
 | 9218 | do | 
 | 9219 |   IFS=$as_save_IFS | 
 | 9220 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9221 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 9222 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 9223 |     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9224 |     $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] | 9225 |     break 2 | 
 | 9226 |   fi | 
 | 9227 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9228 |   done | 
| Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 9229 | IFS=$as_save_IFS | 
 | 9230 |  | 
 | 9231 |   ;; | 
 | 9232 | esac | 
 | 9233 | fi | 
 | 9234 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | 
 | 9235 | if test -n "$PKG_CONFIG"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9236 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | 
 | 9237 | $as_echo "$PKG_CONFIG" >&6; } | 
| Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 9238 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9239 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 9240 | $as_echo "no" >&6; } | 
| Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 9241 | fi | 
 | 9242 |  | 
 | 9243 |  | 
 | 9244 | fi | 
 | 9245 | if test -z "$ac_cv_path_PKG_CONFIG"; then | 
 | 9246 |   ac_pt_PKG_CONFIG=$PKG_CONFIG | 
 | 9247 |   # Extract the first word of "pkg-config", so it can be a program name with args. | 
 | 9248 | set dummy pkg-config; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9249 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 9250 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9251 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9252 |   $as_echo_n "(cached) " >&6 | 
| Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 9253 | else | 
 | 9254 |   case $ac_pt_PKG_CONFIG in | 
 | 9255 |   [\\/]* | ?:[\\/]*) | 
 | 9256 |   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | 
 | 9257 |   ;; | 
 | 9258 |   *) | 
 | 9259 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 9260 | for as_dir in $PATH | 
 | 9261 | do | 
 | 9262 |   IFS=$as_save_IFS | 
 | 9263 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9264 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 9265 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 9266 |     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] | 9267 |     $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] | 9268 |     break 2 | 
 | 9269 |   fi | 
 | 9270 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9271 |   done | 
| Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 9272 | IFS=$as_save_IFS | 
 | 9273 |  | 
 | 9274 |   ;; | 
 | 9275 | esac | 
 | 9276 | fi | 
 | 9277 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | 
 | 9278 | if test -n "$ac_pt_PKG_CONFIG"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9279 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | 
 | 9280 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | 
| Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 9281 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9282 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 9283 | $as_echo "no" >&6; } | 
| Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 9284 | fi | 
 | 9285 |  | 
 | 9286 |   if test "x$ac_pt_PKG_CONFIG" = x; then | 
 | 9287 |     PKG_CONFIG="" | 
 | 9288 |   else | 
 | 9289 |     case $cross_compiling:$ac_tool_warned in | 
 | 9290 | yes:) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9291 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 9292 | $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] | 9293 | ac_tool_warned=yes ;; | 
 | 9294 | esac | 
 | 9295 |     PKG_CONFIG=$ac_pt_PKG_CONFIG | 
 | 9296 |   fi | 
 | 9297 | else | 
 | 9298 |   PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | 
 | 9299 | fi | 
 | 9300 |  | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 9301 |  | 
 | 9302 | # Check for use of the system expat library | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9303 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-expat" >&5 | 
 | 9304 | $as_echo_n "checking for --with-system-expat... " >&6; } | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 9305 |  | 
 | 9306 | # Check whether --with-system_expat was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9307 | if test "${with_system_expat+set}" = set; then : | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 9308 |   withval=$with_system_expat; | 
| Benjamin Peterson | 7926325 | 2010-10-31 16:50:44 +0000 | [diff] [blame] | 9309 | else | 
 | 9310 |   with_system_expat="no" | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 9311 | fi | 
 | 9312 |  | 
 | 9313 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_expat" >&5 | 
 | 9315 | $as_echo "$with_system_expat" >&6; } | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 9316 |  | 
 | 9317 | # Check for use of the system libffi library | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9318 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-ffi" >&5 | 
 | 9319 | $as_echo_n "checking for --with-system-ffi... " >&6; } | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 9320 |  | 
 | 9321 | # Check whether --with-system_ffi was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9322 | if test "${with_system_ffi+set}" = set; then : | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 9323 |   withval=$with_system_ffi; | 
| Benjamin Peterson | 7926325 | 2010-10-31 16:50:44 +0000 | [diff] [blame] | 9324 | else | 
 | 9325 |   with_system_ffi="no" | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 9326 | fi | 
 | 9327 |  | 
 | 9328 |  | 
 | 9329 | if test "$with_system_ffi" = "yes" && test -n "$PKG_CONFIG"; then | 
| Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 9330 |     LIBFFI_INCLUDEDIR="`"$PKG_CONFIG" libffi --cflags-only-I 2>/dev/null | sed -e 's/^-I//;s/ *$//'`" | 
 | 9331 | else | 
 | 9332 |     LIBFFI_INCLUDEDIR="" | 
 | 9333 | fi | 
 | 9334 |  | 
 | 9335 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_ffi" >&5 | 
 | 9337 | $as_echo "$with_system_ffi" >&6; } | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 9338 |  | 
| Stefan Krah | 60187b5 | 2012-03-23 19:06:27 +0100 | [diff] [blame] | 9339 | # Check for use of the system libmpdec library | 
 | 9340 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-libmpdec" >&5 | 
 | 9341 | $as_echo_n "checking for --with-system-libmpdec... " >&6; } | 
 | 9342 |  | 
 | 9343 | # Check whether --with-system_libmpdec was given. | 
 | 9344 | if test "${with_system_libmpdec+set}" = set; then : | 
 | 9345 |   withval=$with_system_libmpdec; | 
 | 9346 | else | 
 | 9347 |   with_system_libmpdec="no" | 
 | 9348 | fi | 
 | 9349 |  | 
 | 9350 |  | 
 | 9351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_libmpdec" >&5 | 
 | 9352 | $as_echo "$with_system_libmpdec" >&6; } | 
 | 9353 |  | 
| Benjamin Peterson | 076ed00 | 2010-10-31 17:11:02 +0000 | [diff] [blame] | 9354 | # Check for support for loadable sqlite extensions | 
 | 9355 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-loadable-sqlite-extensions" >&5 | 
 | 9356 | $as_echo_n "checking for --enable-loadable-sqlite-extensions... " >&6; } | 
 | 9357 | # Check whether --enable-loadable-sqlite-extensions was given. | 
 | 9358 | if test "${enable_loadable_sqlite_extensions+set}" = set; then : | 
 | 9359 |   enableval=$enable_loadable_sqlite_extensions; | 
 | 9360 | else | 
 | 9361 |   enable_loadable_sqlite_extensions="no" | 
 | 9362 | fi | 
 | 9363 |  | 
 | 9364 |  | 
 | 9365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_loadable_sqlite_extensions" >&5 | 
 | 9366 | $as_echo "$enable_loadable_sqlite_extensions" >&6; } | 
 | 9367 |  | 
| Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 9368 | # Check for --with-tcltk-includes=path and --with-tcltk-libs=path | 
 | 9369 |  | 
 | 9370 |  | 
 | 9371 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tcltk-includes" >&5 | 
 | 9372 | $as_echo_n "checking for --with-tcltk-includes... " >&6; } | 
 | 9373 |  | 
 | 9374 | # Check whether --with-tcltk-includes was given. | 
 | 9375 | if test "${with_tcltk_includes+set}" = set; then : | 
 | 9376 |   withval=$with_tcltk_includes; | 
 | 9377 | else | 
 | 9378 |   with_tcltk_includes="default" | 
 | 9379 | fi | 
 | 9380 |  | 
 | 9381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcltk_includes" >&5 | 
 | 9382 | $as_echo "$with_tcltk_includes" >&6; } | 
 | 9383 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tcltk-libs" >&5 | 
 | 9384 | $as_echo_n "checking for --with-tcltk-libs... " >&6; } | 
 | 9385 |  | 
 | 9386 | # Check whether --with-tcltk-libs was given. | 
 | 9387 | if test "${with_tcltk_libs+set}" = set; then : | 
 | 9388 |   withval=$with_tcltk_libs; | 
 | 9389 | else | 
 | 9390 |   with_tcltk_libs="default" | 
 | 9391 | fi | 
 | 9392 |  | 
 | 9393 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcltk_libs" >&5 | 
 | 9394 | $as_echo "$with_tcltk_libs" >&6; } | 
 | 9395 | if test "x$with_tcltk_includes" = xdefault || test "x$with_tcltk_libs" = xdefault | 
 | 9396 | then | 
 | 9397 |   if test "x$with_tcltk_includes" != "x$with_tcltk_libs" | 
 | 9398 |   then | 
 | 9399 |     as_fn_error $? "use both --with-tcltk-includes='...' and --with-tcltk-libs='...' or neither" "$LINENO" 5 | 
 | 9400 |   fi | 
 | 9401 |   TCLTK_INCLUDES="" | 
 | 9402 |   TCLTK_LIBS="" | 
 | 9403 | else | 
 | 9404 |   TCLTK_INCLUDES="$with_tcltk_includes" | 
 | 9405 |   TCLTK_LIBS="$with_tcltk_libs" | 
 | 9406 | fi | 
 | 9407 |  | 
| Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 9408 | # Check for --with-dbmliborder | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9409 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dbmliborder" >&5 | 
 | 9410 | $as_echo_n "checking for --with-dbmliborder... " >&6; } | 
| Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 9411 |  | 
 | 9412 | # Check whether --with-dbmliborder was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9413 | if test "${with_dbmliborder+set}" = set; then : | 
| Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 9414 |   withval=$with_dbmliborder; | 
 | 9415 | if test x$with_dbmliborder = xyes | 
 | 9416 | then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 9417 | as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5 | 
| Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 9418 | else | 
 | 9419 |   for db in `echo $with_dbmliborder | sed 's/:/ /g'`; do | 
 | 9420 |     if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb | 
 | 9421 |     then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 9422 |       as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5 | 
| Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 9423 |     fi | 
 | 9424 |   done | 
 | 9425 | fi | 
 | 9426 | fi | 
 | 9427 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_dbmliborder" >&5 | 
 | 9429 | $as_echo "$with_dbmliborder" >&6; } | 
| Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 9430 |  | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 9431 | # Determine if signalmodule should be used. | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 9432 |  | 
 | 9433 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9434 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-signal-module" >&5 | 
 | 9435 | $as_echo_n "checking for --with-signal-module... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9436 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9437 | # Check whether --with-signal-module was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9438 | if test "${with_signal_module+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9439 |   withval=$with_signal_module; | 
 | 9440 | fi | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 9441 |  | 
 | 9442 |  | 
 | 9443 | if test -z "$with_signal_module" | 
 | 9444 | then with_signal_module="yes" | 
 | 9445 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_signal_module" >&5 | 
 | 9447 | $as_echo "$with_signal_module" >&6; } | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 9448 |  | 
 | 9449 | if test "${with_signal_module}" = "yes"; then | 
 | 9450 | 	USE_SIGNAL_MODULE="" | 
 | 9451 | 	SIGNAL_OBJS="" | 
 | 9452 | else | 
 | 9453 | 	USE_SIGNAL_MODULE="#" | 
 | 9454 | 	SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o" | 
 | 9455 | fi | 
 | 9456 |  | 
| Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 9457 | # This is used to generate Setup.config | 
| Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 9458 |  | 
| Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9459 | USE_THREAD_MODULE="" | 
| Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 9460 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9461 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9462 |  | 
 | 9463 | # Templates for things AC_DEFINEd more than once. | 
 | 9464 | # For a single AC_DEFINE, no template is needed. | 
| Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9465 |  | 
 | 9466 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9467 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9468 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-threads" >&5 | 
 | 9469 | $as_echo_n "checking for --with-threads... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9470 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9471 | # Check whether --with-threads was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9472 | if test "${with_threads+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9473 |   withval=$with_threads; | 
 | 9474 | fi | 
| Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9475 |  | 
 | 9476 |  | 
| Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9477 | # --with-thread is deprecated, but check for it anyway | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9478 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9479 | # Check whether --with-thread was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9480 | if test "${with_thread+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9481 |   withval=$with_thread; with_threads=$with_thread | 
 | 9482 | fi | 
 | 9483 |  | 
| Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9484 |  | 
 | 9485 | if test -z "$with_threads" | 
 | 9486 | then with_threads="yes" | 
 | 9487 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_threads" >&5 | 
 | 9489 | $as_echo "$with_threads" >&6; } | 
| Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9490 |  | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9491 |  | 
| Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9492 | if test "$with_threads" = "no" | 
 | 9493 | then | 
 | 9494 |     USE_THREAD_MODULE="#" | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9495 | elif test "$ac_cv_pthread_is_default" = yes | 
 | 9496 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9497 |     $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9498 |  | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9499 |     # Defining _REENTRANT on system with POSIX threads should not hurt. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9500 |     $as_echo "#define _REENTRANT 1" >>confdefs.h | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9501 |  | 
 | 9502 |     posix_threads=yes | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9503 |     THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9504 | elif test "$ac_cv_kpthread" = "yes" | 
 | 9505 | then | 
 | 9506 |     CC="$CC -Kpthread" | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 9507 |     if test "$ac_cv_cxx_thread" = "yes"; then | 
 | 9508 |         CXX="$CXX -Kpthread" | 
 | 9509 |     fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9510 |     $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 9511 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 9512 |     posix_threads=yes | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9513 |     THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 9514 | elif test "$ac_cv_kthread" = "yes" | 
 | 9515 | then | 
 | 9516 |     CC="$CC -Kthread" | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 9517 |     if test "$ac_cv_cxx_thread" = "yes"; then | 
 | 9518 |         CXX="$CXX -Kthread" | 
 | 9519 |     fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9520 |     $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 9521 |  | 
 | 9522 |     posix_threads=yes | 
 | 9523 |     THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9524 | elif test "$ac_cv_pthread" = "yes" | 
 | 9525 | then | 
 | 9526 |     CC="$CC -pthread" | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 9527 |     if test "$ac_cv_cxx_thread" = "yes"; then | 
 | 9528 |         CXX="$CXX -pthread" | 
 | 9529 |     fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9530 |     $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9531 |  | 
 | 9532 |     posix_threads=yes | 
 | 9533 |     THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9534 | else | 
 | 9535 |     if test ! -z "$with_threads" -a -d "$with_threads" | 
 | 9536 |     then LDFLAGS="$LDFLAGS -L$with_threads" | 
 | 9537 |     fi | 
 | 9538 |     if test ! -z "$withval" -a -d "$withval" | 
 | 9539 |     then LDFLAGS="$LDFLAGS -L$withval" | 
 | 9540 |     fi | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9541 |  | 
 | 9542 |     # According to the POSIX spec, a pthreads implementation must | 
| Matthias Klose | a2542be | 2004-08-16 11:35:51 +0000 | [diff] [blame] | 9543 |     # define _POSIX_THREADS in unistd.h. Some apparently don't | 
 | 9544 |     # (e.g. gnu pth with pthread emulation) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9545 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _POSIX_THREADS in unistd.h" >&5 | 
 | 9546 | $as_echo_n "checking for _POSIX_THREADS in unistd.h... " >&6; } | 
 | 9547 |     cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9548 | /* end confdefs.h.  */ | 
| Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 9549 |  | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9550 | #include <unistd.h> | 
| Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 9551 | #ifdef _POSIX_THREADS | 
 | 9552 | yes | 
 | 9553 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9554 |  | 
 | 9555 | _ACEOF | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9556 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9557 |   $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9558 |   unistd_defines_pthreads=yes | 
 | 9559 | else | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9560 |   unistd_defines_pthreads=no | 
 | 9561 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 9562 | rm -f conftest* | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9563 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9564 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unistd_defines_pthreads" >&5 | 
 | 9565 | $as_echo "$unistd_defines_pthreads" >&6; } | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9566 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9567 |     $as_echo "#define _REENTRANT 1" >>confdefs.h | 
| Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 9568 |  | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 9569 |     # Just looking for pthread_create in libpthread is not enough: | 
 | 9570 |     # on HP/UX, pthread.h renames pthread_create to a different symbol name. | 
 | 9571 |     # So we really have to include pthread.h, and then link. | 
 | 9572 |     _libs=$LIBS | 
 | 9573 |     LIBS="$LIBS -lpthread" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9574 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 | 
 | 9575 | $as_echo_n "checking for pthread_create in -lpthread... " >&6; } | 
 | 9576 |     cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9577 | /* end confdefs.h.  */ | 
| Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 9578 |  | 
 | 9579 | #include <stdio.h> | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 9580 | #include <pthread.h> | 
| Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 9581 |  | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 9582 | void * start_routine (void *arg) { exit (0); } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9583 | int | 
 | 9584 | main () | 
 | 9585 | { | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 9586 |  | 
 | 9587 | pthread_create (NULL, NULL, start_routine, NULL) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9588 |   ; | 
 | 9589 |   return 0; | 
 | 9590 | } | 
 | 9591 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9592 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9593 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9594 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 9595 | $as_echo "yes" >&6; } | 
 | 9596 |     $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 9597 |  | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9598 |     posix_threads=yes | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9599 |     THREADOBJ="Python/thread.o" | 
| Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 9600 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9601 |  | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 9602 |     LIBS=$_libs | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9603 |     ac_fn_c_check_func "$LINENO" "pthread_detach" "ac_cv_func_pthread_detach" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9604 | if test "x$ac_cv_func_pthread_detach" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9605 |   $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9606 |  | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9607 |     posix_threads=yes | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9608 |     THREADOBJ="Python/thread.o" | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9609 | else | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9610 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9611 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5 | 
 | 9612 | $as_echo_n "checking for pthread_create in -lpthreads... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9613 | if ${ac_cv_lib_pthreads_pthread_create+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9614 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9615 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9616 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9617 | LIBS="-lpthreads  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9618 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9619 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9620 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9621 | /* Override any GCC internal prototype to avoid an error. | 
 | 9622 |    Use char because int might match the return type of a GCC | 
 | 9623 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9624 | #ifdef __cplusplus | 
 | 9625 | extern "C" | 
 | 9626 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9627 | char pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9628 | int | 
 | 9629 | main () | 
 | 9630 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9631 | return pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9632 |   ; | 
 | 9633 |   return 0; | 
 | 9634 | } | 
 | 9635 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9636 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9637 |   ac_cv_lib_pthreads_pthread_create=yes | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 9638 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9639 |   ac_cv_lib_pthreads_pthread_create=no | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 9640 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9641 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 9642 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9643 | LIBS=$ac_check_lib_save_LIBS | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 9644 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5 | 
 | 9646 | $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9647 | if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9648 |   $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 9649 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 9650 |     posix_threads=yes | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9651 |     LIBS="$LIBS -lpthreads" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9652 |     THREADOBJ="Python/thread.o" | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 9653 | else | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 9654 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9655 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5 | 
 | 9656 | $as_echo_n "checking for pthread_create in -lc_r... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9657 | if ${ac_cv_lib_c_r_pthread_create+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9658 |   $as_echo_n "(cached) " >&6 | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 9659 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9660 |   ac_check_lib_save_LIBS=$LIBS | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 9661 | LIBS="-lc_r  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9662 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9663 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9664 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9665 | /* Override any GCC internal prototype to avoid an error. | 
 | 9666 |    Use char because int might match the return type of a GCC | 
 | 9667 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9668 | #ifdef __cplusplus | 
 | 9669 | extern "C" | 
 | 9670 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9671 | char pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9672 | int | 
 | 9673 | main () | 
 | 9674 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9675 | return pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9676 |   ; | 
 | 9677 |   return 0; | 
 | 9678 | } | 
 | 9679 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9680 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9681 |   ac_cv_lib_c_r_pthread_create=yes | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 9682 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9683 |   ac_cv_lib_c_r_pthread_create=no | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 9684 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9685 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 9686 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9687 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 9688 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5 | 
 | 9690 | $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9691 | if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9692 |   $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 9693 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 9694 |     posix_threads=yes | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9695 |     LIBS="$LIBS -lc_r" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9696 |     THREADOBJ="Python/thread.o" | 
| Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 9697 | else | 
| Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 9698 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9699 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __pthread_create_system in -lpthread" >&5 | 
 | 9700 | $as_echo_n "checking for __pthread_create_system in -lpthread... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9701 | if ${ac_cv_lib_pthread___pthread_create_system+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9702 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 9703 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9704 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 9705 | LIBS="-lpthread  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9706 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9707 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9708 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 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.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9712 | #ifdef __cplusplus | 
 | 9713 | extern "C" | 
 | 9714 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9715 | char __pthread_create_system (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9716 | int | 
 | 9717 | main () | 
 | 9718 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9719 | return __pthread_create_system (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9720 |   ; | 
 | 9721 |   return 0; | 
 | 9722 | } | 
 | 9723 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9724 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9725 |   ac_cv_lib_pthread___pthread_create_system=yes | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 9726 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9727 |   ac_cv_lib_pthread___pthread_create_system=no | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 9728 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9729 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 9730 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9731 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 9732 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_create_system" >&5 | 
 | 9734 | $as_echo "$ac_cv_lib_pthread___pthread_create_system" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9735 | if test "x$ac_cv_lib_pthread___pthread_create_system" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9736 |   $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 9737 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 9738 |     posix_threads=yes | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9739 |     LIBS="$LIBS -lpthread" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9740 |     THREADOBJ="Python/thread.o" | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 9741 | else | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 9742 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9743 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lcma" >&5 | 
 | 9744 | $as_echo_n "checking for pthread_create in -lcma... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9745 | if ${ac_cv_lib_cma_pthread_create+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9746 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 9747 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9748 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 9749 | LIBS="-lcma  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9750 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9751 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9752 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9753 | /* Override any GCC internal prototype to avoid an error. | 
 | 9754 |    Use char because int might match the return type of a GCC | 
 | 9755 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9756 | #ifdef __cplusplus | 
 | 9757 | extern "C" | 
 | 9758 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9759 | char pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9760 | int | 
 | 9761 | main () | 
 | 9762 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9763 | return pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9764 |   ; | 
 | 9765 |   return 0; | 
 | 9766 | } | 
 | 9767 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9768 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9769 |   ac_cv_lib_cma_pthread_create=yes | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 9770 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9771 |   ac_cv_lib_cma_pthread_create=no | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 9772 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9773 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 9774 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9775 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 9776 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cma_pthread_create" >&5 | 
 | 9778 | $as_echo "$ac_cv_lib_cma_pthread_create" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9779 | if test "x$ac_cv_lib_cma_pthread_create" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9780 |   $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 9781 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 9782 |     posix_threads=yes | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9783 |     LIBS="$LIBS -lcma" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9784 |     THREADOBJ="Python/thread.o" | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 9785 | else | 
| Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 9786 |  | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9787 |     USE_THREAD_MODULE="#" | 
| Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 9788 | fi | 
 | 9789 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9790 |  | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9791 | fi | 
 | 9792 |  | 
| Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 9793 | fi | 
 | 9794 |  | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 9795 | fi | 
 | 9796 |  | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 9797 | fi | 
 | 9798 |  | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9799 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9800 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 9801 |     conftest$ac_exeext conftest.$ac_ext | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9802 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9803 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usconfig in -lmpc" >&5 | 
 | 9804 | $as_echo_n "checking for usconfig in -lmpc... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9805 | if ${ac_cv_lib_mpc_usconfig+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9806 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9807 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9808 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9809 | LIBS="-lmpc  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9810 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9811 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9812 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9813 | /* Override any GCC internal prototype to avoid an error. | 
 | 9814 |    Use char because int might match the return type of a GCC | 
 | 9815 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9816 | #ifdef __cplusplus | 
 | 9817 | extern "C" | 
 | 9818 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9819 | char usconfig (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9820 | int | 
 | 9821 | main () | 
 | 9822 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9823 | return usconfig (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9824 |   ; | 
 | 9825 |   return 0; | 
 | 9826 | } | 
 | 9827 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9828 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9829 |   ac_cv_lib_mpc_usconfig=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9830 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9831 |   ac_cv_lib_mpc_usconfig=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9832 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9833 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 9834 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9835 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9836 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpc_usconfig" >&5 | 
 | 9838 | $as_echo "$ac_cv_lib_mpc_usconfig" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9839 | if test "x$ac_cv_lib_mpc_usconfig" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9840 |   $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9841 |  | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9842 |     LIBS="$LIBS -lmpc" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9843 |     THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9844 |     USE_THREAD_MODULE="" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9845 | fi | 
 | 9846 |  | 
| Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 9847 |  | 
| Neal Norwitz | a978ab0 | 2002-11-02 16:58:05 +0000 | [diff] [blame] | 9848 |     if test "$posix_threads" != "yes"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9849 |       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5 | 
 | 9850 | $as_echo_n "checking for thr_create in -lthread... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9851 | if ${ac_cv_lib_thread_thr_create+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9852 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9853 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9854 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9855 | LIBS="-lthread  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9856 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9857 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9858 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9859 | /* Override any GCC internal prototype to avoid an error. | 
 | 9860 |    Use char because int might match the return type of a GCC | 
 | 9861 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9862 | #ifdef __cplusplus | 
 | 9863 | extern "C" | 
 | 9864 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9865 | char thr_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9866 | int | 
 | 9867 | main () | 
 | 9868 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9869 | return thr_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9870 |   ; | 
 | 9871 |   return 0; | 
 | 9872 | } | 
 | 9873 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9874 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9875 |   ac_cv_lib_thread_thr_create=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9876 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9877 |   ac_cv_lib_thread_thr_create=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9878 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9879 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 9880 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9881 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9882 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5 | 
 | 9884 | $as_echo "$ac_cv_lib_thread_thr_create" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9885 | if test "x$ac_cv_lib_thread_thr_create" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9886 |   $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9887 |  | 
| Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 9888 |       LIBS="$LIBS -lthread" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9889 |       THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 9890 |       USE_THREAD_MODULE="" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9891 | fi | 
 | 9892 |  | 
| Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 9893 |     fi | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9894 | fi | 
| Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 9895 |  | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9896 | if test "$posix_threads" = "yes"; then | 
 | 9897 |       if test "$unistd_defines_pthreads" = "no"; then | 
| Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 9898 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9899 | $as_echo "#define _POSIX_THREADS 1" >>confdefs.h | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9900 |  | 
 | 9901 |       fi | 
 | 9902 |  | 
 | 9903 |       # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8. | 
 | 9904 |       case  $ac_sys_system/$ac_sys_release in | 
| Charles-François Natali | 996f606 | 2011-07-21 19:45:31 +0200 | [diff] [blame] | 9905 |       SunOS/5.6) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9906 | $as_echo "#define HAVE_PTHREAD_DESTRUCTOR 1" >>confdefs.h | 
| Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 9907 |  | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9908 | 		       ;; | 
 | 9909 |       SunOS/5.8) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9910 | $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9911 |  | 
 | 9912 | 		       ;; | 
| Charles-François Natali | 996f606 | 2011-07-21 19:45:31 +0200 | [diff] [blame] | 9913 |       AIX/*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9914 | $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h | 
| Christian Heimes | 7b3ce6a | 2008-01-31 14:31:45 +0000 | [diff] [blame] | 9915 |  | 
 | 9916 | 		       ;; | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9917 |       esac | 
 | 9918 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9919 |       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 | 
 | 9920 | $as_echo_n "checking if PTHREAD_SCOPE_SYSTEM is supported... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9921 |       if ${ac_cv_pthread_system_supported+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9922 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9923 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9924 |   if test "$cross_compiling" = yes; then : | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9925 |   ac_cv_pthread_system_supported=no | 
 | 9926 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9927 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9928 | /* end confdefs.h.  */ | 
| Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 9929 |  | 
 | 9930 |       #include <stdio.h> | 
 | 9931 |       #include <pthread.h> | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9932 |       void *foo(void *parm) { | 
 | 9933 |         return NULL; | 
 | 9934 |       } | 
 | 9935 |       main() { | 
 | 9936 |         pthread_attr_t attr; | 
 | 9937 |         pthread_t id; | 
 | 9938 |         if (pthread_attr_init(&attr)) exit(-1); | 
 | 9939 |         if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1); | 
 | 9940 |         if (pthread_create(&id, &attr, foo, NULL)) exit(-1); | 
 | 9941 |         exit(0); | 
 | 9942 |       } | 
 | 9943 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9944 | if ac_fn_c_try_run "$LINENO"; then : | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9945 |   ac_cv_pthread_system_supported=yes | 
 | 9946 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9947 |   ac_cv_pthread_system_supported=no | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9948 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9949 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 9950 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9951 | fi | 
| Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 9952 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9953 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9954 | fi | 
 | 9955 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9956 |       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_system_supported" >&5 | 
 | 9957 | $as_echo "$ac_cv_pthread_system_supported" >&6; } | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9958 |       if test "$ac_cv_pthread_system_supported" = "yes"; then | 
 | 9959 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9960 | $as_echo "#define PTHREAD_SYSTEM_SCHED_SUPPORTED 1" >>confdefs.h | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9961 |  | 
 | 9962 |       fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9963 |       for ac_func in pthread_sigmask | 
 | 9964 | do : | 
 | 9965 |   ac_fn_c_check_func "$LINENO" "pthread_sigmask" "ac_cv_func_pthread_sigmask" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9966 | if test "x$ac_cv_func_pthread_sigmask" = xyes; then : | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9967 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9968 | #define HAVE_PTHREAD_SIGMASK 1 | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9969 | _ACEOF | 
| Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 9970 |  case $ac_sys_system in | 
 | 9971 |         CYGWIN*) | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9972 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9973 | $as_echo "#define HAVE_BROKEN_PTHREAD_SIGMASK 1" >>confdefs.h | 
| Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 9974 |  | 
 | 9975 |             ;; | 
 | 9976 |         esac | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9977 | fi | 
 | 9978 | done | 
 | 9979 |  | 
| Christian Heimes | f77b4b2 | 2013-08-21 13:26:05 +0200 | [diff] [blame] | 9980 |       for ac_func in pthread_atfork | 
 | 9981 | do : | 
 | 9982 |   ac_fn_c_check_func "$LINENO" "pthread_atfork" "ac_cv_func_pthread_atfork" | 
 | 9983 | if test "x$ac_cv_func_pthread_atfork" = xyes; then : | 
 | 9984 |   cat >>confdefs.h <<_ACEOF | 
 | 9985 | #define HAVE_PTHREAD_ATFORK 1 | 
 | 9986 | _ACEOF | 
 | 9987 |  | 
 | 9988 | fi | 
 | 9989 | done | 
 | 9990 |  | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9991 | fi | 
 | 9992 |  | 
 | 9993 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9994 | # Check for enable-ipv6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9995 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9996 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-ipv6 is specified" >&5 | 
 | 9997 | $as_echo_n "checking if --enable-ipv6 is specified... " >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9998 | # Check whether --enable-ipv6 was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9999 | if test "${enable_ipv6+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10000 |   enableval=$enable_ipv6;  case "$enableval" in | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10001 |   no) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10002 |        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10003 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10004 |        ipv6=no | 
 | 10005 |        ;; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10006 |   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 10007 | $as_echo "yes" >&6; } | 
 | 10008 |        $as_echo "#define ENABLE_IPV6 1" >>confdefs.h | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10009 |  | 
 | 10010 |        ipv6=yes | 
 | 10011 |        ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10012 |   esac | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10013 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10014 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10015 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10016 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10017 |  /* AF_INET6 available check */ | 
 | 10018 | #include <sys/types.h> | 
 | 10019 | #include <sys/socket.h> | 
| Charles-François Natali | f6fd794 | 2013-01-08 19:49:42 +0100 | [diff] [blame] | 10020 | int | 
 | 10021 | main () | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10022 | { | 
| Charles-François Natali | f6fd794 | 2013-01-08 19:49:42 +0100 | [diff] [blame] | 10023 | int domain = AF_INET6; | 
 | 10024 |   ; | 
 | 10025 |   return 0; | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10026 | } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10027 | _ACEOF | 
| Charles-François Natali | f6fd794 | 2013-01-08 19:49:42 +0100 | [diff] [blame] | 10028 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10029 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10030 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 10031 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10032 |   ipv6=yes | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10033 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10034 | else | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10035 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10036 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10037 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10038 |   ipv6=no | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10039 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10040 | fi | 
| Charles-François Natali | f6fd794 | 2013-01-08 19:49:42 +0100 | [diff] [blame] | 10041 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10042 |  | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10043 | if test "$ipv6" = "yes"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10044 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RFC2553 API is available" >&5 | 
 | 10045 | $as_echo_n "checking if RFC2553 API is available... " >&6; } | 
 | 10046 | 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10047 | /* end confdefs.h.  */ | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10048 |  | 
 | 10049 | 	  #include <sys/types.h> | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10050 | #include <netinet/in.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10051 | int | 
 | 10052 | main () | 
 | 10053 | { | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10054 | struct sockaddr_in6 x; | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10055 | 			    x.sin6_scope_id; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10056 |   ; | 
 | 10057 |   return 0; | 
 | 10058 | } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10059 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10060 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10061 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10062 |  | 
 | 10063 | 	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10064 | $as_echo "yes" >&6; } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10065 | 	  ipv6=yes | 
 | 10066 |  | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10067 | else | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10068 |  | 
 | 10069 | 	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10070 | $as_echo "no" >&6; } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10071 | 	  ipv6=no | 
 | 10072 |  | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10073 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10074 | 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] | 10075 | fi | 
 | 10076 |  | 
 | 10077 | if test "$ipv6" = "yes"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10078 | 	$as_echo "#define ENABLE_IPV6 1" >>confdefs.h | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10079 |  | 
 | 10080 | fi | 
 | 10081 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10082 | fi | 
 | 10083 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10084 |  | 
 | 10085 | ipv6type=unknown | 
 | 10086 | ipv6lib=none | 
 | 10087 | ipv6trylibc=no | 
 | 10088 |  | 
 | 10089 | if test "$ipv6" = "yes"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10090 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ipv6 stack type" >&5 | 
 | 10091 | $as_echo_n "checking ipv6 stack type... " >&6; } | 
| Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 10092 | 	for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; | 
 | 10093 | 	do | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10094 | 		case $i in | 
 | 10095 | 		inria) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10096 | 						cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10097 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10098 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10099 | #include <netinet/in.h> | 
 | 10100 | #ifdef IPV6_INRIA_VERSION | 
 | 10101 | yes | 
 | 10102 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10103 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10104 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10105 |   $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 10106 |   ipv6type=$i | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10107 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 10108 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10109 |  | 
 | 10110 | 			;; | 
 | 10111 | 		kame) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10112 | 						cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10113 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10114 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10115 | #include <netinet/in.h> | 
 | 10116 | #ifdef __KAME__ | 
 | 10117 | yes | 
 | 10118 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10119 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10120 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10121 |   $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10122 |   ipv6type=$i; | 
 | 10123 | 				ipv6lib=inet6 | 
 | 10124 | 				ipv6libdir=/usr/local/v6/lib | 
 | 10125 | 				ipv6trylibc=yes | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10126 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 10127 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10128 |  | 
 | 10129 | 			;; | 
 | 10130 | 		linux-glibc) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10131 | 						cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10132 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10133 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10134 | #include <features.h> | 
 | 10135 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) | 
 | 10136 | yes | 
 | 10137 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10138 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10139 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10140 |   $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10141 |   ipv6type=$i; | 
 | 10142 | 				ipv6trylibc=yes | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10143 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 10144 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10145 |  | 
 | 10146 | 			;; | 
 | 10147 | 		linux-inet6) | 
 | 10148 | 						if test -d /usr/inet6; then | 
 | 10149 | 				ipv6type=$i | 
 | 10150 | 				ipv6lib=inet6 | 
 | 10151 | 				ipv6libdir=/usr/inet6/lib | 
| Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 10152 | 				BASECFLAGS="-I/usr/inet6/include $BASECFLAGS" | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10153 | 			fi | 
 | 10154 | 			;; | 
 | 10155 | 		solaris) | 
 | 10156 | 			if test -f /etc/netconfig; then | 
| Antoine Pitrou | f3fcd9f | 2011-01-03 18:53:50 +0000 | [diff] [blame] | 10157 |                           if $GREP -q tcp6 /etc/netconfig; then | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10158 | 				ipv6type=$i | 
 | 10159 | 				ipv6trylibc=yes | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10160 |                           fi | 
 | 10161 |                         fi | 
 | 10162 | 			;; | 
 | 10163 | 		toshiba) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 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 | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10166 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10167 | #include <sys/param.h> | 
 | 10168 | #ifdef _TOSHIBA_INET6 | 
 | 10169 | yes | 
 | 10170 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10171 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10172 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10173 |   $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10174 |   ipv6type=$i; | 
 | 10175 | 				ipv6lib=inet6; | 
| Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 10176 | 				ipv6libdir=/usr/local/v6/lib | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10177 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 10178 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10179 |  | 
 | 10180 | 			;; | 
 | 10181 | 		v6d) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10182 | 			cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10183 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10184 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10185 | #include </usr/local/v6/include/sys/v6config.h> | 
 | 10186 | #ifdef __V6D__ | 
 | 10187 | yes | 
 | 10188 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10189 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10190 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10191 |   $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10192 |   ipv6type=$i; | 
 | 10193 | 				ipv6lib=v6; | 
 | 10194 | 				ipv6libdir=/usr/local/v6/lib; | 
| Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 10195 | 				BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS" | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10196 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 10197 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10198 |  | 
 | 10199 | 			;; | 
 | 10200 | 		zeta) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10201 | 			cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10202 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10203 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10204 | #include <sys/param.h> | 
 | 10205 | #ifdef _ZETA_MINAMI_INET6 | 
 | 10206 | yes | 
 | 10207 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10208 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10209 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10210 |   $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10211 |   ipv6type=$i; | 
 | 10212 | 				ipv6lib=inet6; | 
| Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 10213 | 				ipv6libdir=/usr/local/v6/lib | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10214 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 10215 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10216 |  | 
 | 10217 | 			;; | 
 | 10218 | 		esac | 
 | 10219 | 		if test "$ipv6type" != "unknown"; then | 
 | 10220 | 			break | 
 | 10221 | 		fi | 
 | 10222 | 	done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10223 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6type" >&5 | 
 | 10224 | $as_echo "$ipv6type" >&6; } | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10225 | fi | 
 | 10226 |  | 
 | 10227 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then | 
 | 10228 | 	if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then | 
 | 10229 | 		LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" | 
 | 10230 | 		echo "using lib$ipv6lib" | 
 | 10231 | 	else | 
 | 10232 | 		if test $ipv6trylibc = "yes"; then | 
 | 10233 | 			echo "using libc" | 
 | 10234 | 		else | 
 | 10235 | 			echo 'Fatal: no $ipv6lib library found.  cannot continue.' | 
 | 10236 | 			echo "You need to fetch lib$ipv6lib.a from appropriate" | 
 | 10237 | 			echo 'ipv6 kit and compile beforehand.' | 
 | 10238 | 			exit 1 | 
 | 10239 | 		fi | 
 | 10240 | 	fi | 
 | 10241 | fi | 
 | 10242 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10243 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSX 10.5 SDK or later" >&5 | 
 | 10244 | $as_echo_n "checking for OSX 10.5 SDK or later... " >&6; } | 
 | 10245 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 10246 | /* end confdefs.h.  */ | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10247 |  | 
 | 10248 |   #include <Carbon/Carbon.h> | 
| Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 10249 | int | 
 | 10250 | main () | 
 | 10251 | { | 
 | 10252 | FSIORefNum fRef = 0 | 
 | 10253 |   ; | 
 | 10254 |   return 0; | 
 | 10255 | } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10256 |  | 
| Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 10257 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10258 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 10259 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10260 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10261 | $as_echo "#define HAVE_OSX105_SDK 1" >>confdefs.h | 
| Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 10262 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10263 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 10264 | $as_echo "yes" >&6; } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10265 |  | 
| Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 10266 | else | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10267 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10268 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10269 | $as_echo "no" >&6; } | 
| Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 10270 |  | 
 | 10271 | fi | 
| Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 10272 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 10273 |  | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 10274 | # Check for --with-doc-strings | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10275 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-doc-strings" >&5 | 
 | 10276 | $as_echo_n "checking for --with-doc-strings... " >&6; } | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 10277 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10278 | # Check whether --with-doc-strings was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10279 | if test "${with_doc_strings+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10280 |   withval=$with_doc_strings; | 
 | 10281 | fi | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 10282 |  | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 10283 |  | 
 | 10284 | if test -z "$with_doc_strings" | 
 | 10285 | then with_doc_strings="yes" | 
 | 10286 | fi | 
 | 10287 | if test "$with_doc_strings" != "no" | 
 | 10288 | then | 
 | 10289 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10290 | $as_echo "#define WITH_DOC_STRINGS 1" >>confdefs.h | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 10291 |  | 
 | 10292 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_doc_strings" >&5 | 
 | 10294 | $as_echo "$with_doc_strings" >&6; } | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 10295 |  | 
| Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 10296 | # Check if eval loop should use timestamp counter profiling | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10297 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tsc" >&5 | 
 | 10298 | $as_echo_n "checking for --with-tsc... " >&6; } | 
| Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 10299 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10300 | # Check whether --with-tsc was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10301 | if test "${with_tsc+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10302 |   withval=$with_tsc; | 
| Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 10303 | if test "$withval" != no | 
 | 10304 | then | 
 | 10305 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10306 | $as_echo "#define WITH_TSC 1" >>confdefs.h | 
| Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 10307 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10308 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 10309 | $as_echo "yes" >&6; } | 
 | 10310 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10311 | $as_echo "no" >&6; } | 
| Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 10312 | fi | 
 | 10313 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10314 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10315 | $as_echo "no" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10316 | fi | 
 | 10317 |  | 
| Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 10318 |  | 
 | 10319 | # Check for Python-specific malloc support | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10320 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pymalloc" >&5 | 
 | 10321 | $as_echo_n "checking for --with-pymalloc... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10322 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10323 | # Check whether --with-pymalloc was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10324 | if test "${with_pymalloc+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10325 |   withval=$with_pymalloc; | 
 | 10326 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10327 |  | 
| Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 10328 |  | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 10329 | if test -z "$with_pymalloc" | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 10330 | then | 
 | 10331 |     with_pymalloc="yes" | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 10332 | fi | 
 | 10333 | if test "$with_pymalloc" != "no" | 
 | 10334 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10335 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10336 | $as_echo "#define WITH_PYMALLOC 1" >>confdefs.h | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 10337 |  | 
| doko@ubuntu.com | 9c7817e | 2012-06-30 17:05:13 +0200 | [diff] [blame] | 10338 |     ABIFLAGS="${ABIFLAGS}m" | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 10339 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pymalloc" >&5 | 
 | 10341 | $as_echo "$with_pymalloc" >&6; } | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 10342 |  | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 10343 | # Check for Valgrind support | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10344 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-valgrind" >&5 | 
 | 10345 | $as_echo_n "checking for --with-valgrind... " >&6; } | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 10346 |  | 
 | 10347 | # Check whether --with-valgrind was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10348 | if test "${with_valgrind+set}" = set; then : | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 10349 |   withval=$with_valgrind; | 
 | 10350 | else | 
 | 10351 |   with_valgrind=no | 
 | 10352 | fi | 
 | 10353 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_valgrind" >&5 | 
 | 10355 | $as_echo "$with_valgrind" >&6; } | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 10356 | if test "$with_valgrind" != no; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10357 |     ac_fn_c_check_header_mongrel "$LINENO" "valgrind/valgrind.h" "ac_cv_header_valgrind_valgrind_h" "$ac_includes_default" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10358 | if test "x$ac_cv_header_valgrind_valgrind_h" = xyes; then : | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 10359 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10360 | $as_echo "#define WITH_VALGRIND 1" >>confdefs.h | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 10361 |  | 
 | 10362 | else | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 10363 |   as_fn_error $? "Valgrind support requested but headers not available" "$LINENO" 5 | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 10364 |  | 
 | 10365 | fi | 
 | 10366 |  | 
 | 10367 |  | 
| Jeffrey Yasskin | 3937083 | 2010-05-03 19:29:34 +0000 | [diff] [blame] | 10368 |     OPT="-DDYNAMIC_ANNOTATIONS_ENABLED=1 $OPT" | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 10369 | fi | 
 | 10370 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10371 | # -I${DLINCLDIR} is added to the compile rule for importdl.o | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 10372 |  | 
| Guido van Rossum | 98935bf | 2001-09-05 19:13:16 +0000 | [diff] [blame] | 10373 | DLINCLDIR=. | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 10374 |  | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 10375 | # the dlopen() function means we might want to use dynload_shlib.o. some | 
 | 10376 | # 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] | 10377 | for ac_func in dlopen | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10378 | do : | 
 | 10379 |   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10380 | if test "x$ac_cv_func_dlopen" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10381 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10382 | #define HAVE_DLOPEN 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10383 | _ACEOF | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 10384 |  | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 10385 | fi | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 10386 | done | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 10387 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10388 |  | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 10389 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic | 
 | 10390 | # loading of modules. | 
 | 10391 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10392 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking DYNLOADFILE" >&5 | 
 | 10393 | $as_echo_n "checking DYNLOADFILE... " >&6; } | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 10394 | if test -z "$DYNLOADFILE" | 
 | 10395 | then | 
 | 10396 | 	case $ac_sys_system/$ac_sys_release in | 
| Martin v. Löwis | c19c5a6 | 2003-11-18 20:00:44 +0000 | [diff] [blame] | 10397 | 	AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c | 
 | 10398 | 	if test "$ac_cv_func_dlopen" = yes | 
 | 10399 | 	then DYNLOADFILE="dynload_shlib.o" | 
 | 10400 | 	else DYNLOADFILE="dynload_aix.o" | 
 | 10401 | 	fi | 
 | 10402 | 	;; | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 10403 | 	hp*|HP*) DYNLOADFILE="dynload_hpux.o";; | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 10404 | 	# Use dynload_next.c only on 10.2 and below, which don't have native dlopen() | 
 | 10405 | 	Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";; | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 10406 | 	*) | 
 | 10407 | 	# use dynload_shlib.c and dlopen() if we have it; otherwise stub | 
 | 10408 | 	# out any dynamic loading | 
 | 10409 | 	if test "$ac_cv_func_dlopen" = yes | 
 | 10410 | 	then DYNLOADFILE="dynload_shlib.o" | 
 | 10411 | 	else DYNLOADFILE="dynload_stub.o" | 
 | 10412 | 	fi | 
 | 10413 | 	;; | 
 | 10414 | 	esac | 
 | 10415 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DYNLOADFILE" >&5 | 
 | 10417 | $as_echo "$DYNLOADFILE" >&6; } | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 10418 | if test "$DYNLOADFILE" != "dynload_stub.o" | 
 | 10419 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10420 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10421 | $as_echo "#define HAVE_DYNAMIC_LOADING 1" >>confdefs.h | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 10422 |  | 
 | 10423 | fi | 
 | 10424 |  | 
| Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 10425 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python | 
 | 10426 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10427 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10428 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP_OBJS" >&5 | 
 | 10429 | $as_echo_n "checking MACHDEP_OBJS... " >&6; } | 
| Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 10430 | if test -z "$MACHDEP_OBJS" | 
 | 10431 | then | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10432 | 	MACHDEP_OBJS=$extra_machdep_objs | 
 | 10433 | else | 
 | 10434 | 	MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" | 
| Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 10435 | fi | 
| doko@ubuntu.com | 9c7817e | 2012-06-30 17:05:13 +0200 | [diff] [blame] | 10436 | if test -z "$MACHDEP_OBJS"; then | 
 | 10437 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | 
 | 10438 | $as_echo "none" >&6; } | 
 | 10439 | else | 
 | 10440 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACHDEP_OBJS" >&5 | 
 | 10441 | $as_echo "$MACHDEP_OBJS" >&6; } | 
 | 10442 | fi | 
| Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 10443 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10444 | # checks for library functions | 
| Antoine Pitrou | b1c5496 | 2010-10-14 15:05:38 +0000 | [diff] [blame] | 10445 | for ac_func in alarm accept4 setitimer getitimer bind_textdomain_codeset chown \ | 
| Victor Stinner | daf4555 | 2013-08-28 00:53:59 +0200 | [diff] [blame] | 10446 |  clock confstr ctermid dup3 execv faccessat fchmod fchmodat fchown fchownat \ | 
| Ross Lagerwall | 7807c35 | 2011-03-17 20:20:30 +0200 | [diff] [blame] | 10447 |  fexecve fdopendir fork fpathconf fstatat ftime ftruncate futimesat \ | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 10448 |  futimens futimes gai_strerror \ | 
 | 10449 |  getgrouplist getgroups getlogin getloadavg getpeername getpgid getpid \ | 
| Martin v. Löwis | 7aed61a | 2009-11-27 14:09:49 +0000 | [diff] [blame] | 10450 |  getpriority getresuid getresgid getpwent getspnam getspent getsid getwd \ | 
| Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 10451 |  if_nameindex \ | 
| Antoine Pitrou | f0effe6 | 2011-11-26 01:11:02 +0100 | [diff] [blame] | 10452 |  initgroups kill killpg lchmod lchown lockf linkat lstat lutimes mmap \ | 
 | 10453 |  memrchr mbrtowc mkdirat mkfifo \ | 
| Charles-François Natali | daafdd5 | 2011-05-29 20:07:40 +0200 | [diff] [blame] | 10454 |  mkfifoat mknod mknodat mktime mremap nice openat pathconf pause pipe2 plock poll \ | 
| Ross Lagerwall | 7807c35 | 2011-03-17 20:20:30 +0200 | [diff] [blame] | 10455 |  posix_fallocate posix_fadvise pread \ | 
| Victor Stinner | b3e7219 | 2011-05-08 01:46:11 +0200 | [diff] [blame] | 10456 |  pthread_init pthread_kill putenv pwrite readlink readlinkat readv realpath renameat \ | 
| Georg Brandl | 941f956 | 2011-02-25 15:21:47 +0000 | [diff] [blame] | 10457 |  select sem_open sem_timedwait sem_getvalue sem_unlink sendfile setegid seteuid \ | 
| Antoine Pitrou | 061cfb5 | 2011-02-28 22:25:22 +0000 | [diff] [blame] | 10458 |  setgid sethostname \ | 
| Giampaolo Rodolà | 18e8bcb | 2011-02-25 20:57:54 +0000 | [diff] [blame] | 10459 |  setlocale setregid setreuid setresuid setresgid setsid setpgid setpgrp setpriority setuid setvbuf \ | 
| Charles-François Natali | ea0d5fc | 2011-09-06 19:03:35 +0200 | [diff] [blame] | 10460 |  sched_get_priority_max sched_setaffinity sched_setscheduler sched_setparam \ | 
 | 10461 |  sched_rr_get_interval \ | 
| Ross Lagerwall | bc80822 | 2011-06-25 12:13:40 +0200 | [diff] [blame] | 10462 |  sigaction sigaltstack siginterrupt sigpending sigrelse \ | 
 | 10463 |  sigtimedwait sigwait sigwaitinfo snprintf strftime strlcpy symlinkat sync \ | 
| Michael W. Hudson | 34f20ea | 2002-05-27 15:08:24 +0000 | [diff] [blame] | 10464 |  sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ | 
| Ross Lagerwall | 7807c35 | 2011-03-17 20:20:30 +0200 | [diff] [blame] | 10465 |  truncate uname unlinkat unsetenv utimensat utimes waitid waitpid wait3 wait4 \ | 
| Victor Stinner | cd777ea | 2013-04-08 22:43:44 +0200 | [diff] [blame] | 10466 |  wcscoll wcsftime wcsxfrm wmemcmp writev _getpty | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10467 | do : | 
 | 10468 |   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
 | 10469 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 10470 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10471 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10472 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10473 | _ACEOF | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10474 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10475 | fi | 
 | 10476 | done | 
 | 10477 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10478 |  | 
| Gregory P. Smith | df300d5 | 2012-01-21 18:20:15 -0800 | [diff] [blame] | 10479 | ac_fn_c_check_decl "$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h> | 
 | 10480 |        #include <dirent.h> | 
 | 10481 | " | 
 | 10482 | if test "x$ac_cv_have_decl_dirfd" = xyes; then : | 
 | 10483 |  | 
 | 10484 | $as_echo "#define HAVE_DIRFD 1" >>confdefs.h | 
 | 10485 |  | 
 | 10486 | fi | 
 | 10487 |  | 
 | 10488 |  | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10489 | # For some functions, having a definition is not sufficient, since | 
 | 10490 | # we want to take their address. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10491 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chroot" >&5 | 
 | 10492 | $as_echo_n "checking for chroot... " >&6; } | 
 | 10493 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10494 | /* end confdefs.h.  */ | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10495 | #include <unistd.h> | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10496 | int | 
 | 10497 | main () | 
 | 10498 | { | 
 | 10499 | void *x=chroot | 
 | 10500 |   ; | 
 | 10501 |   return 0; | 
 | 10502 | } | 
 | 10503 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10504 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10505 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10506 | $as_echo "#define HAVE_CHROOT 1" >>confdefs.h | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10507 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10508 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10509 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10510 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10511 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10512 | $as_echo "no" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10513 |  | 
 | 10514 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10515 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10516 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for link" >&5 | 
 | 10517 | $as_echo_n "checking for link... " >&6; } | 
 | 10518 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10519 | /* end confdefs.h.  */ | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10520 | #include <unistd.h> | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10521 | int | 
 | 10522 | main () | 
 | 10523 | { | 
 | 10524 | void *x=link | 
 | 10525 |   ; | 
 | 10526 |   return 0; | 
 | 10527 | } | 
 | 10528 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10529 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10530 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10531 | $as_echo "#define HAVE_LINK 1" >>confdefs.h | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10532 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10533 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10534 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10535 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10536 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10537 | $as_echo "no" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10538 |  | 
 | 10539 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10540 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10541 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for symlink" >&5 | 
 | 10542 | $as_echo_n "checking for symlink... " >&6; } | 
 | 10543 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10544 | /* end confdefs.h.  */ | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10545 | #include <unistd.h> | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10546 | int | 
 | 10547 | main () | 
 | 10548 | { | 
 | 10549 | void *x=symlink | 
 | 10550 |   ; | 
 | 10551 |   return 0; | 
 | 10552 | } | 
 | 10553 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10554 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10555 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10556 | $as_echo "#define HAVE_SYMLINK 1" >>confdefs.h | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10557 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10558 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10559 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10560 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10561 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10562 | $as_echo "no" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10563 |  | 
 | 10564 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10565 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10566 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fchdir" >&5 | 
 | 10567 | $as_echo_n "checking for fchdir... " >&6; } | 
 | 10568 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10569 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 10570 | #include <unistd.h> | 
 | 10571 | int | 
 | 10572 | main () | 
 | 10573 | { | 
 | 10574 | void *x=fchdir | 
 | 10575 |   ; | 
 | 10576 |   return 0; | 
 | 10577 | } | 
 | 10578 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10579 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 10580 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10581 | $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 10582 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10583 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10584 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 10585 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10586 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10587 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 10588 |  | 
 | 10589 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10590 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10591 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fsync" >&5 | 
 | 10592 | $as_echo_n "checking for fsync... " >&6; } | 
 | 10593 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10594 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 10595 | #include <unistd.h> | 
 | 10596 | int | 
 | 10597 | main () | 
 | 10598 | { | 
 | 10599 | void *x=fsync | 
 | 10600 |   ; | 
 | 10601 |   return 0; | 
 | 10602 | } | 
 | 10603 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10604 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 10605 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10606 | $as_echo "#define HAVE_FSYNC 1" >>confdefs.h | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 10607 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10608 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10609 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 10610 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10611 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10612 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 10613 |  | 
 | 10614 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10615 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10616 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fdatasync" >&5 | 
 | 10617 | $as_echo_n "checking for fdatasync... " >&6; } | 
 | 10618 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10619 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 10620 | #include <unistd.h> | 
 | 10621 | int | 
 | 10622 | main () | 
 | 10623 | { | 
 | 10624 | void *x=fdatasync | 
 | 10625 |   ; | 
 | 10626 |   return 0; | 
 | 10627 | } | 
 | 10628 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10629 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 10630 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10631 | $as_echo "#define HAVE_FDATASYNC 1" >>confdefs.h | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 10632 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10633 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10634 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 10635 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10636 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10637 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 10638 |  | 
 | 10639 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10640 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10641 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll" >&5 | 
 | 10642 | $as_echo_n "checking for epoll... " >&6; } | 
 | 10643 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 10644 | /* end confdefs.h.  */ | 
 | 10645 | #include <sys/epoll.h> | 
 | 10646 | int | 
 | 10647 | main () | 
 | 10648 | { | 
 | 10649 | void *x=epoll_create | 
 | 10650 |   ; | 
 | 10651 |   return 0; | 
 | 10652 | } | 
 | 10653 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10654 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10655 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10656 | $as_echo "#define HAVE_EPOLL 1" >>confdefs.h | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 10657 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10658 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10659 | $as_echo "yes" >&6; } | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 10660 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10661 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10662 | $as_echo "no" >&6; } | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 10663 |  | 
 | 10664 | fi | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 10665 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Benjamin Peterson | 95c1662 | 2011-12-27 15:36:32 -0600 | [diff] [blame] | 10666 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll_create1" >&5 | 
 | 10667 | $as_echo_n "checking for epoll_create1... " >&6; } | 
 | 10668 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 10669 | /* end confdefs.h.  */ | 
 | 10670 | #include <sys/epoll.h> | 
 | 10671 | int | 
 | 10672 | main () | 
 | 10673 | { | 
 | 10674 | void *x=epoll_create1 | 
 | 10675 |   ; | 
 | 10676 |   return 0; | 
 | 10677 | } | 
 | 10678 | _ACEOF | 
 | 10679 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 10680 |  | 
 | 10681 | $as_echo "#define HAVE_EPOLL_CREATE1 1" >>confdefs.h | 
 | 10682 |  | 
 | 10683 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 10684 | $as_echo "yes" >&6; } | 
 | 10685 | else | 
 | 10686 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10687 | $as_echo "no" >&6; } | 
 | 10688 |  | 
 | 10689 | fi | 
 | 10690 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10691 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kqueue" >&5 | 
 | 10692 | $as_echo_n "checking for kqueue... " >&6; } | 
 | 10693 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 10694 | /* end confdefs.h.  */ | 
 | 10695 |  | 
 | 10696 | #include <sys/types.h> | 
 | 10697 | #include <sys/event.h> | 
 | 10698 |  | 
 | 10699 | int | 
 | 10700 | main () | 
 | 10701 | { | 
 | 10702 | int x=kqueue() | 
 | 10703 |   ; | 
 | 10704 |   return 0; | 
 | 10705 | } | 
 | 10706 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10707 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 10708 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10709 | $as_echo "#define HAVE_KQUEUE 1" >>confdefs.h | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 10710 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10711 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10712 | $as_echo "yes" >&6; } | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 10713 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10714 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10715 | $as_echo "no" >&6; } | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 10716 |  | 
 | 10717 | fi | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 10718 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Christian Heimes | b7bd5df | 2013-10-22 11:21:54 +0200 | [diff] [blame] | 10719 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prlimit" >&5 | 
 | 10720 | $as_echo_n "checking for prlimit... " >&6; } | 
 | 10721 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 10722 | /* end confdefs.h.  */ | 
 | 10723 |  | 
 | 10724 | #include <sys/time.h> | 
 | 10725 | #include <sys/resource.h> | 
 | 10726 |  | 
 | 10727 | int | 
 | 10728 | main () | 
 | 10729 | { | 
 | 10730 | void *x=prlimit | 
 | 10731 |   ; | 
 | 10732 |   return 0; | 
 | 10733 | } | 
 | 10734 | _ACEOF | 
 | 10735 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 10736 |  | 
 | 10737 | $as_echo "#define HAVE_PRLIMIT 1" >>confdefs.h | 
 | 10738 |  | 
 | 10739 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 10740 | $as_echo "yes" >&6; } | 
 | 10741 | else | 
 | 10742 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10743 | $as_echo "no" >&6; } | 
 | 10744 |  | 
 | 10745 | fi | 
 | 10746 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 10747 |  | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10748 | # On some systems (eg. FreeBSD 5), we would find a definition of the | 
 | 10749 | # functions ctermid_r, setgroups in the library, but no prototype | 
 | 10750 | # (e.g. because we use _XOPEN_SOURCE). See whether we can take their | 
 | 10751 | # address to avoid compiler warnings and potential miscompilations | 
 | 10752 | # because of the missing prototypes. | 
 | 10753 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10754 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctermid_r" >&5 | 
 | 10755 | $as_echo_n "checking for ctermid_r... " >&6; } | 
 | 10756 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10757 | /* end confdefs.h.  */ | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10758 |  | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10759 | #include <stdio.h> | 
 | 10760 |  | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10761 | int | 
 | 10762 | main () | 
 | 10763 | { | 
 | 10764 | void* p = ctermid_r | 
 | 10765 |   ; | 
 | 10766 |   return 0; | 
 | 10767 | } | 
 | 10768 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10769 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10770 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10771 | $as_echo "#define HAVE_CTERMID_R 1" >>confdefs.h | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10772 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10773 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10774 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10775 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10776 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10777 | $as_echo "no" >&6; } | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10778 |  | 
 | 10779 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10780 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 10781 |  | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 10782 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock declaration" >&5 | 
 | 10783 | $as_echo_n "checking for flock declaration... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10784 | if ${ac_cv_flock_decl+:} false; then : | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 10785 |   $as_echo_n "(cached) " >&6 | 
 | 10786 | else | 
 | 10787 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10788 | /* end confdefs.h.  */ | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 10789 | #include <sys/file.h> | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 10790 | int | 
 | 10791 | main () | 
 | 10792 | { | 
 | 10793 | void* p = flock | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 10794 |  | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 10795 |   ; | 
 | 10796 |   return 0; | 
 | 10797 | } | 
 | 10798 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10799 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 10800 |   ac_cv_flock_decl=yes | 
 | 10801 | else | 
 | 10802 |   ac_cv_flock_decl=no | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 10803 |  | 
 | 10804 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10805 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 10806 |  | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 10807 | fi | 
 | 10808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flock_decl" >&5 | 
 | 10809 | $as_echo "$ac_cv_flock_decl" >&6; } | 
 | 10810 | if test "x${ac_cv_flock_decl}" = xyes; then | 
 | 10811 |   for ac_func in flock | 
 | 10812 | do : | 
 | 10813 |   ac_fn_c_check_func "$LINENO" "flock" "ac_cv_func_flock" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10814 | if test "x$ac_cv_func_flock" = xyes; then : | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 10815 |   cat >>confdefs.h <<_ACEOF | 
 | 10816 | #define HAVE_FLOCK 1 | 
| Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 10817 | _ACEOF | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 10818 |  | 
| Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 10819 | else | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 10820 |   { $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] | 10821 | $as_echo_n "checking for flock in -lbsd... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10822 | if ${ac_cv_lib_bsd_flock+:} false; then : | 
| Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 10823 |   $as_echo_n "(cached) " >&6 | 
 | 10824 | else | 
 | 10825 |   ac_check_lib_save_LIBS=$LIBS | 
 | 10826 | LIBS="-lbsd  $LIBS" | 
 | 10827 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 10828 | /* end confdefs.h.  */ | 
 | 10829 |  | 
 | 10830 | /* Override any GCC internal prototype to avoid an error. | 
 | 10831 |    Use char because int might match the return type of a GCC | 
 | 10832 |    builtin and then its argument prototype would still apply.  */ | 
 | 10833 | #ifdef __cplusplus | 
 | 10834 | extern "C" | 
 | 10835 | #endif | 
 | 10836 | char flock (); | 
 | 10837 | int | 
 | 10838 | main () | 
 | 10839 | { | 
 | 10840 | return flock (); | 
 | 10841 |   ; | 
 | 10842 |   return 0; | 
 | 10843 | } | 
 | 10844 | _ACEOF | 
 | 10845 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 10846 |   ac_cv_lib_bsd_flock=yes | 
 | 10847 | else | 
 | 10848 |   ac_cv_lib_bsd_flock=no | 
 | 10849 | fi | 
 | 10850 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 10851 |     conftest$ac_exeext conftest.$ac_ext | 
 | 10852 | LIBS=$ac_check_lib_save_LIBS | 
 | 10853 | fi | 
 | 10854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_flock" >&5 | 
 | 10855 | $as_echo "$ac_cv_lib_bsd_flock" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10856 | if test "x$ac_cv_lib_bsd_flock" = xyes; then : | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 10857 |   $as_echo "#define HAVE_FLOCK 1" >>confdefs.h | 
| Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 10858 |  | 
 | 10859 |  | 
 | 10860 | $as_echo "#define FLOCK_NEEDS_LIBBSD 1" >>confdefs.h | 
 | 10861 |  | 
 | 10862 |  | 
 | 10863 | fi | 
 | 10864 |  | 
 | 10865 |  | 
 | 10866 | fi | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 10867 | done | 
 | 10868 |  | 
| Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 10869 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10870 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10871 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize" >&5 | 
 | 10872 | $as_echo_n "checking for getpagesize... " >&6; } | 
 | 10873 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10874 | /* end confdefs.h.  */ | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 10875 |  | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 10876 | #include <unistd.h> | 
 | 10877 |  | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 10878 | int | 
 | 10879 | main () | 
 | 10880 | { | 
 | 10881 | void* p = getpagesize | 
 | 10882 |   ; | 
 | 10883 |   return 0; | 
 | 10884 | } | 
 | 10885 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10886 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 10887 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10888 | $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 10889 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10890 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10891 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 10892 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10893 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10894 | $as_echo "no" >&6; } | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 10895 |  | 
 | 10896 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10897 | 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] | 10898 |  | 
| Victor Stinner | 984890f | 2011-11-24 13:53:38 +0100 | [diff] [blame] | 10899 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken unsetenv" >&5 | 
 | 10900 | $as_echo_n "checking for broken unsetenv... " >&6; } | 
 | 10901 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 10902 | /* end confdefs.h.  */ | 
 | 10903 |  | 
 | 10904 | #include <stdlib.h> | 
 | 10905 |  | 
 | 10906 | int | 
 | 10907 | main () | 
 | 10908 | { | 
 | 10909 | int res = unsetenv("DUMMY") | 
 | 10910 |   ; | 
 | 10911 |   return 0; | 
 | 10912 | } | 
 | 10913 | _ACEOF | 
 | 10914 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 10915 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10916 | $as_echo "no" >&6; } | 
 | 10917 | else | 
 | 10918 |  | 
 | 10919 | $as_echo "#define HAVE_BROKEN_UNSETENV 1" >>confdefs.h | 
 | 10920 |  | 
 | 10921 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 10922 | $as_echo "yes" >&6; } | 
 | 10923 |  | 
 | 10924 | fi | 
 | 10925 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 10926 |  | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10927 | for ac_prog in true | 
 | 10928 | do | 
 | 10929 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 10930 | set dummy $ac_prog; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10931 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 10932 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10933 | if ${ac_cv_prog_TRUE+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10934 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10935 | else | 
 | 10936 |   if test -n "$TRUE"; then | 
 | 10937 |   ac_cv_prog_TRUE="$TRUE" # Let the user override the test. | 
 | 10938 | else | 
 | 10939 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 10940 | for as_dir in $PATH | 
 | 10941 | do | 
 | 10942 |   IFS=$as_save_IFS | 
 | 10943 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10944 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 10945 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10946 |     ac_cv_prog_TRUE="$ac_prog" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10947 |     $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] | 10948 |     break 2 | 
 | 10949 |   fi | 
 | 10950 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10951 |   done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10952 | IFS=$as_save_IFS | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10953 |  | 
 | 10954 | fi | 
 | 10955 | fi | 
 | 10956 | TRUE=$ac_cv_prog_TRUE | 
 | 10957 | if test -n "$TRUE"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10958 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUE" >&5 | 
 | 10959 | $as_echo "$TRUE" >&6; } | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10960 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10961 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10962 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10963 | fi | 
 | 10964 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10965 |  | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10966 |   test -n "$TRUE" && break | 
 | 10967 | done | 
 | 10968 | test -n "$TRUE" || TRUE="/bin/true" | 
 | 10969 |  | 
 | 10970 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10971 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lc" >&5 | 
 | 10972 | $as_echo_n "checking for inet_aton in -lc... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10973 | if ${ac_cv_lib_c_inet_aton+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10974 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10975 | else | 
 | 10976 |   ac_check_lib_save_LIBS=$LIBS | 
 | 10977 | LIBS="-lc  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10978 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10979 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10980 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10981 | /* Override any GCC internal prototype to avoid an error. | 
 | 10982 |    Use char because int might match the return type of a GCC | 
 | 10983 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10984 | #ifdef __cplusplus | 
 | 10985 | extern "C" | 
 | 10986 | #endif | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10987 | char inet_aton (); | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10988 | int | 
 | 10989 | main () | 
 | 10990 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10991 | return inet_aton (); | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10992 |   ; | 
 | 10993 |   return 0; | 
 | 10994 | } | 
 | 10995 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10996 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10997 |   ac_cv_lib_c_inet_aton=yes | 
 | 10998 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10999 |   ac_cv_lib_c_inet_aton=no | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11000 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11001 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 11002 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11003 | LIBS=$ac_check_lib_save_LIBS | 
 | 11004 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_inet_aton" >&5 | 
 | 11006 | $as_echo "$ac_cv_lib_c_inet_aton" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11007 | if test "x$ac_cv_lib_c_inet_aton" = xyes; then : | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11008 |   $ac_cv_prog_TRUE | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11009 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11010 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5 | 
 | 11011 | $as_echo_n "checking for inet_aton in -lresolv... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11012 | if ${ac_cv_lib_resolv_inet_aton+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11013 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11014 | else | 
 | 11015 |   ac_check_lib_save_LIBS=$LIBS | 
 | 11016 | LIBS="-lresolv  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11017 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11018 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11019 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11020 | /* Override any GCC internal prototype to avoid an error. | 
 | 11021 |    Use char because int might match the return type of a GCC | 
 | 11022 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11023 | #ifdef __cplusplus | 
 | 11024 | extern "C" | 
 | 11025 | #endif | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11026 | char inet_aton (); | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11027 | int | 
 | 11028 | main () | 
 | 11029 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11030 | return inet_aton (); | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11031 |   ; | 
 | 11032 |   return 0; | 
 | 11033 | } | 
 | 11034 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11035 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11036 |   ac_cv_lib_resolv_inet_aton=yes | 
 | 11037 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11038 |   ac_cv_lib_resolv_inet_aton=no | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11039 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11040 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 11041 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11042 | LIBS=$ac_check_lib_save_LIBS | 
 | 11043 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11044 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5 | 
 | 11045 | $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11046 | if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then : | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11047 |   cat >>confdefs.h <<_ACEOF | 
 | 11048 | #define HAVE_LIBRESOLV 1 | 
 | 11049 | _ACEOF | 
 | 11050 |  | 
 | 11051 |   LIBS="-lresolv $LIBS" | 
 | 11052 |  | 
 | 11053 | fi | 
 | 11054 |  | 
 | 11055 |  | 
 | 11056 | fi | 
 | 11057 |  | 
 | 11058 |  | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11059 | # On Tru64, chflags seems to be present, but calling it will | 
 | 11060 | # exit Python | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11061 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chflags" >&5 | 
 | 11062 | $as_echo_n "checking for chflags... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11063 | if ${ac_cv_have_chflags+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11064 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11065 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11066 |   if test "$cross_compiling" = yes; then : | 
| Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 11067 |   ac_cv_have_chflags=cross | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11068 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11069 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11070 | /* end confdefs.h.  */ | 
| Ned Deily | 3eb67d5 | 2011-06-28 00:00:28 -0700 | [diff] [blame] | 11071 |  | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11072 | #include <sys/stat.h> | 
 | 11073 | #include <unistd.h> | 
 | 11074 | int main(int argc, char*argv[]) | 
 | 11075 | { | 
 | 11076 |   if(chflags(argv[0], 0) != 0) | 
 | 11077 |     return 1; | 
 | 11078 |   return 0; | 
 | 11079 | } | 
| Ned Deily | 3eb67d5 | 2011-06-28 00:00:28 -0700 | [diff] [blame] | 11080 |  | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11081 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11082 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11083 |   ac_cv_have_chflags=yes | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11084 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11085 |   ac_cv_have_chflags=no | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11086 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11087 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 11088 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 11089 | fi | 
 | 11090 |  | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11091 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11092 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_chflags" >&5 | 
 | 11094 | $as_echo "$ac_cv_have_chflags" >&6; } | 
| Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 11095 | if test "$ac_cv_have_chflags" = cross ; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11096 |   ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11097 | if test "x$ac_cv_func_chflags" = xyes; then : | 
| Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 11098 |   ac_cv_have_chflags="yes" | 
 | 11099 | else | 
 | 11100 |   ac_cv_have_chflags="no" | 
 | 11101 | fi | 
 | 11102 |  | 
 | 11103 | fi | 
 | 11104 | if test "$ac_cv_have_chflags" = yes ; then | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11105 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11106 | $as_echo "#define HAVE_CHFLAGS 1" >>confdefs.h | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11107 |  | 
 | 11108 | fi | 
 | 11109 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11110 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lchflags" >&5 | 
 | 11111 | $as_echo_n "checking for lchflags... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11112 | if ${ac_cv_have_lchflags+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11113 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11114 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11115 |   if test "$cross_compiling" = yes; then : | 
| Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 11116 |   ac_cv_have_lchflags=cross | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11117 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11118 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11119 | /* end confdefs.h.  */ | 
| Ned Deily | 3eb67d5 | 2011-06-28 00:00:28 -0700 | [diff] [blame] | 11120 |  | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11121 | #include <sys/stat.h> | 
 | 11122 | #include <unistd.h> | 
 | 11123 | int main(int argc, char*argv[]) | 
 | 11124 | { | 
 | 11125 |   if(lchflags(argv[0], 0) != 0) | 
 | 11126 |     return 1; | 
 | 11127 |   return 0; | 
 | 11128 | } | 
| Ned Deily | 3eb67d5 | 2011-06-28 00:00:28 -0700 | [diff] [blame] | 11129 |  | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11130 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11131 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11132 |   ac_cv_have_lchflags=yes | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11133 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11134 |   ac_cv_have_lchflags=no | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11135 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11136 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 11137 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11138 | fi | 
 | 11139 |  | 
 | 11140 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11141 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_lchflags" >&5 | 
 | 11143 | $as_echo "$ac_cv_have_lchflags" >&6; } | 
| Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 11144 | if test "$ac_cv_have_lchflags" = cross ; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11145 |   ac_fn_c_check_func "$LINENO" "lchflags" "ac_cv_func_lchflags" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11146 | if test "x$ac_cv_func_lchflags" = xyes; then : | 
| Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 11147 |   ac_cv_have_lchflags="yes" | 
 | 11148 | else | 
 | 11149 |   ac_cv_have_lchflags="no" | 
 | 11150 | fi | 
 | 11151 |  | 
 | 11152 | fi | 
 | 11153 | if test "$ac_cv_have_lchflags" = yes ; then | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11154 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11155 | $as_echo "#define HAVE_LCHFLAGS 1" >>confdefs.h | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11156 |  | 
 | 11157 | fi | 
 | 11158 |  | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11159 | case $ac_sys_system/$ac_sys_release in | 
 | 11160 | Darwin/*) | 
 | 11161 | 	_CUR_CFLAGS="${CFLAGS}" | 
 | 11162 | 	_CUR_LDFLAGS="${LDFLAGS}" | 
 | 11163 | 	CFLAGS="${CFLAGS} -Wl,-search_paths_first" | 
 | 11164 | 	LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib" | 
 | 11165 | 	;; | 
 | 11166 | esac | 
 | 11167 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11168 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5 | 
 | 11169 | $as_echo_n "checking for inflateCopy in -lz... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11170 | if ${ac_cv_lib_z_inflateCopy+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11171 |   $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11172 | else | 
 | 11173 |   ac_check_lib_save_LIBS=$LIBS | 
 | 11174 | LIBS="-lz  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11175 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11176 | /* end confdefs.h.  */ | 
 | 11177 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11178 | /* Override any GCC internal prototype to avoid an error. | 
 | 11179 |    Use char because int might match the return type of a GCC | 
 | 11180 |    builtin and then its argument prototype would still apply.  */ | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11181 | #ifdef __cplusplus | 
 | 11182 | extern "C" | 
 | 11183 | #endif | 
 | 11184 | char inflateCopy (); | 
 | 11185 | int | 
 | 11186 | main () | 
 | 11187 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11188 | return inflateCopy (); | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11189 |   ; | 
 | 11190 |   return 0; | 
 | 11191 | } | 
 | 11192 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11193 | if ac_fn_c_try_link "$LINENO"; then : | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11194 |   ac_cv_lib_z_inflateCopy=yes | 
 | 11195 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11196 |   ac_cv_lib_z_inflateCopy=no | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11197 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11198 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 11199 |     conftest$ac_exeext conftest.$ac_ext | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11200 | LIBS=$ac_check_lib_save_LIBS | 
 | 11201 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5 | 
 | 11203 | $as_echo "$ac_cv_lib_z_inflateCopy" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11204 | if test "x$ac_cv_lib_z_inflateCopy" = xyes; then : | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11205 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11206 | $as_echo "#define HAVE_ZLIB_COPY 1" >>confdefs.h | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11207 |  | 
 | 11208 | fi | 
 | 11209 |  | 
 | 11210 |  | 
 | 11211 | case $ac_sys_system/$ac_sys_release in | 
 | 11212 | Darwin/*) | 
 | 11213 | 	CFLAGS="${_CUR_CFLAGS}" | 
 | 11214 | 	LDFLAGS="${_CUR_LDFLAGS}" | 
 | 11215 | 	;; | 
 | 11216 | esac | 
 | 11217 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11218 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hstrerror" >&5 | 
 | 11219 | $as_echo_n "checking for hstrerror... " >&6; } | 
 | 11220 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11221 | /* end confdefs.h.  */ | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11222 |  | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11223 | #include <netdb.h> | 
 | 11224 |  | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11225 | int | 
 | 11226 | main () | 
 | 11227 | { | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11228 | void* p = hstrerror; hstrerror(0) | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11229 |   ; | 
 | 11230 |   return 0; | 
 | 11231 | } | 
 | 11232 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11233 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11234 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11235 | $as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11236 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11237 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11238 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11239 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11240 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11241 | $as_echo "no" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11242 |  | 
 | 11243 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11244 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 11245 |     conftest$ac_exeext conftest.$ac_ext | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11246 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11247 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton" >&5 | 
 | 11248 | $as_echo_n "checking for inet_aton... " >&6; } | 
 | 11249 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11250 | /* end confdefs.h.  */ | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11251 |  | 
| Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 11252 | #include <sys/types.h> | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11253 | #include <sys/socket.h> | 
 | 11254 | #include <netinet/in.h> | 
 | 11255 | #include <arpa/inet.h> | 
 | 11256 |  | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11257 | int | 
 | 11258 | main () | 
 | 11259 | { | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11260 | void* p = inet_aton;inet_aton(0,0) | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11261 |   ; | 
 | 11262 |   return 0; | 
 | 11263 | } | 
 | 11264 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11265 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11266 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11267 | $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11268 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11269 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11270 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11271 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11272 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11273 | $as_echo "no" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11274 |  | 
 | 11275 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11276 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 11277 |     conftest$ac_exeext conftest.$ac_ext | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11278 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11279 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_pton" >&5 | 
 | 11280 | $as_echo_n "checking for inet_pton... " >&6; } | 
 | 11281 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11282 | /* end confdefs.h.  */ | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11283 |  | 
| Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 11284 | #include <sys/types.h> | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11285 | #include <sys/socket.h> | 
 | 11286 | #include <netinet/in.h> | 
 | 11287 | #include <arpa/inet.h> | 
 | 11288 |  | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11289 | int | 
 | 11290 | main () | 
 | 11291 | { | 
 | 11292 | void* p = inet_pton | 
 | 11293 |   ; | 
 | 11294 |   return 0; | 
 | 11295 | } | 
 | 11296 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11297 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11298 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11299 | $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11300 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11301 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11302 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11303 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11304 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11305 | $as_echo "no" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11306 |  | 
 | 11307 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11308 | 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] | 11309 |  | 
| Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 11310 | # 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] | 11311 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setgroups" >&5 | 
 | 11312 | $as_echo_n "checking for setgroups... " >&6; } | 
 | 11313 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11314 | /* end confdefs.h.  */ | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11315 |  | 
| Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 11316 | #include <unistd.h> | 
| Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 11317 | #ifdef HAVE_GRP_H | 
 | 11318 | #include <grp.h> | 
 | 11319 | #endif | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11320 |  | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11321 | int | 
 | 11322 | main () | 
 | 11323 | { | 
 | 11324 | void* p = setgroups | 
 | 11325 |   ; | 
 | 11326 |   return 0; | 
 | 11327 | } | 
 | 11328 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11329 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11330 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11331 | $as_echo "#define HAVE_SETGROUPS 1" >>confdefs.h | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11332 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11333 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11334 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11335 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11336 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11337 | $as_echo "no" >&6; } | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11338 |  | 
 | 11339 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11340 | 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] | 11341 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11342 | # check for openpty and forkpty | 
 | 11343 |  | 
 | 11344 | for ac_func in openpty | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11345 | do : | 
 | 11346 |   ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11347 | if test "x$ac_cv_func_openpty" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11348 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11349 | #define HAVE_OPENPTY 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11350 | _ACEOF | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11351 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11352 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11353 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5 | 
 | 11354 | $as_echo_n "checking for openpty in -lutil... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11355 | if ${ac_cv_lib_util_openpty+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11356 |   $as_echo_n "(cached) " >&6 | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11357 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11358 |   ac_check_lib_save_LIBS=$LIBS | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11359 | LIBS="-lutil  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11360 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11361 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11362 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11363 | /* Override any GCC internal prototype to avoid an error. | 
 | 11364 |    Use char because int might match the return type of a GCC | 
 | 11365 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11366 | #ifdef __cplusplus | 
 | 11367 | extern "C" | 
 | 11368 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11369 | char openpty (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11370 | int | 
 | 11371 | main () | 
 | 11372 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11373 | return openpty (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11374 |   ; | 
 | 11375 |   return 0; | 
 | 11376 | } | 
 | 11377 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11378 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11379 |   ac_cv_lib_util_openpty=yes | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11380 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11381 |   ac_cv_lib_util_openpty=no | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11382 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11383 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 11384 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11385 | LIBS=$ac_check_lib_save_LIBS | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11386 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5 | 
 | 11388 | $as_echo "$ac_cv_lib_util_openpty" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11389 | if test "x$ac_cv_lib_util_openpty" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11390 |   $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11391 |  LIBS="$LIBS -lutil" | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11392 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11393 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lbsd" >&5 | 
 | 11394 | $as_echo_n "checking for openpty in -lbsd... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11395 | if ${ac_cv_lib_bsd_openpty+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11396 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11397 | else | 
 | 11398 |   ac_check_lib_save_LIBS=$LIBS | 
 | 11399 | LIBS="-lbsd  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11400 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11401 | /* end confdefs.h.  */ | 
 | 11402 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11403 | /* Override any GCC internal prototype to avoid an error. | 
 | 11404 |    Use char because int might match the return type of a GCC | 
 | 11405 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11406 | #ifdef __cplusplus | 
 | 11407 | extern "C" | 
 | 11408 | #endif | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11409 | char openpty (); | 
 | 11410 | int | 
 | 11411 | main () | 
 | 11412 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11413 | return openpty (); | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11414 |   ; | 
 | 11415 |   return 0; | 
 | 11416 | } | 
 | 11417 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11418 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11419 |   ac_cv_lib_bsd_openpty=yes | 
 | 11420 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11421 |   ac_cv_lib_bsd_openpty=no | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11422 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11423 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 11424 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11425 | LIBS=$ac_check_lib_save_LIBS | 
 | 11426 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_openpty" >&5 | 
 | 11428 | $as_echo "$ac_cv_lib_bsd_openpty" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11429 | if test "x$ac_cv_lib_bsd_openpty" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11430 |   $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11431 |  LIBS="$LIBS -lbsd" | 
 | 11432 | fi | 
 | 11433 |  | 
 | 11434 |  | 
 | 11435 | fi | 
 | 11436 |  | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11437 |  | 
 | 11438 | fi | 
 | 11439 | done | 
 | 11440 |  | 
 | 11441 | for ac_func in forkpty | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11442 | do : | 
 | 11443 |   ac_fn_c_check_func "$LINENO" "forkpty" "ac_cv_func_forkpty" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11444 | if test "x$ac_cv_func_forkpty" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11445 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11446 | #define HAVE_FORKPTY 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11447 | _ACEOF | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11448 |  | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11449 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11450 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lutil" >&5 | 
 | 11451 | $as_echo_n "checking for forkpty in -lutil... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11452 | if ${ac_cv_lib_util_forkpty+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11453 |   $as_echo_n "(cached) " >&6 | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11454 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11455 |   ac_check_lib_save_LIBS=$LIBS | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11456 | LIBS="-lutil  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11457 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11458 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11459 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11460 | /* Override any GCC internal prototype to avoid an error. | 
 | 11461 |    Use char because int might match the return type of a GCC | 
 | 11462 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11463 | #ifdef __cplusplus | 
 | 11464 | extern "C" | 
 | 11465 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11466 | char forkpty (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11467 | int | 
 | 11468 | main () | 
 | 11469 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11470 | return forkpty (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11471 |   ; | 
 | 11472 |   return 0; | 
 | 11473 | } | 
 | 11474 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11475 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11476 |   ac_cv_lib_util_forkpty=yes | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11477 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11478 |   ac_cv_lib_util_forkpty=no | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11479 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11480 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 11481 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11482 | LIBS=$ac_check_lib_save_LIBS | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11483 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_forkpty" >&5 | 
 | 11485 | $as_echo "$ac_cv_lib_util_forkpty" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11486 | if test "x$ac_cv_lib_util_forkpty" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11487 |   $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11488 |  LIBS="$LIBS -lutil" | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11489 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11490 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lbsd" >&5 | 
 | 11491 | $as_echo_n "checking for forkpty in -lbsd... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11492 | if ${ac_cv_lib_bsd_forkpty+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11493 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11494 | else | 
 | 11495 |   ac_check_lib_save_LIBS=$LIBS | 
 | 11496 | LIBS="-lbsd  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11497 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11498 | /* end confdefs.h.  */ | 
 | 11499 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11500 | /* Override any GCC internal prototype to avoid an error. | 
 | 11501 |    Use char because int might match the return type of a GCC | 
 | 11502 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11503 | #ifdef __cplusplus | 
 | 11504 | extern "C" | 
 | 11505 | #endif | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11506 | char forkpty (); | 
 | 11507 | int | 
 | 11508 | main () | 
 | 11509 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11510 | return forkpty (); | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11511 |   ; | 
 | 11512 |   return 0; | 
 | 11513 | } | 
 | 11514 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11515 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11516 |   ac_cv_lib_bsd_forkpty=yes | 
 | 11517 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11518 |   ac_cv_lib_bsd_forkpty=no | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11519 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11520 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 11521 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11522 | LIBS=$ac_check_lib_save_LIBS | 
 | 11523 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_forkpty" >&5 | 
 | 11525 | $as_echo "$ac_cv_lib_bsd_forkpty" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11526 | if test "x$ac_cv_lib_bsd_forkpty" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11527 |   $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11528 |  LIBS="$LIBS -lbsd" | 
 | 11529 | fi | 
 | 11530 |  | 
 | 11531 |  | 
 | 11532 | fi | 
 | 11533 |  | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11534 |  | 
 | 11535 | fi | 
 | 11536 | done | 
 | 11537 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 11538 |  | 
| Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 11539 | # Stuff for expat. | 
| Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 11540 | for ac_func in memmove | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11541 | do : | 
 | 11542 |   ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11543 | if test "x$ac_cv_func_memmove" = xyes; then : | 
| Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 11544 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11545 | #define HAVE_MEMMOVE 1 | 
| Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 11546 | _ACEOF | 
 | 11547 |  | 
 | 11548 | fi | 
 | 11549 | done | 
 | 11550 |  | 
 | 11551 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11552 | # check for long file support functions | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11553 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11554 | do : | 
 | 11555 |   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
 | 11556 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 11557 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11558 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11559 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11560 | _ACEOF | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11561 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11562 | fi | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11563 | done | 
 | 11564 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11565 |  | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 11566 | ac_fn_c_check_func "$LINENO" "dup2" "ac_cv_func_dup2" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11567 | if test "x$ac_cv_func_dup2" = xyes; then : | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 11568 |   $as_echo "#define HAVE_DUP2 1" >>confdefs.h | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11569 |  | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11570 | else | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11571 |   case " $LIBOBJS " in | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 11572 |   *" dup2.$ac_objext "* ) ;; | 
 | 11573 |   *) LIBOBJS="$LIBOBJS dup2.$ac_objext" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11574 |  ;; | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11575 | esac | 
 | 11576 |  | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11577 | fi | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 11578 |  | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 11579 | ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11580 | if test "x$ac_cv_func_strdup" = xyes; then : | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 11581 |   $as_echo "#define HAVE_STRDUP 1" >>confdefs.h | 
 | 11582 |  | 
 | 11583 | else | 
 | 11584 |   case " $LIBOBJS " in | 
 | 11585 |   *" strdup.$ac_objext "* ) ;; | 
 | 11586 |   *) LIBOBJS="$LIBOBJS strdup.$ac_objext" | 
 | 11587 |  ;; | 
 | 11588 | esac | 
 | 11589 |  | 
 | 11590 | fi | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11591 |  | 
 | 11592 |  | 
 | 11593 | for ac_func in getpgrp | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11594 | do : | 
 | 11595 |   ac_fn_c_check_func "$LINENO" "getpgrp" "ac_cv_func_getpgrp" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11596 | if test "x$ac_cv_func_getpgrp" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11597 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11598 | #define HAVE_GETPGRP 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11599 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11600 |  cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11601 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11602 | #include <unistd.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11603 | int | 
 | 11604 | main () | 
 | 11605 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11606 | getpgrp(0); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11607 |   ; | 
 | 11608 |   return 0; | 
 | 11609 | } | 
 | 11610 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11611 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11612 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11613 | $as_echo "#define GETPGRP_HAVE_ARG 1" >>confdefs.h | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11614 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11615 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11616 | 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] | 11617 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11618 | fi | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11619 | done | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11620 |  | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 11621 | for ac_func in setpgrp | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11622 | do : | 
 | 11623 |   ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11624 | if test "x$ac_cv_func_setpgrp" = xyes; then : | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 11625 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11626 | #define HAVE_SETPGRP 1 | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 11627 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11628 |  cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11629 | /* end confdefs.h.  */ | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 11630 | #include <unistd.h> | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 11631 | int | 
 | 11632 | main () | 
 | 11633 | { | 
 | 11634 | setpgrp(0,0); | 
 | 11635 |   ; | 
 | 11636 |   return 0; | 
 | 11637 | } | 
 | 11638 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11639 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11640 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11641 | $as_echo "#define SETPGRP_HAVE_ARG 1" >>confdefs.h | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11642 |  | 
| Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 11643 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11644 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 11645 |  | 
 | 11646 | fi | 
 | 11647 | done | 
| Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 11648 |  | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11649 | for ac_func in gettimeofday | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11650 | do : | 
 | 11651 |   ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11652 | if test "x$ac_cv_func_gettimeofday" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11653 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11654 | #define HAVE_GETTIMEOFDAY 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11655 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11656 |  cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11657 | /* end confdefs.h.  */ | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11658 | #include <sys/time.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11659 | int | 
 | 11660 | main () | 
 | 11661 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11662 | gettimeofday((struct timeval*)0,(struct timezone*)0); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11663 |   ; | 
 | 11664 |   return 0; | 
 | 11665 | } | 
 | 11666 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11667 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 11668 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11669 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11670 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11671 | $as_echo "#define GETTIMEOFDAY_NO_TZ 1" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11672 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11673 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11674 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11675 | 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] | 11676 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11677 | fi | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11678 | done | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11679 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11680 |  | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11681 | for ac_func in clock_gettime | 
 | 11682 | do : | 
 | 11683 |   ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" | 
 | 11684 | if test "x$ac_cv_func_clock_gettime" = xyes; then : | 
 | 11685 |   cat >>confdefs.h <<_ACEOF | 
 | 11686 | #define HAVE_CLOCK_GETTIME 1 | 
 | 11687 | _ACEOF | 
 | 11688 |  | 
 | 11689 | else | 
 | 11690 |  | 
 | 11691 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 | 
 | 11692 | $as_echo_n "checking for clock_gettime in -lrt... " >&6; } | 
 | 11693 | if ${ac_cv_lib_rt_clock_gettime+:} false; then : | 
 | 11694 |   $as_echo_n "(cached) " >&6 | 
 | 11695 | else | 
 | 11696 |   ac_check_lib_save_LIBS=$LIBS | 
 | 11697 | LIBS="-lrt  $LIBS" | 
 | 11698 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 11699 | /* end confdefs.h.  */ | 
 | 11700 |  | 
 | 11701 | /* Override any GCC internal prototype to avoid an error. | 
 | 11702 |    Use char because int might match the return type of a GCC | 
 | 11703 |    builtin and then its argument prototype would still apply.  */ | 
 | 11704 | #ifdef __cplusplus | 
 | 11705 | extern "C" | 
 | 11706 | #endif | 
 | 11707 | char clock_gettime (); | 
 | 11708 | int | 
 | 11709 | main () | 
 | 11710 | { | 
 | 11711 | return clock_gettime (); | 
 | 11712 |   ; | 
 | 11713 |   return 0; | 
 | 11714 | } | 
 | 11715 | _ACEOF | 
 | 11716 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 11717 |   ac_cv_lib_rt_clock_gettime=yes | 
 | 11718 | else | 
 | 11719 |   ac_cv_lib_rt_clock_gettime=no | 
 | 11720 | fi | 
 | 11721 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 11722 |     conftest$ac_exeext conftest.$ac_ext | 
 | 11723 | LIBS=$ac_check_lib_save_LIBS | 
 | 11724 | fi | 
 | 11725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 | 
 | 11726 | $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } | 
 | 11727 | if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then : | 
 | 11728 |  | 
 | 11729 |         $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h | 
 | 11730 |  | 
 | 11731 |  | 
 | 11732 | $as_echo "#define TIMEMODULE_LIB rt" >>confdefs.h | 
 | 11733 |  | 
 | 11734 |  | 
 | 11735 | fi | 
 | 11736 |  | 
 | 11737 |  | 
 | 11738 | fi | 
 | 11739 | done | 
 | 11740 |  | 
 | 11741 |  | 
 | 11742 | for ac_func in clock_getres | 
 | 11743 | do : | 
 | 11744 |   ac_fn_c_check_func "$LINENO" "clock_getres" "ac_cv_func_clock_getres" | 
 | 11745 | if test "x$ac_cv_func_clock_getres" = xyes; then : | 
 | 11746 |   cat >>confdefs.h <<_ACEOF | 
 | 11747 | #define HAVE_CLOCK_GETRES 1 | 
 | 11748 | _ACEOF | 
 | 11749 |  | 
 | 11750 | else | 
 | 11751 |  | 
 | 11752 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_getres in -lrt" >&5 | 
 | 11753 | $as_echo_n "checking for clock_getres in -lrt... " >&6; } | 
 | 11754 | if ${ac_cv_lib_rt_clock_getres+:} false; then : | 
 | 11755 |   $as_echo_n "(cached) " >&6 | 
 | 11756 | else | 
 | 11757 |   ac_check_lib_save_LIBS=$LIBS | 
 | 11758 | LIBS="-lrt  $LIBS" | 
 | 11759 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 11760 | /* end confdefs.h.  */ | 
 | 11761 |  | 
 | 11762 | /* Override any GCC internal prototype to avoid an error. | 
 | 11763 |    Use char because int might match the return type of a GCC | 
 | 11764 |    builtin and then its argument prototype would still apply.  */ | 
 | 11765 | #ifdef __cplusplus | 
 | 11766 | extern "C" | 
 | 11767 | #endif | 
 | 11768 | char clock_getres (); | 
 | 11769 | int | 
 | 11770 | main () | 
 | 11771 | { | 
 | 11772 | return clock_getres (); | 
 | 11773 |   ; | 
 | 11774 |   return 0; | 
 | 11775 | } | 
 | 11776 | _ACEOF | 
 | 11777 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 11778 |   ac_cv_lib_rt_clock_getres=yes | 
 | 11779 | else | 
 | 11780 |   ac_cv_lib_rt_clock_getres=no | 
 | 11781 | fi | 
 | 11782 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 11783 |     conftest$ac_exeext conftest.$ac_ext | 
 | 11784 | LIBS=$ac_check_lib_save_LIBS | 
 | 11785 | fi | 
 | 11786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_getres" >&5 | 
 | 11787 | $as_echo "$ac_cv_lib_rt_clock_getres" >&6; } | 
 | 11788 | if test "x$ac_cv_lib_rt_clock_getres" = xyes; then : | 
 | 11789 |  | 
 | 11790 |         $as_echo "#define HAVE_CLOCK_GETRES 1" >>confdefs.h | 
 | 11791 |  | 
 | 11792 |  | 
 | 11793 | fi | 
 | 11794 |  | 
 | 11795 |  | 
 | 11796 | fi | 
 | 11797 | done | 
 | 11798 |  | 
 | 11799 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11800 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for major" >&5 | 
 | 11801 | $as_echo_n "checking for major... " >&6; } | 
 | 11802 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11803 | /* end confdefs.h.  */ | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 11804 |  | 
| Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 11805 | #if defined(MAJOR_IN_MKDEV) | 
 | 11806 | #include <sys/mkdev.h> | 
 | 11807 | #elif defined(MAJOR_IN_SYSMACROS) | 
 | 11808 | #include <sys/sysmacros.h> | 
 | 11809 | #else | 
 | 11810 | #include <sys/types.h> | 
 | 11811 | #endif | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 11812 |  | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 11813 | int | 
 | 11814 | main () | 
 | 11815 | { | 
 | 11816 |  | 
 | 11817 |   makedev(major(0),minor(0)); | 
 | 11818 |  | 
 | 11819 |   ; | 
 | 11820 |   return 0; | 
 | 11821 | } | 
 | 11822 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11823 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 11824 |  | 
 | 11825 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11826 | $as_echo "#define HAVE_DEVICE_MACROS 1" >>confdefs.h | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 11827 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11828 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 11829 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 11830 |  | 
 | 11831 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11832 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11833 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11834 | $as_echo "no" >&6; } | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 11835 |  | 
 | 11836 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11837 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 11838 |     conftest$ac_exeext conftest.$ac_ext | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11839 |  | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 11840 | # 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] | 11841 | # for [no]getaddrinfo in netdb.h. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11842 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5 | 
 | 11843 | $as_echo_n "checking for getaddrinfo... " >&6; } | 
 | 11844 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11845 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 11846 |  | 
| Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 11847 | #include <sys/types.h> | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 11848 | #include <sys/socket.h> | 
 | 11849 | #include <netdb.h> | 
| Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 11850 | #include <stdio.h> | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11851 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11852 | int | 
 | 11853 | main () | 
 | 11854 | { | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 11855 | getaddrinfo(NULL, NULL, NULL, NULL); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 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_link "$LINENO"; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11861 |   have_getaddrinfo=yes | 
 | 11862 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11863 |   have_getaddrinfo=no | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11864 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11865 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 11866 |     conftest$ac_exeext conftest.$ac_ext | 
 | 11867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getaddrinfo" >&5 | 
 | 11868 | $as_echo "$have_getaddrinfo" >&6; } | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11869 | if test $have_getaddrinfo = yes | 
 | 11870 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11871 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking getaddrinfo bug" >&5 | 
 | 11872 | $as_echo_n "checking getaddrinfo bug... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11873 |   if ${ac_cv_buggy_getaddrinfo+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11874 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11875 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11876 |   if test "$cross_compiling" = yes; then : | 
| Matthias Klose | 9635013 | 2012-03-15 20:42:23 +0100 | [diff] [blame] | 11877 |  | 
 | 11878 | if test "${enable_ipv6+set}" = set; then | 
 | 11879 |   ac_cv_buggy_getaddrinfo="no -- configured with --(en|dis)able-ipv6" | 
 | 11880 | else | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11881 |   ac_cv_buggy_getaddrinfo=yes | 
| Matthias Klose | 9635013 | 2012-03-15 20:42:23 +0100 | [diff] [blame] | 11882 | fi | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11883 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11884 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11885 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11886 |  | 
| Stefan Krah | 19c2139 | 2012-11-22 23:47:32 +0100 | [diff] [blame] | 11887 | #include <stdio.h> | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11888 | #include <sys/types.h> | 
 | 11889 | #include <netdb.h> | 
 | 11890 | #include <string.h> | 
 | 11891 | #include <sys/socket.h> | 
 | 11892 | #include <netinet/in.h> | 
 | 11893 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11894 | int main() | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11895 | { | 
 | 11896 |   int passive, gaierr, inet4 = 0, inet6 = 0; | 
 | 11897 |   struct addrinfo hints, *ai, *aitop; | 
 | 11898 |   char straddr[INET6_ADDRSTRLEN], strport[16]; | 
 | 11899 |  | 
 | 11900 |   for (passive = 0; passive <= 1; passive++) { | 
 | 11901 |     memset(&hints, 0, sizeof(hints)); | 
 | 11902 |     hints.ai_family = AF_UNSPEC; | 
 | 11903 |     hints.ai_flags = passive ? AI_PASSIVE : 0; | 
 | 11904 |     hints.ai_socktype = SOCK_STREAM; | 
| Hye-Shik Chang | 54f9439 | 2004-04-14 07:55:31 +0000 | [diff] [blame] | 11905 |     hints.ai_protocol = IPPROTO_TCP; | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11906 |     if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { | 
 | 11907 |       (void)gai_strerror(gaierr); | 
 | 11908 |       goto bad; | 
 | 11909 |     } | 
 | 11910 |     for (ai = aitop; ai; ai = ai->ai_next) { | 
 | 11911 |       if (ai->ai_addr == NULL || | 
 | 11912 |           ai->ai_addrlen == 0 || | 
 | 11913 |           getnameinfo(ai->ai_addr, ai->ai_addrlen, | 
 | 11914 |                       straddr, sizeof(straddr), strport, sizeof(strport), | 
 | 11915 |                       NI_NUMERICHOST|NI_NUMERICSERV) != 0) { | 
 | 11916 |         goto bad; | 
 | 11917 |       } | 
 | 11918 |       switch (ai->ai_family) { | 
 | 11919 |       case AF_INET: | 
 | 11920 |         if (strcmp(strport, "54321") != 0) { | 
 | 11921 |           goto bad; | 
 | 11922 |         } | 
 | 11923 |         if (passive) { | 
 | 11924 |           if (strcmp(straddr, "0.0.0.0") != 0) { | 
 | 11925 |             goto bad; | 
 | 11926 |           } | 
 | 11927 |         } else { | 
 | 11928 |           if (strcmp(straddr, "127.0.0.1") != 0) { | 
 | 11929 |             goto bad; | 
 | 11930 |           } | 
 | 11931 |         } | 
 | 11932 |         inet4++; | 
 | 11933 |         break; | 
 | 11934 |       case AF_INET6: | 
 | 11935 |         if (strcmp(strport, "54321") != 0) { | 
 | 11936 |           goto bad; | 
 | 11937 |         } | 
 | 11938 |         if (passive) { | 
 | 11939 |           if (strcmp(straddr, "::") != 0) { | 
 | 11940 |             goto bad; | 
 | 11941 |           } | 
 | 11942 |         } else { | 
 | 11943 |           if (strcmp(straddr, "::1") != 0) { | 
 | 11944 |             goto bad; | 
 | 11945 |           } | 
 | 11946 |         } | 
 | 11947 |         inet6++; | 
 | 11948 |         break; | 
 | 11949 |       case AF_UNSPEC: | 
 | 11950 |         goto bad; | 
 | 11951 |         break; | 
 | 11952 |       default: | 
 | 11953 |         /* another family support? */ | 
 | 11954 |         break; | 
 | 11955 |       } | 
 | 11956 |     } | 
 | 11957 |   } | 
 | 11958 |  | 
 | 11959 |   if (!(inet4 == 0 || inet4 == 2)) | 
 | 11960 |     goto bad; | 
 | 11961 |   if (!(inet6 == 0 || inet6 == 2)) | 
 | 11962 |     goto bad; | 
 | 11963 |  | 
 | 11964 |   if (aitop) | 
 | 11965 |     freeaddrinfo(aitop); | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11966 |   return 0; | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11967 |  | 
 | 11968 |  bad: | 
 | 11969 |   if (aitop) | 
 | 11970 |     freeaddrinfo(aitop); | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11971 |   return 1; | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11972 | } | 
 | 11973 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11974 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11975 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11976 |   ac_cv_buggy_getaddrinfo=no | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11977 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11978 |   ac_cv_buggy_getaddrinfo=yes | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11979 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11980 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 11981 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11982 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11983 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11984 | fi | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11985 |  | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 11986 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11987 |  | 
| Benjamin Peterson | d4694ed | 2010-11-01 01:44:30 +0000 | [diff] [blame] | 11988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_buggy_getaddrinfo" >&5 | 
 | 11989 | $as_echo "$ac_cv_buggy_getaddrinfo" >&6; } | 
 | 11990 |  | 
| doko@ubuntu.com | 9c7817e | 2012-06-30 17:05:13 +0200 | [diff] [blame] | 11991 | if test $have_getaddrinfo = no || test "$ac_cv_buggy_getaddrinfo" = yes | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11992 | then | 
 | 11993 | 	if test $ipv6 = yes | 
 | 11994 | 	then | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11995 | 		echo 'Fatal: You must get working getaddrinfo() function.' | 
 | 11996 | 		echo '       or you can specify "--disable-ipv6"'. | 
 | 11997 | 		exit 1 | 
 | 11998 | 	fi | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 11999 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12000 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12001 | $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12002 |  | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12003 | fi | 
| Benjamin Peterson | d4694ed | 2010-11-01 01:44:30 +0000 | [diff] [blame] | 12004 |  | 
| Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 12005 | for ac_func in getnameinfo | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12006 | do : | 
 | 12007 |   ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12008 | if test "x$ac_cv_func_getnameinfo" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12009 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12010 | #define HAVE_GETNAMEINFO 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12011 | _ACEOF | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12012 |  | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12013 | fi | 
 | 12014 | done | 
 | 12015 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12016 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12017 | # checks for structures | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12018 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 | 
 | 12019 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12020 | if ${ac_cv_header_time+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12021 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12022 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12023 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12024 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12025 | #include <sys/types.h> | 
 | 12026 | #include <sys/time.h> | 
 | 12027 | #include <time.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12028 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12029 | int | 
 | 12030 | main () | 
 | 12031 | { | 
 | 12032 | if ((struct tm *) 0) | 
 | 12033 | return 0; | 
 | 12034 |   ; | 
 | 12035 |   return 0; | 
 | 12036 | } | 
 | 12037 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12038 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12039 |   ac_cv_header_time=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12040 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12041 |   ac_cv_header_time=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12042 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12043 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12044 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 | 
 | 12046 | $as_echo "$ac_cv_header_time" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12047 | if test $ac_cv_header_time = yes; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12048 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12049 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12050 |  | 
 | 12051 | fi | 
 | 12052 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12053 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 | 
 | 12054 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12055 | if ${ac_cv_struct_tm+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12056 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12057 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12058 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12059 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12060 | #include <sys/types.h> | 
 | 12061 | #include <time.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12062 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12063 | int | 
 | 12064 | main () | 
 | 12065 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12066 | struct tm tm; | 
 | 12067 | 				     int *p = &tm.tm_sec; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12068 | 				     return !p; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12069 |   ; | 
 | 12070 |   return 0; | 
 | 12071 | } | 
 | 12072 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12073 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12074 |   ac_cv_struct_tm=time.h | 
 | 12075 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12076 |   ac_cv_struct_tm=sys/time.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12077 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12078 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12079 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 | 
 | 12081 | $as_echo "$ac_cv_struct_tm" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12082 | if test $ac_cv_struct_tm = sys/time.h; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12083 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12084 | $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12085 |  | 
 | 12086 | fi | 
 | 12087 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12088 | 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] | 12089 | #include <$ac_cv_struct_tm> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12090 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12091 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12092 | if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12093 |  | 
 | 12094 | cat >>confdefs.h <<_ACEOF | 
 | 12095 | #define HAVE_STRUCT_TM_TM_ZONE 1 | 
 | 12096 | _ACEOF | 
 | 12097 |  | 
 | 12098 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12099 | fi | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12100 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12101 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then | 
 | 12102 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12103 | $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12104 |  | 
 | 12105 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12106 |   ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> | 
 | 12107 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12108 | if test "x$ac_cv_have_decl_tzname" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12109 |   ac_have_decl=1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12110 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12111 |   ac_have_decl=0 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12112 | fi | 
 | 12113 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12114 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12115 | #define HAVE_DECL_TZNAME $ac_have_decl | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12116 | _ACEOF | 
 | 12117 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12118 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 | 
 | 12119 | $as_echo_n "checking for tzname... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12120 | if ${ac_cv_var_tzname+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12121 |   $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12122 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12123 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12124 | /* end confdefs.h.  */ | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12125 | #include <time.h> | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12126 | #if !HAVE_DECL_TZNAME | 
 | 12127 | extern char *tzname[]; | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12128 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12129 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12130 | int | 
 | 12131 | main () | 
 | 12132 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12133 | return tzname[0][0]; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12134 |   ; | 
 | 12135 |   return 0; | 
 | 12136 | } | 
 | 12137 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12138 | if ac_fn_c_try_link "$LINENO"; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12139 |   ac_cv_var_tzname=yes | 
 | 12140 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12141 |   ac_cv_var_tzname=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12142 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12143 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 12144 |     conftest$ac_exeext conftest.$ac_ext | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12145 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 | 
 | 12147 | $as_echo "$ac_cv_var_tzname" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12148 |   if test $ac_cv_var_tzname = yes; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12149 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12150 | $as_echo "#define HAVE_TZNAME 1" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12151 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12152 |   fi | 
 | 12153 | fi | 
 | 12154 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12155 | ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12156 | if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12157 |  | 
 | 12158 | cat >>confdefs.h <<_ACEOF | 
 | 12159 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | 
 | 12160 | _ACEOF | 
 | 12161 |  | 
 | 12162 |  | 
| Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 12163 | fi | 
 | 12164 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12165 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12166 | if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then : | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 12167 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12168 | cat >>confdefs.h <<_ACEOF | 
 | 12169 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | 
 | 12170 | _ACEOF | 
 | 12171 |  | 
 | 12172 |  | 
| Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 12173 | fi | 
 | 12174 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12175 | ac_fn_c_check_member "$LINENO" "struct stat" "st_flags" "ac_cv_member_struct_stat_st_flags" "$ac_includes_default" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12176 | if test "x$ac_cv_member_struct_stat_st_flags" = xyes; then : | 
| Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 12177 |  | 
 | 12178 | cat >>confdefs.h <<_ACEOF | 
 | 12179 | #define HAVE_STRUCT_STAT_ST_FLAGS 1 | 
 | 12180 | _ACEOF | 
 | 12181 |  | 
 | 12182 |  | 
 | 12183 | fi | 
 | 12184 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12185 | ac_fn_c_check_member "$LINENO" "struct stat" "st_gen" "ac_cv_member_struct_stat_st_gen" "$ac_includes_default" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12186 | if test "x$ac_cv_member_struct_stat_st_gen" = xyes; then : | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 12187 |  | 
 | 12188 | cat >>confdefs.h <<_ACEOF | 
 | 12189 | #define HAVE_STRUCT_STAT_ST_GEN 1 | 
 | 12190 | _ACEOF | 
 | 12191 |  | 
 | 12192 |  | 
 | 12193 | fi | 
 | 12194 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12195 | ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "$ac_includes_default" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12196 | if test "x$ac_cv_member_struct_stat_st_birthtime" = xyes; then : | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 12197 |  | 
 | 12198 | cat >>confdefs.h <<_ACEOF | 
 | 12199 | #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1 | 
 | 12200 | _ACEOF | 
 | 12201 |  | 
 | 12202 |  | 
 | 12203 | fi | 
 | 12204 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12205 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12206 | if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then : | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 12207 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12208 | cat >>confdefs.h <<_ACEOF | 
 | 12209 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 | 
 | 12210 | _ACEOF | 
 | 12211 |  | 
 | 12212 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12213 | $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h | 
| Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 12214 |  | 
 | 12215 | else | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12216 |   case " $LIBOBJS " in | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12217 |   *" fileblocks.$ac_objext "* ) ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12218 |   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" | 
 | 12219 |  ;; | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12220 | esac | 
 | 12221 |  | 
| Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 12222 | fi | 
 | 12223 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12224 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12225 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12226 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for time.h that defines altzone" >&5 | 
 | 12227 | $as_echo_n "checking for time.h that defines altzone... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12228 | if ${ac_cv_header_time_altzone+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12229 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12230 | else | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 12231 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12232 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12233 | /* end confdefs.h.  */ | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12234 | #include <time.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12235 | int | 
 | 12236 | main () | 
 | 12237 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12238 | return altzone; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12239 |   ; | 
 | 12240 |   return 0; | 
 | 12241 | } | 
 | 12242 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12243 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12244 |   ac_cv_header_time_altzone=yes | 
 | 12245 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12246 |   ac_cv_header_time_altzone=no | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12247 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12248 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 12249 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12250 | fi | 
 | 12251 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time_altzone" >&5 | 
 | 12253 | $as_echo "$ac_cv_header_time_altzone" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12254 | if test $ac_cv_header_time_altzone = yes; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12255 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12256 | $as_echo "#define HAVE_ALTZONE 1" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12257 |  | 
 | 12258 | fi | 
 | 12259 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 12260 | was_it_defined=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12261 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be included" >&5 | 
 | 12262 | $as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; } | 
 | 12263 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12264 | /* end confdefs.h.  */ | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12265 |  | 
 | 12266 | #include <sys/types.h> | 
 | 12267 | #include <sys/select.h> | 
 | 12268 | #include <sys/time.h> | 
 | 12269 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12270 | int | 
 | 12271 | main () | 
 | 12272 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12273 | ; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12274 |   ; | 
 | 12275 |   return 0; | 
 | 12276 | } | 
 | 12277 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12278 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12279 |  | 
 | 12280 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12281 | $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] | 12282 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 12283 |   was_it_defined=yes | 
 | 12284 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12285 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12286 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5 | 
 | 12288 | $as_echo "$was_it_defined" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12289 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12290 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for addrinfo" >&5 | 
 | 12291 | $as_echo_n "checking for addrinfo... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12292 | if ${ac_cv_struct_addrinfo+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12293 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12294 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12295 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12296 | /* end confdefs.h.  */ | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 12297 | #include <netdb.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12298 | int | 
 | 12299 | main () | 
 | 12300 | { | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12301 | struct addrinfo a | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12302 |   ; | 
 | 12303 |   return 0; | 
 | 12304 | } | 
 | 12305 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12306 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12307 |   ac_cv_struct_addrinfo=yes | 
 | 12308 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12309 |   ac_cv_struct_addrinfo=no | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12310 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12311 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 12312 | fi | 
 | 12313 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_addrinfo" >&5 | 
 | 12315 | $as_echo "$ac_cv_struct_addrinfo" >&6; } | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12316 | if test $ac_cv_struct_addrinfo = yes; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12317 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12318 | $as_echo "#define HAVE_ADDRINFO 1" >>confdefs.h | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12319 |  | 
 | 12320 | fi | 
 | 12321 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12322 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage" >&5 | 
 | 12323 | $as_echo_n "checking for sockaddr_storage... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12324 | if ${ac_cv_struct_sockaddr_storage+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12325 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12326 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12327 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12328 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12329 |  | 
 | 12330 | #		include <sys/types.h> | 
 | 12331 | #		include <sys/socket.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12332 | int | 
 | 12333 | main () | 
 | 12334 | { | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12335 | struct sockaddr_storage s | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12336 |   ; | 
 | 12337 |   return 0; | 
 | 12338 | } | 
 | 12339 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12340 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12341 |   ac_cv_struct_sockaddr_storage=yes | 
 | 12342 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12343 |   ac_cv_struct_sockaddr_storage=no | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12344 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12345 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 12346 | fi | 
 | 12347 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_storage" >&5 | 
 | 12349 | $as_echo "$ac_cv_struct_sockaddr_storage" >&6; } | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12350 | if test $ac_cv_struct_sockaddr_storage = yes; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12351 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12352 | $as_echo "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12353 |  | 
 | 12354 | fi | 
 | 12355 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12356 | # checks for compiler characteristics | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12357 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12358 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5 | 
 | 12359 | $as_echo_n "checking whether char is unsigned... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12360 | if ${ac_cv_c_char_unsigned+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12361 |   $as_echo_n "(cached) " >&6 | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 12362 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12363 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12364 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12365 | $ac_includes_default | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12366 | int | 
 | 12367 | main () | 
 | 12368 | { | 
 | 12369 | static int test_array [1 - 2 * !(((char) -1) < 0)]; | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 12370 | test_array [0] = 0; | 
 | 12371 | return test_array [0]; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12372 |  | 
 | 12373 |   ; | 
 | 12374 |   return 0; | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12375 | } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12376 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12377 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12378 |   ac_cv_c_char_unsigned=no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12379 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12380 |   ac_cv_c_char_unsigned=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12381 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12382 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12383 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5 | 
 | 12385 | $as_echo "$ac_cv_c_char_unsigned" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12386 | if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12387 |   $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12388 |  | 
 | 12389 | fi | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12390 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12391 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 | 
 | 12392 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12393 | if ${ac_cv_c_const+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12394 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12395 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12396 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12397 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12398 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12399 | int | 
 | 12400 | main () | 
 | 12401 | { | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 12402 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12403 | #ifndef __cplusplus | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 12404 |   /* Ultrix mips cc rejects this sort of thing.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12405 |   typedef int charset[2]; | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 12406 |   const charset cs = { 0, 0 }; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12407 |   /* SunOS 4.1.1 cc rejects this.  */ | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12408 |   char const *const *pcpcc; | 
 | 12409 |   char **ppc; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12410 |   /* NEC SVR4.0.2 mips cc rejects this.  */ | 
 | 12411 |   struct point {int x, y;}; | 
 | 12412 |   static struct point const zero = {0,0}; | 
 | 12413 |   /* AIX XL C 1.02.0.0 rejects this. | 
 | 12414 |      It does not let you subtract one const X* pointer from another in | 
 | 12415 |      an arm of an if-expression whose if-part is not a constant | 
 | 12416 |      expression */ | 
 | 12417 |   const char *g = "string"; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12418 |   pcpcc = &g + (g ? g-g : 0); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12419 |   /* HPUX 7.0 cc rejects these. */ | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12420 |   ++pcpcc; | 
 | 12421 |   ppc = (char**) pcpcc; | 
 | 12422 |   pcpcc = (char const *const *) ppc; | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 12423 |   { /* SCO 3.2v4 cc rejects this sort of thing.  */ | 
 | 12424 |     char tx; | 
 | 12425 |     char *t = &tx; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12426 |     char const *s = 0 ? (char *) 0 : (char const *) 0; | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12427 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12428 |     *t++ = 0; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12429 |     if (s) return 0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12430 |   } | 
 | 12431 |   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */ | 
 | 12432 |     int x[] = {25, 17}; | 
 | 12433 |     const int *foo = &x[0]; | 
 | 12434 |     ++foo; | 
 | 12435 |   } | 
 | 12436 |   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | 
 | 12437 |     typedef const int *iptr; | 
 | 12438 |     iptr p = 0; | 
 | 12439 |     ++p; | 
 | 12440 |   } | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 12441 |   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12442 |        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 12443 |     struct s { int j; const int *ap[3]; } bx; | 
 | 12444 |     struct s *b = &bx; b->j = 5; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12445 |   } | 
 | 12446 |   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | 
 | 12447 |     const int foo = 10; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12448 |     if (!foo) return 0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12449 |   } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12450 |   return !cs[0] && !zero.x; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12451 | #endif | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12452 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12453 |   ; | 
 | 12454 |   return 0; | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12455 | } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12456 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12457 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12458 |   ac_cv_c_const=yes | 
 | 12459 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12460 |   ac_cv_c_const=no | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12461 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12462 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12463 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 | 
 | 12465 | $as_echo "$ac_cv_c_const" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12466 | if test $ac_cv_c_const = no; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12467 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12468 | $as_echo "#define const /**/" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12469 |  | 
 | 12470 | fi | 
 | 12471 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12472 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 12473 | works=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12474 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 | 
 | 12475 | $as_echo_n "checking for working volatile... " >&6; } | 
 | 12476 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12477 | /* end confdefs.h.  */ | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12478 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12479 | int | 
 | 12480 | main () | 
 | 12481 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12482 | volatile int x; x = 0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12483 |   ; | 
 | 12484 |   return 0; | 
 | 12485 | } | 
 | 12486 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12487 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 12488 |   works=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12489 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12490 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12491 | $as_echo "#define volatile /**/" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12492 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 12493 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12494 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12495 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 | 
 | 12497 | $as_echo "$works" >&6; } | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12498 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 12499 | works=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12500 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working signed char" >&5 | 
 | 12501 | $as_echo_n "checking for working signed char... " >&6; } | 
 | 12502 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12503 | /* end confdefs.h.  */ | 
| Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 12504 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12505 | int | 
 | 12506 | main () | 
 | 12507 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12508 | signed char c; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12509 |   ; | 
 | 12510 |   return 0; | 
 | 12511 | } | 
 | 12512 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12513 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 12514 |   works=yes | 
| Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 12515 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12516 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12517 | $as_echo "#define signed /**/" >>confdefs.h | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12518 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 12519 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12520 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12521 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 | 
 | 12523 | $as_echo "$works" >&6; } | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12524 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 12525 | have_prototypes=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12526 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prototypes" >&5 | 
 | 12527 | $as_echo_n "checking for prototypes... " >&6; } | 
 | 12528 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12529 | /* end confdefs.h.  */ | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12530 | int foo(int x) { return 0; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12531 | int | 
 | 12532 | main () | 
 | 12533 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12534 | return foo(10); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12535 |   ; | 
 | 12536 |   return 0; | 
 | 12537 | } | 
 | 12538 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12539 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12540 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12541 | $as_echo "#define HAVE_PROTOTYPES 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12542 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 12543 |    have_prototypes=yes | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12544 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12545 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_prototypes" >&5 | 
 | 12547 | $as_echo "$have_prototypes" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12548 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 12549 | works=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12550 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for variable length prototypes and stdarg.h" >&5 | 
 | 12551 | $as_echo_n "checking for variable length prototypes and stdarg.h... " >&6; } | 
 | 12552 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12553 | /* end confdefs.h.  */ | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12554 |  | 
 | 12555 | #include <stdarg.h> | 
| Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 12556 | int foo(int x, ...) { | 
 | 12557 | 	va_list va; | 
 | 12558 | 	va_start(va, x); | 
 | 12559 | 	va_arg(va, int); | 
 | 12560 | 	va_arg(va, char *); | 
 | 12561 | 	va_arg(va, double); | 
 | 12562 | 	return 0; | 
 | 12563 | } | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12564 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12565 | int | 
 | 12566 | main () | 
 | 12567 | { | 
| Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 12568 | return foo(10, "", 3.14); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12569 |   ; | 
 | 12570 |   return 0; | 
 | 12571 | } | 
 | 12572 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12573 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12574 |  | 
 | 12575 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12576 | $as_echo "#define HAVE_STDARG_PROTOTYPES 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12577 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 12578 |   works=yes | 
 | 12579 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12580 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12581 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 | 
 | 12583 | $as_echo "$works" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12584 |  | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 12585 | # check for socketpair | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12586 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socketpair" >&5 | 
 | 12587 | $as_echo_n "checking for socketpair... " >&6; } | 
 | 12588 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 12589 | /* end confdefs.h.  */ | 
 | 12590 |  | 
 | 12591 | #include <sys/types.h> | 
 | 12592 | #include <sys/socket.h> | 
 | 12593 |  | 
 | 12594 | int | 
 | 12595 | main () | 
 | 12596 | { | 
 | 12597 | void *x=socketpair | 
 | 12598 |   ; | 
 | 12599 |   return 0; | 
 | 12600 | } | 
 | 12601 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12602 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 12603 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12604 | $as_echo "#define HAVE_SOCKETPAIR 1" >>confdefs.h | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 12605 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 12606 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12607 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 12608 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12609 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 12610 | $as_echo "no" >&6; } | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 12611 |  | 
 | 12612 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12613 | 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] | 12614 |  | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12615 | # check if sockaddr has sa_len member | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12616 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr has sa_len member" >&5 | 
 | 12617 | $as_echo_n "checking if sockaddr has sa_len member... " >&6; } | 
 | 12618 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12619 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12620 | #include <sys/types.h> | 
 | 12621 | #include <sys/socket.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12622 | int | 
 | 12623 | main () | 
 | 12624 | { | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12625 | struct sockaddr x; | 
 | 12626 | x.sa_len = 0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12627 |   ; | 
 | 12628 |   return 0; | 
 | 12629 | } | 
 | 12630 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12631 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 12632 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 12633 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12634 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12635 | $as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12636 |  | 
 | 12637 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12638 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 12639 | $as_echo "no" >&6; } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 12640 |  | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12641 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12642 | 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] | 12643 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 12644 | va_list_is_array=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12645 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether va_list is an array" >&5 | 
 | 12646 | $as_echo_n "checking whether va_list is an array... " >&6; } | 
 | 12647 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12648 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12649 |  | 
 | 12650 | #ifdef HAVE_STDARG_PROTOTYPES | 
 | 12651 | #include <stdarg.h> | 
 | 12652 | #else | 
 | 12653 | #include <varargs.h> | 
 | 12654 | #endif | 
 | 12655 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12656 | int | 
 | 12657 | main () | 
 | 12658 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12659 | va_list list1, list2; list1 = list2; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12660 |   ; | 
 | 12661 |   return 0; | 
 | 12662 | } | 
 | 12663 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12664 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 12665 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12666 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12667 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12668 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12669 | $as_echo "#define VA_LIST_IS_ARRAY 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12670 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 12671 |  va_list_is_array=yes | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 12672 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12673 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12674 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $va_list_is_array" >&5 | 
 | 12676 | $as_echo "$va_list_is_array" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12677 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12678 | # 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] | 12679 |  | 
 | 12680 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12681 | ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12682 | if test "x$ac_cv_func_gethostbyname_r" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12683 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12684 |   $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h | 
| Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 12685 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12686 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 6 args" >&5 | 
 | 12687 | $as_echo_n "checking gethostbyname_r with 6 args... " >&6; } | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12688 |   OLD_CFLAGS=$CFLAGS | 
 | 12689 |   CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12690 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12691 | /* end confdefs.h.  */ | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12692 |  | 
 | 12693 | #   include <netdb.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12694 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12695 | int | 
 | 12696 | main () | 
 | 12697 | { | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12698 |  | 
 | 12699 |     char *name; | 
 | 12700 |     struct hostent *he, *res; | 
 | 12701 |     char buffer[2048]; | 
 | 12702 |     int buflen = 2048; | 
 | 12703 |     int h_errnop; | 
 | 12704 |  | 
 | 12705 |     (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12706 |  | 
 | 12707 |   ; | 
 | 12708 |   return 0; | 
 | 12709 | } | 
 | 12710 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12711 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12712 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12713 |     $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h | 
| Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 12714 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12715 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12716 | $as_echo "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12717 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12718 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 12719 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12720 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12721 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12722 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12723 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 12724 | $as_echo "no" >&6; } | 
 | 12725 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 5 args" >&5 | 
 | 12726 | $as_echo_n "checking gethostbyname_r with 5 args... " >&6; } | 
 | 12727 |     cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12728 | /* end confdefs.h.  */ | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12729 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12730 | #       include <netdb.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12731 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12732 | int | 
 | 12733 | main () | 
 | 12734 | { | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12735 |  | 
 | 12736 |         char *name; | 
 | 12737 |         struct hostent *he; | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 12738 |         char buffer[2048]; | 
 | 12739 |         int buflen = 2048; | 
 | 12740 |         int h_errnop; | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12741 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 12742 |         (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12743 |  | 
 | 12744 |   ; | 
 | 12745 |   return 0; | 
 | 12746 | } | 
 | 12747 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12748 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12749 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12750 |         $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h | 
| Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 12751 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12752 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 12753 | $as_echo "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12754 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12755 |         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 12756 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12757 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12758 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12759 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12760 |         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 12761 | $as_echo "no" >&6; } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 12762 |         { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 3 args" >&5 | 
 | 12763 | $as_echo_n "checking gethostbyname_r with 3 args... " >&6; } | 
 | 12764 |         cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 12765 | /* end confdefs.h.  */ | 
 | 12766 |  | 
 | 12767 | #           include <netdb.h> | 
 | 12768 |  | 
 | 12769 | int | 
 | 12770 | main () | 
 | 12771 | { | 
 | 12772 |  | 
 | 12773 |             char *name; | 
 | 12774 |             struct hostent *he; | 
 | 12775 |             struct hostent_data data; | 
 | 12776 |  | 
 | 12777 |             (void) gethostbyname_r(name, he, &data); | 
 | 12778 |  | 
 | 12779 |   ; | 
 | 12780 |   return 0; | 
 | 12781 | } | 
 | 12782 | _ACEOF | 
 | 12783 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 12784 |  | 
 | 12785 |             $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h | 
 | 12786 |  | 
 | 12787 |  | 
 | 12788 | $as_echo "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h | 
 | 12789 |  | 
 | 12790 |             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 12791 | $as_echo "yes" >&6; } | 
 | 12792 |  | 
 | 12793 | else | 
 | 12794 |  | 
 | 12795 |            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 12796 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12797 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12798 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12799 | 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] | 12800 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12801 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12802 | 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] | 12803 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12804 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12805 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12806 |   CFLAGS=$OLD_CFLAGS | 
 | 12807 |  | 
 | 12808 | else | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12809 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12810 |   for ac_func in gethostbyname | 
 | 12811 | do : | 
 | 12812 |   ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12813 | if test "x$ac_cv_func_gethostbyname" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12814 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12815 | #define HAVE_GETHOSTBYNAME 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12816 | _ACEOF | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12817 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12818 | fi | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12819 | done | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12820 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12821 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12822 | fi | 
 | 12823 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12824 |  | 
 | 12825 |  | 
 | 12826 |  | 
 | 12827 |  | 
 | 12828 |  | 
 | 12829 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12830 | # checks for system services | 
 | 12831 | # (none yet) | 
 | 12832 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12833 | # Linux requires this for correct f.p. operations | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12834 | ac_fn_c_check_func "$LINENO" "__fpu_control" "ac_cv_func___fpu_control" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12835 | if test "x$ac_cv_func___fpu_control" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12836 |  | 
| Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 12837 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12838 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __fpu_control in -lieee" >&5 | 
 | 12839 | $as_echo_n "checking for __fpu_control in -lieee... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12840 | if ${ac_cv_lib_ieee___fpu_control+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12841 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12842 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12843 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12844 | LIBS="-lieee  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12845 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12846 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12847 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12848 | /* Override any GCC internal prototype to avoid an error. | 
 | 12849 |    Use char because int might match the return type of a GCC | 
 | 12850 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12851 | #ifdef __cplusplus | 
 | 12852 | extern "C" | 
 | 12853 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12854 | char __fpu_control (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12855 | int | 
 | 12856 | main () | 
 | 12857 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12858 | return __fpu_control (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12859 |   ; | 
 | 12860 |   return 0; | 
 | 12861 | } | 
 | 12862 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12863 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12864 |   ac_cv_lib_ieee___fpu_control=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12865 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12866 |   ac_cv_lib_ieee___fpu_control=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12867 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12868 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 12869 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12870 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12871 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ieee___fpu_control" >&5 | 
 | 12873 | $as_echo "$ac_cv_lib_ieee___fpu_control" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12874 | if test "x$ac_cv_lib_ieee___fpu_control" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12875 |   cat >>confdefs.h <<_ACEOF | 
 | 12876 | #define HAVE_LIBIEEE 1 | 
 | 12877 | _ACEOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12878 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12879 |   LIBS="-lieee $LIBS" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12880 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12881 | fi | 
 | 12882 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12883 |  | 
| Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 12884 | fi | 
 | 12885 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12886 |  | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 12887 | # Check for --with-fpectl | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12888 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-fpectl" >&5 | 
 | 12889 | $as_echo_n "checking for --with-fpectl... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12890 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12891 | # Check whether --with-fpectl was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12892 | if test "${with_fpectl+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12893 |   withval=$with_fpectl; | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 12894 | if test "$withval" != no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12895 | then | 
 | 12896 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12897 | $as_echo "#define WANT_SIGFPE_HANDLER 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12898 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12899 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 12900 | $as_echo "yes" >&6; } | 
 | 12901 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 12902 | $as_echo "no" >&6; } | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 12903 | fi | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12904 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12905 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 12906 | $as_echo "no" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12907 | fi | 
 | 12908 |  | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 12909 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12910 | # check for --with-libm=... | 
 | 12911 |  | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 12912 | case $ac_sys_system in | 
| Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 12913 | Darwin) ;; | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 12914 | *) LIBM=-lm | 
 | 12915 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12916 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libm=STRING" >&5 | 
 | 12917 | $as_echo_n "checking for --with-libm=STRING... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12918 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12919 | # Check whether --with-libm was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12920 | if test "${with_libm+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12921 |   withval=$with_libm; | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 12922 | if test "$withval" = no | 
 | 12923 | then LIBM= | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12924 |      { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBM empty" >&5 | 
 | 12925 | $as_echo "force LIBM empty" >&6; } | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 12926 | elif test "$withval" != yes | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12927 | then LIBM=$withval | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12928 |      { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBM=\"$withval\"" >&5 | 
 | 12929 | $as_echo "set LIBM=\"$withval\"" >&6; } | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12930 | 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] | 12931 | fi | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 12932 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12933 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBM=\"$LIBM\"" >&5 | 
 | 12934 | $as_echo "default LIBM=\"$LIBM\"" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12935 | fi | 
 | 12936 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12937 |  | 
 | 12938 | # check for --with-libc=... | 
 | 12939 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12940 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libc=STRING" >&5 | 
 | 12941 | $as_echo_n "checking for --with-libc=STRING... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12942 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12943 | # Check whether --with-libc was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12944 | if test "${with_libc+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12945 |   withval=$with_libc; | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 12946 | if test "$withval" = no | 
 | 12947 | then LIBC= | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12948 |      { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBC empty" >&5 | 
 | 12949 | $as_echo "force LIBC empty" >&6; } | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 12950 | elif test "$withval" != yes | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12951 | then LIBC=$withval | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12952 |      { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBC=\"$withval\"" >&5 | 
 | 12953 | $as_echo "set LIBC=\"$withval\"" >&6; } | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12954 | 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] | 12955 | fi | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 12956 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12957 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBC=\"$LIBC\"" >&5 | 
 | 12958 | $as_echo "default LIBC=\"$LIBC\"" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12959 | fi | 
 | 12960 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12961 |  | 
| Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 12962 | # ************************************** | 
 | 12963 | # * Check for gcc x64 inline assembler * | 
 | 12964 | # ************************************** | 
 | 12965 |  | 
 | 12966 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x64 gcc inline assembler" >&5 | 
 | 12967 | $as_echo_n "checking for x64 gcc inline assembler... " >&6; } | 
 | 12968 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 12969 | /* end confdefs.h.  */ | 
 | 12970 |  | 
 | 12971 | int | 
 | 12972 | main () | 
 | 12973 | { | 
 | 12974 |  | 
 | 12975 |   __asm__ __volatile__ ("movq %rcx, %rax"); | 
 | 12976 |  | 
 | 12977 |   ; | 
 | 12978 |   return 0; | 
 | 12979 | } | 
 | 12980 | _ACEOF | 
 | 12981 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 12982 |   have_gcc_asm_for_x64=yes | 
 | 12983 | else | 
 | 12984 |   have_gcc_asm_for_x64=no | 
 | 12985 | fi | 
 | 12986 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 12987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_x64" >&5 | 
 | 12988 | $as_echo "$have_gcc_asm_for_x64" >&6; } | 
 | 12989 | if test "$have_gcc_asm_for_x64" = yes | 
 | 12990 | then | 
 | 12991 |  | 
 | 12992 | $as_echo "#define HAVE_GCC_ASM_FOR_X64 1" >>confdefs.h | 
 | 12993 |  | 
 | 12994 | fi | 
 | 12995 |  | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 12996 | # ************************************************** | 
 | 12997 | # * Check for various properties of floating point * | 
 | 12998 | # ************************************************** | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 12999 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13000 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are little-endian IEEE 754 binary64" >&5 | 
 | 13001 | $as_echo_n "checking whether C doubles are little-endian IEEE 754 binary64... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13002 | if ${ac_cv_little_endian_double+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13003 |   $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13004 | else | 
 | 13005 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13006 | if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13007 |   ac_cv_little_endian_double=no | 
 | 13008 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13009 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13010 | /* end confdefs.h.  */ | 
 | 13011 |  | 
 | 13012 | #include <string.h> | 
 | 13013 | int main() { | 
 | 13014 |     double x = 9006104071832581.0; | 
 | 13015 |     if (memcmp(&x, "\x05\x04\x03\x02\x01\xff\x3f\x43", 8) == 0) | 
 | 13016 |         return 0; | 
 | 13017 |     else | 
 | 13018 |         return 1; | 
 | 13019 | } | 
 | 13020 |  | 
 | 13021 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13022 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13023 |   ac_cv_little_endian_double=yes | 
 | 13024 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13025 |   ac_cv_little_endian_double=no | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13026 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13027 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 13028 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13029 | fi | 
 | 13030 |  | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13031 | fi | 
 | 13032 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_little_endian_double" >&5 | 
 | 13034 | $as_echo "$ac_cv_little_endian_double" >&6; } | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13035 | if test "$ac_cv_little_endian_double" = yes | 
 | 13036 | then | 
 | 13037 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13038 | $as_echo "#define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1" >>confdefs.h | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13039 |  | 
 | 13040 | fi | 
 | 13041 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13042 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are big-endian IEEE 754 binary64" >&5 | 
 | 13043 | $as_echo_n "checking whether C doubles are big-endian IEEE 754 binary64... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13044 | if ${ac_cv_big_endian_double+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13045 |   $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13046 | else | 
 | 13047 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13048 | if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13049 |   ac_cv_big_endian_double=no | 
 | 13050 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13051 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13052 | /* end confdefs.h.  */ | 
 | 13053 |  | 
 | 13054 | #include <string.h> | 
 | 13055 | int main() { | 
 | 13056 |     double x = 9006104071832581.0; | 
 | 13057 |     if (memcmp(&x, "\x43\x3f\xff\x01\x02\x03\x04\x05", 8) == 0) | 
 | 13058 |         return 0; | 
 | 13059 |     else | 
 | 13060 |         return 1; | 
 | 13061 | } | 
 | 13062 |  | 
 | 13063 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13064 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13065 |   ac_cv_big_endian_double=yes | 
 | 13066 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13067 |   ac_cv_big_endian_double=no | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13068 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13069 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 13070 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13071 | fi | 
 | 13072 |  | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13073 | fi | 
 | 13074 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_big_endian_double" >&5 | 
 | 13076 | $as_echo "$ac_cv_big_endian_double" >&6; } | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13077 | if test "$ac_cv_big_endian_double" = yes | 
 | 13078 | then | 
 | 13079 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13080 | $as_echo "#define DOUBLE_IS_BIG_ENDIAN_IEEE754 1" >>confdefs.h | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13081 |  | 
 | 13082 | fi | 
 | 13083 |  | 
 | 13084 | # Some ARM platforms use a mixed-endian representation for doubles. | 
 | 13085 | # While Python doesn't currently have full support for these platforms | 
 | 13086 | # (see e.g., issue 1762561), we can at least make sure that float <-> string | 
 | 13087 | # conversions work. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13088 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are ARM mixed-endian IEEE 754 binary64" >&5 | 
 | 13089 | $as_echo_n "checking whether C doubles are ARM mixed-endian IEEE 754 binary64... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13090 | if ${ac_cv_mixed_endian_double+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13091 |   $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13092 | else | 
 | 13093 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13094 | if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13095 |   ac_cv_mixed_endian_double=no | 
 | 13096 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13097 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13098 | /* end confdefs.h.  */ | 
 | 13099 |  | 
 | 13100 | #include <string.h> | 
 | 13101 | int main() { | 
 | 13102 |     double x = 9006104071832581.0; | 
 | 13103 |     if (memcmp(&x, "\x01\xff\x3f\x43\x05\x04\x03\x02", 8) == 0) | 
 | 13104 |         return 0; | 
 | 13105 |     else | 
 | 13106 |         return 1; | 
 | 13107 | } | 
 | 13108 |  | 
 | 13109 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13110 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13111 |   ac_cv_mixed_endian_double=yes | 
 | 13112 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13113 |   ac_cv_mixed_endian_double=no | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13114 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13115 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 13116 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13117 | fi | 
 | 13118 |  | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13119 | fi | 
 | 13120 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mixed_endian_double" >&5 | 
 | 13122 | $as_echo "$ac_cv_mixed_endian_double" >&6; } | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13123 | if test "$ac_cv_mixed_endian_double" = yes | 
 | 13124 | then | 
 | 13125 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13126 | $as_echo "#define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1" >>confdefs.h | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13127 |  | 
 | 13128 | fi | 
 | 13129 |  | 
| Mark Dickinson | 7abf8d4 | 2009-04-18 20:17:52 +0000 | [diff] [blame] | 13130 | # The short float repr introduced in Python 3.1 requires the | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 13131 | # correctly-rounded string <-> double conversion functions from | 
| Mark Dickinson | 7abf8d4 | 2009-04-18 20:17:52 +0000 | [diff] [blame] | 13132 | # 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] | 13133 | # 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] | 13134 | # 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] | 13135 | # using inline assembler to get and set the x87 FPU control word. | 
| Mark Dickinson | f4243f6 | 2009-11-15 13:47:27 +0000 | [diff] [blame] | 13136 |  | 
 | 13137 | # This inline assembler syntax may also work for suncc and icc, | 
 | 13138 | # so we try it on all platforms. | 
 | 13139 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13140 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set x87 control word" >&5 | 
 | 13141 | $as_echo_n "checking whether we can use gcc inline assembler to get and set x87 control word... " >&6; } | 
 | 13142 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13143 | /* end confdefs.h.  */ | 
 | 13144 |  | 
 | 13145 | int | 
 | 13146 | main () | 
 | 13147 | { | 
 | 13148 |  | 
| Mark Dickinson | f4243f6 | 2009-11-15 13:47:27 +0000 | [diff] [blame] | 13149 |   unsigned short cw; | 
 | 13150 |   __asm__ __volatile__ ("fnstcw %0" : "=m" (cw)); | 
 | 13151 |   __asm__ __volatile__ ("fldcw %0" : : "m" (cw)); | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13152 |  | 
 | 13153 |   ; | 
 | 13154 |   return 0; | 
 | 13155 | } | 
 | 13156 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13157 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13158 |   have_gcc_asm_for_x87=yes | 
 | 13159 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13160 |   have_gcc_asm_for_x87=no | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13161 | fi | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13162 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_x87" >&5 | 
 | 13164 | $as_echo "$have_gcc_asm_for_x87" >&6; } | 
| Mark Dickinson | f4243f6 | 2009-11-15 13:47:27 +0000 | [diff] [blame] | 13165 | if test "$have_gcc_asm_for_x87" = yes | 
 | 13166 | then | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13167 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13168 | $as_echo "#define HAVE_GCC_ASM_FOR_X87 1" >>confdefs.h | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13169 |  | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13170 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13171 |  | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 13172 | # Detect whether system arithmetic is subject to x87-style double | 
 | 13173 | # rounding issues.  The result of this test has little meaning on non | 
 | 13174 | # IEEE 754 platforms.  On IEEE 754, test should return 1 if rounding | 
 | 13175 | # mode is round-to-nearest and double rounding issues are present, and | 
 | 13176 | # 0 otherwise.  See http://bugs.python.org/issue2937 for more info. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13177 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x87-style double rounding" >&5 | 
 | 13178 | $as_echo_n "checking for x87-style double rounding... " >&6; } | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13179 | # $BASECFLAGS may affect the result | 
 | 13180 | ac_save_cc="$CC" | 
 | 13181 | CC="$CC $BASECFLAGS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13182 | if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 13183 |   ac_cv_x87_double_rounding=no | 
 | 13184 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13185 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 13186 | /* end confdefs.h.  */ | 
 | 13187 |  | 
 | 13188 | #include <stdlib.h> | 
 | 13189 | #include <math.h> | 
 | 13190 | int main() { | 
 | 13191 |     volatile double x, y, z; | 
 | 13192 |     /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */ | 
 | 13193 |     x = 0.99999999999999989; /* 1-2**-53 */ | 
 | 13194 |     y = 1./x; | 
 | 13195 |     if (y != 1.) | 
 | 13196 |         exit(0); | 
 | 13197 |     /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */ | 
 | 13198 |     x = 1e16; | 
 | 13199 |     y = 2.99999; | 
 | 13200 |     z = x + y; | 
 | 13201 |     if (z != 1e16+4.) | 
 | 13202 |         exit(0); | 
 | 13203 |     /* both tests show evidence of double rounding */ | 
 | 13204 |     exit(1); | 
 | 13205 | } | 
 | 13206 |  | 
 | 13207 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13208 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 13209 |   ac_cv_x87_double_rounding=no | 
 | 13210 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13211 |   ac_cv_x87_double_rounding=yes | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 13212 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13213 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 13214 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 13215 | fi | 
 | 13216 |  | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13217 | CC="$ac_save_cc" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_x87_double_rounding" >&5 | 
 | 13219 | $as_echo "$ac_cv_x87_double_rounding" >&6; } | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 13220 | if test "$ac_cv_x87_double_rounding" = yes | 
 | 13221 | then | 
 | 13222 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13223 | $as_echo "#define X87_DOUBLE_ROUNDING 1" >>confdefs.h | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 13224 |  | 
 | 13225 | fi | 
 | 13226 |  | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13227 | # ************************************ | 
 | 13228 | # * Check for mathematical functions * | 
 | 13229 | # ************************************ | 
 | 13230 |  | 
 | 13231 | LIBS_SAVE=$LIBS | 
 | 13232 | LIBS="$LIBS $LIBM" | 
 | 13233 |  | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 13234 | for ac_func in acosh asinh atanh copysign erf erfc expm1 finite gamma | 
 | 13235 | do : | 
 | 13236 |   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
 | 13237 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 13238 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 13239 |   cat >>confdefs.h <<_ACEOF | 
 | 13240 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
 | 13241 | _ACEOF | 
 | 13242 |  | 
 | 13243 | fi | 
 | 13244 | done | 
 | 13245 |  | 
| Victor Stinner | 8f9f8d6 | 2011-05-09 12:45:41 +0200 | [diff] [blame] | 13246 | for ac_func in hypot lgamma log1p log2 round tgamma | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 13247 | do : | 
 | 13248 |   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
 | 13249 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 13250 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 13251 |   cat >>confdefs.h <<_ACEOF | 
 | 13252 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
 | 13253 | _ACEOF | 
 | 13254 |  | 
 | 13255 | fi | 
 | 13256 | done | 
 | 13257 |  | 
 | 13258 | ac_fn_c_check_decl "$LINENO" "isinf" "ac_cv_have_decl_isinf" "#include <math.h> | 
 | 13259 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13260 | if test "x$ac_cv_have_decl_isinf" = xyes; then : | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 13261 |   ac_have_decl=1 | 
 | 13262 | else | 
 | 13263 |   ac_have_decl=0 | 
 | 13264 | fi | 
 | 13265 |  | 
 | 13266 | cat >>confdefs.h <<_ACEOF | 
 | 13267 | #define HAVE_DECL_ISINF $ac_have_decl | 
 | 13268 | _ACEOF | 
 | 13269 | ac_fn_c_check_decl "$LINENO" "isnan" "ac_cv_have_decl_isnan" "#include <math.h> | 
 | 13270 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13271 | if test "x$ac_cv_have_decl_isnan" = xyes; then : | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 13272 |   ac_have_decl=1 | 
 | 13273 | else | 
 | 13274 |   ac_have_decl=0 | 
 | 13275 | fi | 
 | 13276 |  | 
 | 13277 | cat >>confdefs.h <<_ACEOF | 
 | 13278 | #define HAVE_DECL_ISNAN $ac_have_decl | 
 | 13279 | _ACEOF | 
 | 13280 | ac_fn_c_check_decl "$LINENO" "isfinite" "ac_cv_have_decl_isfinite" "#include <math.h> | 
 | 13281 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13282 | if test "x$ac_cv_have_decl_isfinite" = xyes; then : | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 13283 |   ac_have_decl=1 | 
 | 13284 | else | 
 | 13285 |   ac_have_decl=0 | 
 | 13286 | fi | 
 | 13287 |  | 
 | 13288 | cat >>confdefs.h <<_ACEOF | 
 | 13289 | #define HAVE_DECL_ISFINITE $ac_have_decl | 
 | 13290 | _ACEOF | 
 | 13291 |  | 
 | 13292 |  | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 13293 | # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of | 
 | 13294 | # -0. on some architectures. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13295 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tanh preserves the sign of zero" >&5 | 
 | 13296 | $as_echo_n "checking whether tanh preserves the sign of zero... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13297 | if ${ac_cv_tanh_preserves_zero_sign+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13298 |   $as_echo_n "(cached) " >&6 | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 13299 | else | 
 | 13300 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13301 | if test "$cross_compiling" = yes; then : | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 13302 |   ac_cv_tanh_preserves_zero_sign=no | 
 | 13303 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13304 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 13305 | /* end confdefs.h.  */ | 
 | 13306 |  | 
 | 13307 | #include <math.h> | 
 | 13308 | #include <stdlib.h> | 
 | 13309 | int main() { | 
 | 13310 |     /* return 0 if either negative zeros don't exist | 
 | 13311 |        on this platform or if negative zeros exist | 
 | 13312 |        and tanh(-0.) == -0. */ | 
 | 13313 |   if (atan2(0., -1.) == atan2(-0., -1.) || | 
 | 13314 |       atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0); | 
 | 13315 |   else exit(1); | 
 | 13316 | } | 
 | 13317 |  | 
 | 13318 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13319 | if ac_fn_c_try_run "$LINENO"; then : | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 13320 |   ac_cv_tanh_preserves_zero_sign=yes | 
 | 13321 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13322 |   ac_cv_tanh_preserves_zero_sign=no | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 13323 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13324 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 13325 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 13326 | fi | 
 | 13327 |  | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 13328 | fi | 
 | 13329 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tanh_preserves_zero_sign" >&5 | 
 | 13331 | $as_echo "$ac_cv_tanh_preserves_zero_sign" >&6; } | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 13332 | if test "$ac_cv_tanh_preserves_zero_sign" = yes | 
 | 13333 | then | 
 | 13334 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13335 | $as_echo "#define TANH_PRESERVES_ZERO_SIGN 1" >>confdefs.h | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 13336 |  | 
 | 13337 | fi | 
 | 13338 |  | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 13339 | if test "$ac_cv_func_log1p" = yes | 
 | 13340 | then | 
 | 13341 |     # On some versions of AIX, log1p(-0.) returns 0. instead of | 
 | 13342 |     # -0.  See issue #9920. | 
 | 13343 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether log1p drops the sign of negative zero" >&5 | 
 | 13344 | $as_echo_n "checking whether log1p drops the sign of negative zero... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13345 |     if ${ac_cv_log1p_drops_zero_sign+:} false; then : | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 13346 |   $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 13347 | else | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 13348 |  | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 13349 |     if test "$cross_compiling" = yes; then : | 
 | 13350 |   ac_cv_log1p_drops_zero_sign=no | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 13351 | else | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 13352 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 13353 | /* end confdefs.h.  */ | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 13354 |  | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 13355 |     #include <math.h> | 
 | 13356 |     #include <stdlib.h> | 
 | 13357 |     int main() { | 
 | 13358 |         /* Fail if the signs of log1p(-0.) and -0. can be | 
 | 13359 | 	   distinguished. */ | 
 | 13360 |         if (atan2(log1p(-0.), -1.) == atan2(-0., -1.)) | 
 | 13361 |             return 0; | 
 | 13362 |         else | 
 | 13363 |             return 1; | 
 | 13364 |     } | 
 | 13365 |  | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 13366 | _ACEOF | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 13367 | if ac_fn_c_try_run "$LINENO"; then : | 
 | 13368 |   ac_cv_log1p_drops_zero_sign=no | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 13369 | else | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 13370 |   ac_cv_log1p_drops_zero_sign=yes | 
 | 13371 | fi | 
 | 13372 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 13373 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 13374 | fi | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 13375 |  | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 13376 | fi | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 13377 |  | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 13378 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_log1p_drops_zero_sign" >&5 | 
 | 13379 | $as_echo "$ac_cv_log1p_drops_zero_sign" >&6; } | 
 | 13380 | fi | 
 | 13381 | if test "$ac_cv_log1p_drops_zero_sign" = yes | 
 | 13382 | then | 
 | 13383 |  | 
 | 13384 | $as_echo "#define LOG1P_DROPS_ZERO_SIGN 1" >>confdefs.h | 
 | 13385 |  | 
 | 13386 | fi | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 13387 |  | 
| Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 13388 | LIBS=$LIBS_SAVE | 
 | 13389 |  | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 13390 | # For multiprocessing module, check that sem_open | 
 | 13391 | # actually works.  For FreeBSD versions <= 7.2, | 
 | 13392 | # the kernel module that provides POSIX semaphores | 
 | 13393 | # isn't loaded by default, so an attempt to call | 
 | 13394 | # sem_open results in a 'Signal 12' error. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13395 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX semaphores are enabled" >&5 | 
 | 13396 | $as_echo_n "checking whether POSIX semaphores are enabled... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13397 | if ${ac_cv_posix_semaphores_enabled+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13398 |   $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 13399 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13400 |   if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 13401 |   ac_cv_posix_semaphores_enabled=yes | 
 | 13402 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13403 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 13404 | /* end confdefs.h.  */ | 
 | 13405 |  | 
 | 13406 | #include <unistd.h> | 
 | 13407 | #include <fcntl.h> | 
 | 13408 | #include <stdio.h> | 
 | 13409 | #include <semaphore.h> | 
 | 13410 | #include <sys/stat.h> | 
 | 13411 |  | 
 | 13412 | int main(void) { | 
 | 13413 |   sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0); | 
 | 13414 |   if (a == SEM_FAILED) { | 
 | 13415 |     perror("sem_open"); | 
 | 13416 |     return 1; | 
 | 13417 |   } | 
 | 13418 |   sem_close(a); | 
| Mark Dickinson | ba79b35 | 2009-12-13 21:10:57 +0000 | [diff] [blame] | 13419 |   sem_unlink("/autoconf"); | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 13420 |   return 0; | 
 | 13421 | } | 
 | 13422 |  | 
 | 13423 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13424 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 13425 |   ac_cv_posix_semaphores_enabled=yes | 
 | 13426 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13427 |   ac_cv_posix_semaphores_enabled=no | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 13428 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13429 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 13430 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 13431 | fi | 
 | 13432 |  | 
 | 13433 |  | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 13434 | fi | 
 | 13435 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13436 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_semaphores_enabled" >&5 | 
 | 13437 | $as_echo "$ac_cv_posix_semaphores_enabled" >&6; } | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 13438 | if test $ac_cv_posix_semaphores_enabled = no | 
 | 13439 | then | 
 | 13440 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13441 | $as_echo "#define POSIX_SEMAPHORES_NOT_ENABLED 1" >>confdefs.h | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 13442 |  | 
 | 13443 | fi | 
 | 13444 |  | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 13445 | # Multiprocessing check for broken sem_getvalue | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13446 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken sem_getvalue" >&5 | 
 | 13447 | $as_echo_n "checking for broken sem_getvalue... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13448 | if ${ac_cv_broken_sem_getvalue+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13449 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13450 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13451 |   if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13452 |   ac_cv_broken_sem_getvalue=yes | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 13453 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13454 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 13455 | /* end confdefs.h.  */ | 
 | 13456 |  | 
 | 13457 | #include <unistd.h> | 
 | 13458 | #include <fcntl.h> | 
 | 13459 | #include <stdio.h> | 
 | 13460 | #include <semaphore.h> | 
 | 13461 | #include <sys/stat.h> | 
 | 13462 |  | 
 | 13463 | int main(void){ | 
| Mark Dickinson | ba79b35 | 2009-12-13 21:10:57 +0000 | [diff] [blame] | 13464 |   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] | 13465 |   int count; | 
 | 13466 |   int res; | 
 | 13467 |   if(a==SEM_FAILED){ | 
 | 13468 |     perror("sem_open"); | 
 | 13469 |     return 1; | 
 | 13470 |  | 
 | 13471 |   } | 
 | 13472 |   res = sem_getvalue(a, &count); | 
 | 13473 |   sem_close(a); | 
| Mark Dickinson | ba79b35 | 2009-12-13 21:10:57 +0000 | [diff] [blame] | 13474 |   sem_unlink("/autocftw"); | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 13475 |   return res==-1 ? 1 : 0; | 
 | 13476 | } | 
 | 13477 |  | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 13478 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13479 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13480 |   ac_cv_broken_sem_getvalue=no | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 13481 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13482 |   ac_cv_broken_sem_getvalue=yes | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 13483 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13484 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 13485 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 13486 | fi | 
 | 13487 |  | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 13488 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13489 | fi | 
 | 13490 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_sem_getvalue" >&5 | 
 | 13492 | $as_echo "$ac_cv_broken_sem_getvalue" >&6; } | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13493 | if test $ac_cv_broken_sem_getvalue = yes | 
 | 13494 | then | 
 | 13495 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13496 | $as_echo "#define HAVE_BROKEN_SEM_GETVALUE 1" >>confdefs.h | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13497 |  | 
 | 13498 | fi | 
 | 13499 |  | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 13500 | # determine what size digit to use for Python's longs | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13501 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking digit size for Python's longs" >&5 | 
 | 13502 | $as_echo_n "checking digit size for Python's longs... " >&6; } | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 13503 | # Check whether --enable-big-digits was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13504 | if test "${enable_big_digits+set}" = set; then : | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 13505 |   enableval=$enable_big_digits; case $enable_big_digits in | 
 | 13506 | yes) | 
 | 13507 |   enable_big_digits=30 ;; | 
 | 13508 | no) | 
 | 13509 |   enable_big_digits=15 ;; | 
 | 13510 | 15|30) | 
 | 13511 |   ;; | 
 | 13512 | *) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13513 |   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] | 13514 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_big_digits" >&5 | 
 | 13516 | $as_echo "$enable_big_digits" >&6; } | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 13517 |  | 
 | 13518 | cat >>confdefs.h <<_ACEOF | 
 | 13519 | #define PYLONG_BITS_IN_DIGIT $enable_big_digits | 
 | 13520 | _ACEOF | 
 | 13521 |  | 
 | 13522 |  | 
 | 13523 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13524 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5 | 
 | 13525 | $as_echo "no value specified" >&6; } | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 13526 | fi | 
 | 13527 |  | 
 | 13528 |  | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13529 | # check for wchar.h | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13530 | ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13531 | if test "x$ac_cv_header_wchar_h" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13532 |  | 
 | 13533 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13534 | $as_echo "#define HAVE_WCHAR_H 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13535 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13536 |   wchar_h="yes" | 
 | 13537 |  | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13538 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13539 |   wchar_h="no" | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13540 |  | 
 | 13541 | fi | 
 | 13542 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13543 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13544 |  | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 13545 | # determine wchar_t size | 
 | 13546 | if test "$wchar_h" = yes | 
 | 13547 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13548 |   # 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] | 13549 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 13550 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 13551 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13552 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5 | 
 | 13553 | $as_echo_n "checking size of wchar_t... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13554 | if ${ac_cv_sizeof_wchar_t+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13555 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13556 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13557 |   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t"        "#include <wchar.h> | 
 | 13558 | "; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13559 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13560 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13561 |   if test "$ac_cv_type_wchar_t" = yes; then | 
 | 13562 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 13563 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 13564 | as_fn_error 77 "cannot compute sizeof (wchar_t) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13565 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13566 |    else | 
 | 13567 |      ac_cv_sizeof_wchar_t=0 | 
 | 13568 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13569 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13570 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13571 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5 | 
 | 13573 | $as_echo "$ac_cv_sizeof_wchar_t" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13574 |  | 
 | 13575 |  | 
 | 13576 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13577 | cat >>confdefs.h <<_ACEOF | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 13578 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13579 | _ACEOF | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 13580 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13581 |  | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 13582 | fi | 
 | 13583 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13584 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UCS-4 tcl" >&5 | 
 | 13585 | $as_echo_n "checking for UCS-4 tcl... " >&6; } | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 13586 | have_ucs4_tcl=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13587 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13588 | /* end confdefs.h.  */ | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 13589 |  | 
 | 13590 | #include <tcl.h> | 
 | 13591 | #if TCL_UTF_MAX != 6 | 
 | 13592 | # error "NOT UCS4_TCL" | 
 | 13593 | #endif | 
 | 13594 | int | 
 | 13595 | main () | 
 | 13596 | { | 
 | 13597 |  | 
 | 13598 |   ; | 
 | 13599 |   return 0; | 
 | 13600 | } | 
 | 13601 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13602 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 13603 |  | 
 | 13604 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13605 | $as_echo "#define HAVE_UCS4_TCL 1" >>confdefs.h | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 13606 |  | 
 | 13607 |   have_ucs4_tcl=yes | 
 | 13608 |  | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 13609 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13610 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ucs4_tcl" >&5 | 
 | 13612 | $as_echo "$have_ucs4_tcl" >&6; } | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 13613 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13614 | # check whether wchar_t is signed or not | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 13615 | if test "$wchar_h" = yes | 
 | 13616 | then | 
 | 13617 |   # check whether wchar_t is signed or not | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13618 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wchar_t is signed" >&5 | 
 | 13619 | $as_echo_n "checking whether wchar_t is signed... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13620 |   if ${ac_cv_wchar_t_signed+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13621 |   $as_echo_n "(cached) " >&6 | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 13622 | else | 
 | 13623 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13624 |   if test "$cross_compiling" = yes; then : | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 13625 |   ac_cv_wchar_t_signed=yes | 
 | 13626 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13627 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13628 | /* end confdefs.h.  */ | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 13629 |  | 
 | 13630 |   #include <wchar.h> | 
 | 13631 |   int main() | 
 | 13632 |   { | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 13633 | 	/* Success: exit code 0 */ | 
 | 13634 |         exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1); | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 13635 |   } | 
 | 13636 |  | 
 | 13637 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13638 | if ac_fn_c_try_run "$LINENO"; then : | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 13639 |   ac_cv_wchar_t_signed=yes | 
 | 13640 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13641 |   ac_cv_wchar_t_signed=no | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 13642 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13643 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 13644 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 13645 | fi | 
 | 13646 |  | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 13647 | fi | 
 | 13648 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13649 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_wchar_t_signed" >&5 | 
 | 13650 | $as_echo "$ac_cv_wchar_t_signed" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13651 | fi | 
 | 13652 |  | 
| Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 13653 | # wchar_t is only usable if it maps to an unsigned type | 
| Martin v. Löwis | d63a3b8 | 2011-09-28 07:41:54 +0200 | [diff] [blame] | 13654 | if test "$ac_cv_sizeof_wchar_t" -ge 2 \ | 
| Matthias Klose | 7dbeed7 | 2004-12-24 08:22:17 +0000 | [diff] [blame] | 13655 |           -a "$ac_cv_wchar_t_signed" = "no" | 
| Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 13656 | then | 
| Martin v. Löwis | d63a3b8 | 2011-09-28 07:41:54 +0200 | [diff] [blame] | 13657 |   HAVE_USABLE_WCHAR_T="yes" | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 13658 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13659 | $as_echo "#define HAVE_USABLE_WCHAR_T 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13660 |  | 
| Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 13661 | else | 
| Martin v. Löwis | d63a3b8 | 2011-09-28 07:41:54 +0200 | [diff] [blame] | 13662 |   HAVE_USABLE_WCHAR_T="no usable wchar_t found" | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 13663 | fi | 
| Martin v. Löwis | d63a3b8 | 2011-09-28 07:41:54 +0200 | [diff] [blame] | 13664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_USABLE_WCHAR_T" >&5 | 
 | 13665 | $as_echo "$HAVE_USABLE_WCHAR_T" >&6; } | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13666 |  | 
 | 13667 | # check for endianness | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13668 |  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 | 
 | 13669 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13670 | if ${ac_cv_c_bigendian+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13671 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13672 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13673 |   ac_cv_c_bigendian=unknown | 
 | 13674 |     # See if we're dealing with a universal compiler. | 
 | 13675 |     cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 13676 | /* end confdefs.h.  */ | 
 | 13677 | #ifndef __APPLE_CC__ | 
 | 13678 | 	       not a universal capable compiler | 
 | 13679 | 	     #endif | 
 | 13680 | 	     typedef int dummy; | 
 | 13681 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13682 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13683 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 13684 |  | 
 | 13685 | 	# Check for potential -arch flags.  It is not universal unless | 
 | 13686 | 	# there are at least two -arch flags with different values. | 
 | 13687 | 	ac_arch= | 
 | 13688 | 	ac_prev= | 
 | 13689 | 	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | 
 | 13690 | 	 if test -n "$ac_prev"; then | 
 | 13691 | 	   case $ac_word in | 
 | 13692 | 	     i?86 | x86_64 | ppc | ppc64) | 
 | 13693 | 	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | 
 | 13694 | 		 ac_arch=$ac_word | 
 | 13695 | 	       else | 
 | 13696 | 		 ac_cv_c_bigendian=universal | 
 | 13697 | 		 break | 
 | 13698 | 	       fi | 
 | 13699 | 	       ;; | 
 | 13700 | 	   esac | 
 | 13701 | 	   ac_prev= | 
 | 13702 | 	 elif test "x$ac_word" = "x-arch"; then | 
 | 13703 | 	   ac_prev=arch | 
 | 13704 | 	 fi | 
 | 13705 |        done | 
 | 13706 | fi | 
 | 13707 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 13708 |     if test $ac_cv_c_bigendian = unknown; then | 
 | 13709 |       # See if sys/param.h defines the BYTE_ORDER macro. | 
 | 13710 |       cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13711 | /* end confdefs.h.  */ | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13712 | #include <sys/types.h> | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13713 | 	     #include <sys/param.h> | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13714 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13715 | int | 
 | 13716 | main () | 
 | 13717 | { | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13718 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ | 
 | 13719 | 		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | 
 | 13720 | 		     && LITTLE_ENDIAN) | 
 | 13721 | 	      bogus endian macros | 
 | 13722 | 	     #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13723 |  | 
 | 13724 |   ; | 
 | 13725 |   return 0; | 
 | 13726 | } | 
 | 13727 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13728 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13729 |   # It does; now see whether it defined to BIG_ENDIAN or not. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13730 | 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13731 | /* end confdefs.h.  */ | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13732 | #include <sys/types.h> | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13733 | 		#include <sys/param.h> | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13734 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13735 | int | 
 | 13736 | main () | 
 | 13737 | { | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13738 | #if BYTE_ORDER != BIG_ENDIAN | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13739 | 		 not big endian | 
 | 13740 | 		#endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13741 |  | 
 | 13742 |   ; | 
 | 13743 |   return 0; | 
 | 13744 | } | 
 | 13745 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13746 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13747 |   ac_cv_c_bigendian=yes | 
 | 13748 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13749 |   ac_cv_c_bigendian=no | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13750 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13751 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13752 | fi | 
 | 13753 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 13754 |     fi | 
 | 13755 |     if test $ac_cv_c_bigendian = unknown; then | 
 | 13756 |       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | 
 | 13757 |       cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13758 | /* end confdefs.h.  */ | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13759 | #include <limits.h> | 
 | 13760 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13761 | int | 
 | 13762 | main () | 
 | 13763 | { | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13764 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | 
 | 13765 | 	      bogus endian macros | 
 | 13766 | 	     #endif | 
 | 13767 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13768 |   ; | 
 | 13769 |   return 0; | 
 | 13770 | } | 
 | 13771 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13772 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 13773 |   # It does; now see whether it defined to _BIG_ENDIAN or not. | 
 | 13774 | 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 13775 | /* end confdefs.h.  */ | 
 | 13776 | #include <limits.h> | 
 | 13777 |  | 
 | 13778 | int | 
 | 13779 | main () | 
 | 13780 | { | 
 | 13781 | #ifndef _BIG_ENDIAN | 
 | 13782 | 		 not big endian | 
 | 13783 | 		#endif | 
 | 13784 |  | 
 | 13785 |   ; | 
 | 13786 |   return 0; | 
 | 13787 | } | 
 | 13788 | _ACEOF | 
 | 13789 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13790 |   ac_cv_c_bigendian=yes | 
| Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 13791 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13792 |   ac_cv_c_bigendian=no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13793 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13794 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 13795 | fi | 
 | 13796 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 13797 |     fi | 
 | 13798 |     if test $ac_cv_c_bigendian = unknown; then | 
 | 13799 |       # Compile a test program. | 
 | 13800 |       if test "$cross_compiling" = yes; then : | 
 | 13801 |   # Try to guess by grepping values from an object file. | 
 | 13802 | 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 13803 | /* end confdefs.h.  */ | 
 | 13804 | short int ascii_mm[] = | 
 | 13805 | 		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | 
 | 13806 | 		short int ascii_ii[] = | 
 | 13807 | 		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | 
 | 13808 | 		int use_ascii (int i) { | 
 | 13809 | 		  return ascii_mm[i] + ascii_ii[i]; | 
 | 13810 | 		} | 
 | 13811 | 		short int ebcdic_ii[] = | 
 | 13812 | 		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | 
 | 13813 | 		short int ebcdic_mm[] = | 
 | 13814 | 		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | 
 | 13815 | 		int use_ebcdic (int i) { | 
 | 13816 | 		  return ebcdic_mm[i] + ebcdic_ii[i]; | 
 | 13817 | 		} | 
 | 13818 | 		extern int foo; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13819 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13820 | int | 
 | 13821 | main () | 
 | 13822 | { | 
 | 13823 | return use_ascii (foo) == use_ebcdic (foo); | 
 | 13824 |   ; | 
 | 13825 |   return 0; | 
 | 13826 | } | 
 | 13827 | _ACEOF | 
 | 13828 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 13829 |   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | 
 | 13830 | 	      ac_cv_c_bigendian=yes | 
 | 13831 | 	    fi | 
 | 13832 | 	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | 
 | 13833 | 	      if test "$ac_cv_c_bigendian" = unknown; then | 
 | 13834 | 		ac_cv_c_bigendian=no | 
 | 13835 | 	      else | 
 | 13836 | 		# finding both strings is unlikely to happen, but who knows? | 
 | 13837 | 		ac_cv_c_bigendian=unknown | 
 | 13838 | 	      fi | 
 | 13839 | 	    fi | 
 | 13840 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13841 | 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] | 13842 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13843 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13844 | /* end confdefs.h.  */ | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13845 | $ac_includes_default | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13846 | int | 
 | 13847 | main () | 
 | 13848 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13849 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13850 | 	     /* Are we little or big endian?  From Harbison&Steele.  */ | 
 | 13851 | 	     union | 
 | 13852 | 	     { | 
 | 13853 | 	       long int l; | 
 | 13854 | 	       char c[sizeof (long int)]; | 
 | 13855 | 	     } u; | 
 | 13856 | 	     u.l = 1; | 
 | 13857 | 	     return u.c[sizeof (long int) - 1] == 1; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13858 |  | 
 | 13859 |   ; | 
 | 13860 |   return 0; | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13861 | } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13862 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13863 | if ac_fn_c_try_run "$LINENO"; then : | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13864 |   ac_cv_c_bigendian=no | 
 | 13865 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13866 |   ac_cv_c_bigendian=yes | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13867 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13868 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 13869 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13870 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13871 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13872 |     fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13873 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 | 
 | 13875 | $as_echo "$ac_cv_c_bigendian" >&6; } | 
 | 13876 |  case $ac_cv_c_bigendian in #( | 
 | 13877 |    yes) | 
 | 13878 |      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | 
 | 13879 | ;; #( | 
 | 13880 |    no) | 
 | 13881 |       ;; #( | 
 | 13882 |    universal) | 
| Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 13883 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13884 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h | 
| Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 13885 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13886 |      ;; #( | 
 | 13887 |    *) | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 13888 |      as_fn_error $? "unknown endianness | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13889 |  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13890 |  esac | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13891 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13892 |  | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 13893 | # ABI version string for Python extension modules.  This appears between the | 
 | 13894 | # periods in shared library file names, e.g. foo.<SOABI>.so.  It is calculated | 
 | 13895 | # from the following attributes which affect the ABI of this Python build (in | 
 | 13896 | # this order): | 
 | 13897 | # | 
 | 13898 | # * The Python implementation (always 'cpython-' for us) | 
 | 13899 | # * The major and minor version numbers | 
 | 13900 | # * --with-pydebug (adds a 'd') | 
 | 13901 | # * --with-pymalloc (adds a 'm') | 
 | 13902 | # * --with-wide-unicode (adds a 'u') | 
 | 13903 | # | 
 | 13904 | # 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] | 13905 | # would get a shared library ABI version tag of 'cpython-32dmu' and shared | 
 | 13906 | # libraries would be named 'foo.cpython-32dmu.so'. | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 13907 |  | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 13908 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking ABIFLAGS" >&5 | 
 | 13909 | $as_echo_n "checking ABIFLAGS... " >&6; } | 
 | 13910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ABIFLAGS" >&5 | 
 | 13911 | $as_echo "$ABIFLAGS" >&6; } | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 13912 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking SOABI" >&5 | 
 | 13913 | $as_echo_n "checking SOABI... " >&6; } | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 13914 | SOABI='cpython-'`echo $VERSION | tr -d .`${ABIFLAGS} | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 13915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SOABI" >&5 | 
 | 13916 | $as_echo "$SOABI" >&6; } | 
 | 13917 |  | 
| doko@ubuntu.com | d5537d0 | 2013-03-21 13:21:49 -0700 | [diff] [blame] | 13918 |  | 
 | 13919 | case $ac_sys_system in | 
 | 13920 |     Linux*|GNU*) | 
 | 13921 | 	EXT_SUFFIX=.${SOABI}${SHLIB_SUFFIX};; | 
 | 13922 |     *) | 
 | 13923 | 	EXT_SUFFIX=${SHLIB_SUFFIX};; | 
 | 13924 | esac | 
 | 13925 |  | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 13926 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDVERSION" >&5 | 
 | 13927 | $as_echo_n "checking LDVERSION... " >&6; } | 
 | 13928 | LDVERSION='$(VERSION)$(ABIFLAGS)' | 
 | 13929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDVERSION" >&5 | 
 | 13930 | $as_echo "$LDVERSION" >&6; } | 
 | 13931 |  | 
| doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 13932 |  | 
 | 13933 | LIBPL="${prefix}/lib/python${VERSION}/config-${LDVERSION}" | 
 | 13934 |  | 
 | 13935 |  | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 13936 | # Check whether right shifting a negative integer extends the sign bit | 
 | 13937 | # or fills with zeros (like the Cray J90, according to Tim Peters). | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13938 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether right shift extends the sign bit" >&5 | 
 | 13939 | $as_echo_n "checking whether right shift extends the sign bit... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13940 | if ${ac_cv_rshift_extends_sign+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13941 |   $as_echo_n "(cached) " >&6 | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 13942 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13943 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13944 | if test "$cross_compiling" = yes; then : | 
| Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 13945 |   ac_cv_rshift_extends_sign=yes | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 13946 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13947 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13948 | /* end confdefs.h.  */ | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 13949 |  | 
 | 13950 | int main() | 
 | 13951 | { | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 13952 | 	exit(((-1)>>3 == -1) ? 0 : 1); | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 13953 | } | 
 | 13954 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13955 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13956 | if ac_fn_c_try_run "$LINENO"; then : | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 13957 |   ac_cv_rshift_extends_sign=yes | 
 | 13958 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13959 |   ac_cv_rshift_extends_sign=no | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 13960 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13961 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 13962 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 13963 | fi | 
 | 13964 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13965 | fi | 
 | 13966 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rshift_extends_sign" >&5 | 
 | 13968 | $as_echo "$ac_cv_rshift_extends_sign" >&6; } | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 13969 | if test "$ac_cv_rshift_extends_sign" = no | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 13970 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13971 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13972 | $as_echo "#define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1" >>confdefs.h | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 13973 |  | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 13974 | fi | 
 | 13975 |  | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 13976 | # check for getc_unlocked and related locking functions | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13977 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getc_unlocked() and friends" >&5 | 
 | 13978 | $as_echo_n "checking for getc_unlocked() and friends... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13979 | if ${ac_cv_have_getc_unlocked+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13980 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 13981 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13982 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13983 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13984 | /* end confdefs.h.  */ | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 13985 | #include <stdio.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13986 | int | 
 | 13987 | main () | 
 | 13988 | { | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 13989 |  | 
 | 13990 | 	FILE *f = fopen("/dev/null", "r"); | 
 | 13991 | 	flockfile(f); | 
 | 13992 | 	getc_unlocked(f); | 
 | 13993 | 	funlockfile(f); | 
 | 13994 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13995 |   ; | 
 | 13996 |   return 0; | 
 | 13997 | } | 
 | 13998 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13999 | if ac_fn_c_try_link "$LINENO"; then : | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 14000 |   ac_cv_have_getc_unlocked=yes | 
 | 14001 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14002 |   ac_cv_have_getc_unlocked=no | 
 | 14003 | fi | 
 | 14004 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 14005 |     conftest$ac_exeext conftest.$ac_ext | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 14006 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14007 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getc_unlocked" >&5 | 
 | 14009 | $as_echo "$ac_cv_have_getc_unlocked" >&6; } | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 14010 | if test "$ac_cv_have_getc_unlocked" = yes | 
 | 14011 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14012 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14013 | $as_echo "#define HAVE_GETC_UNLOCKED 1" >>confdefs.h | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 14014 |  | 
 | 14015 | fi | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 14016 |  | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 14017 | # check where readline lives | 
| Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 14018 | # save the value of LIBS so we don't actually link Python with readline | 
 | 14019 | LIBS_no_readline=$LIBS | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 14020 |  | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 14021 | # On some systems we need to link readline to a termcap compatible | 
 | 14022 | # library.  NOTE: Keep the precedence of listed libraries synchronised | 
 | 14023 | # with setup.py. | 
 | 14024 | py_cv_lib_readline=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14025 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link readline libs" >&5 | 
 | 14026 | $as_echo_n "checking how to link readline libs... " >&6; } | 
| doko@ubuntu.com | f2967c7 | 2012-06-30 17:32:23 +0200 | [diff] [blame] | 14027 | for py_libtermcap in "" tinfo ncursesw ncurses curses termcap; do | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 14028 |   if test -z "$py_libtermcap"; then | 
 | 14029 |     READLINE_LIBS="-lreadline" | 
 | 14030 |   else | 
 | 14031 |     READLINE_LIBS="-lreadline -l$py_libtermcap" | 
 | 14032 |   fi | 
 | 14033 |   LIBS="$READLINE_LIBS $LIBS_no_readline" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14034 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 14035 | /* end confdefs.h.  */ | 
 | 14036 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14037 | /* Override any GCC internal prototype to avoid an error. | 
 | 14038 |    Use char because int might match the return type of a GCC | 
 | 14039 |    builtin and then its argument prototype would still apply.  */ | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 14040 | #ifdef __cplusplus | 
 | 14041 | extern "C" | 
 | 14042 | #endif | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 14043 | char readline (); | 
 | 14044 | int | 
 | 14045 | main () | 
 | 14046 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14047 | return readline (); | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 14048 |   ; | 
 | 14049 |   return 0; | 
 | 14050 | } | 
 | 14051 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14052 | if ac_fn_c_try_link "$LINENO"; then : | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 14053 |   py_cv_lib_readline=yes | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 14054 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14055 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 14056 |     conftest$ac_exeext conftest.$ac_ext | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 14057 |   if test $py_cv_lib_readline = yes; then | 
 | 14058 |     break | 
 | 14059 |   fi | 
 | 14060 | done | 
 | 14061 | # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts | 
 | 14062 | #AC_SUBST([READLINE_LIBS]) | 
| Gregory P. Smith | 3856c37 | 2008-09-07 19:24:00 +0000 | [diff] [blame] | 14063 | if test $py_cv_lib_readline = no; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14064 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | 
 | 14065 | $as_echo "none" >&6; } | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 14066 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14067 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE_LIBS" >&5 | 
 | 14068 | $as_echo "$READLINE_LIBS" >&6; } | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 14069 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14070 | $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 14071 |  | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 14072 | fi | 
 | 14073 |  | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14074 | # check for readline 2.1 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14075 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_callback_handler_install in -lreadline" >&5 | 
 | 14076 | $as_echo_n "checking for rl_callback_handler_install in -lreadline... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14077 | if ${ac_cv_lib_readline_rl_callback_handler_install+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14078 |   $as_echo_n "(cached) " >&6 | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14079 | else | 
 | 14080 |   ac_check_lib_save_LIBS=$LIBS | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 14081 | LIBS="-lreadline $READLINE_LIBS $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14082 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14083 | /* end confdefs.h.  */ | 
 | 14084 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14085 | /* Override any GCC internal prototype to avoid an error. | 
 | 14086 |    Use char because int might match the return type of a GCC | 
 | 14087 |    builtin and then its argument prototype would still apply.  */ | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14088 | #ifdef __cplusplus | 
 | 14089 | extern "C" | 
 | 14090 | #endif | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14091 | char rl_callback_handler_install (); | 
 | 14092 | int | 
 | 14093 | main () | 
 | 14094 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14095 | return rl_callback_handler_install (); | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14096 |   ; | 
 | 14097 |   return 0; | 
 | 14098 | } | 
 | 14099 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14100 | if ac_fn_c_try_link "$LINENO"; then : | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14101 |   ac_cv_lib_readline_rl_callback_handler_install=yes | 
 | 14102 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14103 |   ac_cv_lib_readline_rl_callback_handler_install=no | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14104 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14105 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 14106 |     conftest$ac_exeext conftest.$ac_ext | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14107 | LIBS=$ac_check_lib_save_LIBS | 
 | 14108 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5 | 
 | 14110 | $as_echo "$ac_cv_lib_readline_rl_callback_handler_install" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14111 | if test "x$ac_cv_lib_readline_rl_callback_handler_install" = xyes; then : | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14112 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14113 | $as_echo "#define HAVE_RL_CALLBACK 1" >>confdefs.h | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14114 |  | 
 | 14115 | fi | 
 | 14116 |  | 
 | 14117 |  | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 14118 | # check for readline 2.2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14119 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14120 | /* end confdefs.h.  */ | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 14121 | #include <readline/readline.h> | 
 | 14122 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14123 | if ac_fn_c_try_cpp "$LINENO"; then : | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 14124 |   have_readline=yes | 
 | 14125 | else | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 14126 |   have_readline=no | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 14127 |  | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 14128 | fi | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 14129 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 14130 | if test $have_readline = yes | 
 | 14131 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14132 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14133 | /* end confdefs.h.  */ | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 14134 | #include <readline/readline.h> | 
 | 14135 |  | 
 | 14136 | _ACEOF | 
 | 14137 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14138 |   $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] | 14139 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14140 | $as_echo "#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1" >>confdefs.h | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 14141 |  | 
 | 14142 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 14143 | rm -f conftest* | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 14144 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14145 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Antoine Pitrou | d513177 | 2009-10-26 19:22:14 +0000 | [diff] [blame] | 14146 | /* end confdefs.h.  */ | 
 | 14147 | #include <readline/readline.h> | 
 | 14148 |  | 
 | 14149 | _ACEOF | 
 | 14150 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14151 |   $EGREP "extern int rl_completion_suppress_append;" >/dev/null 2>&1; then : | 
| Antoine Pitrou | d513177 | 2009-10-26 19:22:14 +0000 | [diff] [blame] | 14152 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14153 | $as_echo "#define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1" >>confdefs.h | 
| Antoine Pitrou | d513177 | 2009-10-26 19:22:14 +0000 | [diff] [blame] | 14154 |  | 
 | 14155 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 14156 | rm -f conftest* | 
| Antoine Pitrou | d513177 | 2009-10-26 19:22:14 +0000 | [diff] [blame] | 14157 |  | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 14158 | fi | 
 | 14159 |  | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 14160 | # check for readline 4.0 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14161 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_pre_input_hook in -lreadline" >&5 | 
 | 14162 | $as_echo_n "checking for rl_pre_input_hook in -lreadline... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14163 | if ${ac_cv_lib_readline_rl_pre_input_hook+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14164 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 14165 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14166 |   ac_check_lib_save_LIBS=$LIBS | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 14167 | LIBS="-lreadline $READLINE_LIBS $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14168 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14169 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14170 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14171 | /* Override any GCC internal prototype to avoid an error. | 
 | 14172 |    Use char because int might match the return type of a GCC | 
 | 14173 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14174 | #ifdef __cplusplus | 
 | 14175 | extern "C" | 
 | 14176 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14177 | char rl_pre_input_hook (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14178 | int | 
 | 14179 | main () | 
 | 14180 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14181 | return rl_pre_input_hook (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14182 |   ; | 
 | 14183 |   return 0; | 
 | 14184 | } | 
 | 14185 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14186 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14187 |   ac_cv_lib_readline_rl_pre_input_hook=yes | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 14188 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14189 |   ac_cv_lib_readline_rl_pre_input_hook=no | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 14190 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14191 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 14192 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14193 | LIBS=$ac_check_lib_save_LIBS | 
 | 14194 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5 | 
 | 14196 | $as_echo "$ac_cv_lib_readline_rl_pre_input_hook" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14197 | if test "x$ac_cv_lib_readline_rl_pre_input_hook" = xyes; then : | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14198 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14199 | $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] | 14200 |  | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 14201 | fi | 
 | 14202 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14203 |  | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 14204 | # also in 4.0 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14205 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_display_matches_hook in -lreadline" >&5 | 
 | 14206 | $as_echo_n "checking for rl_completion_display_matches_hook in -lreadline... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14207 | if ${ac_cv_lib_readline_rl_completion_display_matches_hook+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14208 |   $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 14209 | else | 
 | 14210 |   ac_check_lib_save_LIBS=$LIBS | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 14211 | LIBS="-lreadline $READLINE_LIBS $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14212 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 14213 | /* end confdefs.h.  */ | 
 | 14214 |  | 
 | 14215 | /* Override any GCC internal prototype to avoid an error. | 
 | 14216 |    Use char because int might match the return type of a GCC | 
 | 14217 |    builtin and then its argument prototype would still apply.  */ | 
 | 14218 | #ifdef __cplusplus | 
 | 14219 | extern "C" | 
 | 14220 | #endif | 
 | 14221 | char rl_completion_display_matches_hook (); | 
 | 14222 | int | 
 | 14223 | main () | 
 | 14224 | { | 
 | 14225 | return rl_completion_display_matches_hook (); | 
 | 14226 |   ; | 
 | 14227 |   return 0; | 
 | 14228 | } | 
 | 14229 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14230 | if ac_fn_c_try_link "$LINENO"; then : | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 14231 |   ac_cv_lib_readline_rl_completion_display_matches_hook=yes | 
 | 14232 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14233 |   ac_cv_lib_readline_rl_completion_display_matches_hook=no | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 14234 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14235 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 14236 |     conftest$ac_exeext conftest.$ac_ext | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 14237 | LIBS=$ac_check_lib_save_LIBS | 
 | 14238 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5 | 
 | 14240 | $as_echo "$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14241 | if test "x$ac_cv_lib_readline_rl_completion_display_matches_hook" = xyes; then : | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 14242 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14243 | $as_echo "#define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1" >>confdefs.h | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 14244 |  | 
 | 14245 | fi | 
 | 14246 |  | 
 | 14247 |  | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 14248 | # check for readline 4.2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14249 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_matches in -lreadline" >&5 | 
 | 14250 | $as_echo_n "checking for rl_completion_matches in -lreadline... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14251 | if ${ac_cv_lib_readline_rl_completion_matches+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14252 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 14253 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14254 |   ac_check_lib_save_LIBS=$LIBS | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 14255 | LIBS="-lreadline $READLINE_LIBS $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14256 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14257 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14258 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14259 | /* Override any GCC internal prototype to avoid an error. | 
 | 14260 |    Use char because int might match the return type of a GCC | 
 | 14261 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14262 | #ifdef __cplusplus | 
 | 14263 | extern "C" | 
 | 14264 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14265 | char rl_completion_matches (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14266 | int | 
 | 14267 | main () | 
 | 14268 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14269 | return rl_completion_matches (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14270 |   ; | 
 | 14271 |   return 0; | 
 | 14272 | } | 
 | 14273 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14274 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14275 |   ac_cv_lib_readline_rl_completion_matches=yes | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 14276 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14277 |   ac_cv_lib_readline_rl_completion_matches=no | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 14278 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14279 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 14280 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14281 | LIBS=$ac_check_lib_save_LIBS | 
 | 14282 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_matches" >&5 | 
 | 14284 | $as_echo "$ac_cv_lib_readline_rl_completion_matches" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14285 | if test "x$ac_cv_lib_readline_rl_completion_matches" = xyes; then : | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14286 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14287 | $as_echo "#define HAVE_RL_COMPLETION_MATCHES 1" >>confdefs.h | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 14288 |  | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 14289 | fi | 
 | 14290 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 14291 |  | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14292 | # also in readline 4.2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14293 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14294 | /* end confdefs.h.  */ | 
 | 14295 | #include <readline/readline.h> | 
 | 14296 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14297 | if ac_fn_c_try_cpp "$LINENO"; then : | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14298 |   have_readline=yes | 
 | 14299 | else | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14300 |   have_readline=no | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 14301 |  | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14302 | fi | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 14303 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14304 | if test $have_readline = yes | 
 | 14305 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14306 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14307 | /* end confdefs.h.  */ | 
 | 14308 | #include <readline/readline.h> | 
 | 14309 |  | 
 | 14310 | _ACEOF | 
 | 14311 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14312 |   $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then : | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14313 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14314 | $as_echo "#define HAVE_RL_CATCH_SIGNAL 1" >>confdefs.h | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14315 |  | 
 | 14316 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 14317 | rm -f conftest* | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14318 |  | 
 | 14319 | fi | 
 | 14320 |  | 
| Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 14321 | # End of readline checks: restore LIBS | 
 | 14322 | LIBS=$LIBS_no_readline | 
 | 14323 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14324 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken nice()" >&5 | 
 | 14325 | $as_echo_n "checking for broken nice()... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14326 | if ${ac_cv_broken_nice+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14327 |   $as_echo_n "(cached) " >&6 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14328 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14329 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14330 | if test "$cross_compiling" = yes; then : | 
| Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 14331 |   ac_cv_broken_nice=no | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 14332 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14333 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14334 | /* end confdefs.h.  */ | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 14335 |  | 
 | 14336 | int main() | 
 | 14337 | { | 
 | 14338 | 	int val1 = nice(1); | 
 | 14339 | 	if (val1 != -1 && val1 == nice(2)) | 
 | 14340 | 		exit(0); | 
 | 14341 | 	exit(1); | 
 | 14342 | } | 
 | 14343 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14344 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14345 | if ac_fn_c_try_run "$LINENO"; then : | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 14346 |   ac_cv_broken_nice=yes | 
 | 14347 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14348 |   ac_cv_broken_nice=no | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 14349 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14350 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 14351 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 14352 | fi | 
 | 14353 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14354 | fi | 
 | 14355 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_nice" >&5 | 
 | 14357 | $as_echo "$ac_cv_broken_nice" >&6; } | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 14358 | if test "$ac_cv_broken_nice" = yes | 
 | 14359 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14360 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14361 | $as_echo "#define HAVE_BROKEN_NICE 1" >>confdefs.h | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 14362 |  | 
 | 14363 | fi | 
 | 14364 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14365 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken poll()" >&5 | 
 | 14366 | $as_echo_n "checking for broken poll()... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14367 | if ${ac_cv_broken_poll+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14368 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14369 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14370 |   if test "$cross_compiling" = yes; then : | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 14371 |   ac_cv_broken_poll=no | 
 | 14372 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14373 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 14374 | /* end confdefs.h.  */ | 
 | 14375 |  | 
 | 14376 | #include <poll.h> | 
 | 14377 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14378 | int main() | 
 | 14379 | { | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 14380 |     struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 }; | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14381 |     int poll_test; | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 14382 |  | 
 | 14383 |     close (42); | 
 | 14384 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14385 |     poll_test = poll(&poll_struct, 1, 0); | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 14386 |     if (poll_test < 0) | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14387 |         return 0; | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 14388 |     else if (poll_test == 0 && poll_struct.revents != POLLNVAL) | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14389 |         return 0; | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 14390 |     else | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14391 |         return 1; | 
 | 14392 | } | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 14393 |  | 
 | 14394 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14395 | if ac_fn_c_try_run "$LINENO"; then : | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 14396 |   ac_cv_broken_poll=yes | 
 | 14397 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14398 |   ac_cv_broken_poll=no | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 14399 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14400 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 14401 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 14402 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14403 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14404 | fi | 
 | 14405 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14406 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_poll" >&5 | 
 | 14407 | $as_echo "$ac_cv_broken_poll" >&6; } | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 14408 | if test "$ac_cv_broken_poll" = yes | 
 | 14409 | then | 
 | 14410 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14411 | $as_echo "#define HAVE_BROKEN_POLL 1" >>confdefs.h | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 14412 |  | 
 | 14413 | fi | 
 | 14414 |  | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14415 | # 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] | 14416 | # (which is not required by ISO C or UNIX spec) and/or if we support | 
 | 14417 | # tzname[] | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14418 | 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] | 14419 | #include <$ac_cv_struct_tm> | 
 | 14420 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14421 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14422 | if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then : | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14423 |  | 
 | 14424 | cat >>confdefs.h <<_ACEOF | 
 | 14425 | #define HAVE_STRUCT_TM_TM_ZONE 1 | 
 | 14426 | _ACEOF | 
 | 14427 |  | 
 | 14428 |  | 
 | 14429 | fi | 
 | 14430 |  | 
 | 14431 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then | 
 | 14432 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14433 | $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14434 |  | 
 | 14435 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14436 |   ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> | 
 | 14437 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14438 | if test "x$ac_cv_have_decl_tzname" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14439 |   ac_have_decl=1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14440 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14441 |   ac_have_decl=0 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14442 | fi | 
 | 14443 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14444 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14445 | #define HAVE_DECL_TZNAME $ac_have_decl | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14446 | _ACEOF | 
 | 14447 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14448 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 | 
 | 14449 | $as_echo_n "checking for tzname... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14450 | if ${ac_cv_var_tzname+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14451 |   $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14452 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14453 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14454 | /* end confdefs.h.  */ | 
 | 14455 | #include <time.h> | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14456 | #if !HAVE_DECL_TZNAME | 
 | 14457 | extern char *tzname[]; | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14458 | #endif | 
 | 14459 |  | 
 | 14460 | int | 
 | 14461 | main () | 
 | 14462 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14463 | return tzname[0][0]; | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14464 |   ; | 
 | 14465 |   return 0; | 
 | 14466 | } | 
 | 14467 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14468 | if ac_fn_c_try_link "$LINENO"; then : | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14469 |   ac_cv_var_tzname=yes | 
 | 14470 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14471 |   ac_cv_var_tzname=no | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14472 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14473 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 14474 |     conftest$ac_exeext conftest.$ac_ext | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14475 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 | 
 | 14477 | $as_echo "$ac_cv_var_tzname" >&6; } | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14478 |   if test $ac_cv_var_tzname = yes; then | 
 | 14479 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14480 | $as_echo "#define HAVE_TZNAME 1" >>confdefs.h | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14481 |  | 
 | 14482 |   fi | 
 | 14483 | fi | 
 | 14484 |  | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 14485 |  | 
| Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 14486 | # check tzset(3) exists and works like we expect it to | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14487 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working tzset()" >&5 | 
 | 14488 | $as_echo_n "checking for working tzset()... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14489 | if ${ac_cv_working_tzset+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14490 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 14491 | else | 
 | 14492 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14493 | if test "$cross_compiling" = yes; then : | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 14494 |   ac_cv_working_tzset=no | 
 | 14495 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14496 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14497 | /* end confdefs.h.  */ | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 14498 |  | 
 | 14499 | #include <stdlib.h> | 
 | 14500 | #include <time.h> | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 14501 | #include <string.h> | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14502 |  | 
 | 14503 | #if HAVE_TZNAME | 
 | 14504 | extern char *tzname[]; | 
 | 14505 | #endif | 
 | 14506 |  | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 14507 | int main() | 
 | 14508 | { | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 14509 | 	/* Note that we need to ensure that not only does tzset(3) | 
 | 14510 | 	   do 'something' with localtime, but it works as documented | 
 | 14511 | 	   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] | 14512 | 	   This includes making sure that tzname is set properly if | 
 | 14513 | 	   tm->tm_zone does not exist since it is the alternative way | 
 | 14514 | 	   of getting timezone info. | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 14515 |  | 
 | 14516 | 	   Red Hat 6.2 doesn't understand the southern hemisphere | 
| Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 14517 | 	   after New Year's Day. | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 14518 | 	*/ | 
 | 14519 |  | 
| Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 14520 | 	time_t groundhogday = 1044144000; /* GMT-based */ | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 14521 | 	time_t midyear = groundhogday + (365 * 24 * 3600 / 2); | 
 | 14522 |  | 
| Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 14523 | 	putenv("TZ=UTC+0"); | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 14524 | 	tzset(); | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 14525 | 	if (localtime(&groundhogday)->tm_hour != 0) | 
 | 14526 | 	    exit(1); | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14527 | #if HAVE_TZNAME | 
 | 14528 | 	/* For UTC, tzname[1] is sometimes "", sometimes "   " */ | 
 | 14529 | 	if (strcmp(tzname[0], "UTC") || | 
 | 14530 | 		(tzname[1][0] != 0 && tzname[1][0] != ' ')) | 
 | 14531 | 	    exit(1); | 
 | 14532 | #endif | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 14533 |  | 
| Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 14534 | 	putenv("TZ=EST+5EDT,M4.1.0,M10.5.0"); | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 14535 | 	tzset(); | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 14536 | 	if (localtime(&groundhogday)->tm_hour != 19) | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 14537 | 	    exit(1); | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14538 | #if HAVE_TZNAME | 
 | 14539 | 	if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT")) | 
 | 14540 | 	    exit(1); | 
 | 14541 | #endif | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 14542 |  | 
 | 14543 | 	putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0"); | 
 | 14544 | 	tzset(); | 
 | 14545 | 	if (localtime(&groundhogday)->tm_hour != 11) | 
 | 14546 | 	    exit(1); | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14547 | #if HAVE_TZNAME | 
 | 14548 | 	if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT")) | 
 | 14549 | 	    exit(1); | 
 | 14550 | #endif | 
 | 14551 |  | 
 | 14552 | #if HAVE_STRUCT_TM_TM_ZONE | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 14553 | 	if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT")) | 
 | 14554 | 	    exit(1); | 
 | 14555 | 	if (strcmp(localtime(&midyear)->tm_zone, "AEST")) | 
 | 14556 | 	    exit(1); | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14557 | #endif | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 14558 |  | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 14559 | 	exit(0); | 
 | 14560 | } | 
 | 14561 |  | 
 | 14562 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14563 | if ac_fn_c_try_run "$LINENO"; then : | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 14564 |   ac_cv_working_tzset=yes | 
 | 14565 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14566 |   ac_cv_working_tzset=no | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 14567 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14568 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 14569 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 14570 | fi | 
 | 14571 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14572 | fi | 
 | 14573 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_tzset" >&5 | 
 | 14575 | $as_echo "$ac_cv_working_tzset" >&6; } | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 14576 | if test "$ac_cv_working_tzset" = yes | 
 | 14577 | then | 
 | 14578 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14579 | $as_echo "#define HAVE_WORKING_TZSET 1" >>confdefs.h | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 14580 |  | 
 | 14581 | fi | 
 | 14582 |  | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 14583 | # Look for subsecond timestamps in struct stat | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14584 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec in struct stat" >&5 | 
 | 14585 | $as_echo_n "checking for tv_nsec in struct stat... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14586 | if ${ac_cv_stat_tv_nsec+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14587 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 14588 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14589 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14590 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 14591 | #include <sys/stat.h> | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 14592 | int | 
 | 14593 | main () | 
 | 14594 | { | 
 | 14595 |  | 
 | 14596 | struct stat st; | 
 | 14597 | st.st_mtim.tv_nsec = 1; | 
 | 14598 |  | 
 | 14599 |   ; | 
 | 14600 |   return 0; | 
 | 14601 | } | 
 | 14602 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14603 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | a32c994 | 2002-09-09 16:17:47 +0000 | [diff] [blame] | 14604 |   ac_cv_stat_tv_nsec=yes | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 14605 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14606 |   ac_cv_stat_tv_nsec=no | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 14607 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14608 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 14609 | fi | 
 | 14610 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec" >&5 | 
 | 14612 | $as_echo "$ac_cv_stat_tv_nsec" >&6; } | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 14613 | if test "$ac_cv_stat_tv_nsec" = yes | 
 | 14614 | then | 
 | 14615 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14616 | $as_echo "#define HAVE_STAT_TV_NSEC 1" >>confdefs.h | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 14617 |  | 
 | 14618 | fi | 
 | 14619 |  | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 14620 | # Look for BSD style subsecond timestamps in struct stat | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14621 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec2 in struct stat" >&5 | 
 | 14622 | $as_echo_n "checking for tv_nsec2 in struct stat... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14623 | if ${ac_cv_stat_tv_nsec2+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14624 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 14625 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14626 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 14627 | /* end confdefs.h.  */ | 
 | 14628 | #include <sys/stat.h> | 
 | 14629 | int | 
 | 14630 | main () | 
 | 14631 | { | 
 | 14632 |  | 
 | 14633 | struct stat st; | 
 | 14634 | st.st_mtimespec.tv_nsec = 1; | 
 | 14635 |  | 
 | 14636 |   ; | 
 | 14637 |   return 0; | 
 | 14638 | } | 
 | 14639 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14640 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 14641 |   ac_cv_stat_tv_nsec2=yes | 
 | 14642 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14643 |   ac_cv_stat_tv_nsec2=no | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 14644 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14645 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 14646 | fi | 
 | 14647 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec2" >&5 | 
 | 14649 | $as_echo "$ac_cv_stat_tv_nsec2" >&6; } | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 14650 | if test "$ac_cv_stat_tv_nsec2" = yes | 
 | 14651 | then | 
 | 14652 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14653 | $as_echo "#define HAVE_STAT_TV_NSEC2 1" >>confdefs.h | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 14654 |  | 
 | 14655 | fi | 
 | 14656 |  | 
| doko@ubuntu.com | 1a4f561 | 2014-04-17 20:13:44 +0200 | [diff] [blame^] | 14657 | # first curses header check | 
| doko@ubuntu.com | 9dc823d | 2012-07-07 03:06:42 +0200 | [diff] [blame] | 14658 | ac_save_cppflags="$CPPFLAGS" | 
 | 14659 | CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw" | 
| doko@ubuntu.com | 1a4f561 | 2014-04-17 20:13:44 +0200 | [diff] [blame^] | 14660 |  | 
 | 14661 | for ac_header in curses.h ncurses.h | 
 | 14662 | do : | 
 | 14663 |   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
 | 14664 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | 
 | 14665 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 
 | 14666 |   cat >>confdefs.h <<_ACEOF | 
 | 14667 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
 | 14668 | _ACEOF | 
 | 14669 |  | 
 | 14670 | fi | 
 | 14671 |  | 
 | 14672 | done | 
 | 14673 |  | 
 | 14674 |  | 
 | 14675 | # On Solaris, term.h requires curses.h | 
 | 14676 | for ac_header in term.h | 
 | 14677 | do : | 
 | 14678 |   ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" " | 
 | 14679 | #ifdef HAVE_CURSES_H | 
 | 14680 | #include <curses.h> | 
 | 14681 | #endif | 
 | 14682 |  | 
 | 14683 | " | 
 | 14684 | if test "x$ac_cv_header_term_h" = xyes; then : | 
 | 14685 |   cat >>confdefs.h <<_ACEOF | 
 | 14686 | #define HAVE_TERM_H 1 | 
 | 14687 | _ACEOF | 
 | 14688 |  | 
 | 14689 | fi | 
 | 14690 |  | 
 | 14691 | done | 
 | 14692 |  | 
 | 14693 |  | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 14694 | # 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] | 14695 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mvwdelch is an expression" >&5 | 
 | 14696 | $as_echo_n "checking whether mvwdelch is an expression... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14697 | if ${ac_cv_mvwdelch_is_expression+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14698 |   $as_echo_n "(cached) " >&6 | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 14699 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14700 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14701 | /* end confdefs.h.  */ | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 14702 | #include <curses.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14703 | int | 
 | 14704 | main () | 
 | 14705 | { | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 14706 |  | 
 | 14707 |   int rtn; | 
 | 14708 |   rtn = mvwdelch(0,0,0); | 
 | 14709 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14710 |   ; | 
 | 14711 |   return 0; | 
 | 14712 | } | 
 | 14713 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14714 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 14715 |   ac_cv_mvwdelch_is_expression=yes | 
 | 14716 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14717 |   ac_cv_mvwdelch_is_expression=no | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 14718 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14719 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 14720 | fi | 
 | 14721 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mvwdelch_is_expression" >&5 | 
 | 14723 | $as_echo "$ac_cv_mvwdelch_is_expression" >&6; } | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 14724 |  | 
 | 14725 | if test "$ac_cv_mvwdelch_is_expression" = yes | 
 | 14726 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14727 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14728 | $as_echo "#define MVWDELCH_IS_EXPRESSION 1" >>confdefs.h | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 14729 |  | 
 | 14730 | fi | 
 | 14731 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14732 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether WINDOW has _flags" >&5 | 
 | 14733 | $as_echo_n "checking whether WINDOW has _flags... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14734 | if ${ac_cv_window_has_flags+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14735 |   $as_echo_n "(cached) " >&6 | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 14736 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14737 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14738 | /* end confdefs.h.  */ | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 14739 | #include <curses.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14740 | int | 
 | 14741 | main () | 
 | 14742 | { | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 14743 |  | 
 | 14744 |   WINDOW *w; | 
 | 14745 |   w->_flags = 0; | 
 | 14746 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14747 |   ; | 
 | 14748 |   return 0; | 
 | 14749 | } | 
 | 14750 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14751 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 14752 |   ac_cv_window_has_flags=yes | 
 | 14753 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14754 |   ac_cv_window_has_flags=no | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 14755 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14756 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 14757 | fi | 
 | 14758 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_window_has_flags" >&5 | 
 | 14760 | $as_echo "$ac_cv_window_has_flags" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14761 |  | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 14762 |  | 
 | 14763 | if test "$ac_cv_window_has_flags" = yes | 
 | 14764 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14765 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14766 | $as_echo "#define WINDOW_HAS_FLAGS 1" >>confdefs.h | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 14767 |  | 
 | 14768 | fi | 
 | 14769 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14770 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_term_resized" >&5 | 
 | 14771 | $as_echo_n "checking for is_term_resized... " >&6; } | 
 | 14772 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 14773 | /* end confdefs.h.  */ | 
 | 14774 | #include <curses.h> | 
 | 14775 | int | 
 | 14776 | main () | 
 | 14777 | { | 
 | 14778 | void *x=is_term_resized | 
 | 14779 |   ; | 
 | 14780 |   return 0; | 
 | 14781 | } | 
 | 14782 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14783 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 14784 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14785 | $as_echo "#define HAVE_CURSES_IS_TERM_RESIZED 1" >>confdefs.h | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 14786 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 14787 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14788 | $as_echo "yes" >&6; } | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 14789 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14790 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 14791 | $as_echo "no" >&6; } | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 14792 |  | 
 | 14793 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14794 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 14795 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14796 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resize_term" >&5 | 
 | 14797 | $as_echo_n "checking for resize_term... " >&6; } | 
 | 14798 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 14799 | /* end confdefs.h.  */ | 
 | 14800 | #include <curses.h> | 
 | 14801 | int | 
 | 14802 | main () | 
 | 14803 | { | 
 | 14804 | void *x=resize_term | 
 | 14805 |   ; | 
 | 14806 |   return 0; | 
 | 14807 | } | 
 | 14808 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14809 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 14810 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14811 | $as_echo "#define HAVE_CURSES_RESIZE_TERM 1" >>confdefs.h | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 14812 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 14813 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14814 | $as_echo "yes" >&6; } | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 14815 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14816 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 14817 | $as_echo "no" >&6; } | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 14818 |  | 
 | 14819 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14820 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 14821 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14822 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resizeterm" >&5 | 
 | 14823 | $as_echo_n "checking for resizeterm... " >&6; } | 
 | 14824 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 14825 | /* end confdefs.h.  */ | 
 | 14826 | #include <curses.h> | 
 | 14827 | int | 
 | 14828 | main () | 
 | 14829 | { | 
 | 14830 | void *x=resizeterm | 
 | 14831 |   ; | 
 | 14832 |   return 0; | 
 | 14833 | } | 
 | 14834 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14835 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 14836 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14837 | $as_echo "#define HAVE_CURSES_RESIZETERM 1" >>confdefs.h | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 14838 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 14839 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14840 | $as_echo "yes" >&6; } | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 14841 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14842 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 14843 | $as_echo "no" >&6; } | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 14844 |  | 
 | 14845 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14846 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| doko@ubuntu.com | 9dc823d | 2012-07-07 03:06:42 +0200 | [diff] [blame] | 14847 | # last curses configure check | 
 | 14848 | CPPFLAGS=$ac_save_cppflags | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14849 |  | 
| doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 14850 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for device files" >&5 | 
 | 14851 | $as_echo "$as_me: checking for device files" >&6;} | 
 | 14852 |  | 
 | 14853 | if test "x$cross_compiling" = xyes; then | 
 | 14854 |   if test "${ac_cv_file__dev_ptmx+set}" != set; then | 
 | 14855 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5 | 
 | 14856 | $as_echo_n "checking for /dev/ptmx... " >&6; } | 
 | 14857 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5 | 
 | 14858 | $as_echo "not set" >&6; } | 
 | 14859 |     as_fn_error $? "set ac_cv_file__dev_ptmx to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5 | 
 | 14860 |   fi | 
 | 14861 |   if test "${ac_cv_file__dev_ptc+set}" != set; then | 
 | 14862 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5 | 
 | 14863 | $as_echo_n "checking for /dev/ptc... " >&6; } | 
 | 14864 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5 | 
 | 14865 | $as_echo "not set" >&6; } | 
 | 14866 |     as_fn_error $? "set ac_cv_file__dev_ptc to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5 | 
 | 14867 |   fi | 
 | 14868 | fi | 
 | 14869 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14870 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5 | 
 | 14871 | $as_echo_n "checking for /dev/ptmx... " >&6; } | 
| doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 14872 | if ${ac_cv_file__dev_ptmx+:} false; then : | 
 | 14873 |   $as_echo_n "(cached) " >&6 | 
 | 14874 | else | 
 | 14875 |   test "$cross_compiling" = yes && | 
 | 14876 |   as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 | 
 | 14877 | if test -r "/dev/ptmx"; then | 
 | 14878 |   ac_cv_file__dev_ptmx=yes | 
 | 14879 | else | 
 | 14880 |   ac_cv_file__dev_ptmx=no | 
 | 14881 | fi | 
 | 14882 | fi | 
 | 14883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptmx" >&5 | 
 | 14884 | $as_echo "$ac_cv_file__dev_ptmx" >&6; } | 
 | 14885 | if test "x$ac_cv_file__dev_ptmx" = xyes; then : | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 14886 |  | 
| doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 14887 | fi | 
 | 14888 |  | 
 | 14889 | if test "x$ac_cv_file__dev_ptmx" = xyes; then | 
| Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 14890 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14891 | $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h | 
| Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 14892 |  | 
| Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 14893 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14894 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5 | 
 | 14895 | $as_echo_n "checking for /dev/ptc... " >&6; } | 
| doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 14896 | if ${ac_cv_file__dev_ptc+:} false; then : | 
 | 14897 |   $as_echo_n "(cached) " >&6 | 
 | 14898 | else | 
 | 14899 |   test "$cross_compiling" = yes && | 
 | 14900 |   as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 | 
 | 14901 | if test -r "/dev/ptc"; then | 
 | 14902 |   ac_cv_file__dev_ptc=yes | 
 | 14903 | else | 
 | 14904 |   ac_cv_file__dev_ptc=no | 
 | 14905 | fi | 
 | 14906 | fi | 
 | 14907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptc" >&5 | 
 | 14908 | $as_echo "$ac_cv_file__dev_ptc" >&6; } | 
 | 14909 | if test "x$ac_cv_file__dev_ptc" = xyes; then : | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 14910 |  | 
| doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 14911 | fi | 
 | 14912 |  | 
 | 14913 | if test "x$ac_cv_file__dev_ptc" = xyes; then | 
| Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 14914 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14915 | $as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h | 
| Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 14916 |  | 
| Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 14917 | fi | 
 | 14918 |  | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 14919 | if test "$have_long_long" = yes | 
 | 14920 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14921 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for %lld and %llu printf() format support" >&5 | 
 | 14922 | $as_echo_n "checking for %lld and %llu printf() format support... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14923 |   if ${ac_cv_have_long_long_format+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14924 |   $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 14925 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14926 |   if test "$cross_compiling" = yes; then : | 
| Matthias Klose | 3b739b1 | 2012-03-15 19:31:06 +0100 | [diff] [blame] | 14927 |   ac_cv_have_long_long_format="cross -- assuming no" | 
 | 14928 |    if test x$GCC = xyes; then | 
 | 14929 |     save_CFLAGS=$CFLAGS | 
 | 14930 |     CFLAGS="$CFLAGS -Werror -Wformat" | 
 | 14931 |     cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 14932 | /* end confdefs.h.  */ | 
 | 14933 |  | 
 | 14934 |         #include <stdio.h> | 
 | 14935 |         #include <stddef.h> | 
 | 14936 |  | 
 | 14937 | int | 
 | 14938 | main () | 
 | 14939 | { | 
 | 14940 |  | 
 | 14941 |       char *buffer; | 
 | 14942 |       sprintf(buffer, "%lld", (long long)123); | 
 | 14943 |       sprintf(buffer, "%lld", (long long)-123); | 
 | 14944 |       sprintf(buffer, "%llu", (unsigned long long)123); | 
 | 14945 |  | 
 | 14946 |   ; | 
 | 14947 |   return 0; | 
 | 14948 | } | 
 | 14949 | _ACEOF | 
 | 14950 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 14951 |   ac_cv_have_long_long_format=yes | 
 | 14952 |  | 
 | 14953 | fi | 
 | 14954 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 14955 |     CFLAGS=$save_CFLAGS | 
 | 14956 |    fi | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 14957 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14958 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 14959 | /* end confdefs.h.  */ | 
 | 14960 |  | 
 | 14961 |   #include <stdio.h> | 
 | 14962 |   #include <stddef.h> | 
 | 14963 |   #include <string.h> | 
 | 14964 |  | 
 | 14965 |   #ifdef HAVE_SYS_TYPES_H | 
 | 14966 |   #include <sys/types.h> | 
 | 14967 |   #endif | 
 | 14968 |  | 
 | 14969 |   int main() | 
 | 14970 |   { | 
 | 14971 |       char buffer[256]; | 
 | 14972 |  | 
 | 14973 |       if (sprintf(buffer, "%lld", (long long)123) < 0) | 
 | 14974 |           return 1; | 
 | 14975 |       if (strcmp(buffer, "123")) | 
 | 14976 |           return 1; | 
 | 14977 |  | 
 | 14978 |       if (sprintf(buffer, "%lld", (long long)-123) < 0) | 
 | 14979 |           return 1; | 
 | 14980 |       if (strcmp(buffer, "-123")) | 
 | 14981 |           return 1; | 
 | 14982 |  | 
 | 14983 |       if (sprintf(buffer, "%llu", (unsigned long long)123) < 0) | 
 | 14984 |           return 1; | 
 | 14985 |       if (strcmp(buffer, "123")) | 
 | 14986 |           return 1; | 
 | 14987 |  | 
 | 14988 |       return 0; | 
 | 14989 |   } | 
 | 14990 |  | 
 | 14991 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14992 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 14993 |   ac_cv_have_long_long_format=yes | 
 | 14994 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14995 |   ac_cv_have_long_long_format=no | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 14996 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14997 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 14998 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 14999 | fi | 
 | 15000 |  | 
 | 15001 |  | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15002 | fi | 
 | 15003 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15004 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_long_long_format" >&5 | 
 | 15005 | $as_echo "$ac_cv_have_long_long_format" >&6; } | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15006 | fi | 
 | 15007 |  | 
| Mark Dickinson | 89d7d41 | 2009-12-31 20:50:59 +0000 | [diff] [blame] | 15008 | if test "$ac_cv_have_long_long_format" = yes | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15009 | then | 
 | 15010 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15011 | $as_echo "#define PY_FORMAT_LONG_LONG \"ll\"" >>confdefs.h | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15012 |  | 
 | 15013 | fi | 
 | 15014 |  | 
| Ronald Oussoren | 3c1928a | 2009-11-19 17:15:31 +0000 | [diff] [blame] | 15015 | if test $ac_sys_system = Darwin | 
 | 15016 | then | 
 | 15017 | 	LIBS="$LIBS -framework CoreFoundation" | 
 | 15018 | fi | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15019 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15020 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for %zd printf() format support" >&5 | 
 | 15021 | $as_echo_n "checking for %zd printf() format support... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15022 | if ${ac_cv_have_size_t_format+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15023 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15024 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15025 |   if test "$cross_compiling" = yes; then : | 
| Benjamin Peterson | 8f326b2 | 2009-12-13 02:10:36 +0000 | [diff] [blame] | 15026 |   ac_cv_have_size_t_format="cross -- assuming yes" | 
 | 15027 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15028 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15029 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15030 | /* end confdefs.h.  */ | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15031 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15032 | #include <stdio.h> | 
 | 15033 | #include <stddef.h> | 
 | 15034 | #include <string.h> | 
 | 15035 |  | 
| Christian Heimes | 2c18161 | 2007-12-17 20:04:13 +0000 | [diff] [blame] | 15036 | #ifdef HAVE_SYS_TYPES_H | 
 | 15037 | #include <sys/types.h> | 
 | 15038 | #endif | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 15039 |  | 
 | 15040 | #ifdef HAVE_SSIZE_T | 
 | 15041 | typedef ssize_t Py_ssize_t; | 
 | 15042 | #elif SIZEOF_VOID_P == SIZEOF_LONG | 
 | 15043 | typedef long Py_ssize_t; | 
 | 15044 | #else | 
 | 15045 | typedef int Py_ssize_t; | 
 | 15046 | #endif | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15047 |  | 
| Christian Heimes | 2c18161 | 2007-12-17 20:04:13 +0000 | [diff] [blame] | 15048 | int main() | 
 | 15049 | { | 
 | 15050 |     char buffer[256]; | 
 | 15051 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15052 |     if(sprintf(buffer, "%zd", (size_t)123) < 0) | 
 | 15053 |        	return 1; | 
 | 15054 |  | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 15055 |     if (strcmp(buffer, "123")) | 
 | 15056 | 	return 1; | 
 | 15057 |  | 
 | 15058 |     if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0) | 
 | 15059 |        	return 1; | 
 | 15060 |  | 
 | 15061 |     if (strcmp(buffer, "-123")) | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15062 | 	return 1; | 
 | 15063 |  | 
 | 15064 |     return 0; | 
 | 15065 | } | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15066 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15067 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15068 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15069 |   ac_cv_have_size_t_format=yes | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15070 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15071 |   ac_cv_have_size_t_format=no | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15072 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15073 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 15074 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 15075 | fi | 
 | 15076 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15077 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_size_t_format" >&5 | 
 | 15079 | $as_echo "$ac_cv_have_size_t_format" >&6; } | 
| Benjamin Peterson | 8f326b2 | 2009-12-13 02:10:36 +0000 | [diff] [blame] | 15080 | if test "$ac_cv_have_size_t_format" != no ; then | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15081 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15082 | $as_echo "#define PY_FORMAT_SIZE_T \"z\"" >>confdefs.h | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15083 |  | 
 | 15084 | fi | 
 | 15085 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15086 | 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] | 15087 | #ifdef HAVE_SYS_TYPES_H | 
 | 15088 | #include <sys/types.h> | 
 | 15089 | #endif | 
 | 15090 | #ifdef HAVE_SYS_SOCKET_H | 
 | 15091 | #include <sys/socket.h> | 
 | 15092 | #endif | 
 | 15093 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15094 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15095 | if test "x$ac_cv_type_socklen_t" = xyes; then : | 
| Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 15096 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15097 | else | 
| Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 15098 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15099 | $as_echo "#define socklen_t int" >>confdefs.h | 
| Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 15100 |  | 
 | 15101 | fi | 
 | 15102 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15103 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15104 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken mbstowcs" >&5 | 
 | 15105 | $as_echo_n "checking for broken mbstowcs... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15106 | if ${ac_cv_broken_mbstowcs+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15107 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15108 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15109 |   if test "$cross_compiling" = yes; then : | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 15110 |   ac_cv_broken_mbstowcs=no | 
 | 15111 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15112 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 15113 | /* end confdefs.h.  */ | 
 | 15114 |  | 
| Stefan Krah | 19c2139 | 2012-11-22 23:47:32 +0100 | [diff] [blame] | 15115 | #include <stdio.h> | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 15116 | #include<stdlib.h> | 
 | 15117 | int main() { | 
 | 15118 |     size_t len = -1; | 
 | 15119 |     const char *str = "text"; | 
 | 15120 |     len = mbstowcs(NULL, str, 0); | 
 | 15121 |     return (len != 4); | 
 | 15122 | } | 
 | 15123 |  | 
 | 15124 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15125 | if ac_fn_c_try_run "$LINENO"; then : | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 15126 |   ac_cv_broken_mbstowcs=no | 
 | 15127 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15128 |   ac_cv_broken_mbstowcs=yes | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 15129 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15130 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 15131 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 15132 | fi | 
 | 15133 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15134 | fi | 
 | 15135 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15136 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_mbstowcs" >&5 | 
 | 15137 | $as_echo "$ac_cv_broken_mbstowcs" >&6; } | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 15138 | if test "$ac_cv_broken_mbstowcs" = yes | 
 | 15139 | then | 
 | 15140 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15141 | $as_echo "#define HAVE_BROKEN_MBSTOWCS 1" >>confdefs.h | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 15142 |  | 
 | 15143 | fi | 
 | 15144 |  | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15145 | # Check for --with-computed-gotos | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15146 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-computed-gotos" >&5 | 
 | 15147 | $as_echo_n "checking for --with-computed-gotos... " >&6; } | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15148 |  | 
 | 15149 | # Check whether --with-computed-gotos was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15150 | if test "${with_computed_gotos+set}" = set; then : | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15151 |   withval=$with_computed_gotos; | 
| Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 15152 | if test "$withval" = yes | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15153 | then | 
 | 15154 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15155 | $as_echo "#define USE_COMPUTED_GOTOS 1" >>confdefs.h | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15156 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15157 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 15158 | $as_echo "yes" >&6; } | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15159 | fi | 
| Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 15160 | if test "$withval" = no | 
 | 15161 | then | 
 | 15162 |  | 
 | 15163 | $as_echo "#define USE_COMPUTED_GOTOS 0" >>confdefs.h | 
 | 15164 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15165 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 15166 | $as_echo "no" >&6; } | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15167 | fi | 
 | 15168 |  | 
| Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 15169 | else | 
 | 15170 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5 | 
 | 15171 | $as_echo "no value specified" >&6; } | 
 | 15172 | fi | 
 | 15173 |  | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15174 |  | 
| Matthias Klose | b17289e | 2012-03-15 19:51:34 +0100 | [diff] [blame] | 15175 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports computed gotos" >&5 | 
 | 15176 | $as_echo_n "checking whether $CC supports computed gotos... " >&6; } | 
 | 15177 | if ${ac_cv_computed_gotos+:} false; then : | 
 | 15178 |   $as_echo_n "(cached) " >&6 | 
 | 15179 | else | 
 | 15180 |   if test "$cross_compiling" = yes; then : | 
 | 15181 |   if test "${with_computed_gotos+set}" = set; then | 
 | 15182 |    ac_cv_computed_gotos="$with_computed_gotos -- configured --with(out)-computed-gotos" | 
 | 15183 |  else | 
 | 15184 |    ac_cv_computed_gotos=no | 
 | 15185 |  fi | 
 | 15186 | else | 
 | 15187 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 15188 | /* end confdefs.h.  */ | 
 | 15189 |  | 
 | 15190 | int main(int argc, char **argv) | 
 | 15191 | { | 
 | 15192 |     static void *targets[1] = { &&LABEL1 }; | 
 | 15193 |     goto LABEL2; | 
 | 15194 | LABEL1: | 
 | 15195 |     return 0; | 
 | 15196 | LABEL2: | 
 | 15197 |     goto *targets[0]; | 
 | 15198 |     return 1; | 
 | 15199 | } | 
 | 15200 |  | 
 | 15201 | _ACEOF | 
 | 15202 | if ac_fn_c_try_run "$LINENO"; then : | 
 | 15203 |   ac_cv_computed_gotos=yes | 
 | 15204 | else | 
 | 15205 |   ac_cv_computed_gotos=no | 
 | 15206 | fi | 
 | 15207 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 15208 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
 | 15209 | fi | 
 | 15210 |  | 
 | 15211 | fi | 
 | 15212 |  | 
 | 15213 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_computed_gotos" >&5 | 
 | 15214 | $as_echo "$ac_cv_computed_gotos" >&6; } | 
 | 15215 | case "$ac_cv_computed_gotos" in yes*) | 
 | 15216 |  | 
 | 15217 | $as_echo "#define HAVE_COMPUTED_GOTOS 1" >>confdefs.h | 
 | 15218 |  | 
 | 15219 | esac | 
 | 15220 |  | 
| Benjamin Peterson | d8d835b | 2010-10-15 23:14:46 +0000 | [diff] [blame] | 15221 | case $ac_sys_system in | 
 | 15222 | AIX*) | 
 | 15223 |  | 
 | 15224 | $as_echo "#define HAVE_BROKEN_PIPE_BUF 1" >>confdefs.h | 
 | 15225 |  ;; | 
 | 15226 | esac | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15227 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15228 |  | 
| Mark Dickinson | b2153e9 | 2010-05-05 22:31:36 +0000 | [diff] [blame] | 15229 |  | 
 | 15230 |  | 
| Martin v. Löwis | 06f15bb | 2001-12-02 13:02:32 +0000 | [diff] [blame] | 15231 | for h in `(cd $srcdir;echo Python/thread_*.h)` | 
 | 15232 | do | 
 | 15233 |   THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" | 
 | 15234 | done | 
 | 15235 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15236 |  | 
| Neal Norwitz | d24499d | 2005-12-18 21:36:39 +0000 | [diff] [blame] | 15237 | SRCDIRS="Parser Grammar Objects Python Modules Mac" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15238 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build directories" >&5 | 
 | 15239 | $as_echo_n "checking for build directories... " >&6; } | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 15240 | for dir in $SRCDIRS; do | 
 | 15241 |     if test ! -d $dir; then | 
 | 15242 |         mkdir $dir | 
| Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 15243 |     fi | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 15244 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | 
 | 15246 | $as_echo "done" >&6; } | 
| Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 15247 |  | 
| Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 15248 | # Availability of -O2: | 
 | 15249 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -O2" >&5 | 
 | 15250 | $as_echo_n "checking for -O2... " >&6; } | 
 | 15251 | saved_cflags="$CFLAGS" | 
 | 15252 | CFLAGS="-O2" | 
 | 15253 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 15254 | /* end confdefs.h.  */ | 
 | 15255 |  | 
 | 15256 | int | 
 | 15257 | main () | 
 | 15258 | { | 
 | 15259 |  | 
 | 15260 |  | 
 | 15261 |   ; | 
 | 15262 |   return 0; | 
 | 15263 | } | 
 | 15264 | _ACEOF | 
 | 15265 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 15266 |   have_O2=yes | 
 | 15267 | else | 
 | 15268 |   have_O2=no | 
 | 15269 | fi | 
 | 15270 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 15271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_O2" >&5 | 
 | 15272 | $as_echo "$have_O2" >&6; } | 
 | 15273 | CFLAGS="$saved_cflags" | 
 | 15274 |  | 
 | 15275 | # _FORTIFY_SOURCE wrappers for memmove and bcopy are incorrect: | 
 | 15276 | # http://sourceware.org/ml/libc-alpha/2010-12/msg00009.html | 
 | 15277 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc _FORTIFY_SOURCE/memmove bug" >&5 | 
 | 15278 | $as_echo_n "checking for glibc _FORTIFY_SOURCE/memmove bug... " >&6; } | 
 | 15279 | saved_cflags="$CFLAGS" | 
 | 15280 | CFLAGS="-O2 -D_FORTIFY_SOURCE=2" | 
 | 15281 | if test "$have_O2" = no; then | 
 | 15282 |     CFLAGS="" | 
 | 15283 | fi | 
 | 15284 | if test "$cross_compiling" = yes; then : | 
 | 15285 |   have_glibc_memmove_bug=undefined | 
 | 15286 | else | 
 | 15287 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 15288 | /* end confdefs.h.  */ | 
 | 15289 |  | 
 | 15290 | #include <stdio.h> | 
 | 15291 | #include <stdlib.h> | 
 | 15292 | #include <string.h> | 
 | 15293 | void foo(void *p, void *q) { memmove(p, q, 19); } | 
 | 15294 | int main() { | 
 | 15295 |   char a[32] = "123456789000000000"; | 
 | 15296 |   foo(&a[9], a); | 
 | 15297 |   if (strcmp(a, "123456789123456789000000000") != 0) | 
 | 15298 |     return 1; | 
 | 15299 |   foo(a, &a[9]); | 
 | 15300 |   if (strcmp(a, "123456789000000000") != 0) | 
 | 15301 |     return 1; | 
 | 15302 |   return 0; | 
 | 15303 | } | 
 | 15304 |  | 
 | 15305 | _ACEOF | 
 | 15306 | if ac_fn_c_try_run "$LINENO"; then : | 
 | 15307 |   have_glibc_memmove_bug=no | 
 | 15308 | else | 
 | 15309 |   have_glibc_memmove_bug=yes | 
 | 15310 | fi | 
 | 15311 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 15312 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
 | 15313 | fi | 
 | 15314 |  | 
 | 15315 | CFLAGS="$saved_cflags" | 
 | 15316 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_glibc_memmove_bug" >&5 | 
 | 15317 | $as_echo "$have_glibc_memmove_bug" >&6; } | 
 | 15318 | if test "$have_glibc_memmove_bug" = yes; then | 
 | 15319 |  | 
 | 15320 | $as_echo "#define HAVE_GLIBC_MEMMOVE_BUG 1" >>confdefs.h | 
 | 15321 |  | 
 | 15322 | fi | 
 | 15323 |  | 
 | 15324 | if test "$have_gcc_asm_for_x87" = yes; then | 
 | 15325 |     # Some versions of gcc miscompile inline asm: | 
 | 15326 |     # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46491 | 
 | 15327 |     # http://gcc.gnu.org/ml/gcc/2010-11/msg00366.html | 
 | 15328 |     case $CC in | 
 | 15329 |         *gcc*) | 
 | 15330 |             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc ipa-pure-const bug" >&5 | 
 | 15331 | $as_echo_n "checking for gcc ipa-pure-const bug... " >&6; } | 
 | 15332 |             saved_cflags="$CFLAGS" | 
 | 15333 |             CFLAGS="-O2" | 
 | 15334 |             if test "$cross_compiling" = yes; then : | 
 | 15335 |   have_ipa_pure_const_bug=undefined | 
 | 15336 | else | 
 | 15337 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 15338 | /* end confdefs.h.  */ | 
 | 15339 |  | 
 | 15340 |             __attribute__((noinline)) int | 
 | 15341 |             foo(int *p) { | 
 | 15342 |               int r; | 
 | 15343 |               asm ( "movl \$6, (%1)\n\t" | 
 | 15344 |                     "xorl %0, %0\n\t" | 
 | 15345 |                     : "=r" (r) : "r" (p) : "memory" | 
 | 15346 |               ); | 
 | 15347 |               return r; | 
 | 15348 |             } | 
 | 15349 |             int main() { | 
 | 15350 |               int p = 8; | 
 | 15351 |               if ((foo(&p) ? : p) != 6) | 
 | 15352 |                 return 1; | 
 | 15353 |               return 0; | 
 | 15354 |             } | 
 | 15355 |  | 
 | 15356 | _ACEOF | 
 | 15357 | if ac_fn_c_try_run "$LINENO"; then : | 
 | 15358 |   have_ipa_pure_const_bug=no | 
 | 15359 | else | 
 | 15360 |   have_ipa_pure_const_bug=yes | 
 | 15361 | fi | 
 | 15362 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 15363 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
 | 15364 | fi | 
 | 15365 |  | 
 | 15366 |             CFLAGS="$saved_cflags" | 
 | 15367 |             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ipa_pure_const_bug" >&5 | 
 | 15368 | $as_echo "$have_ipa_pure_const_bug" >&6; } | 
 | 15369 |             if test "$have_ipa_pure_const_bug" = yes; then | 
 | 15370 |  | 
 | 15371 | $as_echo "#define HAVE_IPA_PURE_CONST_BUG 1" >>confdefs.h | 
 | 15372 |  | 
 | 15373 |             fi | 
 | 15374 |         ;; | 
 | 15375 |     esac | 
 | 15376 | fi | 
 | 15377 |  | 
| Ned Deily | 322f5ba | 2013-11-21 23:01:59 -0800 | [diff] [blame] | 15378 | # ensurepip option | 
 | 15379 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ensurepip" >&5 | 
 | 15380 | $as_echo_n "checking for ensurepip... " >&6; } | 
 | 15381 |  | 
 | 15382 | # Check whether --with-ensurepip was given. | 
 | 15383 | if test "${with_ensurepip+set}" = set; then : | 
 | 15384 |   withval=$with_ensurepip; | 
 | 15385 | else | 
 | 15386 |   with_ensurepip=upgrade | 
 | 15387 | fi | 
 | 15388 |  | 
 | 15389 | case $with_ensurepip in #( | 
 | 15390 |   yes|upgrade) : | 
 | 15391 |     ENSUREPIP=upgrade ;; #( | 
 | 15392 |   install) : | 
 | 15393 |     ENSUREPIP=install ;; #( | 
 | 15394 |   no) : | 
 | 15395 |     ENSUREPIP=no ;; #( | 
 | 15396 |   *) : | 
 | 15397 |     as_fn_error $? "--with-ensurepip=upgrade|install|no" "$LINENO" 5 ;; | 
 | 15398 | esac | 
 | 15399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENSUREPIP" >&5 | 
 | 15400 | $as_echo "$ENSUREPIP" >&6; } | 
 | 15401 |  | 
 | 15402 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15403 | # generate output files | 
| doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 15404 | ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config Misc/python.pc Misc/python-config.sh" | 
| Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 15405 |  | 
| Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 15406 | ac_config_files="$ac_config_files Modules/ld_so_aix" | 
 | 15407 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15408 | cat >confcache <<\_ACEOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15409 | # This file is a shell script that caches the results of configure | 
 | 15410 | # 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] | 15411 | # scripts and configure runs, see configure's option --config-cache. | 
 | 15412 | # It is not useful on other systems.  If it contains results you don't | 
 | 15413 | # want to keep, you may remove or edit it. | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15414 | # | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15415 | # config.status only pays attention to the cache file if you give it | 
 | 15416 | # the --recheck option to rerun configure. | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15417 | # | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15418 | # `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] | 15419 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | 
 | 15420 | # following values. | 
 | 15421 |  | 
 | 15422 | _ACEOF | 
 | 15423 |  | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 15424 | # The following way of writing the cache mishandles newlines in values, | 
 | 15425 | # but we know of no workaround that is simple, portable, and efficient. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15426 | # So, we kill variables containing newlines. | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15427 | # Ultrix sh set writes to stderr and can't be redirected directly, | 
 | 15428 | # 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] | 15429 | ( | 
 | 15430 |   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | 
 | 15431 |     eval ac_val=\$$ac_var | 
 | 15432 |     case $ac_val in #( | 
 | 15433 |     *${as_nl}*) | 
 | 15434 |       case $ac_var in #( | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15435 |       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | 
 | 15436 | $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] | 15437 |       esac | 
 | 15438 |       case $ac_var in #( | 
 | 15439 |       _ | IFS | as_nl) ;; #( | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15440 |       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | 
 | 15441 |       *) { eval $ac_var=; unset $ac_var;} ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15442 |       esac ;; | 
 | 15443 |     esac | 
 | 15444 |   done | 
 | 15445 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15446 |   (set) 2>&1 | | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15447 |     case $as_nl`(ac_space=' '; set) 2>&1` in #( | 
 | 15448 |     *${as_nl}ac_space=\ *) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15449 |       # `set' does not quote correctly, so add quotes: double-quote | 
 | 15450 |       # substitution turns \\\\ into \\, and sed turns \\ into \. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15451 |       sed -n \ | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15452 | 	"s/'/'\\\\''/g; | 
 | 15453 | 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15454 |       ;; #( | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15455 |     *) | 
 | 15456 |       # `set' quotes correctly as required by POSIX, so do not add quotes. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15457 |       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15458 |       ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15459 |     esac | | 
 | 15460 |     sort | 
 | 15461 | ) | | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15462 |   sed ' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15463 |      /^ac_cv_env_/b end | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15464 |      t clear | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15465 |      :clear | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15466 |      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | 
 | 15467 |      t end | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15468 |      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | 
 | 15469 |      :end' >>confcache | 
 | 15470 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | 
 | 15471 |   if test -w "$cache_file"; then | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15472 |     if test "x$cache_file" != "x/dev/null"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15473 |       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | 
 | 15474 | $as_echo "$as_me: updating cache $cache_file" >&6;} | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15475 |       if test ! -f "$cache_file" || test -h "$cache_file"; then | 
 | 15476 | 	cat confcache >"$cache_file" | 
 | 15477 |       else | 
 | 15478 |         case $cache_file in #( | 
 | 15479 |         */* | ?:*) | 
 | 15480 | 	  mv -f confcache "$cache_file"$$ && | 
 | 15481 | 	  mv -f "$cache_file"$$ "$cache_file" ;; #( | 
 | 15482 |         *) | 
 | 15483 | 	  mv -f confcache "$cache_file" ;; | 
 | 15484 | 	esac | 
 | 15485 |       fi | 
 | 15486 |     fi | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15487 |   else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15488 |     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | 
 | 15489 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15490 |   fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15491 | fi | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15492 | rm -f confcache | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 15493 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15494 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | 
 | 15495 | # Let make expand exec_prefix. | 
 | 15496 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 15497 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15498 | DEFS=-DHAVE_CONFIG_H | 
 | 15499 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15500 | ac_libobjs= | 
 | 15501 | ac_ltlibobjs= | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 15502 | U= | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15503 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | 
 | 15504 |   # 1. Remove the extension, and $U if already installed. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15505 |   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15506 |   ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15507 |   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR | 
 | 15508 |   #    will be set to the directory where LIBOBJS objects are built. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15509 |   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | 
 | 15510 |   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15511 | done | 
 | 15512 | LIBOBJS=$ac_libobjs | 
 | 15513 |  | 
 | 15514 | LTLIBOBJS=$ac_ltlibobjs | 
 | 15515 |  | 
 | 15516 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15517 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15518 |  | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15519 | : "${CONFIG_STATUS=./config.status}" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15520 | ac_write_fail=0 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15521 | ac_clean_files_save=$ac_clean_files | 
 | 15522 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15523 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | 
 | 15524 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | 
 | 15525 | as_write_fail=0 | 
 | 15526 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15527 | #! $SHELL | 
 | 15528 | # Generated by $as_me. | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15529 | # Run this file to recreate the current configuration. | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15530 | # Compiler output produced by configure, useful for debugging | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15531 | # configure, is in config.log if it exists. | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15532 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15533 | debug=false | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15534 | ac_cs_recheck=false | 
 | 15535 | ac_cs_silent=false | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 15536 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15537 | SHELL=\${CONFIG_SHELL-$SHELL} | 
 | 15538 | export SHELL | 
 | 15539 | _ASEOF | 
 | 15540 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | 
 | 15541 | ## -------------------- ## | 
 | 15542 | ## M4sh Initialization. ## | 
 | 15543 | ## -------------------- ## | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 15544 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15545 | # Be more Bourne compatible | 
 | 15546 | DUALCASE=1; export DUALCASE # for MKS sh | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15547 | 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] | 15548 |   emulate sh | 
 | 15549 |   NULLCMD=: | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15550 |   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15551 |   # is contrary to our usage.  Disable this feature. | 
 | 15552 |   alias -g '${1+"$@"}'='"$@"' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15553 |   setopt NO_GLOB_SUBST | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 15554 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15555 |   case `(set -o) 2>/dev/null` in #( | 
 | 15556 |   *posix*) : | 
 | 15557 |     set -o posix ;; #( | 
 | 15558 |   *) : | 
 | 15559 |      ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15560 | esac | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15561 | fi | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 15562 |  | 
 | 15563 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15564 | as_nl=' | 
 | 15565 | ' | 
 | 15566 | export as_nl | 
 | 15567 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | 
 | 15568 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | 
 | 15569 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | 
 | 15570 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | 
 | 15571 | # Prefer a ksh shell builtin over an external printf program on Solaris, | 
 | 15572 | # but without wasting forks for bash or zsh. | 
 | 15573 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | 
 | 15574 |     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | 
 | 15575 |   as_echo='print -r --' | 
 | 15576 |   as_echo_n='print -rn --' | 
 | 15577 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | 
 | 15578 |   as_echo='printf %s\n' | 
 | 15579 |   as_echo_n='printf %s' | 
 | 15580 | else | 
 | 15581 |   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | 
 | 15582 |     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | 
 | 15583 |     as_echo_n='/usr/ucb/echo -n' | 
 | 15584 |   else | 
 | 15585 |     as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | 
 | 15586 |     as_echo_n_body='eval | 
 | 15587 |       arg=$1; | 
 | 15588 |       case $arg in #( | 
 | 15589 |       *"$as_nl"*) | 
 | 15590 | 	expr "X$arg" : "X\\(.*\\)$as_nl"; | 
 | 15591 | 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | 
 | 15592 |       esac; | 
 | 15593 |       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | 
 | 15594 |     ' | 
 | 15595 |     export as_echo_n_body | 
 | 15596 |     as_echo_n='sh -c $as_echo_n_body as_echo' | 
 | 15597 |   fi | 
 | 15598 |   export as_echo_body | 
 | 15599 |   as_echo='sh -c $as_echo_body as_echo' | 
 | 15600 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15601 |  | 
 | 15602 | # The user is always right. | 
 | 15603 | if test "${PATH_SEPARATOR+set}" != set; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15604 |   PATH_SEPARATOR=: | 
 | 15605 |   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | 
 | 15606 |     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | 
 | 15607 |       PATH_SEPARATOR=';' | 
 | 15608 |   } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15609 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15610 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15611 |  | 
 | 15612 | # IFS | 
 | 15613 | # We need space, tab and new line, in precisely that order.  Quoting is | 
 | 15614 | # there to prevent editors from complaining about space-tab. | 
 | 15615 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | 
 | 15616 | # splitting by setting IFS to empty value.) | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15617 | IFS=" ""	$as_nl" | 
 | 15618 |  | 
 | 15619 | # Find who we are.  Look in the path if we contain no directory separator. | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15620 | as_myself= | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15621 | case $0 in #(( | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15622 |   *[\\/]* ) as_myself=$0 ;; | 
 | 15623 |   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15624 | for as_dir in $PATH | 
 | 15625 | do | 
 | 15626 |   IFS=$as_save_IFS | 
 | 15627 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15628 |     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | 
 | 15629 |   done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15630 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15631 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15632 |      ;; | 
 | 15633 | esac | 
 | 15634 | # We did not find ourselves, most probably we were run as `sh COMMAND' | 
 | 15635 | # in which case we are not to be found in the path. | 
 | 15636 | if test "x$as_myself" = x; then | 
 | 15637 |   as_myself=$0 | 
 | 15638 | fi | 
 | 15639 | if test ! -f "$as_myself"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15640 |   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | 
 | 15641 |   exit 1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15642 | fi | 
 | 15643 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15644 | # Unset variables that we do not need and which cause bugs (e.g. in | 
 | 15645 | # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1" | 
 | 15646 | # suppresses any "Segmentation fault" message there.  '((' could | 
 | 15647 | # trigger a bug in pdksh 5.2.14. | 
 | 15648 | for as_var in BASH_ENV ENV MAIL MAILPATH | 
 | 15649 | do eval test x\${$as_var+set} = xset \ | 
 | 15650 |   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15651 | done | 
 | 15652 | PS1='$ ' | 
 | 15653 | PS2='> ' | 
 | 15654 | PS4='+ ' | 
 | 15655 |  | 
 | 15656 | # NLS nuisances. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15657 | LC_ALL=C | 
 | 15658 | export LC_ALL | 
 | 15659 | LANGUAGE=C | 
 | 15660 | export LANGUAGE | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15661 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15662 | # CDPATH. | 
 | 15663 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | 
 | 15664 |  | 
 | 15665 |  | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 15666 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | 
 | 15667 | # ---------------------------------------- | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15668 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | 
 | 15669 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 15670 | # script with STATUS, using 1 if that was 0. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15671 | as_fn_error () | 
 | 15672 | { | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 15673 |   as_status=$1; test $as_status -eq 0 && as_status=1 | 
 | 15674 |   if test "$4"; then | 
 | 15675 |     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 15676 |     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15677 |   fi | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 15678 |   $as_echo "$as_me: error: $2" >&2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15679 |   as_fn_exit $as_status | 
 | 15680 | } # as_fn_error | 
 | 15681 |  | 
 | 15682 |  | 
 | 15683 | # as_fn_set_status STATUS | 
 | 15684 | # ----------------------- | 
 | 15685 | # Set $? to STATUS, without forking. | 
 | 15686 | as_fn_set_status () | 
 | 15687 | { | 
 | 15688 |   return $1 | 
 | 15689 | } # as_fn_set_status | 
 | 15690 |  | 
 | 15691 | # as_fn_exit STATUS | 
 | 15692 | # ----------------- | 
 | 15693 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | 
 | 15694 | as_fn_exit () | 
 | 15695 | { | 
 | 15696 |   set +e | 
 | 15697 |   as_fn_set_status $1 | 
 | 15698 |   exit $1 | 
 | 15699 | } # as_fn_exit | 
 | 15700 |  | 
 | 15701 | # as_fn_unset VAR | 
 | 15702 | # --------------- | 
 | 15703 | # Portably unset VAR. | 
 | 15704 | as_fn_unset () | 
 | 15705 | { | 
 | 15706 |   { eval $1=; unset $1;} | 
 | 15707 | } | 
 | 15708 | as_unset=as_fn_unset | 
 | 15709 | # as_fn_append VAR VALUE | 
 | 15710 | # ---------------------- | 
 | 15711 | # Append the text in VALUE to the end of the definition contained in VAR. Take | 
 | 15712 | # advantage of any shell optimizations that allow amortized linear growth over | 
 | 15713 | # repeated appends, instead of the typical quadratic growth present in naive | 
 | 15714 | # implementations. | 
 | 15715 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | 
 | 15716 |   eval 'as_fn_append () | 
 | 15717 |   { | 
 | 15718 |     eval $1+=\$2 | 
 | 15719 |   }' | 
 | 15720 | else | 
 | 15721 |   as_fn_append () | 
 | 15722 |   { | 
 | 15723 |     eval $1=\$$1\$2 | 
 | 15724 |   } | 
 | 15725 | fi # as_fn_append | 
 | 15726 |  | 
 | 15727 | # as_fn_arith ARG... | 
 | 15728 | # ------------------ | 
 | 15729 | # Perform arithmetic evaluation on the ARGs, and store the result in the | 
 | 15730 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | 
 | 15731 | # must be portable across $(()) and expr. | 
 | 15732 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | 
 | 15733 |   eval 'as_fn_arith () | 
 | 15734 |   { | 
 | 15735 |     as_val=$(( $* )) | 
 | 15736 |   }' | 
 | 15737 | else | 
 | 15738 |   as_fn_arith () | 
 | 15739 |   { | 
 | 15740 |     as_val=`expr "$@" || test $? -eq 1` | 
 | 15741 |   } | 
 | 15742 | fi # as_fn_arith | 
 | 15743 |  | 
 | 15744 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15745 | if expr a : '\(a\)' >/dev/null 2>&1 && | 
 | 15746 |    test "X`expr 00001 : '.*\(...\)'`" = X001; then | 
 | 15747 |   as_expr=expr | 
 | 15748 | else | 
 | 15749 |   as_expr=false | 
 | 15750 | fi | 
 | 15751 |  | 
 | 15752 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | 
 | 15753 |   as_basename=basename | 
 | 15754 | else | 
 | 15755 |   as_basename=false | 
 | 15756 | fi | 
 | 15757 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15758 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | 
 | 15759 |   as_dirname=dirname | 
 | 15760 | else | 
 | 15761 |   as_dirname=false | 
 | 15762 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15763 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15764 | as_me=`$as_basename -- "$0" || | 
 | 15765 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | 
 | 15766 | 	 X"$0" : 'X\(//\)$' \| \ | 
 | 15767 | 	 X"$0" : 'X\(/\)' \| . 2>/dev/null || | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15768 | $as_echo X/"$0" | | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15769 |     sed '/^.*\/\([^/][^/]*\)\/*$/{ | 
 | 15770 | 	    s//\1/ | 
 | 15771 | 	    q | 
 | 15772 | 	  } | 
 | 15773 | 	  /^X\/\(\/\/\)$/{ | 
 | 15774 | 	    s//\1/ | 
 | 15775 | 	    q | 
 | 15776 | 	  } | 
 | 15777 | 	  /^X\/\(\/\).*/{ | 
 | 15778 | 	    s//\1/ | 
 | 15779 | 	    q | 
 | 15780 | 	  } | 
 | 15781 | 	  s/.*/./; q'` | 
 | 15782 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15783 | # Avoid depending upon Character Ranges. | 
 | 15784 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | 
 | 15785 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | 
 | 15786 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | 
 | 15787 | as_cr_digits='0123456789' | 
 | 15788 | as_cr_alnum=$as_cr_Letters$as_cr_digits | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15789 |  | 
 | 15790 | ECHO_C= ECHO_N= ECHO_T= | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15791 | case `echo -n x` in #((((( | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15792 | -n*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15793 |   case `echo 'xy\c'` in | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15794 |   *c*) ECHO_T='	';;	# ECHO_T is single tab character. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15795 |   xy)  ECHO_C='\c';; | 
 | 15796 |   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null | 
 | 15797 |        ECHO_T='	';; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15798 |   esac;; | 
 | 15799 | *) | 
 | 15800 |   ECHO_N='-n';; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15801 | esac | 
| Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 15802 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15803 | rm -f conf$$ conf$$.exe conf$$.file | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15804 | if test -d conf$$.dir; then | 
 | 15805 |   rm -f conf$$.dir/conf$$.file | 
 | 15806 | else | 
 | 15807 |   rm -f conf$$.dir | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15808 |   mkdir conf$$.dir 2>/dev/null | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15809 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15810 | if (echo >conf$$.file) 2>/dev/null; then | 
 | 15811 |   if ln -s conf$$.file conf$$ 2>/dev/null; then | 
 | 15812 |     as_ln_s='ln -s' | 
 | 15813 |     # ... but there are two gotchas: | 
 | 15814 |     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | 
 | 15815 |     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 15816 |     # In both cases, we have to default to `cp -pR'. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15817 |     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 15818 |       as_ln_s='cp -pR' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15819 |   elif ln conf$$.file conf$$ 2>/dev/null; then | 
 | 15820 |     as_ln_s=ln | 
 | 15821 |   else | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 15822 |     as_ln_s='cp -pR' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15823 |   fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15824 | else | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 15825 |   as_ln_s='cp -pR' | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15826 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15827 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | 
 | 15828 | rmdir conf$$.dir 2>/dev/null | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15829 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15830 |  | 
 | 15831 | # as_fn_mkdir_p | 
 | 15832 | # ------------- | 
 | 15833 | # Create "$as_dir" as a directory, including parents if necessary. | 
 | 15834 | as_fn_mkdir_p () | 
 | 15835 | { | 
 | 15836 |  | 
 | 15837 |   case $as_dir in #( | 
 | 15838 |   -*) as_dir=./$as_dir;; | 
 | 15839 |   esac | 
 | 15840 |   test -d "$as_dir" || eval $as_mkdir_p || { | 
 | 15841 |     as_dirs= | 
 | 15842 |     while :; do | 
 | 15843 |       case $as_dir in #( | 
 | 15844 |       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | 
 | 15845 |       *) as_qdir=$as_dir;; | 
 | 15846 |       esac | 
 | 15847 |       as_dirs="'$as_qdir' $as_dirs" | 
 | 15848 |       as_dir=`$as_dirname -- "$as_dir" || | 
 | 15849 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
 | 15850 | 	 X"$as_dir" : 'X\(//\)[^/]' \| \ | 
 | 15851 | 	 X"$as_dir" : 'X\(//\)$' \| \ | 
 | 15852 | 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | 
 | 15853 | $as_echo X"$as_dir" | | 
 | 15854 |     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
 | 15855 | 	    s//\1/ | 
 | 15856 | 	    q | 
 | 15857 | 	  } | 
 | 15858 | 	  /^X\(\/\/\)[^/].*/{ | 
 | 15859 | 	    s//\1/ | 
 | 15860 | 	    q | 
 | 15861 | 	  } | 
 | 15862 | 	  /^X\(\/\/\)$/{ | 
 | 15863 | 	    s//\1/ | 
 | 15864 | 	    q | 
 | 15865 | 	  } | 
 | 15866 | 	  /^X\(\/\).*/{ | 
 | 15867 | 	    s//\1/ | 
 | 15868 | 	    q | 
 | 15869 | 	  } | 
 | 15870 | 	  s/.*/./; q'` | 
 | 15871 |       test -d "$as_dir" && break | 
 | 15872 |     done | 
 | 15873 |     test -z "$as_dirs" || eval "mkdir $as_dirs" | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 15874 |   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15875 |  | 
 | 15876 |  | 
 | 15877 | } # as_fn_mkdir_p | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15878 | if mkdir -p . 2>/dev/null; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15879 |   as_mkdir_p='mkdir -p "$as_dir"' | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15880 | else | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15881 |   test -d ./-p && rmdir ./-p | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15882 |   as_mkdir_p=false | 
 | 15883 | fi | 
 | 15884 |  | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 15885 |  | 
 | 15886 | # as_fn_executable_p FILE | 
 | 15887 | # ----------------------- | 
 | 15888 | # Test if FILE is an executable regular file. | 
 | 15889 | as_fn_executable_p () | 
 | 15890 | { | 
 | 15891 |   test -f "$1" && test -x "$1" | 
 | 15892 | } # as_fn_executable_p | 
 | 15893 | as_test_x='test -x' | 
 | 15894 | as_executable_p=as_fn_executable_p | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15895 |  | 
 | 15896 | # Sed expression to map a string onto a valid CPP name. | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15897 | 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] | 15898 |  | 
 | 15899 | # Sed expression to map a string onto a valid variable name. | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15900 | 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] | 15901 |  | 
 | 15902 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15903 | exec 6>&1 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15904 | ## ----------------------------------- ## | 
 | 15905 | ## Main body of $CONFIG_STATUS script. ## | 
 | 15906 | ## ----------------------------------- ## | 
 | 15907 | _ASEOF | 
 | 15908 | 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] | 15909 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15910 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
 | 15911 | # 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] | 15912 | # report actual input values of CONFIG_FILES etc. instead of their | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15913 | # values after options handling. | 
 | 15914 | ac_log=" | 
| Georg Brandl | 08a9012 | 2012-09-29 09:34:13 +0200 | [diff] [blame] | 15915 | This file was extended by python $as_me 3.4, which was | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 15916 | generated by GNU Autoconf 2.69.  Invocation command line was | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15917 |  | 
 | 15918 |   CONFIG_FILES    = $CONFIG_FILES | 
 | 15919 |   CONFIG_HEADERS  = $CONFIG_HEADERS | 
 | 15920 |   CONFIG_LINKS    = $CONFIG_LINKS | 
 | 15921 |   CONFIG_COMMANDS = $CONFIG_COMMANDS | 
 | 15922 |   $ $0 $@ | 
 | 15923 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15924 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | 
 | 15925 | " | 
 | 15926 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15927 | _ACEOF | 
 | 15928 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15929 | case $ac_config_files in *" | 
 | 15930 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | 
 | 15931 | esac | 
 | 15932 |  | 
 | 15933 | case $ac_config_headers in *" | 
 | 15934 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | 
 | 15935 | esac | 
 | 15936 |  | 
 | 15937 |  | 
 | 15938 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15939 | # Files that config.status was made for. | 
| Charles-François Natali | 6613c18 | 2011-11-27 12:41:06 +0100 | [diff] [blame] | 15940 | config_files="$ac_config_files" | 
 | 15941 | config_headers="$ac_config_headers" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15942 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15943 | _ACEOF | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15944 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15945 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15946 | ac_cs_usage="\ | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15947 | \`$as_me' instantiates files and other configuration actions | 
 | 15948 | from templates according to the current configuration.  Unless the files | 
 | 15949 | 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] | 15950 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15951 | Usage: $0 [OPTION]... [TAG]... | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15952 |  | 
 | 15953 |   -h, --help       print this help, then exit | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15954 |   -V, --version    print version number and configuration settings, then exit | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15955 |       --config     print configuration, then exit | 
 | 15956 |   -q, --quiet, --silent | 
 | 15957 |                    do not print progress messages | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15958 |   -d, --debug      don't remove temporary files | 
 | 15959 |       --recheck    update $as_me by reconfiguring in the same conditions | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15960 |       --file=FILE[:TEMPLATE] | 
 | 15961 |                    instantiate the configuration file FILE | 
 | 15962 |       --header=FILE[:TEMPLATE] | 
 | 15963 |                    instantiate the configuration header FILE | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15964 |  | 
 | 15965 | Configuration files: | 
 | 15966 | $config_files | 
 | 15967 |  | 
 | 15968 | Configuration headers: | 
 | 15969 | $config_headers | 
 | 15970 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15971 | Report bugs to <http://bugs.python.org/>." | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 15972 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15973 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15974 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
 | 15975 | 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] | 15976 | ac_cs_version="\\ | 
| Georg Brandl | 08a9012 | 2012-09-29 09:34:13 +0200 | [diff] [blame] | 15977 | python config.status 3.4 | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 15978 | configured by $0, generated by GNU Autoconf 2.69, | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15979 |   with options \\"\$ac_cs_config\\" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15980 |  | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 15981 | Copyright (C) 2012 Free Software Foundation, Inc. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15982 | This config.status script is free software; the Free Software Foundation | 
 | 15983 | gives unlimited permission to copy, distribute and modify it." | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15984 |  | 
 | 15985 | ac_pwd='$ac_pwd' | 
 | 15986 | srcdir='$srcdir' | 
 | 15987 | INSTALL='$INSTALL' | 
| Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 15988 | MKDIR_P='$MKDIR_P' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15989 | test -n "\$AWK" || AWK=awk | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15990 | _ACEOF | 
 | 15991 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15992 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
 | 15993 | # 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] | 15994 | ac_need_defaults=: | 
 | 15995 | while test $# != 0 | 
 | 15996 | do | 
 | 15997 |   case $1 in | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 15998 |   --*=?*) | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15999 |     ac_option=`expr "X$1" : 'X\([^=]*\)='` | 
 | 16000 |     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16001 |     ac_shift=: | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16002 |     ;; | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16003 |   --*=) | 
 | 16004 |     ac_option=`expr "X$1" : 'X\([^=]*\)='` | 
 | 16005 |     ac_optarg= | 
 | 16006 |     ac_shift=: | 
 | 16007 |     ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16008 |   *) | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16009 |     ac_option=$1 | 
 | 16010 |     ac_optarg=$2 | 
 | 16011 |     ac_shift=shift | 
 | 16012 |     ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16013 |   esac | 
 | 16014 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16015 |   case $ac_option in | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16016 |   # Handling of the options. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16017 |   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | 
 | 16018 |     ac_cs_recheck=: ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16019 |   --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16020 |     $as_echo "$ac_cs_version"; exit ;; | 
 | 16021 |   --config | --confi | --conf | --con | --co | --c ) | 
 | 16022 |     $as_echo "$ac_cs_config"; exit ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16023 |   --debug | --debu | --deb | --de | --d | -d ) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16024 |     debug=: ;; | 
 | 16025 |   --file | --fil | --fi | --f ) | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16026 |     $ac_shift | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16027 |     case $ac_optarg in | 
 | 16028 |     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16029 |     '') as_fn_error $? "missing file argument" ;; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16030 |     esac | 
 | 16031 |     as_fn_append CONFIG_FILES " '$ac_optarg'" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16032 |     ac_need_defaults=false;; | 
 | 16033 |   --header | --heade | --head | --hea ) | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16034 |     $ac_shift | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16035 |     case $ac_optarg in | 
 | 16036 |     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | 
 | 16037 |     esac | 
 | 16038 |     as_fn_append CONFIG_HEADERS " '$ac_optarg'" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16039 |     ac_need_defaults=false;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16040 |   --he | --h) | 
 | 16041 |     # Conflict between --help and --header | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16042 |     as_fn_error $? "ambiguous option: \`$1' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16043 | Try \`$0 --help' for more information.";; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16044 |   --help | --hel | -h ) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16045 |     $as_echo "$ac_cs_usage"; exit ;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16046 |   -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
 | 16047 |   | -silent | --silent | --silen | --sile | --sil | --si | --s) | 
 | 16048 |     ac_cs_silent=: ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16049 |  | 
 | 16050 |   # This is an error. | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16051 |   -*) as_fn_error $? "unrecognized option: \`$1' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16052 | Try \`$0 --help' for more information." ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16053 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16054 |   *) as_fn_append ac_config_targets " $1" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16055 |      ac_need_defaults=false ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16056 |  | 
 | 16057 |   esac | 
 | 16058 |   shift | 
 | 16059 | done | 
 | 16060 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16061 | ac_configure_extra_args= | 
 | 16062 |  | 
 | 16063 | if $ac_cs_silent; then | 
 | 16064 |   exec 6>/dev/null | 
 | 16065 |   ac_configure_extra_args="$ac_configure_extra_args --silent" | 
 | 16066 | fi | 
 | 16067 |  | 
 | 16068 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16069 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16070 | if \$ac_cs_recheck; then | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 16071 |   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16072 |   shift | 
 | 16073 |   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | 
 | 16074 |   CONFIG_SHELL='$SHELL' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16075 |   export CONFIG_SHELL | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16076 |   exec "\$@" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16077 | fi | 
 | 16078 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16079 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16080 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16081 | exec 5>>config.log | 
 | 16082 | { | 
 | 16083 |   echo | 
 | 16084 |   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | 
 | 16085 | ## Running $as_me. ## | 
 | 16086 | _ASBOX | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16087 |   $as_echo "$ac_log" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16088 | } >&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16089 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16090 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16091 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16092 | _ACEOF | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16093 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16094 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16095 |  | 
 | 16096 | # Handling of arguments. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16097 | for ac_config_target in $ac_config_targets | 
 | 16098 | do | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16099 |   case $ac_config_target in | 
 | 16100 |     "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; | 
 | 16101 |     "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;; | 
 | 16102 |     "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;; | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 16103 |     "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;; | 
 | 16104 |     "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] | 16105 |     "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; | 
 | 16106 |     "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;; | 
| Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 16107 |     "Misc/python.pc") CONFIG_FILES="$CONFIG_FILES Misc/python.pc" ;; | 
| doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 16108 |     "Misc/python-config.sh") CONFIG_FILES="$CONFIG_FILES Misc/python-config.sh" ;; | 
| Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 16109 |     "Modules/ld_so_aix") CONFIG_FILES="$CONFIG_FILES Modules/ld_so_aix" ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16110 |  | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 16111 |   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16112 |   esac | 
 | 16113 | done | 
 | 16114 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16115 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16116 | # If the user did not use the arguments to specify the items to instantiate, | 
 | 16117 | # then the envvar interface is used.  Set only those that are not. | 
 | 16118 | # We use the long form for the default assignment because of an extremely | 
 | 16119 | # bizarre bug on SunOS 4.1.3. | 
 | 16120 | if $ac_need_defaults; then | 
 | 16121 |   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | 
 | 16122 |   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | 
 | 16123 | fi | 
 | 16124 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16125 | # Have a temporary directory for convenience.  Make it in the build tree | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16126 | # 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] | 16127 | # creating and moving files from /tmp can sometimes cause problems. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16128 | # Hook for its removal unless debugging. | 
 | 16129 | # Note that there is a small window in which the directory will not be cleaned: | 
 | 16130 | # 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] | 16131 | $debug || | 
 | 16132 | { | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 16133 |   tmp= ac_tmp= | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16134 |   trap 'exit_status=$? | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 16135 |   : "${ac_tmp:=$tmp}" | 
 | 16136 |   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16137 | ' 0 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16138 |   trap 'as_fn_exit 1' 1 2 13 15 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16139 | } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16140 | # Create a (secure) tmp directory for tmp files. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16141 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16142 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16143 |   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 16144 |   test -d "$tmp" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16145 | }  || | 
 | 16146 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16147 |   tmp=./conf$$-$RANDOM | 
 | 16148 |   (umask 077 && mkdir "$tmp") | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16149 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 16150 | ac_tmp=$tmp | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16151 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16152 | # Set up the scripts for CONFIG_FILES section. | 
 | 16153 | # No need to generate them if there are no CONFIG_FILES. | 
 | 16154 | # This happens for instance with `./config.status config.h'. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16155 | if test -n "$CONFIG_FILES"; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16156 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16157 |  | 
 | 16158 | ac_cr=`echo X | tr X '\015'` | 
 | 16159 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | 
 | 16160 | # But we know of no other shell where ac_cr would be empty at this | 
 | 16161 | # point, so we can use a bashism as a fallback. | 
 | 16162 | if test "x$ac_cr" = x; then | 
 | 16163 |   eval ac_cr=\$\'\\r\' | 
 | 16164 | fi | 
 | 16165 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | 
 | 16166 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16167 |   ac_cs_awk_cr='\\r' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16168 | else | 
 | 16169 |   ac_cs_awk_cr=$ac_cr | 
 | 16170 | fi | 
 | 16171 |  | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 16172 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16173 | _ACEOF | 
 | 16174 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16175 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16176 | { | 
 | 16177 |   echo "cat >conf$$subs.awk <<_ACEOF" && | 
 | 16178 |   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | 
 | 16179 |   echo "_ACEOF" | 
 | 16180 | } >conf$$subs.sh || | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16181 |   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | 
 | 16182 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16183 | ac_delim='%!_!# ' | 
 | 16184 | for ac_last_try in false false false false false :; do | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16185 |   . ./conf$$subs.sh || | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16186 |     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16187 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16188 |   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | 
 | 16189 |   if test $ac_delim_n = $ac_delim_num; then | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16190 |     break | 
 | 16191 |   elif $ac_last_try; then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16192 |     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16193 |   else | 
 | 16194 |     ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16195 |   fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16196 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16197 | rm -f conf$$subs.sh | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16198 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16199 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 16200 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16201 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16202 | sed -n ' | 
 | 16203 | h | 
 | 16204 | s/^/S["/; s/!.*/"]=/ | 
 | 16205 | p | 
 | 16206 | g | 
 | 16207 | s/^[^!]*!// | 
 | 16208 | :repl | 
 | 16209 | t repl | 
 | 16210 | s/'"$ac_delim"'$// | 
 | 16211 | t delim | 
 | 16212 | :nl | 
 | 16213 | h | 
 | 16214 | s/\(.\{148\}\)..*/\1/ | 
 | 16215 | t more1 | 
 | 16216 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | 
 | 16217 | p | 
 | 16218 | n | 
 | 16219 | b repl | 
 | 16220 | :more1 | 
 | 16221 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | 
 | 16222 | p | 
 | 16223 | g | 
 | 16224 | s/.\{148\}// | 
 | 16225 | t nl | 
 | 16226 | :delim | 
 | 16227 | h | 
 | 16228 | s/\(.\{148\}\)..*/\1/ | 
 | 16229 | t more2 | 
 | 16230 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | 
 | 16231 | p | 
 | 16232 | b | 
 | 16233 | :more2 | 
 | 16234 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | 
 | 16235 | p | 
 | 16236 | g | 
 | 16237 | s/.\{148\}// | 
 | 16238 | t delim | 
 | 16239 | ' <conf$$subs.awk | sed ' | 
 | 16240 | /^[^""]/{ | 
 | 16241 |   N | 
 | 16242 |   s/\n// | 
 | 16243 | } | 
 | 16244 | ' >>$CONFIG_STATUS || ac_write_fail=1 | 
 | 16245 | rm -f conf$$subs.awk | 
 | 16246 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
 | 16247 | _ACAWK | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 16248 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16249 |   for (key in S) S_is_set[key] = 1 | 
 | 16250 |   FS = "" | 
 | 16251 |  | 
 | 16252 | } | 
 | 16253 | { | 
 | 16254 |   line = $ 0 | 
 | 16255 |   nfields = split(line, field, "@") | 
 | 16256 |   substed = 0 | 
 | 16257 |   len = length(field[1]) | 
 | 16258 |   for (i = 2; i < nfields; i++) { | 
 | 16259 |     key = field[i] | 
 | 16260 |     keylen = length(key) | 
 | 16261 |     if (S_is_set[key]) { | 
 | 16262 |       value = S[key] | 
 | 16263 |       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | 
 | 16264 |       len += length(value) + length(field[++i]) | 
 | 16265 |       substed = 1 | 
 | 16266 |     } else | 
 | 16267 |       len += 1 + keylen | 
 | 16268 |   } | 
 | 16269 |  | 
 | 16270 |   print line | 
 | 16271 | } | 
 | 16272 |  | 
 | 16273 | _ACAWK | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16274 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16275 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
 | 16276 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | 
 | 16277 |   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | 
 | 16278 | else | 
 | 16279 |   cat | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 16280 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16281 |   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | 
| Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 16282 | _ACEOF | 
 | 16283 |  | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16284 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), | 
 | 16285 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16286 | # trailing colons and then remove the whole line if VPATH becomes empty | 
 | 16287 | # (actually we leave an empty line to preserve line numbers). | 
 | 16288 | if test "x$srcdir" = x.; then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16289 |   ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{ | 
 | 16290 | h | 
 | 16291 | s/// | 
 | 16292 | s/^/:/ | 
 | 16293 | s/[	 ]*$/:/ | 
 | 16294 | s/:\$(srcdir):/:/g | 
 | 16295 | s/:\${srcdir}:/:/g | 
 | 16296 | s/:@srcdir@:/:/g | 
 | 16297 | s/^:*// | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16298 | s/:*$// | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16299 | x | 
 | 16300 | s/\(=[	 ]*\).*/\1/ | 
 | 16301 | G | 
 | 16302 | s/\n// | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16303 | s/^[^=]*=[	 ]*$// | 
 | 16304 | }' | 
 | 16305 | fi | 
 | 16306 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16307 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16308 | fi # test -n "$CONFIG_FILES" | 
 | 16309 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16310 | # Set up the scripts for CONFIG_HEADERS section. | 
 | 16311 | # No need to generate them if there are no CONFIG_HEADERS. | 
 | 16312 | # This happens for instance with `./config.status Makefile'. | 
 | 16313 | if test -n "$CONFIG_HEADERS"; then | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 16314 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16315 | BEGIN { | 
 | 16316 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16317 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16318 | # Transform confdefs.h into an awk script `defines.awk', embedded as | 
 | 16319 | # here-document in config.status, that substitutes the proper values into | 
 | 16320 | # config.h.in to produce config.h. | 
 | 16321 |  | 
 | 16322 | # Create a delimiter string that does not exist in confdefs.h, to ease | 
 | 16323 | # handling of long lines. | 
 | 16324 | ac_delim='%!_!# ' | 
 | 16325 | for ac_last_try in false false :; do | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 16326 |   ac_tt=`sed -n "/$ac_delim/p" confdefs.h` | 
 | 16327 |   if test -z "$ac_tt"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16328 |     break | 
 | 16329 |   elif $ac_last_try; then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16330 |     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16331 |   else | 
 | 16332 |     ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | 
 | 16333 |   fi | 
 | 16334 | done | 
 | 16335 |  | 
 | 16336 | # For the awk script, D is an array of macro values keyed by name, | 
 | 16337 | # likewise P contains macro parameters if any.  Preserve backslash | 
 | 16338 | # newline sequences. | 
 | 16339 |  | 
 | 16340 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | 
 | 16341 | sed -n ' | 
 | 16342 | s/.\{148\}/&'"$ac_delim"'/g | 
 | 16343 | t rset | 
 | 16344 | :rset | 
 | 16345 | s/^[	 ]*#[	 ]*define[	 ][	 ]*/ / | 
 | 16346 | t def | 
 | 16347 | d | 
 | 16348 | :def | 
 | 16349 | s/\\$// | 
 | 16350 | t bsnl | 
 | 16351 | s/["\\]/\\&/g | 
 | 16352 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\ | 
 | 16353 | D["\1"]=" \3"/p | 
 | 16354 | s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p | 
 | 16355 | d | 
 | 16356 | :bsnl | 
 | 16357 | s/["\\]/\\&/g | 
 | 16358 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\ | 
 | 16359 | D["\1"]=" \3\\\\\\n"\\/p | 
 | 16360 | t cont | 
 | 16361 | s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | 
 | 16362 | t cont | 
 | 16363 | d | 
 | 16364 | :cont | 
 | 16365 | n | 
 | 16366 | s/.\{148\}/&'"$ac_delim"'/g | 
 | 16367 | t clear | 
 | 16368 | :clear | 
 | 16369 | s/\\$// | 
 | 16370 | t bsnlc | 
 | 16371 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | 
 | 16372 | d | 
 | 16373 | :bsnlc | 
 | 16374 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | 
 | 16375 | b cont | 
 | 16376 | ' <confdefs.h | sed ' | 
 | 16377 | s/'"$ac_delim"'/"\\\ | 
 | 16378 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | 
 | 16379 |  | 
 | 16380 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
 | 16381 |   for (key in D) D_is_set[key] = 1 | 
 | 16382 |   FS = "" | 
 | 16383 | } | 
 | 16384 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | 
 | 16385 |   line = \$ 0 | 
 | 16386 |   split(line, arg, " ") | 
 | 16387 |   if (arg[1] == "#") { | 
 | 16388 |     defundef = arg[2] | 
 | 16389 |     mac1 = arg[3] | 
 | 16390 |   } else { | 
 | 16391 |     defundef = substr(arg[1], 2) | 
 | 16392 |     mac1 = arg[2] | 
 | 16393 |   } | 
 | 16394 |   split(mac1, mac2, "(") #) | 
 | 16395 |   macro = mac2[1] | 
 | 16396 |   prefix = substr(line, 1, index(line, defundef) - 1) | 
 | 16397 |   if (D_is_set[macro]) { | 
 | 16398 |     # Preserve the white space surrounding the "#". | 
 | 16399 |     print prefix "define", macro P[macro] D[macro] | 
 | 16400 |     next | 
 | 16401 |   } else { | 
 | 16402 |     # Replace #undef with comments.  This is necessary, for example, | 
 | 16403 |     # in the case of _POSIX_SOURCE, which is predefined and required | 
 | 16404 |     # on some systems where configure will not decide to define it. | 
 | 16405 |     if (defundef == "undef") { | 
 | 16406 |       print "/*", prefix defundef, macro, "*/" | 
 | 16407 |       next | 
 | 16408 |     } | 
 | 16409 |   } | 
 | 16410 | } | 
 | 16411 | { print } | 
 | 16412 | _ACAWK | 
 | 16413 | _ACEOF | 
 | 16414 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16415 |   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16416 | fi # test -n "$CONFIG_HEADERS" | 
 | 16417 |  | 
 | 16418 |  | 
 | 16419 | eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    " | 
 | 16420 | shift | 
 | 16421 | for ac_tag | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16422 | do | 
 | 16423 |   case $ac_tag in | 
 | 16424 |   :[FHLC]) ac_mode=$ac_tag; continue;; | 
 | 16425 |   esac | 
 | 16426 |   case $ac_mode$ac_tag in | 
 | 16427 |   :[FHL]*:*);; | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 16428 |   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16429 |   :[FH]-) ac_tag=-:-;; | 
 | 16430 |   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | 
 | 16431 |   esac | 
 | 16432 |   ac_save_IFS=$IFS | 
 | 16433 |   IFS=: | 
 | 16434 |   set x $ac_tag | 
 | 16435 |   IFS=$ac_save_IFS | 
 | 16436 |   shift | 
 | 16437 |   ac_file=$1 | 
 | 16438 |   shift | 
 | 16439 |  | 
 | 16440 |   case $ac_mode in | 
 | 16441 |   :L) ac_source=$1;; | 
 | 16442 |   :[FH]) | 
 | 16443 |     ac_file_inputs= | 
 | 16444 |     for ac_f | 
 | 16445 |     do | 
 | 16446 |       case $ac_f in | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 16447 |       -) ac_f="$ac_tmp/stdin";; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16448 |       *) # Look for the file first in the build tree, then in the source tree | 
 | 16449 | 	 # (if the path is not absolute).  The absolute path cannot be DOS-style, | 
 | 16450 | 	 # because $ac_f cannot contain `:'. | 
 | 16451 | 	 test -f "$ac_f" || | 
 | 16452 | 	   case $ac_f in | 
 | 16453 | 	   [\\/$]*) false;; | 
 | 16454 | 	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | 
 | 16455 | 	   esac || | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 16456 | 	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16457 |       esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16458 |       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | 
 | 16459 |       as_fn_append ac_file_inputs " '$ac_f'" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16460 |     done | 
 | 16461 |  | 
 | 16462 |     # Let's still pretend it is `configure' which instantiates (i.e., don't | 
 | 16463 |     # use $as_me), people would be surprised to read: | 
 | 16464 |     #    /* config.h.  Generated by config.status.  */ | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16465 |     configure_input='Generated from '` | 
 | 16466 | 	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | 
 | 16467 | 	`' by configure.' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16468 |     if test x"$ac_file" != x-; then | 
 | 16469 |       configure_input="$ac_file.  $configure_input" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16470 |       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | 
 | 16471 | $as_echo "$as_me: creating $ac_file" >&6;} | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16472 |     fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16473 |     # Neutralize special characters interpreted by sed in replacement strings. | 
 | 16474 |     case $configure_input in #( | 
 | 16475 |     *\&* | *\|* | *\\* ) | 
 | 16476 |        ac_sed_conf_input=`$as_echo "$configure_input" | | 
 | 16477 |        sed 's/[\\\\&|]/\\\\&/g'`;; #( | 
 | 16478 |     *) ac_sed_conf_input=$configure_input;; | 
 | 16479 |     esac | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16480 |  | 
 | 16481 |     case $ac_tag in | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 16482 |     *:-:* | *:-) cat >"$ac_tmp/stdin" \ | 
 | 16483 |       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16484 |     esac | 
 | 16485 |     ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16486 |   esac | 
 | 16487 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16488 |   ac_dir=`$as_dirname -- "$ac_file" || | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16489 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16490 | 	 X"$ac_file" : 'X\(//\)[^/]' \| \ | 
 | 16491 | 	 X"$ac_file" : 'X\(//\)$' \| \ | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16492 | 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16493 | $as_echo X"$ac_file" | | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16494 |     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
 | 16495 | 	    s//\1/ | 
 | 16496 | 	    q | 
 | 16497 | 	  } | 
 | 16498 | 	  /^X\(\/\/\)[^/].*/{ | 
 | 16499 | 	    s//\1/ | 
 | 16500 | 	    q | 
 | 16501 | 	  } | 
 | 16502 | 	  /^X\(\/\/\)$/{ | 
 | 16503 | 	    s//\1/ | 
 | 16504 | 	    q | 
 | 16505 | 	  } | 
 | 16506 | 	  /^X\(\/\).*/{ | 
 | 16507 | 	    s//\1/ | 
 | 16508 | 	    q | 
 | 16509 | 	  } | 
 | 16510 | 	  s/.*/./; q'` | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16511 |   as_dir="$ac_dir"; as_fn_mkdir_p | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16512 |   ac_builddir=. | 
 | 16513 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16514 | case "$ac_dir" in | 
 | 16515 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
 | 16516 | *) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16517 |   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16518 |   # A ".." for each directory in $ac_dir_suffix. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16519 |   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] | 16520 |   case $ac_top_builddir_sub in | 
 | 16521 |   "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
 | 16522 |   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;; | 
 | 16523 |   esac ;; | 
 | 16524 | esac | 
 | 16525 | ac_abs_top_builddir=$ac_pwd | 
 | 16526 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | 
 | 16527 | # for backward compatibility: | 
 | 16528 | ac_top_builddir=$ac_top_build_prefix | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16529 |  | 
 | 16530 | case $srcdir in | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16531 |   .)  # We are building in place. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16532 |     ac_srcdir=. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16533 |     ac_top_srcdir=$ac_top_builddir_sub | 
 | 16534 |     ac_abs_top_srcdir=$ac_pwd ;; | 
 | 16535 |   [\\/]* | ?:[\\/]* )  # Absolute name. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16536 |     ac_srcdir=$srcdir$ac_dir_suffix; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16537 |     ac_top_srcdir=$srcdir | 
 | 16538 |     ac_abs_top_srcdir=$srcdir ;; | 
 | 16539 |   *) # Relative name. | 
 | 16540 |     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | 
 | 16541 |     ac_top_srcdir=$ac_top_build_prefix$srcdir | 
 | 16542 |     ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16543 | esac | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16544 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16545 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16546 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16547 |   case $ac_mode in | 
 | 16548 |   :F) | 
 | 16549 |   # | 
 | 16550 |   # CONFIG_FILE | 
 | 16551 |   # | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16552 |  | 
 | 16553 |   case $INSTALL in | 
 | 16554 |   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16555 |   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16556 |   esac | 
| Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 16557 |   ac_MKDIR_P=$MKDIR_P | 
 | 16558 |   case $MKDIR_P in | 
 | 16559 |   [\\/$]* | ?:[\\/]* ) ;; | 
 | 16560 |   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | 
 | 16561 |   esac | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16562 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16563 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16564 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16565 | # If the template does not know about datarootdir, expand it. | 
 | 16566 | # FIXME: This hack should be removed a few years after 2.60. | 
 | 16567 | ac_datarootdir_hack=; ac_datarootdir_seen= | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16568 | ac_sed_dataroot=' | 
 | 16569 | /datarootdir/ { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16570 |   p | 
 | 16571 |   q | 
 | 16572 | } | 
 | 16573 | /@datadir@/p | 
 | 16574 | /@docdir@/p | 
 | 16575 | /@infodir@/p | 
 | 16576 | /@localedir@/p | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16577 | /@mandir@/p' | 
 | 16578 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16579 | *datarootdir*) ac_datarootdir_seen=yes;; | 
 | 16580 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16581 |   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | 
 | 16582 | $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] | 16583 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16584 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16585 |   ac_datarootdir_hack=' | 
 | 16586 |   s&@datadir@&$datadir&g | 
 | 16587 |   s&@docdir@&$docdir&g | 
 | 16588 |   s&@infodir@&$infodir&g | 
 | 16589 |   s&@localedir@&$localedir&g | 
 | 16590 |   s&@mandir@&$mandir&g | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16591 |   s&\\\${datarootdir}&$datarootdir&g' ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16592 | esac | 
 | 16593 | _ACEOF | 
 | 16594 |  | 
 | 16595 | # Neutralize VPATH when `$srcdir' = `.'. | 
 | 16596 | # Shell code in configure.ac might set extrasub. | 
 | 16597 | # FIXME: do we really want to maintain this feature? | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16598 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
 | 16599 | ac_sed_extra="$ac_vpsub | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16600 | $extrasub | 
 | 16601 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16602 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16603 | :t | 
 | 16604 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16605 | s|@configure_input@|$ac_sed_conf_input|;t t | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16606 | s&@top_builddir@&$ac_top_builddir_sub&;t t | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16607 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16608 | s&@srcdir@&$ac_srcdir&;t t | 
 | 16609 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | 
 | 16610 | s&@top_srcdir@&$ac_top_srcdir&;t t | 
 | 16611 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | 
 | 16612 | s&@builddir@&$ac_builddir&;t t | 
 | 16613 | s&@abs_builddir@&$ac_abs_builddir&;t t | 
 | 16614 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | 
 | 16615 | s&@INSTALL@&$ac_INSTALL&;t t | 
| Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 16616 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16617 | $ac_datarootdir_hack | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16618 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 16619 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ | 
 | 16620 |   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16621 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16622 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 16623 |   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && | 
 | 16624 |   { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \ | 
 | 16625 |       "$ac_tmp/out"`; test -z "$ac_out"; } && | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16626 |   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16627 | which seems to be undefined.  Please make sure it is defined" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16628 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16629 | which seems to be undefined.  Please make sure it is defined" >&2;} | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 16630 |  | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 16631 |   rm -f "$ac_tmp/stdin" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16632 |   case $ac_file in | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 16633 |   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; | 
 | 16634 |   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16635 |   esac \ | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16636 |   || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16637 |  ;; | 
 | 16638 |   :H) | 
 | 16639 |   # | 
 | 16640 |   # CONFIG_HEADER | 
 | 16641 |   # | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16642 |   if test x"$ac_file" != x-; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16643 |     { | 
 | 16644 |       $as_echo "/* $configure_input  */" \ | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 16645 |       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" | 
 | 16646 |     } >"$ac_tmp/config.h" \ | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16647 |       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 16648 |     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16649 |       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | 
 | 16650 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16651 |     else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16652 |       rm -f "$ac_file" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 16653 |       mv "$ac_tmp/config.h" "$ac_file" \ | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16654 | 	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16655 |     fi | 
 | 16656 |   else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16657 |     $as_echo "/* $configure_input  */" \ | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 16658 |       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16659 |       || as_fn_error $? "could not create -" "$LINENO" 5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16660 |   fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16661 |  ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16662 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16663 |  | 
 | 16664 |   esac | 
 | 16665 |  | 
| Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 16666 |  | 
 | 16667 |   case $ac_file$ac_mode in | 
 | 16668 |     "Modules/ld_so_aix":F) chmod +x Modules/ld_so_aix ;; | 
 | 16669 |  | 
 | 16670 |   esac | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16671 | done # for ac_tag | 
 | 16672 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16673 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16674 | as_fn_exit 0 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16675 | _ACEOF | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16676 | ac_clean_files=$ac_clean_files_save | 
 | 16677 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16678 | test $ac_write_fail = 0 || | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16679 |   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16680 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16681 |  | 
 | 16682 | # configure is writing to config.log, and then calls config.status. | 
 | 16683 | # config.status does its own redirection, appending to config.log. | 
 | 16684 | # Unfortunately, on DOS this fails, as config.log is still kept open | 
 | 16685 | # by configure, so config.status won't be able to write to it; its | 
 | 16686 | # output is simply discarded.  So we exec the FD to /dev/null, | 
 | 16687 | # effectively closing config.log, so it can be properly (re)opened and | 
 | 16688 | # appended to by config.status.  When coming back to configure, we | 
 | 16689 | # need to make the FD available again. | 
 | 16690 | if test "$no_create" != yes; then | 
 | 16691 |   ac_cs_success=: | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16692 |   ac_config_status_args= | 
 | 16693 |   test "$silent" = yes && | 
 | 16694 |     ac_config_status_args="$ac_config_status_args --quiet" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16695 |   exec 5>/dev/null | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16696 |   $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] | 16697 |   exec 5>>config.log | 
 | 16698 |   # Use ||, not &&, to avoid exiting from the if with $? = 1, which | 
 | 16699 |   # would make configure fail if this is the last instruction. | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16700 |   $ac_cs_success || as_fn_exit 1 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16701 | fi | 
 | 16702 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | 
 | 16703 |   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | 
 | 16704 | $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] | 16705 | fi | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16706 |  | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 16707 |  | 
| Christian Heimes | 75ed890 | 2013-11-20 01:11:18 +0100 | [diff] [blame] | 16708 | echo "creating Modules/Setup" >&6 | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 16709 | if test ! -f Modules/Setup | 
 | 16710 | then | 
 | 16711 | 	cp $srcdir/Modules/Setup.dist Modules/Setup | 
 | 16712 | fi | 
 | 16713 |  | 
| Christian Heimes | 75ed890 | 2013-11-20 01:11:18 +0100 | [diff] [blame] | 16714 | echo "creating Modules/Setup.local" >&6 | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 16715 | if test ! -f Modules/Setup.local | 
 | 16716 | then | 
 | 16717 | 	echo "# Edit this file for local setup changes" >Modules/Setup.local | 
 | 16718 | fi | 
 | 16719 |  | 
| Christian Heimes | 75ed890 | 2013-11-20 01:11:18 +0100 | [diff] [blame] | 16720 | echo "creating Makefile" >&6 | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 16721 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ | 
 | 16722 | 			-s Modules Modules/Setup.config \ | 
| Neil Schemenauer | f8b71c5 | 2001-04-21 17:41:16 +0000 | [diff] [blame] | 16723 | 			Modules/Setup.local Modules/Setup | 
| Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 16724 | mv config.c Modules |