| 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. | 
| Yury Selivanov | 7aa5341 | 2015-05-30 10:57:56 -0400 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.69 for python 3.5. | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4 | # | 
| Benjamin Peterson | c2fcbf4 | 2016-08-03 22:01:32 -0700 | [diff] [blame] | 5 | # Report bugs to <https://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 | 
| Benjamin Peterson | c2fcbf4 | 2016-08-03 22:01:32 -0700 | [diff] [blame] | 270 | $0: https://bugs.python.org/ about your system, including | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 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' | 
| Yury Selivanov | 7aa5341 | 2015-05-30 10:57:56 -0400 | [diff] [blame] | 583 | PACKAGE_VERSION='3.5' | 
 | 584 | PACKAGE_STRING='python 3.5' | 
| Benjamin Peterson | c2fcbf4 | 2016-08-03 22:01:32 -0700 | [diff] [blame] | 585 | PACKAGE_BUGREPORT='https://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 | 
| Victor Stinner | 8291b5e | 2015-03-20 16:03:14 +0100 | [diff] [blame] | 653 | PKG_CONFIG_LIBDIR | 
 | 654 | PKG_CONFIG_PATH | 
 | 655 | PKG_CONFIG | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 656 | SHLIBS | 
 | 657 | CFLAGSFORSHARED | 
 | 658 | LINKFORSHARED | 
 | 659 | CCSHARED | 
 | 660 | BLDSHARED | 
 | 661 | LDCXXSHARED | 
 | 662 | LDSHARED | 
| doko@ubuntu.com | d5537d0 | 2013-03-21 13:21:49 -0700 | [diff] [blame] | 663 | SHLIB_SUFFIX | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 664 | LIBTOOL_CRUFT | 
 | 665 | OTHER_LIBTOOL_OPT | 
 | 666 | UNIVERSAL_ARCH_FLAGS | 
| Benjamin Peterson | acb8c52 | 2014-08-09 20:01:49 -0700 | [diff] [blame] | 667 | CFLAGS_NODIST | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 668 | BASECFLAGS | 
 | 669 | OPT | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 670 | LLVM_PROF_FOUND | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 671 | target_os | 
 | 672 | target_vendor | 
 | 673 | target_cpu | 
 | 674 | target | 
 | 675 | LLVM_PROFDATA | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 676 | LLVM_PROF_ERR | 
 | 677 | LLVM_PROF_FILE | 
 | 678 | LLVM_PROF_MERGER | 
 | 679 | PGO_PROF_USE_FLAG | 
 | 680 | PGO_PROF_GEN_FLAG | 
| Gregory P. Smith | d82da9f | 2016-04-15 16:57:04 -0700 | [diff] [blame] | 681 | LTOFLAGS | 
| Brett Cannon | 8c94f97 | 2016-09-06 17:15:21 -0700 | [diff] [blame] | 682 | DEF_MAKE_RULE | 
 | 683 | DEF_MAKE_ALL_RULE | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 684 | ABIFLAGS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 685 | LN | 
| Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 686 | MKDIR_P | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 687 | INSTALL_DATA | 
 | 688 | INSTALL_SCRIPT | 
 | 689 | INSTALL_PROGRAM | 
| doko@ubuntu.com | 5884449 | 2012-06-30 18:25:32 +0200 | [diff] [blame] | 690 | ac_ct_READELF | 
 | 691 | READELF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 692 | ARFLAGS | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 693 | ac_ct_AR | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 694 | AR | 
 | 695 | RANLIB | 
| Daniel Stutzbach | a606faa | 2010-08-31 19:51:07 +0000 | [diff] [blame] | 696 | USE_INLINE | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 697 | GNULD | 
 | 698 | LINKCC | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 699 | LDVERSION | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 700 | RUNSHARED | 
 | 701 | INSTSONAME | 
 | 702 | LDLIBRARYDIR | 
| Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 +0000 | [diff] [blame] | 703 | PY3LIBRARY | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 704 | BLDLIBRARY | 
 | 705 | DLLLIBRARY | 
 | 706 | LDLIBRARY | 
 | 707 | LIBRARY | 
 | 708 | BUILDEXEEXT | 
 | 709 | EGREP | 
| Martin v. Löwis | 48e14d3 | 2011-05-09 07:37:45 +0200 | [diff] [blame] | 710 | NO_AS_NEEDED | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 711 | PLATFORM_TRIPLET | 
| doko@ubuntu.com | 092f616 | 2015-04-15 20:45:33 +0200 | [diff] [blame] | 712 | PLATDIR | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 713 | MULTIARCH | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 714 | ac_ct_CXX | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 715 | MAINCC | 
 | 716 | CXX | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 717 | GREP | 
 | 718 | CPP | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 719 | OBJEXT | 
 | 720 | EXEEXT | 
 | 721 | ac_ct_CC | 
 | 722 | CPPFLAGS | 
 | 723 | LDFLAGS | 
 | 724 | CFLAGS | 
 | 725 | CC | 
 | 726 | EXPORT_MACOSX_DEPLOYMENT_TARGET | 
 | 727 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET | 
 | 728 | SGI_ABI | 
| doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 729 | _PYTHON_HOST_PLATFORM | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 730 | MACHDEP | 
| Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 731 | FRAMEWORKINSTALLAPPSPREFIX | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 732 | FRAMEWORKUNIXTOOLSPREFIX | 
| Ned Deily | b8f944f | 2013-11-21 22:42:25 -0800 | [diff] [blame] | 733 | FRAMEWORKPYTHONW | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 734 | FRAMEWORKALTINSTALLLAST | 
 | 735 | FRAMEWORKALTINSTALLFIRST | 
 | 736 | FRAMEWORKINSTALLLAST | 
 | 737 | FRAMEWORKINSTALLFIRST | 
 | 738 | PYTHONFRAMEWORKINSTALLDIR | 
 | 739 | PYTHONFRAMEWORKPREFIX | 
 | 740 | PYTHONFRAMEWORKDIR | 
 | 741 | PYTHONFRAMEWORKIDENTIFIER | 
 | 742 | PYTHONFRAMEWORK | 
 | 743 | LIPO_32BIT_FLAGS | 
 | 744 | ARCH_RUN_32BIT | 
 | 745 | UNIVERSALSDK | 
 | 746 | CONFIG_ARGS | 
 | 747 | SOVERSION | 
 | 748 | VERSION | 
| Martin Panter | 43a94a7 | 2016-07-29 05:52:32 +0000 | [diff] [blame] | 749 | GENERATED_COMMENT | 
| doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 750 | PYTHON_FOR_BUILD | 
| Xavier de Gaye | fd0d593 | 2016-07-26 12:48:08 +0200 | [diff] [blame] | 751 | PYTHON_FOR_GEN | 
| Matthias Klose | ca2f6ec | 2012-03-15 21:30:11 +0100 | [diff] [blame] | 752 | host_os | 
 | 753 | host_vendor | 
 | 754 | host_cpu | 
 | 755 | host | 
 | 756 | build_os | 
 | 757 | build_vendor | 
 | 758 | build_cpu | 
 | 759 | build | 
| Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 760 | HAS_HG | 
 | 761 | HGBRANCH | 
 | 762 | HGTAG | 
 | 763 | HGVERSION | 
| Trent Nelson | 4d4ec65 | 2012-10-16 08:51:24 -0400 | [diff] [blame] | 764 | BASECPPFLAGS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 765 | target_alias | 
 | 766 | host_alias | 
 | 767 | build_alias | 
 | 768 | LIBS | 
 | 769 | ECHO_T | 
 | 770 | ECHO_N | 
 | 771 | ECHO_C | 
 | 772 | DEFS | 
 | 773 | mandir | 
 | 774 | localedir | 
 | 775 | libdir | 
 | 776 | psdir | 
 | 777 | pdfdir | 
 | 778 | dvidir | 
 | 779 | htmldir | 
 | 780 | infodir | 
 | 781 | docdir | 
 | 782 | oldincludedir | 
 | 783 | includedir | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 784 | runstatedir | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 785 | localstatedir | 
 | 786 | sharedstatedir | 
 | 787 | sysconfdir | 
 | 788 | datadir | 
 | 789 | datarootdir | 
 | 790 | libexecdir | 
 | 791 | sbindir | 
 | 792 | bindir | 
 | 793 | program_transform_name | 
 | 794 | prefix | 
 | 795 | exec_prefix | 
 | 796 | PACKAGE_URL | 
 | 797 | PACKAGE_BUGREPORT | 
 | 798 | PACKAGE_STRING | 
 | 799 | PACKAGE_VERSION | 
 | 800 | PACKAGE_TARNAME | 
 | 801 | PACKAGE_NAME | 
 | 802 | PATH_SEPARATOR | 
 | 803 | SHELL' | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 804 | ac_subst_files='' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 805 | ac_user_opts=' | 
 | 806 | enable_option_checking | 
 | 807 | enable_universalsdk | 
 | 808 | with_universal_archs | 
 | 809 | with_framework_name | 
 | 810 | enable_framework | 
 | 811 | with_gcc | 
| Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 812 | with_icc | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 813 | with_cxx_main | 
 | 814 | with_suffix | 
 | 815 | enable_shared | 
 | 816 | enable_profiling | 
 | 817 | with_pydebug | 
| Brett Cannon | 8c94f97 | 2016-09-06 17:15:21 -0700 | [diff] [blame] | 818 | with_optimizations | 
| Gregory P. Smith | d82da9f | 2016-04-15 16:57:04 -0700 | [diff] [blame] | 819 | with_lto | 
| Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 820 | with_hash_algorithm | 
| Charles-François Natali | d30b022 | 2014-05-08 23:08:51 +0100 | [diff] [blame] | 821 | with_address_sanitizer | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 822 | with_libs | 
 | 823 | with_system_expat | 
 | 824 | with_system_ffi | 
| Stefan Krah | 60187b5 | 2012-03-23 19:06:27 +0100 | [diff] [blame] | 825 | with_system_libmpdec | 
| Benjamin Peterson | 076ed00 | 2010-10-31 17:11:02 +0000 | [diff] [blame] | 826 | enable_loadable_sqlite_extensions | 
| Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 827 | with_tcltk_includes | 
 | 828 | with_tcltk_libs | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 829 | with_dbmliborder | 
 | 830 | with_signal_module | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 831 | with_threads | 
 | 832 | with_thread | 
 | 833 | enable_ipv6 | 
 | 834 | with_doc_strings | 
 | 835 | with_tsc | 
 | 836 | with_pymalloc | 
 | 837 | with_valgrind | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 838 | with_fpectl | 
 | 839 | with_libm | 
 | 840 | with_libc | 
 | 841 | enable_big_digits | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 842 | with_computed_gotos | 
| Ned Deily | 322f5ba | 2013-11-21 23:01:59 -0800 | [diff] [blame] | 843 | with_ensurepip | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 844 | ' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 845 |       ac_precious_vars='build_alias | 
 | 846 | host_alias | 
 | 847 | target_alias | 
| doko@python.org | eab42bf | 2013-01-26 18:57:19 +0100 | [diff] [blame] | 848 | MACHDEP | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 849 | CC | 
 | 850 | CFLAGS | 
 | 851 | LDFLAGS | 
 | 852 | LIBS | 
 | 853 | CPPFLAGS | 
| Victor Stinner | 8291b5e | 2015-03-20 16:03:14 +0100 | [diff] [blame] | 854 | CPP | 
 | 855 | PKG_CONFIG | 
 | 856 | PKG_CONFIG_PATH | 
 | 857 | PKG_CONFIG_LIBDIR' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 858 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 859 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 860 | # Initialize some variables set by options. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 861 | ac_init_help= | 
 | 862 | ac_init_version=false | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 863 | ac_unrecognized_opts= | 
 | 864 | ac_unrecognized_sep= | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 865 | # The variables have the same names as the options, with | 
 | 866 | # dashes changed to underlines. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 867 | cache_file=/dev/null | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 868 | exec_prefix=NONE | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 869 | no_create= | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 870 | no_recursion= | 
 | 871 | prefix=NONE | 
 | 872 | program_prefix=NONE | 
 | 873 | program_suffix=NONE | 
 | 874 | program_transform_name=s,x,x, | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 875 | silent= | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 876 | site= | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 877 | srcdir= | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 878 | verbose= | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 879 | x_includes=NONE | 
 | 880 | x_libraries=NONE | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 881 |  | 
 | 882 | # Installation directory options. | 
 | 883 | # These are left unexpanded so users can "make install exec_prefix=/foo" | 
 | 884 | # and all the variables that are supposed to be based on exec_prefix | 
 | 885 | # by default will actually change. | 
 | 886 | # Use braces instead of parens because sh, perl, etc. also accept them. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 887 | # (The list follows the same order as the GNU Coding Standards.) | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 888 | bindir='${exec_prefix}/bin' | 
 | 889 | sbindir='${exec_prefix}/sbin' | 
 | 890 | libexecdir='${exec_prefix}/libexec' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 891 | datarootdir='${prefix}/share' | 
 | 892 | datadir='${datarootdir}' | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 893 | sysconfdir='${prefix}/etc' | 
 | 894 | sharedstatedir='${prefix}/com' | 
 | 895 | localstatedir='${prefix}/var' | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 896 | runstatedir='${localstatedir}/run' | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 897 | includedir='${prefix}/include' | 
 | 898 | oldincludedir='/usr/include' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 899 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | 
 | 900 | infodir='${datarootdir}/info' | 
 | 901 | htmldir='${docdir}' | 
 | 902 | dvidir='${docdir}' | 
 | 903 | pdfdir='${docdir}' | 
 | 904 | psdir='${docdir}' | 
 | 905 | libdir='${exec_prefix}/lib' | 
 | 906 | localedir='${datarootdir}/locale' | 
 | 907 | mandir='${datarootdir}/man' | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 908 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 909 | ac_prev= | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 910 | ac_dashdash= | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 911 | for ac_option | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 912 | do | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 913 |   # If the previous option needs an argument, assign it. | 
 | 914 |   if test -n "$ac_prev"; then | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 915 |     eval $ac_prev=\$ac_option | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 916 |     ac_prev= | 
 | 917 |     continue | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 918 |   fi | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 919 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 920 |   case $ac_option in | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 921 |   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | 
 | 922 |   *=)   ac_optarg= ;; | 
 | 923 |   *)    ac_optarg=yes ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 924 |   esac | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 925 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 926 |   # Accept the important Cygnus configure options, so we can diagnose typos. | 
 | 927 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 928 |   case $ac_dashdash$ac_option in | 
 | 929 |   --) | 
 | 930 |     ac_dashdash=yes ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 931 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 932 |   -bindir | --bindir | --bindi | --bind | --bin | --bi) | 
 | 933 |     ac_prev=bindir ;; | 
 | 934 |   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 935 |     bindir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 936 |  | 
 | 937 |   -build | --build | --buil | --bui | --bu) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 938 |     ac_prev=build_alias ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 939 |   -build=* | --build=* | --buil=* | --bui=* | --bu=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 940 |     build_alias=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 941 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 942 |   -cache-file | --cache-file | --cache-fil | --cache-fi \ | 
 | 943 |   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | 
 | 944 |     ac_prev=cache_file ;; | 
 | 945 |   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | 
 | 946 |   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 947 |     cache_file=$ac_optarg ;; | 
 | 948 |  | 
 | 949 |   --config-cache | -C) | 
 | 950 |     cache_file=config.cache ;; | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 951 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 952 |   -datadir | --datadir | --datadi | --datad) | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 953 |     ac_prev=datadir ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 954 |   -datadir=* | --datadir=* | --datadi=* | --datad=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 955 |     datadir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 956 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 957 |   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | 
 | 958 |   | --dataroo | --dataro | --datar) | 
 | 959 |     ac_prev=datarootdir ;; | 
 | 960 |   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | 
 | 961 |   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | 
 | 962 |     datarootdir=$ac_optarg ;; | 
 | 963 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 964 |   -disable-* | --disable-*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 965 |     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 966 |     # Reject names that are not valid shell variable names. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 967 |     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 968 |       as_fn_error $? "invalid feature name: $ac_useropt" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 969 |     ac_useropt_orig=$ac_useropt | 
 | 970 |     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 
 | 971 |     case $ac_user_opts in | 
 | 972 |       *" | 
 | 973 | "enable_$ac_useropt" | 
 | 974 | "*) ;; | 
 | 975 |       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | 
 | 976 | 	 ac_unrecognized_sep=', ';; | 
 | 977 |     esac | 
 | 978 |     eval enable_$ac_useropt=no ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 979 |  | 
 | 980 |   -docdir | --docdir | --docdi | --doc | --do) | 
 | 981 |     ac_prev=docdir ;; | 
 | 982 |   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | 
 | 983 |     docdir=$ac_optarg ;; | 
 | 984 |  | 
 | 985 |   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | 
 | 986 |     ac_prev=dvidir ;; | 
 | 987 |   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | 
 | 988 |     dvidir=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 989 |  | 
 | 990 |   -enable-* | --enable-*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 991 |     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 992 |     # Reject names that are not valid shell variable names. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 993 |     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 994 |       as_fn_error $? "invalid feature name: $ac_useropt" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 995 |     ac_useropt_orig=$ac_useropt | 
 | 996 |     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 
 | 997 |     case $ac_user_opts in | 
 | 998 |       *" | 
 | 999 | "enable_$ac_useropt" | 
 | 1000 | "*) ;; | 
 | 1001 |       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | 
 | 1002 | 	 ac_unrecognized_sep=', ';; | 
 | 1003 |     esac | 
 | 1004 |     eval enable_$ac_useropt=\$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1005 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1006 |   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | 
 | 1007 |   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | 
 | 1008 |   | --exec | --exe | --ex) | 
 | 1009 |     ac_prev=exec_prefix ;; | 
 | 1010 |   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | 
 | 1011 |   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | 
 | 1012 |   | --exec=* | --exe=* | --ex=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1013 |     exec_prefix=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1014 |  | 
 | 1015 |   -gas | --gas | --ga | --g) | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1016 |     # Obsolete; use --with-gas. | 
 | 1017 |     with_gas=yes ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1018 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1019 |   -help | --help | --hel | --he | -h) | 
 | 1020 |     ac_init_help=long ;; | 
 | 1021 |   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | 
 | 1022 |     ac_init_help=recursive ;; | 
 | 1023 |   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | 
 | 1024 |     ac_init_help=short ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1025 |  | 
 | 1026 |   -host | --host | --hos | --ho) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1027 |     ac_prev=host_alias ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1028 |   -host=* | --host=* | --hos=* | --ho=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1029 |     host_alias=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1030 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1031 |   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | 
 | 1032 |     ac_prev=htmldir ;; | 
 | 1033 |   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | 
 | 1034 |   | --ht=*) | 
 | 1035 |     htmldir=$ac_optarg ;; | 
 | 1036 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1037 |   -includedir | --includedir | --includedi | --included | --include \ | 
 | 1038 |   | --includ | --inclu | --incl | --inc) | 
 | 1039 |     ac_prev=includedir ;; | 
 | 1040 |   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | 
 | 1041 |   | --includ=* | --inclu=* | --incl=* | --inc=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1042 |     includedir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1043 |  | 
 | 1044 |   -infodir | --infodir | --infodi | --infod | --info | --inf) | 
 | 1045 |     ac_prev=infodir ;; | 
 | 1046 |   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1047 |     infodir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1048 |  | 
 | 1049 |   -libdir | --libdir | --libdi | --libd) | 
 | 1050 |     ac_prev=libdir ;; | 
 | 1051 |   -libdir=* | --libdir=* | --libdi=* | --libd=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1052 |     libdir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1053 |  | 
 | 1054 |   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | 
 | 1055 |   | --libexe | --libex | --libe) | 
 | 1056 |     ac_prev=libexecdir ;; | 
 | 1057 |   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | 
 | 1058 |   | --libexe=* | --libex=* | --libe=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1059 |     libexecdir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1060 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1061 |   -localedir | --localedir | --localedi | --localed | --locale) | 
 | 1062 |     ac_prev=localedir ;; | 
 | 1063 |   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | 
 | 1064 |     localedir=$ac_optarg ;; | 
 | 1065 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1066 |   -localstatedir | --localstatedir | --localstatedi | --localstated \ | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1067 |   | --localstate | --localstat | --localsta | --localst | --locals) | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1068 |     ac_prev=localstatedir ;; | 
 | 1069 |   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1070 |   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1071 |     localstatedir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1072 |  | 
 | 1073 |   -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | 
 | 1074 |     ac_prev=mandir ;; | 
 | 1075 |   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1076 |     mandir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1077 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1078 |   -nfp | --nfp | --nf) | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1079 |     # Obsolete; use --without-fp. | 
 | 1080 |     with_fp=no ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1081 |  | 
 | 1082 |   -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1083 |   | --no-cr | --no-c | -n) | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1084 |     no_create=yes ;; | 
 | 1085 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1086 |   -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | 
 | 1087 |   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | 
 | 1088 |     no_recursion=yes ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1089 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1090 |   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | 
 | 1091 |   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | 
 | 1092 |   | --oldin | --oldi | --old | --ol | --o) | 
 | 1093 |     ac_prev=oldincludedir ;; | 
 | 1094 |   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | 
 | 1095 |   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | 
 | 1096 |   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1097 |     oldincludedir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1098 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1099 |   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | 
 | 1100 |     ac_prev=prefix ;; | 
 | 1101 |   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1102 |     prefix=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1103 |  | 
 | 1104 |   -program-prefix | --program-prefix | --program-prefi | --program-pref \ | 
 | 1105 |   | --program-pre | --program-pr | --program-p) | 
 | 1106 |     ac_prev=program_prefix ;; | 
 | 1107 |   -program-prefix=* | --program-prefix=* | --program-prefi=* \ | 
 | 1108 |   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1109 |     program_prefix=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1110 |  | 
 | 1111 |   -program-suffix | --program-suffix | --program-suffi | --program-suff \ | 
 | 1112 |   | --program-suf | --program-su | --program-s) | 
 | 1113 |     ac_prev=program_suffix ;; | 
 | 1114 |   -program-suffix=* | --program-suffix=* | --program-suffi=* \ | 
 | 1115 |   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1116 |     program_suffix=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1117 |  | 
 | 1118 |   -program-transform-name | --program-transform-name \ | 
 | 1119 |   | --program-transform-nam | --program-transform-na \ | 
 | 1120 |   | --program-transform-n | --program-transform- \ | 
 | 1121 |   | --program-transform | --program-transfor \ | 
 | 1122 |   | --program-transfo | --program-transf \ | 
 | 1123 |   | --program-trans | --program-tran \ | 
 | 1124 |   | --progr-tra | --program-tr | --program-t) | 
 | 1125 |     ac_prev=program_transform_name ;; | 
 | 1126 |   -program-transform-name=* | --program-transform-name=* \ | 
 | 1127 |   | --program-transform-nam=* | --program-transform-na=* \ | 
 | 1128 |   | --program-transform-n=* | --program-transform-=* \ | 
 | 1129 |   | --program-transform=* | --program-transfor=* \ | 
 | 1130 |   | --program-transfo=* | --program-transf=* \ | 
 | 1131 |   | --program-trans=* | --program-tran=* \ | 
 | 1132 |   | --progr-tra=* | --program-tr=* | --program-t=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1133 |     program_transform_name=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1134 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1135 |   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | 
 | 1136 |     ac_prev=pdfdir ;; | 
 | 1137 |   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | 
 | 1138 |     pdfdir=$ac_optarg ;; | 
 | 1139 |  | 
 | 1140 |   -psdir | --psdir | --psdi | --psd | --ps) | 
 | 1141 |     ac_prev=psdir ;; | 
 | 1142 |   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | 
 | 1143 |     psdir=$ac_optarg ;; | 
 | 1144 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1145 |   -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
 | 1146 |   | -silent | --silent | --silen | --sile | --sil) | 
 | 1147 |     silent=yes ;; | 
 | 1148 |  | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 1149 |   -runstatedir | --runstatedir | --runstatedi | --runstated \ | 
 | 1150 |   | --runstate | --runstat | --runsta | --runst | --runs \ | 
 | 1151 |   | --run | --ru | --r) | 
 | 1152 |     ac_prev=runstatedir ;; | 
 | 1153 |   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ | 
 | 1154 |   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ | 
 | 1155 |   | --run=* | --ru=* | --r=*) | 
 | 1156 |     runstatedir=$ac_optarg ;; | 
 | 1157 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1158 |   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | 
 | 1159 |     ac_prev=sbindir ;; | 
 | 1160 |   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | 
 | 1161 |   | --sbi=* | --sb=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1162 |     sbindir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1163 |  | 
 | 1164 |   -sharedstatedir | --sharedstatedir | --sharedstatedi \ | 
 | 1165 |   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | 
 | 1166 |   | --sharedst | --shareds | --shared | --share | --shar \ | 
 | 1167 |   | --sha | --sh) | 
 | 1168 |     ac_prev=sharedstatedir ;; | 
 | 1169 |   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | 
 | 1170 |   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | 
 | 1171 |   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | 
 | 1172 |   | --sha=* | --sh=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1173 |     sharedstatedir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1174 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1175 |   -site | --site | --sit) | 
 | 1176 |     ac_prev=site ;; | 
 | 1177 |   -site=* | --site=* | --sit=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1178 |     site=$ac_optarg ;; | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1179 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1180 |   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | 
 | 1181 |     ac_prev=srcdir ;; | 
 | 1182 |   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1183 |     srcdir=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1184 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1185 |   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | 
 | 1186 |   | --syscon | --sysco | --sysc | --sys | --sy) | 
 | 1187 |     ac_prev=sysconfdir ;; | 
 | 1188 |   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | 
 | 1189 |   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1190 |     sysconfdir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1191 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1192 |   -target | --target | --targe | --targ | --tar | --ta | --t) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1193 |     ac_prev=target_alias ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1194 |   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1195 |     target_alias=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1196 |  | 
 | 1197 |   -v | -verbose | --verbose | --verbos | --verbo | --verb) | 
 | 1198 |     verbose=yes ;; | 
 | 1199 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1200 |   -version | --version | --versio | --versi | --vers | -V) | 
 | 1201 |     ac_init_version=: ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1202 |  | 
 | 1203 |   -with-* | --with-*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1204 |     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1205 |     # Reject names that are not valid shell variable names. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1206 |     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1207 |       as_fn_error $? "invalid package name: $ac_useropt" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1208 |     ac_useropt_orig=$ac_useropt | 
 | 1209 |     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 
 | 1210 |     case $ac_user_opts in | 
 | 1211 |       *" | 
 | 1212 | "with_$ac_useropt" | 
 | 1213 | "*) ;; | 
 | 1214 |       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | 
 | 1215 | 	 ac_unrecognized_sep=', ';; | 
 | 1216 |     esac | 
 | 1217 |     eval with_$ac_useropt=\$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1218 |  | 
 | 1219 |   -without-* | --without-*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1220 |     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1221 |     # Reject names that are not valid shell variable names. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1222 |     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1223 |       as_fn_error $? "invalid package name: $ac_useropt" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1224 |     ac_useropt_orig=$ac_useropt | 
 | 1225 |     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 
 | 1226 |     case $ac_user_opts in | 
 | 1227 |       *" | 
 | 1228 | "with_$ac_useropt" | 
 | 1229 | "*) ;; | 
 | 1230 |       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | 
 | 1231 | 	 ac_unrecognized_sep=', ';; | 
 | 1232 |     esac | 
 | 1233 |     eval with_$ac_useropt=no ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1234 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1235 |   --x) | 
 | 1236 |     # Obsolete; use --with-x. | 
 | 1237 |     with_x=yes ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1238 |  | 
 | 1239 |   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | 
 | 1240 |   | --x-incl | --x-inc | --x-in | --x-i) | 
 | 1241 |     ac_prev=x_includes ;; | 
 | 1242 |   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | 
 | 1243 |   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1244 |     x_includes=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1245 |  | 
 | 1246 |   -x-libraries | --x-libraries | --x-librarie | --x-librari \ | 
 | 1247 |   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | 
 | 1248 |     ac_prev=x_libraries ;; | 
 | 1249 |   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | 
 | 1250 |   | --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] | 1251 |     x_libraries=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1252 |  | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1253 |   -*) as_fn_error $? "unrecognized option: \`$ac_option' | 
 | 1254 | Try \`$0 --help' for more information" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1255 |     ;; | 
 | 1256 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1257 |   *=*) | 
 | 1258 |     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | 
 | 1259 |     # Reject names that are not valid shell variable names. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1260 |     case $ac_envvar in #( | 
 | 1261 |       '' | [0-9]* | *[!_$as_cr_alnum]* ) | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1262 |       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1263 |     esac | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1264 |     eval $ac_envvar=\$ac_optarg | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1265 |     export $ac_envvar ;; | 
 | 1266 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1267 |   *) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1268 |     # FIXME: should be removed in autoconf 3.0. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1269 |     $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] | 1270 |     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1271 |       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1272 |     : "${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] | 1273 |     ;; | 
 | 1274 |  | 
 | 1275 |   esac | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1276 | done | 
 | 1277 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1278 | if test -n "$ac_prev"; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1279 |   ac_option=--`echo $ac_prev | sed 's/_/-/g'` | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1280 |   as_fn_error $? "missing argument to $ac_option" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1281 | fi | 
 | 1282 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1283 | if test -n "$ac_unrecognized_opts"; then | 
 | 1284 |   case $enable_option_checking in | 
 | 1285 |     no) ;; | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1286 |     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1287 |     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | 
 | 1288 |   esac | 
 | 1289 | fi | 
 | 1290 |  | 
 | 1291 | # Check all directory arguments for consistency. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1292 | for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \ | 
 | 1293 | 		datadir sysconfdir sharedstatedir localstatedir includedir \ | 
 | 1294 | 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 1295 | 		libdir localedir mandir runstatedir | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1296 | do | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1297 |   eval ac_val=\$$ac_var | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1298 |   # Remove trailing slashes. | 
 | 1299 |   case $ac_val in | 
 | 1300 |     */ ) | 
 | 1301 |       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | 
 | 1302 |       eval $ac_var=\$ac_val;; | 
 | 1303 |   esac | 
 | 1304 |   # Be sure to have absolute directory names. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1305 |   case $ac_val in | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1306 |     [\\/$]* | ?:[\\/]* )  continue;; | 
 | 1307 |     NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1308 |   esac | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1309 |   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] | 1310 | done | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1311 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1312 | # There might be people who depend on the old broken behavior: `$host' | 
 | 1313 | # used to hold the argument of --host etc. | 
 | 1314 | # FIXME: To remove some day. | 
 | 1315 | build=$build_alias | 
 | 1316 | host=$host_alias | 
 | 1317 | target=$target_alias | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1318 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1319 | # FIXME: To remove some day. | 
 | 1320 | if test "x$host_alias" != x; then | 
 | 1321 |   if test "x$build_alias" = x; then | 
 | 1322 |     cross_compiling=maybe | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1323 |   elif test "x$build_alias" != "x$host_alias"; then | 
 | 1324 |     cross_compiling=yes | 
 | 1325 |   fi | 
 | 1326 | fi | 
 | 1327 |  | 
 | 1328 | ac_tool_prefix= | 
 | 1329 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | 
 | 1330 |  | 
 | 1331 | test "$silent" = yes && exec 6>/dev/null | 
 | 1332 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1333 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1334 | ac_pwd=`pwd` && test -n "$ac_pwd" && | 
 | 1335 | ac_ls_di=`ls -di .` && | 
 | 1336 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1337 |   as_fn_error $? "working directory cannot be determined" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1338 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1339 |   as_fn_error $? "pwd does not report name of working directory" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1340 |  | 
 | 1341 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1342 | # Find the source files, if location was not specified. | 
 | 1343 | if test -z "$srcdir"; then | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1344 |   ac_srcdir_defaulted=yes | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1345 |   # Try the directory containing this script, then the parent directory. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1346 |   ac_confdir=`$as_dirname -- "$as_myself" || | 
 | 1347 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
 | 1348 | 	 X"$as_myself" : 'X\(//\)[^/]' \| \ | 
 | 1349 | 	 X"$as_myself" : 'X\(//\)$' \| \ | 
 | 1350 | 	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | 
 | 1351 | $as_echo X"$as_myself" | | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1352 |     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
 | 1353 | 	    s//\1/ | 
 | 1354 | 	    q | 
 | 1355 | 	  } | 
 | 1356 | 	  /^X\(\/\/\)[^/].*/{ | 
 | 1357 | 	    s//\1/ | 
 | 1358 | 	    q | 
 | 1359 | 	  } | 
 | 1360 | 	  /^X\(\/\/\)$/{ | 
 | 1361 | 	    s//\1/ | 
 | 1362 | 	    q | 
 | 1363 | 	  } | 
 | 1364 | 	  /^X\(\/\).*/{ | 
 | 1365 | 	    s//\1/ | 
 | 1366 | 	    q | 
 | 1367 | 	  } | 
 | 1368 | 	  s/.*/./; q'` | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1369 |   srcdir=$ac_confdir | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1370 |   if test ! -r "$srcdir/$ac_unique_file"; then | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1371 |     srcdir=.. | 
 | 1372 |   fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1373 | else | 
 | 1374 |   ac_srcdir_defaulted=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1375 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1376 | if test ! -r "$srcdir/$ac_unique_file"; then | 
 | 1377 |   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1378 |   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1379 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1380 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | 
 | 1381 | ac_abs_confdir=`( | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1382 | 	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1383 | 	pwd)` | 
 | 1384 | # When building in place, set srcdir=. | 
 | 1385 | if test "$ac_abs_confdir" = "$ac_pwd"; then | 
 | 1386 |   srcdir=. | 
 | 1387 | fi | 
 | 1388 | # Remove unnecessary trailing slashes from srcdir. | 
 | 1389 | # Double slashes in file names in object file debugging info | 
 | 1390 | # mess up M-x gdb in Emacs. | 
 | 1391 | case $srcdir in | 
 | 1392 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | 
 | 1393 | esac | 
 | 1394 | for ac_var in $ac_precious_vars; do | 
 | 1395 |   eval ac_env_${ac_var}_set=\${${ac_var}+set} | 
 | 1396 |   eval ac_env_${ac_var}_value=\$${ac_var} | 
 | 1397 |   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | 
 | 1398 |   eval ac_cv_env_${ac_var}_value=\$${ac_var} | 
 | 1399 | done | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1400 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1401 | # | 
 | 1402 | # Report the --help message. | 
 | 1403 | # | 
 | 1404 | if test "$ac_init_help" = "long"; then | 
 | 1405 |   # Omit some internal or obsolete options to make the list less imposing. | 
 | 1406 |   # This message is too long to be a string in the A/UX 3.1 sh. | 
 | 1407 |   cat <<_ACEOF | 
| Yury Selivanov | 7aa5341 | 2015-05-30 10:57:56 -0400 | [diff] [blame] | 1408 | \`configure' configures python 3.5 to adapt to many kinds of systems. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1409 |  | 
 | 1410 | Usage: $0 [OPTION]... [VAR=VALUE]... | 
 | 1411 |  | 
 | 1412 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | 
 | 1413 | VAR=VALUE.  See below for descriptions of some of the useful variables. | 
 | 1414 |  | 
 | 1415 | Defaults for the options are specified in brackets. | 
 | 1416 |  | 
 | 1417 | Configuration: | 
 | 1418 |   -h, --help              display this help and exit | 
 | 1419 |       --help=short        display options specific to this package | 
 | 1420 |       --help=recursive    display the short help of all the included packages | 
 | 1421 |   -V, --version           display version information and exit | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1422 |   -q, --quiet, --silent   do not print \`checking ...' messages | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1423 |       --cache-file=FILE   cache test results in FILE [disabled] | 
 | 1424 |   -C, --config-cache      alias for \`--cache-file=config.cache' | 
 | 1425 |   -n, --no-create         do not create output files | 
 | 1426 |       --srcdir=DIR        find the sources in DIR [configure dir or \`..'] | 
 | 1427 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1428 | Installation directories: | 
 | 1429 |   --prefix=PREFIX         install architecture-independent files in PREFIX | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1430 |                           [$ac_default_prefix] | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1431 |   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1432 |                           [PREFIX] | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1433 |  | 
 | 1434 | By default, \`make install' will install all the files in | 
 | 1435 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify | 
 | 1436 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | 
 | 1437 | for instance \`--prefix=\$HOME'. | 
 | 1438 |  | 
 | 1439 | For better control, use the options below. | 
 | 1440 |  | 
 | 1441 | Fine tuning of the installation directories: | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1442 |   --bindir=DIR            user executables [EPREFIX/bin] | 
 | 1443 |   --sbindir=DIR           system admin executables [EPREFIX/sbin] | 
 | 1444 |   --libexecdir=DIR        program executables [EPREFIX/libexec] | 
 | 1445 |   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc] | 
 | 1446 |   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com] | 
 | 1447 |   --localstatedir=DIR     modifiable single-machine data [PREFIX/var] | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 1448 |   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run] | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1449 |   --libdir=DIR            object code libraries [EPREFIX/lib] | 
 | 1450 |   --includedir=DIR        C header files [PREFIX/include] | 
 | 1451 |   --oldincludedir=DIR     C header files for non-gcc [/usr/include] | 
 | 1452 |   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share] | 
 | 1453 |   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR] | 
 | 1454 |   --infodir=DIR           info documentation [DATAROOTDIR/info] | 
 | 1455 |   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale] | 
 | 1456 |   --mandir=DIR            man documentation [DATAROOTDIR/man] | 
 | 1457 |   --docdir=DIR            documentation root [DATAROOTDIR/doc/python] | 
 | 1458 |   --htmldir=DIR           html documentation [DOCDIR] | 
 | 1459 |   --dvidir=DIR            dvi documentation [DOCDIR] | 
 | 1460 |   --pdfdir=DIR            pdf documentation [DOCDIR] | 
 | 1461 |   --psdir=DIR             ps documentation [DOCDIR] | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1462 | _ACEOF | 
 | 1463 |  | 
 | 1464 |   cat <<\_ACEOF | 
| Matthias Klose | ca2f6ec | 2012-03-15 21:30:11 +0100 | [diff] [blame] | 1465 |  | 
 | 1466 | System types: | 
 | 1467 |   --build=BUILD     configure for building on BUILD [guessed] | 
 | 1468 |   --host=HOST       cross-compile to build programs to run on HOST [BUILD] | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 1469 |   --target=TARGET   configure for building compilers for TARGET [HOST] | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1470 | _ACEOF | 
 | 1471 | fi | 
 | 1472 |  | 
 | 1473 | if test -n "$ac_init_help"; then | 
| Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1474 |   case $ac_init_help in | 
| Yury Selivanov | 7aa5341 | 2015-05-30 10:57:56 -0400 | [diff] [blame] | 1475 |      short | recursive ) echo "Configuration of python 3.5:";; | 
| Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1476 |    esac | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1477 |   cat <<\_ACEOF | 
 | 1478 |  | 
 | 1479 | Optional Features: | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1480 |   --disable-option-checking  ignore unrecognized --enable/--with options | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1481 |   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no) | 
 | 1482 |   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes] | 
| Christian Heimes | 68f5fbe | 2008-02-14 08:27:37 +0000 | [diff] [blame] | 1483 |   --enable-universalsdk[=SDKDIR] | 
| Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 1484 |                           Build fat binary against Mac OS X SDK | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1485 |   --enable-framework[=INSTALLDIR] | 
 | 1486 |                           Build (MacOSX|Darwin) framework | 
 | 1487 |   --enable-shared         disable/enable building shared python library | 
| Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 1488 |   --enable-profiling      enable C-level code profiling | 
| Benjamin Peterson | 076ed00 | 2010-10-31 17:11:02 +0000 | [diff] [blame] | 1489 |   --enable-loadable-sqlite-extensions | 
 | 1490 |                           support loadable extensions in _sqlite module | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1491 |   --enable-ipv6           Enable ipv6 (with ipv4) support | 
 | 1492 |   --disable-ipv6          Disable ipv6 support | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 1493 |   --enable-big-digits[=BITS] | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1494 |                           use big digits for Python longs [[BITS=30]] | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1495 |  | 
 | 1496 | Optional Packages: | 
 | 1497 |   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes] | 
 | 1498 |   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no) | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 1499 |   --with-universal-archs=ARCH | 
 | 1500 |                           select architectures for universal build ("32-bit", | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 1501 |                           "64-bit", "3-way", "intel", "intel-32", or "all") | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 1502 |   --with-framework-name=FRAMEWORK | 
 | 1503 |                           specify an alternate name of the framework built | 
 | 1504 |                           with --enable-framework | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1505 |   --without-gcc           never use gcc | 
| Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 1506 |   --with-icc              build with icc | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 1507 |   --with-cxx-main=<compiler> | 
 | 1508 |                           compile main() and link python executable with C++ | 
 | 1509 |                           compiler | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1510 |   --with-suffix=.exe      set executable suffix | 
 | 1511 |   --with-pydebug          build with Py_DEBUG defined | 
| Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) | 14c7f71 | 2016-09-08 22:38:46 +0000 | [diff] [blame] | 1512 |   --with-optimizations    Enable expensive optimizations (PGO, maybe LTO, | 
| Brett Cannon | 8c94f97 | 2016-09-06 17:15:21 -0700 | [diff] [blame] | 1513 |                           etc). Disabled by default. | 
| Gregory P. Smith | d82da9f | 2016-04-15 16:57:04 -0700 | [diff] [blame] | 1514 |   --with-lto              Enable Link Time Optimization in PGO builds. | 
 | 1515 |                           Disabled by default. | 
| Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 1516 |   --with-hash-algorithm=[fnv|siphash24] | 
 | 1517 |                           select hash algorithm | 
| Charles-François Natali | d30b022 | 2014-05-08 23:08:51 +0100 | [diff] [blame] | 1518 |   --with-address-sanitizer | 
 | 1519 |                           enable AddressSanitizer | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1520 |   --with-libs='lib1 ...'  link against additional libs | 
| Benjamin Peterson | b2d9046 | 2009-12-31 03:23:10 +0000 | [diff] [blame] | 1521 |   --with-system-expat     build pyexpat module using an installed expat | 
 | 1522 |                           library | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 1523 |   --with-system-ffi       build _ctypes module using an installed ffi library | 
| Stefan Krah | 60187b5 | 2012-03-23 19:06:27 +0100 | [diff] [blame] | 1524 |   --with-system-libmpdec  build _decimal module using an installed libmpdec | 
 | 1525 |                           library | 
| Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 1526 |   --with-tcltk-includes='-I...' | 
 | 1527 |                           override search for Tcl and Tk include files | 
 | 1528 |   --with-tcltk-libs='-L...' | 
 | 1529 |                           override search for Tcl and Tk libs | 
| Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 1530 |   --with-dbmliborder=db1:db2:... | 
 | 1531 |                           order to check db backends for dbm. Valid value is a | 
 | 1532 |                           colon separated string with the backend names | 
 | 1533 |                           `ndbm', `gdbm' and `bdb'. | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1534 |   --with-signal-module    disable/enable signal module | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1535 |   --with(out)-threads[=DIRECTORY] | 
 | 1536 |                           disable/enable thread support | 
 | 1537 |   --with(out)-thread[=DIRECTORY] | 
 | 1538 |                           deprecated; use --with(out)-threads | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1539 |   --with(out)-doc-strings disable/enable documentation strings | 
| Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 1540 |   --with(out)-tsc         enable/disable timestamp counter profile | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1541 |   --with(out)-pymalloc    disable/enable specialized mallocs | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 1542 |   --with-valgrind         Enable Valgrind support | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1543 |   --with-fpectl           enable SIGFPE catching | 
 | 1544 |   --with-libm=STRING      math library | 
 | 1545 |   --with-libc=STRING      C library | 
| Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 1546 |   --with(out)-computed-gotos | 
 | 1547 |                           Use computed gotos in evaluation loop (enabled by | 
 | 1548 |                           default on supported compilers) | 
| Ned Deily | 322f5ba | 2013-11-21 23:01:59 -0800 | [diff] [blame] | 1549 |   --with(out)-ensurepip=[=upgrade] | 
 | 1550 |                           "install" or "upgrade" using bundled pip | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1551 |  | 
 | 1552 | Some influential environment variables: | 
| doko@python.org | eab42bf | 2013-01-26 18:57:19 +0100 | [diff] [blame] | 1553 |   MACHDEP     name for machine-dependent library files | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1554 |   CC          C compiler command | 
 | 1555 |   CFLAGS      C compiler flags | 
 | 1556 |   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a | 
 | 1557 |               nonstandard directory <lib dir> | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1558 |   LIBS        libraries to pass to the linker, e.g. -l<library> | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1559 |   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1560 |               you have headers in a nonstandard directory <include dir> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1561 |   CPP         C preprocessor | 
| Victor Stinner | 8291b5e | 2015-03-20 16:03:14 +0100 | [diff] [blame] | 1562 |   PKG_CONFIG  path to pkg-config utility | 
 | 1563 |   PKG_CONFIG_PATH | 
 | 1564 |               directories to add to pkg-config's search path | 
 | 1565 |   PKG_CONFIG_LIBDIR | 
 | 1566 |               path overriding pkg-config's built-in search path | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1567 |  | 
 | 1568 | Use these variables to override the choices made by `configure' or to help | 
 | 1569 | it to find libraries and programs with nonstandard names/locations. | 
 | 1570 |  | 
| Benjamin Peterson | c2fcbf4 | 2016-08-03 22:01:32 -0700 | [diff] [blame] | 1571 | Report bugs to <https://bugs.python.org/>. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1572 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1573 | ac_status=$? | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1574 | fi | 
 | 1575 |  | 
 | 1576 | if test "$ac_init_help" = "recursive"; then | 
 | 1577 |   # If there are subdirs, report their specific --help. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1578 |   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] | 1579 |     test -d "$ac_dir" || | 
 | 1580 |       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | 
 | 1581 |       continue | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1582 |     ac_builddir=. | 
 | 1583 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1584 | case "$ac_dir" in | 
 | 1585 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
 | 1586 | *) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1587 |   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1588 |   # A ".." for each directory in $ac_dir_suffix. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1589 |   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] | 1590 |   case $ac_top_builddir_sub in | 
 | 1591 |   "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
 | 1592 |   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;; | 
 | 1593 |   esac ;; | 
 | 1594 | esac | 
 | 1595 | ac_abs_top_builddir=$ac_pwd | 
 | 1596 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | 
 | 1597 | # for backward compatibility: | 
 | 1598 | ac_top_builddir=$ac_top_build_prefix | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1599 |  | 
 | 1600 | case $srcdir in | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1601 |   .)  # We are building in place. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1602 |     ac_srcdir=. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1603 |     ac_top_srcdir=$ac_top_builddir_sub | 
 | 1604 |     ac_abs_top_srcdir=$ac_pwd ;; | 
 | 1605 |   [\\/]* | ?:[\\/]* )  # Absolute name. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1606 |     ac_srcdir=$srcdir$ac_dir_suffix; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1607 |     ac_top_srcdir=$srcdir | 
 | 1608 |     ac_abs_top_srcdir=$srcdir ;; | 
 | 1609 |   *) # Relative name. | 
 | 1610 |     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | 
 | 1611 |     ac_top_srcdir=$ac_top_build_prefix$srcdir | 
 | 1612 |     ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1613 | esac | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1614 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1615 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1616 |     cd "$ac_dir" || { ac_status=$?; continue; } | 
 | 1617 |     # Check for guested configure. | 
 | 1618 |     if test -f "$ac_srcdir/configure.gnu"; then | 
 | 1619 |       echo && | 
 | 1620 |       $SHELL "$ac_srcdir/configure.gnu" --help=recursive | 
 | 1621 |     elif test -f "$ac_srcdir/configure"; then | 
 | 1622 |       echo && | 
 | 1623 |       $SHELL "$ac_srcdir/configure" --help=recursive | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1624 |     else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1625 |       $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] | 1626 |     fi || ac_status=$? | 
 | 1627 |     cd "$ac_pwd" || { ac_status=$?; break; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1628 |   done | 
 | 1629 | fi | 
 | 1630 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1631 | test -n "$ac_init_help" && exit $ac_status | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1632 | if $ac_init_version; then | 
 | 1633 |   cat <<\_ACEOF | 
| Yury Selivanov | 7aa5341 | 2015-05-30 10:57:56 -0400 | [diff] [blame] | 1634 | python configure 3.5 | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 1635 | generated by GNU Autoconf 2.69 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1636 |  | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 1637 | Copyright (C) 2012 Free Software Foundation, Inc. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1638 | This configure script is free software; the Free Software Foundation | 
 | 1639 | gives unlimited permission to copy, distribute and modify it. | 
 | 1640 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1641 |   exit | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1642 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1643 |  | 
 | 1644 | ## ------------------------ ## | 
 | 1645 | ## Autoconf initialization. ## | 
 | 1646 | ## ------------------------ ## | 
 | 1647 |  | 
 | 1648 | # ac_fn_c_try_compile LINENO | 
 | 1649 | # -------------------------- | 
 | 1650 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | 
 | 1651 | ac_fn_c_try_compile () | 
 | 1652 | { | 
 | 1653 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 1654 |   rm -f conftest.$ac_objext | 
 | 1655 |   if { { ac_try="$ac_compile" | 
 | 1656 | case "(($ac_try" in | 
 | 1657 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 1658 |   *) ac_try_echo=$ac_try;; | 
 | 1659 | esac | 
 | 1660 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 1661 | $as_echo "$ac_try_echo"; } >&5 | 
 | 1662 |   (eval "$ac_compile") 2>conftest.err | 
 | 1663 |   ac_status=$? | 
 | 1664 |   if test -s conftest.err; then | 
 | 1665 |     grep -v '^ *+' conftest.err >conftest.er1 | 
 | 1666 |     cat conftest.er1 >&5 | 
 | 1667 |     mv -f conftest.er1 conftest.err | 
 | 1668 |   fi | 
 | 1669 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 1670 |   test $ac_status = 0; } && { | 
 | 1671 | 	 test -z "$ac_c_werror_flag" || | 
 | 1672 | 	 test ! -s conftest.err | 
 | 1673 |        } && test -s conftest.$ac_objext; then : | 
 | 1674 |   ac_retval=0 | 
 | 1675 | else | 
 | 1676 |   $as_echo "$as_me: failed program was:" >&5 | 
 | 1677 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 1678 |  | 
 | 1679 | 	ac_retval=1 | 
 | 1680 | fi | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1681 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1682 |   as_fn_set_status $ac_retval | 
 | 1683 |  | 
 | 1684 | } # ac_fn_c_try_compile | 
 | 1685 |  | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 1686 | # ac_fn_c_try_cpp LINENO | 
 | 1687 | # ---------------------- | 
 | 1688 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | 
 | 1689 | ac_fn_c_try_cpp () | 
 | 1690 | { | 
 | 1691 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 1692 |   if { { ac_try="$ac_cpp conftest.$ac_ext" | 
 | 1693 | case "(($ac_try" in | 
 | 1694 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 1695 |   *) ac_try_echo=$ac_try;; | 
 | 1696 | esac | 
 | 1697 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 1698 | $as_echo "$ac_try_echo"; } >&5 | 
 | 1699 |   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | 
 | 1700 |   ac_status=$? | 
 | 1701 |   if test -s conftest.err; then | 
 | 1702 |     grep -v '^ *+' conftest.err >conftest.er1 | 
 | 1703 |     cat conftest.er1 >&5 | 
 | 1704 |     mv -f conftest.er1 conftest.err | 
 | 1705 |   fi | 
 | 1706 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 1707 |   test $ac_status = 0; } > conftest.i && { | 
 | 1708 | 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | 
 | 1709 | 	 test ! -s conftest.err | 
 | 1710 |        }; then : | 
 | 1711 |   ac_retval=0 | 
 | 1712 | else | 
 | 1713 |   $as_echo "$as_me: failed program was:" >&5 | 
 | 1714 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 1715 |  | 
 | 1716 |     ac_retval=1 | 
 | 1717 | fi | 
 | 1718 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
 | 1719 |   as_fn_set_status $ac_retval | 
 | 1720 |  | 
 | 1721 | } # ac_fn_c_try_cpp | 
 | 1722 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1723 | # ac_fn_c_try_link LINENO | 
 | 1724 | # ----------------------- | 
 | 1725 | # Try to link conftest.$ac_ext, and return whether this succeeded. | 
 | 1726 | ac_fn_c_try_link () | 
 | 1727 | { | 
 | 1728 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 1729 |   rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 1730 |   if { { ac_try="$ac_link" | 
 | 1731 | case "(($ac_try" in | 
 | 1732 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 1733 |   *) ac_try_echo=$ac_try;; | 
 | 1734 | esac | 
 | 1735 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 1736 | $as_echo "$ac_try_echo"; } >&5 | 
 | 1737 |   (eval "$ac_link") 2>conftest.err | 
 | 1738 |   ac_status=$? | 
 | 1739 |   if test -s conftest.err; then | 
 | 1740 |     grep -v '^ *+' conftest.err >conftest.er1 | 
 | 1741 |     cat conftest.er1 >&5 | 
 | 1742 |     mv -f conftest.er1 conftest.err | 
 | 1743 |   fi | 
 | 1744 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 1745 |   test $ac_status = 0; } && { | 
 | 1746 | 	 test -z "$ac_c_werror_flag" || | 
 | 1747 | 	 test ! -s conftest.err | 
 | 1748 |        } && test -s conftest$ac_exeext && { | 
 | 1749 | 	 test "$cross_compiling" = yes || | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 1750 | 	 test -x conftest$ac_exeext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1751 |        }; then : | 
 | 1752 |   ac_retval=0 | 
 | 1753 | else | 
 | 1754 |   $as_echo "$as_me: failed program was:" >&5 | 
 | 1755 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 1756 |  | 
 | 1757 | 	ac_retval=1 | 
 | 1758 | fi | 
 | 1759 |   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | 
 | 1760 |   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | 
 | 1761 |   # interfere with the next link command; also delete a directory that is | 
 | 1762 |   # left behind by Apple's compiler.  We do this before executing the actions. | 
 | 1763 |   rm -rf conftest.dSYM conftest_ipa8_conftest.oo | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1764 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1765 |   as_fn_set_status $ac_retval | 
 | 1766 |  | 
 | 1767 | } # ac_fn_c_try_link | 
 | 1768 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1769 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | 
 | 1770 | # ------------------------------------------------------- | 
 | 1771 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | 
 | 1772 | # the include files in INCLUDES and setting the cache variable VAR | 
 | 1773 | # accordingly. | 
 | 1774 | ac_fn_c_check_header_mongrel () | 
 | 1775 | { | 
 | 1776 |   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] | 1777 |   if eval \${$3+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1778 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
 | 1779 | $as_echo_n "checking for $2... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1780 | if eval \${$3+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1781 |   $as_echo_n "(cached) " >&6 | 
 | 1782 | fi | 
 | 1783 | eval ac_res=\$$3 | 
 | 1784 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 1785 | $as_echo "$ac_res" >&6; } | 
 | 1786 | else | 
 | 1787 |   # Is the header compilable? | 
 | 1788 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | 
 | 1789 | $as_echo_n "checking $2 usability... " >&6; } | 
 | 1790 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 1791 | /* end confdefs.h.  */ | 
 | 1792 | $4 | 
 | 1793 | #include <$2> | 
 | 1794 | _ACEOF | 
 | 1795 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 1796 |   ac_header_compiler=yes | 
 | 1797 | else | 
 | 1798 |   ac_header_compiler=no | 
 | 1799 | fi | 
 | 1800 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 1801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | 
 | 1802 | $as_echo "$ac_header_compiler" >&6; } | 
 | 1803 |  | 
 | 1804 | # Is the header present? | 
 | 1805 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | 
 | 1806 | $as_echo_n "checking $2 presence... " >&6; } | 
 | 1807 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 1808 | /* end confdefs.h.  */ | 
 | 1809 | #include <$2> | 
 | 1810 | _ACEOF | 
 | 1811 | if ac_fn_c_try_cpp "$LINENO"; then : | 
 | 1812 |   ac_header_preproc=yes | 
 | 1813 | else | 
 | 1814 |   ac_header_preproc=no | 
 | 1815 | fi | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1816 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | 
 | 1818 | $as_echo "$ac_header_preproc" >&6; } | 
 | 1819 |  | 
 | 1820 | # So?  What about this header? | 
 | 1821 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | 
 | 1822 |   yes:no: ) | 
 | 1823 |     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | 
 | 1824 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
 | 1825 |     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | 
 | 1826 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | 
 | 1827 |     ;; | 
 | 1828 |   no:yes:* ) | 
 | 1829 |     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | 
 | 1830 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | 
 | 1831 |     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5 | 
 | 1832 | $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;} | 
 | 1833 |     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | 
 | 1834 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | 
 | 1835 |     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5 | 
 | 1836 | $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;} | 
 | 1837 |     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | 
 | 1838 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | 
| Benjamin Peterson | c2fcbf4 | 2016-08-03 22:01:32 -0700 | [diff] [blame] | 1839 | ( $as_echo "## --------------------------------------- ## | 
 | 1840 | ## Report this to https://bugs.python.org/ ## | 
 | 1841 | ## --------------------------------------- ##" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1842 |      ) | sed "s/^/$as_me: WARNING:     /" >&2 | 
 | 1843 |     ;; | 
 | 1844 | esac | 
 | 1845 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
 | 1846 | $as_echo_n "checking for $2... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1847 | if eval \${$3+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1848 |   $as_echo_n "(cached) " >&6 | 
 | 1849 | else | 
 | 1850 |   eval "$3=\$ac_header_compiler" | 
 | 1851 | fi | 
 | 1852 | eval ac_res=\$$3 | 
 | 1853 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 1854 | $as_echo "$ac_res" >&6; } | 
 | 1855 | fi | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1856 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1857 |  | 
 | 1858 | } # ac_fn_c_check_header_mongrel | 
 | 1859 |  | 
 | 1860 | # ac_fn_c_try_run LINENO | 
 | 1861 | # ---------------------- | 
 | 1862 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | 
 | 1863 | # that executables *can* be run. | 
 | 1864 | ac_fn_c_try_run () | 
 | 1865 | { | 
 | 1866 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 1867 |   if { { ac_try="$ac_link" | 
 | 1868 | case "(($ac_try" in | 
 | 1869 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 1870 |   *) ac_try_echo=$ac_try;; | 
 | 1871 | esac | 
 | 1872 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 1873 | $as_echo "$ac_try_echo"; } >&5 | 
 | 1874 |   (eval "$ac_link") 2>&5 | 
 | 1875 |   ac_status=$? | 
 | 1876 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 1877 |   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | 
 | 1878 |   { { case "(($ac_try" in | 
 | 1879 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 1880 |   *) ac_try_echo=$ac_try;; | 
 | 1881 | esac | 
 | 1882 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 1883 | $as_echo "$ac_try_echo"; } >&5 | 
 | 1884 |   (eval "$ac_try") 2>&5 | 
 | 1885 |   ac_status=$? | 
 | 1886 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 1887 |   test $ac_status = 0; }; }; then : | 
 | 1888 |   ac_retval=0 | 
 | 1889 | else | 
 | 1890 |   $as_echo "$as_me: program exited with status $ac_status" >&5 | 
 | 1891 |        $as_echo "$as_me: failed program was:" >&5 | 
 | 1892 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 1893 |  | 
 | 1894 |        ac_retval=$ac_status | 
 | 1895 | fi | 
 | 1896 |   rm -rf conftest.dSYM conftest_ipa8_conftest.oo | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1897 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1898 |   as_fn_set_status $ac_retval | 
 | 1899 |  | 
 | 1900 | } # ac_fn_c_try_run | 
 | 1901 |  | 
 | 1902 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | 
 | 1903 | # ------------------------------------------------------- | 
 | 1904 | # Tests whether HEADER exists and can be compiled using the include files in | 
 | 1905 | # INCLUDES, setting the cache variable VAR accordingly. | 
 | 1906 | ac_fn_c_check_header_compile () | 
 | 1907 | { | 
 | 1908 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 1909 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
 | 1910 | $as_echo_n "checking for $2... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1911 | if eval \${$3+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1912 |   $as_echo_n "(cached) " >&6 | 
 | 1913 | else | 
 | 1914 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 1915 | /* end confdefs.h.  */ | 
 | 1916 | $4 | 
 | 1917 | #include <$2> | 
 | 1918 | _ACEOF | 
 | 1919 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 1920 |   eval "$3=yes" | 
 | 1921 | else | 
 | 1922 |   eval "$3=no" | 
 | 1923 | fi | 
 | 1924 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 1925 | fi | 
 | 1926 | eval ac_res=\$$3 | 
 | 1927 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 1928 | $as_echo "$ac_res" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1929 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1930 |  | 
 | 1931 | } # ac_fn_c_check_header_compile | 
 | 1932 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1933 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES | 
 | 1934 | # ------------------------------------------- | 
 | 1935 | # Tests whether TYPE exists after having included INCLUDES, setting cache | 
 | 1936 | # variable VAR accordingly. | 
 | 1937 | ac_fn_c_check_type () | 
 | 1938 | { | 
 | 1939 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 1940 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
 | 1941 | $as_echo_n "checking for $2... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1942 | if eval \${$3+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1943 |   $as_echo_n "(cached) " >&6 | 
 | 1944 | else | 
 | 1945 |   eval "$3=no" | 
 | 1946 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 1947 | /* end confdefs.h.  */ | 
 | 1948 | $4 | 
 | 1949 | int | 
 | 1950 | main () | 
 | 1951 | { | 
 | 1952 | if (sizeof ($2)) | 
 | 1953 | 	 return 0; | 
 | 1954 |   ; | 
 | 1955 |   return 0; | 
 | 1956 | } | 
 | 1957 | _ACEOF | 
 | 1958 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 1959 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 1960 | /* end confdefs.h.  */ | 
 | 1961 | $4 | 
 | 1962 | int | 
 | 1963 | main () | 
 | 1964 | { | 
 | 1965 | if (sizeof (($2))) | 
 | 1966 | 	    return 0; | 
 | 1967 |   ; | 
 | 1968 |   return 0; | 
 | 1969 | } | 
 | 1970 | _ACEOF | 
 | 1971 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 1972 |  | 
 | 1973 | else | 
 | 1974 |   eval "$3=yes" | 
 | 1975 | fi | 
 | 1976 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 1977 | fi | 
 | 1978 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 1979 | fi | 
 | 1980 | eval ac_res=\$$3 | 
 | 1981 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 1982 | $as_echo "$ac_res" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1983 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1984 |  | 
 | 1985 | } # ac_fn_c_check_type | 
 | 1986 |  | 
 | 1987 | # ac_fn_c_find_uintX_t LINENO BITS VAR | 
 | 1988 | # ------------------------------------ | 
 | 1989 | # Finds an unsigned integer type with width BITS, setting cache variable VAR | 
 | 1990 | # accordingly. | 
 | 1991 | ac_fn_c_find_uintX_t () | 
 | 1992 | { | 
 | 1993 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 1994 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 | 
 | 1995 | $as_echo_n "checking for uint$2_t... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1996 | if eval \${$3+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1997 |   $as_echo_n "(cached) " >&6 | 
 | 1998 | else | 
 | 1999 |   eval "$3=no" | 
 | 2000 |      # Order is important - never check a type that is potentially smaller | 
 | 2001 |      # than half of the expected target width. | 
 | 2002 |      for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ | 
 | 2003 | 	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do | 
 | 2004 |        cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2005 | /* end confdefs.h.  */ | 
 | 2006 | $ac_includes_default | 
 | 2007 | int | 
 | 2008 | main () | 
 | 2009 | { | 
 | 2010 | 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] | 2011 | test_array [0] = 0; | 
 | 2012 | return test_array [0]; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2013 |  | 
 | 2014 |   ; | 
 | 2015 |   return 0; | 
 | 2016 | } | 
 | 2017 | _ACEOF | 
 | 2018 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2019 |   case $ac_type in #( | 
 | 2020 |   uint$2_t) : | 
 | 2021 |     eval "$3=yes" ;; #( | 
 | 2022 |   *) : | 
 | 2023 |     eval "$3=\$ac_type" ;; | 
 | 2024 | esac | 
 | 2025 | fi | 
 | 2026 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2027 |        if eval test \"x\$"$3"\" = x"no"; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2028 |  | 
 | 2029 | else | 
 | 2030 |   break | 
 | 2031 | fi | 
 | 2032 |      done | 
 | 2033 | fi | 
 | 2034 | eval ac_res=\$$3 | 
 | 2035 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 2036 | $as_echo "$ac_res" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2037 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2038 |  | 
 | 2039 | } # ac_fn_c_find_uintX_t | 
 | 2040 |  | 
 | 2041 | # ac_fn_c_find_intX_t LINENO BITS VAR | 
 | 2042 | # ----------------------------------- | 
 | 2043 | # Finds a signed integer type with width BITS, setting cache variable VAR | 
 | 2044 | # accordingly. | 
 | 2045 | ac_fn_c_find_intX_t () | 
 | 2046 | { | 
 | 2047 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 2048 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 | 
 | 2049 | $as_echo_n "checking for int$2_t... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2050 | if eval \${$3+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2051 |   $as_echo_n "(cached) " >&6 | 
 | 2052 | else | 
 | 2053 |   eval "$3=no" | 
 | 2054 |      # Order is important - never check a type that is potentially smaller | 
 | 2055 |      # than half of the expected target width. | 
 | 2056 |      for ac_type in int$2_t 'int' 'long int' \ | 
 | 2057 | 	 'long long int' 'short int' 'signed char'; do | 
 | 2058 |        cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2059 | /* end confdefs.h.  */ | 
 | 2060 | $ac_includes_default | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 2061 | 	     enum { N = $2 / 2 - 1 }; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2062 | int | 
 | 2063 | main () | 
 | 2064 | { | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 2065 | 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] | 2066 | test_array [0] = 0; | 
 | 2067 | return test_array [0]; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2068 |  | 
 | 2069 |   ; | 
 | 2070 |   return 0; | 
 | 2071 | } | 
 | 2072 | _ACEOF | 
 | 2073 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2074 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2075 | /* end confdefs.h.  */ | 
 | 2076 | $ac_includes_default | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 2077 | 	        enum { N = $2 / 2 - 1 }; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2078 | int | 
 | 2079 | main () | 
 | 2080 | { | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 2081 | 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] | 2082 | 		 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; | 
| 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 |  | 
 | 2092 | else | 
 | 2093 |   case $ac_type in #( | 
 | 2094 |   int$2_t) : | 
 | 2095 |     eval "$3=yes" ;; #( | 
 | 2096 |   *) : | 
 | 2097 |     eval "$3=\$ac_type" ;; | 
 | 2098 | esac | 
 | 2099 | fi | 
 | 2100 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2101 | fi | 
 | 2102 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2103 |        if eval test \"x\$"$3"\" = x"no"; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2104 |  | 
 | 2105 | else | 
 | 2106 |   break | 
 | 2107 | fi | 
 | 2108 |      done | 
 | 2109 | fi | 
 | 2110 | eval ac_res=\$$3 | 
 | 2111 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 2112 | $as_echo "$ac_res" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2113 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2114 |  | 
 | 2115 | } # ac_fn_c_find_intX_t | 
 | 2116 |  | 
 | 2117 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES | 
 | 2118 | # -------------------------------------------- | 
 | 2119 | # Tries to find the compile-time value of EXPR in a program that includes | 
 | 2120 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | 
 | 2121 | # computed | 
 | 2122 | ac_fn_c_compute_int () | 
 | 2123 | { | 
 | 2124 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 2125 |   if test "$cross_compiling" = yes; then | 
 | 2126 |     # Depending upon the size, compute the lo and hi bounds. | 
 | 2127 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2128 | /* end confdefs.h.  */ | 
 | 2129 | $4 | 
 | 2130 | int | 
 | 2131 | main () | 
 | 2132 | { | 
 | 2133 | static int test_array [1 - 2 * !(($2) >= 0)]; | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2134 | test_array [0] = 0; | 
 | 2135 | return test_array [0]; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2136 |  | 
 | 2137 |   ; | 
 | 2138 |   return 0; | 
 | 2139 | } | 
 | 2140 | _ACEOF | 
 | 2141 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2142 |   ac_lo=0 ac_mid=0 | 
 | 2143 |   while :; do | 
 | 2144 |     cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2145 | /* end confdefs.h.  */ | 
 | 2146 | $4 | 
 | 2147 | int | 
 | 2148 | main () | 
 | 2149 | { | 
 | 2150 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2151 | test_array [0] = 0; | 
 | 2152 | return test_array [0]; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2153 |  | 
 | 2154 |   ; | 
 | 2155 |   return 0; | 
 | 2156 | } | 
 | 2157 | _ACEOF | 
 | 2158 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2159 |   ac_hi=$ac_mid; break | 
 | 2160 | else | 
 | 2161 |   as_fn_arith $ac_mid + 1 && ac_lo=$as_val | 
 | 2162 | 			if test $ac_lo -le $ac_mid; then | 
 | 2163 | 			  ac_lo= ac_hi= | 
 | 2164 | 			  break | 
 | 2165 | 			fi | 
 | 2166 | 			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | 
 | 2167 | fi | 
 | 2168 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2169 |   done | 
 | 2170 | else | 
 | 2171 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2172 | /* end confdefs.h.  */ | 
 | 2173 | $4 | 
 | 2174 | int | 
 | 2175 | main () | 
 | 2176 | { | 
 | 2177 | static int test_array [1 - 2 * !(($2) < 0)]; | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2178 | test_array [0] = 0; | 
 | 2179 | return test_array [0]; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2180 |  | 
 | 2181 |   ; | 
 | 2182 |   return 0; | 
 | 2183 | } | 
 | 2184 | _ACEOF | 
 | 2185 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2186 |   ac_hi=-1 ac_mid=-1 | 
 | 2187 |   while :; do | 
 | 2188 |     cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2189 | /* end confdefs.h.  */ | 
 | 2190 | $4 | 
 | 2191 | int | 
 | 2192 | main () | 
 | 2193 | { | 
 | 2194 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2195 | test_array [0] = 0; | 
 | 2196 | return test_array [0]; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2197 |  | 
 | 2198 |   ; | 
 | 2199 |   return 0; | 
 | 2200 | } | 
 | 2201 | _ACEOF | 
 | 2202 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2203 |   ac_lo=$ac_mid; break | 
 | 2204 | else | 
 | 2205 |   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | 
 | 2206 | 			if test $ac_mid -le $ac_hi; then | 
 | 2207 | 			  ac_lo= ac_hi= | 
 | 2208 | 			  break | 
 | 2209 | 			fi | 
 | 2210 | 			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | 
 | 2211 | fi | 
 | 2212 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2213 |   done | 
 | 2214 | else | 
 | 2215 |   ac_lo= ac_hi= | 
 | 2216 | fi | 
 | 2217 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2218 | fi | 
 | 2219 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2220 | # Binary search between lo and hi bounds. | 
 | 2221 | while test "x$ac_lo" != "x$ac_hi"; do | 
 | 2222 |   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | 
 | 2223 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2224 | /* end confdefs.h.  */ | 
 | 2225 | $4 | 
 | 2226 | int | 
 | 2227 | main () | 
 | 2228 | { | 
 | 2229 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2230 | test_array [0] = 0; | 
 | 2231 | return test_array [0]; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2232 |  | 
 | 2233 |   ; | 
 | 2234 |   return 0; | 
 | 2235 | } | 
 | 2236 | _ACEOF | 
 | 2237 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2238 |   ac_hi=$ac_mid | 
 | 2239 | else | 
 | 2240 |   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | 
 | 2241 | fi | 
 | 2242 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2243 | done | 
 | 2244 | case $ac_lo in #(( | 
 | 2245 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | 
 | 2246 | '') ac_retval=1 ;; | 
 | 2247 | esac | 
 | 2248 |   else | 
 | 2249 |     cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2250 | /* end confdefs.h.  */ | 
 | 2251 | $4 | 
 | 2252 | static long int longval () { return $2; } | 
 | 2253 | static unsigned long int ulongval () { return $2; } | 
 | 2254 | #include <stdio.h> | 
 | 2255 | #include <stdlib.h> | 
 | 2256 | int | 
 | 2257 | main () | 
 | 2258 | { | 
 | 2259 |  | 
 | 2260 |   FILE *f = fopen ("conftest.val", "w"); | 
 | 2261 |   if (! f) | 
 | 2262 |     return 1; | 
 | 2263 |   if (($2) < 0) | 
 | 2264 |     { | 
 | 2265 |       long int i = longval (); | 
 | 2266 |       if (i != ($2)) | 
 | 2267 | 	return 1; | 
 | 2268 |       fprintf (f, "%ld", i); | 
 | 2269 |     } | 
 | 2270 |   else | 
 | 2271 |     { | 
 | 2272 |       unsigned long int i = ulongval (); | 
 | 2273 |       if (i != ($2)) | 
 | 2274 | 	return 1; | 
 | 2275 |       fprintf (f, "%lu", i); | 
 | 2276 |     } | 
 | 2277 |   /* Do not output a trailing newline, as this causes \r\n confusion | 
 | 2278 |      on some platforms.  */ | 
 | 2279 |   return ferror (f) || fclose (f) != 0; | 
 | 2280 |  | 
 | 2281 |   ; | 
 | 2282 |   return 0; | 
 | 2283 | } | 
 | 2284 | _ACEOF | 
 | 2285 | if ac_fn_c_try_run "$LINENO"; then : | 
 | 2286 |   echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | 
 | 2287 | else | 
 | 2288 |   ac_retval=1 | 
 | 2289 | fi | 
 | 2290 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 2291 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
 | 2292 | rm -f conftest.val | 
 | 2293 |  | 
 | 2294 |   fi | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2295 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2296 |   as_fn_set_status $ac_retval | 
 | 2297 |  | 
 | 2298 | } # ac_fn_c_compute_int | 
 | 2299 |  | 
 | 2300 | # ac_fn_c_check_func LINENO FUNC VAR | 
 | 2301 | # ---------------------------------- | 
 | 2302 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | 
 | 2303 | ac_fn_c_check_func () | 
 | 2304 | { | 
 | 2305 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 2306 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
 | 2307 | $as_echo_n "checking for $2... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2308 | if eval \${$3+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2309 |   $as_echo_n "(cached) " >&6 | 
 | 2310 | else | 
 | 2311 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2312 | /* end confdefs.h.  */ | 
 | 2313 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | 
 | 2314 |    For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
 | 2315 | #define $2 innocuous_$2 | 
 | 2316 |  | 
 | 2317 | /* System header to define __stub macros and hopefully few prototypes, | 
 | 2318 |     which can conflict with char $2 (); below. | 
 | 2319 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 2320 |     <limits.h> exists even on freestanding compilers.  */ | 
 | 2321 |  | 
 | 2322 | #ifdef __STDC__ | 
 | 2323 | # include <limits.h> | 
 | 2324 | #else | 
 | 2325 | # include <assert.h> | 
 | 2326 | #endif | 
 | 2327 |  | 
 | 2328 | #undef $2 | 
 | 2329 |  | 
 | 2330 | /* Override any GCC internal prototype to avoid an error. | 
 | 2331 |    Use char because int might match the return type of a GCC | 
 | 2332 |    builtin and then its argument prototype would still apply.  */ | 
 | 2333 | #ifdef __cplusplus | 
 | 2334 | extern "C" | 
 | 2335 | #endif | 
 | 2336 | char $2 (); | 
 | 2337 | /* The GNU C library defines this for functions which it implements | 
 | 2338 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 2339 |     something starting with __ and the normal name is an alias.  */ | 
 | 2340 | #if defined __stub_$2 || defined __stub___$2 | 
 | 2341 | choke me | 
 | 2342 | #endif | 
 | 2343 |  | 
 | 2344 | int | 
 | 2345 | main () | 
 | 2346 | { | 
 | 2347 | return $2 (); | 
 | 2348 |   ; | 
 | 2349 |   return 0; | 
 | 2350 | } | 
 | 2351 | _ACEOF | 
 | 2352 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 2353 |   eval "$3=yes" | 
 | 2354 | else | 
 | 2355 |   eval "$3=no" | 
 | 2356 | fi | 
 | 2357 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 2358 |     conftest$ac_exeext conftest.$ac_ext | 
 | 2359 | fi | 
 | 2360 | eval ac_res=\$$3 | 
 | 2361 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 2362 | $as_echo "$ac_res" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2363 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2364 |  | 
 | 2365 | } # ac_fn_c_check_func | 
 | 2366 |  | 
| Gregory P. Smith | df300d5 | 2012-01-21 18:20:15 -0800 | [diff] [blame] | 2367 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES | 
 | 2368 | # --------------------------------------------- | 
 | 2369 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR | 
 | 2370 | # accordingly. | 
 | 2371 | ac_fn_c_check_decl () | 
 | 2372 | { | 
 | 2373 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 2374 |   as_decl_name=`echo $2|sed 's/ *(.*//'` | 
 | 2375 |   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | 
 | 2376 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | 
 | 2377 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | 
 | 2378 | if eval \${$3+:} false; then : | 
 | 2379 |   $as_echo_n "(cached) " >&6 | 
 | 2380 | else | 
 | 2381 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2382 | /* end confdefs.h.  */ | 
 | 2383 | $4 | 
 | 2384 | int | 
 | 2385 | main () | 
 | 2386 | { | 
 | 2387 | #ifndef $as_decl_name | 
 | 2388 | #ifdef __cplusplus | 
 | 2389 |   (void) $as_decl_use; | 
 | 2390 | #else | 
 | 2391 |   (void) $as_decl_name; | 
 | 2392 | #endif | 
 | 2393 | #endif | 
 | 2394 |  | 
 | 2395 |   ; | 
 | 2396 |   return 0; | 
 | 2397 | } | 
 | 2398 | _ACEOF | 
 | 2399 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2400 |   eval "$3=yes" | 
 | 2401 | else | 
 | 2402 |   eval "$3=no" | 
 | 2403 | fi | 
 | 2404 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2405 | fi | 
 | 2406 | eval ac_res=\$$3 | 
 | 2407 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 2408 | $as_echo "$ac_res" >&6; } | 
 | 2409 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
 | 2410 |  | 
 | 2411 | } # ac_fn_c_check_decl | 
 | 2412 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2413 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES | 
 | 2414 | # ---------------------------------------------------- | 
 | 2415 | # Tries to find if the field MEMBER exists in type AGGR, after including | 
 | 2416 | # INCLUDES, setting cache variable VAR accordingly. | 
 | 2417 | ac_fn_c_check_member () | 
 | 2418 | { | 
 | 2419 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 2420 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 | 
 | 2421 | $as_echo_n "checking for $2.$3... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2422 | if eval \${$4+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2423 |   $as_echo_n "(cached) " >&6 | 
 | 2424 | else | 
 | 2425 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2426 | /* end confdefs.h.  */ | 
 | 2427 | $5 | 
 | 2428 | int | 
 | 2429 | main () | 
 | 2430 | { | 
 | 2431 | static $2 ac_aggr; | 
 | 2432 | if (ac_aggr.$3) | 
 | 2433 | return 0; | 
 | 2434 |   ; | 
 | 2435 |   return 0; | 
 | 2436 | } | 
 | 2437 | _ACEOF | 
 | 2438 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2439 |   eval "$4=yes" | 
 | 2440 | else | 
 | 2441 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2442 | /* end confdefs.h.  */ | 
 | 2443 | $5 | 
 | 2444 | int | 
 | 2445 | main () | 
 | 2446 | { | 
 | 2447 | static $2 ac_aggr; | 
 | 2448 | if (sizeof ac_aggr.$3) | 
 | 2449 | return 0; | 
 | 2450 |   ; | 
 | 2451 |   return 0; | 
 | 2452 | } | 
 | 2453 | _ACEOF | 
 | 2454 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2455 |   eval "$4=yes" | 
 | 2456 | else | 
 | 2457 |   eval "$4=no" | 
 | 2458 | fi | 
 | 2459 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2460 | fi | 
 | 2461 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2462 | fi | 
 | 2463 | eval ac_res=\$$4 | 
 | 2464 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 2465 | $as_echo "$ac_res" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2466 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2467 |  | 
 | 2468 | } # ac_fn_c_check_member | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2469 | cat >config.log <<_ACEOF | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2470 | This file contains any messages produced by compilers while | 
 | 2471 | running configure, to aid debugging if configure makes a mistake. | 
 | 2472 |  | 
| Yury Selivanov | 7aa5341 | 2015-05-30 10:57:56 -0400 | [diff] [blame] | 2473 | It was created by python $as_me 3.5, which was | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2474 | generated by GNU Autoconf 2.69.  Invocation command line was | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2475 |  | 
 | 2476 |   $ $0 $@ | 
 | 2477 |  | 
 | 2478 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2479 | exec 5>>config.log | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2480 | { | 
 | 2481 | cat <<_ASUNAME | 
 | 2482 | ## --------- ## | 
 | 2483 | ## Platform. ## | 
 | 2484 | ## --------- ## | 
 | 2485 |  | 
 | 2486 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | 
 | 2487 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | 
 | 2488 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | 
 | 2489 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | 
 | 2490 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | 
 | 2491 |  | 
 | 2492 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | 
 | 2493 | /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown` | 
 | 2494 |  | 
 | 2495 | /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown` | 
 | 2496 | /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown` | 
 | 2497 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2498 | /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] | 2499 | /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown` | 
 | 2500 | /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown` | 
 | 2501 | /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown` | 
 | 2502 |  | 
 | 2503 | _ASUNAME | 
 | 2504 |  | 
 | 2505 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 2506 | for as_dir in $PATH | 
 | 2507 | do | 
 | 2508 |   IFS=$as_save_IFS | 
 | 2509 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2510 |     $as_echo "PATH: $as_dir" | 
 | 2511 |   done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2512 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2513 |  | 
 | 2514 | } >&5 | 
 | 2515 |  | 
 | 2516 | cat >&5 <<_ACEOF | 
 | 2517 |  | 
 | 2518 |  | 
 | 2519 | ## ----------- ## | 
 | 2520 | ## Core tests. ## | 
 | 2521 | ## ----------- ## | 
 | 2522 |  | 
 | 2523 | _ACEOF | 
 | 2524 |  | 
 | 2525 |  | 
 | 2526 | # Keep a trace of the command line. | 
 | 2527 | # 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] | 2528 | # 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] | 2529 | # Also quote any args containing shell meta-characters. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2530 | # Make two passes to allow for proper duplicate-argument suppression. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2531 | ac_configure_args= | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2532 | ac_configure_args0= | 
 | 2533 | ac_configure_args1= | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2534 | ac_must_keep_next=false | 
 | 2535 | for ac_pass in 1 2 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2536 | do | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2537 |   for ac_arg | 
 | 2538 |   do | 
 | 2539 |     case $ac_arg in | 
 | 2540 |     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | 
 | 2541 |     -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
 | 2542 |     | -silent | --silent | --silen | --sile | --sil) | 
 | 2543 |       continue ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2544 |     *\'*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2545 |       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2546 |     esac | 
 | 2547 |     case $ac_pass in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2548 |     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2549 |     2) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2550 |       as_fn_append ac_configure_args1 " '$ac_arg'" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2551 |       if test $ac_must_keep_next = true; then | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2552 | 	ac_must_keep_next=false # Got value, back to normal. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2553 |       else | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2554 | 	case $ac_arg in | 
 | 2555 | 	  *=* | --config-cache | -C | -disable-* | --disable-* \ | 
 | 2556 | 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | 
 | 2557 | 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | 
 | 2558 | 	  | -with-* | --with-* | -without-* | --without-* | --x) | 
 | 2559 | 	    case "$ac_configure_args0 " in | 
 | 2560 | 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | 
 | 2561 | 	    esac | 
 | 2562 | 	    ;; | 
 | 2563 | 	  -* ) ac_must_keep_next=true ;; | 
 | 2564 | 	esac | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2565 |       fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2566 |       as_fn_append ac_configure_args " '$ac_arg'" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2567 |       ;; | 
 | 2568 |     esac | 
 | 2569 |   done | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2570 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2571 | { ac_configure_args0=; unset ac_configure_args0;} | 
 | 2572 | { ac_configure_args1=; unset ac_configure_args1;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2573 |  | 
 | 2574 | # When interrupted or exit'd, cleanup temporary files, and complete | 
 | 2575 | # config.log.  We remove comments because anyway the quotes in there | 
 | 2576 | # would cause problems or look ugly. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2577 | # WARNING: Use '\'' to represent an apostrophe within the trap. | 
 | 2578 | # 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] | 2579 | trap 'exit_status=$? | 
 | 2580 |   # Save into config.log some information that might help in debugging. | 
 | 2581 |   { | 
 | 2582 |     echo | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2583 |  | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2584 |     $as_echo "## ---------------- ## | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2585 | ## Cache variables. ## | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2586 | ## ---------------- ##" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2587 |     echo | 
 | 2588 |     # The following way of writing the cache mishandles newlines in values, | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2589 | ( | 
 | 2590 |   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | 
 | 2591 |     eval ac_val=\$$ac_var | 
 | 2592 |     case $ac_val in #( | 
 | 2593 |     *${as_nl}*) | 
 | 2594 |       case $ac_var in #( | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2595 |       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | 
 | 2596 | $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] | 2597 |       esac | 
 | 2598 |       case $ac_var in #( | 
 | 2599 |       _ | IFS | as_nl) ;; #( | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2600 |       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | 
 | 2601 |       *) { eval $ac_var=; unset $ac_var;} ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2602 |       esac ;; | 
 | 2603 |     esac | 
 | 2604 |   done | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2605 |   (set) 2>&1 | | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2606 |     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | 
 | 2607 |     *${as_nl}ac_space=\ *) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2608 |       sed -n \ | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2609 | 	"s/'\''/'\''\\\\'\'''\''/g; | 
 | 2610 | 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | 
 | 2611 |       ;; #( | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 2612 |     *) | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2613 |       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 2614 |       ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2615 |     esac | | 
 | 2616 |     sort | 
 | 2617 | ) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2618 |     echo | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2619 |  | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2620 |     $as_echo "## ----------------- ## | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2621 | ## Output variables. ## | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2622 | ## ----------------- ##" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2623 |     echo | 
 | 2624 |     for ac_var in $ac_subst_vars | 
 | 2625 |     do | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2626 |       eval ac_val=\$$ac_var | 
 | 2627 |       case $ac_val in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2628 |       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2629 |       esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2630 |       $as_echo "$ac_var='\''$ac_val'\''" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2631 |     done | sort | 
 | 2632 |     echo | 
 | 2633 |  | 
 | 2634 |     if test -n "$ac_subst_files"; then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2635 |       $as_echo "## ------------------- ## | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2636 | ## File substitutions. ## | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2637 | ## ------------------- ##" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2638 |       echo | 
 | 2639 |       for ac_var in $ac_subst_files | 
 | 2640 |       do | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2641 | 	eval ac_val=\$$ac_var | 
 | 2642 | 	case $ac_val in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2643 | 	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2644 | 	esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2645 | 	$as_echo "$ac_var='\''$ac_val'\''" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2646 |       done | sort | 
 | 2647 |       echo | 
 | 2648 |     fi | 
 | 2649 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2650 |     if test -s confdefs.h; then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2651 |       $as_echo "## ----------- ## | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2652 | ## confdefs.h. ## | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2653 | ## ----------- ##" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2654 |       echo | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2655 |       cat confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2656 |       echo | 
 | 2657 |     fi | 
 | 2658 |     test "$ac_signal" != 0 && | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2659 |       $as_echo "$as_me: caught signal $ac_signal" | 
 | 2660 |     $as_echo "$as_me: exit $exit_status" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2661 |   } >&5 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2662 |   rm -f core *.core core.conftest.* && | 
 | 2663 |     rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2664 |     exit $exit_status | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2665 | ' 0 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2666 | for ac_signal in 1 2 13 15; do | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2667 |   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] | 2668 | done | 
 | 2669 | ac_signal=0 | 
 | 2670 |  | 
 | 2671 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2672 | rm -f -r conftest* confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2673 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2674 | $as_echo "/* confdefs.h */" > confdefs.h | 
 | 2675 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2676 | # Predefined preprocessor variables. | 
 | 2677 |  | 
 | 2678 | cat >>confdefs.h <<_ACEOF | 
 | 2679 | #define PACKAGE_NAME "$PACKAGE_NAME" | 
 | 2680 | _ACEOF | 
 | 2681 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2682 | cat >>confdefs.h <<_ACEOF | 
 | 2683 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | 
 | 2684 | _ACEOF | 
 | 2685 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2686 | cat >>confdefs.h <<_ACEOF | 
 | 2687 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | 
 | 2688 | _ACEOF | 
 | 2689 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2690 | cat >>confdefs.h <<_ACEOF | 
 | 2691 | #define PACKAGE_STRING "$PACKAGE_STRING" | 
 | 2692 | _ACEOF | 
 | 2693 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2694 | cat >>confdefs.h <<_ACEOF | 
 | 2695 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | 
 | 2696 | _ACEOF | 
 | 2697 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2698 | cat >>confdefs.h <<_ACEOF | 
 | 2699 | #define PACKAGE_URL "$PACKAGE_URL" | 
 | 2700 | _ACEOF | 
 | 2701 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2702 |  | 
 | 2703 | # 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] | 2704 | # Prefer an explicitly selected file to automatically selected ones. | 
 | 2705 | ac_site_file1=NONE | 
 | 2706 | ac_site_file2=NONE | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2707 | if test -n "$CONFIG_SITE"; then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2708 |   # We do not want a PATH search for config.site. | 
 | 2709 |   case $CONFIG_SITE in #(( | 
 | 2710 |     -*)  ac_site_file1=./$CONFIG_SITE;; | 
 | 2711 |     */*) ac_site_file1=$CONFIG_SITE;; | 
 | 2712 |     *)   ac_site_file1=./$CONFIG_SITE;; | 
 | 2713 |   esac | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2714 | elif test "x$prefix" != xNONE; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2715 |   ac_site_file1=$prefix/share/config.site | 
 | 2716 |   ac_site_file2=$prefix/etc/config.site | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2717 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2718 |   ac_site_file1=$ac_default_prefix/share/config.site | 
 | 2719 |   ac_site_file2=$ac_default_prefix/etc/config.site | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2720 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2721 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2722 | do | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2723 |   test "x$ac_site_file" = xNONE && continue | 
 | 2724 |   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | 
 | 2725 |     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | 
 | 2726 | $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] | 2727 |     sed 's/^/| /' "$ac_site_file" >&5 | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2728 |     . "$ac_site_file" \ | 
 | 2729 |       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 2730 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
 | 2731 | as_fn_error $? "failed to load site script $ac_site_file | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2732 | See \`config.log' for more details" "$LINENO" 5; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2733 |   fi | 
 | 2734 | done | 
 | 2735 |  | 
 | 2736 | if test -r "$cache_file"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2737 |   # Some versions of bash will fail to source /dev/null (special files | 
 | 2738 |   # actually), so we avoid doing that.  DJGPP emulates it as a regular file. | 
 | 2739 |   if test /dev/null != "$cache_file" && test -f "$cache_file"; then | 
 | 2740 |     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | 
 | 2741 | $as_echo "$as_me: loading cache $cache_file" >&6;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2742 |     case $cache_file in | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2743 |       [\\/]* | ?:[\\/]* ) . "$cache_file";; | 
 | 2744 |       *)                      . "./$cache_file";; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2745 |     esac | 
 | 2746 |   fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2747 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2748 |   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | 
 | 2749 | $as_echo "$as_me: creating cache $cache_file" >&6;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2750 |   >$cache_file | 
 | 2751 | fi | 
 | 2752 |  | 
 | 2753 | # Check that the precious variables saved in the cache have kept the same | 
 | 2754 | # value. | 
 | 2755 | ac_cache_corrupted=false | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2756 | for ac_var in $ac_precious_vars; do | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2757 |   eval ac_old_set=\$ac_cv_env_${ac_var}_set | 
 | 2758 |   eval ac_new_set=\$ac_env_${ac_var}_set | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2759 |   eval ac_old_val=\$ac_cv_env_${ac_var}_value | 
 | 2760 |   eval ac_new_val=\$ac_env_${ac_var}_value | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2761 |   case $ac_old_set,$ac_new_set in | 
 | 2762 |     set,) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2763 |       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | 
 | 2764 | $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] | 2765 |       ac_cache_corrupted=: ;; | 
 | 2766 |     ,set) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2767 |       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | 
 | 2768 | $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] | 2769 |       ac_cache_corrupted=: ;; | 
 | 2770 |     ,);; | 
 | 2771 |     *) | 
 | 2772 |       if test "x$ac_old_val" != "x$ac_new_val"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2773 | 	# differences in whitespace do not lead to failure. | 
 | 2774 | 	ac_old_val_w=`echo x $ac_old_val` | 
 | 2775 | 	ac_new_val_w=`echo x $ac_new_val` | 
 | 2776 | 	if test "$ac_old_val_w" != "$ac_new_val_w"; then | 
 | 2777 | 	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | 
 | 2778 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | 
 | 2779 | 	  ac_cache_corrupted=: | 
 | 2780 | 	else | 
 | 2781 | 	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | 
 | 2782 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | 
 | 2783 | 	  eval $ac_var=\$ac_old_val | 
 | 2784 | 	fi | 
 | 2785 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5 | 
 | 2786 | $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;} | 
 | 2787 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5 | 
 | 2788 | $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2789 |       fi;; | 
 | 2790 |   esac | 
 | 2791 |   # Pass precious variables to config.status. | 
 | 2792 |   if test "$ac_new_set" = set; then | 
 | 2793 |     case $ac_new_val in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2794 |     *\'*) 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] | 2795 |     *) ac_arg=$ac_var=$ac_new_val ;; | 
 | 2796 |     esac | 
 | 2797 |     case " $ac_configure_args " in | 
 | 2798 |       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2799 |       *) as_fn_append ac_configure_args " '$ac_arg'" ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2800 |     esac | 
 | 2801 |   fi | 
 | 2802 | done | 
 | 2803 | if $ac_cache_corrupted; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2804 |   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 2805 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
 | 2806 |   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | 
 | 2807 | $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] | 2808 |   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] | 2809 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2810 | ## -------------------- ## | 
 | 2811 | ## Main body of script. ## | 
 | 2812 | ## -------------------- ## | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2813 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2814 | ac_ext=c | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2815 | ac_cpp='$CPP $CPPFLAGS' | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2816 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 2817 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 2818 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2819 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2820 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2821 |  | 
| Trent Nelson | 4d4ec65 | 2012-10-16 08:51:24 -0400 | [diff] [blame] | 2822 |  | 
| Martin Panter | c5ee3ca | 2016-09-12 01:32:03 +0000 | [diff] [blame^] | 2823 | if test "$srcdir" != . -a "$srcdir" != "$(pwd)"; then | 
| Trent Nelson | 4d4ec65 | 2012-10-16 08:51:24 -0400 | [diff] [blame] | 2824 |     # If we're building out-of-tree, we need to make sure the following | 
 | 2825 |     # resources get picked up before their $srcdir counterparts. | 
 | 2826 |     #   Objects/ -> typeslots.inc | 
 | 2827 |     #   Include/ -> Python-ast.h, graminit.h | 
 | 2828 |     #   Python/  -> importlib.h | 
 | 2829 |     # (A side effect of this is that these resources will automatically be | 
 | 2830 |     #  regenerated when building out-of-tree, regardless of whether or not | 
 | 2831 |     #  the $srcdir counterpart is up-to-date.  This is an acceptable trade | 
 | 2832 |     #  off.) | 
 | 2833 |     BASECPPFLAGS="-IObjects -IInclude -IPython" | 
 | 2834 | else | 
 | 2835 |     BASECPPFLAGS="" | 
 | 2836 | fi | 
 | 2837 |  | 
| Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2838 |  | 
 | 2839 |  | 
 | 2840 |  | 
 | 2841 |  | 
| Antoine Pitrou | d3b2aef | 2011-07-27 01:22:41 +0200 | [diff] [blame] | 2842 | if test -e $srcdir/.hg/dirstate | 
| Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2843 | then | 
 | 2844 | # Extract the first word of "hg", so it can be a program name with args. | 
 | 2845 | set dummy hg; ac_word=$2 | 
 | 2846 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 2847 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2848 | if ${ac_cv_prog_HAS_HG+:} false; then : | 
| Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2849 |   $as_echo_n "(cached) " >&6 | 
 | 2850 | else | 
 | 2851 |   if test -n "$HAS_HG"; then | 
 | 2852 |   ac_cv_prog_HAS_HG="$HAS_HG" # Let the user override the test. | 
 | 2853 | else | 
 | 2854 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 2855 | for as_dir in $PATH | 
 | 2856 | do | 
 | 2857 |   IFS=$as_save_IFS | 
 | 2858 |   test -z "$as_dir" && as_dir=. | 
 | 2859 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 2860 |   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] | 2861 |     ac_cv_prog_HAS_HG="found" | 
 | 2862 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 2863 |     break 2 | 
 | 2864 |   fi | 
 | 2865 | done | 
 | 2866 |   done | 
 | 2867 | IFS=$as_save_IFS | 
 | 2868 |  | 
 | 2869 |   test -z "$ac_cv_prog_HAS_HG" && ac_cv_prog_HAS_HG="not-found" | 
 | 2870 | fi | 
 | 2871 | fi | 
 | 2872 | HAS_HG=$ac_cv_prog_HAS_HG | 
 | 2873 | if test -n "$HAS_HG"; then | 
 | 2874 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAS_HG" >&5 | 
 | 2875 | $as_echo "$HAS_HG" >&6; } | 
 | 2876 | else | 
 | 2877 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 2878 | $as_echo "no" >&6; } | 
 | 2879 | fi | 
 | 2880 |  | 
 | 2881 |  | 
 | 2882 | else | 
 | 2883 | HAS_HG=no-repository | 
 | 2884 | fi | 
 | 2885 | if test $HAS_HG = found | 
 | 2886 | then | 
 | 2887 |     HGVERSION="hg id -i \$(srcdir)" | 
 | 2888 |     HGTAG="hg id -t \$(srcdir)" | 
 | 2889 |     HGBRANCH="hg id -b \$(srcdir)" | 
 | 2890 | else | 
 | 2891 |     HGVERSION="" | 
 | 2892 |     HGTAG="" | 
 | 2893 |     HGBRANCH="" | 
 | 2894 | fi | 
 | 2895 |  | 
 | 2896 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2897 | ac_config_headers="$ac_config_headers pyconfig.h" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2898 |  | 
 | 2899 |  | 
| Matthias Klose | ca2f6ec | 2012-03-15 21:30:11 +0100 | [diff] [blame] | 2900 | ac_aux_dir= | 
 | 2901 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | 
 | 2902 |   if test -f "$ac_dir/install-sh"; then | 
 | 2903 |     ac_aux_dir=$ac_dir | 
 | 2904 |     ac_install_sh="$ac_aux_dir/install-sh -c" | 
 | 2905 |     break | 
 | 2906 |   elif test -f "$ac_dir/install.sh"; then | 
 | 2907 |     ac_aux_dir=$ac_dir | 
 | 2908 |     ac_install_sh="$ac_aux_dir/install.sh -c" | 
 | 2909 |     break | 
 | 2910 |   elif test -f "$ac_dir/shtool"; then | 
 | 2911 |     ac_aux_dir=$ac_dir | 
 | 2912 |     ac_install_sh="$ac_aux_dir/shtool install -c" | 
 | 2913 |     break | 
 | 2914 |   fi | 
 | 2915 | done | 
 | 2916 | if test -z "$ac_aux_dir"; then | 
 | 2917 |   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | 
 | 2918 | fi | 
 | 2919 |  | 
 | 2920 | # These three variables are undocumented and unsupported, | 
 | 2921 | # and are intended to be withdrawn in a future Autoconf release. | 
 | 2922 | # They can cause serious problems if a builder's source tree is in a directory | 
 | 2923 | # whose full name contains unusual characters. | 
 | 2924 | ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var. | 
 | 2925 | ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var. | 
 | 2926 | ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var. | 
 | 2927 |  | 
 | 2928 |  | 
 | 2929 | # Make sure we can run config.sub. | 
 | 2930 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | 
 | 2931 |   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | 
 | 2932 |  | 
 | 2933 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | 
 | 2934 | $as_echo_n "checking build system type... " >&6; } | 
 | 2935 | if ${ac_cv_build+:} false; then : | 
 | 2936 |   $as_echo_n "(cached) " >&6 | 
 | 2937 | else | 
 | 2938 |   ac_build_alias=$build_alias | 
 | 2939 | test "x$ac_build_alias" = x && | 
 | 2940 |   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | 
 | 2941 | test "x$ac_build_alias" = x && | 
 | 2942 |   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | 
 | 2943 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | 
 | 2944 |   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | 
 | 2945 |  | 
 | 2946 | fi | 
 | 2947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | 
 | 2948 | $as_echo "$ac_cv_build" >&6; } | 
 | 2949 | case $ac_cv_build in | 
 | 2950 | *-*-*) ;; | 
 | 2951 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | 
 | 2952 | esac | 
 | 2953 | build=$ac_cv_build | 
 | 2954 | ac_save_IFS=$IFS; IFS='-' | 
 | 2955 | set x $ac_cv_build | 
 | 2956 | shift | 
 | 2957 | build_cpu=$1 | 
 | 2958 | build_vendor=$2 | 
 | 2959 | shift; shift | 
 | 2960 | # Remember, the first character of IFS is used to create $*, | 
 | 2961 | # except with old shells: | 
 | 2962 | build_os=$* | 
 | 2963 | IFS=$ac_save_IFS | 
 | 2964 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | 
 | 2965 |  | 
 | 2966 |  | 
 | 2967 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | 
 | 2968 | $as_echo_n "checking host system type... " >&6; } | 
 | 2969 | if ${ac_cv_host+:} false; then : | 
 | 2970 |   $as_echo_n "(cached) " >&6 | 
 | 2971 | else | 
 | 2972 |   if test "x$host_alias" = x; then | 
 | 2973 |   ac_cv_host=$ac_cv_build | 
 | 2974 | else | 
 | 2975 |   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | 
 | 2976 |     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | 
 | 2977 | fi | 
 | 2978 |  | 
 | 2979 | fi | 
 | 2980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | 
 | 2981 | $as_echo "$ac_cv_host" >&6; } | 
 | 2982 | case $ac_cv_host in | 
 | 2983 | *-*-*) ;; | 
 | 2984 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | 
 | 2985 | esac | 
 | 2986 | host=$ac_cv_host | 
 | 2987 | ac_save_IFS=$IFS; IFS='-' | 
 | 2988 | set x $ac_cv_host | 
 | 2989 | shift | 
 | 2990 | host_cpu=$1 | 
 | 2991 | host_vendor=$2 | 
 | 2992 | shift; shift | 
 | 2993 | # Remember, the first character of IFS is used to create $*, | 
 | 2994 | # except with old shells: | 
 | 2995 | host_os=$* | 
 | 2996 | IFS=$ac_save_IFS | 
 | 2997 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | 
 | 2998 |  | 
 | 2999 |  | 
 | 3000 |  | 
| doko@python.org | a10e4a9 | 2013-01-25 18:45:12 +0100 | [diff] [blame] | 3001 |  | 
 | 3002 |  | 
| Ned Deily | fcbc246 | 2014-08-22 13:32:49 -0700 | [diff] [blame] | 3003 | # pybuilddir.txt will be created by --generate-posix-vars in the Makefile | 
 | 3004 | rm -f pybuilddir.txt | 
 | 3005 |  | 
| Xavier de Gaye | fd0d593 | 2016-07-26 12:48:08 +0200 | [diff] [blame] | 3006 | for ac_prog in python$PACKAGE_VERSION python3 python | 
 | 3007 | do | 
 | 3008 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 3009 | set dummy $ac_prog; ac_word=$2 | 
 | 3010 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 3011 | $as_echo_n "checking for $ac_word... " >&6; } | 
 | 3012 | if ${ac_cv_prog_PYTHON_FOR_GEN+:} false; then : | 
 | 3013 |   $as_echo_n "(cached) " >&6 | 
 | 3014 | else | 
 | 3015 |   if test -n "$PYTHON_FOR_GEN"; then | 
 | 3016 |   ac_cv_prog_PYTHON_FOR_GEN="$PYTHON_FOR_GEN" # Let the user override the test. | 
 | 3017 | else | 
 | 3018 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 3019 | for as_dir in $PATH | 
 | 3020 | do | 
 | 3021 |   IFS=$as_save_IFS | 
 | 3022 |   test -z "$as_dir" && as_dir=. | 
 | 3023 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 3024 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 3025 |     ac_cv_prog_PYTHON_FOR_GEN="$ac_prog" | 
 | 3026 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 3027 |     break 2 | 
 | 3028 |   fi | 
 | 3029 | done | 
 | 3030 |   done | 
 | 3031 | IFS=$as_save_IFS | 
 | 3032 |  | 
 | 3033 | fi | 
 | 3034 | fi | 
 | 3035 | PYTHON_FOR_GEN=$ac_cv_prog_PYTHON_FOR_GEN | 
 | 3036 | if test -n "$PYTHON_FOR_GEN"; then | 
 | 3037 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_FOR_GEN" >&5 | 
 | 3038 | $as_echo "$PYTHON_FOR_GEN" >&6; } | 
 | 3039 | else | 
 | 3040 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 3041 | $as_echo "no" >&6; } | 
 | 3042 | fi | 
 | 3043 |  | 
 | 3044 |  | 
 | 3045 |   test -n "$PYTHON_FOR_GEN" && break | 
 | 3046 | done | 
 | 3047 | test -n "$PYTHON_FOR_GEN" || PYTHON_FOR_GEN="not-found" | 
 | 3048 |  | 
 | 3049 | if test "$PYTHON_FOR_GEN" = not-found; then | 
 | 3050 |     PYTHON_FOR_GEN='@echo "Cannot generate $@, python not found !" && \ | 
 | 3051 |     echo "To skip re-generation of $@ run <make touch> or <make -t $@>." && \ | 
 | 3052 |     echo "Otherwise, set python in PATH and run configure or run <make PYTHON_FOR_GEN=python>." && false &&' | 
 | 3053 | fi | 
 | 3054 |  | 
 | 3055 |  | 
| doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 3056 | if test "$cross_compiling" = yes; then | 
 | 3057 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python interpreter for cross build" >&5 | 
 | 3058 | $as_echo_n "checking for python interpreter for cross build... " >&6; } | 
 | 3059 |     if test -z "$PYTHON_FOR_BUILD"; then | 
 | 3060 |         for interp in python$PACKAGE_VERSION python3 python; do | 
 | 3061 | 	    which $interp >/dev/null 2>&1 || continue | 
 | 3062 | 	    if $interp -c 'import sys;sys.exit(not sys.version_info[:2] >= (3,3))'; then | 
 | 3063 | 	        break | 
 | 3064 | 	    fi | 
 | 3065 |             interp= | 
 | 3066 | 	done | 
 | 3067 |         if test x$interp = x; then | 
 | 3068 | 	    as_fn_error $? "python$PACKAGE_VERSION interpreter not found" "$LINENO" 5 | 
 | 3069 | 	fi | 
 | 3070 |         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $interp" >&5 | 
 | 3071 | $as_echo "$interp" >&6; } | 
| doko@python.org | 244b687 | 2013-01-26 12:08:25 +0100 | [diff] [blame] | 3072 | 	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] | 3073 |     fi | 
| Martin Panter | 43a94a7 | 2016-07-29 05:52:32 +0000 | [diff] [blame] | 3074 |     # Used to comment out stuff for rebuilding generated files | 
 | 3075 |     GENERATED_COMMENT='#' | 
| Christian Heimes | 954ac03 | 2012-12-12 13:10:21 +0100 | [diff] [blame] | 3076 | elif test "$cross_compiling" = maybe; then | 
 | 3077 |     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] | 3078 | else | 
 | 3079 |     PYTHON_FOR_BUILD='./$(BUILDPYTHON) -E' | 
| Martin Panter | 43a94a7 | 2016-07-29 05:52:32 +0000 | [diff] [blame] | 3080 |     GENERATED_COMMENT='' | 
| doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 3081 | fi | 
 | 3082 |  | 
 | 3083 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3084 |  | 
| Martin Panter | eac67be | 2016-07-28 01:28:27 +0000 | [diff] [blame] | 3085 |  | 
| Benjamin Peterson | d23f822 | 2009-04-05 19:13:16 +0000 | [diff] [blame] | 3086 | if test "$prefix" != "/"; then | 
 | 3087 |     prefix=`echo "$prefix" | sed -e 's/\/$//g'` | 
 | 3088 | fi | 
 | 3089 |  | 
 | 3090 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3091 |  | 
 | 3092 |  | 
| Martin v. Löwis | 8316feb | 2003-06-14 07:48:07 +0000 | [diff] [blame] | 3093 | # We don't use PACKAGE_ variables, and they cause conflicts | 
 | 3094 | # with other autoconf-based packages that include Python.h | 
 | 3095 | grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new | 
 | 3096 | rm confdefs.h | 
 | 3097 | mv confdefs.h.new confdefs.h | 
 | 3098 |  | 
| Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 3099 |  | 
| Yury Selivanov | 7aa5341 | 2015-05-30 10:57:56 -0400 | [diff] [blame] | 3100 | VERSION=3.5 | 
| Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 3101 |  | 
| Benjamin Peterson | d7f73e9 | 2010-09-05 00:09:07 +0000 | [diff] [blame] | 3102 | # Version number of Python's own shared library file. | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3103 |  | 
 | 3104 | SOVERSION=1.0 | 
 | 3105 |  | 
| Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 3106 | # The later defininition of _XOPEN_SOURCE disables certain features | 
 | 3107 | # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone). | 
 | 3108 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3109 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | 
| Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 3110 |  | 
 | 3111 |  | 
| Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 3112 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables | 
 | 3113 | # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable | 
 | 3114 | # them. | 
 | 3115 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3116 | $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h | 
| Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 3117 |  | 
 | 3118 |  | 
| Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 3119 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables | 
 | 3120 | # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable | 
 | 3121 | # them. | 
 | 3122 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3123 | $as_echo "#define __BSD_VISIBLE 1" >>confdefs.h | 
| Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 3124 |  | 
 | 3125 |  | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 3126 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables | 
 | 3127 | # u_int on Irix 5.3. Defining _BSD_TYPES brings it back. | 
 | 3128 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3129 | $as_echo "#define _BSD_TYPES 1" >>confdefs.h | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 3130 |  | 
 | 3131 |  | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3132 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables | 
 | 3133 | # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable | 
 | 3134 | # them. | 
 | 3135 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3136 | $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3137 |  | 
 | 3138 |  | 
 | 3139 |  | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3140 | define_xopen_source=yes | 
| Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 3141 |  | 
| Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 +0000 | [diff] [blame] | 3142 | # Arguments passed to configure. | 
 | 3143 |  | 
 | 3144 | CONFIG_ARGS="$ac_configure_args" | 
 | 3145 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3146 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-universalsdk" >&5 | 
 | 3147 | $as_echo_n "checking for --enable-universalsdk... " >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3148 | # Check whether --enable-universalsdk was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3149 | if test "${enable_universalsdk+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3150 |   enableval=$enable_universalsdk; | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3151 | 	case $enableval in | 
 | 3152 | 	yes) | 
| Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3153 | 		# Locate the best usable SDK, see Mac/README.txt for more | 
 | 3154 | 		# information | 
 | 3155 | 		enableval="`/usr/bin/xcodebuild -version -sdk macosx Path 2>/dev/null`" | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 3156 | 		if ! ( echo $enableval | grep -E '\.sdk' 1>/dev/null ) | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3157 | 		then | 
| Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3158 | 			enableval=/Developer/SDKs/MacOSX10.4u.sdk | 
 | 3159 | 			if test ! -d "${enableval}" | 
 | 3160 | 			then | 
 | 3161 | 				enableval=/ | 
 | 3162 | 			fi | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3163 | 		fi | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3164 | 		;; | 
 | 3165 | 	esac | 
 | 3166 | 	case $enableval in | 
 | 3167 | 	no) | 
 | 3168 | 		UNIVERSALSDK= | 
 | 3169 | 		enable_universalsdk= | 
 | 3170 | 		;; | 
 | 3171 | 	*) | 
 | 3172 | 		UNIVERSALSDK=$enableval | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3173 | 		if test ! -d "${UNIVERSALSDK}" | 
 | 3174 | 		then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 3175 | 			as_fn_error $? "--enable-universalsdk specifies non-existing SDK: ${UNIVERSALSDK}" "$LINENO" 5 | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3176 | 		fi | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3177 | 		;; | 
 | 3178 | 	esac | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3179 |  | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3180 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3181 | else | 
 | 3182 |  | 
 | 3183 |    	UNIVERSALSDK= | 
 | 3184 | 	enable_universalsdk= | 
 | 3185 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3186 | fi | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3187 |  | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3188 | if test -n "${UNIVERSALSDK}" | 
 | 3189 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3190 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSALSDK}" >&5 | 
 | 3191 | $as_echo "${UNIVERSALSDK}" >&6; } | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3192 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3193 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 3194 | $as_echo "no" >&6; } | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3195 | fi | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3196 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3197 |  | 
| Benjamin Peterson | 6794aa3 | 2008-07-16 20:33:37 +0000 | [diff] [blame] | 3198 |  | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 3199 | ARCH_RUN_32BIT="" | 
| Benjamin Peterson | 6794aa3 | 2008-07-16 20:33:37 +0000 | [diff] [blame] | 3200 |  | 
| Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3201 | # For backward compatibility reasons we prefer to select '32-bit' if available, | 
 | 3202 | # otherwise use 'intel' | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3203 | UNIVERSAL_ARCHS="32-bit" | 
| Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3204 | if test "`uname -s`" = "Darwin" | 
 | 3205 | then | 
 | 3206 | 	if test -n "${UNIVERSALSDK}" | 
 | 3207 | 	then | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 3208 | 		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] | 3209 | 		then | 
 | 3210 | 			UNIVERSAL_ARCHS="intel" | 
 | 3211 | 		fi | 
 | 3212 | 	fi | 
 | 3213 | fi | 
 | 3214 |  | 
| Ronald Oussoren | 6f6c562 | 2009-12-24 14:03:19 +0000 | [diff] [blame] | 3215 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3216 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-universal-archs" >&5 | 
 | 3217 | $as_echo_n "checking for --with-universal-archs... " >&6; } | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3218 |  | 
 | 3219 | # Check whether --with-universal-archs was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3220 | if test "${with_universal_archs+set}" = set; then : | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3221 |   withval=$with_universal_archs; | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3222 | 	UNIVERSAL_ARCHS="$withval" | 
 | 3223 |  | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3224 | fi | 
 | 3225 |  | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 3226 | if test -n "${UNIVERSALSDK}" | 
 | 3227 | then | 
 | 3228 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSAL_ARCHS}" >&5 | 
 | 3229 | $as_echo "${UNIVERSAL_ARCHS}" >&6; } | 
 | 3230 | else | 
 | 3231 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 3232 | $as_echo "no" >&6; } | 
 | 3233 | fi | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3234 |  | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 3235 |  | 
 | 3236 | # Check whether --with-framework-name was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3237 | if test "${with_framework_name+set}" = set; then : | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 3238 |   withval=$with_framework_name; | 
 | 3239 |     PYTHONFRAMEWORK=${withval} | 
 | 3240 |     PYTHONFRAMEWORKDIR=${withval}.framework | 
 | 3241 |     PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'` | 
 | 3242 |  | 
 | 3243 | else | 
 | 3244 |  | 
 | 3245 |     PYTHONFRAMEWORK=Python | 
 | 3246 |     PYTHONFRAMEWORKDIR=Python.framework | 
 | 3247 |     PYTHONFRAMEWORKIDENTIFIER=org.python.python | 
 | 3248 |  | 
 | 3249 | fi | 
 | 3250 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3251 | # Check whether --enable-framework was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3252 | if test "${enable_framework+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3253 |   enableval=$enable_framework; | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3254 | 	case $enableval in | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3255 | 	yes) | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3256 | 		enableval=/Library/Frameworks | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3257 | 	esac | 
 | 3258 | 	case $enableval in | 
 | 3259 | 	no) | 
 | 3260 | 		PYTHONFRAMEWORK= | 
 | 3261 | 		PYTHONFRAMEWORKDIR=no-framework | 
 | 3262 | 		PYTHONFRAMEWORKPREFIX= | 
 | 3263 | 		PYTHONFRAMEWORKINSTALLDIR= | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3264 | 		FRAMEWORKINSTALLFIRST= | 
 | 3265 | 		FRAMEWORKINSTALLLAST= | 
| Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3266 | 		FRAMEWORKALTINSTALLFIRST= | 
 | 3267 | 		FRAMEWORKALTINSTALLLAST= | 
| Ned Deily | b8f944f | 2013-11-21 22:42:25 -0800 | [diff] [blame] | 3268 | 		FRAMEWORKPYTHONW= | 
| Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3269 | 		if test "x${prefix}" = "xNONE"; then | 
 | 3270 | 			FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" | 
 | 3271 | 		else | 
 | 3272 | 			FRAMEWORKUNIXTOOLSPREFIX="${prefix}" | 
 | 3273 | 		fi | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3274 | 		enable_framework= | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3275 | 		;; | 
 | 3276 | 	*) | 
| Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 3277 | 		PYTHONFRAMEWORKPREFIX="${enableval}" | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3278 | 		PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3279 | 		FRAMEWORKINSTALLFIRST="frameworkinstallstructure" | 
| Ronald Oussoren | f6ccbf6 | 2009-06-02 10:55:56 +0000 | [diff] [blame] | 3280 | 		FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure " | 
| Ronald Oussoren | 6f6c562 | 2009-12-24 14:03:19 +0000 | [diff] [blame] | 3281 | 		FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools" | 
 | 3282 | 		FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools" | 
| Ned Deily | b8f944f | 2013-11-21 22:42:25 -0800 | [diff] [blame] | 3283 | 		FRAMEWORKPYTHONW="frameworkpythonw" | 
| Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 3284 | 		FRAMEWORKINSTALLAPPSPREFIX="/Applications" | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3285 |  | 
| Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3286 | 		if test "x${prefix}" = "xNONE" ; then | 
 | 3287 | 			FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" | 
| Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 3288 |  | 
| Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3289 | 		else | 
 | 3290 | 			FRAMEWORKUNIXTOOLSPREFIX="${prefix}" | 
 | 3291 | 		fi | 
| Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 3292 |  | 
 | 3293 | 		case "${enableval}" in | 
 | 3294 | 		/System*) | 
 | 3295 | 			FRAMEWORKINSTALLAPPSPREFIX="/Applications" | 
 | 3296 | 			if test "${prefix}" = "NONE" ; then | 
 | 3297 | 				# See below | 
 | 3298 | 				FRAMEWORKUNIXTOOLSPREFIX="/usr" | 
 | 3299 | 			fi | 
 | 3300 | 			;; | 
 | 3301 |  | 
 | 3302 | 		/Library*) | 
 | 3303 | 			FRAMEWORKINSTALLAPPSPREFIX="/Applications" | 
 | 3304 | 			;; | 
 | 3305 |  | 
 | 3306 | 		*/Library/Frameworks) | 
 | 3307 | 			MDIR="`dirname "${enableval}"`" | 
 | 3308 | 			MDIR="`dirname "${MDIR}"`" | 
 | 3309 | 			FRAMEWORKINSTALLAPPSPREFIX="${MDIR}/Applications" | 
 | 3310 |  | 
 | 3311 | 			if test "${prefix}" = "NONE"; then | 
 | 3312 | 				# User hasn't specified the | 
 | 3313 | 				# --prefix option, but wants to install | 
 | 3314 | 				# the framework in a non-default location, | 
 | 3315 | 				# ensure that the compatibility links get | 
 | 3316 | 				# installed relative to that prefix as well | 
 | 3317 | 				# instead of in /usr/local. | 
 | 3318 | 				FRAMEWORKUNIXTOOLSPREFIX="${MDIR}" | 
 | 3319 | 			fi | 
 | 3320 | 			;; | 
 | 3321 |  | 
 | 3322 | 		*) | 
 | 3323 | 			FRAMEWORKINSTALLAPPSPREFIX="/Applications" | 
 | 3324 | 			;; | 
 | 3325 | 		esac | 
 | 3326 |  | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3327 | 		prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3328 |  | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 3329 | 		# Add files for Mac specific code to the list of output | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3330 | 		# files: | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3331 | 		ac_config_files="$ac_config_files Mac/Makefile" | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3332 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3333 | 		ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile" | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3334 |  | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 3335 | 		ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist" | 
 | 3336 |  | 
 | 3337 | 		ac_config_files="$ac_config_files Mac/Resources/app/Info.plist" | 
 | 3338 |  | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3339 | 	esac | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3340 |  | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3341 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3342 |  | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3343 | 	PYTHONFRAMEWORK= | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3344 | 	PYTHONFRAMEWORKDIR=no-framework | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3345 | 	PYTHONFRAMEWORKPREFIX= | 
 | 3346 | 	PYTHONFRAMEWORKINSTALLDIR= | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3347 | 	FRAMEWORKINSTALLFIRST= | 
 | 3348 | 	FRAMEWORKINSTALLLAST= | 
| Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3349 | 	FRAMEWORKALTINSTALLFIRST= | 
 | 3350 | 	FRAMEWORKALTINSTALLLAST= | 
| Ned Deily | b8f944f | 2013-11-21 22:42:25 -0800 | [diff] [blame] | 3351 | 	FRAMEWORKPYTHONW= | 
| Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3352 | 	if test "x${prefix}" = "xNONE" ; then | 
 | 3353 | 		FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" | 
 | 3354 | 	else | 
 | 3355 | 		FRAMEWORKUNIXTOOLSPREFIX="${prefix}" | 
 | 3356 | 	fi | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3357 | 	enable_framework= | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3358 |  | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3359 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3360 | fi | 
 | 3361 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3362 |  | 
 | 3363 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3364 |  | 
 | 3365 |  | 
 | 3366 |  | 
 | 3367 |  | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3368 |  | 
| Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3369 |  | 
 | 3370 |  | 
 | 3371 |  | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 3372 |  | 
| Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 3373 |  | 
| Ned Deily | b8f944f | 2013-11-21 22:42:25 -0800 | [diff] [blame] | 3374 |  | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3375 | ##AC_ARG_WITH(dyld, | 
| Matthias Klose | 2b8733f | 2010-04-25 18:34:36 +0000 | [diff] [blame] | 3376 | ##            AS_HELP_STRING([--with-dyld], | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 3377 | ##                           [Use (OpenStep|Rhapsody) dynamic linker])) | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3378 | ## | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3379 | # Set name for machine-dependent library files | 
 | 3380 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3381 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP" >&5 | 
 | 3382 | $as_echo_n "checking MACHDEP... " >&6; } | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3383 | if test -z "$MACHDEP" | 
 | 3384 | then | 
| Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 3385 |     # avoid using uname for cross builds | 
 | 3386 |     if test "$cross_compiling" = yes; then | 
| doko@python.org | 44bbbda | 2013-01-25 14:44:00 +0100 | [diff] [blame] | 3387 |        # ac_sys_system and ac_sys_release are used for setting | 
 | 3388 |        # a lot of different things including 'define_xopen_source' | 
 | 3389 |        # in the case statement below. | 
| Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 3390 | 	case "$host" in | 
 | 3391 | 	*-*-linux*) | 
 | 3392 | 		ac_sys_system=Linux | 
 | 3393 | 		;; | 
 | 3394 | 	*-*-cygwin*) | 
 | 3395 | 		ac_sys_system=Cygwin | 
 | 3396 | 		;; | 
 | 3397 | 	*) | 
 | 3398 | 		# for now, limit cross builds to known configurations | 
 | 3399 | 		MACHDEP="unknown" | 
 | 3400 | 		as_fn_error $? "cross build not supported for $host" "$LINENO" 5 | 
 | 3401 | 	esac | 
 | 3402 | 	ac_sys_release= | 
 | 3403 |     else | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3404 | 	ac_sys_system=`uname -s` | 
| Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 3405 | 	if test "$ac_sys_system" = "AIX" \ | 
| Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 3406 | 	-o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3407 | 		ac_sys_release=`uname -v` | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3408 | 	else | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3409 | 		ac_sys_release=`uname -r` | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3410 | 	fi | 
| Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 3411 |     fi | 
 | 3412 |     ac_md_system=`echo $ac_sys_system | | 
 | 3413 | 			tr -d '/ ' | tr '[A-Z]' '[a-z]'` | 
 | 3414 |     ac_md_release=`echo $ac_sys_release | | 
 | 3415 | 			tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'` | 
 | 3416 |     MACHDEP="$ac_md_system$ac_md_release" | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3417 |  | 
| Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 3418 |     case $MACHDEP in | 
| Victor Stinner | 7209ff2 | 2011-08-21 00:00:16 +0200 | [diff] [blame] | 3419 | 	linux*) MACHDEP="linux";; | 
| Andrew M. Kuchling | 5a3e4cb | 2001-07-20 19:29:04 +0000 | [diff] [blame] | 3420 | 	cygwin*) MACHDEP="cygwin";; | 
| Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame] | 3421 | 	darwin*) MACHDEP="darwin";; | 
| doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 3422 | 	irix646) MACHDEP="irix6";; | 
| Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 3423 | 	'')	MACHDEP="unknown";; | 
| Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 3424 |     esac | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3425 | fi | 
| Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3426 |  | 
| doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 3427 |  | 
 | 3428 | if test "$cross_compiling" = yes; then | 
 | 3429 | 	case "$host" in | 
 | 3430 | 	*-*-linux*) | 
 | 3431 | 		case "$host_cpu" in | 
 | 3432 | 		arm*) | 
 | 3433 | 			_host_cpu=arm | 
 | 3434 | 			;; | 
 | 3435 | 		*) | 
 | 3436 | 			_host_cpu=$host_cpu | 
 | 3437 | 		esac | 
 | 3438 | 		;; | 
 | 3439 | 	*-*-cygwin*) | 
 | 3440 | 		_host_cpu= | 
 | 3441 | 		;; | 
 | 3442 | 	*) | 
 | 3443 | 		# for now, limit cross builds to known configurations | 
 | 3444 | 		MACHDEP="unknown" | 
 | 3445 | 		as_fn_error $? "cross build not supported for $host" "$LINENO" 5 | 
 | 3446 | 	esac | 
 | 3447 | 	_PYTHON_HOST_PLATFORM="$MACHDEP${_host_cpu:+-$_host_cpu}" | 
 | 3448 | fi | 
 | 3449 |  | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3450 | # Some systems cannot stand _XOPEN_SOURCE being defined at all; they | 
 | 3451 | # disable features if it is defined, without any means to access these | 
 | 3452 | # features as extensions. For these systems, we skip the definition of | 
 | 3453 | # _XOPEN_SOURCE. Before adding a system to the list to gain access to | 
 | 3454 | # some feature, make sure there is no alternative way to access this | 
 | 3455 | # feature. Also, when using wildcards, make sure you have verified the | 
 | 3456 | # need for not defining _XOPEN_SOURCE on all systems matching the | 
 | 3457 | # wildcard, and that the wildcard does not include future systems | 
 | 3458 | # (which may remove their limitations). | 
 | 3459 | case $ac_sys_system/$ac_sys_release in | 
 | 3460 |   # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined, | 
 | 3461 |   # 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] | 3462 |   # 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] | 3463 |   # In addition, Stefan Krah confirms that issue #1244610 exists through | 
 | 3464 |   # OpenBSD 4.6, but is fixed in 4.7. | 
| Charles-François Natali | 54ef40b | 2011-07-22 23:52:02 +0200 | [diff] [blame] | 3465 |   OpenBSD/2.* | OpenBSD/3.* | OpenBSD/4.[0123456]) | 
| Christian Heimes | 5b5e81c | 2007-12-31 16:14:33 +0000 | [diff] [blame] | 3466 |     define_xopen_source=no | 
 | 3467 |     # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is | 
 | 3468 |     # also defined. This can be overridden by defining _BSD_SOURCE | 
 | 3469 |     # As this has a different meaning on Linux, only define it on OpenBSD | 
 | 3470 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3471 | $as_echo "#define _BSD_SOURCE 1" >>confdefs.h | 
| Christian Heimes | 5b5e81c | 2007-12-31 16:14:33 +0000 | [diff] [blame] | 3472 |  | 
 | 3473 |     ;; | 
| Charles-François Natali | 54ef40b | 2011-07-22 23:52:02 +0200 | [diff] [blame] | 3474 |   OpenBSD/*) | 
| Martin v. Löwis | 7671efc | 2010-02-15 08:35:16 +0000 | [diff] [blame] | 3475 |     # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is | 
 | 3476 |     # also defined. This can be overridden by defining _BSD_SOURCE | 
 | 3477 |     # As this has a different meaning on Linux, only define it on OpenBSD | 
 | 3478 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3479 | $as_echo "#define _BSD_SOURCE 1" >>confdefs.h | 
| Martin v. Löwis | 7671efc | 2010-02-15 08:35:16 +0000 | [diff] [blame] | 3480 |  | 
 | 3481 |     ;; | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 3482 |   # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of | 
 | 3483 |   # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by | 
 | 3484 |   # Marc Recht | 
| Benjamin Peterson | f608c61 | 2008-11-16 18:33:53 +0000 | [diff] [blame] | 3485 |   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] | 3486 |     define_xopen_source=no;; | 
| Martin v. Löwis | 1a41576 | 2010-05-28 15:44:20 +0000 | [diff] [blame] | 3487 |   # From the perspective of Solaris, _XOPEN_SOURCE is not so much a | 
 | 3488 |   # request to enable features supported by the standard as a request | 
 | 3489 |   # to disable features not supported by the standard.  The best way | 
 | 3490 |   # for Python to use Solaris is simply to leave _XOPEN_SOURCE out | 
 | 3491 |   # entirely and define __EXTENSIONS__ instead. | 
 | 3492 |   SunOS/*) | 
| Martin v. Löwis | a9d7142 | 2003-03-28 18:43:31 +0000 | [diff] [blame] | 3493 |     define_xopen_source=no;; | 
| Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 3494 |   # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE, | 
 | 3495 |   # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice. | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3496 |   # Reconfirmed for 7.1.4 by Martin v. Loewis. | 
| Martin v. Löwis | 253d1f4 | 2004-05-07 19:14:14 +0000 | [diff] [blame] | 3497 |   OpenUNIX/8.0.0| UnixWare/7.1.[0-4]) | 
| Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 3498 |     define_xopen_source=no;; | 
 | 3499 |   # 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] | 3500 |   # 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] | 3501 |   SCO_SV/3.2) | 
| Martin v. Löwis | 53e73c3 | 2003-05-05 05:13:18 +0000 | [diff] [blame] | 3502 |     define_xopen_source=no;; | 
| Martin v. Löwis | b37509b | 2008-11-04 20:45:29 +0000 | [diff] [blame] | 3503 |   # On FreeBSD 4, the math functions C89 does not cover are never defined | 
 | 3504 |   # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them. | 
 | 3505 |   FreeBSD/4.*) | 
 | 3506 |     define_xopen_source=no;; | 
 | 3507 |   # On MacOS X 10.2, a bug in ncurses.h means that it craps out if | 
 | 3508 |   # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which | 
 | 3509 |   # identifies itself as Darwin/7.* | 
 | 3510 |   # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE | 
 | 3511 |   # disables platform specific features beyond repair. | 
 | 3512 |   # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE | 
 | 3513 |   # has no effect, don't bother defining them | 
 | 3514 |   Darwin/[6789].*) | 
| Anthony Baxter | 6169c6b | 2003-10-04 07:46:23 +0000 | [diff] [blame] | 3515 |     define_xopen_source=no;; | 
| Ronald Oussoren | 92fb941 | 2010-03-09 06:40:19 +0000 | [diff] [blame] | 3516 |   Darwin/1[0-9].*) | 
| Ronald Oussoren | b8f11a6 | 2010-03-08 07:02:03 +0000 | [diff] [blame] | 3517 |     define_xopen_source=no;; | 
| Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 3518 |   # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but | 
 | 3519 |   # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined | 
 | 3520 |   # 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] | 3521 |   AIX/4) | 
 | 3522 |     define_xopen_source=no;; | 
| Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 3523 |   AIX/5) | 
 | 3524 |     if test `uname -r` -eq 1; then | 
 | 3525 |       define_xopen_source=no | 
 | 3526 |     fi | 
 | 3527 |     ;; | 
| Benjamin Peterson | de9c869 | 2008-07-01 18:23:09 +0000 | [diff] [blame] | 3528 |   # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from | 
 | 3529 |   # defining NI_NUMERICHOST. | 
 | 3530 |   QNX/6.3.2) | 
 | 3531 |     define_xopen_source=no | 
 | 3532 |     ;; | 
| Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 3533 |  | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3534 | esac | 
 | 3535 |  | 
 | 3536 | if test $define_xopen_source = yes | 
 | 3537 | then | 
| Victor Stinner | 14d098d | 2011-09-07 22:29:43 +0200 | [diff] [blame] | 3538 |   # X/Open 7, incorporating POSIX.1-2008 | 
| Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3539 |  | 
| Victor Stinner | 14d098d | 2011-09-07 22:29:43 +0200 | [diff] [blame] | 3540 | $as_echo "#define _XOPEN_SOURCE 700" >>confdefs.h | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3541 |  | 
| Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3542 |  | 
 | 3543 |   # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires | 
 | 3544 |   # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else | 
 | 3545 |   # several APIs are not declared. Since this is also needed in some | 
 | 3546 |   # cases for HP-UX, we define it globally. | 
| Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3547 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3548 | $as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h | 
| Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3549 |  | 
 | 3550 |  | 
| Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 3551 |  | 
| Victor Stinner | d169fdc | 2011-09-08 00:56:17 +0200 | [diff] [blame] | 3552 | $as_echo "#define _POSIX_C_SOURCE 200809L" >>confdefs.h | 
| Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3553 |  | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3554 | fi | 
 | 3555 |  | 
| Christian Heimes | 647cd87 | 2013-12-07 23:39:33 +0100 | [diff] [blame] | 3556 | # On HP-UX mbstate_t requires _INCLUDE__STDC_A1_SOURCE | 
 | 3557 | case $ac_sys_system in | 
| Christian Heimes | b02bcae | 2013-12-08 15:21:08 +0100 | [diff] [blame] | 3558 |   hp*|HP*) | 
 | 3559 |     define_stdc_a1=yes;; | 
 | 3560 |   *) | 
 | 3561 |     define_stdc_a1=no;; | 
 | 3562 | esac | 
 | 3563 |  | 
 | 3564 | if test $define_stdc_a1 = yes | 
 | 3565 | then | 
| Christian Heimes | 647cd87 | 2013-12-07 23:39:33 +0100 | [diff] [blame] | 3566 |  | 
 | 3567 | $as_echo "#define _INCLUDE__STDC_A1_SOURCE 1" >>confdefs.h | 
 | 3568 |  | 
| Christian Heimes | b02bcae | 2013-12-08 15:21:08 +0100 | [diff] [blame] | 3569 | fi | 
| Christian Heimes | 647cd87 | 2013-12-07 23:39:33 +0100 | [diff] [blame] | 3570 |  | 
| Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3571 | # | 
 | 3572 | # SGI compilers allow the specification of the both the ABI and the | 
 | 3573 | # ISA on the command line.  Depending on the values of these switches, | 
| Martin Panter | 46f5072 | 2016-05-26 05:35:26 +0000 | [diff] [blame] | 3574 | # different and often incompatible code will be generated. | 
| Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3575 | # | 
 | 3576 | # The SGI_ABI variable can be used to modify the CC and LDFLAGS and | 
 | 3577 | # thus supply support for various ABI/ISA combinations.  The MACHDEP | 
 | 3578 | # variable is also adjusted. | 
 | 3579 | # | 
 | 3580 |  | 
 | 3581 | if test ! -z "$SGI_ABI" | 
 | 3582 | then | 
 | 3583 |         CC="cc $SGI_ABI" | 
 | 3584 |         LDFLAGS="$SGI_ABI $LDFLAGS" | 
 | 3585 |         MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'` | 
 | 3586 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACHDEP" >&5 | 
 | 3588 | $as_echo "$MACHDEP" >&6; } | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3589 |  | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3590 | # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET, | 
 | 3591 | # it may influence the way we can build extensions, so distutils | 
 | 3592 | # needs to check it | 
 | 3593 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3594 |  | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3595 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET= | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3596 | EXPORT_MACOSX_DEPLOYMENT_TARGET='#' | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3597 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3598 | # checks for alternative programs | 
| Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3599 |  | 
 | 3600 | # compiler flags are generated in two sets, BASECFLAGS and OPT.  OPT is just | 
 | 3601 | # for debug/optimization stuff.  BASECFLAGS is for flags that are required | 
 | 3602 | # just to get things to compile and link.  Users are free to override OPT | 
 | 3603 | # when running configure or make.  The build should not break if they do. | 
 | 3604 | # BASECFLAGS should generally not be messed with, however. | 
 | 3605 |  | 
 | 3606 | # XXX shouldn't some/most/all of this code be merged with the stuff later | 
 | 3607 | # on that fiddles with OPT and BASECFLAGS? | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3608 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --without-gcc" >&5 | 
 | 3609 | $as_echo_n "checking for --without-gcc... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3610 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3611 | # Check whether --with-gcc was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3612 | if test "${with_gcc+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3613 |   withval=$with_gcc; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3614 | 	case $withval in | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3615 | 	no)	CC=${CC:-cc} | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3616 | 		without_gcc=yes;; | 
 | 3617 | 	yes)	CC=gcc | 
 | 3618 | 		without_gcc=no;; | 
 | 3619 | 	*)	CC=$withval | 
 | 3620 | 		without_gcc=$withval;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3621 | 	esac | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3622 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3623 |  | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3624 | 	case $ac_sys_system in | 
| Antoine Pitrou | f6350d2 | 2010-09-21 15:19:14 +0000 | [diff] [blame] | 3625 | 	AIX*)   CC=${CC:-xlc_r} | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 3626 | 		without_gcc=;; | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3627 | 	*)	without_gcc=no;; | 
| Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 3628 | 	esac | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3629 | fi | 
 | 3630 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $without_gcc" >&5 | 
 | 3632 | $as_echo "$without_gcc" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3633 |  | 
| Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 3634 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-icc" >&5 | 
 | 3635 | $as_echo_n "checking for --with-icc... " >&6; } | 
 | 3636 |  | 
 | 3637 | # Check whether --with-icc was given. | 
 | 3638 | if test "${with_icc+set}" = set; then : | 
 | 3639 |   withval=$with_icc; | 
 | 3640 | 	case $withval in | 
 | 3641 | 	no)	CC=${CC:-cc} | 
 | 3642 | 		with_icc=no;; | 
 | 3643 | 	yes)	CC=icc | 
 | 3644 | 		CXX=icpc | 
 | 3645 | 		with_icc=yes;; | 
 | 3646 | 	*)	CC=$withval | 
 | 3647 | 		with_icc=$withval;; | 
 | 3648 | 	esac | 
 | 3649 | else | 
 | 3650 |  | 
 | 3651 | 	with_icc=no | 
 | 3652 | fi | 
 | 3653 |  | 
 | 3654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_icc" >&5 | 
 | 3655 | $as_echo "$with_icc" >&6; } | 
 | 3656 |  | 
| Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 3657 | # If the user switches compilers, we can't believe the cache | 
 | 3658 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" | 
 | 3659 | then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 3660 |   as_fn_error $? "cached CC is different -- throw away $cache_file | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3661 | (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] | 3662 | fi | 
 | 3663 |  | 
| Jeffrey Yasskin | d4fcdb1 | 2010-07-09 16:30:58 +0000 | [diff] [blame] | 3664 | # Don't let AC_PROG_CC set the default CFLAGS. It normally sets -g -O2 | 
 | 3665 | # when the compiler supports them, but we don't always want -O2, and | 
 | 3666 | # we set -g later. | 
 | 3667 | if test -z "$CFLAGS"; then | 
 | 3668 |         CFLAGS= | 
 | 3669 | fi | 
| Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3670 |  | 
 | 3671 | if test "$ac_sys_system" = "Darwin" | 
 | 3672 | then | 
 | 3673 | 	# Compiler selection on MacOSX is more complicated than | 
 | 3674 | 	# AC_PROG_CC can handle, see Mac/README.txt for more | 
 | 3675 | 	# information | 
 | 3676 | 	if test -z "${CC}" | 
 | 3677 | 	then | 
 | 3678 | 		found_gcc= | 
 | 3679 | 		found_clang= | 
 | 3680 | 		as_save_IFS=$IFS; IFS=: | 
 | 3681 | 		for as_dir in $PATH | 
 | 3682 | 		do | 
 | 3683 | 			IFS=$as_save_IFS | 
 | 3684 | 			if test -x $as_dir/gcc; then | 
 | 3685 | 				if test -z "${found_gcc}"; then | 
 | 3686 | 					found_gcc=$as_dir/gcc | 
 | 3687 | 				fi | 
 | 3688 | 			fi | 
 | 3689 | 			if test -x $as_dir/clang; then | 
 | 3690 | 				if test -z "${found_clang}"; then | 
 | 3691 | 					found_clang=$as_dir/clang | 
 | 3692 | 				fi | 
 | 3693 | 			fi | 
 | 3694 | 		done | 
 | 3695 | 		IFS=$as_save_IFS | 
 | 3696 |  | 
 | 3697 | 		if test -n "$found_gcc" -a -n "$found_clang" | 
 | 3698 | 		then | 
 | 3699 | 			if test -n "`"$found_gcc" --version | grep llvm-gcc`" | 
 | 3700 | 			then | 
 | 3701 | 				{ $as_echo "$as_me:${as_lineno-$LINENO}: Detected llvm-gcc, falling back to clang" >&5 | 
 | 3702 | $as_echo "$as_me: Detected llvm-gcc, falling back to clang" >&6;} | 
 | 3703 | 				CC="$found_clang" | 
 | 3704 | 				CXX="$found_clang++" | 
 | 3705 | 			fi | 
 | 3706 |  | 
 | 3707 |  | 
 | 3708 | 		elif test -z "$found_gcc" -a -n "$found_clang" | 
 | 3709 | 		then | 
 | 3710 | 			{ $as_echo "$as_me:${as_lineno-$LINENO}: No GCC found, use CLANG" >&5 | 
 | 3711 | $as_echo "$as_me: No GCC found, use CLANG" >&6;} | 
 | 3712 | 			CC="$found_clang" | 
 | 3713 | 			CXX="$found_clang++" | 
 | 3714 |  | 
 | 3715 | 		elif test -z "$found_gcc" -a -z "$found_clang" | 
 | 3716 | 		then | 
 | 3717 | 			found_clang=`/usr/bin/xcrun -find clang 2>/dev/null` | 
 | 3718 | 			if test -n "${found_clang}" | 
 | 3719 | 			then | 
 | 3720 | 				{ $as_echo "$as_me:${as_lineno-$LINENO}: Using clang from Xcode.app" >&5 | 
 | 3721 | $as_echo "$as_me: Using clang from Xcode.app" >&6;} | 
 | 3722 | 				CC="${found_clang}" | 
 | 3723 | 				CXX="`/usr/bin/xcrun -find clang++`" | 
 | 3724 |  | 
 | 3725 | 			# else: use default behaviour | 
 | 3726 | 			fi | 
 | 3727 | 		fi | 
 | 3728 | 	fi | 
 | 3729 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3730 | ac_ext=c | 
 | 3731 | ac_cpp='$CPP $CPPFLAGS' | 
 | 3732 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 3733 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 3734 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 3735 | if test -n "$ac_tool_prefix"; then | 
 | 3736 |   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | 
 | 3737 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3738 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 3739 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3740 | if ${ac_cv_prog_CC+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3741 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3742 | else | 
 | 3743 |   if test -n "$CC"; then | 
 | 3744 |   ac_cv_prog_CC="$CC" # Let the user override the test. | 
 | 3745 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3746 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 3747 | for as_dir in $PATH | 
 | 3748 | do | 
 | 3749 |   IFS=$as_save_IFS | 
 | 3750 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3751 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 3752 |   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] | 3753 |     ac_cv_prog_CC="${ac_tool_prefix}gcc" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3754 |     $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] | 3755 |     break 2 | 
 | 3756 |   fi | 
 | 3757 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3758 |   done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3759 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3760 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3761 | fi | 
 | 3762 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3763 | CC=$ac_cv_prog_CC | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3764 | if test -n "$CC"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3765 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
 | 3766 | $as_echo "$CC" >&6; } | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3767 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3768 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 3769 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3770 | fi | 
 | 3771 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3772 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3773 | fi | 
 | 3774 | if test -z "$ac_cv_prog_CC"; then | 
 | 3775 |   ac_ct_CC=$CC | 
 | 3776 |   # Extract the first word of "gcc", so it can be a program name with args. | 
 | 3777 | set dummy gcc; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3778 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 3779 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3780 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3781 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3782 | else | 
 | 3783 |   if test -n "$ac_ct_CC"; then | 
 | 3784 |   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | 
 | 3785 | else | 
 | 3786 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 3787 | for as_dir in $PATH | 
 | 3788 | do | 
 | 3789 |   IFS=$as_save_IFS | 
 | 3790 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3791 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 3792 |   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] | 3793 |     ac_cv_prog_ac_ct_CC="gcc" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3794 |     $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] | 3795 |     break 2 | 
 | 3796 |   fi | 
 | 3797 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3798 |   done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3799 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3800 |  | 
 | 3801 | fi | 
 | 3802 | fi | 
 | 3803 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | 
 | 3804 | if test -n "$ac_ct_CC"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3805 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | 
 | 3806 | $as_echo "$ac_ct_CC" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3807 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3808 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 3809 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3810 | fi | 
 | 3811 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3812 |   if test "x$ac_ct_CC" = x; then | 
 | 3813 |     CC="" | 
 | 3814 |   else | 
 | 3815 |     case $cross_compiling:$ac_tool_warned in | 
 | 3816 | yes:) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3817 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 3818 | $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] | 3819 | ac_tool_warned=yes ;; | 
 | 3820 | esac | 
 | 3821 |     CC=$ac_ct_CC | 
 | 3822 |   fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3823 | else | 
 | 3824 |   CC="$ac_cv_prog_CC" | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3825 | fi | 
 | 3826 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3827 | if test -z "$CC"; then | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3828 |           if test -n "$ac_tool_prefix"; then | 
 | 3829 |     # 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] | 3830 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3831 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 3832 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3833 | if ${ac_cv_prog_CC+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3834 |   $as_echo_n "(cached) " >&6 | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3835 | else | 
 | 3836 |   if test -n "$CC"; then | 
 | 3837 |   ac_cv_prog_CC="$CC" # Let the user override the test. | 
 | 3838 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3839 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 3840 | for as_dir in $PATH | 
 | 3841 | do | 
 | 3842 |   IFS=$as_save_IFS | 
 | 3843 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3844 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 3845 |   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] | 3846 |     ac_cv_prog_CC="${ac_tool_prefix}cc" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3847 |     $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] | 3848 |     break 2 | 
 | 3849 |   fi | 
 | 3850 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3851 |   done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3852 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3853 |  | 
 | 3854 | fi | 
 | 3855 | fi | 
 | 3856 | CC=$ac_cv_prog_CC | 
 | 3857 | if test -n "$CC"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3858 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
 | 3859 | $as_echo "$CC" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3860 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3861 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 3862 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3863 | fi | 
 | 3864 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3865 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3866 |   fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3867 | fi | 
 | 3868 | if test -z "$CC"; then | 
 | 3869 |   # Extract the first word of "cc", so it can be a program name with args. | 
 | 3870 | set dummy cc; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3871 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 3872 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3873 | if ${ac_cv_prog_CC+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3874 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3875 | else | 
 | 3876 |   if test -n "$CC"; then | 
 | 3877 |   ac_cv_prog_CC="$CC" # Let the user override the test. | 
 | 3878 | else | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3879 |   ac_prog_rejected=no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3880 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 3881 | for as_dir in $PATH | 
 | 3882 | do | 
 | 3883 |   IFS=$as_save_IFS | 
 | 3884 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3885 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 3886 |   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] | 3887 |     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | 
 | 3888 |        ac_prog_rejected=yes | 
 | 3889 |        continue | 
 | 3890 |      fi | 
 | 3891 |     ac_cv_prog_CC="cc" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3892 |     $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] | 3893 |     break 2 | 
 | 3894 |   fi | 
 | 3895 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3896 |   done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3897 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3898 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3899 | if test $ac_prog_rejected = yes; then | 
 | 3900 |   # We found a bogon in the path, so make sure we never use it. | 
 | 3901 |   set dummy $ac_cv_prog_CC | 
 | 3902 |   shift | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3903 |   if test $# != 0; then | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3904 |     # We chose a different compiler from the bogus one. | 
 | 3905 |     # However, it has the same basename, so the bogon will be chosen | 
 | 3906 |     # first if we set CC to just the basename; use the full file name. | 
 | 3907 |     shift | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3908 |     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3909 |   fi | 
 | 3910 | fi | 
 | 3911 | fi | 
 | 3912 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3913 | CC=$ac_cv_prog_CC | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3914 | if test -n "$CC"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3915 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
 | 3916 | $as_echo "$CC" >&6; } | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3917 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3918 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 3919 | $as_echo "no" >&6; } | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3920 | fi | 
 | 3921 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3922 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3923 | fi | 
 | 3924 | if test -z "$CC"; then | 
 | 3925 |   if test -n "$ac_tool_prefix"; then | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3926 |   for ac_prog in cl.exe | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3927 |   do | 
 | 3928 |     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
 | 3929 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3930 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 3931 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3932 | if ${ac_cv_prog_CC+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3933 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3934 | else | 
 | 3935 |   if test -n "$CC"; then | 
 | 3936 |   ac_cv_prog_CC="$CC" # Let the user override the test. | 
 | 3937 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3938 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 3939 | for as_dir in $PATH | 
 | 3940 | do | 
 | 3941 |   IFS=$as_save_IFS | 
 | 3942 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3943 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 3944 |   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] | 3945 |     ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3946 |     $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] | 3947 |     break 2 | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3948 |   fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3949 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3950 |   done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3951 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3952 |  | 
 | 3953 | fi | 
 | 3954 | fi | 
 | 3955 | CC=$ac_cv_prog_CC | 
 | 3956 | if test -n "$CC"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3957 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
 | 3958 | $as_echo "$CC" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3959 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3960 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 3961 | $as_echo "no" >&6; } | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3962 | fi | 
 | 3963 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3964 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3965 |     test -n "$CC" && break | 
 | 3966 |   done | 
 | 3967 | fi | 
 | 3968 | if test -z "$CC"; then | 
 | 3969 |   ac_ct_CC=$CC | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3970 |   for ac_prog in cl.exe | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3971 | do | 
 | 3972 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 3973 | set dummy $ac_prog; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3974 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 3975 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3976 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3977 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3978 | else | 
 | 3979 |   if test -n "$ac_ct_CC"; then | 
 | 3980 |   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | 
 | 3981 | else | 
 | 3982 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 3983 | for as_dir in $PATH | 
 | 3984 | do | 
 | 3985 |   IFS=$as_save_IFS | 
 | 3986 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3987 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 3988 |   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] | 3989 |     ac_cv_prog_ac_ct_CC="$ac_prog" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3990 |     $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] | 3991 |     break 2 | 
 | 3992 |   fi | 
 | 3993 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3994 |   done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3995 | IFS=$as_save_IFS | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3996 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3997 | fi | 
 | 3998 | fi | 
 | 3999 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | 
 | 4000 | if test -n "$ac_ct_CC"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4001 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | 
 | 4002 | $as_echo "$ac_ct_CC" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4003 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4004 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 4005 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4006 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4007 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4008 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4009 |   test -n "$ac_ct_CC" && break | 
 | 4010 | done | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4011 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4012 |   if test "x$ac_ct_CC" = x; then | 
 | 4013 |     CC="" | 
 | 4014 |   else | 
 | 4015 |     case $cross_compiling:$ac_tool_warned in | 
 | 4016 | yes:) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4017 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 4018 | $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] | 4019 | ac_tool_warned=yes ;; | 
 | 4020 | esac | 
 | 4021 |     CC=$ac_ct_CC | 
 | 4022 |   fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4023 | fi | 
 | 4024 |  | 
 | 4025 | fi | 
 | 4026 |  | 
 | 4027 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4028 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 4029 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 4030 | as_fn_error $? "no acceptable C compiler found in \$PATH | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4031 | See \`config.log' for more details" "$LINENO" 5; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4032 |  | 
 | 4033 | # Provide some information about the compiler. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4034 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | 
 | 4035 | set X $ac_compile | 
 | 4036 | ac_compiler=$2 | 
 | 4037 | for ac_option in --version -v -V -qversion; do | 
 | 4038 |   { { ac_try="$ac_compiler $ac_option >&5" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4039 | case "(($ac_try" in | 
 | 4040 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 4041 |   *) ac_try_echo=$ac_try;; | 
 | 4042 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4043 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 4044 | $as_echo "$ac_try_echo"; } >&5 | 
 | 4045 |   (eval "$ac_compiler $ac_option >&5") 2>conftest.err | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4046 |   ac_status=$? | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4047 |   if test -s conftest.err; then | 
 | 4048 |     sed '10a\ | 
 | 4049 | ... rest of stderr output deleted ... | 
 | 4050 |          10q' conftest.err >conftest.er1 | 
 | 4051 |     cat conftest.er1 >&5 | 
 | 4052 |   fi | 
 | 4053 |   rm -f conftest.er1 conftest.err | 
 | 4054 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 4055 |   test $ac_status = 0; } | 
 | 4056 | done | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4057 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4058 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4059 | /* end confdefs.h.  */ | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 4060 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4061 | int | 
 | 4062 | main () | 
 | 4063 | { | 
 | 4064 |  | 
 | 4065 |   ; | 
 | 4066 |   return 0; | 
 | 4067 | } | 
 | 4068 | _ACEOF | 
 | 4069 | ac_clean_files_save=$ac_clean_files | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4070 | 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] | 4071 | # Try to create an executable without -o first, disregard a.out. | 
 | 4072 | # It will help us diagnose broken compilers, and finding out an intuition | 
 | 4073 | # of exeext. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4074 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | 
 | 4075 | $as_echo_n "checking whether the C compiler works... " >&6; } | 
 | 4076 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | 
 | 4077 |  | 
 | 4078 | # The possible output files: | 
 | 4079 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | 
 | 4080 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4081 | ac_rmfiles= | 
 | 4082 | for ac_file in $ac_files | 
 | 4083 | do | 
 | 4084 |   case $ac_file in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4085 |     *.$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] | 4086 |     * ) ac_rmfiles="$ac_rmfiles $ac_file";; | 
 | 4087 |   esac | 
 | 4088 | done | 
 | 4089 | rm -f $ac_rmfiles | 
 | 4090 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4091 | if { { ac_try="$ac_link_default" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4092 | case "(($ac_try" in | 
 | 4093 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 4094 |   *) ac_try_echo=$ac_try;; | 
 | 4095 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4096 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 4097 | $as_echo "$ac_try_echo"; } >&5 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4098 |   (eval "$ac_link_default") 2>&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4099 |   ac_status=$? | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4100 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 4101 |   test $ac_status = 0; }; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4102 |   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | 
 | 4103 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | 
 | 4104 | # in a Makefile.  We should not override ac_cv_exeext if it was cached, | 
 | 4105 | # so that the user can short-circuit this test for compilers unknown to | 
 | 4106 | # Autoconf. | 
 | 4107 | for ac_file in $ac_files '' | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4108 | do | 
 | 4109 |   test -f "$ac_file" || continue | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4110 |   case $ac_file in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4111 |     *.$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] | 4112 | 	;; | 
 | 4113 |     [ab].out ) | 
 | 4114 | 	# We found the default executable, but exeext='' is most | 
 | 4115 | 	# certainly right. | 
 | 4116 | 	break;; | 
 | 4117 |     *.* ) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4118 | 	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4119 | 	then :; else | 
 | 4120 | 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | 
 | 4121 | 	fi | 
 | 4122 | 	# We set ac_cv_exeext here because the later test for it is not | 
 | 4123 | 	# safe: cross compilers may not add the suffix if given an `-o' | 
 | 4124 | 	# argument, so we may need to know it at that point already. | 
 | 4125 | 	# Even if this section looks crufty: it has the advantage of | 
 | 4126 | 	# actually working. | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4127 | 	break;; | 
 | 4128 |     * ) | 
 | 4129 | 	break;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4130 |   esac | 
 | 4131 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4132 | test "$ac_cv_exeext" = no && ac_cv_exeext= | 
 | 4133 |  | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4134 | else | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4135 |   ac_file='' | 
 | 4136 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4137 | if test -z "$ac_file"; then : | 
 | 4138 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 4139 | $as_echo "no" >&6; } | 
 | 4140 | $as_echo "$as_me: failed program was:" >&5 | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4141 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 4142 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4143 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 4144 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 4145 | as_fn_error 77 "C compiler cannot create executables | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4146 | See \`config.log' for more details" "$LINENO" 5; } | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4147 | else | 
 | 4148 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 4149 | $as_echo "yes" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4150 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4151 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | 
 | 4152 | $as_echo_n "checking for C compiler default output file name... " >&6; } | 
 | 4153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | 
 | 4154 | $as_echo "$ac_file" >&6; } | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4155 | ac_exeext=$ac_cv_exeext | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4156 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4157 | 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] | 4158 | ac_clean_files=$ac_clean_files_save | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4159 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | 
 | 4160 | $as_echo_n "checking for suffix of executables... " >&6; } | 
 | 4161 | if { { ac_try="$ac_link" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4162 | case "(($ac_try" in | 
 | 4163 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 4164 |   *) ac_try_echo=$ac_try;; | 
 | 4165 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4166 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 4167 | $as_echo "$ac_try_echo"; } >&5 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4168 |   (eval "$ac_link") 2>&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4169 |   ac_status=$? | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4170 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 4171 |   test $ac_status = 0; }; then : | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4172 |   # If both `conftest.exe' and `conftest' are `present' (well, observable) | 
 | 4173 | # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will | 
 | 4174 | # work properly (i.e., refer to `conftest.exe'), while it won't with | 
 | 4175 | # `rm'. | 
 | 4176 | for ac_file in conftest.exe conftest conftest.*; do | 
 | 4177 |   test -f "$ac_file" || continue | 
 | 4178 |   case $ac_file in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4179 |     *.$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] | 4180 |     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | 
 | 4181 | 	  break;; | 
 | 4182 |     * ) break;; | 
 | 4183 |   esac | 
 | 4184 | done | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4185 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4186 |   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 4187 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 4188 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4189 | See \`config.log' for more details" "$LINENO" 5; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4190 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4191 | rm -f conftest conftest$ac_cv_exeext | 
 | 4192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | 
 | 4193 | $as_echo "$ac_cv_exeext" >&6; } | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4194 |  | 
 | 4195 | rm -f conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4196 | EXEEXT=$ac_cv_exeext | 
 | 4197 | ac_exeext=$EXEEXT | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4198 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 4199 | /* end confdefs.h.  */ | 
 | 4200 | #include <stdio.h> | 
 | 4201 | int | 
 | 4202 | main () | 
 | 4203 | { | 
 | 4204 | FILE *f = fopen ("conftest.out", "w"); | 
 | 4205 |  return ferror (f) || fclose (f) != 0; | 
 | 4206 |  | 
 | 4207 |   ; | 
 | 4208 |   return 0; | 
 | 4209 | } | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4210 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4211 | ac_clean_files="$ac_clean_files conftest.out" | 
 | 4212 | # Check that the compiler produces executables we can run.  If not, either | 
 | 4213 | # the compiler is broken, or we cross compile. | 
 | 4214 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | 
 | 4215 | $as_echo_n "checking whether we are cross compiling... " >&6; } | 
 | 4216 | if test "$cross_compiling" != yes; then | 
 | 4217 |   { { ac_try="$ac_link" | 
 | 4218 | case "(($ac_try" in | 
 | 4219 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 4220 |   *) ac_try_echo=$ac_try;; | 
 | 4221 | esac | 
 | 4222 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 4223 | $as_echo "$ac_try_echo"; } >&5 | 
 | 4224 |   (eval "$ac_link") 2>&5 | 
 | 4225 |   ac_status=$? | 
 | 4226 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 4227 |   test $ac_status = 0; } | 
 | 4228 |   if { ac_try='./conftest$ac_cv_exeext' | 
 | 4229 |   { { case "(($ac_try" in | 
 | 4230 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 4231 |   *) ac_try_echo=$ac_try;; | 
 | 4232 | esac | 
 | 4233 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 4234 | $as_echo "$ac_try_echo"; } >&5 | 
 | 4235 |   (eval "$ac_try") 2>&5 | 
 | 4236 |   ac_status=$? | 
 | 4237 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 4238 |   test $ac_status = 0; }; }; then | 
 | 4239 |     cross_compiling=no | 
 | 4240 |   else | 
 | 4241 |     if test "$cross_compiling" = maybe; then | 
 | 4242 | 	cross_compiling=yes | 
 | 4243 |     else | 
 | 4244 | 	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 4245 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 4246 | as_fn_error $? "cannot run C compiled programs. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4247 | If you meant to cross compile, use \`--host'. | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4248 | See \`config.log' for more details" "$LINENO" 5; } | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4249 |     fi | 
 | 4250 |   fi | 
 | 4251 | fi | 
 | 4252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | 
 | 4253 | $as_echo "$cross_compiling" >&6; } | 
 | 4254 |  | 
 | 4255 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | 
 | 4256 | ac_clean_files=$ac_clean_files_save | 
 | 4257 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | 
 | 4258 | $as_echo_n "checking for suffix of object files... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4259 | if ${ac_cv_objext+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4260 |   $as_echo_n "(cached) " >&6 | 
 | 4261 | else | 
 | 4262 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4263 | /* end confdefs.h.  */ | 
 | 4264 |  | 
 | 4265 | int | 
 | 4266 | main () | 
 | 4267 | { | 
 | 4268 |  | 
 | 4269 |   ; | 
 | 4270 |   return 0; | 
 | 4271 | } | 
 | 4272 | _ACEOF | 
 | 4273 | rm -f conftest.o conftest.obj | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4274 | if { { ac_try="$ac_compile" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4275 | case "(($ac_try" in | 
 | 4276 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 4277 |   *) ac_try_echo=$ac_try;; | 
 | 4278 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4279 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 4280 | $as_echo "$ac_try_echo"; } >&5 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4281 |   (eval "$ac_compile") 2>&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4282 |   ac_status=$? | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4283 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 4284 |   test $ac_status = 0; }; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4285 |   for ac_file in conftest.o conftest.obj conftest.*; do | 
 | 4286 |   test -f "$ac_file" || continue; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4287 |   case $ac_file in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4288 |     *.$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] | 4289 |     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | 
 | 4290 |        break;; | 
 | 4291 |   esac | 
 | 4292 | done | 
 | 4293 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4294 |   $as_echo "$as_me: failed program was:" >&5 | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4295 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 4296 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4297 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 4298 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 4299 | as_fn_error $? "cannot compute suffix of object files: cannot compile | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4300 | See \`config.log' for more details" "$LINENO" 5; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4301 | fi | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4302 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4303 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | 
 | 4305 | $as_echo "$ac_cv_objext" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4306 | OBJEXT=$ac_cv_objext | 
 | 4307 | ac_objext=$OBJEXT | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4308 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | 
 | 4309 | $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] | 4310 | if ${ac_cv_c_compiler_gnu+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4311 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4312 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4313 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4314 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4315 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4316 | int | 
 | 4317 | main () | 
 | 4318 | { | 
 | 4319 | #ifndef __GNUC__ | 
 | 4320 |        choke me | 
 | 4321 | #endif | 
 | 4322 |  | 
 | 4323 |   ; | 
 | 4324 |   return 0; | 
 | 4325 | } | 
 | 4326 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4327 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4328 |   ac_compiler_gnu=yes | 
 | 4329 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4330 |   ac_compiler_gnu=no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4331 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4332 | 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] | 4333 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | 
 | 4334 |  | 
 | 4335 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | 
 | 4337 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | 
 | 4338 | if test $ac_compiler_gnu = yes; then | 
 | 4339 |   GCC=yes | 
 | 4340 | else | 
 | 4341 |   GCC= | 
 | 4342 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4343 | ac_test_CFLAGS=${CFLAGS+set} | 
 | 4344 | ac_save_CFLAGS=$CFLAGS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4345 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | 
 | 4346 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4347 | if ${ac_cv_prog_cc_g+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4348 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4349 | else | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4350 |   ac_save_c_werror_flag=$ac_c_werror_flag | 
 | 4351 |    ac_c_werror_flag=yes | 
 | 4352 |    ac_cv_prog_cc_g=no | 
 | 4353 |    CFLAGS="-g" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4354 |    cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4355 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4356 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4357 | int | 
 | 4358 | main () | 
 | 4359 | { | 
 | 4360 |  | 
 | 4361 |   ; | 
 | 4362 |   return 0; | 
 | 4363 | } | 
 | 4364 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4365 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4366 |   ac_cv_prog_cc_g=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4367 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4368 |   CFLAGS="" | 
 | 4369 |       cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4370 | /* end confdefs.h.  */ | 
 | 4371 |  | 
 | 4372 | int | 
 | 4373 | main () | 
 | 4374 | { | 
 | 4375 |  | 
 | 4376 |   ; | 
 | 4377 |   return 0; | 
 | 4378 | } | 
 | 4379 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4380 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4381 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4382 | else | 
 | 4383 |   ac_c_werror_flag=$ac_save_c_werror_flag | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4384 | 	 CFLAGS="-g" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4385 | 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4386 | /* end confdefs.h.  */ | 
 | 4387 |  | 
 | 4388 | int | 
 | 4389 | main () | 
 | 4390 | { | 
 | 4391 |  | 
 | 4392 |   ; | 
 | 4393 |   return 0; | 
 | 4394 | } | 
 | 4395 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4396 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4397 |   ac_cv_prog_cc_g=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4398 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4399 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4400 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4401 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 4402 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4403 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 4404 |    ac_c_werror_flag=$ac_save_c_werror_flag | 
 | 4405 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4406 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | 
 | 4407 | $as_echo "$ac_cv_prog_cc_g" >&6; } | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4408 | if test "$ac_test_CFLAGS" = set; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4409 |   CFLAGS=$ac_save_CFLAGS | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4410 | elif test $ac_cv_prog_cc_g = yes; then | 
 | 4411 |   if test "$GCC" = yes; then | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4412 |     CFLAGS="-g -O2" | 
 | 4413 |   else | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4414 |     CFLAGS="-g" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4415 |   fi | 
 | 4416 | else | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4417 |   if test "$GCC" = yes; then | 
 | 4418 |     CFLAGS="-O2" | 
 | 4419 |   else | 
 | 4420 |     CFLAGS= | 
 | 4421 |   fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4422 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4423 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | 
 | 4424 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4425 | if ${ac_cv_prog_cc_c89+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4426 |   $as_echo_n "(cached) " >&6 | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4427 | else | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4428 |   ac_cv_prog_cc_c89=no | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4429 | ac_save_CC=$CC | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4430 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4431 | /* end confdefs.h.  */ | 
 | 4432 | #include <stdarg.h> | 
 | 4433 | #include <stdio.h> | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 4434 | struct stat; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4435 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */ | 
 | 4436 | struct buf { int x; }; | 
 | 4437 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | 
 | 4438 | static char *e (p, i) | 
 | 4439 |      char **p; | 
 | 4440 |      int i; | 
 | 4441 | { | 
 | 4442 |   return p[i]; | 
 | 4443 | } | 
 | 4444 | static char *f (char * (*g) (char **, int), char **p, ...) | 
 | 4445 | { | 
 | 4446 |   char *s; | 
 | 4447 |   va_list v; | 
 | 4448 |   va_start (v,p); | 
 | 4449 |   s = g (p, va_arg (v,int)); | 
 | 4450 |   va_end (v); | 
 | 4451 |   return s; | 
 | 4452 | } | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4453 |  | 
 | 4454 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has | 
 | 4455 |    function prototypes and stuff, but not '\xHH' hex character constants. | 
 | 4456 |    These don't provoke an error unfortunately, instead are silently treated | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4457 |    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] | 4458 |    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an | 
 | 4459 |    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] | 4460 |    that's true only with -std.  */ | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4461 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | 
 | 4462 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4463 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | 
 | 4464 |    inside strings and character constants.  */ | 
 | 4465 | #define FOO(x) 'x' | 
 | 4466 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | 
 | 4467 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4468 | int test (int i, double x); | 
 | 4469 | struct s1 {int (*f) (int a);}; | 
 | 4470 | struct s2 {int (*f) (double a);}; | 
 | 4471 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | 
 | 4472 | int argc; | 
 | 4473 | char **argv; | 
 | 4474 | int | 
 | 4475 | main () | 
 | 4476 | { | 
 | 4477 | return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1]; | 
 | 4478 |   ; | 
 | 4479 |   return 0; | 
 | 4480 | } | 
 | 4481 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4482 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | 
 | 4483 | 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4484 | do | 
 | 4485 |   CC="$ac_save_CC $ac_arg" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4486 |   if ac_fn_c_try_compile "$LINENO"; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4487 |   ac_cv_prog_cc_c89=$ac_arg | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4488 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4489 | rm -f core conftest.err conftest.$ac_objext | 
 | 4490 |   test "x$ac_cv_prog_cc_c89" != "xno" && break | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4491 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4492 | rm -f conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4493 | CC=$ac_save_CC | 
 | 4494 |  | 
 | 4495 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4496 | # AC_CACHE_VAL | 
 | 4497 | case "x$ac_cv_prog_cc_c89" in | 
 | 4498 |   x) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4499 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | 
 | 4500 | $as_echo "none needed" >&6; } ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4501 |   xno) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4502 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | 
 | 4503 | $as_echo "unsupported" >&6; } ;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4504 |   *) | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4505 |     CC="$CC $ac_cv_prog_cc_c89" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4506 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | 
 | 4507 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4508 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4509 | if test "x$ac_cv_prog_cc_c89" != xno; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4510 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4511 | fi | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4512 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4513 | ac_ext=c | 
 | 4514 | ac_cpp='$CPP $CPPFLAGS' | 
 | 4515 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 4516 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 4517 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4518 |  | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 4519 | ac_ext=c | 
 | 4520 | ac_cpp='$CPP $CPPFLAGS' | 
 | 4521 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 4522 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 4523 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 4524 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | 
 | 4525 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | 
 | 4526 | # On Suns, sometimes $CPP names a directory. | 
 | 4527 | if test -n "$CPP" && test -d "$CPP"; then | 
 | 4528 |   CPP= | 
 | 4529 | fi | 
 | 4530 | if test -z "$CPP"; then | 
 | 4531 |   if ${ac_cv_prog_CPP+:} false; then : | 
 | 4532 |   $as_echo_n "(cached) " >&6 | 
 | 4533 | else | 
 | 4534 |       # Double quotes because CPP needs to be expanded | 
 | 4535 |     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | 
 | 4536 |     do | 
 | 4537 |       ac_preproc_ok=false | 
 | 4538 | for ac_c_preproc_warn_flag in '' yes | 
 | 4539 | do | 
 | 4540 |   # Use a header file that comes with gcc, so configuring glibc | 
 | 4541 |   # with a fresh cross-compiler works. | 
 | 4542 |   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 4543 |   # <limits.h> exists even on freestanding compilers. | 
 | 4544 |   # On the NeXT, cc -E runs the code through the compiler's parser, | 
 | 4545 |   # not just through cpp. "Syntax error" is here to catch this case. | 
 | 4546 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 4547 | /* end confdefs.h.  */ | 
 | 4548 | #ifdef __STDC__ | 
 | 4549 | # include <limits.h> | 
 | 4550 | #else | 
 | 4551 | # include <assert.h> | 
 | 4552 | #endif | 
 | 4553 | 		     Syntax error | 
 | 4554 | _ACEOF | 
 | 4555 | if ac_fn_c_try_cpp "$LINENO"; then : | 
 | 4556 |  | 
 | 4557 | else | 
 | 4558 |   # Broken: fails on valid input. | 
 | 4559 | continue | 
 | 4560 | fi | 
 | 4561 | rm -f conftest.err conftest.i conftest.$ac_ext | 
 | 4562 |  | 
 | 4563 |   # OK, works on sane cases.  Now check whether nonexistent headers | 
 | 4564 |   # can be detected and how. | 
 | 4565 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 4566 | /* end confdefs.h.  */ | 
 | 4567 | #include <ac_nonexistent.h> | 
 | 4568 | _ACEOF | 
 | 4569 | if ac_fn_c_try_cpp "$LINENO"; then : | 
 | 4570 |   # Broken: success on invalid input. | 
 | 4571 | continue | 
 | 4572 | else | 
 | 4573 |   # Passes both tests. | 
 | 4574 | ac_preproc_ok=: | 
 | 4575 | break | 
 | 4576 | fi | 
 | 4577 | rm -f conftest.err conftest.i conftest.$ac_ext | 
 | 4578 |  | 
 | 4579 | done | 
 | 4580 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 
 | 4581 | rm -f conftest.i conftest.err conftest.$ac_ext | 
 | 4582 | if $ac_preproc_ok; then : | 
 | 4583 |   break | 
 | 4584 | fi | 
 | 4585 |  | 
 | 4586 |     done | 
 | 4587 |     ac_cv_prog_CPP=$CPP | 
 | 4588 |  | 
 | 4589 | fi | 
 | 4590 |   CPP=$ac_cv_prog_CPP | 
 | 4591 | else | 
 | 4592 |   ac_cv_prog_CPP=$CPP | 
 | 4593 | fi | 
 | 4594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | 
 | 4595 | $as_echo "$CPP" >&6; } | 
 | 4596 | ac_preproc_ok=false | 
 | 4597 | for ac_c_preproc_warn_flag in '' yes | 
 | 4598 | do | 
 | 4599 |   # Use a header file that comes with gcc, so configuring glibc | 
 | 4600 |   # with a fresh cross-compiler works. | 
 | 4601 |   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 4602 |   # <limits.h> exists even on freestanding compilers. | 
 | 4603 |   # On the NeXT, cc -E runs the code through the compiler's parser, | 
 | 4604 |   # not just through cpp. "Syntax error" is here to catch this case. | 
 | 4605 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 4606 | /* end confdefs.h.  */ | 
 | 4607 | #ifdef __STDC__ | 
 | 4608 | # include <limits.h> | 
 | 4609 | #else | 
 | 4610 | # include <assert.h> | 
 | 4611 | #endif | 
 | 4612 | 		     Syntax error | 
 | 4613 | _ACEOF | 
 | 4614 | if ac_fn_c_try_cpp "$LINENO"; then : | 
 | 4615 |  | 
 | 4616 | else | 
 | 4617 |   # Broken: fails on valid input. | 
 | 4618 | continue | 
 | 4619 | fi | 
 | 4620 | rm -f conftest.err conftest.i conftest.$ac_ext | 
 | 4621 |  | 
 | 4622 |   # OK, works on sane cases.  Now check whether nonexistent headers | 
 | 4623 |   # can be detected and how. | 
 | 4624 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 4625 | /* end confdefs.h.  */ | 
 | 4626 | #include <ac_nonexistent.h> | 
 | 4627 | _ACEOF | 
 | 4628 | if ac_fn_c_try_cpp "$LINENO"; then : | 
 | 4629 |   # Broken: success on invalid input. | 
 | 4630 | continue | 
 | 4631 | else | 
 | 4632 |   # Passes both tests. | 
 | 4633 | ac_preproc_ok=: | 
 | 4634 | break | 
 | 4635 | fi | 
 | 4636 | rm -f conftest.err conftest.i conftest.$ac_ext | 
 | 4637 |  | 
 | 4638 | done | 
 | 4639 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 
 | 4640 | rm -f conftest.i conftest.err conftest.$ac_ext | 
 | 4641 | if $ac_preproc_ok; then : | 
 | 4642 |  | 
 | 4643 | else | 
 | 4644 |   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 4645 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
 | 4646 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | 
 | 4647 | See \`config.log' for more details" "$LINENO" 5; } | 
 | 4648 | fi | 
 | 4649 |  | 
 | 4650 | ac_ext=c | 
 | 4651 | ac_cpp='$CPP $CPPFLAGS' | 
 | 4652 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 4653 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 4654 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 4655 |  | 
 | 4656 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | 
 | 4657 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | 
 | 4658 | if ${ac_cv_path_GREP+:} false; then : | 
 | 4659 |   $as_echo_n "(cached) " >&6 | 
 | 4660 | else | 
 | 4661 |   if test -z "$GREP"; then | 
 | 4662 |   ac_path_GREP_found=false | 
 | 4663 |   # Loop through the user's path and test for each of PROGNAME-LIST | 
 | 4664 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4665 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | 
 | 4666 | do | 
 | 4667 |   IFS=$as_save_IFS | 
 | 4668 |   test -z "$as_dir" && as_dir=. | 
 | 4669 |     for ac_prog in grep ggrep; do | 
 | 4670 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 4671 |       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | 
 | 4672 |       as_fn_executable_p "$ac_path_GREP" || continue | 
 | 4673 | # Check for GNU ac_path_GREP and select it if it is found. | 
 | 4674 |   # Check for GNU $ac_path_GREP | 
 | 4675 | case `"$ac_path_GREP" --version 2>&1` in | 
 | 4676 | *GNU*) | 
 | 4677 |   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | 
 | 4678 | *) | 
 | 4679 |   ac_count=0 | 
 | 4680 |   $as_echo_n 0123456789 >"conftest.in" | 
 | 4681 |   while : | 
 | 4682 |   do | 
 | 4683 |     cat "conftest.in" "conftest.in" >"conftest.tmp" | 
 | 4684 |     mv "conftest.tmp" "conftest.in" | 
 | 4685 |     cp "conftest.in" "conftest.nl" | 
 | 4686 |     $as_echo 'GREP' >> "conftest.nl" | 
 | 4687 |     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | 
 | 4688 |     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | 
 | 4689 |     as_fn_arith $ac_count + 1 && ac_count=$as_val | 
 | 4690 |     if test $ac_count -gt ${ac_path_GREP_max-0}; then | 
 | 4691 |       # Best one so far, save it but keep looking for a better one | 
 | 4692 |       ac_cv_path_GREP="$ac_path_GREP" | 
 | 4693 |       ac_path_GREP_max=$ac_count | 
 | 4694 |     fi | 
 | 4695 |     # 10*(2^10) chars as input seems more than enough | 
 | 4696 |     test $ac_count -gt 10 && break | 
 | 4697 |   done | 
 | 4698 |   rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | 
 | 4699 | esac | 
 | 4700 |  | 
 | 4701 |       $ac_path_GREP_found && break 3 | 
 | 4702 |     done | 
 | 4703 |   done | 
 | 4704 |   done | 
 | 4705 | IFS=$as_save_IFS | 
 | 4706 |   if test -z "$ac_cv_path_GREP"; then | 
 | 4707 |     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | 
 | 4708 |   fi | 
 | 4709 | else | 
 | 4710 |   ac_cv_path_GREP=$GREP | 
 | 4711 | fi | 
 | 4712 |  | 
 | 4713 | fi | 
 | 4714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | 
 | 4715 | $as_echo "$ac_cv_path_GREP" >&6; } | 
 | 4716 |  GREP="$ac_cv_path_GREP" | 
 | 4717 |  | 
 | 4718 |  | 
| Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 4719 |  | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4720 |  | 
 | 4721 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4722 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-cxx-main=<compiler>" >&5 | 
 | 4723 | $as_echo_n "checking for --with-cxx-main=<compiler>... " >&6; } | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4724 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4725 | # Check whether --with-cxx_main was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4726 | if test "${with_cxx_main+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4727 |   withval=$with_cxx_main; | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4728 |  | 
 | 4729 | 	case $withval in | 
 | 4730 | 	no)	with_cxx_main=no | 
 | 4731 | 		MAINCC='$(CC)';; | 
 | 4732 | 	yes)	with_cxx_main=yes | 
 | 4733 | 		MAINCC='$(CXX)';; | 
 | 4734 | 	*)	with_cxx_main=yes | 
 | 4735 | 		MAINCC=$withval | 
 | 4736 | 		if test -z "$CXX" | 
 | 4737 | 		then | 
 | 4738 | 			CXX=$withval | 
 | 4739 | 		fi;; | 
 | 4740 | 	esac | 
 | 4741 | else | 
 | 4742 |  | 
 | 4743 | 	with_cxx_main=no | 
 | 4744 | 	MAINCC='$(CC)' | 
 | 4745 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4746 | fi | 
 | 4747 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_cxx_main" >&5 | 
 | 4749 | $as_echo "$with_cxx_main" >&6; } | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4750 |  | 
 | 4751 | preset_cxx="$CXX" | 
 | 4752 | if test -z "$CXX" | 
 | 4753 | then | 
 | 4754 |         case "$CC" in | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4755 |         gcc)    if test -n "$ac_tool_prefix"; then | 
 | 4756 |   # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args. | 
 | 4757 | set dummy ${ac_tool_prefix}g++; ac_word=$2 | 
 | 4758 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 4759 | $as_echo_n "checking for $ac_word... " >&6; } | 
 | 4760 | if ${ac_cv_path_CXX+:} false; then : | 
 | 4761 |   $as_echo_n "(cached) " >&6 | 
 | 4762 | else | 
 | 4763 |   case $CXX in | 
 | 4764 |   [\\/]* | ?:[\\/]*) | 
 | 4765 |   ac_cv_path_CXX="$CXX" # Let the user override the test with a path. | 
 | 4766 |   ;; | 
 | 4767 |   *) | 
 | 4768 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4769 | for as_dir in notfound | 
 | 4770 | do | 
 | 4771 |   IFS=$as_save_IFS | 
 | 4772 |   test -z "$as_dir" && as_dir=. | 
 | 4773 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 4774 |   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] | 4775 |     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" | 
 | 4776 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 4777 |     break 2 | 
 | 4778 |   fi | 
 | 4779 | done | 
 | 4780 |   done | 
 | 4781 | IFS=$as_save_IFS | 
 | 4782 |  | 
 | 4783 |   ;; | 
 | 4784 | esac | 
 | 4785 | fi | 
 | 4786 | CXX=$ac_cv_path_CXX | 
 | 4787 | if test -n "$CXX"; then | 
 | 4788 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | 
 | 4789 | $as_echo "$CXX" >&6; } | 
 | 4790 | else | 
 | 4791 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 4792 | $as_echo "no" >&6; } | 
 | 4793 | fi | 
 | 4794 |  | 
 | 4795 |  | 
 | 4796 | fi | 
 | 4797 | if test -z "$ac_cv_path_CXX"; then | 
 | 4798 |   ac_pt_CXX=$CXX | 
 | 4799 |   # 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] | 4800 | set dummy g++; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4801 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 4802 | $as_echo_n "checking for $ac_word... " >&6; } | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4803 | if ${ac_cv_path_ac_pt_CXX+:} false; then : | 
 | 4804 |   $as_echo_n "(cached) " >&6 | 
 | 4805 | else | 
 | 4806 |   case $ac_pt_CXX in | 
 | 4807 |   [\\/]* | ?:[\\/]*) | 
 | 4808 |   ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. | 
 | 4809 |   ;; | 
 | 4810 |   *) | 
 | 4811 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4812 | for as_dir in notfound | 
 | 4813 | do | 
 | 4814 |   IFS=$as_save_IFS | 
 | 4815 |   test -z "$as_dir" && as_dir=. | 
 | 4816 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 4817 |   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] | 4818 |     ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext" | 
 | 4819 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 4820 |     break 2 | 
 | 4821 |   fi | 
 | 4822 | done | 
 | 4823 |   done | 
 | 4824 | IFS=$as_save_IFS | 
 | 4825 |  | 
 | 4826 |   ;; | 
 | 4827 | esac | 
 | 4828 | fi | 
 | 4829 | ac_pt_CXX=$ac_cv_path_ac_pt_CXX | 
 | 4830 | if test -n "$ac_pt_CXX"; then | 
 | 4831 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 | 
 | 4832 | $as_echo "$ac_pt_CXX" >&6; } | 
 | 4833 | else | 
 | 4834 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 4835 | $as_echo "no" >&6; } | 
 | 4836 | fi | 
 | 4837 |  | 
 | 4838 |   if test "x$ac_pt_CXX" = x; then | 
 | 4839 |     CXX="g++" | 
 | 4840 |   else | 
 | 4841 |     case $cross_compiling:$ac_tool_warned in | 
 | 4842 | yes:) | 
 | 4843 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 4844 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
 | 4845 | ac_tool_warned=yes ;; | 
 | 4846 | esac | 
 | 4847 |     CXX=$ac_pt_CXX | 
 | 4848 |   fi | 
 | 4849 | else | 
 | 4850 |   CXX="$ac_cv_path_CXX" | 
 | 4851 | fi | 
 | 4852 |  ;; | 
 | 4853 |         cc)     if test -n "$ac_tool_prefix"; then | 
 | 4854 |   # Extract the first word of "${ac_tool_prefix}c++", so it can be a program name with args. | 
 | 4855 | set dummy ${ac_tool_prefix}c++; ac_word=$2 | 
 | 4856 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 4857 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4858 | if ${ac_cv_path_CXX+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4859 |   $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4860 | else | 
 | 4861 |   case $CXX in | 
 | 4862 |   [\\/]* | ?:[\\/]*) | 
 | 4863 |   ac_cv_path_CXX="$CXX" # Let the user override the test with a path. | 
 | 4864 |   ;; | 
 | 4865 |   *) | 
 | 4866 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4867 | for as_dir in notfound | 
 | 4868 | do | 
 | 4869 |   IFS=$as_save_IFS | 
 | 4870 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4871 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 4872 |   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] | 4873 |     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4874 |     $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] | 4875 |     break 2 | 
 | 4876 |   fi | 
 | 4877 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4878 |   done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4879 | IFS=$as_save_IFS | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4880 |  | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4881 |   ;; | 
 | 4882 | esac | 
 | 4883 | fi | 
 | 4884 | CXX=$ac_cv_path_CXX | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4885 | if test -n "$CXX"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4886 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | 
 | 4887 | $as_echo "$CXX" >&6; } | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4888 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4889 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 4890 | $as_echo "no" >&6; } | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4891 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4892 |  | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4893 |  | 
 | 4894 | fi | 
 | 4895 | if test -z "$ac_cv_path_CXX"; then | 
 | 4896 |   ac_pt_CXX=$CXX | 
 | 4897 |   # 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] | 4898 | set dummy c++; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4899 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 4900 | $as_echo_n "checking for $ac_word... " >&6; } | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4901 | if ${ac_cv_path_ac_pt_CXX+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4902 |   $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4903 | else | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4904 |   case $ac_pt_CXX in | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4905 |   [\\/]* | ?:[\\/]*) | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4906 |   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] | 4907 |   ;; | 
 | 4908 |   *) | 
 | 4909 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4910 | for as_dir in notfound | 
 | 4911 | do | 
 | 4912 |   IFS=$as_save_IFS | 
 | 4913 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4914 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 4915 |   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] | 4916 |     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] | 4917 |     $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] | 4918 |     break 2 | 
 | 4919 |   fi | 
 | 4920 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4921 |   done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4922 | IFS=$as_save_IFS | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4923 |  | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4924 |   ;; | 
 | 4925 | esac | 
 | 4926 | fi | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4927 | ac_pt_CXX=$ac_cv_path_ac_pt_CXX | 
 | 4928 | if test -n "$ac_pt_CXX"; then | 
 | 4929 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 | 
 | 4930 | $as_echo "$ac_pt_CXX" >&6; } | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4931 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4932 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 4933 | $as_echo "no" >&6; } | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4934 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4935 |  | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4936 |   if test "x$ac_pt_CXX" = x; then | 
 | 4937 |     CXX="c++" | 
 | 4938 |   else | 
 | 4939 |     case $cross_compiling:$ac_tool_warned in | 
 | 4940 | yes:) | 
 | 4941 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 4942 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
 | 4943 | ac_tool_warned=yes ;; | 
 | 4944 | esac | 
 | 4945 |     CXX=$ac_pt_CXX | 
 | 4946 |   fi | 
 | 4947 | else | 
 | 4948 |   CXX="$ac_cv_path_CXX" | 
 | 4949 | fi | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4950 |  ;; | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4951 |         clang|*/clang)     if test -n "$ac_tool_prefix"; then | 
 | 4952 |   # Extract the first word of "${ac_tool_prefix}clang++", so it can be a program name with args. | 
 | 4953 | set dummy ${ac_tool_prefix}clang++; ac_word=$2 | 
| Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 4954 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 4955 | $as_echo_n "checking for $ac_word... " >&6; } | 
 | 4956 | if ${ac_cv_path_CXX+:} false; then : | 
 | 4957 |   $as_echo_n "(cached) " >&6 | 
 | 4958 | else | 
 | 4959 |   case $CXX in | 
 | 4960 |   [\\/]* | ?:[\\/]*) | 
 | 4961 |   ac_cv_path_CXX="$CXX" # Let the user override the test with a path. | 
 | 4962 |   ;; | 
 | 4963 |   *) | 
 | 4964 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4965 | for as_dir in notfound | 
 | 4966 | do | 
 | 4967 |   IFS=$as_save_IFS | 
 | 4968 |   test -z "$as_dir" && as_dir=. | 
 | 4969 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 4970 |   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] | 4971 |     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" | 
 | 4972 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 4973 |     break 2 | 
 | 4974 |   fi | 
 | 4975 | done | 
 | 4976 |   done | 
 | 4977 | IFS=$as_save_IFS | 
 | 4978 |  | 
| Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 4979 |   ;; | 
 | 4980 | esac | 
 | 4981 | fi | 
 | 4982 | CXX=$ac_cv_path_CXX | 
 | 4983 | if test -n "$CXX"; then | 
 | 4984 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | 
 | 4985 | $as_echo "$CXX" >&6; } | 
 | 4986 | else | 
 | 4987 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 4988 | $as_echo "no" >&6; } | 
 | 4989 | fi | 
 | 4990 |  | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4991 |  | 
 | 4992 | fi | 
 | 4993 | if test -z "$ac_cv_path_CXX"; then | 
 | 4994 |   ac_pt_CXX=$CXX | 
 | 4995 |   # Extract the first word of "clang++", so it can be a program name with args. | 
 | 4996 | set dummy clang++; ac_word=$2 | 
 | 4997 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 4998 | $as_echo_n "checking for $ac_word... " >&6; } | 
 | 4999 | if ${ac_cv_path_ac_pt_CXX+:} false; then : | 
 | 5000 |   $as_echo_n "(cached) " >&6 | 
 | 5001 | else | 
 | 5002 |   case $ac_pt_CXX in | 
 | 5003 |   [\\/]* | ?:[\\/]*) | 
 | 5004 |   ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. | 
 | 5005 |   ;; | 
 | 5006 |   *) | 
 | 5007 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5008 | for as_dir in notfound | 
 | 5009 | do | 
 | 5010 |   IFS=$as_save_IFS | 
 | 5011 |   test -z "$as_dir" && as_dir=. | 
 | 5012 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 5013 |   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] | 5014 |     ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext" | 
 | 5015 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 5016 |     break 2 | 
 | 5017 |   fi | 
 | 5018 | done | 
 | 5019 |   done | 
 | 5020 | IFS=$as_save_IFS | 
 | 5021 |  | 
 | 5022 |   ;; | 
 | 5023 | esac | 
 | 5024 | fi | 
 | 5025 | ac_pt_CXX=$ac_cv_path_ac_pt_CXX | 
 | 5026 | if test -n "$ac_pt_CXX"; then | 
 | 5027 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 | 
 | 5028 | $as_echo "$ac_pt_CXX" >&6; } | 
 | 5029 | else | 
 | 5030 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 5031 | $as_echo "no" >&6; } | 
 | 5032 | fi | 
 | 5033 |  | 
 | 5034 |   if test "x$ac_pt_CXX" = x; then | 
 | 5035 |     CXX="clang++" | 
 | 5036 |   else | 
 | 5037 |     case $cross_compiling:$ac_tool_warned in | 
 | 5038 | yes:) | 
 | 5039 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 5040 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
 | 5041 | ac_tool_warned=yes ;; | 
 | 5042 | esac | 
 | 5043 |     CXX=$ac_pt_CXX | 
 | 5044 |   fi | 
 | 5045 | else | 
 | 5046 |   CXX="$ac_cv_path_CXX" | 
 | 5047 | fi | 
| Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 5048 |  ;; | 
| Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 5049 |         icc|*/icc)         if test -n "$ac_tool_prefix"; then | 
 | 5050 |   # Extract the first word of "${ac_tool_prefix}icpc", so it can be a program name with args. | 
 | 5051 | set dummy ${ac_tool_prefix}icpc; ac_word=$2 | 
 | 5052 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 5053 | $as_echo_n "checking for $ac_word... " >&6; } | 
 | 5054 | if ${ac_cv_path_CXX+:} false; then : | 
 | 5055 |   $as_echo_n "(cached) " >&6 | 
 | 5056 | else | 
 | 5057 |   case $CXX in | 
 | 5058 |   [\\/]* | ?:[\\/]*) | 
 | 5059 |   ac_cv_path_CXX="$CXX" # Let the user override the test with a path. | 
 | 5060 |   ;; | 
 | 5061 |   *) | 
 | 5062 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5063 | for as_dir in notfound | 
 | 5064 | do | 
 | 5065 |   IFS=$as_save_IFS | 
 | 5066 |   test -z "$as_dir" && as_dir=. | 
 | 5067 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 5068 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 5069 |     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" | 
 | 5070 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 5071 |     break 2 | 
 | 5072 |   fi | 
 | 5073 | done | 
 | 5074 |   done | 
 | 5075 | IFS=$as_save_IFS | 
 | 5076 |  | 
 | 5077 |   ;; | 
 | 5078 | esac | 
 | 5079 | fi | 
 | 5080 | CXX=$ac_cv_path_CXX | 
 | 5081 | if test -n "$CXX"; then | 
 | 5082 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | 
 | 5083 | $as_echo "$CXX" >&6; } | 
 | 5084 | else | 
 | 5085 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 5086 | $as_echo "no" >&6; } | 
 | 5087 | fi | 
 | 5088 |  | 
 | 5089 |  | 
 | 5090 | fi | 
 | 5091 | if test -z "$ac_cv_path_CXX"; then | 
 | 5092 |   ac_pt_CXX=$CXX | 
 | 5093 |   # Extract the first word of "icpc", so it can be a program name with args. | 
 | 5094 | set dummy icpc; ac_word=$2 | 
 | 5095 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 5096 | $as_echo_n "checking for $ac_word... " >&6; } | 
 | 5097 | if ${ac_cv_path_ac_pt_CXX+:} false; then : | 
 | 5098 |   $as_echo_n "(cached) " >&6 | 
 | 5099 | else | 
 | 5100 |   case $ac_pt_CXX in | 
 | 5101 |   [\\/]* | ?:[\\/]*) | 
 | 5102 |   ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. | 
 | 5103 |   ;; | 
 | 5104 |   *) | 
 | 5105 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5106 | for as_dir in notfound | 
 | 5107 | do | 
 | 5108 |   IFS=$as_save_IFS | 
 | 5109 |   test -z "$as_dir" && as_dir=. | 
 | 5110 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 5111 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 5112 |     ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext" | 
 | 5113 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 5114 |     break 2 | 
 | 5115 |   fi | 
 | 5116 | done | 
 | 5117 |   done | 
 | 5118 | IFS=$as_save_IFS | 
 | 5119 |  | 
 | 5120 |   ;; | 
 | 5121 | esac | 
 | 5122 | fi | 
 | 5123 | ac_pt_CXX=$ac_cv_path_ac_pt_CXX | 
 | 5124 | if test -n "$ac_pt_CXX"; then | 
 | 5125 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 | 
 | 5126 | $as_echo "$ac_pt_CXX" >&6; } | 
 | 5127 | else | 
 | 5128 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 5129 | $as_echo "no" >&6; } | 
 | 5130 | fi | 
 | 5131 |  | 
 | 5132 |   if test "x$ac_pt_CXX" = x; then | 
 | 5133 |     CXX="icpc" | 
 | 5134 |   else | 
 | 5135 |     case $cross_compiling:$ac_tool_warned in | 
 | 5136 | yes:) | 
 | 5137 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 5138 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
 | 5139 | ac_tool_warned=yes ;; | 
 | 5140 | esac | 
 | 5141 |     CXX=$ac_pt_CXX | 
 | 5142 |   fi | 
 | 5143 | else | 
 | 5144 |   CXX="$ac_cv_path_CXX" | 
 | 5145 | fi | 
 | 5146 |  ;; | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5147 |         esac | 
 | 5148 | 	if test "$CXX" = "notfound" | 
 | 5149 | 	then | 
 | 5150 | 		CXX="" | 
 | 5151 | 	fi | 
 | 5152 | fi | 
 | 5153 | if test -z "$CXX" | 
 | 5154 | then | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5155 | 	if test -n "$ac_tool_prefix"; then | 
 | 5156 |   for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl | 
 | 5157 |   do | 
 | 5158 |     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
 | 5159 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5160 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 5161 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 5162 | if ${ac_cv_prog_CXX+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5163 |   $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5164 | else | 
 | 5165 |   if test -n "$CXX"; then | 
 | 5166 |   ac_cv_prog_CXX="$CXX" # Let the user override the test. | 
 | 5167 | else | 
 | 5168 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5169 | for as_dir in $PATH | 
 | 5170 | do | 
 | 5171 |   IFS=$as_save_IFS | 
 | 5172 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5173 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 5174 |   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] | 5175 |     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5176 |     $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] | 5177 |     break 2 | 
 | 5178 |   fi | 
 | 5179 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5180 |   done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5181 | IFS=$as_save_IFS | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5182 |  | 
 | 5183 | fi | 
 | 5184 | fi | 
 | 5185 | CXX=$ac_cv_prog_CXX | 
 | 5186 | if test -n "$CXX"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5187 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | 
 | 5188 | $as_echo "$CXX" >&6; } | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5189 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5190 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 5191 | $as_echo "no" >&6; } | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5192 | fi | 
 | 5193 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5194 |  | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5195 |     test -n "$CXX" && break | 
 | 5196 |   done | 
 | 5197 | fi | 
 | 5198 | if test -z "$CXX"; then | 
 | 5199 |   ac_ct_CXX=$CXX | 
 | 5200 |   for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl | 
 | 5201 | do | 
 | 5202 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 5203 | set dummy $ac_prog; ac_word=$2 | 
 | 5204 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 5205 | $as_echo_n "checking for $ac_word... " >&6; } | 
 | 5206 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : | 
 | 5207 |   $as_echo_n "(cached) " >&6 | 
 | 5208 | else | 
 | 5209 |   if test -n "$ac_ct_CXX"; then | 
 | 5210 |   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | 
 | 5211 | else | 
 | 5212 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5213 | for as_dir in $PATH | 
 | 5214 | do | 
 | 5215 |   IFS=$as_save_IFS | 
 | 5216 |   test -z "$as_dir" && as_dir=. | 
 | 5217 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 5218 |   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] | 5219 |     ac_cv_prog_ac_ct_CXX="$ac_prog" | 
 | 5220 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 5221 |     break 2 | 
 | 5222 |   fi | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5223 | done | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5224 |   done | 
 | 5225 | IFS=$as_save_IFS | 
 | 5226 |  | 
 | 5227 | fi | 
 | 5228 | fi | 
 | 5229 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | 
 | 5230 | if test -n "$ac_ct_CXX"; then | 
 | 5231 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | 
 | 5232 | $as_echo "$ac_ct_CXX" >&6; } | 
 | 5233 | else | 
 | 5234 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 5235 | $as_echo "no" >&6; } | 
 | 5236 | fi | 
 | 5237 |  | 
 | 5238 |  | 
 | 5239 |   test -n "$ac_ct_CXX" && break | 
 | 5240 | done | 
 | 5241 |  | 
 | 5242 |   if test "x$ac_ct_CXX" = x; then | 
 | 5243 |     CXX="notfound" | 
 | 5244 |   else | 
 | 5245 |     case $cross_compiling:$ac_tool_warned in | 
 | 5246 | yes:) | 
 | 5247 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 5248 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
 | 5249 | ac_tool_warned=yes ;; | 
 | 5250 | esac | 
 | 5251 |     CXX=$ac_ct_CXX | 
 | 5252 |   fi | 
 | 5253 | fi | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5254 |  | 
 | 5255 | 	if test "$CXX" = "notfound" | 
 | 5256 | 	then | 
 | 5257 | 		CXX="" | 
 | 5258 | 	fi | 
 | 5259 | fi | 
 | 5260 | if test "$preset_cxx" != "$CXX" | 
 | 5261 | then | 
| Christian Heimes | fe32aec | 2013-11-20 01:18:26 +0100 | [diff] [blame] | 5262 |         { $as_echo "$as_me:${as_lineno-$LINENO}: | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5263 |  | 
 | 5264 |   By default, distutils will build C++ extension modules with \"$CXX\". | 
 | 5265 |   If this is not intended, then set CXX on the configure command line. | 
 | 5266 |   " >&5 | 
| Christian Heimes | fe32aec | 2013-11-20 01:18:26 +0100 | [diff] [blame] | 5267 | $as_echo "$as_me: | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5268 |  | 
 | 5269 |   By default, distutils will build C++ extension modules with \"$CXX\". | 
 | 5270 |   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] | 5271 |   " >&6;} | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5272 | fi | 
 | 5273 |  | 
 | 5274 |  | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5275 | MULTIARCH=$($CC --print-multiarch 2>/dev/null) | 
 | 5276 |  | 
 | 5277 |  | 
 | 5278 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the platform triplet based on compiler characteristics" >&5 | 
 | 5279 | $as_echo_n "checking for the platform triplet based on compiler characteristics... " >&6; } | 
 | 5280 | cat >> conftest.c <<EOF | 
| doko@ubuntu.com | 5cc9c4f | 2015-04-19 14:44:05 +0200 | [diff] [blame] | 5281 | #undef bfin | 
 | 5282 | #undef cris | 
 | 5283 | #undef fr30 | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5284 | #undef linux | 
| doko@ubuntu.com | 5cc9c4f | 2015-04-19 14:44:05 +0200 | [diff] [blame] | 5285 | #undef hppa | 
 | 5286 | #undef hpux | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5287 | #undef i386 | 
| doko@ubuntu.com | 5cc9c4f | 2015-04-19 14:44:05 +0200 | [diff] [blame] | 5288 | #undef mips | 
| doko@ubuntu.com | 9abe049 | 2015-04-15 23:31:02 +0200 | [diff] [blame] | 5289 | #undef powerpc | 
| doko@ubuntu.com | 5cc9c4f | 2015-04-19 14:44:05 +0200 | [diff] [blame] | 5290 | #undef sparc | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5291 | #undef unix | 
 | 5292 | #if defined(__linux__) | 
 | 5293 | # if defined(__x86_64__) && defined(__LP64__) | 
 | 5294 |         x86_64-linux-gnu | 
 | 5295 | # elif defined(__x86_64__) && defined(__ILP32__) | 
 | 5296 |         x86_64-linux-gnux32 | 
 | 5297 | # elif defined(__i386__) | 
 | 5298 |         i386-linux-gnu | 
 | 5299 | # elif defined(__aarch64__) && defined(__AARCH64EL__) | 
 | 5300 | #  if defined(__ILP32__) | 
 | 5301 |         aarch64_ilp32-linux-gnu | 
 | 5302 | #  else | 
 | 5303 |         aarch64-linux-gnu | 
 | 5304 | #  endif | 
 | 5305 | # elif defined(__aarch64__) && defined(__AARCH64EB__) | 
 | 5306 | #  if defined(__ILP32__) | 
 | 5307 |         aarch64_be_ilp32-linux-gnu | 
 | 5308 | #  else | 
 | 5309 |         aarch64_be-linux-gnu | 
 | 5310 | #  endif | 
 | 5311 | # elif defined(__alpha__) | 
 | 5312 |         alpha-linux-gnu | 
 | 5313 | # elif defined(__ARM_EABI__) && defined(__ARM_PCS_VFP) | 
 | 5314 | #  if defined(__ARMEL__) | 
 | 5315 |         arm-linux-gnueabihf | 
 | 5316 | #  else | 
 | 5317 |         armeb-linux-gnueabihf | 
 | 5318 | #  endif | 
 | 5319 | # elif defined(__ARM_EABI__) && !defined(__ARM_PCS_VFP) | 
 | 5320 | #  if defined(__ARMEL__) | 
 | 5321 |         arm-linux-gnueabi | 
 | 5322 | #  else | 
 | 5323 |         armeb-linux-gnueabi | 
 | 5324 | #  endif | 
 | 5325 | # elif defined(__hppa__) | 
 | 5326 |         hppa-linux-gnu | 
 | 5327 | # elif defined(__ia64__) | 
 | 5328 |         ia64-linux-gnu | 
 | 5329 | # elif defined(__m68k__) && !defined(__mcoldfire__) | 
 | 5330 |         m68k-linux-gnu | 
 | 5331 | # elif defined(__mips_hard_float) && defined(_MIPSEL) | 
 | 5332 | #  if _MIPS_SIM == _ABIO32 | 
 | 5333 |         mipsel-linux-gnu | 
 | 5334 | #  elif _MIPS_SIM == _ABIN32 | 
 | 5335 |         mips64el-linux-gnuabin32 | 
 | 5336 | #  elif _MIPS_SIM == _ABI64 | 
 | 5337 |         mips64el-linux-gnuabi64 | 
 | 5338 | #  else | 
 | 5339 | #   error unknown platform triplet | 
 | 5340 | #  endif | 
 | 5341 | # elif defined(__mips_hard_float) | 
 | 5342 | #  if _MIPS_SIM == _ABIO32 | 
 | 5343 |         mips-linux-gnu | 
 | 5344 | #  elif _MIPS_SIM == _ABIN32 | 
 | 5345 |         mips64-linux-gnuabin32 | 
 | 5346 | #  elif _MIPS_SIM == _ABI64 | 
 | 5347 |         mips64-linux-gnuabi64 | 
 | 5348 | #  else | 
 | 5349 | #   error unknown platform triplet | 
 | 5350 | #  endif | 
 | 5351 | # elif defined(__or1k__) | 
 | 5352 |         or1k-linux-gnu | 
 | 5353 | # elif defined(__powerpc__) && defined(__SPE__) | 
 | 5354 |         powerpc-linux-gnuspe | 
 | 5355 | # elif defined(__powerpc64__) | 
 | 5356 | #  if defined(__LITTLE_ENDIAN__) | 
 | 5357 |         powerpc64le-linux-gnu | 
 | 5358 | #  else | 
 | 5359 |         powerpc64-linux-gnu | 
 | 5360 | #  endif | 
 | 5361 | # elif defined(__powerpc__) | 
 | 5362 |         powerpc-linux-gnu | 
 | 5363 | # elif defined(__s390x__) | 
 | 5364 |         s390x-linux-gnu | 
 | 5365 | # elif defined(__s390__) | 
 | 5366 |         s390-linux-gnu | 
 | 5367 | # elif defined(__sh__) && defined(__LITTLE_ENDIAN__) | 
 | 5368 |         sh4-linux-gnu | 
 | 5369 | # elif defined(__sparc__) && defined(__arch64__) | 
 | 5370 |         sparc64-linux-gnu | 
 | 5371 | # elif defined(__sparc__) | 
 | 5372 |         sparc-linux-gnu | 
 | 5373 | # else | 
 | 5374 | #   error unknown platform triplet | 
 | 5375 | # endif | 
 | 5376 | #elif defined(__FreeBSD_kernel__) | 
 | 5377 | # if defined(__LP64__) | 
 | 5378 |         x86_64-kfreebsd-gnu | 
 | 5379 | # elif defined(__i386__) | 
 | 5380 |         i386-kfreebsd-gnu | 
 | 5381 | # else | 
 | 5382 | #   error unknown platform triplet | 
 | 5383 | # endif | 
 | 5384 | #elif defined(__gnu_hurd__) | 
 | 5385 |         i386-gnu | 
| Ned Deily | 3b81248 | 2015-04-15 17:11:47 -0700 | [diff] [blame] | 5386 | #elif defined(__APPLE__) | 
 | 5387 |         darwin | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5388 | #else | 
 | 5389 | # error unknown platform triplet | 
 | 5390 | #endif | 
 | 5391 |  | 
 | 5392 | EOF | 
 | 5393 |  | 
| Xavier de Gaye | 3a32bdf | 2016-07-30 11:28:35 +0200 | [diff] [blame] | 5394 | if $CPP $CPPFLAGS conftest.c >conftest.out 2>/dev/null; then | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5395 |   PLATFORM_TRIPLET=`grep -v '^#' conftest.out | grep -v '^ *$' | tr -d ' 	'` | 
 | 5396 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PLATFORM_TRIPLET" >&5 | 
 | 5397 | $as_echo "$PLATFORM_TRIPLET" >&6; } | 
 | 5398 | else | 
 | 5399 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | 
 | 5400 | $as_echo "none" >&6; } | 
 | 5401 | fi | 
 | 5402 | rm -f conftest.c conftest.out | 
 | 5403 |  | 
 | 5404 | if test x$PLATFORM_TRIPLET != x && test x$MULTIARCH != x; then | 
 | 5405 |   if test x$PLATFORM_TRIPLET != x$MULTIARCH; then | 
 | 5406 |     as_fn_error $? "internal configure error for the platform triplet, please file a bug report" "$LINENO" 5 | 
 | 5407 |   fi | 
 | 5408 | fi | 
 | 5409 | PLATDIR=plat-$MACHDEP | 
 | 5410 |  | 
 | 5411 |  | 
 | 5412 |  | 
 | 5413 |  | 
| Martin v. Löwis | 48e14d3 | 2011-05-09 07:37:45 +0200 | [diff] [blame] | 5414 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wl,--no-as-needed" >&5 | 
 | 5415 | $as_echo_n "checking for -Wl,--no-as-needed... " >&6; } | 
 | 5416 | save_LDFLAGS="$LDFLAGS" | 
 | 5417 | LDFLAGS="$LDFLAGS -Wl,--no-as-needed" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5418 |  | 
| Martin v. Löwis | 48e14d3 | 2011-05-09 07:37:45 +0200 | [diff] [blame] | 5419 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 5420 | /* end confdefs.h.  */ | 
 | 5421 |  | 
 | 5422 | int | 
 | 5423 | main () | 
 | 5424 | { | 
 | 5425 |  | 
 | 5426 |   ; | 
 | 5427 |   return 0; | 
 | 5428 | } | 
 | 5429 | _ACEOF | 
 | 5430 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 5431 |   NO_AS_NEEDED="-Wl,--no-as-needed" | 
 | 5432 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 5433 | $as_echo "yes" >&6; } | 
 | 5434 | else | 
 | 5435 |   NO_AS_NEEDED="" | 
 | 5436 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 5437 | $as_echo "no" >&6; } | 
 | 5438 | fi | 
 | 5439 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 5440 |     conftest$ac_exeext conftest.$ac_ext | 
 | 5441 | LDFLAGS="$save_LDFLAGS" | 
 | 5442 |  | 
 | 5443 |  | 
 | 5444 |  | 
 | 5445 | # checks for UNIX variants that set C preprocessor variables | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5446 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5447 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | 
 | 5448 | $as_echo_n "checking for egrep... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 5449 | if ${ac_cv_path_EGREP+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5450 |   $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5451 | else | 
 | 5452 |   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | 
 | 5453 |    then ac_cv_path_EGREP="$GREP -E" | 
 | 5454 |    else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5455 |      if test -z "$EGREP"; then | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5456 |   ac_path_EGREP_found=false | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5457 |   # Loop through the user's path and test for each of PROGNAME-LIST | 
 | 5458 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5459 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | 
 | 5460 | do | 
 | 5461 |   IFS=$as_save_IFS | 
 | 5462 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5463 |     for ac_prog in egrep; do | 
 | 5464 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 5465 |       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 5466 |       as_fn_executable_p "$ac_path_EGREP" || continue | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5467 | # 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] | 5468 |   # Check for GNU $ac_path_EGREP | 
 | 5469 | case `"$ac_path_EGREP" --version 2>&1` in | 
 | 5470 | *GNU*) | 
 | 5471 |   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | 
 | 5472 | *) | 
 | 5473 |   ac_count=0 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5474 |   $as_echo_n 0123456789 >"conftest.in" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5475 |   while : | 
 | 5476 |   do | 
 | 5477 |     cat "conftest.in" "conftest.in" >"conftest.tmp" | 
 | 5478 |     mv "conftest.tmp" "conftest.in" | 
 | 5479 |     cp "conftest.in" "conftest.nl" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5480 |     $as_echo 'EGREP' >> "conftest.nl" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5481 |     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | 
 | 5482 |     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5483 |     as_fn_arith $ac_count + 1 && ac_count=$as_val | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5484 |     if test $ac_count -gt ${ac_path_EGREP_max-0}; then | 
 | 5485 |       # Best one so far, save it but keep looking for a better one | 
 | 5486 |       ac_cv_path_EGREP="$ac_path_EGREP" | 
 | 5487 |       ac_path_EGREP_max=$ac_count | 
 | 5488 |     fi | 
 | 5489 |     # 10*(2^10) chars as input seems more than enough | 
 | 5490 |     test $ac_count -gt 10 && break | 
 | 5491 |   done | 
 | 5492 |   rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | 
 | 5493 | esac | 
 | 5494 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5495 |       $ac_path_EGREP_found && break 3 | 
 | 5496 |     done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5497 |   done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5498 |   done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5499 | IFS=$as_save_IFS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5500 |   if test -z "$ac_cv_path_EGREP"; then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 5501 |     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] | 5502 |   fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5503 | else | 
 | 5504 |   ac_cv_path_EGREP=$EGREP | 
 | 5505 | fi | 
 | 5506 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5507 |    fi | 
 | 5508 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | 
 | 5510 | $as_echo "$ac_cv_path_EGREP" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5511 |  EGREP="$ac_cv_path_EGREP" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5512 |  | 
 | 5513 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5514 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | 
 | 5515 | $as_echo_n "checking for ANSI C header files... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 5516 | if ${ac_cv_header_stdc+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5517 |   $as_echo_n "(cached) " >&6 | 
 | 5518 | else | 
 | 5519 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 5520 | /* end confdefs.h.  */ | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5521 | #include <stdlib.h> | 
 | 5522 | #include <stdarg.h> | 
 | 5523 | #include <string.h> | 
 | 5524 | #include <float.h> | 
 | 5525 |  | 
 | 5526 | int | 
 | 5527 | main () | 
 | 5528 | { | 
 | 5529 |  | 
 | 5530 |   ; | 
 | 5531 |   return 0; | 
 | 5532 | } | 
 | 5533 | _ACEOF | 
 | 5534 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 5535 |   ac_cv_header_stdc=yes | 
 | 5536 | else | 
 | 5537 |   ac_cv_header_stdc=no | 
 | 5538 | fi | 
 | 5539 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 5540 |  | 
 | 5541 | if test $ac_cv_header_stdc = yes; then | 
 | 5542 |   # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | 
 | 5543 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 5544 | /* end confdefs.h.  */ | 
 | 5545 | #include <string.h> | 
| Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 5546 |  | 
| Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 5547 | _ACEOF | 
| Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 5548 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5549 |   $EGREP "memchr" >/dev/null 2>&1; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5550 |  | 
| Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 5551 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5552 |   ac_cv_header_stdc=no | 
| Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 5553 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 5554 | rm -f conftest* | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5555 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5556 | fi | 
 | 5557 |  | 
 | 5558 | if test $ac_cv_header_stdc = yes; then | 
 | 5559 |   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | 
 | 5560 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 5561 | /* end confdefs.h.  */ | 
 | 5562 | #include <stdlib.h> | 
 | 5563 |  | 
 | 5564 | _ACEOF | 
 | 5565 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
 | 5566 |   $EGREP "free" >/dev/null 2>&1; then : | 
 | 5567 |  | 
 | 5568 | else | 
 | 5569 |   ac_cv_header_stdc=no | 
 | 5570 | fi | 
 | 5571 | rm -f conftest* | 
 | 5572 |  | 
 | 5573 | fi | 
 | 5574 |  | 
 | 5575 | if test $ac_cv_header_stdc = yes; then | 
 | 5576 |   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | 
 | 5577 |   if test "$cross_compiling" = yes; then : | 
 | 5578 |   : | 
 | 5579 | else | 
 | 5580 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 5581 | /* end confdefs.h.  */ | 
 | 5582 | #include <ctype.h> | 
 | 5583 | #include <stdlib.h> | 
 | 5584 | #if ((' ' & 0x0FF) == 0x020) | 
 | 5585 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | 
 | 5586 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | 
 | 5587 | #else | 
 | 5588 | # define ISLOWER(c) \ | 
 | 5589 | 		   (('a' <= (c) && (c) <= 'i') \ | 
 | 5590 | 		     || ('j' <= (c) && (c) <= 'r') \ | 
 | 5591 | 		     || ('s' <= (c) && (c) <= 'z')) | 
 | 5592 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | 
 | 5593 | #endif | 
 | 5594 |  | 
 | 5595 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | 
 | 5596 | int | 
 | 5597 | main () | 
 | 5598 | { | 
 | 5599 |   int i; | 
 | 5600 |   for (i = 0; i < 256; i++) | 
 | 5601 |     if (XOR (islower (i), ISLOWER (i)) | 
 | 5602 | 	|| toupper (i) != TOUPPER (i)) | 
 | 5603 |       return 2; | 
 | 5604 |   return 0; | 
 | 5605 | } | 
 | 5606 | _ACEOF | 
 | 5607 | if ac_fn_c_try_run "$LINENO"; then : | 
 | 5608 |  | 
 | 5609 | else | 
 | 5610 |   ac_cv_header_stdc=no | 
 | 5611 | fi | 
 | 5612 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 5613 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
 | 5614 | fi | 
 | 5615 |  | 
 | 5616 | fi | 
 | 5617 | fi | 
 | 5618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | 
 | 5619 | $as_echo "$ac_cv_header_stdc" >&6; } | 
 | 5620 | if test $ac_cv_header_stdc = yes; then | 
 | 5621 |  | 
 | 5622 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | 
 | 5623 |  | 
 | 5624 | fi | 
 | 5625 |  | 
 | 5626 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | 
 | 5627 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | 
 | 5628 | 		  inttypes.h stdint.h unistd.h | 
 | 5629 | do : | 
 | 5630 |   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
 | 5631 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | 
 | 5632 | " | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 5633 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5634 |   cat >>confdefs.h <<_ACEOF | 
 | 5635 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
 | 5636 | _ACEOF | 
 | 5637 |  | 
 | 5638 | fi | 
 | 5639 |  | 
 | 5640 | done | 
 | 5641 |  | 
 | 5642 |  | 
 | 5643 |  | 
 | 5644 |   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] | 5645 | if test "x$ac_cv_header_minix_config_h" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5646 |   MINIX=yes | 
 | 5647 | else | 
 | 5648 |   MINIX= | 
 | 5649 | fi | 
 | 5650 |  | 
 | 5651 |  | 
 | 5652 |   if test "$MINIX" = yes; then | 
 | 5653 |  | 
 | 5654 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | 
 | 5655 |  | 
 | 5656 |  | 
 | 5657 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h | 
 | 5658 |  | 
 | 5659 |  | 
 | 5660 | $as_echo "#define _MINIX 1" >>confdefs.h | 
 | 5661 |  | 
 | 5662 |   fi | 
 | 5663 |  | 
 | 5664 |  | 
 | 5665 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 | 
 | 5666 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 5667 | if ${ac_cv_safe_to_define___extensions__+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5668 |   $as_echo_n "(cached) " >&6 | 
 | 5669 | else | 
 | 5670 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 5671 | /* end confdefs.h.  */ | 
 | 5672 |  | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 5673 | #         define __EXTENSIONS__ 1 | 
 | 5674 |           $ac_includes_default | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5675 | int | 
 | 5676 | main () | 
 | 5677 | { | 
 | 5678 |  | 
 | 5679 |   ; | 
 | 5680 |   return 0; | 
 | 5681 | } | 
 | 5682 | _ACEOF | 
 | 5683 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 5684 |   ac_cv_safe_to_define___extensions__=yes | 
 | 5685 | else | 
 | 5686 |   ac_cv_safe_to_define___extensions__=no | 
 | 5687 | fi | 
 | 5688 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 5689 | fi | 
 | 5690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 | 
 | 5691 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | 
 | 5692 |   test $ac_cv_safe_to_define___extensions__ = yes && | 
 | 5693 |     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | 
 | 5694 |  | 
 | 5695 |   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h | 
 | 5696 |  | 
 | 5697 |   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | 
 | 5698 |  | 
 | 5699 |   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h | 
 | 5700 |  | 
 | 5701 |   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | 
 | 5702 |  | 
 | 5703 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5704 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5705 | # Check for unsupported systems | 
 | 5706 | case $ac_sys_system/$ac_sys_release in | 
 | 5707 | atheos*|Linux*/1*) | 
 | 5708 |    echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported. | 
 | 5709 |    echo See README for details. | 
 | 5710 |    exit 1;; | 
 | 5711 | esac | 
 | 5712 |  | 
 | 5713 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5714 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-suffix" >&5 | 
 | 5715 | $as_echo_n "checking for --with-suffix... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5716 |  | 
 | 5717 | # Check whether --with-suffix was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5718 | if test "${with_suffix+set}" = set; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5719 |   withval=$with_suffix; | 
 | 5720 | 	case $withval in | 
 | 5721 | 	no)	EXEEXT=;; | 
 | 5722 | 	yes)	EXEEXT=.exe;; | 
 | 5723 | 	*)	EXEEXT=$withval;; | 
 | 5724 | 	esac | 
 | 5725 | fi | 
 | 5726 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXEEXT" >&5 | 
 | 5728 | $as_echo "$EXEEXT" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5729 |  | 
 | 5730 | # Test whether we're running on a non-case-sensitive system, in which | 
 | 5731 | # case we give a warning if no ext is given | 
 | 5732 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5733 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for case-insensitive build directory" >&5 | 
 | 5734 | $as_echo_n "checking for case-insensitive build directory... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5735 | if test ! -d CaseSensitiveTestDir; then | 
 | 5736 | mkdir CaseSensitiveTestDir | 
 | 5737 | fi | 
 | 5738 |  | 
 | 5739 | if test -d casesensitivetestdir | 
 | 5740 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5741 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 5742 | $as_echo "yes" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5743 |     BUILDEXEEXT=.exe | 
 | 5744 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5745 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 5746 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5747 | 	BUILDEXEEXT=$EXEEXT | 
 | 5748 | fi | 
 | 5749 | rmdir CaseSensitiveTestDir | 
 | 5750 |  | 
 | 5751 | case $MACHDEP in | 
 | 5752 | bsdos*) | 
 | 5753 |     case $CC in | 
 | 5754 |     gcc) CC="$CC -D_HAVE_BSDI";; | 
 | 5755 |     esac;; | 
 | 5756 | esac | 
 | 5757 |  | 
 | 5758 | case $ac_sys_system in | 
 | 5759 | hp*|HP*) | 
 | 5760 |     case $CC in | 
 | 5761 |     cc|*/cc) CC="$CC -Ae";; | 
 | 5762 |     esac;; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5763 | esac | 
 | 5764 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5765 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5766 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY" >&5 | 
 | 5767 | $as_echo_n "checking LIBRARY... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5768 | if test -z "$LIBRARY" | 
 | 5769 | then | 
| Barry Warsaw | f040d7d | 2010-10-18 17:09:07 +0000 | [diff] [blame] | 5770 | 	LIBRARY='libpython$(VERSION)$(ABIFLAGS).a' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5771 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBRARY" >&5 | 
 | 5773 | $as_echo "$LIBRARY" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5774 |  | 
 | 5775 | # LDLIBRARY is the name of the library to link against (as opposed to the | 
 | 5776 | # name of the library into which to insert object files). BLDLIBRARY is also | 
 | 5777 | # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY | 
 | 5778 | # is blank as the main program is not linked directly against LDLIBRARY. | 
 | 5779 | # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On | 
 | 5780 | # systems without shared libraries, LDLIBRARY is the same as LIBRARY | 
 | 5781 | # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, | 
 | 5782 | # DLLLIBRARY is the shared (i.e., DLL) library. | 
 | 5783 | # | 
 | 5784 | # RUNSHARED is used to run shared python without installed libraries | 
 | 5785 | # | 
 | 5786 | # INSTSONAME is the name of the shared library that will be use to install | 
 | 5787 | # on the system - some systems like version suffix, others don't | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5788 | # | 
 | 5789 | # LDVERSION is the shared library version number, normally the Python version | 
 | 5790 | # with the ABI build flags appended. | 
 | 5791 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5792 |  | 
 | 5793 |  | 
 | 5794 |  | 
 | 5795 |  | 
 | 5796 |  | 
 | 5797 |  | 
| Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 +0000 | [diff] [blame] | 5798 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5799 | LDLIBRARY="$LIBRARY" | 
 | 5800 | BLDLIBRARY='$(LDLIBRARY)' | 
 | 5801 | INSTSONAME='$(LDLIBRARY)' | 
 | 5802 | DLLLIBRARY='' | 
 | 5803 | LDLIBRARYDIR='' | 
 | 5804 | RUNSHARED='' | 
| Barry Warsaw | 14d98ac | 2010-11-24 19:43:47 +0000 | [diff] [blame] | 5805 | LDVERSION="$VERSION" | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5806 |  | 
 | 5807 | # LINKCC is the command that links the python executable -- default is $(CC). | 
 | 5808 | # If CXX is set, and if it is needed to link a main function that was | 
 | 5809 | # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: | 
 | 5810 | # python might then depend on the C++ runtime | 
 | 5811 | # This is altered for AIX in order to build the export list before | 
 | 5812 | # linking. | 
 | 5813 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5814 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKCC" >&5 | 
 | 5815 | $as_echo_n "checking LINKCC... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5816 | if test -z "$LINKCC" | 
 | 5817 | then | 
 | 5818 | 	LINKCC='$(PURIFY) $(MAINCC)' | 
 | 5819 | 	case $ac_sys_system in | 
 | 5820 | 	AIX*) | 
 | 5821 | 	   exp_extra="\"\"" | 
 | 5822 | 	   if test $ac_sys_release -ge 5 -o \ | 
 | 5823 | 		   $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then | 
 | 5824 | 	       exp_extra="." | 
 | 5825 | 	   fi | 
 | 5826 | 	   LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5827 | 	QNX*) | 
 | 5828 | 	   # qcc must be used because the other compilers do not | 
 | 5829 | 	   # support -N. | 
 | 5830 | 	   LINKCC=qcc;; | 
 | 5831 | 	esac | 
 | 5832 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKCC" >&5 | 
 | 5834 | $as_echo "$LINKCC" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5835 |  | 
 | 5836 | # GNULD is set to "yes" if the GNU linker is used.  If this goes wrong | 
 | 5837 | # make sure we default having it set to "no": this is used by | 
 | 5838 | # distutils.unixccompiler to know if it should add --enable-new-dtags | 
 | 5839 | # to linker command lines, and failing to detect GNU ld simply results | 
 | 5840 | # in the same bahaviour as before. | 
 | 5841 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5842 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | 
 | 5843 | $as_echo_n "checking for GNU ld... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5844 | ac_prog=ld | 
 | 5845 | if test "$GCC" = yes; then | 
 | 5846 |        ac_prog=`$CC -print-prog-name=ld` | 
 | 5847 | fi | 
 | 5848 | case `"$ac_prog" -V 2>&1 < /dev/null` in | 
 | 5849 |       *GNU*) | 
 | 5850 |           GNULD=yes;; | 
 | 5851 |       *) | 
 | 5852 |           GNULD=no;; | 
 | 5853 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNULD" >&5 | 
 | 5855 | $as_echo "$GNULD" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5856 |  | 
| Daniel Stutzbach | a606faa | 2010-08-31 19:51:07 +0000 | [diff] [blame] | 5857 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 | 
 | 5858 | $as_echo_n "checking for inline... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 5859 | if ${ac_cv_c_inline+:} false; then : | 
| Daniel Stutzbach | a606faa | 2010-08-31 19:51:07 +0000 | [diff] [blame] | 5860 |   $as_echo_n "(cached) " >&6 | 
 | 5861 | else | 
 | 5862 |   ac_cv_c_inline=no | 
 | 5863 | for ac_kw in inline __inline__ __inline; do | 
 | 5864 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 5865 | /* end confdefs.h.  */ | 
 | 5866 | #ifndef __cplusplus | 
 | 5867 | typedef int foo_t; | 
 | 5868 | static $ac_kw foo_t static_foo () {return 0; } | 
 | 5869 | $ac_kw foo_t foo () {return 0; } | 
 | 5870 | #endif | 
 | 5871 |  | 
 | 5872 | _ACEOF | 
 | 5873 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 5874 |   ac_cv_c_inline=$ac_kw | 
 | 5875 | fi | 
 | 5876 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 5877 |   test "$ac_cv_c_inline" != no && break | 
 | 5878 | done | 
 | 5879 |  | 
 | 5880 | fi | 
 | 5881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 | 
 | 5882 | $as_echo "$ac_cv_c_inline" >&6; } | 
 | 5883 |  | 
 | 5884 | case $ac_cv_c_inline in | 
 | 5885 |   inline | yes) ;; | 
 | 5886 |   *) | 
 | 5887 |     case $ac_cv_c_inline in | 
 | 5888 |       no) ac_val=;; | 
 | 5889 |       *) ac_val=$ac_cv_c_inline;; | 
 | 5890 |     esac | 
 | 5891 |     cat >>confdefs.h <<_ACEOF | 
 | 5892 | #ifndef __cplusplus | 
 | 5893 | #define inline $ac_val | 
 | 5894 | #endif | 
 | 5895 | _ACEOF | 
 | 5896 |     ;; | 
 | 5897 | esac | 
 | 5898 |  | 
 | 5899 | if test "$ac_cv_c_inline" != no ; then | 
| Benjamin Peterson | d7f73e9 | 2010-09-05 00:09:07 +0000 | [diff] [blame] | 5900 |  | 
 | 5901 | $as_echo "#define USE_INLINE 1" >>confdefs.h | 
| Daniel Stutzbach | a606faa | 2010-08-31 19:51:07 +0000 | [diff] [blame] | 5902 |  | 
 | 5903 |  | 
 | 5904 | fi | 
 | 5905 |  | 
 | 5906 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5907 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-shared" >&5 | 
 | 5908 | $as_echo_n "checking for --enable-shared... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5909 | # Check whether --enable-shared was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5910 | if test "${enable_shared+set}" = set; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5911 |   enableval=$enable_shared; | 
 | 5912 | fi | 
 | 5913 |  | 
 | 5914 |  | 
 | 5915 | if test -z "$enable_shared" | 
 | 5916 | then | 
 | 5917 |   case $ac_sys_system in | 
| Antoine Pitrou | 6103ab1 | 2009-10-24 20:11:21 +0000 | [diff] [blame] | 5918 |   CYGWIN*) | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5919 |     enable_shared="yes";; | 
 | 5920 |   *) | 
 | 5921 |     enable_shared="no";; | 
 | 5922 |   esac | 
 | 5923 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | 
 | 5925 | $as_echo "$enable_shared" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5926 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5927 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-profiling" >&5 | 
 | 5928 | $as_echo_n "checking for --enable-profiling... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5929 | # Check whether --enable-profiling was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5930 | if test "${enable_profiling+set}" = set; then : | 
| doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 5931 |   enableval=$enable_profiling; | 
 | 5932 | fi | 
 | 5933 |  | 
 | 5934 | if test "x$enable_profiling" = xyes; then | 
 | 5935 |   ac_save_cc="$CC" | 
| Benjamin Peterson | 615ea1a | 2013-03-26 08:55:37 -0400 | [diff] [blame] | 5936 |   CC="$CC -pg" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5937 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5938 | /* end confdefs.h.  */ | 
 | 5939 | int main() { return 0; } | 
 | 5940 | _ACEOF | 
| doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 5941 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 5942 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5943 | else | 
| doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 5944 |   enable_profiling=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5945 | fi | 
| doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 5946 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 5947 |     conftest$ac_exeext conftest.$ac_ext | 
 | 5948 |   CC="$ac_save_cc" | 
 | 5949 | else | 
 | 5950 |   enable_profiling=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5951 | fi | 
| doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 5952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_profiling" >&5 | 
 | 5953 | $as_echo "$enable_profiling" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5954 |  | 
| doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 5955 | if test "x$enable_profiling" = xyes; then | 
 | 5956 |   BASECFLAGS="-pg $BASECFLAGS" | 
 | 5957 |   LDFLAGS="-pg $LDFLAGS" | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5958 | fi | 
 | 5959 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5960 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDLIBRARY" >&5 | 
 | 5961 | $as_echo_n "checking LDLIBRARY... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5962 |  | 
 | 5963 | # MacOSX framework builds need more magic. LDLIBRARY is the dynamic | 
 | 5964 | # library that we build, but we do not want to link against it (we | 
 | 5965 | # will find it with a -framework option). For this reason there is an | 
 | 5966 | # extra variable BLDLIBRARY against which Python and the extension | 
 | 5967 | # modules are linked, BLDLIBRARY. This is normally the same as | 
 | 5968 | # LDLIBRARY, but empty for MacOSX framework builds. | 
 | 5969 | if test "$enable_framework" | 
 | 5970 | then | 
 | 5971 |   LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| doko@ubuntu.com | e5de66e | 2014-05-07 12:57:44 +0200 | [diff] [blame] | 5972 |   RUNSHARED=DYLD_FRAMEWORK_PATH=`pwd`${DYLD_FRAMEWORK_PATH:+:${DYLD_FRAMEWORK_PATH}} | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5973 |   BLDLIBRARY='' | 
 | 5974 | else | 
 | 5975 |   BLDLIBRARY='$(LDLIBRARY)' | 
 | 5976 | fi | 
 | 5977 |  | 
 | 5978 | # Other platforms follow | 
 | 5979 | if test $enable_shared = "yes"; then | 
| doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 5980 |   PY_ENABLE_SHARED=1 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5981 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5982 | $as_echo "#define Py_ENABLE_SHARED 1" >>confdefs.h | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5983 |  | 
 | 5984 |   case $ac_sys_system in | 
 | 5985 |     CYGWIN*) | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5986 |           LDLIBRARY='libpython$(LDVERSION).dll.a' | 
 | 5987 |           DLLLIBRARY='libpython$(LDVERSION).dll' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5988 |           ;; | 
 | 5989 |     SunOS*) | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5990 | 	  LDLIBRARY='libpython$(LDVERSION).so' | 
 | 5991 | 	  BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(LDVERSION)' | 
| doko@ubuntu.com | e5de66e | 2014-05-07 12:57:44 +0200 | [diff] [blame] | 5992 | 	  RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5993 | 	  INSTSONAME="$LDLIBRARY".$SOVERSION | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 5994 | 	  if test "$with_pydebug" != yes | 
| Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 +0000 | [diff] [blame] | 5995 | 	  then | 
 | 5996 | 	      PY3LIBRARY=libpython3.so | 
 | 5997 | 	  fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5998 |           ;; | 
| Charles-François Natali | 749400a | 2011-07-24 22:41:18 +0200 | [diff] [blame] | 5999 |     Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*|OpenBSD*) | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 6000 | 	  LDLIBRARY='libpython$(LDVERSION).so' | 
 | 6001 | 	  BLDLIBRARY='-L. -lpython$(LDVERSION)' | 
| doko@ubuntu.com | e5de66e | 2014-05-07 12:57:44 +0200 | [diff] [blame] | 6002 | 	  RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6003 | 	  INSTSONAME="$LDLIBRARY".$SOVERSION | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 6004 | 	  if test "$with_pydebug" != yes | 
| Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 +0000 | [diff] [blame] | 6005 |           then | 
 | 6006 | 	      PY3LIBRARY=libpython3.so | 
 | 6007 | 	  fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6008 | 	  ;; | 
 | 6009 |     hp*|HP*) | 
 | 6010 | 	  case `uname -m` in | 
 | 6011 | 		ia64) | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 6012 | 			LDLIBRARY='libpython$(LDVERSION).so' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6013 | 			;; | 
 | 6014 | 		*) | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 6015 | 			LDLIBRARY='libpython$(LDVERSION).sl' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6016 | 			;; | 
 | 6017 | 	  esac | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 6018 | 	  BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(LDVERSION)' | 
| doko@ubuntu.com | e5de66e | 2014-05-07 12:57:44 +0200 | [diff] [blame] | 6019 | 	  RUNSHARED=SHLIB_PATH=`pwd`${SHLIB_PATH:+:${SHLIB_PATH}} | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6020 | 	  ;; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6021 |     Darwin*) | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 6022 |     	LDLIBRARY='libpython$(LDVERSION).dylib' | 
 | 6023 | 	BLDLIBRARY='-L. -lpython$(LDVERSION)' | 
| doko@ubuntu.com | e5de66e | 2014-05-07 12:57:44 +0200 | [diff] [blame] | 6024 | 	RUNSHARED=DYLD_LIBRARY_PATH=`pwd`${DYLD_LIBRARY_PATH:+:${DYLD_LIBRARY_PATH}} | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6025 | 	;; | 
| Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 6026 |     AIX*) | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 6027 | 	LDLIBRARY='libpython$(LDVERSION).so' | 
| doko@ubuntu.com | e5de66e | 2014-05-07 12:57:44 +0200 | [diff] [blame] | 6028 | 	RUNSHARED=LIBPATH=`pwd`${LIBPATH:+:${LIBPATH}} | 
| Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 6029 | 	;; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6030 |  | 
 | 6031 |   esac | 
 | 6032 | else # shared is disabled | 
| doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 6033 |   PY_ENABLE_SHARED=0 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6034 |   case $ac_sys_system in | 
 | 6035 |     CYGWIN*) | 
 | 6036 |           BLDLIBRARY='$(LIBRARY)' | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 6037 |           LDLIBRARY='libpython$(LDVERSION).dll.a' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6038 |           ;; | 
 | 6039 |   esac | 
 | 6040 | fi | 
 | 6041 |  | 
| doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 6042 | if test "$cross_compiling" = yes; then | 
 | 6043 | 	RUNSHARED= | 
 | 6044 | fi | 
 | 6045 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6046 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDLIBRARY" >&5 | 
 | 6047 | $as_echo "$LDLIBRARY" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6048 |  | 
 | 6049 | if test -n "$ac_tool_prefix"; then | 
 | 6050 |   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | 
 | 6051 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6052 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 6053 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 6054 | if ${ac_cv_prog_RANLIB+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6055 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6056 | else | 
 | 6057 |   if test -n "$RANLIB"; then | 
 | 6058 |   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | 
 | 6059 | else | 
 | 6060 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 6061 | for as_dir in $PATH | 
 | 6062 | do | 
 | 6063 |   IFS=$as_save_IFS | 
 | 6064 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6065 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 6066 |   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] | 6067 |     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6068 |     $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] | 6069 |     break 2 | 
 | 6070 |   fi | 
 | 6071 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6072 |   done | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6073 | IFS=$as_save_IFS | 
 | 6074 |  | 
 | 6075 | fi | 
 | 6076 | fi | 
 | 6077 | RANLIB=$ac_cv_prog_RANLIB | 
 | 6078 | if test -n "$RANLIB"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6079 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | 
 | 6080 | $as_echo "$RANLIB" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6081 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6082 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 6083 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6084 | fi | 
 | 6085 |  | 
 | 6086 |  | 
 | 6087 | fi | 
 | 6088 | if test -z "$ac_cv_prog_RANLIB"; then | 
 | 6089 |   ac_ct_RANLIB=$RANLIB | 
 | 6090 |   # Extract the first word of "ranlib", so it can be a program name with args. | 
 | 6091 | set dummy ranlib; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6092 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 6093 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 6094 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6095 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6096 | else | 
 | 6097 |   if test -n "$ac_ct_RANLIB"; then | 
 | 6098 |   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | 
 | 6099 | else | 
 | 6100 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 6101 | for as_dir in $PATH | 
 | 6102 | do | 
 | 6103 |   IFS=$as_save_IFS | 
 | 6104 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6105 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 6106 |   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] | 6107 |     ac_cv_prog_ac_ct_RANLIB="ranlib" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6108 |     $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] | 6109 |     break 2 | 
 | 6110 |   fi | 
 | 6111 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6112 |   done | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6113 | IFS=$as_save_IFS | 
 | 6114 |  | 
 | 6115 | fi | 
 | 6116 | fi | 
 | 6117 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | 
 | 6118 | if test -n "$ac_ct_RANLIB"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6119 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | 
 | 6120 | $as_echo "$ac_ct_RANLIB" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6121 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6122 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 6123 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6124 | fi | 
 | 6125 |  | 
 | 6126 |   if test "x$ac_ct_RANLIB" = x; then | 
 | 6127 |     RANLIB=":" | 
 | 6128 |   else | 
 | 6129 |     case $cross_compiling:$ac_tool_warned in | 
 | 6130 | yes:) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6131 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 6132 | $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] | 6133 | ac_tool_warned=yes ;; | 
 | 6134 | esac | 
 | 6135 |     RANLIB=$ac_ct_RANLIB | 
 | 6136 |   fi | 
 | 6137 | else | 
 | 6138 |   RANLIB="$ac_cv_prog_RANLIB" | 
 | 6139 | fi | 
 | 6140 |  | 
 | 6141 |  | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 6142 | if test -n "$ac_tool_prefix"; then | 
 | 6143 |   for ac_prog in ar aal | 
 | 6144 |   do | 
 | 6145 |     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
 | 6146 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6147 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 6148 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 6149 | if ${ac_cv_prog_AR+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6150 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6151 | else | 
 | 6152 |   if test -n "$AR"; then | 
 | 6153 |   ac_cv_prog_AR="$AR" # Let the user override the test. | 
 | 6154 | else | 
 | 6155 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 6156 | for as_dir in $PATH | 
 | 6157 | do | 
 | 6158 |   IFS=$as_save_IFS | 
 | 6159 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6160 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 6161 |   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] | 6162 |     ac_cv_prog_AR="$ac_tool_prefix$ac_prog" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6163 |     $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] | 6164 |     break 2 | 
 | 6165 |   fi | 
 | 6166 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6167 |   done | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6168 | IFS=$as_save_IFS | 
 | 6169 |  | 
 | 6170 | fi | 
 | 6171 | fi | 
 | 6172 | AR=$ac_cv_prog_AR | 
 | 6173 | if test -n "$AR"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6174 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | 
 | 6175 | $as_echo "$AR" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6176 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6177 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 6178 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6179 | fi | 
 | 6180 |  | 
 | 6181 |  | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 6182 |     test -n "$AR" && break | 
 | 6183 |   done | 
 | 6184 | fi | 
 | 6185 | if test -z "$AR"; then | 
 | 6186 |   ac_ct_AR=$AR | 
 | 6187 |   for ac_prog in ar aal | 
 | 6188 | do | 
 | 6189 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 6190 | set dummy $ac_prog; ac_word=$2 | 
 | 6191 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 6192 | $as_echo_n "checking for $ac_word... " >&6; } | 
 | 6193 | if ${ac_cv_prog_ac_ct_AR+:} false; then : | 
 | 6194 |   $as_echo_n "(cached) " >&6 | 
 | 6195 | else | 
 | 6196 |   if test -n "$ac_ct_AR"; then | 
 | 6197 |   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | 
 | 6198 | else | 
 | 6199 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 6200 | for as_dir in $PATH | 
 | 6201 | do | 
 | 6202 |   IFS=$as_save_IFS | 
 | 6203 |   test -z "$as_dir" && as_dir=. | 
 | 6204 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 6205 |   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] | 6206 |     ac_cv_prog_ac_ct_AR="$ac_prog" | 
 | 6207 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 6208 |     break 2 | 
 | 6209 |   fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6210 | done | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 6211 |   done | 
 | 6212 | IFS=$as_save_IFS | 
 | 6213 |  | 
 | 6214 | fi | 
 | 6215 | fi | 
 | 6216 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | 
 | 6217 | if test -n "$ac_ct_AR"; then | 
 | 6218 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | 
 | 6219 | $as_echo "$ac_ct_AR" >&6; } | 
 | 6220 | else | 
 | 6221 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 6222 | $as_echo "no" >&6; } | 
 | 6223 | fi | 
 | 6224 |  | 
 | 6225 |  | 
 | 6226 |   test -n "$ac_ct_AR" && break | 
 | 6227 | done | 
 | 6228 |  | 
 | 6229 |   if test "x$ac_ct_AR" = x; then | 
 | 6230 |     AR="ar" | 
 | 6231 |   else | 
 | 6232 |     case $cross_compiling:$ac_tool_warned in | 
 | 6233 | yes:) | 
 | 6234 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 6235 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
 | 6236 | ac_tool_warned=yes ;; | 
 | 6237 | esac | 
 | 6238 |     AR=$ac_ct_AR | 
 | 6239 |   fi | 
 | 6240 | fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6241 |  | 
 | 6242 |  | 
 | 6243 | # tweak ARFLAGS only if the user didn't set it on the command line | 
 | 6244 |  | 
 | 6245 | if test -z "$ARFLAGS" | 
 | 6246 | then | 
 | 6247 |         ARFLAGS="rc" | 
 | 6248 | fi | 
 | 6249 |  | 
| doko@ubuntu.com | 5884449 | 2012-06-30 18:25:32 +0200 | [diff] [blame] | 6250 | if test -n "$ac_tool_prefix"; then | 
 | 6251 |   for ac_prog in readelf | 
 | 6252 |   do | 
 | 6253 |     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
 | 6254 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
 | 6255 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 6256 | $as_echo_n "checking for $ac_word... " >&6; } | 
 | 6257 | if ${ac_cv_prog_READELF+:} false; then : | 
 | 6258 |   $as_echo_n "(cached) " >&6 | 
 | 6259 | else | 
 | 6260 |   if test -n "$READELF"; then | 
 | 6261 |   ac_cv_prog_READELF="$READELF" # Let the user override the test. | 
 | 6262 | else | 
 | 6263 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 6264 | for as_dir in $PATH | 
 | 6265 | do | 
 | 6266 |   IFS=$as_save_IFS | 
 | 6267 |   test -z "$as_dir" && as_dir=. | 
 | 6268 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 6269 |   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] | 6270 |     ac_cv_prog_READELF="$ac_tool_prefix$ac_prog" | 
 | 6271 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 6272 |     break 2 | 
 | 6273 |   fi | 
 | 6274 | done | 
 | 6275 |   done | 
 | 6276 | IFS=$as_save_IFS | 
 | 6277 |  | 
 | 6278 | fi | 
 | 6279 | fi | 
 | 6280 | READELF=$ac_cv_prog_READELF | 
 | 6281 | if test -n "$READELF"; then | 
 | 6282 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | 
 | 6283 | $as_echo "$READELF" >&6; } | 
 | 6284 | else | 
 | 6285 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 6286 | $as_echo "no" >&6; } | 
 | 6287 | fi | 
 | 6288 |  | 
 | 6289 |  | 
 | 6290 |     test -n "$READELF" && break | 
 | 6291 |   done | 
 | 6292 | fi | 
 | 6293 | if test -z "$READELF"; then | 
 | 6294 |   ac_ct_READELF=$READELF | 
 | 6295 |   for ac_prog in readelf | 
 | 6296 | do | 
 | 6297 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 6298 | set dummy $ac_prog; ac_word=$2 | 
 | 6299 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 6300 | $as_echo_n "checking for $ac_word... " >&6; } | 
 | 6301 | if ${ac_cv_prog_ac_ct_READELF+:} false; then : | 
 | 6302 |   $as_echo_n "(cached) " >&6 | 
 | 6303 | else | 
 | 6304 |   if test -n "$ac_ct_READELF"; then | 
 | 6305 |   ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test. | 
 | 6306 | else | 
 | 6307 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 6308 | for as_dir in $PATH | 
 | 6309 | do | 
 | 6310 |   IFS=$as_save_IFS | 
 | 6311 |   test -z "$as_dir" && as_dir=. | 
 | 6312 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 6313 |   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] | 6314 |     ac_cv_prog_ac_ct_READELF="$ac_prog" | 
 | 6315 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 6316 |     break 2 | 
 | 6317 |   fi | 
 | 6318 | done | 
 | 6319 |   done | 
 | 6320 | IFS=$as_save_IFS | 
 | 6321 |  | 
 | 6322 | fi | 
 | 6323 | fi | 
 | 6324 | ac_ct_READELF=$ac_cv_prog_ac_ct_READELF | 
 | 6325 | if test -n "$ac_ct_READELF"; then | 
 | 6326 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5 | 
 | 6327 | $as_echo "$ac_ct_READELF" >&6; } | 
 | 6328 | else | 
 | 6329 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 6330 | $as_echo "no" >&6; } | 
 | 6331 | fi | 
 | 6332 |  | 
 | 6333 |  | 
 | 6334 |   test -n "$ac_ct_READELF" && break | 
 | 6335 | done | 
 | 6336 |  | 
 | 6337 |   if test "x$ac_ct_READELF" = x; then | 
 | 6338 |     READELF=":" | 
 | 6339 |   else | 
 | 6340 |     case $cross_compiling:$ac_tool_warned in | 
 | 6341 | yes:) | 
 | 6342 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 6343 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
 | 6344 | ac_tool_warned=yes ;; | 
 | 6345 | esac | 
 | 6346 |     READELF=$ac_ct_READELF | 
 | 6347 |   fi | 
 | 6348 | fi | 
 | 6349 |  | 
 | 6350 | if test "$cross_compiling" = yes; then | 
 | 6351 |     case "$READELF" in | 
 | 6352 | 	readelf|:) | 
 | 6353 | 	as_fn_error $? "readelf for the host is required for cross builds" "$LINENO" 5 | 
 | 6354 | 	;; | 
 | 6355 |     esac | 
 | 6356 | fi | 
 | 6357 |  | 
 | 6358 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6359 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6360 | case $MACHDEP in | 
 | 6361 | bsdos*|hp*|HP*) | 
 | 6362 | 	# install -d does not work on BSDI or HP-UX | 
 | 6363 | 	if test -z "$INSTALL" | 
 | 6364 | 	then | 
 | 6365 | 		INSTALL="${srcdir}/install-sh -c" | 
 | 6366 | 	fi | 
 | 6367 | esac | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6368 | # Find a good install program.  We prefer a C program (faster), | 
 | 6369 | # so one script is as good as another.  But avoid the broken or | 
 | 6370 | # incompatible versions: | 
 | 6371 | # SysV /etc/install, /usr/sbin/install | 
 | 6372 | # SunOS /usr/etc/install | 
 | 6373 | # IRIX /sbin/install | 
 | 6374 | # AIX /bin/install | 
 | 6375 | # AmigaOS /C/install, which installs bootblocks on floppy discs | 
 | 6376 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | 
 | 6377 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | 
 | 6378 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | 
 | 6379 | # OS/2's system install, which has a completely different semantic | 
 | 6380 | # ./install, which can be erroneously created by make from ./install.sh. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6381 | # Reject install programs that cannot install multiple files. | 
 | 6382 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | 
 | 6383 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6384 | if test -z "$INSTALL"; then | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 6385 | if ${ac_cv_path_install+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6386 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6387 | else | 
 | 6388 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 6389 | for as_dir in $PATH | 
 | 6390 | do | 
 | 6391 |   IFS=$as_save_IFS | 
 | 6392 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6393 |     # Account for people who put trailing slashes in PATH elements. | 
 | 6394 | case $as_dir/ in #(( | 
 | 6395 |   ./ | .// | /[cC]/* | \ | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6396 |   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6397 |   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6398 |   /usr/ucb/* ) ;; | 
 | 6399 |   *) | 
 | 6400 |     # OSF1 and SCO ODT 3.0 have their own names for install. | 
 | 6401 |     # Don't use installbsd from OSF since it installs stuff as root | 
 | 6402 |     # by default. | 
 | 6403 |     for ac_prog in ginstall scoinst install; do | 
 | 6404 |       for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 6405 | 	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] | 6406 | 	  if test $ac_prog = install && | 
 | 6407 | 	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | 
 | 6408 | 	    # AIX install.  It has an incompatible calling convention. | 
 | 6409 | 	    : | 
 | 6410 | 	  elif test $ac_prog = install && | 
 | 6411 | 	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | 
 | 6412 | 	    # program-specific install script used by HP pwplus--don't use. | 
 | 6413 | 	    : | 
 | 6414 | 	  else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6415 | 	    rm -rf conftest.one conftest.two conftest.dir | 
 | 6416 | 	    echo one > conftest.one | 
 | 6417 | 	    echo two > conftest.two | 
 | 6418 | 	    mkdir conftest.dir | 
 | 6419 | 	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | 
 | 6420 | 	      test -s conftest.one && test -s conftest.two && | 
 | 6421 | 	      test -s conftest.dir/conftest.one && | 
 | 6422 | 	      test -s conftest.dir/conftest.two | 
 | 6423 | 	    then | 
 | 6424 | 	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | 
 | 6425 | 	      break 3 | 
 | 6426 | 	    fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6427 | 	  fi | 
 | 6428 | 	fi | 
 | 6429 |       done | 
 | 6430 |     done | 
 | 6431 |     ;; | 
 | 6432 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6433 |  | 
 | 6434 |   done | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6435 | IFS=$as_save_IFS | 
 | 6436 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6437 | rm -rf conftest.one conftest.two conftest.dir | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6438 |  | 
 | 6439 | fi | 
 | 6440 |   if test "${ac_cv_path_install+set}" = set; then | 
 | 6441 |     INSTALL=$ac_cv_path_install | 
 | 6442 |   else | 
 | 6443 |     # As a last resort, use the slow shell script.  Don't cache a | 
 | 6444 |     # value for INSTALL within a source directory, because that will | 
 | 6445 |     # break other packages using the cache if that directory is | 
 | 6446 |     # removed, or if the value is a relative name. | 
 | 6447 |     INSTALL=$ac_install_sh | 
 | 6448 |   fi | 
 | 6449 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | 
 | 6451 | $as_echo "$INSTALL" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6452 |  | 
 | 6453 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | 
 | 6454 | # It thinks the first close brace ends the variable substitution. | 
 | 6455 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | 
 | 6456 |  | 
 | 6457 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | 
 | 6458 |  | 
 | 6459 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | 
 | 6460 |  | 
| Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 6461 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | 
 | 6462 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | 
 | 6463 | if test -z "$MKDIR_P"; then | 
 | 6464 |   if ${ac_cv_path_mkdir+:} false; then : | 
 | 6465 |   $as_echo_n "(cached) " >&6 | 
 | 6466 | else | 
 | 6467 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 6468 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | 
 | 6469 | do | 
 | 6470 |   IFS=$as_save_IFS | 
 | 6471 |   test -z "$as_dir" && as_dir=. | 
 | 6472 |     for ac_prog in mkdir gmkdir; do | 
 | 6473 | 	 for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 6474 | 	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue | 
| Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 6475 | 	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | 
 | 6476 | 	     'mkdir (GNU coreutils) '* | \ | 
 | 6477 | 	     'mkdir (coreutils) '* | \ | 
 | 6478 | 	     'mkdir (fileutils) '4.1*) | 
 | 6479 | 	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | 
 | 6480 | 	       break 3;; | 
 | 6481 | 	   esac | 
 | 6482 | 	 done | 
 | 6483 |        done | 
 | 6484 |   done | 
 | 6485 | IFS=$as_save_IFS | 
 | 6486 |  | 
 | 6487 | fi | 
 | 6488 |  | 
 | 6489 |   test -d ./--version && rmdir ./--version | 
 | 6490 |   if test "${ac_cv_path_mkdir+set}" = set; then | 
 | 6491 |     MKDIR_P="$ac_cv_path_mkdir -p" | 
 | 6492 |   else | 
 | 6493 |     # As a last resort, use the slow shell script.  Don't cache a | 
 | 6494 |     # value for MKDIR_P within a source directory, because that will | 
 | 6495 |     # break other packages using the cache if that directory is | 
 | 6496 |     # removed, or if the value is a relative name. | 
 | 6497 |     MKDIR_P="$ac_install_sh -d" | 
 | 6498 |   fi | 
 | 6499 | fi | 
 | 6500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | 
 | 6501 | $as_echo "$MKDIR_P" >&6; } | 
 | 6502 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6503 |  | 
 | 6504 | # Not every filesystem supports hard links | 
 | 6505 |  | 
 | 6506 | if test -z "$LN" ; then | 
 | 6507 | 	case $ac_sys_system in | 
 | 6508 | 		CYGWIN*) LN="ln -s";; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6509 | 		*) LN=ln;; | 
 | 6510 | 	esac | 
 | 6511 | fi | 
 | 6512 |  | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 6513 | # For calculating the .so ABI tag. | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 6514 |  | 
 | 6515 | ABIFLAGS="" | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 6516 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6517 | # Check for --with-pydebug | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6518 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pydebug" >&5 | 
 | 6519 | $as_echo_n "checking for --with-pydebug... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6520 |  | 
 | 6521 | # Check whether --with-pydebug was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6522 | if test "${with_pydebug+set}" = set; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6523 |   withval=$with_pydebug; | 
 | 6524 | if test "$withval" != no | 
 | 6525 | then | 
 | 6526 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6527 | $as_echo "#define Py_DEBUG 1" >>confdefs.h | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6528 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6529 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 6530 | $as_echo "yes" >&6; }; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6531 |   Py_DEBUG='true' | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 6532 |   ABIFLAGS="${ABIFLAGS}d" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6533 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 6534 | $as_echo "no" >&6; }; Py_DEBUG='false' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6535 | fi | 
 | 6536 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6537 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 6538 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6539 | fi | 
 | 6540 |  | 
 | 6541 |  | 
| Brett Cannon | 8c94f97 | 2016-09-06 17:15:21 -0700 | [diff] [blame] | 6542 | # Enable optimization flags | 
 | 6543 |  | 
 | 6544 |  | 
 | 6545 | Py_OPT='false' | 
 | 6546 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-optimizations" >&5 | 
 | 6547 | $as_echo_n "checking for --with-optimizations... " >&6; } | 
 | 6548 |  | 
 | 6549 | # Check whether --with-optimizations was given. | 
 | 6550 | if test "${with_optimizations+set}" = set; then : | 
 | 6551 |   withval=$with_optimizations; | 
 | 6552 | if test "$withval" != no | 
 | 6553 | then | 
 | 6554 |   Py_OPT='true' | 
 | 6555 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 6556 | $as_echo "yes" >&6; }; | 
 | 6557 | else | 
 | 6558 |   Py_OPT='false' | 
 | 6559 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 6560 | $as_echo "no" >&6; }; | 
 | 6561 | fi | 
 | 6562 | else | 
 | 6563 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 6564 | $as_echo "no" >&6; } | 
 | 6565 | fi | 
 | 6566 |  | 
 | 6567 | if test "$Py_OPT" = 'true' ; then | 
| Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) | 14c7f71 | 2016-09-08 22:38:46 +0000 | [diff] [blame] | 6568 |   # Intentionally not forcing Py_LTO='true' here.  Too many toolchains do not | 
 | 6569 |   # compile working code using it and both test_distutils and test_gdb are | 
 | 6570 |   # broken when you do managed to get a toolchain that works with it.  People | 
 | 6571 |   # who want LTO need to use --with-lto themselves. | 
| Brett Cannon | 8c94f97 | 2016-09-06 17:15:21 -0700 | [diff] [blame] | 6572 |   DEF_MAKE_ALL_RULE="profile-opt" | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6573 |   REQUIRE_PGO="yes" | 
| Brett Cannon | 8c94f97 | 2016-09-06 17:15:21 -0700 | [diff] [blame] | 6574 |   DEF_MAKE_RULE="build_all" | 
 | 6575 | else | 
 | 6576 |   DEF_MAKE_ALL_RULE="build_all" | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6577 |   REQUIRE_PGO="no" | 
| Brett Cannon | 8c94f97 | 2016-09-06 17:15:21 -0700 | [diff] [blame] | 6578 |   DEF_MAKE_RULE="all" | 
 | 6579 | fi | 
 | 6580 |  | 
| Gregory P. Smith | d82da9f | 2016-04-15 16:57:04 -0700 | [diff] [blame] | 6581 | # Enable LTO flags | 
 | 6582 |  | 
 | 6583 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-lto" >&5 | 
 | 6584 | $as_echo_n "checking for --with-lto... " >&6; } | 
 | 6585 |  | 
 | 6586 | # Check whether --with-lto was given. | 
 | 6587 | if test "${with_lto+set}" = set; then : | 
 | 6588 |   withval=$with_lto; | 
 | 6589 | if test "$withval" != no | 
 | 6590 | then | 
 | 6591 |   Py_LTO='true' | 
 | 6592 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 6593 | $as_echo "yes" >&6; }; | 
 | 6594 | else | 
 | 6595 |   Py_LTO='false' | 
 | 6596 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 6597 | $as_echo "no" >&6; }; | 
 | 6598 | fi | 
 | 6599 | else | 
 | 6600 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 6601 | $as_echo "no" >&6; } | 
 | 6602 | fi | 
 | 6603 |  | 
 | 6604 | if test "$Py_LTO" = 'true' ; then | 
 | 6605 |   case $CC in | 
 | 6606 |     *clang*) | 
 | 6607 |       # Any changes made here should be reflected in the GCC+Darwin case below | 
 | 6608 |       LTOFLAGS="-flto" | 
 | 6609 |       ;; | 
 | 6610 |     *gcc*) | 
 | 6611 |       case $ac_sys_system in | 
 | 6612 |         Darwin*) | 
 | 6613 |           LTOFLAGS="-flto" | 
 | 6614 |           ;; | 
 | 6615 |         *) | 
 | 6616 |           LTOFLAGS="-flto -fuse-linker-plugin -ffat-lto-objects -flto-partition=none" | 
 | 6617 |           ;; | 
 | 6618 |       esac | 
 | 6619 |       ;; | 
 | 6620 |   esac | 
 | 6621 | fi | 
 | 6622 |  | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6623 | # Enable PGO flags. | 
| Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 6624 |  | 
 | 6625 |  | 
 | 6626 |  | 
 | 6627 |  | 
 | 6628 |  | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6629 | # Make this work on systems where llvm tools are not installed with their | 
 | 6630 | # normal names in the default $PATH (ie: Ubuntu).  They exist under the | 
 | 6631 | # non-suffixed name in their versioned llvm directory. | 
 | 6632 | llvm_bin_dir='' | 
 | 6633 | llvm_path="${PATH}" | 
 | 6634 | if test "${CC}" = "clang" | 
 | 6635 | then | 
 | 6636 |   clang_bin=`which clang` | 
 | 6637 |   # Some systems install clang elsewhere as a symlink to the real path | 
 | 6638 |   # which is where the related llvm tools are located. | 
 | 6639 |   if test -L "${clang_bin}" | 
 | 6640 |   then | 
 | 6641 |     clang_dir=`dirname "${clang_bin}"` | 
 | 6642 |     clang_bin=`readlink "${clang_bin}"` | 
 | 6643 |     llvm_bin_dir="${clang_dir}/"`dirname "${clang_bin}"` | 
 | 6644 |     llvm_path="${llvm_path}${PATH_SEPARATOR}${llvm_bin_dir}" | 
 | 6645 |   fi | 
 | 6646 | fi | 
| Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 6647 |  | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6648 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 | 
 | 6649 | $as_echo_n "checking target system type... " >&6; } | 
 | 6650 | if ${ac_cv_target+:} false; then : | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6651 |   $as_echo_n "(cached) " >&6 | 
 | 6652 | else | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6653 |   if test "x$target_alias" = x; then | 
 | 6654 |   ac_cv_target=$ac_cv_host | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6655 | else | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6656 |   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | 
 | 6657 |     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 | 
 | 6658 | fi | 
 | 6659 |  | 
 | 6660 | fi | 
 | 6661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 | 
 | 6662 | $as_echo "$ac_cv_target" >&6; } | 
 | 6663 | case $ac_cv_target in | 
 | 6664 | *-*-*) ;; | 
 | 6665 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; | 
 | 6666 | esac | 
 | 6667 | target=$ac_cv_target | 
 | 6668 | ac_save_IFS=$IFS; IFS='-' | 
 | 6669 | set x $ac_cv_target | 
 | 6670 | shift | 
 | 6671 | target_cpu=$1 | 
 | 6672 | target_vendor=$2 | 
 | 6673 | shift; shift | 
 | 6674 | # Remember, the first character of IFS is used to create $*, | 
 | 6675 | # except with old shells: | 
 | 6676 | target_os=$* | 
 | 6677 | IFS=$ac_save_IFS | 
 | 6678 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | 
 | 6679 |  | 
 | 6680 |  | 
 | 6681 | # The aliases save the names the user supplied, while $host etc. | 
 | 6682 | # will get canonicalized. | 
 | 6683 | test -n "$target_alias" && | 
 | 6684 |   test "$program_prefix$program_suffix$program_transform_name" = \ | 
 | 6685 |     NONENONEs,x,x, && | 
 | 6686 |   program_prefix=${target_alias}- | 
 | 6687 | # Extract the first word of "$target_alias-llvm-profdata", so it can be a program name with args. | 
 | 6688 | set dummy $target_alias-llvm-profdata; ac_word=$2 | 
 | 6689 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 6690 | $as_echo_n "checking for $ac_word... " >&6; } | 
 | 6691 | if ${ac_cv_path_LLVM_PROFDATA+:} false; then : | 
 | 6692 |   $as_echo_n "(cached) " >&6 | 
 | 6693 | else | 
 | 6694 |   case $LLVM_PROFDATA in | 
 | 6695 |   [\\/]* | ?:[\\/]*) | 
 | 6696 |   ac_cv_path_LLVM_PROFDATA="$LLVM_PROFDATA" # Let the user override the test with a path. | 
 | 6697 |   ;; | 
 | 6698 |   *) | 
 | 6699 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 6700 | for as_dir in ${llvm_path} | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6701 | do | 
 | 6702 |   IFS=$as_save_IFS | 
 | 6703 |   test -z "$as_dir" && as_dir=. | 
 | 6704 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 6705 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6706 |     ac_cv_path_LLVM_PROFDATA="$as_dir/$ac_word$ac_exec_ext" | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6707 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 6708 |     break 2 | 
 | 6709 |   fi | 
 | 6710 | done | 
 | 6711 |   done | 
 | 6712 | IFS=$as_save_IFS | 
 | 6713 |  | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6714 |   ;; | 
 | 6715 | esac | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6716 | fi | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6717 | LLVM_PROFDATA=$ac_cv_path_LLVM_PROFDATA | 
 | 6718 | if test -n "$LLVM_PROFDATA"; then | 
 | 6719 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_PROFDATA" >&5 | 
 | 6720 | $as_echo "$LLVM_PROFDATA" >&6; } | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6721 | else | 
 | 6722 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 6723 | $as_echo "no" >&6; } | 
 | 6724 | fi | 
 | 6725 |  | 
 | 6726 |  | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6727 | if test -z "$ac_cv_path_LLVM_PROFDATA"; then | 
 | 6728 |   if test "$build" = "$target"; then | 
 | 6729 |     ac_pt_LLVM_PROFDATA=$LLVM_PROFDATA | 
 | 6730 |     # Extract the first word of "llvm-profdata", so it can be a program name with args. | 
 | 6731 | set dummy llvm-profdata; ac_word=$2 | 
 | 6732 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 6733 | $as_echo_n "checking for $ac_word... " >&6; } | 
 | 6734 | if ${ac_cv_path_ac_pt_LLVM_PROFDATA+:} false; then : | 
 | 6735 |   $as_echo_n "(cached) " >&6 | 
 | 6736 | else | 
 | 6737 |   case $ac_pt_LLVM_PROFDATA in | 
 | 6738 |   [\\/]* | ?:[\\/]*) | 
 | 6739 |   ac_cv_path_ac_pt_LLVM_PROFDATA="$ac_pt_LLVM_PROFDATA" # Let the user override the test with a path. | 
 | 6740 |   ;; | 
 | 6741 |   *) | 
 | 6742 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 6743 | for as_dir in ${llvm_path} | 
 | 6744 | do | 
 | 6745 |   IFS=$as_save_IFS | 
 | 6746 |   test -z "$as_dir" && as_dir=. | 
 | 6747 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 6748 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 6749 |     ac_cv_path_ac_pt_LLVM_PROFDATA="$as_dir/$ac_word$ac_exec_ext" | 
 | 6750 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 6751 |     break 2 | 
 | 6752 |   fi | 
 | 6753 | done | 
 | 6754 |   done | 
 | 6755 | IFS=$as_save_IFS | 
 | 6756 |  | 
 | 6757 |   test -z "$ac_cv_path_ac_pt_LLVM_PROFDATA" && ac_cv_path_ac_pt_LLVM_PROFDATA="''" | 
 | 6758 |   ;; | 
 | 6759 | esac | 
 | 6760 | fi | 
 | 6761 | ac_pt_LLVM_PROFDATA=$ac_cv_path_ac_pt_LLVM_PROFDATA | 
 | 6762 | if test -n "$ac_pt_LLVM_PROFDATA"; then | 
 | 6763 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LLVM_PROFDATA" >&5 | 
 | 6764 | $as_echo "$ac_pt_LLVM_PROFDATA" >&6; } | 
 | 6765 | else | 
 | 6766 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 6767 | $as_echo "no" >&6; } | 
 | 6768 | fi | 
 | 6769 |  | 
 | 6770 |     LLVM_PROFDATA=$ac_pt_LLVM_PROFDATA | 
 | 6771 |   else | 
 | 6772 |     LLVM_PROFDATA="''" | 
 | 6773 |   fi | 
 | 6774 | else | 
 | 6775 |   LLVM_PROFDATA="$ac_cv_path_LLVM_PROFDATA" | 
 | 6776 | fi | 
 | 6777 |  | 
 | 6778 |  | 
 | 6779 | if test -n "${LLVM_PROFDATA}" -a -x "${LLVM_PROFDATA}" | 
 | 6780 | then | 
 | 6781 |   LLVM_PROF_FOUND="found" | 
 | 6782 | else | 
 | 6783 |   LLVM_PROF_FOUND="not-found" | 
 | 6784 | fi | 
 | 6785 | if test "$ac_sys_system" = "Darwin" -a "${LLVM_PROF_FOUND}" = "not-found" | 
 | 6786 | then | 
 | 6787 |   found_llvm_profdata=`/usr/bin/xcrun -find llvm-profdata 2>/dev/null` | 
 | 6788 |   if test -n "${found_llvm_profdata}" | 
 | 6789 |   then | 
 | 6790 |     # llvm-profdata isn't directly in $PATH in some cases. | 
 | 6791 |     # https://apple.stackexchange.com/questions/197053/ | 
 | 6792 |     LLVM_PROFDATA='/usr/bin/xcrun llvm-profdata' | 
 | 6793 |     LLVM_PROF_FOUND=found | 
 | 6794 |     { $as_echo "$as_me:${as_lineno-$LINENO}: llvm-profdata found via xcrun: ${LLVM_PROFDATA}" >&5 | 
 | 6795 | $as_echo "$as_me: llvm-profdata found via xcrun: ${LLVM_PROFDATA}" >&6;} | 
 | 6796 |   fi | 
 | 6797 | fi | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6798 | LLVM_PROF_ERR=no | 
 | 6799 | case $CC in | 
 | 6800 |   *clang*) | 
 | 6801 |     # Any changes made here should be reflected in the GCC+Darwin case below | 
 | 6802 |     PGO_PROF_GEN_FLAG="-fprofile-instr-generate" | 
 | 6803 |     PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd" | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6804 |     LLVM_PROF_MERGER="${LLVM_PROFDATA} merge -output=code.profclangd *.profclangr" | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6805 |     LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"code-%p.profclangr\"" | 
 | 6806 |     if test $LLVM_PROF_FOUND = not-found | 
 | 6807 |     then | 
 | 6808 |       LLVM_PROF_ERR=yes | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6809 |       if test "${REQUIRE_PGO}" = "yes" | 
 | 6810 |       then | 
 | 6811 |         as_fn_error $? "llvm-profdata is required for a --with-optimizations build but could not be found." "$LINENO" 5 | 
 | 6812 |       fi | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6813 |     fi | 
 | 6814 |     ;; | 
 | 6815 |   *gcc*) | 
 | 6816 |     case $ac_sys_system in | 
 | 6817 |       Darwin*) | 
 | 6818 |         PGO_PROF_GEN_FLAG="-fprofile-instr-generate" | 
 | 6819 |         PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd" | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6820 |         LLVM_PROF_MERGER="${LLVM_PROFDATA} merge -output=code.profclangd *.profclangr" | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6821 |         LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"code-%p.profclangr\"" | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6822 |         if test "${LLVM_PROF_FOUND}" = "not-found" | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6823 |         then | 
 | 6824 |           LLVM_PROF_ERR=yes | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6825 |           if test "${REQUIRE_PGO}" = "yes" | 
 | 6826 | 	  then | 
 | 6827 | 	    as_fn_error $? "llvm-profdata is required for a --with-optimizations build but could not be found." "$LINENO" 5 | 
 | 6828 | 	  fi | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6829 |         fi | 
 | 6830 |         ;; | 
 | 6831 |       *) | 
 | 6832 |         PGO_PROF_GEN_FLAG="-fprofile-generate" | 
 | 6833 |         PGO_PROF_USE_FLAG="-fprofile-use -fprofile-correction" | 
 | 6834 |         LLVM_PROF_MERGER="true" | 
 | 6835 |         LLVM_PROF_FILE="" | 
 | 6836 |         ;; | 
 | 6837 |     esac | 
 | 6838 |     ;; | 
| Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 6839 |   *icc*) | 
 | 6840 |     PGO_PROF_GEN_FLAG="-prof-gen" | 
 | 6841 |     PGO_PROF_USE_FLAG="-prof-use" | 
 | 6842 |     LLVM_PROF_MERGER="true" | 
 | 6843 |     LLVM_PROF_FILE="" | 
 | 6844 |     ;; | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6845 | esac | 
 | 6846 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6847 | # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be | 
 | 6848 | # merged with this chunk of code? | 
 | 6849 |  | 
 | 6850 | # Optimizer/debugger flags | 
 | 6851 | # ------------------------ | 
 | 6852 | # (The following bit of code is complicated enough - please keep things | 
 | 6853 | # indented properly.  Just pretend you're editing Python code. ;-) | 
 | 6854 |  | 
 | 6855 | # There are two parallel sets of case statements below, one that checks to | 
 | 6856 | # see if OPT was set and one that does BASECFLAGS setting based upon | 
 | 6857 | # compiler and platform.  BASECFLAGS tweaks need to be made even if the | 
 | 6858 | # user set OPT. | 
 | 6859 |  | 
 | 6860 | # tweak OPT based on compiler and platform, only if the user didn't set | 
 | 6861 | # it on the command line | 
 | 6862 |  | 
| Benjamin Peterson | 65b4ec5 | 2010-03-23 21:02:34 +0000 | [diff] [blame] | 6863 | if test "${OPT-unset}" = "unset" | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6864 | then | 
 | 6865 |     case $GCC in | 
 | 6866 |     yes) | 
 | 6867 |         if test "$CC" != 'g++' ; then | 
 | 6868 | 	    STRICT_PROTO="-Wstrict-prototypes" | 
 | 6869 | 	fi | 
 | 6870 |         # For gcc 4.x we need to use -fwrapv so lets check if its supported | 
 | 6871 |         if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then | 
 | 6872 |            WRAP="-fwrapv" | 
 | 6873 |         fi | 
| Stefan Krah | 962055d | 2011-09-14 15:14:08 +0200 | [diff] [blame] | 6874 |  | 
 | 6875 |         # Clang also needs -fwrapv | 
| Stefan Krah | af04ff2 | 2011-12-08 22:20:31 +0100 | [diff] [blame] | 6876 |         case $CC in | 
 | 6877 |             *clang*) WRAP="-fwrapv" | 
 | 6878 |             ;; | 
 | 6879 |         esac | 
| Stefan Krah | 962055d | 2011-09-14 15:14:08 +0200 | [diff] [blame] | 6880 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6881 | 	case $ac_cv_prog_cc_g in | 
 | 6882 | 	yes) | 
 | 6883 | 	    if test "$Py_DEBUG" = 'true' ; then | 
 | 6884 | 		# Optimization messes up debuggers, so turn it off for | 
 | 6885 | 		# debug builds. | 
| Antoine Pitrou | 3d6c784 | 2015-02-11 19:39:16 +0100 | [diff] [blame] | 6886 |                 if "$CC" -v --help 2>/dev/null |grep -- -Og > /dev/null; then | 
 | 6887 |                     OPT="-g -Og -Wall $STRICT_PROTO" | 
 | 6888 |                 else | 
 | 6889 |                     OPT="-g -O0 -Wall $STRICT_PROTO" | 
 | 6890 |                 fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6891 | 	    else | 
 | 6892 | 		OPT="-g $WRAP -O3 -Wall $STRICT_PROTO" | 
 | 6893 | 	    fi | 
 | 6894 | 	    ;; | 
 | 6895 | 	*) | 
 | 6896 | 	    OPT="-O3 -Wall $STRICT_PROTO" | 
 | 6897 | 	    ;; | 
 | 6898 | 	esac | 
 | 6899 | 	case $ac_sys_system in | 
 | 6900 | 	    SCO_SV*) OPT="$OPT -m486 -DSCO5" | 
 | 6901 | 	    ;; | 
 | 6902 |         esac | 
 | 6903 | 	;; | 
 | 6904 |  | 
 | 6905 |     *) | 
 | 6906 | 	OPT="-O" | 
 | 6907 | 	;; | 
 | 6908 |     esac | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6909 | fi | 
 | 6910 |  | 
 | 6911 |  | 
 | 6912 |  | 
| Benjamin Peterson | acb8c52 | 2014-08-09 20:01:49 -0700 | [diff] [blame] | 6913 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6914 | # The -arch flags for universal builds on OSX | 
 | 6915 | UNIVERSAL_ARCH_FLAGS= | 
 | 6916 |  | 
 | 6917 |  | 
 | 6918 | # tweak BASECFLAGS based on compiler and platform | 
 | 6919 | case $GCC in | 
 | 6920 | yes) | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6921 |     # Python doesn't violate C99 aliasing rules, but older versions of | 
 | 6922 |     # GCC produce warnings for legal Python code.  Enable | 
 | 6923 |     # -fno-strict-aliasing on versions of GCC that support but produce | 
 | 6924 |     # warnings.  See Issue3326 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6925 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts and needs -fno-strict-aliasing" >&5 | 
 | 6926 | $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] | 6927 |      ac_save_cc="$CC" | 
 | 6928 |      CC="$CC -fno-strict-aliasing" | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6929 |      save_CFLAGS="$CFLAGS" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 6930 |      if ${ac_cv_no_strict_aliasing+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6931 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 6932 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6933 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6934 | /* end confdefs.h.  */ | 
| Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 +0000 | [diff] [blame] | 6935 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6936 |  | 
| Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 +0000 | [diff] [blame] | 6937 | int | 
 | 6938 | main () | 
 | 6939 | { | 
| Mark Dickinson | 8c2b6f1 | 2010-05-11 09:23:07 +0000 | [diff] [blame] | 6940 |  | 
| Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 +0000 | [diff] [blame] | 6941 |   ; | 
 | 6942 |   return 0; | 
 | 6943 | } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6944 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6945 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6946 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6947 |  | 
 | 6948 | 	   CC="$ac_save_cc -fstrict-aliasing" | 
 | 6949 |            CFLAGS="$CFLAGS -Werror -Wstrict-aliasing" | 
 | 6950 |            cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6951 | /* end confdefs.h.  */ | 
 | 6952 |  | 
| Mark Dickinson | 8c2b6f1 | 2010-05-11 09:23:07 +0000 | [diff] [blame] | 6953 | 	       void f(int **x) {} | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6954 | int | 
 | 6955 | main () | 
 | 6956 | { | 
| Mark Dickinson | 8c2b6f1 | 2010-05-11 09:23:07 +0000 | [diff] [blame] | 6957 | double *x; f((int **) &x); | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6958 |   ; | 
 | 6959 |   return 0; | 
 | 6960 | } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6961 |  | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6962 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6963 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6964 |  | 
 | 6965 | 	       ac_cv_no_strict_aliasing=no | 
 | 6966 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6967 | else | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6968 |  | 
 | 6969 |                ac_cv_no_strict_aliasing=yes | 
 | 6970 |  | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6971 | fi | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6972 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6973 |  | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6974 | else | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6975 |  | 
 | 6976 | 	   ac_cv_no_strict_aliasing=no | 
 | 6977 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6978 | fi | 
| Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 +0000 | [diff] [blame] | 6979 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 6980 | fi | 
 | 6981 |  | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6982 |      CFLAGS="$save_CFLAGS" | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6983 |      CC="$ac_save_cc" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6984 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_no_strict_aliasing" >&5 | 
 | 6985 | $as_echo "$ac_cv_no_strict_aliasing" >&6; } | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6986 |     if test $ac_cv_no_strict_aliasing = yes | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6987 |     then | 
 | 6988 |       BASECFLAGS="$BASECFLAGS -fno-strict-aliasing" | 
 | 6989 |     fi | 
 | 6990 |  | 
| Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 6991 |     # ICC doesn't recognize the option, but only emits a warning | 
 | 6992 |     ## XXX does it emit an unused result warning and can it be disabled? | 
 | 6993 |     case "$CC" in | 
 | 6994 |     *icc*) | 
 | 6995 |     ac_cv_disable_unused_result_warning=no | 
 | 6996 |     ;; | 
 | 6997 |     *) | 
| Benjamin Peterson | 7ddbf10 | 2011-09-23 13:23:22 -0400 | [diff] [blame] | 6998 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn off $CC unused result warning" >&5 | 
 | 6999 | $as_echo_n "checking if we can turn off $CC unused result warning... " >&6; } | 
 | 7000 |      ac_save_cc="$CC" | 
 | 7001 |      CC="$CC -Wunused-result -Werror" | 
 | 7002 |      save_CFLAGS="$CFLAGS" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7003 |      if ${ac_cv_disable_unused_result_warning+:} false; then : | 
| Benjamin Peterson | 7ddbf10 | 2011-09-23 13:23:22 -0400 | [diff] [blame] | 7004 |   $as_echo_n "(cached) " >&6 | 
 | 7005 | else | 
 | 7006 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 7007 | /* end confdefs.h.  */ | 
 | 7008 |  | 
 | 7009 |  | 
 | 7010 | int | 
 | 7011 | main () | 
 | 7012 | { | 
 | 7013 |  | 
 | 7014 |   ; | 
 | 7015 |   return 0; | 
 | 7016 | } | 
 | 7017 |  | 
 | 7018 | _ACEOF | 
 | 7019 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 7020 |  | 
 | 7021 |            ac_cv_disable_unused_result_warning=yes | 
 | 7022 |  | 
 | 7023 | else | 
 | 7024 |  | 
 | 7025 |            ac_cv_disable_unused_result_warning=no | 
 | 7026 |  | 
 | 7027 | fi | 
 | 7028 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 7029 | fi | 
 | 7030 |  | 
 | 7031 |      CFLAGS="$save_CFLAGS" | 
 | 7032 |      CC="$ac_save_cc" | 
 | 7033 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_unused_result_warning" >&5 | 
 | 7034 | $as_echo "$ac_cv_disable_unused_result_warning" >&6; } | 
| Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 7035 |     ;; | 
 | 7036 |     esac | 
| Benjamin Peterson | 7ddbf10 | 2011-09-23 13:23:22 -0400 | [diff] [blame] | 7037 |  | 
 | 7038 |     if test $ac_cv_disable_unused_result_warning = yes | 
 | 7039 |     then | 
 | 7040 |       BASECFLAGS="$BASECFLAGS -Wno-unused-result" | 
 | 7041 |     fi | 
 | 7042 |  | 
| Benjamin Peterson | cc00e01 | 2013-05-20 08:22:04 -0700 | [diff] [blame] | 7043 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Werror=declaration-after-statement" >&5 | 
 | 7044 | $as_echo_n "checking for -Werror=declaration-after-statement... " >&6; } | 
 | 7045 |      ac_save_cc="$CC" | 
 | 7046 |      CC="$CC -Werror=declaration-after-statement" | 
 | 7047 |      save_CFLAGS="$CFLAGS" | 
 | 7048 |      if ${ac_cv_declaration_after_statement_warning+:} false; then : | 
 | 7049 |   $as_echo_n "(cached) " >&6 | 
 | 7050 | else | 
 | 7051 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 7052 | /* end confdefs.h.  */ | 
 | 7053 |  | 
 | 7054 |  | 
 | 7055 | int | 
 | 7056 | main () | 
 | 7057 | { | 
 | 7058 |  | 
 | 7059 |   ; | 
 | 7060 |   return 0; | 
 | 7061 | } | 
 | 7062 |  | 
 | 7063 | _ACEOF | 
 | 7064 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 7065 |  | 
 | 7066 |            ac_cv_declaration_after_statement_warning=yes | 
 | 7067 |  | 
 | 7068 | else | 
 | 7069 |  | 
 | 7070 |            ac_cv_declaration_after_statement_warning=no | 
 | 7071 |  | 
 | 7072 | fi | 
 | 7073 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 7074 | fi | 
 | 7075 |  | 
 | 7076 |      CFLAGS="$save_CFLAGS" | 
 | 7077 |      CC="$ac_save_cc" | 
 | 7078 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_declaration_after_statement_warning" >&5 | 
 | 7079 | $as_echo "$ac_cv_declaration_after_statement_warning" >&6; } | 
 | 7080 |  | 
 | 7081 |     if test $ac_cv_declaration_after_statement_warning = yes | 
 | 7082 |     then | 
| Benjamin Peterson | acb8c52 | 2014-08-09 20:01:49 -0700 | [diff] [blame] | 7083 |       CFLAGS_NODIST="$CFLAGS_NODIST -Werror=declaration-after-statement" | 
| Benjamin Peterson | cc00e01 | 2013-05-20 08:22:04 -0700 | [diff] [blame] | 7084 |     fi | 
 | 7085 |  | 
| Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7086 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn on $CC mixed sign comparison warning" >&5 | 
 | 7087 | $as_echo_n "checking if we can turn on $CC mixed sign comparison warning... " >&6; } | 
 | 7088 |      ac_save_cc="$CC" | 
 | 7089 |      CC="$CC -Wsign-compare" | 
 | 7090 |      save_CFLAGS="$CFLAGS" | 
 | 7091 |      if ${ac_cv_enable_sign_compare_warning+:} false; then : | 
 | 7092 |   $as_echo_n "(cached) " >&6 | 
 | 7093 | else | 
 | 7094 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 7095 | /* end confdefs.h.  */ | 
 | 7096 |  | 
 | 7097 |  | 
 | 7098 | int | 
 | 7099 | main () | 
 | 7100 | { | 
 | 7101 |  | 
 | 7102 |   ; | 
 | 7103 |   return 0; | 
 | 7104 | } | 
 | 7105 |  | 
 | 7106 | _ACEOF | 
 | 7107 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 7108 |  | 
 | 7109 |            ac_cv_enable_sign_compare_warning=yes | 
 | 7110 |  | 
 | 7111 | else | 
 | 7112 |  | 
 | 7113 |            ac_cv_enable_sign_compare_warning=no | 
 | 7114 |  | 
 | 7115 | fi | 
 | 7116 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 7117 | fi | 
 | 7118 |  | 
 | 7119 |      CFLAGS="$save_CFLAGS" | 
 | 7120 |      CC="$ac_save_cc" | 
 | 7121 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_sign_compare_warning" >&5 | 
 | 7122 | $as_echo "$ac_cv_enable_sign_compare_warning" >&6; } | 
 | 7123 |  | 
 | 7124 |     if test $ac_cv_enable_sign_compare_warning = yes | 
 | 7125 |     then | 
 | 7126 |       BASECFLAGS="$BASECFLAGS -Wsign-compare" | 
 | 7127 |     fi | 
 | 7128 |  | 
 | 7129 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn on $CC unreachable code warning" >&5 | 
 | 7130 | $as_echo_n "checking if we can turn on $CC unreachable code warning... " >&6; } | 
 | 7131 |      ac_save_cc="$CC" | 
 | 7132 |      CC="$CC -Wunreachable-code" | 
 | 7133 |      save_CFLAGS="$CFLAGS" | 
 | 7134 |      if ${ac_cv_enable_unreachable_code_warning+:} false; then : | 
 | 7135 |   $as_echo_n "(cached) " >&6 | 
 | 7136 | else | 
 | 7137 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 7138 | /* end confdefs.h.  */ | 
 | 7139 |  | 
 | 7140 |  | 
 | 7141 | int | 
 | 7142 | main () | 
 | 7143 | { | 
 | 7144 |  | 
 | 7145 |   ; | 
 | 7146 |   return 0; | 
 | 7147 | } | 
 | 7148 |  | 
 | 7149 | _ACEOF | 
 | 7150 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 7151 |  | 
 | 7152 |            ac_cv_enable_unreachable_code_warning=yes | 
 | 7153 |  | 
 | 7154 | else | 
 | 7155 |  | 
 | 7156 |            ac_cv_enable_unreachable_code_warning=no | 
 | 7157 |  | 
 | 7158 | fi | 
 | 7159 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 7160 | fi | 
 | 7161 |  | 
 | 7162 |      CFLAGS="$save_CFLAGS" | 
 | 7163 |      CC="$ac_save_cc" | 
| Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7164 |  | 
 | 7165 |     # Don't enable unreachable code warning in debug mode, since it usually | 
 | 7166 |     # results in non-standard code paths. | 
| Ned Deily | bec699e | 2016-03-08 00:28:37 -0500 | [diff] [blame] | 7167 |     # Issue #24324: Unfortunately, the unreachable code warning does not work | 
 | 7168 |     # correctly on gcc and has been silently removed from the compiler. | 
 | 7169 |     # It is supported on clang but on OS X systems gcc may be an alias | 
 | 7170 |     # for clang.  Try to determine if the compiler is not really gcc and, | 
 | 7171 |     # if so, only then enable the warning. | 
 | 7172 |     if test $ac_cv_enable_unreachable_code_warning = yes && \ | 
 | 7173 |         test "$Py_DEBUG" != "true" && \ | 
 | 7174 |         test -z "`$CC --version 2>/dev/null | grep 'Free Software Foundation'`" | 
| Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7175 |     then | 
 | 7176 |       BASECFLAGS="$BASECFLAGS -Wunreachable-code" | 
| Ned Deily | bec699e | 2016-03-08 00:28:37 -0500 | [diff] [blame] | 7177 |     else | 
 | 7178 |       ac_cv_enable_unreachable_code_warning=no | 
| Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7179 |     fi | 
| Ned Deily | bec699e | 2016-03-08 00:28:37 -0500 | [diff] [blame] | 7180 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_unreachable_code_warning" >&5 | 
 | 7181 | $as_echo "$ac_cv_enable_unreachable_code_warning" >&6; } | 
| Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7182 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7183 |     # if using gcc on alpha, use -mieee to get (near) full IEEE 754 | 
 | 7184 |     # support.  Without this, treatment of subnormals doesn't follow | 
 | 7185 |     # the standard. | 
| Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 7186 |     case $host in | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7187 |          alpha*) | 
 | 7188 |                 BASECFLAGS="$BASECFLAGS -mieee" | 
 | 7189 |                 ;; | 
 | 7190 |     esac | 
 | 7191 |  | 
 | 7192 |     case $ac_sys_system in | 
 | 7193 | 	SCO_SV*) | 
 | 7194 | 	    BASECFLAGS="$BASECFLAGS -m486 -DSCO5" | 
 | 7195 | 	    ;; | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7196 |  | 
 | 7197 |     # is there any other compiler on Darwin besides gcc? | 
 | 7198 |     Darwin*) | 
 | 7199 |         # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd | 
 | 7200 |         # used to be here, but non-Apple gcc doesn't accept them. | 
 | 7201 |         if test "${CC}" = gcc | 
 | 7202 |         then | 
 | 7203 |             { $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] | 7204 | $as_echo_n "checking which compiler should be used... " >&6; } | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7205 |             case "${UNIVERSALSDK}" in | 
 | 7206 |             */MacOSX10.4u.sdk) | 
 | 7207 |                 # Build using 10.4 SDK, force usage of gcc when the | 
 | 7208 |                 # compiler is gcc, otherwise the user will get very | 
 | 7209 |                 # confusing error messages when building on OSX 10.6 | 
 | 7210 |                 CC=gcc-4.0 | 
 | 7211 |                 CPP=cpp-4.0 | 
 | 7212 |                 ;; | 
 | 7213 |             esac | 
 | 7214 |             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7215 | $as_echo "$CC" >&6; } | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7216 |         fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7217 |  | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7218 |         if test "${enable_universalsdk}" | 
 | 7219 |         then | 
 | 7220 |             case "$UNIVERSAL_ARCHS" in | 
 | 7221 |             32-bit) | 
 | 7222 |                UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386" | 
 | 7223 |                LIPO_32BIT_FLAGS="" | 
 | 7224 |                ARCH_RUN_32BIT="" | 
 | 7225 |                ;; | 
 | 7226 |             64-bit) | 
 | 7227 |                UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64" | 
 | 7228 |                LIPO_32BIT_FLAGS="" | 
 | 7229 |                ARCH_RUN_32BIT="true" | 
 | 7230 |                ;; | 
 | 7231 |             all) | 
 | 7232 |                UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64" | 
 | 7233 |                LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" | 
 | 7234 |                ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" | 
 | 7235 |                ;; | 
 | 7236 |             intel) | 
 | 7237 |                UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64" | 
 | 7238 |                LIPO_32BIT_FLAGS="-extract i386" | 
 | 7239 |                ARCH_RUN_32BIT="/usr/bin/arch -i386" | 
 | 7240 |                ;; | 
 | 7241 |             intel-32) | 
 | 7242 |                UNIVERSAL_ARCH_FLAGS="-arch i386" | 
 | 7243 |                LIPO_32BIT_FLAGS="" | 
 | 7244 |                ARCH_RUN_32BIT="" | 
 | 7245 |                ;; | 
 | 7246 |             3-way) | 
 | 7247 |                UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64" | 
 | 7248 |                LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" | 
 | 7249 |                ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" | 
 | 7250 |                ;; | 
 | 7251 |             *) | 
 | 7252 |                as_fn_error $? "proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" "$LINENO" 5 | 
 | 7253 |                ;; | 
 | 7254 |             esac | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7255 |  | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7256 |             CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}" | 
 | 7257 |             LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}" | 
 | 7258 |             if test "${UNIVERSALSDK}" != "/" | 
 | 7259 |             then | 
 | 7260 |                 CPPFLAGS="-isysroot ${UNIVERSALSDK} ${CPPFLAGS}" | 
 | 7261 |             fi | 
 | 7262 |         fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7263 |  | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7264 |         # Calculate an appropriate deployment target for this build: | 
 | 7265 |         # The deployment target value is used explicitly to enable certain | 
 | 7266 |         # features are enabled (such as builtin libedit support for readline) | 
| Martin Panter | 0be894b | 2016-09-07 12:03:06 +0000 | [diff] [blame] | 7267 |         # through the use of Apple's Availability Macros and is used as a | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7268 |         # component of the string returned by distutils.get_platform(). | 
 | 7269 |         # | 
 | 7270 |         # Use the value from: | 
 | 7271 |         # 1. the MACOSX_DEPLOYMENT_TARGET environment variable if specified | 
 | 7272 |         # 2. the operating system version of the build machine if >= 10.6 | 
 | 7273 |         # 3. If running on OS X 10.3 through 10.5, use the legacy tests | 
 | 7274 |         #       below to pick either 10.3, 10.4, or 10.5 as the target. | 
 | 7275 |         # 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] | 7276 |  | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7277 |         { $as_echo "$as_me:${as_lineno-$LINENO}: checking which MACOSX_DEPLOYMENT_TARGET to use" >&5 | 
 | 7278 | $as_echo_n "checking which MACOSX_DEPLOYMENT_TARGET to use... " >&6; } | 
| Ned Deily | 36820b6 | 2014-06-25 13:44:22 -0700 | [diff] [blame] | 7279 |         cur_target_major=`sw_vers -productVersion | \ | 
 | 7280 |                 sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'` | 
 | 7281 |         cur_target_minor=`sw_vers -productVersion | \ | 
 | 7282 |                 sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'` | 
 | 7283 |         cur_target="${cur_target_major}.${cur_target_minor}" | 
 | 7284 |         if test ${cur_target_major} -eq 10 && \ | 
 | 7285 |            test ${cur_target_minor} -ge 3 && \ | 
 | 7286 |            test ${cur_target_minor} -le 5 | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7287 |         then | 
| Ned Deily | 36820b6 | 2014-06-25 13:44:22 -0700 | [diff] [blame] | 7288 |             # OS X 10.3 through 10.5 | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7289 |             cur_target=10.3 | 
 | 7290 |             if test ${enable_universalsdk} | 
 | 7291 |             then | 
 | 7292 |                 case "$UNIVERSAL_ARCHS" in | 
 | 7293 |                 all|3-way|intel|64-bit) | 
 | 7294 |                     # These configurations were first supported in 10.5 | 
 | 7295 |                     cur_target='10.5' | 
 | 7296 |                     ;; | 
 | 7297 |                 esac | 
 | 7298 |             else | 
 | 7299 |                 if test `/usr/bin/arch` = "i386" | 
 | 7300 |                 then | 
 | 7301 |                     # 10.4 was the first release to support Intel archs | 
 | 7302 |                     cur_target="10.4" | 
 | 7303 |                 fi | 
 | 7304 |             fi | 
 | 7305 |         fi | 
 | 7306 |         CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}} | 
| Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 7307 |  | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7308 |         # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the | 
 | 7309 |         # environment with a value that is the same as what we'll use | 
 | 7310 |         # in the Makefile to ensure that we'll get the same compiler | 
 | 7311 |         # environment during configure and build time. | 
 | 7312 |         MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET" | 
 | 7313 |         export MACOSX_DEPLOYMENT_TARGET | 
 | 7314 |         EXPORT_MACOSX_DEPLOYMENT_TARGET='' | 
 | 7315 |         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACOSX_DEPLOYMENT_TARGET" >&5 | 
 | 7316 | $as_echo "$MACOSX_DEPLOYMENT_TARGET" >&6; } | 
| Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 7317 |  | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7318 |         # end of Darwin* tests | 
 | 7319 |         ;; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7320 |     esac | 
 | 7321 |     ;; | 
 | 7322 |  | 
 | 7323 | *) | 
 | 7324 |     case $ac_sys_system in | 
 | 7325 |     OpenUNIX*|UnixWare*) | 
 | 7326 | 	BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca " | 
 | 7327 | 	;; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7328 |     SCO_SV*) | 
 | 7329 | 	BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5" | 
 | 7330 | 	;; | 
 | 7331 |     esac | 
 | 7332 |     ;; | 
 | 7333 | esac | 
 | 7334 |  | 
| Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 7335 | # ICC needs -fp-model strict or floats behave badly | 
 | 7336 | case "$CC" in | 
 | 7337 | *icc*) | 
 | 7338 |     CFLAGS_NODIST="$CFLAGS_NODIST -fp-model strict" | 
 | 7339 |     ;; | 
 | 7340 | esac | 
 | 7341 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7342 | if test "$Py_DEBUG" = 'true'; then | 
 | 7343 |   : | 
 | 7344 | else | 
 | 7345 |   OPT="-DNDEBUG $OPT" | 
 | 7346 | fi | 
 | 7347 |  | 
 | 7348 | if test "$ac_arch_flags" | 
 | 7349 | then | 
 | 7350 | 	BASECFLAGS="$BASECFLAGS $ac_arch_flags" | 
 | 7351 | fi | 
 | 7352 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7353 | # On some compilers, pthreads are available without further options | 
 | 7354 | # (e.g. MacOS X). On some of these systems, the compiler will not | 
 | 7355 | # complain if unaccepted options are passed (e.g. gcc on Mac OS X). | 
 | 7356 | # So we have to see first whether pthreads are available without | 
 | 7357 | # options before we can check whether -Kpthread improves anything. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7358 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads are available without options" >&5 | 
 | 7359 | $as_echo_n "checking whether pthreads are available without options... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7360 | if ${ac_cv_pthread_is_default+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7361 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7362 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7363 |   if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7364 |   ac_cv_pthread_is_default=no | 
 | 7365 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7366 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7367 | /* end confdefs.h.  */ | 
 | 7368 |  | 
| Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 7369 | #include <stdio.h> | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7370 | #include <pthread.h> | 
 | 7371 |  | 
 | 7372 | void* routine(void* p){return NULL;} | 
 | 7373 |  | 
 | 7374 | int main(){ | 
 | 7375 |   pthread_t p; | 
 | 7376 |   if(pthread_create(&p,NULL,routine,NULL)!=0) | 
 | 7377 |     return 1; | 
 | 7378 |   (void)pthread_detach(p); | 
 | 7379 |   return 0; | 
 | 7380 | } | 
 | 7381 |  | 
 | 7382 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7383 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7384 |  | 
 | 7385 |   ac_cv_pthread_is_default=yes | 
 | 7386 |   ac_cv_kthread=no | 
 | 7387 |   ac_cv_pthread=no | 
 | 7388 |  | 
 | 7389 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7390 |   ac_cv_pthread_is_default=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7391 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7392 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 7393 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7394 | fi | 
 | 7395 |  | 
 | 7396 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7397 | fi | 
 | 7398 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_is_default" >&5 | 
 | 7400 | $as_echo "$ac_cv_pthread_is_default" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7401 |  | 
 | 7402 |  | 
 | 7403 | if test $ac_cv_pthread_is_default = yes | 
 | 7404 | then | 
 | 7405 |   ac_cv_kpthread=no | 
 | 7406 | else | 
 | 7407 | # -Kpthread, if available, provides the right #defines | 
 | 7408 | # and linker options to make pthread_create available | 
 | 7409 | # Some compilers won't report that they do not support -Kpthread, | 
 | 7410 | # so we need to run a program to see whether it really made the | 
 | 7411 | # function available. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7412 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kpthread" >&5 | 
 | 7413 | $as_echo_n "checking whether $CC accepts -Kpthread... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7414 | if ${ac_cv_kpthread+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7415 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7416 | else | 
 | 7417 |   ac_save_cc="$CC" | 
 | 7418 | CC="$CC -Kpthread" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7419 | if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7420 |   ac_cv_kpthread=no | 
 | 7421 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7422 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7423 | /* end confdefs.h.  */ | 
 | 7424 |  | 
| Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 7425 | #include <stdio.h> | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7426 | #include <pthread.h> | 
 | 7427 |  | 
 | 7428 | void* routine(void* p){return NULL;} | 
 | 7429 |  | 
 | 7430 | int main(){ | 
 | 7431 |   pthread_t p; | 
 | 7432 |   if(pthread_create(&p,NULL,routine,NULL)!=0) | 
 | 7433 |     return 1; | 
 | 7434 |   (void)pthread_detach(p); | 
 | 7435 |   return 0; | 
 | 7436 | } | 
 | 7437 |  | 
 | 7438 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7439 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7440 |   ac_cv_kpthread=yes | 
 | 7441 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7442 |   ac_cv_kpthread=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7443 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7444 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 7445 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7446 | fi | 
 | 7447 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7448 | CC="$ac_save_cc" | 
 | 7449 | fi | 
 | 7450 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kpthread" >&5 | 
 | 7452 | $as_echo "$ac_cv_kpthread" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7453 | fi | 
 | 7454 |  | 
 | 7455 | if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no | 
 | 7456 | then | 
 | 7457 | # -Kthread, if available, provides the right #defines | 
 | 7458 | # and linker options to make pthread_create available | 
 | 7459 | # Some compilers won't report that they do not support -Kthread, | 
 | 7460 | # so we need to run a program to see whether it really made the | 
 | 7461 | # function available. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7462 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kthread" >&5 | 
 | 7463 | $as_echo_n "checking whether $CC accepts -Kthread... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7464 | if ${ac_cv_kthread+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7465 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7466 | else | 
 | 7467 |   ac_save_cc="$CC" | 
 | 7468 | CC="$CC -Kthread" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7469 | if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7470 |   ac_cv_kthread=no | 
 | 7471 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7472 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7473 | /* end confdefs.h.  */ | 
 | 7474 |  | 
| Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 7475 | #include <stdio.h> | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7476 | #include <pthread.h> | 
 | 7477 |  | 
 | 7478 | void* routine(void* p){return NULL;} | 
 | 7479 |  | 
 | 7480 | int main(){ | 
 | 7481 |   pthread_t p; | 
 | 7482 |   if(pthread_create(&p,NULL,routine,NULL)!=0) | 
 | 7483 |     return 1; | 
 | 7484 |   (void)pthread_detach(p); | 
 | 7485 |   return 0; | 
 | 7486 | } | 
 | 7487 |  | 
 | 7488 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7489 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7490 |   ac_cv_kthread=yes | 
 | 7491 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7492 |   ac_cv_kthread=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7493 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7494 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 7495 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7496 | fi | 
 | 7497 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7498 | CC="$ac_save_cc" | 
 | 7499 | fi | 
 | 7500 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kthread" >&5 | 
 | 7502 | $as_echo "$ac_cv_kthread" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7503 | fi | 
 | 7504 |  | 
 | 7505 | if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no | 
 | 7506 | then | 
 | 7507 | # -pthread, if available, provides the right #defines | 
 | 7508 | # and linker options to make pthread_create available | 
 | 7509 | # Some compilers won't report that they do not support -pthread, | 
 | 7510 | # so we need to run a program to see whether it really made the | 
 | 7511 | # function available. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7512 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -pthread" >&5 | 
 | 7513 | $as_echo_n "checking whether $CC accepts -pthread... " >&6; } | 
| doko@python.org | 7981f20 | 2013-01-25 15:33:25 +0100 | [diff] [blame] | 7514 | if ${ac_cv_pthread+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7515 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7516 | else | 
 | 7517 |   ac_save_cc="$CC" | 
 | 7518 | CC="$CC -pthread" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7519 | if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7520 |   ac_cv_pthread=no | 
 | 7521 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7522 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7523 | /* end confdefs.h.  */ | 
 | 7524 |  | 
| Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 7525 | #include <stdio.h> | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7526 | #include <pthread.h> | 
 | 7527 |  | 
 | 7528 | void* routine(void* p){return NULL;} | 
 | 7529 |  | 
 | 7530 | int main(){ | 
 | 7531 |   pthread_t p; | 
 | 7532 |   if(pthread_create(&p,NULL,routine,NULL)!=0) | 
 | 7533 |     return 1; | 
 | 7534 |   (void)pthread_detach(p); | 
 | 7535 |   return 0; | 
 | 7536 | } | 
 | 7537 |  | 
 | 7538 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7539 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7540 |   ac_cv_pthread=yes | 
 | 7541 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7542 |   ac_cv_pthread=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7543 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7544 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 7545 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7546 | fi | 
 | 7547 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7548 | CC="$ac_save_cc" | 
 | 7549 | fi | 
 | 7550 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread" >&5 | 
 | 7552 | $as_echo "$ac_cv_pthread" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7553 | fi | 
 | 7554 |  | 
 | 7555 | # If we have set a CC compiler flag for thread support then | 
 | 7556 | # check if it works for CXX, too. | 
 | 7557 | ac_cv_cxx_thread=no | 
 | 7558 | if test ! -z "$CXX" | 
 | 7559 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7560 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX also accepts flags for thread support" >&5 | 
 | 7561 | $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] | 7562 | ac_save_cxx="$CXX" | 
 | 7563 |  | 
 | 7564 | if test "$ac_cv_kpthread" = "yes" | 
 | 7565 | then | 
 | 7566 |   CXX="$CXX -Kpthread" | 
 | 7567 |   ac_cv_cxx_thread=yes | 
 | 7568 | elif test "$ac_cv_kthread" = "yes" | 
 | 7569 | then | 
 | 7570 |   CXX="$CXX -Kthread" | 
 | 7571 |   ac_cv_cxx_thread=yes | 
 | 7572 | elif test "$ac_cv_pthread" = "yes" | 
 | 7573 | then | 
 | 7574 |   CXX="$CXX -pthread" | 
 | 7575 |   ac_cv_cxx_thread=yes | 
 | 7576 | fi | 
 | 7577 |  | 
 | 7578 | if test $ac_cv_cxx_thread = yes | 
 | 7579 | then | 
 | 7580 |   echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext | 
 | 7581 |   $CXX -c conftest.$ac_ext 2>&5 | 
 | 7582 |   if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ | 
 | 7583 |      && test -s conftest$ac_exeext && ./conftest$ac_exeext | 
 | 7584 |   then | 
 | 7585 |     ac_cv_cxx_thread=yes | 
 | 7586 |   else | 
 | 7587 |     ac_cv_cxx_thread=no | 
 | 7588 |   fi | 
 | 7589 |   rm -fr conftest* | 
 | 7590 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_thread" >&5 | 
 | 7592 | $as_echo "$ac_cv_cxx_thread" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7593 | fi | 
 | 7594 | CXX="$ac_save_cxx" | 
 | 7595 |  | 
 | 7596 |  | 
 | 7597 | # checks for header files | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7598 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | 
 | 7599 | $as_echo_n "checking for ANSI C header files... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7600 | if ${ac_cv_header_stdc+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7601 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7602 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7603 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7604 | /* end confdefs.h.  */ | 
 | 7605 | #include <stdlib.h> | 
 | 7606 | #include <stdarg.h> | 
 | 7607 | #include <string.h> | 
 | 7608 | #include <float.h> | 
 | 7609 |  | 
 | 7610 | int | 
 | 7611 | main () | 
 | 7612 | { | 
 | 7613 |  | 
 | 7614 |   ; | 
 | 7615 |   return 0; | 
 | 7616 | } | 
 | 7617 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7618 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7619 |   ac_cv_header_stdc=yes | 
 | 7620 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7621 |   ac_cv_header_stdc=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7622 | fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7623 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 7624 |  | 
 | 7625 | if test $ac_cv_header_stdc = yes; then | 
 | 7626 |   # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7627 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7628 | /* end confdefs.h.  */ | 
 | 7629 | #include <string.h> | 
 | 7630 |  | 
 | 7631 | _ACEOF | 
 | 7632 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7633 |   $EGREP "memchr" >/dev/null 2>&1; then : | 
 | 7634 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7635 | else | 
 | 7636 |   ac_cv_header_stdc=no | 
 | 7637 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 7638 | rm -f conftest* | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7639 |  | 
 | 7640 | fi | 
 | 7641 |  | 
 | 7642 | if test $ac_cv_header_stdc = yes; then | 
 | 7643 |   # 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] | 7644 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7645 | /* end confdefs.h.  */ | 
 | 7646 | #include <stdlib.h> | 
 | 7647 |  | 
 | 7648 | _ACEOF | 
 | 7649 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7650 |   $EGREP "free" >/dev/null 2>&1; then : | 
 | 7651 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7652 | else | 
 | 7653 |   ac_cv_header_stdc=no | 
 | 7654 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 7655 | rm -f conftest* | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7656 |  | 
 | 7657 | fi | 
 | 7658 |  | 
 | 7659 | if test $ac_cv_header_stdc = yes; then | 
 | 7660 |   # /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] | 7661 |   if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7662 |   : | 
 | 7663 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7664 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7665 | /* end confdefs.h.  */ | 
 | 7666 | #include <ctype.h> | 
 | 7667 | #include <stdlib.h> | 
 | 7668 | #if ((' ' & 0x0FF) == 0x020) | 
 | 7669 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | 
 | 7670 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | 
 | 7671 | #else | 
 | 7672 | # define ISLOWER(c) \ | 
 | 7673 | 		   (('a' <= (c) && (c) <= 'i') \ | 
 | 7674 | 		     || ('j' <= (c) && (c) <= 'r') \ | 
 | 7675 | 		     || ('s' <= (c) && (c) <= 'z')) | 
 | 7676 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | 
 | 7677 | #endif | 
 | 7678 |  | 
 | 7679 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | 
 | 7680 | int | 
 | 7681 | main () | 
 | 7682 | { | 
 | 7683 |   int i; | 
 | 7684 |   for (i = 0; i < 256; i++) | 
 | 7685 |     if (XOR (islower (i), ISLOWER (i)) | 
 | 7686 | 	|| toupper (i) != TOUPPER (i)) | 
 | 7687 |       return 2; | 
 | 7688 |   return 0; | 
 | 7689 | } | 
 | 7690 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7691 | if ac_fn_c_try_run "$LINENO"; then : | 
 | 7692 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7693 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7694 |   ac_cv_header_stdc=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7695 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7696 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 7697 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7698 | fi | 
 | 7699 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7700 | fi | 
 | 7701 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | 
 | 7703 | $as_echo "$ac_cv_header_stdc" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7704 | if test $ac_cv_header_stdc = yes; then | 
 | 7705 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7706 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7707 |  | 
 | 7708 | fi | 
 | 7709 |  | 
| doko@ubuntu.com | 1a4f561 | 2014-04-17 20:13:44 +0200 | [diff] [blame] | 7710 | 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] | 7711 | fcntl.h grp.h \ | 
| doko@ubuntu.com | 1a4f561 | 2014-04-17 20:13:44 +0200 | [diff] [blame] | 7712 | ieeefp.h io.h langinfo.h libintl.h process.h pthread.h \ | 
| Benjamin Peterson | 94b580d | 2011-08-02 17:30:04 -0500 | [diff] [blame] | 7713 | 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] | 7714 | unistd.h utime.h \ | 
| Jesus Cea | d8b9ae6 | 2011-11-14 19:07:41 +0100 | [diff] [blame] | 7715 | poll.h sys/devpoll.h sys/epoll.h sys/poll.h \ | 
| Antoine Pitrou | bcf2b59 | 2012-02-08 23:28:36 +0100 | [diff] [blame] | 7716 | 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] | 7717 | 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] | 7718 | 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] | 7719 | 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] | 7720 | 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] | 7721 | libutil.h sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \ | 
| Victor Stinner | dddf484 | 2016-06-07 11:21:42 +0200 | [diff] [blame] | 7722 | bluetooth/bluetooth.h linux/tipc.h linux/random.h spawn.h util.h alloca.h endian.h \ | 
| Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 7723 | sys/endian.h | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7724 | do : | 
 | 7725 |   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
 | 7726 | 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] | 7727 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7728 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7729 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7730 | _ACEOF | 
 | 7731 |  | 
 | 7732 | fi | 
 | 7733 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7734 | done | 
 | 7735 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7736 | ac_header_dirent=no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7737 | 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] | 7738 |   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | 
 | 7739 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 | 
 | 7740 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7741 | if eval \${$as_ac_Header+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7742 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7743 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7744 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7745 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7746 | #include <sys/types.h> | 
 | 7747 | #include <$ac_hdr> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7748 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7749 | int | 
 | 7750 | main () | 
 | 7751 | { | 
 | 7752 | if ((DIR *) 0) | 
 | 7753 | return 0; | 
 | 7754 |   ; | 
 | 7755 |   return 0; | 
 | 7756 | } | 
 | 7757 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7758 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7759 |   eval "$as_ac_Header=yes" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7760 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7761 |   eval "$as_ac_Header=no" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7762 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7763 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7764 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7765 | eval ac_res=\$$as_ac_Header | 
 | 7766 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 7767 | $as_echo "$ac_res" >&6; } | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 7768 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7769 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7770 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7771 | _ACEOF | 
 | 7772 |  | 
 | 7773 | ac_header_dirent=$ac_hdr; break | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7774 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7775 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7776 | done | 
 | 7777 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | 
 | 7778 | if test $ac_header_dirent = dirent.h; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7779 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 | 
 | 7780 | $as_echo_n "checking for library containing opendir... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7781 | if ${ac_cv_search_opendir+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7782 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7783 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7784 |   ac_func_search_save_LIBS=$LIBS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7785 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7786 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7787 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7788 | /* Override any GCC internal prototype to avoid an error. | 
 | 7789 |    Use char because int might match the return type of a GCC | 
 | 7790 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7791 | #ifdef __cplusplus | 
 | 7792 | extern "C" | 
 | 7793 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7794 | char opendir (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7795 | int | 
 | 7796 | main () | 
 | 7797 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7798 | return opendir (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7799 |   ; | 
 | 7800 |   return 0; | 
 | 7801 | } | 
 | 7802 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7803 | for ac_lib in '' dir; do | 
 | 7804 |   if test -z "$ac_lib"; then | 
 | 7805 |     ac_res="none required" | 
 | 7806 |   else | 
 | 7807 |     ac_res=-l$ac_lib | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 7808 |     LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7809 |   fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7810 |   if ac_fn_c_try_link "$LINENO"; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7811 |   ac_cv_search_opendir=$ac_res | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7812 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7813 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 7814 |     conftest$ac_exeext | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7815 |   if ${ac_cv_search_opendir+:} false; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7816 |   break | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 7817 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7818 | done | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7819 | if ${ac_cv_search_opendir+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7820 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7821 | else | 
 | 7822 |   ac_cv_search_opendir=no | 
 | 7823 | fi | 
 | 7824 | rm conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7825 | LIBS=$ac_func_search_save_LIBS | 
 | 7826 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 | 
 | 7828 | $as_echo "$ac_cv_search_opendir" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7829 | ac_res=$ac_cv_search_opendir | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7830 | if test "$ac_res" != no; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7831 |   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7832 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7833 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7834 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7835 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7836 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 | 
 | 7837 | $as_echo_n "checking for library containing opendir... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7838 | if ${ac_cv_search_opendir+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7839 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7840 | else | 
 | 7841 |   ac_func_search_save_LIBS=$LIBS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7842 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7843 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7844 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7845 | /* Override any GCC internal prototype to avoid an error. | 
 | 7846 |    Use char because int might match the return type of a GCC | 
 | 7847 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7848 | #ifdef __cplusplus | 
 | 7849 | extern "C" | 
 | 7850 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7851 | char opendir (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7852 | int | 
 | 7853 | main () | 
 | 7854 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7855 | return opendir (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7856 |   ; | 
 | 7857 |   return 0; | 
 | 7858 | } | 
 | 7859 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7860 | for ac_lib in '' x; do | 
 | 7861 |   if test -z "$ac_lib"; then | 
 | 7862 |     ac_res="none required" | 
 | 7863 |   else | 
 | 7864 |     ac_res=-l$ac_lib | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 7865 |     LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7866 |   fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7867 |   if ac_fn_c_try_link "$LINENO"; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7868 |   ac_cv_search_opendir=$ac_res | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7869 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7870 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 7871 |     conftest$ac_exeext | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7872 |   if ${ac_cv_search_opendir+:} false; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7873 |   break | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 7874 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7875 | done | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7876 | if ${ac_cv_search_opendir+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7877 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7878 | else | 
 | 7879 |   ac_cv_search_opendir=no | 
 | 7880 | fi | 
 | 7881 | rm conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7882 | LIBS=$ac_func_search_save_LIBS | 
 | 7883 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 | 
 | 7885 | $as_echo "$ac_cv_search_opendir" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7886 | ac_res=$ac_cv_search_opendir | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7887 | if test "$ac_res" != no; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7888 |   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7889 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7890 | fi | 
 | 7891 |  | 
 | 7892 | fi | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7893 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7894 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5 | 
 | 7895 | $as_echo_n "checking whether sys/types.h defines makedev... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7896 | if ${ac_cv_header_sys_types_h_makedev+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7897 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7898 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7899 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7900 | /* end confdefs.h.  */ | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7901 | #include <sys/types.h> | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7902 | int | 
 | 7903 | main () | 
 | 7904 | { | 
 | 7905 | return makedev(0, 0); | 
 | 7906 |   ; | 
 | 7907 |   return 0; | 
 | 7908 | } | 
 | 7909 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7910 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7911 |   ac_cv_header_sys_types_h_makedev=yes | 
 | 7912 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7913 |   ac_cv_header_sys_types_h_makedev=no | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7914 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7915 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 7916 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7917 |  | 
 | 7918 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5 | 
 | 7920 | $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; } | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7921 |  | 
 | 7922 | if test $ac_cv_header_sys_types_h_makedev = no; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7923 | 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] | 7924 | if test "x$ac_cv_header_sys_mkdev_h" = xyes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7925 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7926 | $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7927 |  | 
 | 7928 | fi | 
 | 7929 |  | 
 | 7930 |  | 
 | 7931 |  | 
 | 7932 |   if test $ac_cv_header_sys_mkdev_h = no; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7933 |     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] | 7934 | if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7935 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7936 | $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7937 |  | 
 | 7938 | fi | 
 | 7939 |  | 
 | 7940 |  | 
 | 7941 |   fi | 
 | 7942 | fi | 
 | 7943 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7944 |  | 
| Gregory P. Smith | 3b1f2c3 | 2011-05-15 12:18:23 -0700 | [diff] [blame] | 7945 | # On Darwin (OS X) net/if.h requires sys/socket.h to be imported first. | 
 | 7946 | for ac_header in net/if.h | 
 | 7947 | do : | 
 | 7948 |   ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#include <stdio.h> | 
 | 7949 | #ifdef STDC_HEADERS | 
 | 7950 | # include <stdlib.h> | 
 | 7951 | # include <stddef.h> | 
 | 7952 | #else | 
 | 7953 | # ifdef HAVE_STDLIB_H | 
 | 7954 | #  include <stdlib.h> | 
 | 7955 | # endif | 
 | 7956 | #endif | 
 | 7957 | #ifdef HAVE_SYS_SOCKET_H | 
 | 7958 | # include <sys/socket.h> | 
 | 7959 | #endif | 
 | 7960 |  | 
 | 7961 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7962 | if test "x$ac_cv_header_net_if_h" = xyes; then : | 
| Gregory P. Smith | 3b1f2c3 | 2011-05-15 12:18:23 -0700 | [diff] [blame] | 7963 |   cat >>confdefs.h <<_ACEOF | 
 | 7964 | #define HAVE_NET_IF_H 1 | 
 | 7965 | _ACEOF | 
 | 7966 |  | 
 | 7967 | fi | 
 | 7968 |  | 
 | 7969 | done | 
 | 7970 |  | 
 | 7971 |  | 
| Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 7972 | # On Linux, netlink.h requires asm/types.h | 
| Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 7973 | for ac_header in linux/netlink.h | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7974 | do : | 
 | 7975 |   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] | 7976 | #ifdef HAVE_ASM_TYPES_H | 
 | 7977 | #include <asm/types.h> | 
 | 7978 | #endif | 
 | 7979 | #ifdef HAVE_SYS_SOCKET_H | 
 | 7980 | #include <sys/socket.h> | 
 | 7981 | #endif | 
 | 7982 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7983 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7984 | 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] | 7985 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7986 | #define HAVE_LINUX_NETLINK_H 1 | 
| Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 7987 | _ACEOF | 
 | 7988 |  | 
 | 7989 | fi | 
 | 7990 |  | 
 | 7991 | done | 
 | 7992 |  | 
 | 7993 |  | 
| Charles-François Natali | 47413c1 | 2011-10-06 19:47:44 +0200 | [diff] [blame] | 7994 | # 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] | 7995 | 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] | 7996 | do : | 
 | 7997 |   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
 | 7998 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " | 
 | 7999 | #ifdef HAVE_SYS_SOCKET_H | 
 | 8000 | #include <sys/socket.h> | 
 | 8001 | #endif | 
 | 8002 |  | 
 | 8003 | " | 
 | 8004 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 
 | 8005 |   cat >>confdefs.h <<_ACEOF | 
 | 8006 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
 | 8007 | _ACEOF | 
 | 8008 |  | 
 | 8009 | fi | 
 | 8010 |  | 
 | 8011 | done | 
 | 8012 |  | 
 | 8013 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8014 | # checks for typedefs | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 8015 | was_it_defined=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8016 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t in time.h" >&5 | 
 | 8017 | $as_echo_n "checking for clock_t in time.h... " >&6; } | 
 | 8018 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8019 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8020 | #include <time.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8021 |  | 
 | 8022 | _ACEOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8023 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8024 |   $EGREP "clock_t" >/dev/null 2>&1; then : | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 8025 |   was_it_defined=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8026 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8027 |  | 
 | 8028 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8029 | $as_echo "#define clock_t long" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8030 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 8031 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8032 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 8033 | rm -f conftest* | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8034 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5 | 
 | 8036 | $as_echo "$was_it_defined" >&6; } | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 8037 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8038 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for makedev" >&5 | 
 | 8039 | $as_echo_n "checking for makedev... " >&6; } | 
 | 8040 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8041 | /* end confdefs.h.  */ | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8042 |  | 
| Jesus Cea | 740f53a | 2010-04-28 11:35:30 +0000 | [diff] [blame] | 8043 | #if defined(MAJOR_IN_MKDEV) | 
 | 8044 | #include <sys/mkdev.h> | 
 | 8045 | #elif defined(MAJOR_IN_SYSMACROS) | 
 | 8046 | #include <sys/sysmacros.h> | 
 | 8047 | #else | 
 | 8048 | #include <sys/types.h> | 
 | 8049 | #endif | 
 | 8050 |  | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 8051 | int | 
 | 8052 | main () | 
 | 8053 | { | 
| Jesus Cea | 740f53a | 2010-04-28 11:35:30 +0000 | [diff] [blame] | 8054 |  | 
 | 8055 |   makedev(0, 0) | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 8056 |   ; | 
 | 8057 |   return 0; | 
 | 8058 | } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8059 |  | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 8060 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8061 | if ac_fn_c_try_link "$LINENO"; then : | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 8062 |   ac_cv_has_makedev=yes | 
 | 8063 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8064 |   ac_cv_has_makedev=no | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 8065 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8066 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 8067 |     conftest$ac_exeext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_makedev" >&5 | 
 | 8069 | $as_echo "$ac_cv_has_makedev" >&6; } | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 8070 | if test "$ac_cv_has_makedev" = "yes"; then | 
 | 8071 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8072 | $as_echo "#define HAVE_MAKEDEV 1" >>confdefs.h | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 8073 |  | 
 | 8074 | fi | 
 | 8075 |  | 
| Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 8076 | # byte swapping | 
 | 8077 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for le64toh" >&5 | 
 | 8078 | $as_echo_n "checking for le64toh... " >&6; } | 
 | 8079 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 8080 | /* end confdefs.h.  */ | 
 | 8081 |  | 
 | 8082 | #ifdef HAVE_ENDIAN_H | 
 | 8083 | #include <endian.h> | 
 | 8084 | #elif defined(HAVE_SYS_ENDIAN_H) | 
 | 8085 | #include <sys/endian.h> | 
 | 8086 | #endif | 
 | 8087 |  | 
 | 8088 | int | 
 | 8089 | main () | 
 | 8090 | { | 
 | 8091 |  | 
 | 8092 |    le64toh(1) | 
 | 8093 |   ; | 
 | 8094 |   return 0; | 
 | 8095 | } | 
 | 8096 |  | 
 | 8097 | _ACEOF | 
 | 8098 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 8099 |   ac_cv_has_le64toh=yes | 
 | 8100 | else | 
 | 8101 |   ac_cv_has_le64toh=no | 
 | 8102 | fi | 
 | 8103 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 8104 |     conftest$ac_exeext conftest.$ac_ext | 
 | 8105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_le64toh" >&5 | 
 | 8106 | $as_echo "$ac_cv_has_le64toh" >&6; } | 
 | 8107 | if test "$ac_cv_has_le64toh" = "yes"; then | 
 | 8108 |  | 
 | 8109 | $as_echo "#define HAVE_HTOLE64 1" >>confdefs.h | 
 | 8110 |  | 
 | 8111 | fi | 
 | 8112 |  | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 8113 | # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in | 
 | 8114 | # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are | 
 | 8115 | # defined, but the compiler does not support pragma redefine_extname, | 
 | 8116 | # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit | 
 | 8117 | # structures (such as rlimit64) without declaring them. As a | 
 | 8118 | # work-around, disable LFS on such configurations | 
 | 8119 |  | 
 | 8120 | use_lfs=yes | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8121 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking Solaris LFS bug" >&5 | 
 | 8122 | $as_echo_n "checking Solaris LFS bug... " >&6; } | 
 | 8123 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8124 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 8125 |  | 
 | 8126 | #define _LARGEFILE_SOURCE 1 | 
 | 8127 | #define _FILE_OFFSET_BITS 64 | 
 | 8128 | #include <sys/resource.h> | 
 | 8129 |  | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 8130 | int | 
 | 8131 | main () | 
 | 8132 | { | 
 | 8133 | struct rlimit foo; | 
 | 8134 |   ; | 
 | 8135 |   return 0; | 
 | 8136 | } | 
 | 8137 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8138 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 8139 |   sol_lfs_bug=no | 
 | 8140 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8141 |   sol_lfs_bug=yes | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 8142 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8143 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sol_lfs_bug" >&5 | 
 | 8145 | $as_echo "$sol_lfs_bug" >&6; } | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 8146 | if test "$sol_lfs_bug" = "yes"; then | 
 | 8147 |   use_lfs=no | 
 | 8148 | fi | 
 | 8149 |  | 
 | 8150 | if test "$use_lfs" = "yes"; then | 
| Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 8151 | # Two defines needed to enable largefile support on various platforms | 
 | 8152 | # These may affect some typedefs | 
| Georg Brandl | 216e404 | 2011-02-19 08:58:23 +0000 | [diff] [blame] | 8153 | case $ac_sys_system/$ac_sys_release in | 
 | 8154 | AIX*) | 
 | 8155 |  | 
 | 8156 | $as_echo "#define _LARGE_FILES 1" >>confdefs.h | 
 | 8157 |  | 
 | 8158 |     ;; | 
 | 8159 | esac | 
| Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 8160 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8161 | $as_echo "#define _LARGEFILE_SOURCE 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8162 |  | 
 | 8163 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8164 | $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h | 
| Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 8165 |  | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 8166 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8167 |  | 
| Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 8168 | # Add some code to confdefs.h so that the test for off_t works on SCO | 
 | 8169 | cat >> confdefs.h <<\EOF | 
 | 8170 | #if defined(SCO_DS) | 
 | 8171 | #undef _OFF_T | 
 | 8172 | #endif | 
 | 8173 | EOF | 
 | 8174 |  | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8175 | # Type availability checks | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8176 | 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] | 8177 | if test "x$ac_cv_type_mode_t" = xyes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8178 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8179 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8180 |  | 
 | 8181 | cat >>confdefs.h <<_ACEOF | 
 | 8182 | #define mode_t int | 
 | 8183 | _ACEOF | 
 | 8184 |  | 
 | 8185 | fi | 
 | 8186 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8187 | 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] | 8188 | if test "x$ac_cv_type_off_t" = xyes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8189 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8190 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8191 |  | 
 | 8192 | cat >>confdefs.h <<_ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8193 | #define off_t long int | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8194 | _ACEOF | 
 | 8195 |  | 
 | 8196 | fi | 
 | 8197 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8198 | 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] | 8199 | if test "x$ac_cv_type_pid_t" = xyes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8200 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8201 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8202 |  | 
 | 8203 | cat >>confdefs.h <<_ACEOF | 
 | 8204 | #define pid_t int | 
 | 8205 | _ACEOF | 
 | 8206 |  | 
 | 8207 | fi | 
 | 8208 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 8209 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8210 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | bada4c3 | 2010-04-25 21:18:48 +0000 | [diff] [blame] | 8211 | #define RETSIGTYPE void | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8212 | _ACEOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8213 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8214 | 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] | 8215 | if test "x$ac_cv_type_size_t" = xyes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8216 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8217 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8218 |  | 
 | 8219 | cat >>confdefs.h <<_ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8220 | #define size_t unsigned int | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8221 | _ACEOF | 
 | 8222 |  | 
 | 8223 | fi | 
 | 8224 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8225 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 | 
 | 8226 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8227 | if ${ac_cv_type_uid_t+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8228 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8229 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8230 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8231 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8232 | #include <sys/types.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8233 |  | 
 | 8234 | _ACEOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8235 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8236 |   $EGREP "uid_t" >/dev/null 2>&1; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8237 |   ac_cv_type_uid_t=yes | 
 | 8238 | else | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8239 |   ac_cv_type_uid_t=no | 
 | 8240 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 8241 | rm -f conftest* | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8242 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8243 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 | 
 | 8245 | $as_echo "$ac_cv_type_uid_t" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8246 | if test $ac_cv_type_uid_t = no; then | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8247 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8248 | $as_echo "#define uid_t int" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8249 |  | 
 | 8250 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8251 | $as_echo "#define gid_t int" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8252 |  | 
 | 8253 | fi | 
 | 8254 |  | 
| Mark Dickinson | 983bc16 | 2012-12-02 12:11:38 +0000 | [diff] [blame] | 8255 |  | 
 | 8256 | # There are two separate checks for each of the exact-width integer types we | 
 | 8257 | # need.  First we check whether the type is available using the usual | 
 | 8258 | # AC_CHECK_TYPE macro with the default includes (which includes <inttypes.h> | 
 | 8259 | # and <stdint.h> where available).  We then also use the special type checks of | 
 | 8260 | # the form AC_TYPE_UINT32_T, which in the case that uint32_t is not available | 
 | 8261 | # directly, #define's uint32_t to be a suitable type. | 
 | 8262 |  | 
 | 8263 | ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default" | 
 | 8264 | if test "x$ac_cv_type_uint32_t" = xyes; then : | 
 | 8265 |  | 
 | 8266 | $as_echo "#define HAVE_UINT32_T 1" >>confdefs.h | 
 | 8267 |  | 
 | 8268 | fi | 
 | 8269 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8270 | ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" | 
 | 8271 | case $ac_cv_c_uint32_t in #( | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 8272 |   no|yes) ;; #( | 
 | 8273 |   *) | 
 | 8274 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8275 | $as_echo "#define _UINT32_T 1" >>confdefs.h | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 8276 |  | 
 | 8277 |  | 
 | 8278 | cat >>confdefs.h <<_ACEOF | 
 | 8279 | #define uint32_t $ac_cv_c_uint32_t | 
 | 8280 | _ACEOF | 
 | 8281 | ;; | 
 | 8282 |   esac | 
 | 8283 |  | 
| Mark Dickinson | 983bc16 | 2012-12-02 12:11:38 +0000 | [diff] [blame] | 8284 |  | 
 | 8285 | ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default" | 
 | 8286 | if test "x$ac_cv_type_uint64_t" = xyes; then : | 
 | 8287 |  | 
 | 8288 | $as_echo "#define HAVE_UINT64_T 1" >>confdefs.h | 
 | 8289 |  | 
 | 8290 | fi | 
 | 8291 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8292 | ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t" | 
 | 8293 | case $ac_cv_c_uint64_t in #( | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 8294 |   no|yes) ;; #( | 
 | 8295 |   *) | 
 | 8296 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8297 | $as_echo "#define _UINT64_T 1" >>confdefs.h | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 8298 |  | 
 | 8299 |  | 
 | 8300 | cat >>confdefs.h <<_ACEOF | 
 | 8301 | #define uint64_t $ac_cv_c_uint64_t | 
 | 8302 | _ACEOF | 
 | 8303 | ;; | 
 | 8304 |   esac | 
 | 8305 |  | 
| Mark Dickinson | 983bc16 | 2012-12-02 12:11:38 +0000 | [diff] [blame] | 8306 |  | 
 | 8307 | ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default" | 
 | 8308 | if test "x$ac_cv_type_int32_t" = xyes; then : | 
 | 8309 |  | 
 | 8310 | $as_echo "#define HAVE_INT32_T 1" >>confdefs.h | 
 | 8311 |  | 
 | 8312 | fi | 
 | 8313 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8314 | ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" | 
 | 8315 | case $ac_cv_c_int32_t in #( | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 8316 |   no|yes) ;; #( | 
 | 8317 |   *) | 
 | 8318 |  | 
 | 8319 | cat >>confdefs.h <<_ACEOF | 
 | 8320 | #define int32_t $ac_cv_c_int32_t | 
 | 8321 | _ACEOF | 
 | 8322 | ;; | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 8323 | esac | 
 | 8324 |  | 
| Mark Dickinson | 983bc16 | 2012-12-02 12:11:38 +0000 | [diff] [blame] | 8325 |  | 
 | 8326 | ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default" | 
 | 8327 | if test "x$ac_cv_type_int64_t" = xyes; then : | 
 | 8328 |  | 
 | 8329 | $as_echo "#define HAVE_INT64_T 1" >>confdefs.h | 
 | 8330 |  | 
 | 8331 | fi | 
 | 8332 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8333 | ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t" | 
 | 8334 | case $ac_cv_c_int64_t in #( | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 8335 |   no|yes) ;; #( | 
 | 8336 |   *) | 
 | 8337 |  | 
 | 8338 | cat >>confdefs.h <<_ACEOF | 
 | 8339 | #define int64_t $ac_cv_c_int64_t | 
 | 8340 | _ACEOF | 
 | 8341 | ;; | 
| Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 8342 | esac | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8343 |  | 
| Mark Dickinson | 983bc16 | 2012-12-02 12:11:38 +0000 | [diff] [blame] | 8344 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8345 | 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] | 8346 | if test "x$ac_cv_type_ssize_t" = xyes; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8347 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8348 | $as_echo "#define HAVE_SSIZE_T 1" >>confdefs.h | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8349 |  | 
 | 8350 | fi | 
 | 8351 |  | 
| Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 8352 | ac_fn_c_check_type "$LINENO" "__uint128_t" "ac_cv_type___uint128_t" "$ac_includes_default" | 
 | 8353 | if test "x$ac_cv_type___uint128_t" = xyes; then : | 
 | 8354 |  | 
 | 8355 | $as_echo "#define HAVE_GCC_UINT128_T 1" >>confdefs.h | 
 | 8356 |  | 
 | 8357 | fi | 
 | 8358 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 8359 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8360 | # Sizes of various common basic types | 
| Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 8361 | # ANSI C requires sizeof(char) == 1, so no need to check it | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8362 | # The cast to long int works around a bug in the HP C Compiler | 
 | 8363 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 8364 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 8365 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8366 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 | 
 | 8367 | $as_echo_n "checking size of int... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8368 | if ${ac_cv_sizeof_int+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8369 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8370 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8371 |   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] | 8372 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8373 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8374 |   if test "$ac_cv_type_int" = yes; then | 
 | 8375 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 8376 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8377 | as_fn_error 77 "cannot compute sizeof (int) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8378 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8379 |    else | 
 | 8380 |      ac_cv_sizeof_int=0 | 
 | 8381 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8382 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8383 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8384 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 | 
 | 8386 | $as_echo "$ac_cv_sizeof_int" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8387 |  | 
 | 8388 |  | 
 | 8389 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8390 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8391 | #define SIZEOF_INT $ac_cv_sizeof_int | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8392 | _ACEOF | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8393 |  | 
 | 8394 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8395 | # The cast to long int works around a bug in the HP C Compiler | 
 | 8396 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 8397 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 8398 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8399 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 | 
 | 8400 | $as_echo_n "checking size of long... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8401 | if ${ac_cv_sizeof_long+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8402 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8403 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8404 |   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] | 8405 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8406 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8407 |   if test "$ac_cv_type_long" = yes; then | 
 | 8408 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 8409 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8410 | as_fn_error 77 "cannot compute sizeof (long) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8411 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8412 |    else | 
 | 8413 |      ac_cv_sizeof_long=0 | 
 | 8414 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8415 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8416 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8417 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 | 
 | 8419 | $as_echo "$ac_cv_sizeof_long" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8420 |  | 
 | 8421 |  | 
 | 8422 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8423 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8424 | #define SIZEOF_LONG $ac_cv_sizeof_long | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8425 | _ACEOF | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8426 |  | 
 | 8427 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8428 | # The cast to long int works around a bug in the HP C Compiler | 
 | 8429 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 8430 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 8431 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8432 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 | 
 | 8433 | $as_echo_n "checking size of void *... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8434 | if ${ac_cv_sizeof_void_p+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8435 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8436 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8437 |   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] | 8438 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8439 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8440 |   if test "$ac_cv_type_void_p" = yes; then | 
 | 8441 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 8442 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8443 | as_fn_error 77 "cannot compute sizeof (void *) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8444 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8445 |    else | 
 | 8446 |      ac_cv_sizeof_void_p=0 | 
 | 8447 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8448 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8449 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8450 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 | 
 | 8452 | $as_echo "$ac_cv_sizeof_void_p" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8453 |  | 
 | 8454 |  | 
 | 8455 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8456 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8457 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8458 | _ACEOF | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8459 |  | 
 | 8460 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8461 | # The cast to long int works around a bug in the HP C Compiler | 
 | 8462 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 8463 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 8464 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8465 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 | 
 | 8466 | $as_echo_n "checking size of short... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8467 | if ${ac_cv_sizeof_short+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8468 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8469 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8470 |   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] | 8471 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8472 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8473 |   if test "$ac_cv_type_short" = yes; then | 
 | 8474 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 8475 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8476 | as_fn_error 77 "cannot compute sizeof (short) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8477 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8478 |    else | 
 | 8479 |      ac_cv_sizeof_short=0 | 
 | 8480 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8481 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8482 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8483 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 | 
 | 8485 | $as_echo "$ac_cv_sizeof_short" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8486 |  | 
 | 8487 |  | 
 | 8488 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8489 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8490 | #define SIZEOF_SHORT $ac_cv_sizeof_short | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8491 | _ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8492 |  | 
 | 8493 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8494 | # The cast to long int works around a bug in the HP C Compiler | 
 | 8495 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 8496 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 8497 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8498 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5 | 
 | 8499 | $as_echo_n "checking size of float... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8500 | if ${ac_cv_sizeof_float+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8501 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8502 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8503 |   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] | 8504 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8505 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8506 |   if test "$ac_cv_type_float" = yes; then | 
 | 8507 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 8508 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8509 | as_fn_error 77 "cannot compute sizeof (float) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8510 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8511 |    else | 
 | 8512 |      ac_cv_sizeof_float=0 | 
 | 8513 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8514 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8515 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8516 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5 | 
 | 8518 | $as_echo "$ac_cv_sizeof_float" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8519 |  | 
 | 8520 |  | 
 | 8521 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8522 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8523 | #define SIZEOF_FLOAT $ac_cv_sizeof_float | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8524 | _ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8525 |  | 
 | 8526 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8527 | # The cast to long int works around a bug in the HP C Compiler | 
 | 8528 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 8529 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 8530 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8531 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5 | 
 | 8532 | $as_echo_n "checking size of double... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8533 | if ${ac_cv_sizeof_double+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8534 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8535 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8536 |   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] | 8537 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8538 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8539 |   if test "$ac_cv_type_double" = yes; then | 
 | 8540 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 8541 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8542 | as_fn_error 77 "cannot compute sizeof (double) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8543 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8544 |    else | 
 | 8545 |      ac_cv_sizeof_double=0 | 
 | 8546 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8547 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8548 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8549 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5 | 
 | 8551 | $as_echo "$ac_cv_sizeof_double" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8552 |  | 
 | 8553 |  | 
 | 8554 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8555 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8556 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8557 | _ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8558 |  | 
 | 8559 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8560 | # The cast to long int works around a bug in the HP C Compiler | 
 | 8561 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 8562 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 8563 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8564 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of fpos_t" >&5 | 
 | 8565 | $as_echo_n "checking size of fpos_t... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8566 | if ${ac_cv_sizeof_fpos_t+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8567 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8568 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8569 |   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] | 8570 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8571 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8572 |   if test "$ac_cv_type_fpos_t" = yes; then | 
 | 8573 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 8574 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8575 | as_fn_error 77 "cannot compute sizeof (fpos_t) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8576 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8577 |    else | 
 | 8578 |      ac_cv_sizeof_fpos_t=0 | 
 | 8579 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8580 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8581 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8582 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_fpos_t" >&5 | 
 | 8584 | $as_echo "$ac_cv_sizeof_fpos_t" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8585 |  | 
 | 8586 |  | 
 | 8587 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8588 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8589 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8590 | _ACEOF | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8591 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8592 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8593 | # The cast to long int works around a bug in the HP C Compiler | 
 | 8594 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 8595 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 8596 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8597 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 | 
 | 8598 | $as_echo_n "checking size of size_t... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8599 | if ${ac_cv_sizeof_size_t+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8600 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8601 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8602 |   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] | 8603 |  | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8604 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8605 |   if test "$ac_cv_type_size_t" = yes; then | 
 | 8606 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 8607 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8608 | as_fn_error 77 "cannot compute sizeof (size_t) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8609 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8610 |    else | 
 | 8611 |      ac_cv_sizeof_size_t=0 | 
 | 8612 |    fi | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8613 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8614 |  | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8615 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 | 
 | 8617 | $as_echo "$ac_cv_sizeof_size_t" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8618 |  | 
 | 8619 |  | 
 | 8620 |  | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8621 | cat >>confdefs.h <<_ACEOF | 
 | 8622 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t | 
 | 8623 | _ACEOF | 
 | 8624 |  | 
 | 8625 |  | 
| Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 8626 | # The cast to long int works around a bug in the HP C Compiler | 
 | 8627 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 8628 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 8629 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8630 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pid_t" >&5 | 
 | 8631 | $as_echo_n "checking size of pid_t... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8632 | if ${ac_cv_sizeof_pid_t+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8633 |   $as_echo_n "(cached) " >&6 | 
| Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 8634 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8635 |   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] | 8636 |  | 
| Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 8637 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8638 |   if test "$ac_cv_type_pid_t" = yes; then | 
 | 8639 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 8640 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8641 | as_fn_error 77 "cannot compute sizeof (pid_t) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8642 | See \`config.log' for more details" "$LINENO" 5; } | 
| Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 8643 |    else | 
 | 8644 |      ac_cv_sizeof_pid_t=0 | 
 | 8645 |    fi | 
 | 8646 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8647 |  | 
| Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 8648 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pid_t" >&5 | 
 | 8650 | $as_echo "$ac_cv_sizeof_pid_t" >&6; } | 
| Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 8651 |  | 
 | 8652 |  | 
 | 8653 |  | 
 | 8654 | cat >>confdefs.h <<_ACEOF | 
 | 8655 | #define SIZEOF_PID_T $ac_cv_sizeof_pid_t | 
 | 8656 | _ACEOF | 
 | 8657 |  | 
 | 8658 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8659 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8660 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support" >&5 | 
 | 8661 | $as_echo_n "checking for long long support... " >&6; } | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8662 | have_long_long=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8663 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8664 | /* end confdefs.h.  */ | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8665 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8666 | int | 
 | 8667 | main () | 
 | 8668 | { | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8669 | long long x; x = (long long)0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8670 |   ; | 
 | 8671 |   return 0; | 
 | 8672 | } | 
 | 8673 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8674 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8675 |  | 
 | 8676 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8677 | $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8678 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 8679 |   have_long_long=yes | 
 | 8680 |  | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8681 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8682 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_long_long" >&5 | 
 | 8684 | $as_echo "$have_long_long" >&6; } | 
| Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 8685 | if test "$have_long_long" = yes ; then | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8686 | # The cast to long int works around a bug in the HP C Compiler | 
 | 8687 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 8688 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 8689 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8690 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 | 
 | 8691 | $as_echo_n "checking size of long long... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8692 | if ${ac_cv_sizeof_long_long+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8693 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8694 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8695 |   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] | 8696 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8697 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8698 |   if test "$ac_cv_type_long_long" = yes; then | 
 | 8699 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 8700 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8701 | as_fn_error 77 "cannot compute sizeof (long long) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8702 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8703 |    else | 
 | 8704 |      ac_cv_sizeof_long_long=0 | 
 | 8705 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8706 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8707 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8708 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 | 
 | 8710 | $as_echo "$ac_cv_sizeof_long_long" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8711 |  | 
 | 8712 |  | 
 | 8713 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8714 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8715 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8716 | _ACEOF | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8717 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8718 |  | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8719 | fi | 
 | 8720 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8721 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support" >&5 | 
 | 8722 | $as_echo_n "checking for long double support... " >&6; } | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8723 | have_long_double=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8724 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8725 | /* end confdefs.h.  */ | 
 | 8726 |  | 
 | 8727 | int | 
 | 8728 | main () | 
 | 8729 | { | 
 | 8730 | long double x; x = (long double)0; | 
 | 8731 |   ; | 
 | 8732 |   return 0; | 
 | 8733 | } | 
 | 8734 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8735 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8736 |  | 
 | 8737 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8738 | $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8739 |  | 
 | 8740 |   have_long_double=yes | 
 | 8741 |  | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8742 | fi | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8743 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_long_double" >&5 | 
 | 8745 | $as_echo "$have_long_double" >&6; } | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8746 | if test "$have_long_double" = yes ; then | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8747 | # The cast to long int works around a bug in the HP C Compiler | 
 | 8748 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 8749 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 8750 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8751 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5 | 
 | 8752 | $as_echo_n "checking size of long double... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8753 | if ${ac_cv_sizeof_long_double+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8754 |   $as_echo_n "(cached) " >&6 | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8755 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8756 |   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] | 8757 |  | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8758 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8759 |   if test "$ac_cv_type_long_double" = yes; then | 
 | 8760 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 8761 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8762 | as_fn_error 77 "cannot compute sizeof (long double) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8763 | See \`config.log' for more details" "$LINENO" 5; } | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8764 |    else | 
 | 8765 |      ac_cv_sizeof_long_double=0 | 
 | 8766 |    fi | 
 | 8767 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8768 |  | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8769 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5 | 
 | 8771 | $as_echo "$ac_cv_sizeof_long_double" >&6; } | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8772 |  | 
 | 8773 |  | 
 | 8774 |  | 
 | 8775 | cat >>confdefs.h <<_ACEOF | 
 | 8776 | #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double | 
 | 8777 | _ACEOF | 
 | 8778 |  | 
 | 8779 |  | 
 | 8780 | fi | 
 | 8781 |  | 
 | 8782 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8783 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Bool support" >&5 | 
 | 8784 | $as_echo_n "checking for _Bool support... " >&6; } | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8785 | have_c99_bool=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8786 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8787 | /* end confdefs.h.  */ | 
 | 8788 |  | 
 | 8789 | int | 
 | 8790 | main () | 
 | 8791 | { | 
 | 8792 | _Bool x; x = (_Bool)0; | 
 | 8793 |   ; | 
 | 8794 |   return 0; | 
 | 8795 | } | 
 | 8796 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8797 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8798 |  | 
 | 8799 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8800 | $as_echo "#define HAVE_C99_BOOL 1" >>confdefs.h | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8801 |  | 
 | 8802 |   have_c99_bool=yes | 
 | 8803 |  | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8804 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8805 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_c99_bool" >&5 | 
 | 8807 | $as_echo "$have_c99_bool" >&6; } | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8808 | if test "$have_c99_bool" = yes ; then | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8809 | # The cast to long int works around a bug in the HP C Compiler | 
 | 8810 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 8811 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 8812 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8813 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of _Bool" >&5 | 
 | 8814 | $as_echo_n "checking size of _Bool... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8815 | if ${ac_cv_sizeof__Bool+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8816 |   $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8817 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8818 |   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] | 8819 |  | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8820 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8821 |   if test "$ac_cv_type__Bool" = yes; then | 
 | 8822 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 8823 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8824 | as_fn_error 77 "cannot compute sizeof (_Bool) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8825 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8826 |    else | 
 | 8827 |      ac_cv_sizeof__Bool=0 | 
 | 8828 |    fi | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8829 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8830 |  | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +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_sizeof__Bool" >&5 | 
 | 8833 | $as_echo "$ac_cv_sizeof__Bool" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8834 |  | 
 | 8835 |  | 
 | 8836 |  | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8837 | cat >>confdefs.h <<_ACEOF | 
 | 8838 | #define SIZEOF__BOOL $ac_cv_sizeof__Bool | 
 | 8839 | _ACEOF | 
 | 8840 |  | 
 | 8841 |  | 
 | 8842 | fi | 
 | 8843 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8844 | 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] | 8845 |         #include <stdint.h> | 
 | 8846 |         #endif | 
| Antoine Pitrou | 1bf29b7 | 2010-10-10 08:10:16 +0000 | [diff] [blame] | 8847 |         #ifdef HAVE_INTTYPES_H | 
 | 8848 |         #include <inttypes.h> | 
 | 8849 |         #endif | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8850 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8851 | if test "x$ac_cv_type_uintptr_t" = xyes; then : | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 8852 |  | 
 | 8853 | cat >>confdefs.h <<_ACEOF | 
 | 8854 | #define HAVE_UINTPTR_T 1 | 
 | 8855 | _ACEOF | 
 | 8856 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8857 | # The cast to long int works around a bug in the HP C Compiler | 
 | 8858 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 8859 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 8860 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8861 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uintptr_t" >&5 | 
 | 8862 | $as_echo_n "checking size of uintptr_t... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8863 | if ${ac_cv_sizeof_uintptr_t+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8864 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8865 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8866 |   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] | 8867 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8868 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8869 |   if test "$ac_cv_type_uintptr_t" = yes; then | 
 | 8870 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 8871 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8872 | as_fn_error 77 "cannot compute sizeof (uintptr_t) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8873 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8874 |    else | 
 | 8875 |      ac_cv_sizeof_uintptr_t=0 | 
 | 8876 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8877 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8878 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8879 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uintptr_t" >&5 | 
 | 8881 | $as_echo "$ac_cv_sizeof_uintptr_t" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8882 |  | 
 | 8883 |  | 
 | 8884 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8885 | cat >>confdefs.h <<_ACEOF | 
| Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8886 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8887 | _ACEOF | 
| Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8888 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8889 |  | 
| Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8890 | fi | 
 | 8891 |  | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 8892 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8893 | # The cast to long int works around a bug in the HP C Compiler | 
 | 8894 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 8895 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 8896 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8897 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 | 
 | 8898 | $as_echo_n "checking size of off_t... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8899 | if ${ac_cv_sizeof_off_t+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8900 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8901 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8902 |   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] | 8903 | #ifdef HAVE_SYS_TYPES_H | 
 | 8904 | #include <sys/types.h> | 
 | 8905 | #endif | 
 | 8906 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8907 | "; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8908 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8909 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8910 |   if test "$ac_cv_type_off_t" = yes; then | 
 | 8911 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 8912 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8913 | as_fn_error 77 "cannot compute sizeof (off_t) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8914 | See \`config.log' for more details" "$LINENO" 5; } | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8915 |    else | 
 | 8916 |      ac_cv_sizeof_off_t=0 | 
 | 8917 |    fi | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8918 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8919 |  | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8920 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 | 
 | 8922 | $as_echo "$ac_cv_sizeof_off_t" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8923 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8924 |  | 
 | 8925 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8926 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8927 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8928 | _ACEOF | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8929 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8930 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8931 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8932 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable large file support" >&5 | 
 | 8933 | $as_echo_n "checking whether to enable large file support... " >&6; } | 
| Mark Dickinson | 2df5d28 | 2009-12-31 21:22:50 +0000 | [diff] [blame] | 8934 | if test "$have_long_long" = yes | 
 | 8935 | then | 
 | 8936 | 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] | 8937 | 	"$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] | 8938 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8939 | $as_echo "#define HAVE_LARGEFILE_SUPPORT 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8940 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8941 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 8942 | $as_echo "yes" >&6; } | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8943 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8944 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 8945 | $as_echo "no" >&6; } | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8946 | fi | 
| Mark Dickinson | 2df5d28 | 2009-12-31 21:22:50 +0000 | [diff] [blame] | 8947 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8948 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 8949 | $as_echo "no" >&6; } | 
| Mark Dickinson | 2df5d28 | 2009-12-31 21:22:50 +0000 | [diff] [blame] | 8950 | fi | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8951 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8952 | # The cast to long int works around a bug in the HP C Compiler | 
 | 8953 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 8954 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 8955 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8956 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 | 
 | 8957 | $as_echo_n "checking size of time_t... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8958 | if ${ac_cv_sizeof_time_t+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8959 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8960 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8961 |   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] | 8962 | #ifdef HAVE_SYS_TYPES_H | 
 | 8963 | #include <sys/types.h> | 
 | 8964 | #endif | 
 | 8965 | #ifdef HAVE_TIME_H | 
 | 8966 | #include <time.h> | 
 | 8967 | #endif | 
 | 8968 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8969 | "; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8970 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8971 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8972 |   if test "$ac_cv_type_time_t" = yes; then | 
 | 8973 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 8974 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8975 | as_fn_error 77 "cannot compute sizeof (time_t) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8976 | See \`config.log' for more details" "$LINENO" 5; } | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8977 |    else | 
 | 8978 |      ac_cv_sizeof_time_t=0 | 
 | 8979 |    fi | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8980 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8981 |  | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8982 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8983 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 | 
 | 8984 | $as_echo "$ac_cv_sizeof_time_t" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8985 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8986 |  | 
 | 8987 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8988 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8989 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8990 | _ACEOF | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8991 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8992 |  | 
 | 8993 |  | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8994 | # if have pthread_t then define SIZEOF_PTHREAD_T | 
| Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 8995 | ac_save_cc="$CC" | 
 | 8996 | if test "$ac_cv_kpthread" = "yes" | 
 | 8997 | then CC="$CC -Kpthread" | 
| Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 8998 | elif test "$ac_cv_kthread" = "yes" | 
 | 8999 | then CC="$CC -Kthread" | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9000 | elif test "$ac_cv_pthread" = "yes" | 
 | 9001 | then CC="$CC -pthread" | 
| Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 9002 | fi | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9003 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9004 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_t" >&5 | 
 | 9005 | $as_echo_n "checking for pthread_t... " >&6; } | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9006 | have_pthread_t=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9007 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9008 | /* end confdefs.h.  */ | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9009 |  | 
 | 9010 |   #include <pthread.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9011 | int | 
 | 9012 | main () | 
 | 9013 | { | 
| Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 9014 | pthread_t x; x = *(pthread_t*)0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9015 |   ; | 
 | 9016 |   return 0; | 
 | 9017 | } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9018 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9019 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9020 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9021 |   have_pthread_t=yes | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9022 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9023 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9024 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_t" >&5 | 
 | 9025 | $as_echo "$have_pthread_t" >&6; } | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9026 | if test "$have_pthread_t" = yes ; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9027 |   # 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] | 9028 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 9029 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 9030 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9031 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5 | 
 | 9032 | $as_echo_n "checking size of pthread_t... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9033 | if ${ac_cv_sizeof_pthread_t+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9034 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9035 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9036 |   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] | 9037 | #ifdef HAVE_PTHREAD_H | 
 | 9038 | #include <pthread.h> | 
 | 9039 | #endif | 
 | 9040 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9041 | "; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9042 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9043 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9044 |   if test "$ac_cv_type_pthread_t" = yes; then | 
 | 9045 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 9046 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 9047 | as_fn_error 77 "cannot compute sizeof (pthread_t) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9048 | See \`config.log' for more details" "$LINENO" 5; } | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9049 |    else | 
 | 9050 |      ac_cv_sizeof_pthread_t=0 | 
 | 9051 |    fi | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9052 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9053 |  | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9054 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5 | 
 | 9056 | $as_echo "$ac_cv_sizeof_pthread_t" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9057 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9058 |  | 
 | 9059 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9060 | cat >>confdefs.h <<_ACEOF | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9061 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9062 | _ACEOF | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9063 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9064 |  | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9065 | fi | 
| Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 9066 | CC="$ac_save_cc" | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9067 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9068 |  | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9069 | case $ac_sys_system/$ac_sys_release in | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 9070 |   Darwin/[01567]\..*) | 
| Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 9071 |     OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000" | 
 | 9072 |     ;; | 
 | 9073 |   Darwin/*) | 
 | 9074 |     OTHER_LIBTOOL_OPT="" | 
 | 9075 |     ;; | 
 | 9076 | esac | 
 | 9077 |  | 
 | 9078 |  | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9079 |  | 
| Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 9080 | case $ac_sys_system/$ac_sys_release in | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 9081 |   Darwin/[01567]\..*) | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9082 |     LIBTOOL_CRUFT="-framework System -lcc_dynamic" | 
 | 9083 |     if test "${enable_universalsdk}"; then | 
 | 9084 | 	    : | 
 | 9085 |     else | 
| Ronald Oussoren | e3da75a | 2010-02-11 13:38:58 +0000 | [diff] [blame] | 9086 |         LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `/usr/bin/arch`" | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9087 |     fi | 
| Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 9088 |     LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 9089 |     LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; | 
| Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 9090 |   Darwin/*) | 
| Ronald Oussoren | 9812a6c | 2010-02-07 11:53:18 +0000 | [diff] [blame] | 9091 |     gcc_version=`gcc -dumpversion` | 
| Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 9092 |     if test ${gcc_version} '<' 4.0 | 
 | 9093 |         then | 
 | 9094 |             LIBTOOL_CRUFT="-lcc_dynamic" | 
 | 9095 |         else | 
 | 9096 |             LIBTOOL_CRUFT="" | 
 | 9097 |     fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9098 |     if test "$cross_compiling" = yes; then : | 
| Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 9099 |   ac_osx_32bit=yes | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9100 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9101 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9102 | /* end confdefs.h.  */ | 
| Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 9103 |  | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9104 |     #include <unistd.h> | 
 | 9105 |     int main(int argc, char*argv[]) | 
 | 9106 |     { | 
 | 9107 |       if (sizeof(long) == 4) { | 
 | 9108 |     	  return 0; | 
 | 9109 |       } else { | 
 | 9110 |       	  return 1; | 
 | 9111 |       } | 
| Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 9112 |     } | 
 | 9113 |  | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9114 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9115 | if ac_fn_c_try_run "$LINENO"; then : | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9116 |   ac_osx_32bit=yes | 
 | 9117 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9118 |   ac_osx_32bit=no | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9119 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9120 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 9121 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9122 | fi | 
 | 9123 |  | 
 | 9124 |  | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9125 |     if test "${ac_osx_32bit}" = "yes"; then | 
| Ronald Oussoren | e3da75a | 2010-02-11 13:38:58 +0000 | [diff] [blame] | 9126 |     	case `/usr/bin/arch` in | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9127 |     	i386) | 
 | 9128 |     		MACOSX_DEFAULT_ARCH="i386" | 
 | 9129 |     		;; | 
 | 9130 |     	ppc) | 
 | 9131 |     		MACOSX_DEFAULT_ARCH="ppc" | 
 | 9132 |     		;; | 
 | 9133 |     	*) | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 9134 |     		as_fn_error $? "Unexpected output of 'arch' on OSX" "$LINENO" 5 | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9135 |     		;; | 
 | 9136 |     	esac | 
 | 9137 |     else | 
| Ronald Oussoren | e3da75a | 2010-02-11 13:38:58 +0000 | [diff] [blame] | 9138 |     	case `/usr/bin/arch` in | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9139 |     	i386) | 
 | 9140 |     		MACOSX_DEFAULT_ARCH="x86_64" | 
 | 9141 |     		;; | 
 | 9142 |     	ppc) | 
 | 9143 |     		MACOSX_DEFAULT_ARCH="ppc64" | 
 | 9144 |     		;; | 
 | 9145 |     	*) | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 9146 |     		as_fn_error $? "Unexpected output of 'arch' on OSX" "$LINENO" 5 | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9147 |     		;; | 
 | 9148 |     	esac | 
 | 9149 |  | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9150 |     fi | 
 | 9151 |  | 
 | 9152 |     LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}" | 
| Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 9153 |     LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9154 |     LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9155 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9156 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-framework" >&5 | 
 | 9157 | $as_echo_n "checking for --enable-framework... " >&6; } | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9158 | if test "$enable_framework" | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9159 | then | 
| Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 9160 | 	BASECFLAGS="$BASECFLAGS -fno-common -dynamic" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9161 | 	# -F. is needed to allow linking to the framework while | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9162 | 	# in the build location. | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9163 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9164 | $as_echo "#define WITH_NEXT_FRAMEWORK 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9165 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9166 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 9167 | $as_echo "yes" >&6; } | 
| Ronald Oussoren | 99aab65 | 2009-06-08 21:22:57 +0000 | [diff] [blame] | 9168 | 	if test $enable_shared = "yes" | 
 | 9169 | 	then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 9170 | 		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] | 9171 | 	fi | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9172 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9173 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 9174 | $as_echo "no" >&6; } | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9175 | fi | 
 | 9176 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9177 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dyld" >&5 | 
 | 9178 | $as_echo_n "checking for dyld... " >&6; } | 
| Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 9179 | case $ac_sys_system/$ac_sys_release in | 
 | 9180 |   Darwin/*) | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9181 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9182 | $as_echo "#define WITH_DYLD 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9183 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9184 |   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: always on for Darwin" >&5 | 
 | 9185 | $as_echo "always on for Darwin" >&6; } | 
| Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 9186 |   	;; | 
 | 9187 |   *) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9188 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 9189 | $as_echo "no" >&6; } | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9190 | 	;; | 
| Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 9191 | esac | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9192 |  | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9193 | # Set info about shared libraries. | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9194 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9195 |  | 
 | 9196 |  | 
 | 9197 |  | 
 | 9198 |  | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9199 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9200 |  | 
| doko@ubuntu.com | d5537d0 | 2013-03-21 13:21:49 -0700 | [diff] [blame] | 9201 | # SHLIB_SUFFIX is the extension of shared libraries `(including the dot!) | 
 | 9202 | # -- usually .so, .sl on HP-UX, .dll on Cygwin | 
 | 9203 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the extension of shared libraries" >&5 | 
 | 9204 | $as_echo_n "checking the extension of shared libraries... " >&6; } | 
 | 9205 | if test -z "$SHLIB_SUFFIX"; then | 
 | 9206 | 	case $ac_sys_system in | 
 | 9207 | 	hp*|HP*) | 
 | 9208 | 		case `uname -m` in | 
 | 9209 | 			ia64) SHLIB_SUFFIX=.so;; | 
 | 9210 | 	  		*)    SHLIB_SUFFIX=.sl;; | 
 | 9211 | 		esac | 
 | 9212 | 		;; | 
 | 9213 | 	CYGWIN*)   SHLIB_SUFFIX=.dll;; | 
 | 9214 | 	*)	   SHLIB_SUFFIX=.so;; | 
 | 9215 | 	esac | 
 | 9216 | fi | 
 | 9217 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIB_SUFFIX" >&5 | 
 | 9218 | $as_echo "$SHLIB_SUFFIX" >&6; } | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9219 |  | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9220 | # LDSHARED is the ld *command* used to create shared library | 
| Martin v. Löwis | 12af048 | 2004-01-31 12:34:17 +0000 | [diff] [blame] | 9221 | # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5 | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9222 | # (Shared libraries in this instance are shared modules to be loaded into | 
 | 9223 | # Python, as opposed to building Python itself as a shared library.) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9224 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDSHARED" >&5 | 
 | 9225 | $as_echo_n "checking LDSHARED... " >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9226 | if test -z "$LDSHARED" | 
 | 9227 | then | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9228 | 	case $ac_sys_system/$ac_sys_release in | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9229 | 	AIX*) | 
| Georg Brandl | 9a829be | 2011-02-15 15:44:51 +0000 | [diff] [blame] | 9230 | 		BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:\$(srcdir)/Modules/python.exp" | 
| Martin Panter | 5de141f | 2016-08-27 04:00:19 +0000 | [diff] [blame] | 9231 | 		LDSHARED="\$(LIBPL)/ld_so_aix \$(CC) -bI:\$(LIBPL)/python.exp" | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9232 | 		;; | 
| Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 9233 | 	IRIX/5*) LDSHARED="ld -shared";; | 
| Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 9234 | 	IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9235 | 	SunOS/5*) | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9236 | 		if test "$GCC" = "yes" ; then | 
 | 9237 | 			LDSHARED='$(CC) -shared' | 
 | 9238 | 			LDCXXSHARED='$(CXX) -shared' | 
 | 9239 | 		else | 
 | 9240 | 			LDSHARED='$(CC) -G' | 
 | 9241 | 			LDCXXSHARED='$(CXX) -G' | 
| Greg Ward | 57c9a663 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 9242 | 		fi ;; | 
| Thomas Heller | f44b9a1 | 2008-04-04 10:18:23 +0000 | [diff] [blame] | 9243 | 	hp*|HP*) | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9244 | 		if test "$GCC" = "yes" ; then | 
 | 9245 | 			LDSHARED='$(CC) -shared' | 
 | 9246 | 			LDCXXSHARED='$(CXX) -shared' | 
 | 9247 | 		else | 
 | 9248 | 			LDSHARED='ld -b' | 
| Thomas Heller | f44b9a1 | 2008-04-04 10:18:23 +0000 | [diff] [blame] | 9249 | 		fi ;; | 
| Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9250 | 	Darwin/1.3*) | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 9251 | 		LDSHARED='$(CC) -bundle' | 
 | 9252 | 		LDCXXSHARED='$(CXX) -bundle' | 
| Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 9253 | 		if test "$enable_framework" ; then | 
 | 9254 | 			# Link against the framework. All externals should be defined. | 
| Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 9255 | 			BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
 | 9256 | 			LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9257 | 			LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 9258 | 		else | 
 | 9259 | 			# No framework. Ignore undefined symbols, assuming they come from Python | 
| Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9260 | 			LDSHARED="$LDSHARED -undefined suppress" | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9261 | 			LDCXXSHARED="$LDCXXSHARED -undefined suppress" | 
| Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 9262 | 		fi ;; | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 9263 | 	Darwin/1.4*|Darwin/5.*|Darwin/6.*) | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 9264 | 		LDSHARED='$(CC) -bundle' | 
 | 9265 | 		LDCXXSHARED='$(CXX) -bundle' | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9266 | 		if test "$enable_framework" ; then | 
 | 9267 | 			# Link against the framework. All externals should be defined. | 
| Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 9268 | 			BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
 | 9269 | 			LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9270 | 			LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9271 | 		else | 
| Michael W. Hudson | 594bc80 | 2002-03-07 09:59:15 +0000 | [diff] [blame] | 9272 | 			# No framework, use the Python app as bundle-loader | 
 | 9273 | 			BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' | 
| Jack Jansen | c28fc37 | 2003-02-25 13:14:43 +0000 | [diff] [blame] | 9274 | 			LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9275 | 			LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9276 | 		fi ;; | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 9277 | 	Darwin/*) | 
 | 9278 | 		# Use -undefined dynamic_lookup whenever possible (10.3 and later). | 
 | 9279 | 		# This allows an extension to be used in any Python | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 9280 |  | 
| Ned Deily | 36820b6 | 2014-06-25 13:44:22 -0700 | [diff] [blame] | 9281 | 		dep_target_major=`echo ${MACOSX_DEPLOYMENT_TARGET} | \ | 
 | 9282 | 				sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'` | 
 | 9283 | 		dep_target_minor=`echo ${MACOSX_DEPLOYMENT_TARGET} | \ | 
 | 9284 | 				sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'` | 
 | 9285 | 		if test ${dep_target_major} -eq 10 && \ | 
 | 9286 | 		   test ${dep_target_minor} -le 2 | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 9287 | 		then | 
| Ned Deily | 36820b6 | 2014-06-25 13:44:22 -0700 | [diff] [blame] | 9288 | 			# building for OS X 10.0 through 10.2 | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 9289 | 			LDSHARED='$(CC) -bundle' | 
 | 9290 | 			LDCXXSHARED='$(CXX) -bundle' | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 9291 | 			if test "$enable_framework" ; then | 
 | 9292 | 				# Link against the framework. All externals should be defined. | 
| Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 9293 | 				BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
 | 9294 | 				LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9295 | 				LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 9296 | 			else | 
 | 9297 | 				# No framework, use the Python app as bundle-loader | 
 | 9298 | 				BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' | 
 | 9299 | 				LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9300 | 				LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 9301 | 			fi | 
| Ned Deily | 36820b6 | 2014-06-25 13:44:22 -0700 | [diff] [blame] | 9302 | 		else | 
 | 9303 | 			# building for OS X 10.3 and later | 
 | 9304 | 			LDSHARED='$(CC) -bundle -undefined dynamic_lookup' | 
 | 9305 | 			LDCXXSHARED='$(CXX) -bundle -undefined dynamic_lookup' | 
 | 9306 | 			BLDSHARED="$LDSHARED" | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 9307 | 		fi | 
 | 9308 | 		;; | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9309 | 	Linux*|GNU*|QNX*) | 
 | 9310 | 		LDSHARED='$(CC) -shared' | 
 | 9311 | 		LDCXXSHARED='$(CXX) -shared';; | 
 | 9312 | 	BSD/OS*/4*) | 
 | 9313 | 		LDSHARED="gcc -shared" | 
 | 9314 | 		LDCXXSHARED="g++ -shared";; | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 9315 | 	FreeBSD*) | 
| Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 9316 | 		if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] | 
| Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 9317 | 		then | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 9318 | 			LDSHARED='$(CC) -shared' | 
 | 9319 | 			LDCXXSHARED='$(CXX) -shared' | 
| Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 9320 | 		else | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 9321 | 			LDSHARED="ld -Bshareable" | 
| Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 9322 | 		fi;; | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 9323 | 	OpenBSD*) | 
 | 9324 | 		if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] | 
 | 9325 | 		then | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 9326 | 				LDSHARED='$(CC) -shared $(CCSHARED)' | 
 | 9327 | 				LDCXXSHARED='$(CXX) -shared $(CCSHARED)' | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 9328 | 		else | 
 | 9329 | 				case `uname -r` in | 
 | 9330 | 				[01].* | 2.[0-7] | 2.[0-7].*) | 
 | 9331 | 				   LDSHARED="ld -Bshareable ${LDFLAGS}" | 
 | 9332 | 				   ;; | 
 | 9333 | 				*) | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 9334 | 				   LDSHARED='$(CC) -shared $(CCSHARED)' | 
 | 9335 | 				   LDCXXSHARED='$(CXX) -shared $(CCSHARED)' | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 9336 | 				   ;; | 
 | 9337 | 				esac | 
 | 9338 | 		fi;; | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9339 | 	NetBSD*|DragonFly*) | 
| Antoine Pitrou | ece919e | 2011-01-02 20:45:21 +0000 | [diff] [blame] | 9340 | 		LDSHARED='$(CC) -shared' | 
 | 9341 | 		LDCXXSHARED='$(CXX) -shared';; | 
| Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 9342 | 	OpenUNIX*|UnixWare*) | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9343 | 		if test "$GCC" = "yes" ; then | 
 | 9344 | 			LDSHARED='$(CC) -shared' | 
 | 9345 | 			LDCXXSHARED='$(CXX) -shared' | 
 | 9346 | 		else | 
 | 9347 | 			LDSHARED='$(CC) -G' | 
 | 9348 | 			LDCXXSHARED='$(CXX) -G' | 
| Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 9349 | 		fi;; | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9350 | 	SCO_SV*) | 
 | 9351 | 		LDSHARED='$(CC) -Wl,-G,-Bexport' | 
 | 9352 | 		LDCXXSHARED='$(CXX) -Wl,-G,-Bexport';; | 
 | 9353 | 	CYGWIN*) | 
 | 9354 | 		LDSHARED="gcc -shared -Wl,--enable-auto-image-base" | 
 | 9355 | 		LDCXXSHARED="g++ -shared -Wl,--enable-auto-image-base";; | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9356 | 	*)	LDSHARED="ld";; | 
 | 9357 | 	esac | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9358 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9359 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDSHARED" >&5 | 
 | 9360 | $as_echo "$LDSHARED" >&6; } | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9361 | LDCXXSHARED=${LDCXXSHARED-$LDSHARED} | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9362 | BLDSHARED=${BLDSHARED-$LDSHARED} | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9363 | # 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] | 9364 | # library (module) -- this is only needed for a few systems | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9365 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CCSHARED" >&5 | 
 | 9366 | $as_echo_n "checking CCSHARED... " >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9367 | if test -z "$CCSHARED" | 
 | 9368 | then | 
| Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 9369 | 	case $ac_sys_system/$ac_sys_release in | 
| Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 9370 | 	SunOS*) if test "$GCC" = yes; | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 9371 | 		then CCSHARED="-fPIC"; | 
 | 9372 | 		elif test `uname -p` = sparc; | 
 | 9373 | 		then CCSHARED="-xcode=pic32"; | 
 | 9374 | 		else CCSHARED="-Kpic"; | 
 | 9375 | 		fi;; | 
| Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 9376 | 	hp*|HP*) if test "$GCC" = yes; | 
| Martin v. Löwis | 703ad70 | 2001-09-05 08:36:52 +0000 | [diff] [blame] | 9377 | 		 then CCSHARED="-fPIC"; | 
| Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 9378 | 		 else CCSHARED="+z"; | 
 | 9379 | 		 fi;; | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9380 | 	Linux*|GNU*) CCSHARED="-fPIC";; | 
| Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 9381 | 	BSD/OS*/4*) CCSHARED="-fpic";; | 
| Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 9382 | 	FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";; | 
| Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 9383 | 	OpenUNIX*|UnixWare*) | 
| Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 9384 | 		if test "$GCC" = "yes" | 
 | 9385 | 		then CCSHARED="-fPIC" | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9386 | 		else CCSHARED="-KPIC" | 
| Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 9387 | 		fi;; | 
| Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 9388 | 	SCO_SV*) | 
 | 9389 | 		if test "$GCC" = "yes" | 
 | 9390 | 		then CCSHARED="-fPIC" | 
 | 9391 | 		else CCSHARED="-Kpic -belf" | 
 | 9392 | 		fi;; | 
| Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9393 | 	IRIX*/6*)  case $CC in | 
 | 9394 | 		   *gcc*) CCSHARED="-shared";; | 
| Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 9395 | 		   *) CCSHARED="";; | 
| Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9396 | 		   esac;; | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9397 | 	esac | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9398 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCSHARED" >&5 | 
 | 9400 | $as_echo "$CCSHARED" >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9401 | # LINKFORSHARED are the flags passed to the $(CC) command that links | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9402 | # the python executable -- this is only needed for a few systems | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9403 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKFORSHARED" >&5 | 
 | 9404 | $as_echo_n "checking LINKFORSHARED... " >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9405 | if test -z "$LINKFORSHARED" | 
 | 9406 | then | 
| Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 9407 | 	case $ac_sys_system/$ac_sys_release in | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9408 | 	AIX*)	LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 9409 | 	hp*|HP*) | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 9410 | 	    LINKFORSHARED="-Wl,-E -Wl,+s";; | 
 | 9411 | #	    LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; | 
| Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 9412 | 	BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9413 | 	Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9414 | 	# -u libsys_s pulls in all symbols in libsys | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9415 | 	Darwin/*) | 
| Benjamin Peterson | 9c80cac | 2009-05-23 16:34:23 +0000 | [diff] [blame] | 9416 | 		LINKFORSHARED="$extra_undefs -framework CoreFoundation" | 
| Łukasz Langa | 335ab5b | 2013-05-30 20:58:53 +0200 | [diff] [blame] | 9417 |  | 
 | 9418 | 		# Issue #18075: the default maximum stack size (8MBytes) is too | 
 | 9419 | 		# small for the default recursion limit. Increase the stack size | 
 | 9420 | 		# to ensure that tests don't crash | 
 | 9421 | 		LINKFORSHARED="-Wl,-stack_size,1000000 $LINKFORSHARED" | 
 | 9422 |  | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9423 | 		if test "$enable_framework" | 
 | 9424 | 		then | 
| Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 9425 | 			LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9426 | 		fi | 
| Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 9427 | 		LINKFORSHARED="$LINKFORSHARED";; | 
| Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 9428 | 	OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; | 
| Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 9429 | 	SCO_SV*) LINKFORSHARED="-Wl,-Bexport";; | 
| Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 9430 | 	ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; | 
| Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 9431 | 	FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) | 
| Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 9432 | 		if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] | 
 | 9433 | 		then | 
 | 9434 | 			LINKFORSHARED="-Wl,--export-dynamic" | 
 | 9435 | 		fi;; | 
| Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9436 | 	SunOS/5*) case $CC in | 
 | 9437 | 		  *gcc*) | 
| Martin v. Löwis | a454857 | 2002-04-18 14:51:36 +0000 | [diff] [blame] | 9438 | 		    if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null | 
| Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 9439 | 		    then | 
 | 9440 | 			LINKFORSHARED="-Xlinker --export-dynamic" | 
| Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9441 | 		    fi;; | 
 | 9442 | 		  esac;; | 
| Jason Tishler | 3076559 | 2003-09-04 11:04:06 +0000 | [diff] [blame] | 9443 | 	CYGWIN*) | 
 | 9444 | 		if test $enable_shared = "no" | 
 | 9445 | 		then | 
 | 9446 | 			LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)' | 
 | 9447 | 		fi;; | 
| Benjamin Peterson | de9c869 | 2008-07-01 18:23:09 +0000 | [diff] [blame] | 9448 | 	QNX*) | 
 | 9449 | 		# -Wl,-E causes the symbols to be added to the dynamic | 
 | 9450 | 		# symbol table so that they can be found when a module | 
 | 9451 | 		# is loaded.  -N 2048K causes the stack size to be set | 
 | 9452 | 		# to 2048 kilobytes so that the stack doesn't overflow | 
 | 9453 | 		# when running test_compile.py. | 
 | 9454 | 		LINKFORSHARED='-Wl,-E -N 2048K';; | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9455 | 	esac | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9456 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9457 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKFORSHARED" >&5 | 
 | 9458 | $as_echo "$LINKFORSHARED" >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9459 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9460 |  | 
| Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 9461 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9462 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGSFORSHARED" >&5 | 
 | 9463 | $as_echo_n "checking CFLAGSFORSHARED... " >&6; } | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 9464 | if test ! "$LIBRARY" = "$LDLIBRARY" | 
 | 9465 | then | 
| Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 +0000 | [diff] [blame] | 9466 | 	case $ac_sys_system in | 
 | 9467 | 	CYGWIN*) | 
 | 9468 | 		# Cygwin needs CCSHARED when building extension DLLs | 
 | 9469 | 		# but not when building the interpreter DLL. | 
 | 9470 | 		CFLAGSFORSHARED='';; | 
 | 9471 | 	*) | 
 | 9472 | 		CFLAGSFORSHARED='$(CCSHARED)' | 
 | 9473 | 	esac | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 9474 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9475 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLAGSFORSHARED" >&5 | 
 | 9476 | $as_echo "$CFLAGSFORSHARED" >&6; } | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 9477 |  | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9478 | # SHLIBS are libraries (except -lc and -lm) to link to the python shared | 
 | 9479 | # library (with --enable-shared). | 
 | 9480 | # 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] | 9481 | # symbols, this must be set to $(LIBS) (expanded by make). We do this even | 
 | 9482 | # if it is not required, since it creates a dependency of the shared library | 
 | 9483 | # to LIBS. This, in turn, means that applications linking the shared libpython | 
 | 9484 | # don't need to link LIBS explicitly. The default should be only changed | 
 | 9485 | # on systems where this approach causes problems. | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9486 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9487 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking SHLIBS" >&5 | 
 | 9488 | $as_echo_n "checking SHLIBS... " >&6; } | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9489 | case "$ac_sys_system" in | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9490 | 	*) | 
| Martin v. Löwis | d6359c5 | 2002-08-04 12:38:50 +0000 | [diff] [blame] | 9491 | 		SHLIBS='$(LIBS)';; | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9492 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIBS" >&5 | 
 | 9494 | $as_echo "$SHLIBS" >&6; } | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9495 |  | 
 | 9496 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9497 | # checks for libraries | 
| Georg Brandl | 941f956 | 2011-02-25 15:21:47 +0000 | [diff] [blame] | 9498 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendfile in -lsendfile" >&5 | 
 | 9499 | $as_echo_n "checking for sendfile in -lsendfile... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9500 | if ${ac_cv_lib_sendfile_sendfile+:} false; then : | 
| Georg Brandl | 941f956 | 2011-02-25 15:21:47 +0000 | [diff] [blame] | 9501 |   $as_echo_n "(cached) " >&6 | 
 | 9502 | else | 
 | 9503 |   ac_check_lib_save_LIBS=$LIBS | 
 | 9504 | LIBS="-lsendfile  $LIBS" | 
 | 9505 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 9506 | /* end confdefs.h.  */ | 
 | 9507 |  | 
 | 9508 | /* Override any GCC internal prototype to avoid an error. | 
 | 9509 |    Use char because int might match the return type of a GCC | 
 | 9510 |    builtin and then its argument prototype would still apply.  */ | 
 | 9511 | #ifdef __cplusplus | 
 | 9512 | extern "C" | 
 | 9513 | #endif | 
 | 9514 | char sendfile (); | 
 | 9515 | int | 
 | 9516 | main () | 
 | 9517 | { | 
 | 9518 | return sendfile (); | 
 | 9519 |   ; | 
 | 9520 |   return 0; | 
 | 9521 | } | 
 | 9522 | _ACEOF | 
 | 9523 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 9524 |   ac_cv_lib_sendfile_sendfile=yes | 
 | 9525 | else | 
 | 9526 |   ac_cv_lib_sendfile_sendfile=no | 
 | 9527 | fi | 
 | 9528 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 9529 |     conftest$ac_exeext conftest.$ac_ext | 
 | 9530 | LIBS=$ac_check_lib_save_LIBS | 
 | 9531 | fi | 
 | 9532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sendfile_sendfile" >&5 | 
 | 9533 | $as_echo "$ac_cv_lib_sendfile_sendfile" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9534 | if test "x$ac_cv_lib_sendfile_sendfile" = xyes; then : | 
| Georg Brandl | 941f956 | 2011-02-25 15:21:47 +0000 | [diff] [blame] | 9535 |   cat >>confdefs.h <<_ACEOF | 
 | 9536 | #define HAVE_LIBSENDFILE 1 | 
 | 9537 | _ACEOF | 
 | 9538 |  | 
 | 9539 |   LIBS="-lsendfile $LIBS" | 
 | 9540 |  | 
 | 9541 | fi | 
 | 9542 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9543 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | 
 | 9544 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9545 | if ${ac_cv_lib_dl_dlopen+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9546 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9547 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9548 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9549 | LIBS="-ldl  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9550 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9551 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9552 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9553 | /* Override any GCC internal prototype to avoid an error. | 
 | 9554 |    Use char because int might match the return type of a GCC | 
 | 9555 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9556 | #ifdef __cplusplus | 
 | 9557 | extern "C" | 
 | 9558 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9559 | char dlopen (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9560 | int | 
 | 9561 | main () | 
 | 9562 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9563 | return dlopen (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9564 |   ; | 
 | 9565 |   return 0; | 
 | 9566 | } | 
 | 9567 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9568 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9569 |   ac_cv_lib_dl_dlopen=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9570 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9571 |   ac_cv_lib_dl_dlopen=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9572 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9573 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 9574 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9575 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9576 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | 
 | 9578 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9579 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9580 |   cat >>confdefs.h <<_ACEOF | 
 | 9581 | #define HAVE_LIBDL 1 | 
 | 9582 | _ACEOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9583 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9584 |   LIBS="-ldl $LIBS" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 9585 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9586 | fi | 
 | 9587 | 	# Dynamic linking for SunOS/Solaris and SYSV | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9588 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | 
 | 9589 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9590 | if ${ac_cv_lib_dld_shl_load+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9591 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9592 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9593 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9594 | LIBS="-ldld  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9595 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9596 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9597 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9598 | /* Override any GCC internal prototype to avoid an error. | 
 | 9599 |    Use char because int might match the return type of a GCC | 
 | 9600 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9601 | #ifdef __cplusplus | 
 | 9602 | extern "C" | 
 | 9603 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9604 | char shl_load (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9605 | int | 
 | 9606 | main () | 
 | 9607 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9608 | return shl_load (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9609 |   ; | 
 | 9610 |   return 0; | 
 | 9611 | } | 
 | 9612 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9613 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9614 |   ac_cv_lib_dld_shl_load=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9615 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9616 |   ac_cv_lib_dld_shl_load=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9617 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9618 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 9619 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9620 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9621 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 | 
 | 9623 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9624 | 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] | 9625 |   cat >>confdefs.h <<_ACEOF | 
 | 9626 | #define HAVE_LIBDLD 1 | 
 | 9627 | _ACEOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9628 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9629 |   LIBS="-ldld $LIBS" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9630 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9631 | fi | 
 | 9632 | 	# Dynamic linking for HP-UX | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 9633 |  | 
| Georg Brandl | b1441c7 | 2009-01-03 22:33:39 +0000 | [diff] [blame] | 9634 | # only check for sem_init if thread support is requested | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 9635 | if test "$with_threads" = "yes" -o -z "$with_threads"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9636 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5 | 
 | 9637 | $as_echo_n "checking for library containing sem_init... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9638 | if ${ac_cv_search_sem_init+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9639 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9640 | else | 
| Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9641 |   ac_func_search_save_LIBS=$LIBS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9642 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9643 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9644 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9645 | /* Override any GCC internal prototype to avoid an error. | 
 | 9646 |    Use char because int might match the return type of a GCC | 
 | 9647 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9648 | #ifdef __cplusplus | 
 | 9649 | extern "C" | 
 | 9650 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9651 | char sem_init (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9652 | int | 
 | 9653 | main () | 
 | 9654 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9655 | return sem_init (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9656 |   ; | 
 | 9657 |   return 0; | 
 | 9658 | } | 
 | 9659 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9660 | for ac_lib in '' pthread rt posix4; do | 
 | 9661 |   if test -z "$ac_lib"; then | 
 | 9662 |     ac_res="none required" | 
 | 9663 |   else | 
 | 9664 |     ac_res=-l$ac_lib | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 9665 |     LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9666 |   fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9667 |   if ac_fn_c_try_link "$LINENO"; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9668 |   ac_cv_search_sem_init=$ac_res | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9669 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9670 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 9671 |     conftest$ac_exeext | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9672 |   if ${ac_cv_search_sem_init+:} false; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9673 |   break | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 9674 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9675 | done | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9676 | if ${ac_cv_search_sem_init+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9677 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9678 | else | 
 | 9679 |   ac_cv_search_sem_init=no | 
 | 9680 | fi | 
 | 9681 | rm conftest.$ac_ext | 
| Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9682 | LIBS=$ac_func_search_save_LIBS | 
 | 9683 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5 | 
 | 9685 | $as_echo "$ac_cv_search_sem_init" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9686 | ac_res=$ac_cv_search_sem_init | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9687 | if test "$ac_res" != no; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9688 |   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
| Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9689 |  | 
| Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9690 | fi | 
| Martin v. Löwis | d3545ec | 2003-05-03 11:25:43 +0000 | [diff] [blame] | 9691 |  # 'Real Time' functions on Solaris | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 9692 | 						# posix4 on Solaris 2.6 | 
 | 9693 | 						# pthread (first!) on Linux | 
 | 9694 | fi | 
 | 9695 |  | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9696 | # check if we need libintl for locale functions | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9697 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for textdomain in -lintl" >&5 | 
 | 9698 | $as_echo_n "checking for textdomain in -lintl... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9699 | if ${ac_cv_lib_intl_textdomain+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9700 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9701 | else | 
 | 9702 |   ac_check_lib_save_LIBS=$LIBS | 
 | 9703 | LIBS="-lintl  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9704 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9705 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9706 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9707 | /* Override any GCC internal prototype to avoid an error. | 
 | 9708 |    Use char because int might match the return type of a GCC | 
 | 9709 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9710 | #ifdef __cplusplus | 
 | 9711 | extern "C" | 
 | 9712 | #endif | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9713 | char textdomain (); | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9714 | int | 
 | 9715 | main () | 
 | 9716 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9717 | return textdomain (); | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9718 |   ; | 
 | 9719 |   return 0; | 
 | 9720 | } | 
 | 9721 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9722 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9723 |   ac_cv_lib_intl_textdomain=yes | 
 | 9724 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9725 |   ac_cv_lib_intl_textdomain=no | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9726 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9727 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 9728 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9729 | LIBS=$ac_check_lib_save_LIBS | 
 | 9730 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_textdomain" >&5 | 
 | 9732 | $as_echo "$ac_cv_lib_intl_textdomain" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9733 | if test "x$ac_cv_lib_intl_textdomain" = xyes; then : | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9734 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9735 | $as_echo "#define WITH_LIBINTL 1" >>confdefs.h | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9736 |  | 
| Brett Cannon | c6d936e | 2009-06-07 20:09:53 +0000 | [diff] [blame] | 9737 |         LIBS="-lintl $LIBS" | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9738 | fi | 
 | 9739 |  | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9740 |  | 
 | 9741 | # checks for system dependent C++ extensions support | 
 | 9742 | case "$ac_sys_system" in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9743 | 	AIX*)	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for genuine AIX C++ extensions support" >&5 | 
 | 9744 | $as_echo_n "checking for genuine AIX C++ extensions support... " >&6; } | 
 | 9745 | 		cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9746 | /* end confdefs.h.  */ | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9747 |  | 
| Georg Brandl | 59e87bd | 2011-02-15 19:48:59 +0000 | [diff] [blame] | 9748 | 		  #include <load.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9749 | int | 
 | 9750 | main () | 
 | 9751 | { | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9752 | loadAndInit("", 0, "") | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9753 |   ; | 
 | 9754 |   return 0; | 
 | 9755 | } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9756 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9757 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9758 | if ac_fn_c_try_link "$LINENO"; then : | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9759 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9760 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9761 | $as_echo "#define AIX_GENUINE_CPLUSPLUS 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9762 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9763 | 		  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9764 | $as_echo "yes" >&6; } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9765 |  | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9766 | else | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9767 |  | 
 | 9768 | 		  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9769 | $as_echo "no" >&6; } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9770 |  | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9771 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9772 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 9773 |     conftest$ac_exeext conftest.$ac_ext;; | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9774 | 	*) ;; | 
 | 9775 | esac | 
 | 9776 |  | 
| Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 9777 | # check for systems that require aligned memory access | 
 | 9778 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking aligned memory access is required" >&5 | 
 | 9779 | $as_echo_n "checking aligned memory access is required... " >&6; } | 
 | 9780 | if test "$cross_compiling" = yes; then : | 
 | 9781 |   aligned_required=yes | 
 | 9782 | else | 
 | 9783 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 9784 | /* end confdefs.h.  */ | 
 | 9785 |  | 
 | 9786 | int main() | 
 | 9787 | { | 
 | 9788 |     char s[16]; | 
 | 9789 |     int i, *p1, *p2; | 
 | 9790 |     for (i=0; i < 16; i++) | 
 | 9791 |         s[i] = i; | 
 | 9792 |     p1 = (int*)(s+1); | 
 | 9793 |     p2 = (int*)(s+2); | 
 | 9794 |     if (*p1 == *p2) | 
 | 9795 |         return 1; | 
 | 9796 |     return 0; | 
 | 9797 | } | 
 | 9798 |  | 
 | 9799 | _ACEOF | 
 | 9800 | if ac_fn_c_try_run "$LINENO"; then : | 
 | 9801 |   aligned_required=no | 
 | 9802 | else | 
 | 9803 |   aligned_required=yes | 
 | 9804 | fi | 
 | 9805 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 9806 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
 | 9807 | fi | 
 | 9808 |  | 
 | 9809 |  | 
 | 9810 | if test "$aligned_required" = yes ; then | 
 | 9811 |  | 
 | 9812 | $as_echo "#define HAVE_ALIGNED_REQUIRED 1" >>confdefs.h | 
 | 9813 |  | 
 | 9814 | fi | 
 | 9815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aligned_required" >&5 | 
 | 9816 | $as_echo "$aligned_required" >&6; } | 
 | 9817 |  | 
 | 9818 |  | 
 | 9819 | # str, bytes and memoryview hash algorithm | 
 | 9820 |  | 
 | 9821 |  | 
 | 9822 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-hash-algorithm" >&5 | 
 | 9823 | $as_echo_n "checking for --with-hash-algorithm... " >&6; } | 
 | 9824 |  | 
 | 9825 | # Check whether --with-hash_algorithm was given. | 
 | 9826 | if test "${with_hash_algorithm+set}" = set; then : | 
 | 9827 |   withval=$with_hash_algorithm; | 
 | 9828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 | 
 | 9829 | $as_echo "$withval" >&6; } | 
 | 9830 | case "$withval" in | 
 | 9831 |     siphash24) | 
 | 9832 |         $as_echo "#define Py_HASH_ALGORITHM 1" >>confdefs.h | 
 | 9833 |  | 
 | 9834 |         ;; | 
 | 9835 |     fnv) | 
 | 9836 |         $as_echo "#define Py_HASH_ALGORITHM 2" >>confdefs.h | 
 | 9837 |  | 
 | 9838 |         ;; | 
 | 9839 |     *) | 
 | 9840 |         as_fn_error $? "unknown hash algorithm '$withval'" "$LINENO" 5 | 
 | 9841 |         ;; | 
 | 9842 | esac | 
 | 9843 |  | 
 | 9844 | else | 
 | 9845 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: default" >&5 | 
 | 9846 | $as_echo "default" >&6; } | 
 | 9847 | fi | 
 | 9848 |  | 
 | 9849 |  | 
| Charles-François Natali | d30b022 | 2014-05-08 23:08:51 +0100 | [diff] [blame] | 9850 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-address-sanitizer" >&5 | 
 | 9851 | $as_echo_n "checking for --with-address-sanitizer... " >&6; } | 
 | 9852 |  | 
 | 9853 | # Check whether --with-address_sanitizer was given. | 
 | 9854 | if test "${with_address_sanitizer+set}" = set; then : | 
 | 9855 |   withval=$with_address_sanitizer; | 
 | 9856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 | 
 | 9857 | $as_echo "$withval" >&6; } | 
 | 9858 | BASECFLAGS="-fsanitize=address -fno-omit-frame-pointer $BASECFLAGS" | 
 | 9859 | LDFLAGS="-fsanitize=address $LDFLAGS" | 
 | 9860 |  | 
 | 9861 | else | 
 | 9862 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 9863 | $as_echo "no" >&6; } | 
 | 9864 | fi | 
 | 9865 |  | 
 | 9866 |  | 
| Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 9867 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9868 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_open in -lnsl" >&5 | 
 | 9869 | $as_echo_n "checking for t_open in -lnsl... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9870 | if ${ac_cv_lib_nsl_t_open+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9871 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9872 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9873 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9874 | LIBS="-lnsl  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9875 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9876 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9877 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9878 | /* Override any GCC internal prototype to avoid an error. | 
 | 9879 |    Use char because int might match the return type of a GCC | 
 | 9880 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9881 | #ifdef __cplusplus | 
 | 9882 | extern "C" | 
 | 9883 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9884 | char t_open (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9885 | int | 
 | 9886 | main () | 
 | 9887 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9888 | return t_open (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9889 |   ; | 
 | 9890 |   return 0; | 
 | 9891 | } | 
 | 9892 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9893 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9894 |   ac_cv_lib_nsl_t_open=yes | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9895 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9896 |   ac_cv_lib_nsl_t_open=no | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9897 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9898 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 9899 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9900 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9901 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_t_open" >&5 | 
 | 9903 | $as_echo "$ac_cv_lib_nsl_t_open" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9904 | if test "x$ac_cv_lib_nsl_t_open" = xyes; then : | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9905 |   LIBS="-lnsl $LIBS" | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9906 | fi | 
| Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 9907 |  # SVR4 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9908 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 | 
 | 9909 | $as_echo_n "checking for socket in -lsocket... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9910 | if ${ac_cv_lib_socket_socket+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9911 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9912 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9913 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9914 | LIBS="-lsocket $LIBS $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9915 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9916 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9917 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9918 | /* Override any GCC internal prototype to avoid an error. | 
 | 9919 |    Use char because int might match the return type of a GCC | 
 | 9920 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9921 | #ifdef __cplusplus | 
 | 9922 | extern "C" | 
 | 9923 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9924 | char socket (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9925 | int | 
 | 9926 | main () | 
 | 9927 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9928 | return socket (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9929 |   ; | 
 | 9930 |   return 0; | 
 | 9931 | } | 
 | 9932 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9933 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9934 |   ac_cv_lib_socket_socket=yes | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9935 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9936 |   ac_cv_lib_socket_socket=no | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9937 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9938 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 9939 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9940 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9941 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 | 
 | 9943 | $as_echo "$ac_cv_lib_socket_socket" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9944 | if test "x$ac_cv_lib_socket_socket" = xyes; then : | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9945 |   LIBS="-lsocket $LIBS" | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9946 | fi | 
 | 9947 |  # SVR4 sockets | 
| Skip Montanaro | b9949db | 2004-01-17 04:04:13 +0000 | [diff] [blame] | 9948 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9949 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libs" >&5 | 
 | 9950 | $as_echo_n "checking for --with-libs... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9951 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9952 | # Check whether --with-libs was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9953 | if test "${with_libs+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9954 |   withval=$with_libs; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 | 
 | 9956 | $as_echo "$withval" >&6; } | 
| Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 9957 | LIBS="$withval $LIBS" | 
 | 9958 |  | 
 | 9959 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9960 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 9961 | $as_echo "no" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9962 | fi | 
 | 9963 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 9964 |  | 
| Victor Stinner | 8291b5e | 2015-03-20 16:03:14 +0100 | [diff] [blame] | 9965 |  | 
 | 9966 |  | 
 | 9967 |  | 
 | 9968 |  | 
 | 9969 |  | 
 | 9970 |  | 
 | 9971 |  | 
 | 9972 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | 
 | 9973 | 	if test -n "$ac_tool_prefix"; then | 
 | 9974 |   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | 
 | 9975 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | 
 | 9976 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 9977 | $as_echo_n "checking for $ac_word... " >&6; } | 
 | 9978 | if ${ac_cv_path_PKG_CONFIG+:} false; then : | 
 | 9979 |   $as_echo_n "(cached) " >&6 | 
 | 9980 | else | 
 | 9981 |   case $PKG_CONFIG in | 
 | 9982 |   [\\/]* | ?:[\\/]*) | 
 | 9983 |   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | 
 | 9984 |   ;; | 
 | 9985 |   *) | 
 | 9986 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 9987 | for as_dir in $PATH | 
 | 9988 | do | 
 | 9989 |   IFS=$as_save_IFS | 
 | 9990 |   test -z "$as_dir" && as_dir=. | 
 | 9991 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 9992 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 9993 |     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | 
 | 9994 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 9995 |     break 2 | 
 | 9996 |   fi | 
 | 9997 | done | 
 | 9998 |   done | 
 | 9999 | IFS=$as_save_IFS | 
 | 10000 |  | 
 | 10001 |   ;; | 
 | 10002 | esac | 
 | 10003 | fi | 
 | 10004 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | 
 | 10005 | if test -n "$PKG_CONFIG"; then | 
 | 10006 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | 
 | 10007 | $as_echo "$PKG_CONFIG" >&6; } | 
 | 10008 | else | 
 | 10009 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10010 | $as_echo "no" >&6; } | 
 | 10011 | fi | 
 | 10012 |  | 
 | 10013 |  | 
 | 10014 | fi | 
 | 10015 | if test -z "$ac_cv_path_PKG_CONFIG"; then | 
 | 10016 |   ac_pt_PKG_CONFIG=$PKG_CONFIG | 
 | 10017 |   # Extract the first word of "pkg-config", so it can be a program name with args. | 
 | 10018 | set dummy pkg-config; ac_word=$2 | 
 | 10019 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 10020 | $as_echo_n "checking for $ac_word... " >&6; } | 
 | 10021 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : | 
 | 10022 |   $as_echo_n "(cached) " >&6 | 
 | 10023 | else | 
 | 10024 |   case $ac_pt_PKG_CONFIG in | 
 | 10025 |   [\\/]* | ?:[\\/]*) | 
 | 10026 |   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | 
 | 10027 |   ;; | 
 | 10028 |   *) | 
 | 10029 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 10030 | for as_dir in $PATH | 
 | 10031 | do | 
 | 10032 |   IFS=$as_save_IFS | 
 | 10033 |   test -z "$as_dir" && as_dir=. | 
 | 10034 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 10035 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 10036 |     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | 
 | 10037 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 10038 |     break 2 | 
 | 10039 |   fi | 
 | 10040 | done | 
 | 10041 |   done | 
 | 10042 | IFS=$as_save_IFS | 
 | 10043 |  | 
 | 10044 |   ;; | 
 | 10045 | esac | 
 | 10046 | fi | 
 | 10047 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | 
 | 10048 | if test -n "$ac_pt_PKG_CONFIG"; then | 
 | 10049 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | 
 | 10050 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | 
 | 10051 | else | 
 | 10052 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10053 | $as_echo "no" >&6; } | 
 | 10054 | fi | 
 | 10055 |  | 
 | 10056 |   if test "x$ac_pt_PKG_CONFIG" = x; then | 
 | 10057 |     PKG_CONFIG="" | 
 | 10058 |   else | 
 | 10059 |     case $cross_compiling:$ac_tool_warned in | 
 | 10060 | yes:) | 
 | 10061 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 10062 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
 | 10063 | ac_tool_warned=yes ;; | 
 | 10064 | esac | 
 | 10065 |     PKG_CONFIG=$ac_pt_PKG_CONFIG | 
 | 10066 |   fi | 
 | 10067 | else | 
 | 10068 |   PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | 
 | 10069 | fi | 
 | 10070 |  | 
 | 10071 | fi | 
 | 10072 | if test -n "$PKG_CONFIG"; then | 
 | 10073 | 	_pkg_min_version=0.9.0 | 
 | 10074 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | 
 | 10075 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | 
 | 10076 | 	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | 
 | 10077 | 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 10078 | $as_echo "yes" >&6; } | 
 | 10079 | 	else | 
 | 10080 | 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10081 | $as_echo "no" >&6; } | 
 | 10082 | 		PKG_CONFIG="" | 
 | 10083 | 	fi | 
 | 10084 | fi | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 10085 |  | 
 | 10086 | # Check for use of the system expat library | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10087 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-expat" >&5 | 
 | 10088 | $as_echo_n "checking for --with-system-expat... " >&6; } | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 10089 |  | 
 | 10090 | # Check whether --with-system_expat was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10091 | if test "${with_system_expat+set}" = set; then : | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 10092 |   withval=$with_system_expat; | 
| Benjamin Peterson | 7926325 | 2010-10-31 16:50:44 +0000 | [diff] [blame] | 10093 | else | 
 | 10094 |   with_system_expat="no" | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 10095 | fi | 
 | 10096 |  | 
 | 10097 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_expat" >&5 | 
 | 10099 | $as_echo "$with_system_expat" >&6; } | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 10100 |  | 
 | 10101 | # Check for use of the system libffi library | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10102 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-ffi" >&5 | 
 | 10103 | $as_echo_n "checking for --with-system-ffi... " >&6; } | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 10104 |  | 
 | 10105 | # Check whether --with-system_ffi was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10106 | if test "${with_system_ffi+set}" = set; then : | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 10107 |   withval=$with_system_ffi; | 
| Benjamin Peterson | 7926325 | 2010-10-31 16:50:44 +0000 | [diff] [blame] | 10108 | else | 
 | 10109 |   with_system_ffi="no" | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 10110 | fi | 
 | 10111 |  | 
 | 10112 |  | 
 | 10113 | if test "$with_system_ffi" = "yes" && test -n "$PKG_CONFIG"; then | 
| Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 10114 |     LIBFFI_INCLUDEDIR="`"$PKG_CONFIG" libffi --cflags-only-I 2>/dev/null | sed -e 's/^-I//;s/ *$//'`" | 
 | 10115 | else | 
 | 10116 |     LIBFFI_INCLUDEDIR="" | 
 | 10117 | fi | 
 | 10118 |  | 
 | 10119 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_ffi" >&5 | 
 | 10121 | $as_echo "$with_system_ffi" >&6; } | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 10122 |  | 
| Stefan Krah | 60187b5 | 2012-03-23 19:06:27 +0100 | [diff] [blame] | 10123 | # Check for use of the system libmpdec library | 
 | 10124 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-libmpdec" >&5 | 
 | 10125 | $as_echo_n "checking for --with-system-libmpdec... " >&6; } | 
 | 10126 |  | 
 | 10127 | # Check whether --with-system_libmpdec was given. | 
 | 10128 | if test "${with_system_libmpdec+set}" = set; then : | 
 | 10129 |   withval=$with_system_libmpdec; | 
 | 10130 | else | 
 | 10131 |   with_system_libmpdec="no" | 
 | 10132 | fi | 
 | 10133 |  | 
 | 10134 |  | 
 | 10135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_libmpdec" >&5 | 
 | 10136 | $as_echo "$with_system_libmpdec" >&6; } | 
 | 10137 |  | 
| Benjamin Peterson | 076ed00 | 2010-10-31 17:11:02 +0000 | [diff] [blame] | 10138 | # Check for support for loadable sqlite extensions | 
 | 10139 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-loadable-sqlite-extensions" >&5 | 
 | 10140 | $as_echo_n "checking for --enable-loadable-sqlite-extensions... " >&6; } | 
 | 10141 | # Check whether --enable-loadable-sqlite-extensions was given. | 
 | 10142 | if test "${enable_loadable_sqlite_extensions+set}" = set; then : | 
 | 10143 |   enableval=$enable_loadable_sqlite_extensions; | 
 | 10144 | else | 
 | 10145 |   enable_loadable_sqlite_extensions="no" | 
 | 10146 | fi | 
 | 10147 |  | 
 | 10148 |  | 
 | 10149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_loadable_sqlite_extensions" >&5 | 
 | 10150 | $as_echo "$enable_loadable_sqlite_extensions" >&6; } | 
 | 10151 |  | 
| Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 10152 | # Check for --with-tcltk-includes=path and --with-tcltk-libs=path | 
 | 10153 |  | 
 | 10154 |  | 
 | 10155 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tcltk-includes" >&5 | 
 | 10156 | $as_echo_n "checking for --with-tcltk-includes... " >&6; } | 
 | 10157 |  | 
 | 10158 | # Check whether --with-tcltk-includes was given. | 
 | 10159 | if test "${with_tcltk_includes+set}" = set; then : | 
 | 10160 |   withval=$with_tcltk_includes; | 
 | 10161 | else | 
 | 10162 |   with_tcltk_includes="default" | 
 | 10163 | fi | 
 | 10164 |  | 
 | 10165 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcltk_includes" >&5 | 
 | 10166 | $as_echo "$with_tcltk_includes" >&6; } | 
 | 10167 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tcltk-libs" >&5 | 
 | 10168 | $as_echo_n "checking for --with-tcltk-libs... " >&6; } | 
 | 10169 |  | 
 | 10170 | # Check whether --with-tcltk-libs was given. | 
 | 10171 | if test "${with_tcltk_libs+set}" = set; then : | 
 | 10172 |   withval=$with_tcltk_libs; | 
 | 10173 | else | 
 | 10174 |   with_tcltk_libs="default" | 
 | 10175 | fi | 
 | 10176 |  | 
 | 10177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcltk_libs" >&5 | 
 | 10178 | $as_echo "$with_tcltk_libs" >&6; } | 
 | 10179 | if test "x$with_tcltk_includes" = xdefault || test "x$with_tcltk_libs" = xdefault | 
 | 10180 | then | 
 | 10181 |   if test "x$with_tcltk_includes" != "x$with_tcltk_libs" | 
 | 10182 |   then | 
 | 10183 |     as_fn_error $? "use both --with-tcltk-includes='...' and --with-tcltk-libs='...' or neither" "$LINENO" 5 | 
 | 10184 |   fi | 
 | 10185 |   TCLTK_INCLUDES="" | 
 | 10186 |   TCLTK_LIBS="" | 
 | 10187 | else | 
 | 10188 |   TCLTK_INCLUDES="$with_tcltk_includes" | 
 | 10189 |   TCLTK_LIBS="$with_tcltk_libs" | 
 | 10190 | fi | 
 | 10191 |  | 
| Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 10192 | # Check for --with-dbmliborder | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10193 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dbmliborder" >&5 | 
 | 10194 | $as_echo_n "checking for --with-dbmliborder... " >&6; } | 
| Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 10195 |  | 
 | 10196 | # Check whether --with-dbmliborder was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10197 | if test "${with_dbmliborder+set}" = set; then : | 
| Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 10198 |   withval=$with_dbmliborder; | 
 | 10199 | if test x$with_dbmliborder = xyes | 
 | 10200 | then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 10201 | as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5 | 
| Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 10202 | else | 
 | 10203 |   for db in `echo $with_dbmliborder | sed 's/:/ /g'`; do | 
 | 10204 |     if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb | 
 | 10205 |     then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 10206 |       as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5 | 
| Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 10207 |     fi | 
 | 10208 |   done | 
 | 10209 | fi | 
 | 10210 | fi | 
 | 10211 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_dbmliborder" >&5 | 
 | 10213 | $as_echo "$with_dbmliborder" >&6; } | 
| Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 10214 |  | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 10215 | # Determine if signalmodule should be used. | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 10216 |  | 
 | 10217 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10218 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-signal-module" >&5 | 
 | 10219 | $as_echo_n "checking for --with-signal-module... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10220 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10221 | # Check whether --with-signal-module was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10222 | if test "${with_signal_module+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10223 |   withval=$with_signal_module; | 
 | 10224 | fi | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 10225 |  | 
 | 10226 |  | 
 | 10227 | if test -z "$with_signal_module" | 
 | 10228 | then with_signal_module="yes" | 
 | 10229 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_signal_module" >&5 | 
 | 10231 | $as_echo "$with_signal_module" >&6; } | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 10232 |  | 
 | 10233 | if test "${with_signal_module}" = "yes"; then | 
 | 10234 | 	USE_SIGNAL_MODULE="" | 
 | 10235 | 	SIGNAL_OBJS="" | 
 | 10236 | else | 
 | 10237 | 	USE_SIGNAL_MODULE="#" | 
 | 10238 | 	SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o" | 
 | 10239 | fi | 
 | 10240 |  | 
| Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 10241 | # This is used to generate Setup.config | 
| Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 10242 |  | 
| Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10243 | USE_THREAD_MODULE="" | 
| Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 10244 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10245 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10246 |  | 
 | 10247 | # Templates for things AC_DEFINEd more than once. | 
 | 10248 | # For a single AC_DEFINE, no template is needed. | 
| Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10249 |  | 
 | 10250 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10251 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10252 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-threads" >&5 | 
 | 10253 | $as_echo_n "checking for --with-threads... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10254 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10255 | # Check whether --with-threads was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10256 | if test "${with_threads+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10257 |   withval=$with_threads; | 
 | 10258 | fi | 
| Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10259 |  | 
 | 10260 |  | 
| Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10261 | # --with-thread is deprecated, but check for it anyway | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10262 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10263 | # Check whether --with-thread was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10264 | if test "${with_thread+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10265 |   withval=$with_thread; with_threads=$with_thread | 
 | 10266 | fi | 
 | 10267 |  | 
| Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10268 |  | 
 | 10269 | if test -z "$with_threads" | 
 | 10270 | then with_threads="yes" | 
 | 10271 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_threads" >&5 | 
 | 10273 | $as_echo "$with_threads" >&6; } | 
| Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10274 |  | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10275 |  | 
| Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10276 | if test "$with_threads" = "no" | 
 | 10277 | then | 
 | 10278 |     USE_THREAD_MODULE="#" | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10279 | elif test "$ac_cv_pthread_is_default" = yes | 
 | 10280 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10281 |     $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10282 |  | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10283 |     # Defining _REENTRANT on system with POSIX threads should not hurt. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10284 |     $as_echo "#define _REENTRANT 1" >>confdefs.h | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10285 |  | 
 | 10286 |     posix_threads=yes | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10287 |     THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10288 | elif test "$ac_cv_kpthread" = "yes" | 
 | 10289 | then | 
 | 10290 |     CC="$CC -Kpthread" | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 10291 |     if test "$ac_cv_cxx_thread" = "yes"; then | 
 | 10292 |         CXX="$CXX -Kpthread" | 
 | 10293 |     fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10294 |     $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 10295 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10296 |     posix_threads=yes | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10297 |     THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 10298 | elif test "$ac_cv_kthread" = "yes" | 
 | 10299 | then | 
 | 10300 |     CC="$CC -Kthread" | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 10301 |     if test "$ac_cv_cxx_thread" = "yes"; then | 
 | 10302 |         CXX="$CXX -Kthread" | 
 | 10303 |     fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10304 |     $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 10305 |  | 
 | 10306 |     posix_threads=yes | 
 | 10307 |     THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10308 | elif test "$ac_cv_pthread" = "yes" | 
 | 10309 | then | 
 | 10310 |     CC="$CC -pthread" | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 10311 |     if test "$ac_cv_cxx_thread" = "yes"; then | 
 | 10312 |         CXX="$CXX -pthread" | 
 | 10313 |     fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10314 |     $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10315 |  | 
 | 10316 |     posix_threads=yes | 
 | 10317 |     THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10318 | else | 
 | 10319 |     if test ! -z "$with_threads" -a -d "$with_threads" | 
 | 10320 |     then LDFLAGS="$LDFLAGS -L$with_threads" | 
 | 10321 |     fi | 
 | 10322 |     if test ! -z "$withval" -a -d "$withval" | 
 | 10323 |     then LDFLAGS="$LDFLAGS -L$withval" | 
 | 10324 |     fi | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10325 |  | 
 | 10326 |     # According to the POSIX spec, a pthreads implementation must | 
| Matthias Klose | a2542be | 2004-08-16 11:35:51 +0000 | [diff] [blame] | 10327 |     # define _POSIX_THREADS in unistd.h. Some apparently don't | 
 | 10328 |     # (e.g. gnu pth with pthread emulation) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10329 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _POSIX_THREADS in unistd.h" >&5 | 
 | 10330 | $as_echo_n "checking for _POSIX_THREADS in unistd.h... " >&6; } | 
 | 10331 |     cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10332 | /* end confdefs.h.  */ | 
| Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 10333 |  | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10334 | #include <unistd.h> | 
| Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 10335 | #ifdef _POSIX_THREADS | 
 | 10336 | yes | 
 | 10337 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10338 |  | 
 | 10339 | _ACEOF | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10340 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10341 |   $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10342 |   unistd_defines_pthreads=yes | 
 | 10343 | else | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10344 |   unistd_defines_pthreads=no | 
 | 10345 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 10346 | rm -f conftest* | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10347 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10348 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unistd_defines_pthreads" >&5 | 
 | 10349 | $as_echo "$unistd_defines_pthreads" >&6; } | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10350 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10351 |     $as_echo "#define _REENTRANT 1" >>confdefs.h | 
| Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 10352 |  | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10353 |     # Just looking for pthread_create in libpthread is not enough: | 
 | 10354 |     # on HP/UX, pthread.h renames pthread_create to a different symbol name. | 
 | 10355 |     # So we really have to include pthread.h, and then link. | 
 | 10356 |     _libs=$LIBS | 
 | 10357 |     LIBS="$LIBS -lpthread" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10358 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 | 
 | 10359 | $as_echo_n "checking for pthread_create in -lpthread... " >&6; } | 
 | 10360 |     cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10361 | /* end confdefs.h.  */ | 
| Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 10362 |  | 
 | 10363 | #include <stdio.h> | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10364 | #include <pthread.h> | 
| Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10365 |  | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10366 | void * start_routine (void *arg) { exit (0); } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10367 | int | 
 | 10368 | main () | 
 | 10369 | { | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10370 |  | 
 | 10371 | pthread_create (NULL, NULL, start_routine, NULL) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10372 |   ; | 
 | 10373 |   return 0; | 
 | 10374 | } | 
 | 10375 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10376 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10377 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10378 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 10379 | $as_echo "yes" >&6; } | 
 | 10380 |     $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10381 |  | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10382 |     posix_threads=yes | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10383 |     THREADOBJ="Python/thread.o" | 
| Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10384 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10385 |  | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10386 |     LIBS=$_libs | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10387 |     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] | 10388 | if test "x$ac_cv_func_pthread_detach" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10389 |   $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10390 |  | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10391 |     posix_threads=yes | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10392 |     THREADOBJ="Python/thread.o" | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10393 | else | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10394 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10395 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5 | 
 | 10396 | $as_echo_n "checking for pthread_create in -lpthreads... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10397 | if ${ac_cv_lib_pthreads_pthread_create+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10398 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10399 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10400 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10401 | LIBS="-lpthreads  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10402 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10403 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10404 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10405 | /* Override any GCC internal prototype to avoid an error. | 
 | 10406 |    Use char because int might match the return type of a GCC | 
 | 10407 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10408 | #ifdef __cplusplus | 
 | 10409 | extern "C" | 
 | 10410 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10411 | char pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10412 | int | 
 | 10413 | main () | 
 | 10414 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10415 | return pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10416 |   ; | 
 | 10417 |   return 0; | 
 | 10418 | } | 
 | 10419 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10420 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10421 |   ac_cv_lib_pthreads_pthread_create=yes | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10422 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10423 |   ac_cv_lib_pthreads_pthread_create=no | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10424 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10425 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 10426 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10427 | LIBS=$ac_check_lib_save_LIBS | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10428 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5 | 
 | 10430 | $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10431 | if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10432 |   $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10433 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10434 |     posix_threads=yes | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10435 |     LIBS="$LIBS -lpthreads" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10436 |     THREADOBJ="Python/thread.o" | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10437 | else | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10438 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10439 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5 | 
 | 10440 | $as_echo_n "checking for pthread_create in -lc_r... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10441 | if ${ac_cv_lib_c_r_pthread_create+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10442 |   $as_echo_n "(cached) " >&6 | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10443 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10444 |   ac_check_lib_save_LIBS=$LIBS | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10445 | LIBS="-lc_r  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10446 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10447 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10448 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10449 | /* Override any GCC internal prototype to avoid an error. | 
 | 10450 |    Use char because int might match the return type of a GCC | 
 | 10451 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10452 | #ifdef __cplusplus | 
 | 10453 | extern "C" | 
 | 10454 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10455 | char pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10456 | int | 
 | 10457 | main () | 
 | 10458 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10459 | return pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10460 |   ; | 
 | 10461 |   return 0; | 
 | 10462 | } | 
 | 10463 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10464 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10465 |   ac_cv_lib_c_r_pthread_create=yes | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10466 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10467 |   ac_cv_lib_c_r_pthread_create=no | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10468 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10469 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 10470 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10471 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10472 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5 | 
 | 10474 | $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10475 | if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10476 |   $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10477 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10478 |     posix_threads=yes | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10479 |     LIBS="$LIBS -lc_r" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10480 |     THREADOBJ="Python/thread.o" | 
| Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10481 | else | 
| Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10482 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10483 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __pthread_create_system in -lpthread" >&5 | 
 | 10484 | $as_echo_n "checking for __pthread_create_system in -lpthread... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10485 | if ${ac_cv_lib_pthread___pthread_create_system+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10486 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10487 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10488 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10489 | LIBS="-lpthread  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10490 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10491 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10492 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10493 | /* Override any GCC internal prototype to avoid an error. | 
 | 10494 |    Use char because int might match the return type of a GCC | 
 | 10495 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10496 | #ifdef __cplusplus | 
 | 10497 | extern "C" | 
 | 10498 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10499 | char __pthread_create_system (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10500 | int | 
 | 10501 | main () | 
 | 10502 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10503 | return __pthread_create_system (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10504 |   ; | 
 | 10505 |   return 0; | 
 | 10506 | } | 
 | 10507 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10508 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10509 |   ac_cv_lib_pthread___pthread_create_system=yes | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10510 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10511 |   ac_cv_lib_pthread___pthread_create_system=no | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10512 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10513 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 10514 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10515 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10516 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_create_system" >&5 | 
 | 10518 | $as_echo "$ac_cv_lib_pthread___pthread_create_system" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10519 | if test "x$ac_cv_lib_pthread___pthread_create_system" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10520 |   $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10521 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10522 |     posix_threads=yes | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10523 |     LIBS="$LIBS -lpthread" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10524 |     THREADOBJ="Python/thread.o" | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10525 | else | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10526 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10527 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lcma" >&5 | 
 | 10528 | $as_echo_n "checking for pthread_create in -lcma... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10529 | if ${ac_cv_lib_cma_pthread_create+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10530 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10531 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10532 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10533 | LIBS="-lcma  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10534 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10535 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10536 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10537 | /* Override any GCC internal prototype to avoid an error. | 
 | 10538 |    Use char because int might match the return type of a GCC | 
 | 10539 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10540 | #ifdef __cplusplus | 
 | 10541 | extern "C" | 
 | 10542 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10543 | char pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10544 | int | 
 | 10545 | main () | 
 | 10546 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10547 | return pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10548 |   ; | 
 | 10549 |   return 0; | 
 | 10550 | } | 
 | 10551 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10552 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10553 |   ac_cv_lib_cma_pthread_create=yes | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10554 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10555 |   ac_cv_lib_cma_pthread_create=no | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10556 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10557 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 10558 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10559 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10560 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cma_pthread_create" >&5 | 
 | 10562 | $as_echo "$ac_cv_lib_cma_pthread_create" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10563 | if test "x$ac_cv_lib_cma_pthread_create" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10564 |   $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10565 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10566 |     posix_threads=yes | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10567 |     LIBS="$LIBS -lcma" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10568 |     THREADOBJ="Python/thread.o" | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10569 | else | 
| Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 10570 |  | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10571 |     USE_THREAD_MODULE="#" | 
| Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 10572 | fi | 
 | 10573 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10574 |  | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10575 | fi | 
 | 10576 |  | 
| Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 10577 | fi | 
 | 10578 |  | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10579 | fi | 
 | 10580 |  | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10581 | fi | 
 | 10582 |  | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10583 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10584 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 10585 |     conftest$ac_exeext conftest.$ac_ext | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10586 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10587 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usconfig in -lmpc" >&5 | 
 | 10588 | $as_echo_n "checking for usconfig in -lmpc... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10589 | if ${ac_cv_lib_mpc_usconfig+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10590 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10591 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10592 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10593 | LIBS="-lmpc  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10594 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10595 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10596 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10597 | /* Override any GCC internal prototype to avoid an error. | 
 | 10598 |    Use char because int might match the return type of a GCC | 
 | 10599 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10600 | #ifdef __cplusplus | 
 | 10601 | extern "C" | 
 | 10602 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10603 | char usconfig (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10604 | int | 
 | 10605 | main () | 
 | 10606 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10607 | return usconfig (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10608 |   ; | 
 | 10609 |   return 0; | 
 | 10610 | } | 
 | 10611 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10612 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10613 |   ac_cv_lib_mpc_usconfig=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10614 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10615 |   ac_cv_lib_mpc_usconfig=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10616 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10617 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 10618 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10619 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10620 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpc_usconfig" >&5 | 
 | 10622 | $as_echo "$ac_cv_lib_mpc_usconfig" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10623 | if test "x$ac_cv_lib_mpc_usconfig" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10624 |   $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10625 |  | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10626 |     LIBS="$LIBS -lmpc" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10627 |     THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10628 |     USE_THREAD_MODULE="" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10629 | fi | 
 | 10630 |  | 
| Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 10631 |  | 
| Neal Norwitz | a978ab0 | 2002-11-02 16:58:05 +0000 | [diff] [blame] | 10632 |     if test "$posix_threads" != "yes"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10633 |       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5 | 
 | 10634 | $as_echo_n "checking for thr_create in -lthread... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10635 | if ${ac_cv_lib_thread_thr_create+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10636 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10637 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10638 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10639 | LIBS="-lthread  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10640 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10641 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10642 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10643 | /* Override any GCC internal prototype to avoid an error. | 
 | 10644 |    Use char because int might match the return type of a GCC | 
 | 10645 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10646 | #ifdef __cplusplus | 
 | 10647 | extern "C" | 
 | 10648 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10649 | char thr_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10650 | int | 
 | 10651 | main () | 
 | 10652 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10653 | return thr_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10654 |   ; | 
 | 10655 |   return 0; | 
 | 10656 | } | 
 | 10657 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10658 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10659 |   ac_cv_lib_thread_thr_create=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10660 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10661 |   ac_cv_lib_thread_thr_create=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10662 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10663 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 10664 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10665 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10666 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5 | 
 | 10668 | $as_echo "$ac_cv_lib_thread_thr_create" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10669 | if test "x$ac_cv_lib_thread_thr_create" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10670 |   $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10671 |  | 
| Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 10672 |       LIBS="$LIBS -lthread" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10673 |       THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 10674 |       USE_THREAD_MODULE="" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10675 | fi | 
 | 10676 |  | 
| Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 10677 |     fi | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10678 | fi | 
| Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 10679 |  | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10680 | if test "$posix_threads" = "yes"; then | 
 | 10681 |       if test "$unistd_defines_pthreads" = "no"; then | 
| Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 10682 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10683 | $as_echo "#define _POSIX_THREADS 1" >>confdefs.h | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10684 |  | 
 | 10685 |       fi | 
 | 10686 |  | 
 | 10687 |       # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8. | 
 | 10688 |       case  $ac_sys_system/$ac_sys_release in | 
| Charles-François Natali | 996f606 | 2011-07-21 19:45:31 +0200 | [diff] [blame] | 10689 |       SunOS/5.6) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10690 | $as_echo "#define HAVE_PTHREAD_DESTRUCTOR 1" >>confdefs.h | 
| Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 10691 |  | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10692 | 		       ;; | 
 | 10693 |       SunOS/5.8) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10694 | $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10695 |  | 
 | 10696 | 		       ;; | 
| Charles-François Natali | 996f606 | 2011-07-21 19:45:31 +0200 | [diff] [blame] | 10697 |       AIX/*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10698 | $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h | 
| Christian Heimes | 7b3ce6a | 2008-01-31 14:31:45 +0000 | [diff] [blame] | 10699 |  | 
 | 10700 | 		       ;; | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10701 |       esac | 
 | 10702 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10703 |       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 | 
 | 10704 | $as_echo_n "checking if PTHREAD_SCOPE_SYSTEM is supported... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10705 |       if ${ac_cv_pthread_system_supported+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10706 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10707 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10708 |   if test "$cross_compiling" = yes; then : | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10709 |   ac_cv_pthread_system_supported=no | 
 | 10710 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10711 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10712 | /* end confdefs.h.  */ | 
| Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 10713 |  | 
 | 10714 |       #include <stdio.h> | 
 | 10715 |       #include <pthread.h> | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10716 |       void *foo(void *parm) { | 
 | 10717 |         return NULL; | 
 | 10718 |       } | 
 | 10719 |       main() { | 
 | 10720 |         pthread_attr_t attr; | 
 | 10721 |         pthread_t id; | 
 | 10722 |         if (pthread_attr_init(&attr)) exit(-1); | 
 | 10723 |         if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1); | 
 | 10724 |         if (pthread_create(&id, &attr, foo, NULL)) exit(-1); | 
 | 10725 |         exit(0); | 
 | 10726 |       } | 
 | 10727 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10728 | if ac_fn_c_try_run "$LINENO"; then : | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10729 |   ac_cv_pthread_system_supported=yes | 
 | 10730 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10731 |   ac_cv_pthread_system_supported=no | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10732 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10733 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 10734 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10735 | fi | 
| Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 10736 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10737 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10738 | fi | 
 | 10739 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10740 |       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_system_supported" >&5 | 
 | 10741 | $as_echo "$ac_cv_pthread_system_supported" >&6; } | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10742 |       if test "$ac_cv_pthread_system_supported" = "yes"; then | 
 | 10743 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10744 | $as_echo "#define PTHREAD_SYSTEM_SCHED_SUPPORTED 1" >>confdefs.h | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10745 |  | 
 | 10746 |       fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10747 |       for ac_func in pthread_sigmask | 
 | 10748 | do : | 
 | 10749 |   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] | 10750 | if test "x$ac_cv_func_pthread_sigmask" = xyes; then : | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10751 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10752 | #define HAVE_PTHREAD_SIGMASK 1 | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10753 | _ACEOF | 
| Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 10754 |  case $ac_sys_system in | 
 | 10755 |         CYGWIN*) | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10756 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10757 | $as_echo "#define HAVE_BROKEN_PTHREAD_SIGMASK 1" >>confdefs.h | 
| Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 10758 |  | 
 | 10759 |             ;; | 
 | 10760 |         esac | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10761 | fi | 
 | 10762 | done | 
 | 10763 |  | 
| Christian Heimes | f77b4b2 | 2013-08-21 13:26:05 +0200 | [diff] [blame] | 10764 |       for ac_func in pthread_atfork | 
 | 10765 | do : | 
 | 10766 |   ac_fn_c_check_func "$LINENO" "pthread_atfork" "ac_cv_func_pthread_atfork" | 
 | 10767 | if test "x$ac_cv_func_pthread_atfork" = xyes; then : | 
 | 10768 |   cat >>confdefs.h <<_ACEOF | 
 | 10769 | #define HAVE_PTHREAD_ATFORK 1 | 
 | 10770 | _ACEOF | 
 | 10771 |  | 
 | 10772 | fi | 
 | 10773 | done | 
 | 10774 |  | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10775 | fi | 
 | 10776 |  | 
 | 10777 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10778 | # Check for enable-ipv6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10779 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10780 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-ipv6 is specified" >&5 | 
 | 10781 | $as_echo_n "checking if --enable-ipv6 is specified... " >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10782 | # Check whether --enable-ipv6 was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10783 | if test "${enable_ipv6+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10784 |   enableval=$enable_ipv6;  case "$enableval" in | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10785 |   no) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10786 |        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10787 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10788 |        ipv6=no | 
 | 10789 |        ;; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10790 |   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 10791 | $as_echo "yes" >&6; } | 
 | 10792 |        $as_echo "#define ENABLE_IPV6 1" >>confdefs.h | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10793 |  | 
 | 10794 |        ipv6=yes | 
 | 10795 |        ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10796 |   esac | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10797 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10798 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10799 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10800 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10801 |  /* AF_INET6 available check */ | 
 | 10802 | #include <sys/types.h> | 
 | 10803 | #include <sys/socket.h> | 
| Charles-François Natali | f6fd794 | 2013-01-08 19:49:42 +0100 | [diff] [blame] | 10804 | int | 
 | 10805 | main () | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10806 | { | 
| Charles-François Natali | f6fd794 | 2013-01-08 19:49:42 +0100 | [diff] [blame] | 10807 | int domain = AF_INET6; | 
 | 10808 |   ; | 
 | 10809 |   return 0; | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10810 | } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10811 | _ACEOF | 
| Charles-François Natali | f6fd794 | 2013-01-08 19:49:42 +0100 | [diff] [blame] | 10812 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10813 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10814 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 10815 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10816 |   ipv6=yes | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10817 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10818 | else | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10819 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10820 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10821 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10822 |   ipv6=no | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10823 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10824 | fi | 
| Charles-François Natali | f6fd794 | 2013-01-08 19:49:42 +0100 | [diff] [blame] | 10825 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10826 |  | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10827 | if test "$ipv6" = "yes"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10828 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RFC2553 API is available" >&5 | 
 | 10829 | $as_echo_n "checking if RFC2553 API is available... " >&6; } | 
 | 10830 | 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10831 | /* end confdefs.h.  */ | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10832 |  | 
 | 10833 | 	  #include <sys/types.h> | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10834 | #include <netinet/in.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10835 | int | 
 | 10836 | main () | 
 | 10837 | { | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10838 | struct sockaddr_in6 x; | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10839 | 			    x.sin6_scope_id; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10840 |   ; | 
 | 10841 |   return 0; | 
 | 10842 | } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10843 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10844 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10845 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10846 |  | 
 | 10847 | 	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10848 | $as_echo "yes" >&6; } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10849 | 	  ipv6=yes | 
 | 10850 |  | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10851 | else | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10852 |  | 
 | 10853 | 	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10854 | $as_echo "no" >&6; } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10855 | 	  ipv6=no | 
 | 10856 |  | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10857 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10858 | 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] | 10859 | fi | 
 | 10860 |  | 
 | 10861 | if test "$ipv6" = "yes"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10862 | 	$as_echo "#define ENABLE_IPV6 1" >>confdefs.h | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10863 |  | 
 | 10864 | fi | 
 | 10865 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10866 | fi | 
 | 10867 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10868 |  | 
 | 10869 | ipv6type=unknown | 
 | 10870 | ipv6lib=none | 
 | 10871 | ipv6trylibc=no | 
 | 10872 |  | 
 | 10873 | if test "$ipv6" = "yes"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10874 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ipv6 stack type" >&5 | 
 | 10875 | $as_echo_n "checking ipv6 stack type... " >&6; } | 
| Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 10876 | 	for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; | 
 | 10877 | 	do | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10878 | 		case $i in | 
 | 10879 | 		inria) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10880 | 						cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10881 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10882 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10883 | #include <netinet/in.h> | 
 | 10884 | #ifdef IPV6_INRIA_VERSION | 
 | 10885 | yes | 
 | 10886 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10887 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10888 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10889 |   $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 10890 |   ipv6type=$i | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10891 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 10892 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10893 |  | 
 | 10894 | 			;; | 
 | 10895 | 		kame) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10896 | 						cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10897 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10898 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10899 | #include <netinet/in.h> | 
 | 10900 | #ifdef __KAME__ | 
 | 10901 | yes | 
 | 10902 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10903 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10904 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10905 |   $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10906 |   ipv6type=$i; | 
 | 10907 | 				ipv6lib=inet6 | 
 | 10908 | 				ipv6libdir=/usr/local/v6/lib | 
 | 10909 | 				ipv6trylibc=yes | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10910 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 10911 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10912 |  | 
 | 10913 | 			;; | 
 | 10914 | 		linux-glibc) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10915 | 						cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10916 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10917 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10918 | #include <features.h> | 
 | 10919 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) | 
 | 10920 | yes | 
 | 10921 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10922 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10923 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10924 |   $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10925 |   ipv6type=$i; | 
 | 10926 | 				ipv6trylibc=yes | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10927 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 10928 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10929 |  | 
 | 10930 | 			;; | 
 | 10931 | 		linux-inet6) | 
 | 10932 | 						if test -d /usr/inet6; then | 
 | 10933 | 				ipv6type=$i | 
 | 10934 | 				ipv6lib=inet6 | 
 | 10935 | 				ipv6libdir=/usr/inet6/lib | 
| Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 10936 | 				BASECFLAGS="-I/usr/inet6/include $BASECFLAGS" | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10937 | 			fi | 
 | 10938 | 			;; | 
 | 10939 | 		solaris) | 
 | 10940 | 			if test -f /etc/netconfig; then | 
| Antoine Pitrou | f3fcd9f | 2011-01-03 18:53:50 +0000 | [diff] [blame] | 10941 |                           if $GREP -q tcp6 /etc/netconfig; then | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10942 | 				ipv6type=$i | 
 | 10943 | 				ipv6trylibc=yes | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10944 |                           fi | 
 | 10945 |                         fi | 
 | 10946 | 			;; | 
 | 10947 | 		toshiba) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10948 | 			cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10949 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10950 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10951 | #include <sys/param.h> | 
 | 10952 | #ifdef _TOSHIBA_INET6 | 
 | 10953 | yes | 
 | 10954 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10955 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10956 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10957 |   $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10958 |   ipv6type=$i; | 
 | 10959 | 				ipv6lib=inet6; | 
| Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 10960 | 				ipv6libdir=/usr/local/v6/lib | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10961 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 10962 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10963 |  | 
 | 10964 | 			;; | 
 | 10965 | 		v6d) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10966 | 			cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10967 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10968 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10969 | #include </usr/local/v6/include/sys/v6config.h> | 
 | 10970 | #ifdef __V6D__ | 
 | 10971 | yes | 
 | 10972 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10973 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10974 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10975 |   $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10976 |   ipv6type=$i; | 
 | 10977 | 				ipv6lib=v6; | 
 | 10978 | 				ipv6libdir=/usr/local/v6/lib; | 
| Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 10979 | 				BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS" | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10980 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 10981 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10982 |  | 
 | 10983 | 			;; | 
 | 10984 | 		zeta) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10985 | 			cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10986 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10987 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10988 | #include <sys/param.h> | 
 | 10989 | #ifdef _ZETA_MINAMI_INET6 | 
 | 10990 | yes | 
 | 10991 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10992 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10993 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10994 |   $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10995 |   ipv6type=$i; | 
 | 10996 | 				ipv6lib=inet6; | 
| Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 10997 | 				ipv6libdir=/usr/local/v6/lib | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10998 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 10999 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11000 |  | 
 | 11001 | 			;; | 
 | 11002 | 		esac | 
 | 11003 | 		if test "$ipv6type" != "unknown"; then | 
 | 11004 | 			break | 
 | 11005 | 		fi | 
 | 11006 | 	done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11007 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6type" >&5 | 
 | 11008 | $as_echo "$ipv6type" >&6; } | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11009 | fi | 
 | 11010 |  | 
 | 11011 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then | 
 | 11012 | 	if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then | 
 | 11013 | 		LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" | 
 | 11014 | 		echo "using lib$ipv6lib" | 
 | 11015 | 	else | 
 | 11016 | 		if test $ipv6trylibc = "yes"; then | 
 | 11017 | 			echo "using libc" | 
 | 11018 | 		else | 
 | 11019 | 			echo 'Fatal: no $ipv6lib library found.  cannot continue.' | 
 | 11020 | 			echo "You need to fetch lib$ipv6lib.a from appropriate" | 
 | 11021 | 			echo 'ipv6 kit and compile beforehand.' | 
 | 11022 | 			exit 1 | 
 | 11023 | 		fi | 
 | 11024 | 	fi | 
 | 11025 | fi | 
 | 11026 |  | 
| Larry Hastings | a6cc551 | 2015-04-13 17:48:40 -0400 | [diff] [blame] | 11027 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAN_RAW_FD_FRAMES" >&5 | 
 | 11028 | $as_echo_n "checking for CAN_RAW_FD_FRAMES... " >&6; } | 
 | 11029 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 11030 | /* end confdefs.h.  */ | 
 | 11031 |  /* CAN_RAW_FD_FRAMES available check */ | 
 | 11032 | #include <linux/can/raw.h> | 
 | 11033 | int | 
 | 11034 | main () | 
 | 11035 | { | 
 | 11036 | int can_raw_fd_frames = CAN_RAW_FD_FRAMES; | 
 | 11037 |   ; | 
 | 11038 |   return 0; | 
 | 11039 | } | 
 | 11040 | _ACEOF | 
 | 11041 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 11042 |  | 
 | 11043 |  | 
 | 11044 | $as_echo "#define HAVE_LINUX_CAN_RAW_FD_FRAMES 1" >>confdefs.h | 
 | 11045 |  | 
 | 11046 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 11047 | $as_echo "yes" >&6; } | 
 | 11048 |  | 
 | 11049 | else | 
 | 11050 |  | 
 | 11051 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11052 | $as_echo "no" >&6; } | 
 | 11053 |  | 
 | 11054 | fi | 
 | 11055 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 11056 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11057 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSX 10.5 SDK or later" >&5 | 
 | 11058 | $as_echo_n "checking for OSX 10.5 SDK or later... " >&6; } | 
 | 11059 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 11060 | /* end confdefs.h.  */ | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11061 |  | 
 | 11062 |   #include <Carbon/Carbon.h> | 
| Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 11063 | int | 
 | 11064 | main () | 
 | 11065 | { | 
 | 11066 | FSIORefNum fRef = 0 | 
 | 11067 |   ; | 
 | 11068 |   return 0; | 
 | 11069 | } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11070 |  | 
| Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 11071 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11072 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 11073 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11074 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11075 | $as_echo "#define HAVE_OSX105_SDK 1" >>confdefs.h | 
| Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 11076 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11077 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 11078 | $as_echo "yes" >&6; } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11079 |  | 
| Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 11080 | else | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11081 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11082 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11083 | $as_echo "no" >&6; } | 
| Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 11084 |  | 
 | 11085 | fi | 
| Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 11086 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 11087 |  | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 11088 | # Check for --with-doc-strings | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11089 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-doc-strings" >&5 | 
 | 11090 | $as_echo_n "checking for --with-doc-strings... " >&6; } | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 11091 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11092 | # Check whether --with-doc-strings was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11093 | if test "${with_doc_strings+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11094 |   withval=$with_doc_strings; | 
 | 11095 | fi | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 11096 |  | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 11097 |  | 
 | 11098 | if test -z "$with_doc_strings" | 
 | 11099 | then with_doc_strings="yes" | 
 | 11100 | fi | 
 | 11101 | if test "$with_doc_strings" != "no" | 
 | 11102 | then | 
 | 11103 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11104 | $as_echo "#define WITH_DOC_STRINGS 1" >>confdefs.h | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 11105 |  | 
 | 11106 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_doc_strings" >&5 | 
 | 11108 | $as_echo "$with_doc_strings" >&6; } | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 11109 |  | 
| Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 11110 | # Check if eval loop should use timestamp counter profiling | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11111 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tsc" >&5 | 
 | 11112 | $as_echo_n "checking for --with-tsc... " >&6; } | 
| Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 11113 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11114 | # Check whether --with-tsc was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11115 | if test "${with_tsc+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11116 |   withval=$with_tsc; | 
| Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 11117 | if test "$withval" != no | 
 | 11118 | then | 
 | 11119 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11120 | $as_echo "#define WITH_TSC 1" >>confdefs.h | 
| Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 11121 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11122 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 11123 | $as_echo "yes" >&6; } | 
 | 11124 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11125 | $as_echo "no" >&6; } | 
| Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 11126 | fi | 
 | 11127 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11128 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11129 | $as_echo "no" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11130 | fi | 
 | 11131 |  | 
| Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 11132 |  | 
 | 11133 | # Check for Python-specific malloc support | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11134 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pymalloc" >&5 | 
 | 11135 | $as_echo_n "checking for --with-pymalloc... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11136 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11137 | # Check whether --with-pymalloc was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11138 | if test "${with_pymalloc+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11139 |   withval=$with_pymalloc; | 
 | 11140 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11141 |  | 
| Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 11142 |  | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11143 | if test -z "$with_pymalloc" | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 11144 | then | 
 | 11145 |     with_pymalloc="yes" | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11146 | fi | 
 | 11147 | if test "$with_pymalloc" != "no" | 
 | 11148 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11149 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11150 | $as_echo "#define WITH_PYMALLOC 1" >>confdefs.h | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11151 |  | 
| doko@ubuntu.com | 9c7817e | 2012-06-30 17:05:13 +0200 | [diff] [blame] | 11152 |     ABIFLAGS="${ABIFLAGS}m" | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11153 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pymalloc" >&5 | 
 | 11155 | $as_echo "$with_pymalloc" >&6; } | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11156 |  | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 11157 | # Check for Valgrind support | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11158 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-valgrind" >&5 | 
 | 11159 | $as_echo_n "checking for --with-valgrind... " >&6; } | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 11160 |  | 
 | 11161 | # Check whether --with-valgrind was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11162 | if test "${with_valgrind+set}" = set; then : | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 11163 |   withval=$with_valgrind; | 
 | 11164 | else | 
 | 11165 |   with_valgrind=no | 
 | 11166 | fi | 
 | 11167 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_valgrind" >&5 | 
 | 11169 | $as_echo "$with_valgrind" >&6; } | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 11170 | if test "$with_valgrind" != no; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11171 |     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] | 11172 | if test "x$ac_cv_header_valgrind_valgrind_h" = xyes; then : | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 11173 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11174 | $as_echo "#define WITH_VALGRIND 1" >>confdefs.h | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 11175 |  | 
 | 11176 | else | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 11177 |   as_fn_error $? "Valgrind support requested but headers not available" "$LINENO" 5 | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 11178 |  | 
 | 11179 | fi | 
 | 11180 |  | 
 | 11181 |  | 
| Jeffrey Yasskin | 3937083 | 2010-05-03 19:29:34 +0000 | [diff] [blame] | 11182 |     OPT="-DDYNAMIC_ANNOTATIONS_ENABLED=1 $OPT" | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 11183 | fi | 
 | 11184 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11185 | # -I${DLINCLDIR} is added to the compile rule for importdl.o | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11186 |  | 
| Guido van Rossum | 98935bf | 2001-09-05 19:13:16 +0000 | [diff] [blame] | 11187 | DLINCLDIR=. | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11188 |  | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11189 | # the dlopen() function means we might want to use dynload_shlib.o. some | 
 | 11190 | # 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] | 11191 | for ac_func in dlopen | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11192 | do : | 
 | 11193 |   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11194 | if test "x$ac_cv_func_dlopen" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11195 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11196 | #define HAVE_DLOPEN 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11197 | _ACEOF | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11198 |  | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11199 | fi | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11200 | done | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11201 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11202 |  | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11203 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic | 
 | 11204 | # loading of modules. | 
 | 11205 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11206 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking DYNLOADFILE" >&5 | 
 | 11207 | $as_echo_n "checking DYNLOADFILE... " >&6; } | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11208 | if test -z "$DYNLOADFILE" | 
 | 11209 | then | 
 | 11210 | 	case $ac_sys_system/$ac_sys_release in | 
| Martin v. Löwis | c19c5a6 | 2003-11-18 20:00:44 +0000 | [diff] [blame] | 11211 | 	AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c | 
 | 11212 | 	if test "$ac_cv_func_dlopen" = yes | 
 | 11213 | 	then DYNLOADFILE="dynload_shlib.o" | 
 | 11214 | 	else DYNLOADFILE="dynload_aix.o" | 
 | 11215 | 	fi | 
 | 11216 | 	;; | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11217 | 	hp*|HP*) DYNLOADFILE="dynload_hpux.o";; | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 11218 | 	# Use dynload_next.c only on 10.2 and below, which don't have native dlopen() | 
 | 11219 | 	Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";; | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11220 | 	*) | 
 | 11221 | 	# use dynload_shlib.c and dlopen() if we have it; otherwise stub | 
 | 11222 | 	# out any dynamic loading | 
 | 11223 | 	if test "$ac_cv_func_dlopen" = yes | 
 | 11224 | 	then DYNLOADFILE="dynload_shlib.o" | 
 | 11225 | 	else DYNLOADFILE="dynload_stub.o" | 
 | 11226 | 	fi | 
 | 11227 | 	;; | 
 | 11228 | 	esac | 
 | 11229 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DYNLOADFILE" >&5 | 
 | 11231 | $as_echo "$DYNLOADFILE" >&6; } | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11232 | if test "$DYNLOADFILE" != "dynload_stub.o" | 
 | 11233 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11234 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11235 | $as_echo "#define HAVE_DYNAMIC_LOADING 1" >>confdefs.h | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11236 |  | 
 | 11237 | fi | 
 | 11238 |  | 
| Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11239 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python | 
 | 11240 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11241 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11242 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP_OBJS" >&5 | 
 | 11243 | $as_echo_n "checking MACHDEP_OBJS... " >&6; } | 
| Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11244 | if test -z "$MACHDEP_OBJS" | 
 | 11245 | then | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 11246 | 	MACHDEP_OBJS=$extra_machdep_objs | 
 | 11247 | else | 
 | 11248 | 	MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" | 
| Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11249 | fi | 
| doko@ubuntu.com | 9c7817e | 2012-06-30 17:05:13 +0200 | [diff] [blame] | 11250 | if test -z "$MACHDEP_OBJS"; then | 
 | 11251 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | 
 | 11252 | $as_echo "none" >&6; } | 
 | 11253 | else | 
 | 11254 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACHDEP_OBJS" >&5 | 
 | 11255 | $as_echo "$MACHDEP_OBJS" >&6; } | 
 | 11256 | fi | 
| Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11257 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11258 | # checks for library functions | 
| Antoine Pitrou | b1c5496 | 2010-10-14 15:05:38 +0000 | [diff] [blame] | 11259 | for ac_func in alarm accept4 setitimer getitimer bind_textdomain_codeset chown \ | 
| Victor Stinner | daf4555 | 2013-08-28 00:53:59 +0200 | [diff] [blame] | 11260 |  clock confstr ctermid dup3 execv faccessat fchmod fchmodat fchown fchownat \ | 
| Ross Lagerwall | 7807c35 | 2011-03-17 20:20:30 +0200 | [diff] [blame] | 11261 |  fexecve fdopendir fork fpathconf fstatat ftime ftruncate futimesat \ | 
| Victor Stinner | 4d6a3d6 | 2014-12-21 01:16:38 +0100 | [diff] [blame] | 11262 |  futimens futimes gai_strerror getentropy \ | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 11263 |  getgrouplist getgroups getlogin getloadavg getpeername getpgid getpid \ | 
| Martin v. Löwis | 7aed61a | 2009-11-27 14:09:49 +0000 | [diff] [blame] | 11264 |  getpriority getresuid getresgid getpwent getspnam getspent getsid getwd \ | 
| Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 11265 |  if_nameindex \ | 
| Antoine Pitrou | f0effe6 | 2011-11-26 01:11:02 +0100 | [diff] [blame] | 11266 |  initgroups kill killpg lchmod lchown lockf linkat lstat lutimes mmap \ | 
 | 11267 |  memrchr mbrtowc mkdirat mkfifo \ | 
| Charles-François Natali | daafdd5 | 2011-05-29 20:07:40 +0200 | [diff] [blame] | 11268 |  mkfifoat mknod mknodat mktime mremap nice openat pathconf pause pipe2 plock poll \ | 
| Ross Lagerwall | 7807c35 | 2011-03-17 20:20:30 +0200 | [diff] [blame] | 11269 |  posix_fallocate posix_fadvise pread \ | 
| Victor Stinner | b3e7219 | 2011-05-08 01:46:11 +0200 | [diff] [blame] | 11270 |  pthread_init pthread_kill putenv pwrite readlink readlinkat readv realpath renameat \ | 
| Georg Brandl | 941f956 | 2011-02-25 15:21:47 +0000 | [diff] [blame] | 11271 |  select sem_open sem_timedwait sem_getvalue sem_unlink sendfile setegid seteuid \ | 
| Antoine Pitrou | 061cfb5 | 2011-02-28 22:25:22 +0000 | [diff] [blame] | 11272 |  setgid sethostname \ | 
| Giampaolo Rodolà | 18e8bcb | 2011-02-25 20:57:54 +0000 | [diff] [blame] | 11273 |  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] | 11274 |  sched_get_priority_max sched_setaffinity sched_setscheduler sched_setparam \ | 
 | 11275 |  sched_rr_get_interval \ | 
| Ross Lagerwall | bc80822 | 2011-06-25 12:13:40 +0200 | [diff] [blame] | 11276 |  sigaction sigaltstack siginterrupt sigpending sigrelse \ | 
 | 11277 |  sigtimedwait sigwait sigwaitinfo snprintf strftime strlcpy symlinkat sync \ | 
| Michael W. Hudson | 34f20ea | 2002-05-27 15:08:24 +0000 | [diff] [blame] | 11278 |  sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ | 
| Ross Lagerwall | 7807c35 | 2011-03-17 20:20:30 +0200 | [diff] [blame] | 11279 |  truncate uname unlinkat unsetenv utimensat utimes waitid waitpid wait3 wait4 \ | 
| Victor Stinner | cd777ea | 2013-04-08 22:43:44 +0200 | [diff] [blame] | 11280 |  wcscoll wcsftime wcsxfrm wmemcmp writev _getpty | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11281 | do : | 
 | 11282 |   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
 | 11283 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 11284 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11285 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11286 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11287 | _ACEOF | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11288 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11289 | fi | 
 | 11290 | done | 
 | 11291 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11292 |  | 
| Gregory P. Smith | df300d5 | 2012-01-21 18:20:15 -0800 | [diff] [blame] | 11293 | ac_fn_c_check_decl "$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h> | 
 | 11294 |        #include <dirent.h> | 
 | 11295 | " | 
 | 11296 | if test "x$ac_cv_have_decl_dirfd" = xyes; then : | 
 | 11297 |  | 
 | 11298 | $as_echo "#define HAVE_DIRFD 1" >>confdefs.h | 
 | 11299 |  | 
 | 11300 | fi | 
 | 11301 |  | 
 | 11302 |  | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11303 | # For some functions, having a definition is not sufficient, since | 
 | 11304 | # we want to take their address. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11305 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chroot" >&5 | 
 | 11306 | $as_echo_n "checking for chroot... " >&6; } | 
 | 11307 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11308 | /* end confdefs.h.  */ | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11309 | #include <unistd.h> | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11310 | int | 
 | 11311 | main () | 
 | 11312 | { | 
 | 11313 | void *x=chroot | 
 | 11314 |   ; | 
 | 11315 |   return 0; | 
 | 11316 | } | 
 | 11317 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11318 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11319 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11320 | $as_echo "#define HAVE_CHROOT 1" >>confdefs.h | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11321 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11322 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11323 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11324 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11325 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11326 | $as_echo "no" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11327 |  | 
 | 11328 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11329 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11330 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for link" >&5 | 
 | 11331 | $as_echo_n "checking for link... " >&6; } | 
 | 11332 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11333 | /* end confdefs.h.  */ | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11334 | #include <unistd.h> | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11335 | int | 
 | 11336 | main () | 
 | 11337 | { | 
 | 11338 | void *x=link | 
 | 11339 |   ; | 
 | 11340 |   return 0; | 
 | 11341 | } | 
 | 11342 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11343 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11344 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11345 | $as_echo "#define HAVE_LINK 1" >>confdefs.h | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11346 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11347 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11348 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11349 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11350 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11351 | $as_echo "no" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11352 |  | 
 | 11353 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11354 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11355 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for symlink" >&5 | 
 | 11356 | $as_echo_n "checking for symlink... " >&6; } | 
 | 11357 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11358 | /* end confdefs.h.  */ | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11359 | #include <unistd.h> | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11360 | int | 
 | 11361 | main () | 
 | 11362 | { | 
 | 11363 | void *x=symlink | 
 | 11364 |   ; | 
 | 11365 |   return 0; | 
 | 11366 | } | 
 | 11367 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11368 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11369 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11370 | $as_echo "#define HAVE_SYMLINK 1" >>confdefs.h | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11371 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11372 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11373 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11374 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11375 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11376 | $as_echo "no" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11377 |  | 
 | 11378 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11379 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11380 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fchdir" >&5 | 
 | 11381 | $as_echo_n "checking for fchdir... " >&6; } | 
 | 11382 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11383 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11384 | #include <unistd.h> | 
 | 11385 | int | 
 | 11386 | main () | 
 | 11387 | { | 
 | 11388 | void *x=fchdir | 
 | 11389 |   ; | 
 | 11390 |   return 0; | 
 | 11391 | } | 
 | 11392 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11393 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11394 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11395 | $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11396 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11397 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11398 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11399 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11400 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11401 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11402 |  | 
 | 11403 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11404 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11405 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fsync" >&5 | 
 | 11406 | $as_echo_n "checking for fsync... " >&6; } | 
 | 11407 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11408 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11409 | #include <unistd.h> | 
 | 11410 | int | 
 | 11411 | main () | 
 | 11412 | { | 
 | 11413 | void *x=fsync | 
 | 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_compile "$LINENO"; then : | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11419 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11420 | $as_echo "#define HAVE_FSYNC 1" >>confdefs.h | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11421 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11422 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11423 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11424 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11425 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11426 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11427 |  | 
 | 11428 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11429 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11430 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fdatasync" >&5 | 
 | 11431 | $as_echo_n "checking for fdatasync... " >&6; } | 
 | 11432 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11433 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11434 | #include <unistd.h> | 
 | 11435 | int | 
 | 11436 | main () | 
 | 11437 | { | 
 | 11438 | void *x=fdatasync | 
 | 11439 |   ; | 
 | 11440 |   return 0; | 
 | 11441 | } | 
 | 11442 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11443 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11444 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11445 | $as_echo "#define HAVE_FDATASYNC 1" >>confdefs.h | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11446 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11447 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11448 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +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}: result: no" >&5 | 
 | 11451 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11452 |  | 
 | 11453 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11454 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11455 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll" >&5 | 
 | 11456 | $as_echo_n "checking for epoll... " >&6; } | 
 | 11457 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11458 | /* end confdefs.h.  */ | 
 | 11459 | #include <sys/epoll.h> | 
 | 11460 | int | 
 | 11461 | main () | 
 | 11462 | { | 
 | 11463 | void *x=epoll_create | 
 | 11464 |   ; | 
 | 11465 |   return 0; | 
 | 11466 | } | 
 | 11467 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11468 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11469 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11470 | $as_echo "#define HAVE_EPOLL 1" >>confdefs.h | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11471 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11472 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11473 | $as_echo "yes" >&6; } | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11474 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11475 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11476 | $as_echo "no" >&6; } | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11477 |  | 
 | 11478 | fi | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11479 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Benjamin Peterson | 95c1662 | 2011-12-27 15:36:32 -0600 | [diff] [blame] | 11480 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll_create1" >&5 | 
 | 11481 | $as_echo_n "checking for epoll_create1... " >&6; } | 
 | 11482 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 11483 | /* end confdefs.h.  */ | 
 | 11484 | #include <sys/epoll.h> | 
 | 11485 | int | 
 | 11486 | main () | 
 | 11487 | { | 
 | 11488 | void *x=epoll_create1 | 
 | 11489 |   ; | 
 | 11490 |   return 0; | 
 | 11491 | } | 
 | 11492 | _ACEOF | 
 | 11493 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 11494 |  | 
 | 11495 | $as_echo "#define HAVE_EPOLL_CREATE1 1" >>confdefs.h | 
 | 11496 |  | 
 | 11497 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 11498 | $as_echo "yes" >&6; } | 
 | 11499 | else | 
 | 11500 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11501 | $as_echo "no" >&6; } | 
 | 11502 |  | 
 | 11503 | fi | 
 | 11504 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11505 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kqueue" >&5 | 
 | 11506 | $as_echo_n "checking for kqueue... " >&6; } | 
 | 11507 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11508 | /* end confdefs.h.  */ | 
 | 11509 |  | 
 | 11510 | #include <sys/types.h> | 
 | 11511 | #include <sys/event.h> | 
 | 11512 |  | 
 | 11513 | int | 
 | 11514 | main () | 
 | 11515 | { | 
 | 11516 | int x=kqueue() | 
 | 11517 |   ; | 
 | 11518 |   return 0; | 
 | 11519 | } | 
 | 11520 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11521 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11522 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11523 | $as_echo "#define HAVE_KQUEUE 1" >>confdefs.h | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11524 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11525 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11526 | $as_echo "yes" >&6; } | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11527 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11528 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11529 | $as_echo "no" >&6; } | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11530 |  | 
 | 11531 | fi | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11532 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Christian Heimes | b7bd5df | 2013-10-22 11:21:54 +0200 | [diff] [blame] | 11533 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prlimit" >&5 | 
 | 11534 | $as_echo_n "checking for prlimit... " >&6; } | 
 | 11535 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 11536 | /* end confdefs.h.  */ | 
 | 11537 |  | 
 | 11538 | #include <sys/time.h> | 
 | 11539 | #include <sys/resource.h> | 
 | 11540 |  | 
 | 11541 | int | 
 | 11542 | main () | 
 | 11543 | { | 
 | 11544 | void *x=prlimit | 
 | 11545 |   ; | 
 | 11546 |   return 0; | 
 | 11547 | } | 
 | 11548 | _ACEOF | 
 | 11549 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 11550 |  | 
 | 11551 | $as_echo "#define HAVE_PRLIMIT 1" >>confdefs.h | 
 | 11552 |  | 
 | 11553 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 11554 | $as_echo "yes" >&6; } | 
 | 11555 | else | 
 | 11556 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11557 | $as_echo "no" >&6; } | 
 | 11558 |  | 
 | 11559 | fi | 
 | 11560 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 11561 |  | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11562 | # On some systems (eg. FreeBSD 5), we would find a definition of the | 
 | 11563 | # functions ctermid_r, setgroups in the library, but no prototype | 
 | 11564 | # (e.g. because we use _XOPEN_SOURCE). See whether we can take their | 
 | 11565 | # address to avoid compiler warnings and potential miscompilations | 
 | 11566 | # because of the missing prototypes. | 
 | 11567 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11568 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctermid_r" >&5 | 
 | 11569 | $as_echo_n "checking for ctermid_r... " >&6; } | 
 | 11570 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11571 | /* end confdefs.h.  */ | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11572 |  | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11573 | #include <stdio.h> | 
 | 11574 |  | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11575 | int | 
 | 11576 | main () | 
 | 11577 | { | 
 | 11578 | void* p = ctermid_r | 
 | 11579 |   ; | 
 | 11580 |   return 0; | 
 | 11581 | } | 
 | 11582 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11583 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11584 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11585 | $as_echo "#define HAVE_CTERMID_R 1" >>confdefs.h | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11586 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11587 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11588 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11589 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11590 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11591 | $as_echo "no" >&6; } | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11592 |  | 
 | 11593 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11594 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 11595 |  | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11596 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock declaration" >&5 | 
 | 11597 | $as_echo_n "checking for flock declaration... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11598 | if ${ac_cv_flock_decl+:} false; then : | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11599 |   $as_echo_n "(cached) " >&6 | 
 | 11600 | else | 
 | 11601 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11602 | /* end confdefs.h.  */ | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11603 | #include <sys/file.h> | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11604 | int | 
 | 11605 | main () | 
 | 11606 | { | 
 | 11607 | void* p = flock | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11608 |  | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11609 |   ; | 
 | 11610 |   return 0; | 
 | 11611 | } | 
 | 11612 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11613 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11614 |   ac_cv_flock_decl=yes | 
 | 11615 | else | 
 | 11616 |   ac_cv_flock_decl=no | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11617 |  | 
 | 11618 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11619 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 11620 |  | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11621 | fi | 
 | 11622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flock_decl" >&5 | 
 | 11623 | $as_echo "$ac_cv_flock_decl" >&6; } | 
 | 11624 | if test "x${ac_cv_flock_decl}" = xyes; then | 
 | 11625 |   for ac_func in flock | 
 | 11626 | do : | 
 | 11627 |   ac_fn_c_check_func "$LINENO" "flock" "ac_cv_func_flock" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11628 | if test "x$ac_cv_func_flock" = xyes; then : | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11629 |   cat >>confdefs.h <<_ACEOF | 
 | 11630 | #define HAVE_FLOCK 1 | 
| Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 11631 | _ACEOF | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11632 |  | 
| Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 11633 | else | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11634 |   { $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] | 11635 | $as_echo_n "checking for flock in -lbsd... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11636 | if ${ac_cv_lib_bsd_flock+:} false; then : | 
| Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 11637 |   $as_echo_n "(cached) " >&6 | 
 | 11638 | else | 
 | 11639 |   ac_check_lib_save_LIBS=$LIBS | 
 | 11640 | LIBS="-lbsd  $LIBS" | 
 | 11641 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 11642 | /* end confdefs.h.  */ | 
 | 11643 |  | 
 | 11644 | /* Override any GCC internal prototype to avoid an error. | 
 | 11645 |    Use char because int might match the return type of a GCC | 
 | 11646 |    builtin and then its argument prototype would still apply.  */ | 
 | 11647 | #ifdef __cplusplus | 
 | 11648 | extern "C" | 
 | 11649 | #endif | 
 | 11650 | char flock (); | 
 | 11651 | int | 
 | 11652 | main () | 
 | 11653 | { | 
 | 11654 | return flock (); | 
 | 11655 |   ; | 
 | 11656 |   return 0; | 
 | 11657 | } | 
 | 11658 | _ACEOF | 
 | 11659 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 11660 |   ac_cv_lib_bsd_flock=yes | 
 | 11661 | else | 
 | 11662 |   ac_cv_lib_bsd_flock=no | 
 | 11663 | fi | 
 | 11664 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 11665 |     conftest$ac_exeext conftest.$ac_ext | 
 | 11666 | LIBS=$ac_check_lib_save_LIBS | 
 | 11667 | fi | 
 | 11668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_flock" >&5 | 
 | 11669 | $as_echo "$ac_cv_lib_bsd_flock" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11670 | if test "x$ac_cv_lib_bsd_flock" = xyes; then : | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11671 |   $as_echo "#define HAVE_FLOCK 1" >>confdefs.h | 
| Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 11672 |  | 
 | 11673 |  | 
 | 11674 | $as_echo "#define FLOCK_NEEDS_LIBBSD 1" >>confdefs.h | 
 | 11675 |  | 
 | 11676 |  | 
 | 11677 | fi | 
 | 11678 |  | 
 | 11679 |  | 
 | 11680 | fi | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11681 | done | 
 | 11682 |  | 
| Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 11683 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11684 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11685 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize" >&5 | 
 | 11686 | $as_echo_n "checking for getpagesize... " >&6; } | 
 | 11687 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11688 | /* end confdefs.h.  */ | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11689 |  | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11690 | #include <unistd.h> | 
 | 11691 |  | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11692 | int | 
 | 11693 | main () | 
 | 11694 | { | 
 | 11695 | void* p = getpagesize | 
 | 11696 |   ; | 
 | 11697 |   return 0; | 
 | 11698 | } | 
 | 11699 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11700 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11701 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11702 | $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11703 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11704 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11705 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11706 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11707 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11708 | $as_echo "no" >&6; } | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11709 |  | 
 | 11710 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11711 | 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] | 11712 |  | 
| Victor Stinner | 984890f | 2011-11-24 13:53:38 +0100 | [diff] [blame] | 11713 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken unsetenv" >&5 | 
 | 11714 | $as_echo_n "checking for broken unsetenv... " >&6; } | 
 | 11715 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 11716 | /* end confdefs.h.  */ | 
 | 11717 |  | 
 | 11718 | #include <stdlib.h> | 
 | 11719 |  | 
 | 11720 | int | 
 | 11721 | main () | 
 | 11722 | { | 
 | 11723 | int res = unsetenv("DUMMY") | 
 | 11724 |   ; | 
 | 11725 |   return 0; | 
 | 11726 | } | 
 | 11727 | _ACEOF | 
 | 11728 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 11729 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11730 | $as_echo "no" >&6; } | 
 | 11731 | else | 
 | 11732 |  | 
 | 11733 | $as_echo "#define HAVE_BROKEN_UNSETENV 1" >>confdefs.h | 
 | 11734 |  | 
 | 11735 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 11736 | $as_echo "yes" >&6; } | 
 | 11737 |  | 
 | 11738 | fi | 
 | 11739 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 11740 |  | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11741 | for ac_prog in true | 
 | 11742 | do | 
 | 11743 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 11744 | set dummy $ac_prog; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11745 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 11746 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11747 | if ${ac_cv_prog_TRUE+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11748 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11749 | else | 
 | 11750 |   if test -n "$TRUE"; then | 
 | 11751 |   ac_cv_prog_TRUE="$TRUE" # Let the user override the test. | 
 | 11752 | else | 
 | 11753 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 11754 | for as_dir in $PATH | 
 | 11755 | do | 
 | 11756 |   IFS=$as_save_IFS | 
 | 11757 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11758 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 11759 |   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] | 11760 |     ac_cv_prog_TRUE="$ac_prog" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11761 |     $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] | 11762 |     break 2 | 
 | 11763 |   fi | 
 | 11764 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11765 |   done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11766 | IFS=$as_save_IFS | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11767 |  | 
 | 11768 | fi | 
 | 11769 | fi | 
 | 11770 | TRUE=$ac_cv_prog_TRUE | 
 | 11771 | if test -n "$TRUE"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11772 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUE" >&5 | 
 | 11773 | $as_echo "$TRUE" >&6; } | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11774 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11775 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11776 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11777 | fi | 
 | 11778 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11779 |  | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11780 |   test -n "$TRUE" && break | 
 | 11781 | done | 
 | 11782 | test -n "$TRUE" || TRUE="/bin/true" | 
 | 11783 |  | 
 | 11784 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11785 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lc" >&5 | 
 | 11786 | $as_echo_n "checking for inet_aton in -lc... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11787 | if ${ac_cv_lib_c_inet_aton+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11788 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11789 | else | 
 | 11790 |   ac_check_lib_save_LIBS=$LIBS | 
 | 11791 | LIBS="-lc  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11792 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11793 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11794 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11795 | /* Override any GCC internal prototype to avoid an error. | 
 | 11796 |    Use char because int might match the return type of a GCC | 
 | 11797 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11798 | #ifdef __cplusplus | 
 | 11799 | extern "C" | 
 | 11800 | #endif | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11801 | char inet_aton (); | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11802 | int | 
 | 11803 | main () | 
 | 11804 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11805 | return inet_aton (); | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11806 |   ; | 
 | 11807 |   return 0; | 
 | 11808 | } | 
 | 11809 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11810 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11811 |   ac_cv_lib_c_inet_aton=yes | 
 | 11812 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11813 |   ac_cv_lib_c_inet_aton=no | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11814 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11815 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 11816 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11817 | LIBS=$ac_check_lib_save_LIBS | 
 | 11818 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_inet_aton" >&5 | 
 | 11820 | $as_echo "$ac_cv_lib_c_inet_aton" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11821 | 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] | 11822 |   $ac_cv_prog_TRUE | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11823 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11824 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5 | 
 | 11825 | $as_echo_n "checking for inet_aton in -lresolv... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11826 | if ${ac_cv_lib_resolv_inet_aton+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11827 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11828 | else | 
 | 11829 |   ac_check_lib_save_LIBS=$LIBS | 
 | 11830 | LIBS="-lresolv  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11831 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11832 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11833 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11834 | /* Override any GCC internal prototype to avoid an error. | 
 | 11835 |    Use char because int might match the return type of a GCC | 
 | 11836 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11837 | #ifdef __cplusplus | 
 | 11838 | extern "C" | 
 | 11839 | #endif | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11840 | char inet_aton (); | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11841 | int | 
 | 11842 | main () | 
 | 11843 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11844 | return inet_aton (); | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11845 |   ; | 
 | 11846 |   return 0; | 
 | 11847 | } | 
 | 11848 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11849 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11850 |   ac_cv_lib_resolv_inet_aton=yes | 
 | 11851 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11852 |   ac_cv_lib_resolv_inet_aton=no | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11853 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11854 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 11855 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11856 | LIBS=$ac_check_lib_save_LIBS | 
 | 11857 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5 | 
 | 11859 | $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11860 | 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] | 11861 |   cat >>confdefs.h <<_ACEOF | 
 | 11862 | #define HAVE_LIBRESOLV 1 | 
 | 11863 | _ACEOF | 
 | 11864 |  | 
 | 11865 |   LIBS="-lresolv $LIBS" | 
 | 11866 |  | 
 | 11867 | fi | 
 | 11868 |  | 
 | 11869 |  | 
 | 11870 | fi | 
 | 11871 |  | 
 | 11872 |  | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11873 | # On Tru64, chflags seems to be present, but calling it will | 
 | 11874 | # exit Python | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11875 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chflags" >&5 | 
 | 11876 | $as_echo_n "checking for chflags... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11877 | if ${ac_cv_have_chflags+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11878 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11879 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11880 |   if test "$cross_compiling" = yes; then : | 
| Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 11881 |   ac_cv_have_chflags=cross | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11882 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11883 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11884 | /* end confdefs.h.  */ | 
| Ned Deily | 3eb67d5 | 2011-06-28 00:00:28 -0700 | [diff] [blame] | 11885 |  | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11886 | #include <sys/stat.h> | 
 | 11887 | #include <unistd.h> | 
 | 11888 | int main(int argc, char*argv[]) | 
 | 11889 | { | 
 | 11890 |   if(chflags(argv[0], 0) != 0) | 
 | 11891 |     return 1; | 
 | 11892 |   return 0; | 
 | 11893 | } | 
| Ned Deily | 3eb67d5 | 2011-06-28 00:00:28 -0700 | [diff] [blame] | 11894 |  | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11895 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11896 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11897 |   ac_cv_have_chflags=yes | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11898 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11899 |   ac_cv_have_chflags=no | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11900 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11901 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 11902 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 11903 | fi | 
 | 11904 |  | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11905 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11906 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_chflags" >&5 | 
 | 11908 | $as_echo "$ac_cv_have_chflags" >&6; } | 
| Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 11909 | if test "$ac_cv_have_chflags" = cross ; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11910 |   ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11911 | if test "x$ac_cv_func_chflags" = xyes; then : | 
| Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 11912 |   ac_cv_have_chflags="yes" | 
 | 11913 | else | 
 | 11914 |   ac_cv_have_chflags="no" | 
 | 11915 | fi | 
 | 11916 |  | 
 | 11917 | fi | 
 | 11918 | if test "$ac_cv_have_chflags" = yes ; then | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11919 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11920 | $as_echo "#define HAVE_CHFLAGS 1" >>confdefs.h | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11921 |  | 
 | 11922 | fi | 
 | 11923 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11924 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lchflags" >&5 | 
 | 11925 | $as_echo_n "checking for lchflags... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11926 | if ${ac_cv_have_lchflags+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11927 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11928 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11929 |   if test "$cross_compiling" = yes; then : | 
| Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 11930 |   ac_cv_have_lchflags=cross | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11931 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11932 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11933 | /* end confdefs.h.  */ | 
| Ned Deily | 3eb67d5 | 2011-06-28 00:00:28 -0700 | [diff] [blame] | 11934 |  | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11935 | #include <sys/stat.h> | 
 | 11936 | #include <unistd.h> | 
 | 11937 | int main(int argc, char*argv[]) | 
 | 11938 | { | 
 | 11939 |   if(lchflags(argv[0], 0) != 0) | 
 | 11940 |     return 1; | 
 | 11941 |   return 0; | 
 | 11942 | } | 
| Ned Deily | 3eb67d5 | 2011-06-28 00:00:28 -0700 | [diff] [blame] | 11943 |  | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11944 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11945 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11946 |   ac_cv_have_lchflags=yes | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11947 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11948 |   ac_cv_have_lchflags=no | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11949 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11950 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 11951 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11952 | fi | 
 | 11953 |  | 
 | 11954 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11955 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_lchflags" >&5 | 
 | 11957 | $as_echo "$ac_cv_have_lchflags" >&6; } | 
| Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 11958 | if test "$ac_cv_have_lchflags" = cross ; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11959 |   ac_fn_c_check_func "$LINENO" "lchflags" "ac_cv_func_lchflags" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11960 | if test "x$ac_cv_func_lchflags" = xyes; then : | 
| Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 11961 |   ac_cv_have_lchflags="yes" | 
 | 11962 | else | 
 | 11963 |   ac_cv_have_lchflags="no" | 
 | 11964 | fi | 
 | 11965 |  | 
 | 11966 | fi | 
 | 11967 | if test "$ac_cv_have_lchflags" = yes ; then | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11968 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11969 | $as_echo "#define HAVE_LCHFLAGS 1" >>confdefs.h | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11970 |  | 
 | 11971 | fi | 
 | 11972 |  | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11973 | case $ac_sys_system/$ac_sys_release in | 
 | 11974 | Darwin/*) | 
 | 11975 | 	_CUR_CFLAGS="${CFLAGS}" | 
 | 11976 | 	_CUR_LDFLAGS="${LDFLAGS}" | 
 | 11977 | 	CFLAGS="${CFLAGS} -Wl,-search_paths_first" | 
 | 11978 | 	LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib" | 
 | 11979 | 	;; | 
 | 11980 | esac | 
 | 11981 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11982 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5 | 
 | 11983 | $as_echo_n "checking for inflateCopy in -lz... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11984 | if ${ac_cv_lib_z_inflateCopy+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11985 |   $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11986 | else | 
 | 11987 |   ac_check_lib_save_LIBS=$LIBS | 
 | 11988 | LIBS="-lz  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11989 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11990 | /* end confdefs.h.  */ | 
 | 11991 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11992 | /* Override any GCC internal prototype to avoid an error. | 
 | 11993 |    Use char because int might match the return type of a GCC | 
 | 11994 |    builtin and then its argument prototype would still apply.  */ | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11995 | #ifdef __cplusplus | 
 | 11996 | extern "C" | 
 | 11997 | #endif | 
 | 11998 | char inflateCopy (); | 
 | 11999 | int | 
 | 12000 | main () | 
 | 12001 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12002 | return inflateCopy (); | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 12003 |   ; | 
 | 12004 |   return 0; | 
 | 12005 | } | 
 | 12006 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12007 | if ac_fn_c_try_link "$LINENO"; then : | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 12008 |   ac_cv_lib_z_inflateCopy=yes | 
 | 12009 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12010 |   ac_cv_lib_z_inflateCopy=no | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 12011 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12012 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 12013 |     conftest$ac_exeext conftest.$ac_ext | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 12014 | LIBS=$ac_check_lib_save_LIBS | 
 | 12015 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5 | 
 | 12017 | $as_echo "$ac_cv_lib_z_inflateCopy" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12018 | if test "x$ac_cv_lib_z_inflateCopy" = xyes; then : | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 12019 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12020 | $as_echo "#define HAVE_ZLIB_COPY 1" >>confdefs.h | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 12021 |  | 
 | 12022 | fi | 
 | 12023 |  | 
 | 12024 |  | 
 | 12025 | case $ac_sys_system/$ac_sys_release in | 
 | 12026 | Darwin/*) | 
 | 12027 | 	CFLAGS="${_CUR_CFLAGS}" | 
 | 12028 | 	LDFLAGS="${_CUR_LDFLAGS}" | 
 | 12029 | 	;; | 
 | 12030 | esac | 
 | 12031 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12032 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hstrerror" >&5 | 
 | 12033 | $as_echo_n "checking for hstrerror... " >&6; } | 
 | 12034 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12035 | /* end confdefs.h.  */ | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12036 |  | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12037 | #include <netdb.h> | 
 | 12038 |  | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12039 | int | 
 | 12040 | main () | 
 | 12041 | { | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12042 | void* p = hstrerror; hstrerror(0) | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12043 |   ; | 
 | 12044 |   return 0; | 
 | 12045 | } | 
 | 12046 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12047 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12048 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12049 | $as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12050 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 12051 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12052 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12053 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12054 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 12055 | $as_echo "no" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12056 |  | 
 | 12057 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12058 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 12059 |     conftest$ac_exeext conftest.$ac_ext | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12060 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12061 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton" >&5 | 
 | 12062 | $as_echo_n "checking for inet_aton... " >&6; } | 
 | 12063 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12064 | /* end confdefs.h.  */ | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12065 |  | 
| Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 12066 | #include <sys/types.h> | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12067 | #include <sys/socket.h> | 
 | 12068 | #include <netinet/in.h> | 
 | 12069 | #include <arpa/inet.h> | 
 | 12070 |  | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12071 | int | 
 | 12072 | main () | 
 | 12073 | { | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12074 | void* p = inet_aton;inet_aton(0,0) | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12075 |   ; | 
 | 12076 |   return 0; | 
 | 12077 | } | 
 | 12078 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12079 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12080 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12081 | $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12082 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 12083 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12084 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12085 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12086 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 12087 | $as_echo "no" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12088 |  | 
 | 12089 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12090 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 12091 |     conftest$ac_exeext conftest.$ac_ext | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12092 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12093 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_pton" >&5 | 
 | 12094 | $as_echo_n "checking for inet_pton... " >&6; } | 
 | 12095 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12096 | /* end confdefs.h.  */ | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12097 |  | 
| Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 12098 | #include <sys/types.h> | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12099 | #include <sys/socket.h> | 
 | 12100 | #include <netinet/in.h> | 
 | 12101 | #include <arpa/inet.h> | 
 | 12102 |  | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12103 | int | 
 | 12104 | main () | 
 | 12105 | { | 
 | 12106 | void* p = inet_pton | 
 | 12107 |   ; | 
 | 12108 |   return 0; | 
 | 12109 | } | 
 | 12110 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12111 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12112 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12113 | $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12114 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 12115 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12116 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12117 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12118 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 12119 | $as_echo "no" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12120 |  | 
 | 12121 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12122 | 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] | 12123 |  | 
| Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 12124 | # 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] | 12125 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setgroups" >&5 | 
 | 12126 | $as_echo_n "checking for setgroups... " >&6; } | 
 | 12127 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12128 | /* end confdefs.h.  */ | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12129 |  | 
| Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 12130 | #include <unistd.h> | 
| Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 12131 | #ifdef HAVE_GRP_H | 
 | 12132 | #include <grp.h> | 
 | 12133 | #endif | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12134 |  | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12135 | int | 
 | 12136 | main () | 
 | 12137 | { | 
 | 12138 | void* p = setgroups | 
 | 12139 |   ; | 
 | 12140 |   return 0; | 
 | 12141 | } | 
 | 12142 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12143 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12144 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12145 | $as_echo "#define HAVE_SETGROUPS 1" >>confdefs.h | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12146 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 12147 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12148 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12149 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12150 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 12151 | $as_echo "no" >&6; } | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12152 |  | 
 | 12153 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12154 | 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] | 12155 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12156 | # check for openpty and forkpty | 
 | 12157 |  | 
 | 12158 | for ac_func in openpty | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12159 | do : | 
 | 12160 |   ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12161 | if test "x$ac_cv_func_openpty" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12162 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12163 | #define HAVE_OPENPTY 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12164 | _ACEOF | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12165 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12166 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12167 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5 | 
 | 12168 | $as_echo_n "checking for openpty in -lutil... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12169 | if ${ac_cv_lib_util_openpty+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12170 |   $as_echo_n "(cached) " >&6 | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12171 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12172 |   ac_check_lib_save_LIBS=$LIBS | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12173 | LIBS="-lutil  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12174 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12175 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12176 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12177 | /* Override any GCC internal prototype to avoid an error. | 
 | 12178 |    Use char because int might match the return type of a GCC | 
 | 12179 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12180 | #ifdef __cplusplus | 
 | 12181 | extern "C" | 
 | 12182 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12183 | char openpty (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12184 | int | 
 | 12185 | main () | 
 | 12186 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12187 | return openpty (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12188 |   ; | 
 | 12189 |   return 0; | 
 | 12190 | } | 
 | 12191 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12192 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12193 |   ac_cv_lib_util_openpty=yes | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12194 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12195 |   ac_cv_lib_util_openpty=no | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12196 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12197 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 12198 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12199 | LIBS=$ac_check_lib_save_LIBS | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12200 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5 | 
 | 12202 | $as_echo "$ac_cv_lib_util_openpty" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12203 | if test "x$ac_cv_lib_util_openpty" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12204 |   $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12205 |  LIBS="$LIBS -lutil" | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12206 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12207 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lbsd" >&5 | 
 | 12208 | $as_echo_n "checking for openpty in -lbsd... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12209 | if ${ac_cv_lib_bsd_openpty+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12210 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12211 | else | 
 | 12212 |   ac_check_lib_save_LIBS=$LIBS | 
 | 12213 | LIBS="-lbsd  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12214 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12215 | /* end confdefs.h.  */ | 
 | 12216 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12217 | /* Override any GCC internal prototype to avoid an error. | 
 | 12218 |    Use char because int might match the return type of a GCC | 
 | 12219 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12220 | #ifdef __cplusplus | 
 | 12221 | extern "C" | 
 | 12222 | #endif | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12223 | char openpty (); | 
 | 12224 | int | 
 | 12225 | main () | 
 | 12226 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12227 | return openpty (); | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12228 |   ; | 
 | 12229 |   return 0; | 
 | 12230 | } | 
 | 12231 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12232 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12233 |   ac_cv_lib_bsd_openpty=yes | 
 | 12234 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12235 |   ac_cv_lib_bsd_openpty=no | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12236 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12237 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 12238 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12239 | LIBS=$ac_check_lib_save_LIBS | 
 | 12240 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_openpty" >&5 | 
 | 12242 | $as_echo "$ac_cv_lib_bsd_openpty" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12243 | if test "x$ac_cv_lib_bsd_openpty" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12244 |   $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12245 |  LIBS="$LIBS -lbsd" | 
 | 12246 | fi | 
 | 12247 |  | 
 | 12248 |  | 
 | 12249 | fi | 
 | 12250 |  | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12251 |  | 
 | 12252 | fi | 
 | 12253 | done | 
 | 12254 |  | 
 | 12255 | for ac_func in forkpty | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12256 | do : | 
 | 12257 |   ac_fn_c_check_func "$LINENO" "forkpty" "ac_cv_func_forkpty" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12258 | if test "x$ac_cv_func_forkpty" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12259 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12260 | #define HAVE_FORKPTY 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12261 | _ACEOF | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12262 |  | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12263 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12264 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lutil" >&5 | 
 | 12265 | $as_echo_n "checking for forkpty in -lutil... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12266 | if ${ac_cv_lib_util_forkpty+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12267 |   $as_echo_n "(cached) " >&6 | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12268 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12269 |   ac_check_lib_save_LIBS=$LIBS | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12270 | LIBS="-lutil  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12271 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12272 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12273 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12274 | /* Override any GCC internal prototype to avoid an error. | 
 | 12275 |    Use char because int might match the return type of a GCC | 
 | 12276 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12277 | #ifdef __cplusplus | 
 | 12278 | extern "C" | 
 | 12279 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12280 | char forkpty (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12281 | int | 
 | 12282 | main () | 
 | 12283 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12284 | return forkpty (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12285 |   ; | 
 | 12286 |   return 0; | 
 | 12287 | } | 
 | 12288 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12289 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12290 |   ac_cv_lib_util_forkpty=yes | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12291 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12292 |   ac_cv_lib_util_forkpty=no | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12293 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12294 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 12295 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12296 | LIBS=$ac_check_lib_save_LIBS | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12297 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_forkpty" >&5 | 
 | 12299 | $as_echo "$ac_cv_lib_util_forkpty" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12300 | if test "x$ac_cv_lib_util_forkpty" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12301 |   $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12302 |  LIBS="$LIBS -lutil" | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12303 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12304 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lbsd" >&5 | 
 | 12305 | $as_echo_n "checking for forkpty in -lbsd... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12306 | if ${ac_cv_lib_bsd_forkpty+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12307 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12308 | else | 
 | 12309 |   ac_check_lib_save_LIBS=$LIBS | 
 | 12310 | LIBS="-lbsd  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12311 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12312 | /* end confdefs.h.  */ | 
 | 12313 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12314 | /* Override any GCC internal prototype to avoid an error. | 
 | 12315 |    Use char because int might match the return type of a GCC | 
 | 12316 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12317 | #ifdef __cplusplus | 
 | 12318 | extern "C" | 
 | 12319 | #endif | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12320 | char forkpty (); | 
 | 12321 | int | 
 | 12322 | main () | 
 | 12323 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12324 | return forkpty (); | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12325 |   ; | 
 | 12326 |   return 0; | 
 | 12327 | } | 
 | 12328 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12329 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12330 |   ac_cv_lib_bsd_forkpty=yes | 
 | 12331 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12332 |   ac_cv_lib_bsd_forkpty=no | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12333 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12334 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 12335 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12336 | LIBS=$ac_check_lib_save_LIBS | 
 | 12337 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_forkpty" >&5 | 
 | 12339 | $as_echo "$ac_cv_lib_bsd_forkpty" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12340 | if test "x$ac_cv_lib_bsd_forkpty" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12341 |   $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12342 |  LIBS="$LIBS -lbsd" | 
 | 12343 | fi | 
 | 12344 |  | 
 | 12345 |  | 
 | 12346 | fi | 
 | 12347 |  | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12348 |  | 
 | 12349 | fi | 
 | 12350 | done | 
 | 12351 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 12352 |  | 
| Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 12353 | # Stuff for expat. | 
| Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 12354 | for ac_func in memmove | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12355 | do : | 
 | 12356 |   ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12357 | if test "x$ac_cv_func_memmove" = xyes; then : | 
| Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 12358 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12359 | #define HAVE_MEMMOVE 1 | 
| Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 12360 | _ACEOF | 
 | 12361 |  | 
 | 12362 | fi | 
 | 12363 | done | 
 | 12364 |  | 
 | 12365 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12366 | # check for long file support functions | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12367 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12368 | do : | 
 | 12369 |   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
 | 12370 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12371 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12372 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12373 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12374 | _ACEOF | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12375 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12376 | fi | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12377 | done | 
 | 12378 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12379 |  | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12380 | ac_fn_c_check_func "$LINENO" "dup2" "ac_cv_func_dup2" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12381 | if test "x$ac_cv_func_dup2" = xyes; then : | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12382 |   $as_echo "#define HAVE_DUP2 1" >>confdefs.h | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12383 |  | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12384 | else | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12385 |   case " $LIBOBJS " in | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12386 |   *" dup2.$ac_objext "* ) ;; | 
 | 12387 |   *) LIBOBJS="$LIBOBJS dup2.$ac_objext" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12388 |  ;; | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12389 | esac | 
 | 12390 |  | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12391 | fi | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12392 |  | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12393 | ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12394 | if test "x$ac_cv_func_strdup" = xyes; then : | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12395 |   $as_echo "#define HAVE_STRDUP 1" >>confdefs.h | 
 | 12396 |  | 
 | 12397 | else | 
 | 12398 |   case " $LIBOBJS " in | 
 | 12399 |   *" strdup.$ac_objext "* ) ;; | 
 | 12400 |   *) LIBOBJS="$LIBOBJS strdup.$ac_objext" | 
 | 12401 |  ;; | 
 | 12402 | esac | 
 | 12403 |  | 
 | 12404 | fi | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12405 |  | 
 | 12406 |  | 
 | 12407 | for ac_func in getpgrp | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12408 | do : | 
 | 12409 |   ac_fn_c_check_func "$LINENO" "getpgrp" "ac_cv_func_getpgrp" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12410 | if test "x$ac_cv_func_getpgrp" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12411 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12412 | #define HAVE_GETPGRP 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12413 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12414 |  cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12415 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12416 | #include <unistd.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12417 | int | 
 | 12418 | main () | 
 | 12419 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12420 | getpgrp(0); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12421 |   ; | 
 | 12422 |   return 0; | 
 | 12423 | } | 
 | 12424 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12425 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12426 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12427 | $as_echo "#define GETPGRP_HAVE_ARG 1" >>confdefs.h | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12428 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12429 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12430 | 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] | 12431 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12432 | fi | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12433 | done | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12434 |  | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 12435 | for ac_func in setpgrp | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12436 | do : | 
 | 12437 |   ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12438 | if test "x$ac_cv_func_setpgrp" = xyes; then : | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 12439 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12440 | #define HAVE_SETPGRP 1 | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 12441 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12442 |  cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12443 | /* end confdefs.h.  */ | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 12444 | #include <unistd.h> | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 12445 | int | 
 | 12446 | main () | 
 | 12447 | { | 
 | 12448 | setpgrp(0,0); | 
 | 12449 |   ; | 
 | 12450 |   return 0; | 
 | 12451 | } | 
 | 12452 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12453 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12454 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12455 | $as_echo "#define SETPGRP_HAVE_ARG 1" >>confdefs.h | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12456 |  | 
| Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 12457 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12458 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 12459 |  | 
 | 12460 | fi | 
 | 12461 | done | 
| Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 12462 |  | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12463 | for ac_func in gettimeofday | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12464 | do : | 
 | 12465 |   ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12466 | if test "x$ac_cv_func_gettimeofday" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12467 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12468 | #define HAVE_GETTIMEOFDAY 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12469 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12470 |  cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12471 | /* end confdefs.h.  */ | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12472 | #include <sys/time.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12473 | int | 
 | 12474 | main () | 
 | 12475 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12476 | gettimeofday((struct timeval*)0,(struct timezone*)0); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12477 |   ; | 
 | 12478 |   return 0; | 
 | 12479 | } | 
 | 12480 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12481 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 12482 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12483 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12484 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12485 | $as_echo "#define GETTIMEOFDAY_NO_TZ 1" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12486 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12487 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12488 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12489 | 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] | 12490 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12491 | fi | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12492 | done | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12493 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12494 |  | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12495 | for ac_func in clock_gettime | 
 | 12496 | do : | 
 | 12497 |   ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" | 
 | 12498 | if test "x$ac_cv_func_clock_gettime" = xyes; then : | 
 | 12499 |   cat >>confdefs.h <<_ACEOF | 
 | 12500 | #define HAVE_CLOCK_GETTIME 1 | 
 | 12501 | _ACEOF | 
 | 12502 |  | 
 | 12503 | else | 
 | 12504 |  | 
 | 12505 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 | 
 | 12506 | $as_echo_n "checking for clock_gettime in -lrt... " >&6; } | 
 | 12507 | if ${ac_cv_lib_rt_clock_gettime+:} false; then : | 
 | 12508 |   $as_echo_n "(cached) " >&6 | 
 | 12509 | else | 
 | 12510 |   ac_check_lib_save_LIBS=$LIBS | 
 | 12511 | LIBS="-lrt  $LIBS" | 
 | 12512 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 12513 | /* end confdefs.h.  */ | 
 | 12514 |  | 
 | 12515 | /* Override any GCC internal prototype to avoid an error. | 
 | 12516 |    Use char because int might match the return type of a GCC | 
 | 12517 |    builtin and then its argument prototype would still apply.  */ | 
 | 12518 | #ifdef __cplusplus | 
 | 12519 | extern "C" | 
 | 12520 | #endif | 
 | 12521 | char clock_gettime (); | 
 | 12522 | int | 
 | 12523 | main () | 
 | 12524 | { | 
 | 12525 | return clock_gettime (); | 
 | 12526 |   ; | 
 | 12527 |   return 0; | 
 | 12528 | } | 
 | 12529 | _ACEOF | 
 | 12530 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 12531 |   ac_cv_lib_rt_clock_gettime=yes | 
 | 12532 | else | 
 | 12533 |   ac_cv_lib_rt_clock_gettime=no | 
 | 12534 | fi | 
 | 12535 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 12536 |     conftest$ac_exeext conftest.$ac_ext | 
 | 12537 | LIBS=$ac_check_lib_save_LIBS | 
 | 12538 | fi | 
 | 12539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 | 
 | 12540 | $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } | 
 | 12541 | if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then : | 
 | 12542 |  | 
| Victor Stinner | 7efb833 | 2014-08-29 15:41:08 +0200 | [diff] [blame] | 12543 |         LIBS="$LIBS -lrt" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12544 |         $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h | 
 | 12545 |  | 
 | 12546 |  | 
 | 12547 | $as_echo "#define TIMEMODULE_LIB rt" >>confdefs.h | 
 | 12548 |  | 
 | 12549 |  | 
 | 12550 | fi | 
 | 12551 |  | 
 | 12552 |  | 
 | 12553 | fi | 
 | 12554 | done | 
 | 12555 |  | 
 | 12556 |  | 
 | 12557 | for ac_func in clock_getres | 
 | 12558 | do : | 
 | 12559 |   ac_fn_c_check_func "$LINENO" "clock_getres" "ac_cv_func_clock_getres" | 
 | 12560 | if test "x$ac_cv_func_clock_getres" = xyes; then : | 
 | 12561 |   cat >>confdefs.h <<_ACEOF | 
 | 12562 | #define HAVE_CLOCK_GETRES 1 | 
 | 12563 | _ACEOF | 
 | 12564 |  | 
 | 12565 | else | 
 | 12566 |  | 
 | 12567 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_getres in -lrt" >&5 | 
 | 12568 | $as_echo_n "checking for clock_getres in -lrt... " >&6; } | 
 | 12569 | if ${ac_cv_lib_rt_clock_getres+:} false; then : | 
 | 12570 |   $as_echo_n "(cached) " >&6 | 
 | 12571 | else | 
 | 12572 |   ac_check_lib_save_LIBS=$LIBS | 
 | 12573 | LIBS="-lrt  $LIBS" | 
 | 12574 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 12575 | /* end confdefs.h.  */ | 
 | 12576 |  | 
 | 12577 | /* Override any GCC internal prototype to avoid an error. | 
 | 12578 |    Use char because int might match the return type of a GCC | 
 | 12579 |    builtin and then its argument prototype would still apply.  */ | 
 | 12580 | #ifdef __cplusplus | 
 | 12581 | extern "C" | 
 | 12582 | #endif | 
 | 12583 | char clock_getres (); | 
 | 12584 | int | 
 | 12585 | main () | 
 | 12586 | { | 
 | 12587 | return clock_getres (); | 
 | 12588 |   ; | 
 | 12589 |   return 0; | 
 | 12590 | } | 
 | 12591 | _ACEOF | 
 | 12592 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 12593 |   ac_cv_lib_rt_clock_getres=yes | 
 | 12594 | else | 
 | 12595 |   ac_cv_lib_rt_clock_getres=no | 
 | 12596 | fi | 
 | 12597 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 12598 |     conftest$ac_exeext conftest.$ac_ext | 
 | 12599 | LIBS=$ac_check_lib_save_LIBS | 
 | 12600 | fi | 
 | 12601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_getres" >&5 | 
 | 12602 | $as_echo "$ac_cv_lib_rt_clock_getres" >&6; } | 
 | 12603 | if test "x$ac_cv_lib_rt_clock_getres" = xyes; then : | 
 | 12604 |  | 
 | 12605 |         $as_echo "#define HAVE_CLOCK_GETRES 1" >>confdefs.h | 
 | 12606 |  | 
 | 12607 |  | 
 | 12608 | fi | 
 | 12609 |  | 
 | 12610 |  | 
 | 12611 | fi | 
 | 12612 | done | 
 | 12613 |  | 
 | 12614 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12615 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for major" >&5 | 
 | 12616 | $as_echo_n "checking for major... " >&6; } | 
 | 12617 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12618 | /* end confdefs.h.  */ | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 12619 |  | 
| Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 12620 | #if defined(MAJOR_IN_MKDEV) | 
 | 12621 | #include <sys/mkdev.h> | 
 | 12622 | #elif defined(MAJOR_IN_SYSMACROS) | 
 | 12623 | #include <sys/sysmacros.h> | 
 | 12624 | #else | 
 | 12625 | #include <sys/types.h> | 
 | 12626 | #endif | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 12627 |  | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 12628 | int | 
 | 12629 | main () | 
 | 12630 | { | 
 | 12631 |  | 
 | 12632 |   makedev(major(0),minor(0)); | 
 | 12633 |  | 
 | 12634 |   ; | 
 | 12635 |   return 0; | 
 | 12636 | } | 
 | 12637 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12638 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 12639 |  | 
 | 12640 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12641 | $as_echo "#define HAVE_DEVICE_MACROS 1" >>confdefs.h | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 12642 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12643 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 12644 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 12645 |  | 
 | 12646 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12647 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12648 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 12649 | $as_echo "no" >&6; } | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 12650 |  | 
 | 12651 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12652 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 12653 |     conftest$ac_exeext conftest.$ac_ext | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12654 |  | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12655 | # 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] | 12656 | # for [no]getaddrinfo in netdb.h. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12657 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5 | 
 | 12658 | $as_echo_n "checking for getaddrinfo... " >&6; } | 
 | 12659 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12660 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12661 |  | 
| Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 12662 | #include <sys/types.h> | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12663 | #include <sys/socket.h> | 
 | 12664 | #include <netdb.h> | 
| Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 12665 | #include <stdio.h> | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12666 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12667 | int | 
 | 12668 | main () | 
 | 12669 | { | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12670 | getaddrinfo(NULL, NULL, NULL, NULL); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12671 |   ; | 
 | 12672 |   return 0; | 
 | 12673 | } | 
 | 12674 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12675 | if ac_fn_c_try_link "$LINENO"; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12676 |   have_getaddrinfo=yes | 
 | 12677 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12678 |   have_getaddrinfo=no | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12679 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12680 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 12681 |     conftest$ac_exeext conftest.$ac_ext | 
 | 12682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getaddrinfo" >&5 | 
 | 12683 | $as_echo "$have_getaddrinfo" >&6; } | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12684 | if test $have_getaddrinfo = yes | 
 | 12685 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12686 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking getaddrinfo bug" >&5 | 
 | 12687 | $as_echo_n "checking getaddrinfo bug... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12688 |   if ${ac_cv_buggy_getaddrinfo+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12689 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12690 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12691 |   if test "$cross_compiling" = yes; then : | 
| Matthias Klose | 9635013 | 2012-03-15 20:42:23 +0100 | [diff] [blame] | 12692 |  | 
 | 12693 | if test "${enable_ipv6+set}" = set; then | 
 | 12694 |   ac_cv_buggy_getaddrinfo="no -- configured with --(en|dis)able-ipv6" | 
 | 12695 | else | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12696 |   ac_cv_buggy_getaddrinfo=yes | 
| Matthias Klose | 9635013 | 2012-03-15 20:42:23 +0100 | [diff] [blame] | 12697 | fi | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12698 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12699 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12700 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12701 |  | 
| Stefan Krah | 19c2139 | 2012-11-22 23:47:32 +0100 | [diff] [blame] | 12702 | #include <stdio.h> | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12703 | #include <sys/types.h> | 
 | 12704 | #include <netdb.h> | 
 | 12705 | #include <string.h> | 
 | 12706 | #include <sys/socket.h> | 
 | 12707 | #include <netinet/in.h> | 
 | 12708 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12709 | int main() | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12710 | { | 
 | 12711 |   int passive, gaierr, inet4 = 0, inet6 = 0; | 
 | 12712 |   struct addrinfo hints, *ai, *aitop; | 
 | 12713 |   char straddr[INET6_ADDRSTRLEN], strport[16]; | 
 | 12714 |  | 
 | 12715 |   for (passive = 0; passive <= 1; passive++) { | 
 | 12716 |     memset(&hints, 0, sizeof(hints)); | 
 | 12717 |     hints.ai_family = AF_UNSPEC; | 
 | 12718 |     hints.ai_flags = passive ? AI_PASSIVE : 0; | 
 | 12719 |     hints.ai_socktype = SOCK_STREAM; | 
| Hye-Shik Chang | 54f9439 | 2004-04-14 07:55:31 +0000 | [diff] [blame] | 12720 |     hints.ai_protocol = IPPROTO_TCP; | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12721 |     if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { | 
 | 12722 |       (void)gai_strerror(gaierr); | 
 | 12723 |       goto bad; | 
 | 12724 |     } | 
 | 12725 |     for (ai = aitop; ai; ai = ai->ai_next) { | 
 | 12726 |       if (ai->ai_addr == NULL || | 
 | 12727 |           ai->ai_addrlen == 0 || | 
 | 12728 |           getnameinfo(ai->ai_addr, ai->ai_addrlen, | 
 | 12729 |                       straddr, sizeof(straddr), strport, sizeof(strport), | 
 | 12730 |                       NI_NUMERICHOST|NI_NUMERICSERV) != 0) { | 
 | 12731 |         goto bad; | 
 | 12732 |       } | 
 | 12733 |       switch (ai->ai_family) { | 
 | 12734 |       case AF_INET: | 
 | 12735 |         if (strcmp(strport, "54321") != 0) { | 
 | 12736 |           goto bad; | 
 | 12737 |         } | 
 | 12738 |         if (passive) { | 
 | 12739 |           if (strcmp(straddr, "0.0.0.0") != 0) { | 
 | 12740 |             goto bad; | 
 | 12741 |           } | 
 | 12742 |         } else { | 
 | 12743 |           if (strcmp(straddr, "127.0.0.1") != 0) { | 
 | 12744 |             goto bad; | 
 | 12745 |           } | 
 | 12746 |         } | 
 | 12747 |         inet4++; | 
 | 12748 |         break; | 
 | 12749 |       case AF_INET6: | 
 | 12750 |         if (strcmp(strport, "54321") != 0) { | 
 | 12751 |           goto bad; | 
 | 12752 |         } | 
 | 12753 |         if (passive) { | 
 | 12754 |           if (strcmp(straddr, "::") != 0) { | 
 | 12755 |             goto bad; | 
 | 12756 |           } | 
 | 12757 |         } else { | 
 | 12758 |           if (strcmp(straddr, "::1") != 0) { | 
 | 12759 |             goto bad; | 
 | 12760 |           } | 
 | 12761 |         } | 
 | 12762 |         inet6++; | 
 | 12763 |         break; | 
 | 12764 |       case AF_UNSPEC: | 
 | 12765 |         goto bad; | 
 | 12766 |         break; | 
 | 12767 |       default: | 
 | 12768 |         /* another family support? */ | 
 | 12769 |         break; | 
 | 12770 |       } | 
 | 12771 |     } | 
| Benjamin Peterson | 01c340d | 2016-09-06 15:54:24 -0700 | [diff] [blame] | 12772 |     freeaddrinfo(aitop); | 
 | 12773 |     aitop = NULL; | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12774 |   } | 
 | 12775 |  | 
 | 12776 |   if (!(inet4 == 0 || inet4 == 2)) | 
 | 12777 |     goto bad; | 
 | 12778 |   if (!(inet6 == 0 || inet6 == 2)) | 
 | 12779 |     goto bad; | 
 | 12780 |  | 
 | 12781 |   if (aitop) | 
 | 12782 |     freeaddrinfo(aitop); | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12783 |   return 0; | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12784 |  | 
 | 12785 |  bad: | 
 | 12786 |   if (aitop) | 
 | 12787 |     freeaddrinfo(aitop); | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12788 |   return 1; | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12789 | } | 
 | 12790 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12791 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12792 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12793 |   ac_cv_buggy_getaddrinfo=no | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12794 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12795 |   ac_cv_buggy_getaddrinfo=yes | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12796 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12797 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 12798 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12799 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12800 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12801 | fi | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12802 |  | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12803 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12804 |  | 
| Benjamin Peterson | d4694ed | 2010-11-01 01:44:30 +0000 | [diff] [blame] | 12805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_buggy_getaddrinfo" >&5 | 
 | 12806 | $as_echo "$ac_cv_buggy_getaddrinfo" >&6; } | 
 | 12807 |  | 
| doko@ubuntu.com | 9c7817e | 2012-06-30 17:05:13 +0200 | [diff] [blame] | 12808 | if test $have_getaddrinfo = no || test "$ac_cv_buggy_getaddrinfo" = yes | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12809 | then | 
 | 12810 | 	if test $ipv6 = yes | 
 | 12811 | 	then | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12812 | 		echo 'Fatal: You must get working getaddrinfo() function.' | 
 | 12813 | 		echo '       or you can specify "--disable-ipv6"'. | 
 | 12814 | 		exit 1 | 
 | 12815 | 	fi | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12816 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12817 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12818 | $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12819 |  | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12820 | fi | 
| Benjamin Peterson | d4694ed | 2010-11-01 01:44:30 +0000 | [diff] [blame] | 12821 |  | 
| Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 12822 | for ac_func in getnameinfo | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12823 | do : | 
 | 12824 |   ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12825 | if test "x$ac_cv_func_getnameinfo" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12826 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12827 | #define HAVE_GETNAMEINFO 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12828 | _ACEOF | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12829 |  | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12830 | fi | 
 | 12831 | done | 
 | 12832 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12833 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12834 | # checks for structures | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12835 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 | 
 | 12836 | $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] | 12837 | if ${ac_cv_header_time+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12838 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12839 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12840 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12841 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12842 | #include <sys/types.h> | 
 | 12843 | #include <sys/time.h> | 
 | 12844 | #include <time.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12845 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12846 | int | 
 | 12847 | main () | 
 | 12848 | { | 
 | 12849 | if ((struct tm *) 0) | 
 | 12850 | return 0; | 
 | 12851 |   ; | 
 | 12852 |   return 0; | 
 | 12853 | } | 
 | 12854 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12855 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12856 |   ac_cv_header_time=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12857 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12858 |   ac_cv_header_time=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12859 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12860 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12861 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12862 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 | 
 | 12863 | $as_echo "$ac_cv_header_time" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12864 | if test $ac_cv_header_time = yes; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12865 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12866 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12867 |  | 
 | 12868 | fi | 
 | 12869 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12870 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 | 
 | 12871 | $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] | 12872 | if ${ac_cv_struct_tm+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12873 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12874 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12875 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12876 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12877 | #include <sys/types.h> | 
 | 12878 | #include <time.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12879 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12880 | int | 
 | 12881 | main () | 
 | 12882 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12883 | struct tm tm; | 
 | 12884 | 				     int *p = &tm.tm_sec; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12885 | 				     return !p; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12886 |   ; | 
 | 12887 |   return 0; | 
 | 12888 | } | 
 | 12889 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12890 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12891 |   ac_cv_struct_tm=time.h | 
 | 12892 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12893 |   ac_cv_struct_tm=sys/time.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12894 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12895 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12896 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 | 
 | 12898 | $as_echo "$ac_cv_struct_tm" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12899 | if test $ac_cv_struct_tm = sys/time.h; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12900 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12901 | $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12902 |  | 
 | 12903 | fi | 
 | 12904 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12905 | 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] | 12906 | #include <$ac_cv_struct_tm> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12907 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12908 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12909 | 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] | 12910 |  | 
 | 12911 | cat >>confdefs.h <<_ACEOF | 
 | 12912 | #define HAVE_STRUCT_TM_TM_ZONE 1 | 
 | 12913 | _ACEOF | 
 | 12914 |  | 
 | 12915 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12916 | fi | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12917 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12918 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then | 
 | 12919 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12920 | $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12921 |  | 
 | 12922 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12923 |   ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> | 
 | 12924 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12925 | if test "x$ac_cv_have_decl_tzname" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12926 |   ac_have_decl=1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12927 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12928 |   ac_have_decl=0 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12929 | fi | 
 | 12930 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12931 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12932 | #define HAVE_DECL_TZNAME $ac_have_decl | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12933 | _ACEOF | 
 | 12934 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12935 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 | 
 | 12936 | $as_echo_n "checking for tzname... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12937 | if ${ac_cv_var_tzname+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12938 |   $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12939 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12940 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12941 | /* end confdefs.h.  */ | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12942 | #include <time.h> | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12943 | #if !HAVE_DECL_TZNAME | 
 | 12944 | extern char *tzname[]; | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12945 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12946 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12947 | int | 
 | 12948 | main () | 
 | 12949 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12950 | return tzname[0][0]; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12951 |   ; | 
 | 12952 |   return 0; | 
 | 12953 | } | 
 | 12954 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12955 | if ac_fn_c_try_link "$LINENO"; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12956 |   ac_cv_var_tzname=yes | 
 | 12957 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12958 |   ac_cv_var_tzname=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12959 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12960 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 12961 |     conftest$ac_exeext conftest.$ac_ext | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12962 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 | 
 | 12964 | $as_echo "$ac_cv_var_tzname" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12965 |   if test $ac_cv_var_tzname = yes; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12966 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12967 | $as_echo "#define HAVE_TZNAME 1" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12968 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12969 |   fi | 
 | 12970 | fi | 
 | 12971 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12972 | 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] | 12973 | 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] | 12974 |  | 
 | 12975 | cat >>confdefs.h <<_ACEOF | 
 | 12976 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | 
 | 12977 | _ACEOF | 
 | 12978 |  | 
 | 12979 |  | 
| Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 12980 | fi | 
 | 12981 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12982 | 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] | 12983 | if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then : | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 12984 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12985 | cat >>confdefs.h <<_ACEOF | 
 | 12986 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | 
 | 12987 | _ACEOF | 
 | 12988 |  | 
 | 12989 |  | 
| Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 12990 | fi | 
 | 12991 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12992 | 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] | 12993 | 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] | 12994 |  | 
 | 12995 | cat >>confdefs.h <<_ACEOF | 
 | 12996 | #define HAVE_STRUCT_STAT_ST_FLAGS 1 | 
 | 12997 | _ACEOF | 
 | 12998 |  | 
 | 12999 |  | 
 | 13000 | fi | 
 | 13001 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13002 | 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] | 13003 | 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] | 13004 |  | 
 | 13005 | cat >>confdefs.h <<_ACEOF | 
 | 13006 | #define HAVE_STRUCT_STAT_ST_GEN 1 | 
 | 13007 | _ACEOF | 
 | 13008 |  | 
 | 13009 |  | 
 | 13010 | fi | 
 | 13011 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13012 | 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] | 13013 | 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] | 13014 |  | 
 | 13015 | cat >>confdefs.h <<_ACEOF | 
 | 13016 | #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1 | 
 | 13017 | _ACEOF | 
 | 13018 |  | 
 | 13019 |  | 
 | 13020 | fi | 
 | 13021 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13022 | 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] | 13023 | if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then : | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 13024 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13025 | cat >>confdefs.h <<_ACEOF | 
 | 13026 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 | 
 | 13027 | _ACEOF | 
 | 13028 |  | 
 | 13029 |  | 
| Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13030 | fi | 
 | 13031 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13032 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13033 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for time.h that defines altzone" >&5 | 
 | 13034 | $as_echo_n "checking for time.h that defines altzone... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13035 | if ${ac_cv_header_time_altzone+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13036 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13037 | else | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13038 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13039 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13040 | /* end confdefs.h.  */ | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13041 | #include <time.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13042 | int | 
 | 13043 | main () | 
 | 13044 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13045 | return altzone; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13046 |   ; | 
 | 13047 |   return 0; | 
 | 13048 | } | 
 | 13049 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13050 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13051 |   ac_cv_header_time_altzone=yes | 
 | 13052 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13053 |   ac_cv_header_time_altzone=no | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13054 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13055 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13056 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13057 | fi | 
 | 13058 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time_altzone" >&5 | 
 | 13060 | $as_echo "$ac_cv_header_time_altzone" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13061 | if test $ac_cv_header_time_altzone = yes; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13062 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13063 | $as_echo "#define HAVE_ALTZONE 1" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13064 |  | 
 | 13065 | fi | 
 | 13066 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13067 | was_it_defined=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13068 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be included" >&5 | 
 | 13069 | $as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; } | 
 | 13070 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13071 | /* end confdefs.h.  */ | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13072 |  | 
 | 13073 | #include <sys/types.h> | 
 | 13074 | #include <sys/select.h> | 
 | 13075 | #include <sys/time.h> | 
 | 13076 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13077 | int | 
 | 13078 | main () | 
 | 13079 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13080 | ; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13081 |   ; | 
 | 13082 |   return 0; | 
 | 13083 | } | 
 | 13084 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13085 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13086 |  | 
 | 13087 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13088 | $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] | 13089 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13090 |   was_it_defined=yes | 
 | 13091 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13092 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13093 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5 | 
 | 13095 | $as_echo "$was_it_defined" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13096 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13097 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for addrinfo" >&5 | 
 | 13098 | $as_echo_n "checking for addrinfo... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13099 | if ${ac_cv_struct_addrinfo+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13100 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13101 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13102 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13103 | /* end confdefs.h.  */ | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13104 | #include <netdb.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13105 | int | 
 | 13106 | main () | 
 | 13107 | { | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13108 | struct addrinfo a | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13109 |   ; | 
 | 13110 |   return 0; | 
 | 13111 | } | 
 | 13112 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13113 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13114 |   ac_cv_struct_addrinfo=yes | 
 | 13115 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13116 |   ac_cv_struct_addrinfo=no | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13117 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13118 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 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_struct_addrinfo" >&5 | 
 | 13122 | $as_echo "$ac_cv_struct_addrinfo" >&6; } | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13123 | if test $ac_cv_struct_addrinfo = yes; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13124 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13125 | $as_echo "#define HAVE_ADDRINFO 1" >>confdefs.h | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13126 |  | 
 | 13127 | fi | 
 | 13128 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13129 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage" >&5 | 
 | 13130 | $as_echo_n "checking for sockaddr_storage... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13131 | if ${ac_cv_struct_sockaddr_storage+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13132 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13133 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13134 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13135 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13136 |  | 
 | 13137 | #		include <sys/types.h> | 
 | 13138 | #		include <sys/socket.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13139 | int | 
 | 13140 | main () | 
 | 13141 | { | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13142 | struct sockaddr_storage s | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13143 |   ; | 
 | 13144 |   return 0; | 
 | 13145 | } | 
 | 13146 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13147 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13148 |   ac_cv_struct_sockaddr_storage=yes | 
 | 13149 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13150 |   ac_cv_struct_sockaddr_storage=no | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13151 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13152 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 13153 | fi | 
 | 13154 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_storage" >&5 | 
 | 13156 | $as_echo "$ac_cv_struct_sockaddr_storage" >&6; } | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13157 | if test $ac_cv_struct_sockaddr_storage = yes; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13158 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13159 | $as_echo "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13160 |  | 
 | 13161 | fi | 
 | 13162 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13163 | # checks for compiler characteristics | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13164 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13165 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5 | 
 | 13166 | $as_echo_n "checking whether char is unsigned... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13167 | if ${ac_cv_c_char_unsigned+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13168 |   $as_echo_n "(cached) " >&6 | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 13169 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13170 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13171 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13172 | $ac_includes_default | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13173 | int | 
 | 13174 | main () | 
 | 13175 | { | 
 | 13176 | static int test_array [1 - 2 * !(((char) -1) < 0)]; | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 13177 | test_array [0] = 0; | 
 | 13178 | return test_array [0]; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13179 |  | 
 | 13180 |   ; | 
 | 13181 |   return 0; | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13182 | } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13183 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13184 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13185 |   ac_cv_c_char_unsigned=no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13186 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13187 |   ac_cv_c_char_unsigned=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13188 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13189 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13190 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5 | 
 | 13192 | $as_echo "$ac_cv_c_char_unsigned" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13193 | if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13194 |   $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13195 |  | 
 | 13196 | fi | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13197 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13198 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 | 
 | 13199 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13200 | if ${ac_cv_c_const+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13201 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13202 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13203 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13204 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13205 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13206 | int | 
 | 13207 | main () | 
 | 13208 | { | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 13209 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13210 | #ifndef __cplusplus | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 13211 |   /* Ultrix mips cc rejects this sort of thing.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13212 |   typedef int charset[2]; | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 13213 |   const charset cs = { 0, 0 }; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13214 |   /* SunOS 4.1.1 cc rejects this.  */ | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13215 |   char const *const *pcpcc; | 
 | 13216 |   char **ppc; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13217 |   /* NEC SVR4.0.2 mips cc rejects this.  */ | 
 | 13218 |   struct point {int x, y;}; | 
 | 13219 |   static struct point const zero = {0,0}; | 
 | 13220 |   /* AIX XL C 1.02.0.0 rejects this. | 
 | 13221 |      It does not let you subtract one const X* pointer from another in | 
 | 13222 |      an arm of an if-expression whose if-part is not a constant | 
 | 13223 |      expression */ | 
 | 13224 |   const char *g = "string"; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13225 |   pcpcc = &g + (g ? g-g : 0); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13226 |   /* HPUX 7.0 cc rejects these. */ | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13227 |   ++pcpcc; | 
 | 13228 |   ppc = (char**) pcpcc; | 
 | 13229 |   pcpcc = (char const *const *) ppc; | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 13230 |   { /* SCO 3.2v4 cc rejects this sort of thing.  */ | 
 | 13231 |     char tx; | 
 | 13232 |     char *t = &tx; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13233 |     char const *s = 0 ? (char *) 0 : (char const *) 0; | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13234 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13235 |     *t++ = 0; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13236 |     if (s) return 0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13237 |   } | 
 | 13238 |   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */ | 
 | 13239 |     int x[] = {25, 17}; | 
 | 13240 |     const int *foo = &x[0]; | 
 | 13241 |     ++foo; | 
 | 13242 |   } | 
 | 13243 |   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | 
 | 13244 |     typedef const int *iptr; | 
 | 13245 |     iptr p = 0; | 
 | 13246 |     ++p; | 
 | 13247 |   } | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 13248 |   { /* 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] | 13249 |        "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] | 13250 |     struct s { int j; const int *ap[3]; } bx; | 
 | 13251 |     struct s *b = &bx; b->j = 5; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13252 |   } | 
 | 13253 |   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | 
 | 13254 |     const int foo = 10; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13255 |     if (!foo) return 0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13256 |   } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13257 |   return !cs[0] && !zero.x; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13258 | #endif | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13259 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13260 |   ; | 
 | 13261 |   return 0; | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13262 | } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13263 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13264 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13265 |   ac_cv_c_const=yes | 
 | 13266 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13267 |   ac_cv_c_const=no | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13268 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13269 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13270 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 | 
 | 13272 | $as_echo "$ac_cv_c_const" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13273 | if test $ac_cv_c_const = no; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13274 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13275 | $as_echo "#define const /**/" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13276 |  | 
 | 13277 | fi | 
 | 13278 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13279 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13280 | works=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13281 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 | 
 | 13282 | $as_echo_n "checking for working volatile... " >&6; } | 
 | 13283 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13284 | /* end confdefs.h.  */ | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13285 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13286 | int | 
 | 13287 | main () | 
 | 13288 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13289 | volatile int x; x = 0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13290 |   ; | 
 | 13291 |   return 0; | 
 | 13292 | } | 
 | 13293 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13294 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13295 |   works=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13296 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13297 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13298 | $as_echo "#define volatile /**/" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13299 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13300 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13301 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13302 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 | 
 | 13304 | $as_echo "$works" >&6; } | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13305 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13306 | works=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13307 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working signed char" >&5 | 
 | 13308 | $as_echo_n "checking for working signed char... " >&6; } | 
 | 13309 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13310 | /* end confdefs.h.  */ | 
| Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 13311 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13312 | int | 
 | 13313 | main () | 
 | 13314 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13315 | signed char c; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13316 |   ; | 
 | 13317 |   return 0; | 
 | 13318 | } | 
 | 13319 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13320 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13321 |   works=yes | 
| Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 13322 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13323 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13324 | $as_echo "#define signed /**/" >>confdefs.h | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13325 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13326 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13327 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13328 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 | 
 | 13330 | $as_echo "$works" >&6; } | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13331 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13332 | have_prototypes=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13333 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prototypes" >&5 | 
 | 13334 | $as_echo_n "checking for prototypes... " >&6; } | 
 | 13335 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13336 | /* end confdefs.h.  */ | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13337 | int foo(int x) { return 0; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13338 | int | 
 | 13339 | main () | 
 | 13340 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13341 | return foo(10); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13342 |   ; | 
 | 13343 |   return 0; | 
 | 13344 | } | 
 | 13345 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13346 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13347 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13348 | $as_echo "#define HAVE_PROTOTYPES 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13349 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13350 |    have_prototypes=yes | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13351 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13352 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_prototypes" >&5 | 
 | 13354 | $as_echo "$have_prototypes" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13355 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13356 | works=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13357 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for variable length prototypes and stdarg.h" >&5 | 
 | 13358 | $as_echo_n "checking for variable length prototypes and stdarg.h... " >&6; } | 
 | 13359 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13360 | /* end confdefs.h.  */ | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13361 |  | 
 | 13362 | #include <stdarg.h> | 
| Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 13363 | int foo(int x, ...) { | 
 | 13364 | 	va_list va; | 
 | 13365 | 	va_start(va, x); | 
 | 13366 | 	va_arg(va, int); | 
 | 13367 | 	va_arg(va, char *); | 
 | 13368 | 	va_arg(va, double); | 
 | 13369 | 	return 0; | 
 | 13370 | } | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13371 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13372 | int | 
 | 13373 | main () | 
 | 13374 | { | 
| Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 13375 | return foo(10, "", 3.14); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13376 |   ; | 
 | 13377 |   return 0; | 
 | 13378 | } | 
 | 13379 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13380 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13381 |  | 
 | 13382 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13383 | $as_echo "#define HAVE_STDARG_PROTOTYPES 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13384 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13385 |   works=yes | 
 | 13386 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13387 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13388 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13389 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 | 
 | 13390 | $as_echo "$works" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13391 |  | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 13392 | # check for socketpair | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13393 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socketpair" >&5 | 
 | 13394 | $as_echo_n "checking for socketpair... " >&6; } | 
 | 13395 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 13396 | /* end confdefs.h.  */ | 
 | 13397 |  | 
 | 13398 | #include <sys/types.h> | 
 | 13399 | #include <sys/socket.h> | 
 | 13400 |  | 
 | 13401 | int | 
 | 13402 | main () | 
 | 13403 | { | 
 | 13404 | void *x=socketpair | 
 | 13405 |   ; | 
 | 13406 |   return 0; | 
 | 13407 | } | 
 | 13408 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13409 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 13410 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13411 | $as_echo "#define HAVE_SOCKETPAIR 1" >>confdefs.h | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 13412 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13413 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13414 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 13415 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13416 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 13417 | $as_echo "no" >&6; } | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 13418 |  | 
 | 13419 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13420 | 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] | 13421 |  | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13422 | # check if sockaddr has sa_len member | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13423 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr has sa_len member" >&5 | 
 | 13424 | $as_echo_n "checking if sockaddr has sa_len member... " >&6; } | 
 | 13425 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13426 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13427 | #include <sys/types.h> | 
 | 13428 | #include <sys/socket.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13429 | int | 
 | 13430 | main () | 
 | 13431 | { | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13432 | struct sockaddr x; | 
 | 13433 | x.sa_len = 0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13434 |   ; | 
 | 13435 |   return 0; | 
 | 13436 | } | 
 | 13437 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13438 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 13439 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 13440 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13441 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13442 | $as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13443 |  | 
 | 13444 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13445 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 13446 | $as_echo "no" >&6; } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13447 |  | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13448 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13449 | 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] | 13450 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13451 | va_list_is_array=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13452 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether va_list is an array" >&5 | 
 | 13453 | $as_echo_n "checking whether va_list is an array... " >&6; } | 
 | 13454 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13455 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13456 |  | 
 | 13457 | #ifdef HAVE_STDARG_PROTOTYPES | 
 | 13458 | #include <stdarg.h> | 
 | 13459 | #else | 
 | 13460 | #include <varargs.h> | 
 | 13461 | #endif | 
 | 13462 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13463 | int | 
 | 13464 | main () | 
 | 13465 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13466 | va_list list1, list2; list1 = list2; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13467 |   ; | 
 | 13468 |   return 0; | 
 | 13469 | } | 
 | 13470 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13471 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 13472 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13473 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13474 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13475 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13476 | $as_echo "#define VA_LIST_IS_ARRAY 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13477 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13478 |  va_list_is_array=yes | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13479 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13480 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13481 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $va_list_is_array" >&5 | 
 | 13483 | $as_echo "$va_list_is_array" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13484 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13485 | # 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] | 13486 |  | 
 | 13487 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13488 | 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] | 13489 | if test "x$ac_cv_func_gethostbyname_r" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13490 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13491 |   $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h | 
| Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 13492 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13493 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 6 args" >&5 | 
 | 13494 | $as_echo_n "checking gethostbyname_r with 6 args... " >&6; } | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13495 |   OLD_CFLAGS=$CFLAGS | 
 | 13496 |   CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13497 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13498 | /* end confdefs.h.  */ | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13499 |  | 
 | 13500 | #   include <netdb.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13501 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13502 | int | 
 | 13503 | main () | 
 | 13504 | { | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13505 |  | 
 | 13506 |     char *name; | 
 | 13507 |     struct hostent *he, *res; | 
 | 13508 |     char buffer[2048]; | 
 | 13509 |     int buflen = 2048; | 
 | 13510 |     int h_errnop; | 
 | 13511 |  | 
 | 13512 |     (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13513 |  | 
 | 13514 |   ; | 
 | 13515 |   return 0; | 
 | 13516 | } | 
 | 13517 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13518 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13519 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13520 |     $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h | 
| Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 13521 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13522 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13523 | $as_echo "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13524 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13525 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 13526 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13527 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13528 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13529 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13530 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 13531 | $as_echo "no" >&6; } | 
 | 13532 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 5 args" >&5 | 
 | 13533 | $as_echo_n "checking gethostbyname_r with 5 args... " >&6; } | 
 | 13534 |     cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13535 | /* end confdefs.h.  */ | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13536 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13537 | #       include <netdb.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13538 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13539 | int | 
 | 13540 | main () | 
 | 13541 | { | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13542 |  | 
 | 13543 |         char *name; | 
 | 13544 |         struct hostent *he; | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13545 |         char buffer[2048]; | 
 | 13546 |         int buflen = 2048; | 
 | 13547 |         int h_errnop; | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13548 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13549 |         (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13550 |  | 
 | 13551 |   ; | 
 | 13552 |   return 0; | 
 | 13553 | } | 
 | 13554 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13555 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13556 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13557 |         $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h | 
| Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 13558 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13559 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13560 | $as_echo "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13561 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13562 |         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 13563 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13564 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13565 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13566 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13567 |         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 13568 | $as_echo "no" >&6; } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13569 |         { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 3 args" >&5 | 
 | 13570 | $as_echo_n "checking gethostbyname_r with 3 args... " >&6; } | 
 | 13571 |         cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 13572 | /* end confdefs.h.  */ | 
 | 13573 |  | 
 | 13574 | #           include <netdb.h> | 
 | 13575 |  | 
 | 13576 | int | 
 | 13577 | main () | 
 | 13578 | { | 
 | 13579 |  | 
 | 13580 |             char *name; | 
 | 13581 |             struct hostent *he; | 
 | 13582 |             struct hostent_data data; | 
 | 13583 |  | 
 | 13584 |             (void) gethostbyname_r(name, he, &data); | 
 | 13585 |  | 
 | 13586 |   ; | 
 | 13587 |   return 0; | 
 | 13588 | } | 
 | 13589 | _ACEOF | 
 | 13590 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 13591 |  | 
 | 13592 |             $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h | 
 | 13593 |  | 
 | 13594 |  | 
 | 13595 | $as_echo "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h | 
 | 13596 |  | 
 | 13597 |             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 13598 | $as_echo "yes" >&6; } | 
 | 13599 |  | 
 | 13600 | else | 
 | 13601 |  | 
 | 13602 |            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 13603 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13604 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13605 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13606 | 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] | 13607 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13608 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13609 | 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] | 13610 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13611 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13612 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13613 |   CFLAGS=$OLD_CFLAGS | 
 | 13614 |  | 
 | 13615 | else | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13616 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13617 |   for ac_func in gethostbyname | 
 | 13618 | do : | 
 | 13619 |   ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13620 | if test "x$ac_cv_func_gethostbyname" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13621 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13622 | #define HAVE_GETHOSTBYNAME 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13623 | _ACEOF | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13624 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13625 | fi | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 13626 | done | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13627 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13628 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13629 | fi | 
 | 13630 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13631 |  | 
 | 13632 |  | 
 | 13633 |  | 
 | 13634 |  | 
 | 13635 |  | 
 | 13636 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13637 | # checks for system services | 
 | 13638 | # (none yet) | 
 | 13639 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13640 | # Linux requires this for correct f.p. operations | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13641 | 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] | 13642 | if test "x$ac_cv_func___fpu_control" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13643 |  | 
| Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 13644 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13645 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __fpu_control in -lieee" >&5 | 
 | 13646 | $as_echo_n "checking for __fpu_control in -lieee... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13647 | if ${ac_cv_lib_ieee___fpu_control+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13648 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13649 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13650 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13651 | LIBS="-lieee  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13652 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13653 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13654 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13655 | /* Override any GCC internal prototype to avoid an error. | 
 | 13656 |    Use char because int might match the return type of a GCC | 
 | 13657 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13658 | #ifdef __cplusplus | 
 | 13659 | extern "C" | 
 | 13660 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13661 | char __fpu_control (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13662 | int | 
 | 13663 | main () | 
 | 13664 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13665 | return __fpu_control (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13666 |   ; | 
 | 13667 |   return 0; | 
 | 13668 | } | 
 | 13669 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13670 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13671 |   ac_cv_lib_ieee___fpu_control=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13672 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13673 |   ac_cv_lib_ieee___fpu_control=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13674 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13675 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 13676 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13677 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13678 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ieee___fpu_control" >&5 | 
 | 13680 | $as_echo "$ac_cv_lib_ieee___fpu_control" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13681 | 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] | 13682 |   cat >>confdefs.h <<_ACEOF | 
 | 13683 | #define HAVE_LIBIEEE 1 | 
 | 13684 | _ACEOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13685 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13686 |   LIBS="-lieee $LIBS" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13687 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13688 | fi | 
 | 13689 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13690 |  | 
| Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 13691 | fi | 
 | 13692 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13693 |  | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13694 | # Check for --with-fpectl | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13695 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-fpectl" >&5 | 
 | 13696 | $as_echo_n "checking for --with-fpectl... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13697 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13698 | # Check whether --with-fpectl was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13699 | if test "${with_fpectl+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13700 |   withval=$with_fpectl; | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13701 | if test "$withval" != no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13702 | then | 
 | 13703 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13704 | $as_echo "#define WANT_SIGFPE_HANDLER 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13705 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13706 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 13707 | $as_echo "yes" >&6; } | 
 | 13708 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 13709 | $as_echo "no" >&6; } | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13710 | fi | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13711 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13712 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 13713 | $as_echo "no" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13714 | fi | 
 | 13715 |  | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13716 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13717 | # check for --with-libm=... | 
 | 13718 |  | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 13719 | case $ac_sys_system in | 
| Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 13720 | Darwin) ;; | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 13721 | *) LIBM=-lm | 
 | 13722 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13723 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libm=STRING" >&5 | 
 | 13724 | $as_echo_n "checking for --with-libm=STRING... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13725 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13726 | # Check whether --with-libm was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13727 | if test "${with_libm+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13728 |   withval=$with_libm; | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13729 | if test "$withval" = no | 
 | 13730 | then LIBM= | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13731 |      { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBM empty" >&5 | 
 | 13732 | $as_echo "force LIBM empty" >&6; } | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13733 | elif test "$withval" != yes | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13734 | then LIBM=$withval | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13735 |      { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBM=\"$withval\"" >&5 | 
 | 13736 | $as_echo "set LIBM=\"$withval\"" >&6; } | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 13737 | 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] | 13738 | fi | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13739 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13740 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBM=\"$LIBM\"" >&5 | 
 | 13741 | $as_echo "default LIBM=\"$LIBM\"" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13742 | fi | 
 | 13743 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13744 |  | 
 | 13745 | # check for --with-libc=... | 
 | 13746 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13747 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libc=STRING" >&5 | 
 | 13748 | $as_echo_n "checking for --with-libc=STRING... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13749 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13750 | # Check whether --with-libc was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13751 | if test "${with_libc+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13752 |   withval=$with_libc; | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13753 | if test "$withval" = no | 
 | 13754 | then LIBC= | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13755 |      { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBC empty" >&5 | 
 | 13756 | $as_echo "force LIBC empty" >&6; } | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13757 | elif test "$withval" != yes | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13758 | then LIBC=$withval | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13759 |      { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBC=\"$withval\"" >&5 | 
 | 13760 | $as_echo "set LIBC=\"$withval\"" >&6; } | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 13761 | 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] | 13762 | fi | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13763 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13764 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBC=\"$LIBC\"" >&5 | 
 | 13765 | $as_echo "default LIBC=\"$LIBC\"" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13766 | fi | 
 | 13767 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13768 |  | 
| Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 13769 | # ************************************** | 
 | 13770 | # * Check for gcc x64 inline assembler * | 
 | 13771 | # ************************************** | 
 | 13772 |  | 
 | 13773 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x64 gcc inline assembler" >&5 | 
 | 13774 | $as_echo_n "checking for x64 gcc inline assembler... " >&6; } | 
 | 13775 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 13776 | /* end confdefs.h.  */ | 
 | 13777 |  | 
 | 13778 | int | 
 | 13779 | main () | 
 | 13780 | { | 
 | 13781 |  | 
 | 13782 |   __asm__ __volatile__ ("movq %rcx, %rax"); | 
 | 13783 |  | 
 | 13784 |   ; | 
 | 13785 |   return 0; | 
 | 13786 | } | 
 | 13787 | _ACEOF | 
| Stefan Krah | e31db2a | 2015-07-02 20:27:56 +0200 | [diff] [blame] | 13788 | if ac_fn_c_try_link "$LINENO"; then : | 
| Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 13789 |   have_gcc_asm_for_x64=yes | 
 | 13790 | else | 
 | 13791 |   have_gcc_asm_for_x64=no | 
 | 13792 | fi | 
| Stefan Krah | e31db2a | 2015-07-02 20:27:56 +0200 | [diff] [blame] | 13793 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 13794 |     conftest$ac_exeext conftest.$ac_ext | 
| Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 13795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_x64" >&5 | 
 | 13796 | $as_echo "$have_gcc_asm_for_x64" >&6; } | 
 | 13797 | if test "$have_gcc_asm_for_x64" = yes | 
 | 13798 | then | 
 | 13799 |  | 
 | 13800 | $as_echo "#define HAVE_GCC_ASM_FOR_X64 1" >>confdefs.h | 
 | 13801 |  | 
 | 13802 | fi | 
 | 13803 |  | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13804 | # ************************************************** | 
 | 13805 | # * Check for various properties of floating point * | 
 | 13806 | # ************************************************** | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 13807 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13808 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are little-endian IEEE 754 binary64" >&5 | 
 | 13809 | $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] | 13810 | if ${ac_cv_little_endian_double+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13811 |   $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13812 | else | 
 | 13813 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13814 | if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13815 |   ac_cv_little_endian_double=no | 
 | 13816 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13817 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13818 | /* end confdefs.h.  */ | 
 | 13819 |  | 
 | 13820 | #include <string.h> | 
 | 13821 | int main() { | 
 | 13822 |     double x = 9006104071832581.0; | 
 | 13823 |     if (memcmp(&x, "\x05\x04\x03\x02\x01\xff\x3f\x43", 8) == 0) | 
 | 13824 |         return 0; | 
 | 13825 |     else | 
 | 13826 |         return 1; | 
 | 13827 | } | 
 | 13828 |  | 
 | 13829 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13830 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13831 |   ac_cv_little_endian_double=yes | 
 | 13832 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13833 |   ac_cv_little_endian_double=no | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13834 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13835 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 13836 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13837 | fi | 
 | 13838 |  | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13839 | fi | 
 | 13840 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_little_endian_double" >&5 | 
 | 13842 | $as_echo "$ac_cv_little_endian_double" >&6; } | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13843 | if test "$ac_cv_little_endian_double" = yes | 
 | 13844 | then | 
 | 13845 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13846 | $as_echo "#define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1" >>confdefs.h | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13847 |  | 
 | 13848 | fi | 
 | 13849 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13850 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are big-endian IEEE 754 binary64" >&5 | 
 | 13851 | $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] | 13852 | if ${ac_cv_big_endian_double+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13853 |   $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13854 | else | 
 | 13855 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13856 | if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13857 |   ac_cv_big_endian_double=no | 
 | 13858 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13859 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13860 | /* end confdefs.h.  */ | 
 | 13861 |  | 
 | 13862 | #include <string.h> | 
 | 13863 | int main() { | 
 | 13864 |     double x = 9006104071832581.0; | 
 | 13865 |     if (memcmp(&x, "\x43\x3f\xff\x01\x02\x03\x04\x05", 8) == 0) | 
 | 13866 |         return 0; | 
 | 13867 |     else | 
 | 13868 |         return 1; | 
 | 13869 | } | 
 | 13870 |  | 
 | 13871 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13872 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13873 |   ac_cv_big_endian_double=yes | 
 | 13874 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13875 |   ac_cv_big_endian_double=no | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13876 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13877 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 13878 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13879 | fi | 
 | 13880 |  | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13881 | fi | 
 | 13882 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_big_endian_double" >&5 | 
 | 13884 | $as_echo "$ac_cv_big_endian_double" >&6; } | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13885 | if test "$ac_cv_big_endian_double" = yes | 
 | 13886 | then | 
 | 13887 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13888 | $as_echo "#define DOUBLE_IS_BIG_ENDIAN_IEEE754 1" >>confdefs.h | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13889 |  | 
 | 13890 | fi | 
 | 13891 |  | 
 | 13892 | # Some ARM platforms use a mixed-endian representation for doubles. | 
 | 13893 | # While Python doesn't currently have full support for these platforms | 
 | 13894 | # (see e.g., issue 1762561), we can at least make sure that float <-> string | 
 | 13895 | # conversions work. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13896 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are ARM mixed-endian IEEE 754 binary64" >&5 | 
 | 13897 | $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] | 13898 | if ${ac_cv_mixed_endian_double+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13899 |   $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13900 | else | 
 | 13901 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13902 | if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13903 |   ac_cv_mixed_endian_double=no | 
 | 13904 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13905 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13906 | /* end confdefs.h.  */ | 
 | 13907 |  | 
 | 13908 | #include <string.h> | 
 | 13909 | int main() { | 
 | 13910 |     double x = 9006104071832581.0; | 
 | 13911 |     if (memcmp(&x, "\x01\xff\x3f\x43\x05\x04\x03\x02", 8) == 0) | 
 | 13912 |         return 0; | 
 | 13913 |     else | 
 | 13914 |         return 1; | 
 | 13915 | } | 
 | 13916 |  | 
 | 13917 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13918 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13919 |   ac_cv_mixed_endian_double=yes | 
 | 13920 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13921 |   ac_cv_mixed_endian_double=no | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13922 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13923 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 13924 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13925 | fi | 
 | 13926 |  | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13927 | fi | 
 | 13928 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mixed_endian_double" >&5 | 
 | 13930 | $as_echo "$ac_cv_mixed_endian_double" >&6; } | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13931 | if test "$ac_cv_mixed_endian_double" = yes | 
 | 13932 | then | 
 | 13933 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13934 | $as_echo "#define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1" >>confdefs.h | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13935 |  | 
 | 13936 | fi | 
 | 13937 |  | 
| Mark Dickinson | 7abf8d4 | 2009-04-18 20:17:52 +0000 | [diff] [blame] | 13938 | # The short float repr introduced in Python 3.1 requires the | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 13939 | # correctly-rounded string <-> double conversion functions from | 
| Mark Dickinson | 7abf8d4 | 2009-04-18 20:17:52 +0000 | [diff] [blame] | 13940 | # 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] | 13941 | # 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] | 13942 | # 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] | 13943 | # using inline assembler to get and set the x87 FPU control word. | 
| Mark Dickinson | f4243f6 | 2009-11-15 13:47:27 +0000 | [diff] [blame] | 13944 |  | 
 | 13945 | # This inline assembler syntax may also work for suncc and icc, | 
 | 13946 | # so we try it on all platforms. | 
 | 13947 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13948 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set x87 control word" >&5 | 
 | 13949 | $as_echo_n "checking whether we can use gcc inline assembler to get and set x87 control word... " >&6; } | 
 | 13950 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13951 | /* end confdefs.h.  */ | 
 | 13952 |  | 
 | 13953 | int | 
 | 13954 | main () | 
 | 13955 | { | 
 | 13956 |  | 
| Mark Dickinson | f4243f6 | 2009-11-15 13:47:27 +0000 | [diff] [blame] | 13957 |   unsigned short cw; | 
 | 13958 |   __asm__ __volatile__ ("fnstcw %0" : "=m" (cw)); | 
 | 13959 |   __asm__ __volatile__ ("fldcw %0" : : "m" (cw)); | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13960 |  | 
 | 13961 |   ; | 
 | 13962 |   return 0; | 
 | 13963 | } | 
 | 13964 | _ACEOF | 
| Stefan Krah | e31db2a | 2015-07-02 20:27:56 +0200 | [diff] [blame] | 13965 | if ac_fn_c_try_link "$LINENO"; then : | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13966 |   have_gcc_asm_for_x87=yes | 
 | 13967 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13968 |   have_gcc_asm_for_x87=no | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13969 | fi | 
| Stefan Krah | e31db2a | 2015-07-02 20:27:56 +0200 | [diff] [blame] | 13970 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 13971 |     conftest$ac_exeext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_x87" >&5 | 
 | 13973 | $as_echo "$have_gcc_asm_for_x87" >&6; } | 
| Mark Dickinson | f4243f6 | 2009-11-15 13:47:27 +0000 | [diff] [blame] | 13974 | if test "$have_gcc_asm_for_x87" = yes | 
 | 13975 | then | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13976 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13977 | $as_echo "#define HAVE_GCC_ASM_FOR_X87 1" >>confdefs.h | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13978 |  | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13979 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13980 |  | 
| Benjamin Peterson | 8bdeb16 | 2014-04-17 00:00:31 -0400 | [diff] [blame] | 13981 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set mc68881 fpcr" >&5 | 
 | 13982 | $as_echo_n "checking whether we can use gcc inline assembler to get and set mc68881 fpcr... " >&6; } | 
 | 13983 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 13984 | /* end confdefs.h.  */ | 
 | 13985 |  | 
 | 13986 | int | 
 | 13987 | main () | 
 | 13988 | { | 
 | 13989 |  | 
 | 13990 |   unsigned int fpcr; | 
 | 13991 |   __asm__ __volatile__ ("fmove.l %%fpcr,%0" : "=g" (fpcr)); | 
 | 13992 |   __asm__ __volatile__ ("fmove.l %0,%%fpcr" : : "g" (fpcr)); | 
 | 13993 |  | 
 | 13994 |   ; | 
 | 13995 |   return 0; | 
 | 13996 | } | 
 | 13997 | _ACEOF | 
| Stefan Krah | e31db2a | 2015-07-02 20:27:56 +0200 | [diff] [blame] | 13998 | if ac_fn_c_try_link "$LINENO"; then : | 
| Benjamin Peterson | 8bdeb16 | 2014-04-17 00:00:31 -0400 | [diff] [blame] | 13999 |   have_gcc_asm_for_mc68881=yes | 
 | 14000 | else | 
 | 14001 |   have_gcc_asm_for_mc68881=no | 
 | 14002 | fi | 
| Stefan Krah | e31db2a | 2015-07-02 20:27:56 +0200 | [diff] [blame] | 14003 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 14004 |     conftest$ac_exeext conftest.$ac_ext | 
| Benjamin Peterson | 8bdeb16 | 2014-04-17 00:00:31 -0400 | [diff] [blame] | 14005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_mc68881" >&5 | 
 | 14006 | $as_echo "$have_gcc_asm_for_mc68881" >&6; } | 
 | 14007 | if test "$have_gcc_asm_for_mc68881" = yes | 
 | 14008 | then | 
 | 14009 |  | 
 | 14010 | $as_echo "#define HAVE_GCC_ASM_FOR_MC68881 1" >>confdefs.h | 
 | 14011 |  | 
 | 14012 | fi | 
 | 14013 |  | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14014 | # Detect whether system arithmetic is subject to x87-style double | 
 | 14015 | # rounding issues.  The result of this test has little meaning on non | 
 | 14016 | # IEEE 754 platforms.  On IEEE 754, test should return 1 if rounding | 
 | 14017 | # mode is round-to-nearest and double rounding issues are present, and | 
 | 14018 | # 0 otherwise.  See http://bugs.python.org/issue2937 for more info. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14019 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x87-style double rounding" >&5 | 
 | 14020 | $as_echo_n "checking for x87-style double rounding... " >&6; } | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14021 | # $BASECFLAGS may affect the result | 
 | 14022 | ac_save_cc="$CC" | 
 | 14023 | CC="$CC $BASECFLAGS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14024 | if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14025 |   ac_cv_x87_double_rounding=no | 
 | 14026 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14027 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14028 | /* end confdefs.h.  */ | 
 | 14029 |  | 
 | 14030 | #include <stdlib.h> | 
 | 14031 | #include <math.h> | 
 | 14032 | int main() { | 
 | 14033 |     volatile double x, y, z; | 
 | 14034 |     /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */ | 
 | 14035 |     x = 0.99999999999999989; /* 1-2**-53 */ | 
 | 14036 |     y = 1./x; | 
 | 14037 |     if (y != 1.) | 
 | 14038 |         exit(0); | 
 | 14039 |     /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */ | 
 | 14040 |     x = 1e16; | 
 | 14041 |     y = 2.99999; | 
 | 14042 |     z = x + y; | 
 | 14043 |     if (z != 1e16+4.) | 
 | 14044 |         exit(0); | 
 | 14045 |     /* both tests show evidence of double rounding */ | 
 | 14046 |     exit(1); | 
 | 14047 | } | 
 | 14048 |  | 
 | 14049 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14050 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14051 |   ac_cv_x87_double_rounding=no | 
 | 14052 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14053 |   ac_cv_x87_double_rounding=yes | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14054 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14055 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 14056 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14057 | fi | 
 | 14058 |  | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14059 | CC="$ac_save_cc" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_x87_double_rounding" >&5 | 
 | 14061 | $as_echo "$ac_cv_x87_double_rounding" >&6; } | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14062 | if test "$ac_cv_x87_double_rounding" = yes | 
 | 14063 | then | 
 | 14064 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14065 | $as_echo "#define X87_DOUBLE_ROUNDING 1" >>confdefs.h | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14066 |  | 
 | 14067 | fi | 
 | 14068 |  | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14069 | # ************************************ | 
 | 14070 | # * Check for mathematical functions * | 
 | 14071 | # ************************************ | 
 | 14072 |  | 
 | 14073 | LIBS_SAVE=$LIBS | 
 | 14074 | LIBS="$LIBS $LIBM" | 
 | 14075 |  | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14076 | for ac_func in acosh asinh atanh copysign erf erfc expm1 finite gamma | 
 | 14077 | do : | 
 | 14078 |   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
 | 14079 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 14080 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14081 |   cat >>confdefs.h <<_ACEOF | 
 | 14082 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
 | 14083 | _ACEOF | 
 | 14084 |  | 
 | 14085 | fi | 
 | 14086 | done | 
 | 14087 |  | 
| Victor Stinner | 8f9f8d6 | 2011-05-09 12:45:41 +0200 | [diff] [blame] | 14088 | for ac_func in hypot lgamma log1p log2 round tgamma | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14089 | do : | 
 | 14090 |   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
 | 14091 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 14092 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14093 |   cat >>confdefs.h <<_ACEOF | 
 | 14094 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
 | 14095 | _ACEOF | 
 | 14096 |  | 
 | 14097 | fi | 
 | 14098 | done | 
 | 14099 |  | 
 | 14100 | ac_fn_c_check_decl "$LINENO" "isinf" "ac_cv_have_decl_isinf" "#include <math.h> | 
 | 14101 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14102 | if test "x$ac_cv_have_decl_isinf" = xyes; then : | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14103 |   ac_have_decl=1 | 
 | 14104 | else | 
 | 14105 |   ac_have_decl=0 | 
 | 14106 | fi | 
 | 14107 |  | 
 | 14108 | cat >>confdefs.h <<_ACEOF | 
 | 14109 | #define HAVE_DECL_ISINF $ac_have_decl | 
 | 14110 | _ACEOF | 
 | 14111 | ac_fn_c_check_decl "$LINENO" "isnan" "ac_cv_have_decl_isnan" "#include <math.h> | 
 | 14112 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14113 | if test "x$ac_cv_have_decl_isnan" = xyes; then : | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14114 |   ac_have_decl=1 | 
 | 14115 | else | 
 | 14116 |   ac_have_decl=0 | 
 | 14117 | fi | 
 | 14118 |  | 
 | 14119 | cat >>confdefs.h <<_ACEOF | 
 | 14120 | #define HAVE_DECL_ISNAN $ac_have_decl | 
 | 14121 | _ACEOF | 
 | 14122 | ac_fn_c_check_decl "$LINENO" "isfinite" "ac_cv_have_decl_isfinite" "#include <math.h> | 
 | 14123 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14124 | if test "x$ac_cv_have_decl_isfinite" = xyes; then : | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14125 |   ac_have_decl=1 | 
 | 14126 | else | 
 | 14127 |   ac_have_decl=0 | 
 | 14128 | fi | 
 | 14129 |  | 
 | 14130 | cat >>confdefs.h <<_ACEOF | 
 | 14131 | #define HAVE_DECL_ISFINITE $ac_have_decl | 
 | 14132 | _ACEOF | 
 | 14133 |  | 
 | 14134 |  | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14135 | # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of | 
 | 14136 | # -0. on some architectures. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14137 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tanh preserves the sign of zero" >&5 | 
 | 14138 | $as_echo_n "checking whether tanh preserves the sign of zero... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14139 | if ${ac_cv_tanh_preserves_zero_sign+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14140 |   $as_echo_n "(cached) " >&6 | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14141 | else | 
 | 14142 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14143 | if test "$cross_compiling" = yes; then : | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14144 |   ac_cv_tanh_preserves_zero_sign=no | 
 | 14145 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14146 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14147 | /* end confdefs.h.  */ | 
 | 14148 |  | 
 | 14149 | #include <math.h> | 
 | 14150 | #include <stdlib.h> | 
 | 14151 | int main() { | 
 | 14152 |     /* return 0 if either negative zeros don't exist | 
 | 14153 |        on this platform or if negative zeros exist | 
 | 14154 |        and tanh(-0.) == -0. */ | 
 | 14155 |   if (atan2(0., -1.) == atan2(-0., -1.) || | 
 | 14156 |       atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0); | 
 | 14157 |   else exit(1); | 
 | 14158 | } | 
 | 14159 |  | 
 | 14160 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14161 | if ac_fn_c_try_run "$LINENO"; then : | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14162 |   ac_cv_tanh_preserves_zero_sign=yes | 
 | 14163 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14164 |   ac_cv_tanh_preserves_zero_sign=no | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14165 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14166 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 14167 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14168 | fi | 
 | 14169 |  | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14170 | fi | 
 | 14171 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tanh_preserves_zero_sign" >&5 | 
 | 14173 | $as_echo "$ac_cv_tanh_preserves_zero_sign" >&6; } | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14174 | if test "$ac_cv_tanh_preserves_zero_sign" = yes | 
 | 14175 | then | 
 | 14176 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14177 | $as_echo "#define TANH_PRESERVES_ZERO_SIGN 1" >>confdefs.h | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14178 |  | 
 | 14179 | fi | 
 | 14180 |  | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14181 | if test "$ac_cv_func_log1p" = yes | 
 | 14182 | then | 
 | 14183 |     # On some versions of AIX, log1p(-0.) returns 0. instead of | 
 | 14184 |     # -0.  See issue #9920. | 
 | 14185 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether log1p drops the sign of negative zero" >&5 | 
 | 14186 | $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] | 14187 |     if ${ac_cv_log1p_drops_zero_sign+:} false; then : | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14188 |   $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14189 | else | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14190 |  | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14191 |     if test "$cross_compiling" = yes; then : | 
 | 14192 |   ac_cv_log1p_drops_zero_sign=no | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14193 | else | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14194 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 14195 | /* end confdefs.h.  */ | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14196 |  | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14197 |     #include <math.h> | 
 | 14198 |     #include <stdlib.h> | 
 | 14199 |     int main() { | 
 | 14200 |         /* Fail if the signs of log1p(-0.) and -0. can be | 
 | 14201 | 	   distinguished. */ | 
 | 14202 |         if (atan2(log1p(-0.), -1.) == atan2(-0., -1.)) | 
 | 14203 |             return 0; | 
 | 14204 |         else | 
 | 14205 |             return 1; | 
 | 14206 |     } | 
 | 14207 |  | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14208 | _ACEOF | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14209 | if ac_fn_c_try_run "$LINENO"; then : | 
 | 14210 |   ac_cv_log1p_drops_zero_sign=no | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14211 | else | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14212 |   ac_cv_log1p_drops_zero_sign=yes | 
 | 14213 | fi | 
 | 14214 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 14215 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14216 | fi | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14217 |  | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14218 | fi | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14219 |  | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14220 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_log1p_drops_zero_sign" >&5 | 
 | 14221 | $as_echo "$ac_cv_log1p_drops_zero_sign" >&6; } | 
 | 14222 | fi | 
 | 14223 | if test "$ac_cv_log1p_drops_zero_sign" = yes | 
 | 14224 | then | 
 | 14225 |  | 
 | 14226 | $as_echo "#define LOG1P_DROPS_ZERO_SIGN 1" >>confdefs.h | 
 | 14227 |  | 
 | 14228 | fi | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14229 |  | 
| Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 14230 | LIBS=$LIBS_SAVE | 
 | 14231 |  | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14232 | # For multiprocessing module, check that sem_open | 
 | 14233 | # actually works.  For FreeBSD versions <= 7.2, | 
 | 14234 | # the kernel module that provides POSIX semaphores | 
 | 14235 | # isn't loaded by default, so an attempt to call | 
 | 14236 | # sem_open results in a 'Signal 12' error. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14237 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX semaphores are enabled" >&5 | 
 | 14238 | $as_echo_n "checking whether POSIX semaphores are enabled... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14239 | if ${ac_cv_posix_semaphores_enabled+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14240 |   $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14241 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14242 |   if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14243 |   ac_cv_posix_semaphores_enabled=yes | 
 | 14244 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14245 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14246 | /* end confdefs.h.  */ | 
 | 14247 |  | 
 | 14248 | #include <unistd.h> | 
 | 14249 | #include <fcntl.h> | 
 | 14250 | #include <stdio.h> | 
 | 14251 | #include <semaphore.h> | 
 | 14252 | #include <sys/stat.h> | 
 | 14253 |  | 
 | 14254 | int main(void) { | 
 | 14255 |   sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0); | 
 | 14256 |   if (a == SEM_FAILED) { | 
 | 14257 |     perror("sem_open"); | 
 | 14258 |     return 1; | 
 | 14259 |   } | 
 | 14260 |   sem_close(a); | 
| Mark Dickinson | ba79b35 | 2009-12-13 21:10:57 +0000 | [diff] [blame] | 14261 |   sem_unlink("/autoconf"); | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14262 |   return 0; | 
 | 14263 | } | 
 | 14264 |  | 
 | 14265 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14266 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14267 |   ac_cv_posix_semaphores_enabled=yes | 
 | 14268 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14269 |   ac_cv_posix_semaphores_enabled=no | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14270 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14271 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 14272 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14273 | fi | 
 | 14274 |  | 
 | 14275 |  | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14276 | fi | 
 | 14277 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_semaphores_enabled" >&5 | 
 | 14279 | $as_echo "$ac_cv_posix_semaphores_enabled" >&6; } | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14280 | if test $ac_cv_posix_semaphores_enabled = no | 
 | 14281 | then | 
 | 14282 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14283 | $as_echo "#define POSIX_SEMAPHORES_NOT_ENABLED 1" >>confdefs.h | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14284 |  | 
 | 14285 | fi | 
 | 14286 |  | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 14287 | # Multiprocessing check for broken sem_getvalue | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14288 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken sem_getvalue" >&5 | 
 | 14289 | $as_echo_n "checking for broken sem_getvalue... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14290 | if ${ac_cv_broken_sem_getvalue+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14291 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14292 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14293 |   if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14294 |   ac_cv_broken_sem_getvalue=yes | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 14295 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14296 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 14297 | /* end confdefs.h.  */ | 
 | 14298 |  | 
 | 14299 | #include <unistd.h> | 
 | 14300 | #include <fcntl.h> | 
 | 14301 | #include <stdio.h> | 
 | 14302 | #include <semaphore.h> | 
 | 14303 | #include <sys/stat.h> | 
 | 14304 |  | 
 | 14305 | int main(void){ | 
| Mark Dickinson | ba79b35 | 2009-12-13 21:10:57 +0000 | [diff] [blame] | 14306 |   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] | 14307 |   int count; | 
 | 14308 |   int res; | 
 | 14309 |   if(a==SEM_FAILED){ | 
 | 14310 |     perror("sem_open"); | 
 | 14311 |     return 1; | 
 | 14312 |  | 
 | 14313 |   } | 
 | 14314 |   res = sem_getvalue(a, &count); | 
 | 14315 |   sem_close(a); | 
| Mark Dickinson | ba79b35 | 2009-12-13 21:10:57 +0000 | [diff] [blame] | 14316 |   sem_unlink("/autocftw"); | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 14317 |   return res==-1 ? 1 : 0; | 
 | 14318 | } | 
 | 14319 |  | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 14320 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14321 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14322 |   ac_cv_broken_sem_getvalue=no | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 14323 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14324 |   ac_cv_broken_sem_getvalue=yes | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 14325 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14326 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 14327 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 14328 | fi | 
 | 14329 |  | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 14330 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14331 | fi | 
 | 14332 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_sem_getvalue" >&5 | 
 | 14334 | $as_echo "$ac_cv_broken_sem_getvalue" >&6; } | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14335 | if test $ac_cv_broken_sem_getvalue = yes | 
 | 14336 | then | 
 | 14337 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14338 | $as_echo "#define HAVE_BROKEN_SEM_GETVALUE 1" >>confdefs.h | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14339 |  | 
 | 14340 | fi | 
 | 14341 |  | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 14342 | # determine what size digit to use for Python's longs | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14343 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking digit size for Python's longs" >&5 | 
 | 14344 | $as_echo_n "checking digit size for Python's longs... " >&6; } | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 14345 | # Check whether --enable-big-digits was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14346 | if test "${enable_big_digits+set}" = set; then : | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 14347 |   enableval=$enable_big_digits; case $enable_big_digits in | 
 | 14348 | yes) | 
 | 14349 |   enable_big_digits=30 ;; | 
 | 14350 | no) | 
 | 14351 |   enable_big_digits=15 ;; | 
 | 14352 | 15|30) | 
 | 14353 |   ;; | 
 | 14354 | *) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14355 |   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] | 14356 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14357 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_big_digits" >&5 | 
 | 14358 | $as_echo "$enable_big_digits" >&6; } | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 14359 |  | 
 | 14360 | cat >>confdefs.h <<_ACEOF | 
 | 14361 | #define PYLONG_BITS_IN_DIGIT $enable_big_digits | 
 | 14362 | _ACEOF | 
 | 14363 |  | 
 | 14364 |  | 
 | 14365 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14366 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5 | 
 | 14367 | $as_echo "no value specified" >&6; } | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 14368 | fi | 
 | 14369 |  | 
 | 14370 |  | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14371 | # check for wchar.h | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14372 | 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] | 14373 | if test "x$ac_cv_header_wchar_h" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14374 |  | 
 | 14375 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14376 | $as_echo "#define HAVE_WCHAR_H 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14377 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 14378 |   wchar_h="yes" | 
 | 14379 |  | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14380 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14381 |   wchar_h="no" | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14382 |  | 
 | 14383 | fi | 
 | 14384 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14385 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14386 |  | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14387 | # determine wchar_t size | 
 | 14388 | if test "$wchar_h" = yes | 
 | 14389 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14390 |   # 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] | 14391 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 14392 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 14393 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14394 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5 | 
 | 14395 | $as_echo_n "checking size of wchar_t... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14396 | if ${ac_cv_sizeof_wchar_t+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14397 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14398 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14399 |   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t"        "#include <wchar.h> | 
 | 14400 | "; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14401 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14402 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14403 |   if test "$ac_cv_type_wchar_t" = yes; then | 
 | 14404 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 14405 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 14406 | as_fn_error 77 "cannot compute sizeof (wchar_t) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14407 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14408 |    else | 
 | 14409 |      ac_cv_sizeof_wchar_t=0 | 
 | 14410 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14411 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14412 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14413 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5 | 
 | 14415 | $as_echo "$ac_cv_sizeof_wchar_t" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14416 |  | 
 | 14417 |  | 
 | 14418 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14419 | cat >>confdefs.h <<_ACEOF | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14420 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14421 | _ACEOF | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14422 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14423 |  | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14424 | fi | 
 | 14425 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14426 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UCS-4 tcl" >&5 | 
 | 14427 | $as_echo_n "checking for UCS-4 tcl... " >&6; } | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 14428 | have_ucs4_tcl=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14429 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14430 | /* end confdefs.h.  */ | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 14431 |  | 
 | 14432 | #include <tcl.h> | 
 | 14433 | #if TCL_UTF_MAX != 6 | 
 | 14434 | # error "NOT UCS4_TCL" | 
 | 14435 | #endif | 
 | 14436 | int | 
 | 14437 | main () | 
 | 14438 | { | 
 | 14439 |  | 
 | 14440 |   ; | 
 | 14441 |   return 0; | 
 | 14442 | } | 
 | 14443 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14444 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 14445 |  | 
 | 14446 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14447 | $as_echo "#define HAVE_UCS4_TCL 1" >>confdefs.h | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 14448 |  | 
 | 14449 |   have_ucs4_tcl=yes | 
 | 14450 |  | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 14451 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14452 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ucs4_tcl" >&5 | 
 | 14454 | $as_echo "$have_ucs4_tcl" >&6; } | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 14455 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14456 | # check whether wchar_t is signed or not | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14457 | if test "$wchar_h" = yes | 
 | 14458 | then | 
 | 14459 |   # check whether wchar_t is signed or not | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14460 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wchar_t is signed" >&5 | 
 | 14461 | $as_echo_n "checking whether wchar_t is signed... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14462 |   if ${ac_cv_wchar_t_signed+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14463 |   $as_echo_n "(cached) " >&6 | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14464 | else | 
 | 14465 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14466 |   if test "$cross_compiling" = yes; then : | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14467 |   ac_cv_wchar_t_signed=yes | 
 | 14468 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14469 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14470 | /* end confdefs.h.  */ | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14471 |  | 
 | 14472 |   #include <wchar.h> | 
 | 14473 |   int main() | 
 | 14474 |   { | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 14475 | 	/* Success: exit code 0 */ | 
 | 14476 |         exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1); | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14477 |   } | 
 | 14478 |  | 
 | 14479 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14480 | if ac_fn_c_try_run "$LINENO"; then : | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14481 |   ac_cv_wchar_t_signed=yes | 
 | 14482 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14483 |   ac_cv_wchar_t_signed=no | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14484 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14485 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 14486 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14487 | fi | 
 | 14488 |  | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14489 | fi | 
 | 14490 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14491 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_wchar_t_signed" >&5 | 
 | 14492 | $as_echo "$ac_cv_wchar_t_signed" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14493 | fi | 
 | 14494 |  | 
| Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 14495 | # 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] | 14496 | if test "$ac_cv_sizeof_wchar_t" -ge 2 \ | 
| Matthias Klose | 7dbeed7 | 2004-12-24 08:22:17 +0000 | [diff] [blame] | 14497 |           -a "$ac_cv_wchar_t_signed" = "no" | 
| Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 14498 | then | 
| Martin v. Löwis | d63a3b8 | 2011-09-28 07:41:54 +0200 | [diff] [blame] | 14499 |   HAVE_USABLE_WCHAR_T="yes" | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14500 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14501 | $as_echo "#define HAVE_USABLE_WCHAR_T 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14502 |  | 
| Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 14503 | else | 
| Martin v. Löwis | d63a3b8 | 2011-09-28 07:41:54 +0200 | [diff] [blame] | 14504 |   HAVE_USABLE_WCHAR_T="no usable wchar_t found" | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14505 | fi | 
| Martin v. Löwis | d63a3b8 | 2011-09-28 07:41:54 +0200 | [diff] [blame] | 14506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_USABLE_WCHAR_T" >&5 | 
 | 14507 | $as_echo "$HAVE_USABLE_WCHAR_T" >&6; } | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14508 |  | 
 | 14509 | # check for endianness | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14510 |  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 | 
 | 14511 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14512 | if ${ac_cv_c_bigendian+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14513 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14514 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14515 |   ac_cv_c_bigendian=unknown | 
 | 14516 |     # See if we're dealing with a universal compiler. | 
 | 14517 |     cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 14518 | /* end confdefs.h.  */ | 
 | 14519 | #ifndef __APPLE_CC__ | 
 | 14520 | 	       not a universal capable compiler | 
 | 14521 | 	     #endif | 
 | 14522 | 	     typedef int dummy; | 
 | 14523 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14524 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14525 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 14526 |  | 
 | 14527 | 	# Check for potential -arch flags.  It is not universal unless | 
 | 14528 | 	# there are at least two -arch flags with different values. | 
 | 14529 | 	ac_arch= | 
 | 14530 | 	ac_prev= | 
 | 14531 | 	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | 
 | 14532 | 	 if test -n "$ac_prev"; then | 
 | 14533 | 	   case $ac_word in | 
 | 14534 | 	     i?86 | x86_64 | ppc | ppc64) | 
 | 14535 | 	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | 
 | 14536 | 		 ac_arch=$ac_word | 
 | 14537 | 	       else | 
 | 14538 | 		 ac_cv_c_bigendian=universal | 
 | 14539 | 		 break | 
 | 14540 | 	       fi | 
 | 14541 | 	       ;; | 
 | 14542 | 	   esac | 
 | 14543 | 	   ac_prev= | 
 | 14544 | 	 elif test "x$ac_word" = "x-arch"; then | 
 | 14545 | 	   ac_prev=arch | 
 | 14546 | 	 fi | 
 | 14547 |        done | 
 | 14548 | fi | 
 | 14549 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 14550 |     if test $ac_cv_c_bigendian = unknown; then | 
 | 14551 |       # See if sys/param.h defines the BYTE_ORDER macro. | 
 | 14552 |       cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14553 | /* end confdefs.h.  */ | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14554 | #include <sys/types.h> | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14555 | 	     #include <sys/param.h> | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14556 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14557 | int | 
 | 14558 | main () | 
 | 14559 | { | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14560 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ | 
 | 14561 | 		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | 
 | 14562 | 		     && LITTLE_ENDIAN) | 
 | 14563 | 	      bogus endian macros | 
 | 14564 | 	     #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14565 |  | 
 | 14566 |   ; | 
 | 14567 |   return 0; | 
 | 14568 | } | 
 | 14569 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14570 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14571 |   # It does; now see whether it defined to BIG_ENDIAN or not. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14572 | 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14573 | /* end confdefs.h.  */ | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14574 | #include <sys/types.h> | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14575 | 		#include <sys/param.h> | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14576 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14577 | int | 
 | 14578 | main () | 
 | 14579 | { | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14580 | #if BYTE_ORDER != BIG_ENDIAN | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14581 | 		 not big endian | 
 | 14582 | 		#endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14583 |  | 
 | 14584 |   ; | 
 | 14585 |   return 0; | 
 | 14586 | } | 
 | 14587 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14588 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14589 |   ac_cv_c_bigendian=yes | 
 | 14590 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14591 |   ac_cv_c_bigendian=no | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14592 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14593 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14594 | fi | 
 | 14595 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 14596 |     fi | 
 | 14597 |     if test $ac_cv_c_bigendian = unknown; then | 
 | 14598 |       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | 
 | 14599 |       cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14600 | /* end confdefs.h.  */ | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14601 | #include <limits.h> | 
 | 14602 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14603 | int | 
 | 14604 | main () | 
 | 14605 | { | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14606 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | 
 | 14607 | 	      bogus endian macros | 
 | 14608 | 	     #endif | 
 | 14609 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14610 |   ; | 
 | 14611 |   return 0; | 
 | 14612 | } | 
 | 14613 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14614 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 14615 |   # It does; now see whether it defined to _BIG_ENDIAN or not. | 
 | 14616 | 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 14617 | /* end confdefs.h.  */ | 
 | 14618 | #include <limits.h> | 
 | 14619 |  | 
 | 14620 | int | 
 | 14621 | main () | 
 | 14622 | { | 
 | 14623 | #ifndef _BIG_ENDIAN | 
 | 14624 | 		 not big endian | 
 | 14625 | 		#endif | 
 | 14626 |  | 
 | 14627 |   ; | 
 | 14628 |   return 0; | 
 | 14629 | } | 
 | 14630 | _ACEOF | 
 | 14631 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14632 |   ac_cv_c_bigendian=yes | 
| Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 14633 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14634 |   ac_cv_c_bigendian=no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14635 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14636 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 14637 | fi | 
 | 14638 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 14639 |     fi | 
 | 14640 |     if test $ac_cv_c_bigendian = unknown; then | 
 | 14641 |       # Compile a test program. | 
 | 14642 |       if test "$cross_compiling" = yes; then : | 
 | 14643 |   # Try to guess by grepping values from an object file. | 
 | 14644 | 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 14645 | /* end confdefs.h.  */ | 
 | 14646 | short int ascii_mm[] = | 
 | 14647 | 		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | 
 | 14648 | 		short int ascii_ii[] = | 
 | 14649 | 		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | 
 | 14650 | 		int use_ascii (int i) { | 
 | 14651 | 		  return ascii_mm[i] + ascii_ii[i]; | 
 | 14652 | 		} | 
 | 14653 | 		short int ebcdic_ii[] = | 
 | 14654 | 		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | 
 | 14655 | 		short int ebcdic_mm[] = | 
 | 14656 | 		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | 
 | 14657 | 		int use_ebcdic (int i) { | 
 | 14658 | 		  return ebcdic_mm[i] + ebcdic_ii[i]; | 
 | 14659 | 		} | 
 | 14660 | 		extern int foo; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14661 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14662 | int | 
 | 14663 | main () | 
 | 14664 | { | 
 | 14665 | return use_ascii (foo) == use_ebcdic (foo); | 
 | 14666 |   ; | 
 | 14667 |   return 0; | 
 | 14668 | } | 
 | 14669 | _ACEOF | 
 | 14670 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 14671 |   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | 
 | 14672 | 	      ac_cv_c_bigendian=yes | 
 | 14673 | 	    fi | 
 | 14674 | 	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | 
 | 14675 | 	      if test "$ac_cv_c_bigendian" = unknown; then | 
 | 14676 | 		ac_cv_c_bigendian=no | 
 | 14677 | 	      else | 
 | 14678 | 		# finding both strings is unlikely to happen, but who knows? | 
 | 14679 | 		ac_cv_c_bigendian=unknown | 
 | 14680 | 	      fi | 
 | 14681 | 	    fi | 
 | 14682 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14683 | 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] | 14684 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14685 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14686 | /* end confdefs.h.  */ | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14687 | $ac_includes_default | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14688 | int | 
 | 14689 | main () | 
 | 14690 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14691 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14692 | 	     /* Are we little or big endian?  From Harbison&Steele.  */ | 
 | 14693 | 	     union | 
 | 14694 | 	     { | 
 | 14695 | 	       long int l; | 
 | 14696 | 	       char c[sizeof (long int)]; | 
 | 14697 | 	     } u; | 
 | 14698 | 	     u.l = 1; | 
 | 14699 | 	     return u.c[sizeof (long int) - 1] == 1; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14700 |  | 
 | 14701 |   ; | 
 | 14702 |   return 0; | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14703 | } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14704 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14705 | if ac_fn_c_try_run "$LINENO"; then : | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14706 |   ac_cv_c_bigendian=no | 
 | 14707 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14708 |   ac_cv_c_bigendian=yes | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14709 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14710 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 14711 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14712 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14713 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14714 |     fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14715 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 | 
 | 14717 | $as_echo "$ac_cv_c_bigendian" >&6; } | 
 | 14718 |  case $ac_cv_c_bigendian in #( | 
 | 14719 |    yes) | 
 | 14720 |      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | 
 | 14721 | ;; #( | 
 | 14722 |    no) | 
 | 14723 |       ;; #( | 
 | 14724 |    universal) | 
| Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 14725 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14726 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h | 
| Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 14727 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14728 |      ;; #( | 
 | 14729 |    *) | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 14730 |      as_fn_error $? "unknown endianness | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14731 |  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14732 |  esac | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14733 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14734 |  | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 14735 | # ABI version string for Python extension modules.  This appears between the | 
 | 14736 | # periods in shared library file names, e.g. foo.<SOABI>.so.  It is calculated | 
 | 14737 | # from the following attributes which affect the ABI of this Python build (in | 
 | 14738 | # this order): | 
 | 14739 | # | 
 | 14740 | # * The Python implementation (always 'cpython-' for us) | 
 | 14741 | # * The major and minor version numbers | 
 | 14742 | # * --with-pydebug (adds a 'd') | 
 | 14743 | # * --with-pymalloc (adds a 'm') | 
 | 14744 | # * --with-wide-unicode (adds a 'u') | 
 | 14745 | # | 
 | 14746 | # 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] | 14747 | # would get a shared library ABI version tag of 'cpython-32dmu' and shared | 
 | 14748 | # libraries would be named 'foo.cpython-32dmu.so'. | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 14749 |  | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 14750 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking ABIFLAGS" >&5 | 
 | 14751 | $as_echo_n "checking ABIFLAGS... " >&6; } | 
 | 14752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ABIFLAGS" >&5 | 
 | 14753 | $as_echo "$ABIFLAGS" >&6; } | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 14754 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking SOABI" >&5 | 
 | 14755 | $as_echo_n "checking SOABI... " >&6; } | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 14756 | SOABI='cpython-'`echo $VERSION | tr -d .`${ABIFLAGS}${PLATFORM_TRIPLET:+-$PLATFORM_TRIPLET} | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 14757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SOABI" >&5 | 
 | 14758 | $as_echo "$SOABI" >&6; } | 
 | 14759 |  | 
| doko@ubuntu.com | d5537d0 | 2013-03-21 13:21:49 -0700 | [diff] [blame] | 14760 |  | 
 | 14761 | case $ac_sys_system in | 
| Ned Deily | 3b81248 | 2015-04-15 17:11:47 -0700 | [diff] [blame] | 14762 |     Linux*|GNU*|Darwin) | 
| doko@ubuntu.com | d5537d0 | 2013-03-21 13:21:49 -0700 | [diff] [blame] | 14763 | 	EXT_SUFFIX=.${SOABI}${SHLIB_SUFFIX};; | 
 | 14764 |     *) | 
 | 14765 | 	EXT_SUFFIX=${SHLIB_SUFFIX};; | 
 | 14766 | esac | 
 | 14767 |  | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 14768 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDVERSION" >&5 | 
 | 14769 | $as_echo_n "checking LDVERSION... " >&6; } | 
 | 14770 | LDVERSION='$(VERSION)$(ABIFLAGS)' | 
 | 14771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDVERSION" >&5 | 
 | 14772 | $as_echo "$LDVERSION" >&6; } | 
 | 14773 |  | 
| doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 14774 |  | 
| doko@ubuntu.com | e8042e5 | 2015-05-06 01:13:02 +0200 | [diff] [blame] | 14775 | LIBPL='$(prefix)'"/lib/python${VERSION}/config-${LDVERSION}" | 
| doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 14776 |  | 
 | 14777 |  | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 14778 | # Check whether right shifting a negative integer extends the sign bit | 
 | 14779 | # or fills with zeros (like the Cray J90, according to Tim Peters). | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14780 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether right shift extends the sign bit" >&5 | 
 | 14781 | $as_echo_n "checking whether right shift extends the sign bit... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14782 | if ${ac_cv_rshift_extends_sign+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14783 |   $as_echo_n "(cached) " >&6 | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 14784 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14785 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14786 | if test "$cross_compiling" = yes; then : | 
| Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 14787 |   ac_cv_rshift_extends_sign=yes | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 14788 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14789 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14790 | /* end confdefs.h.  */ | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 14791 |  | 
 | 14792 | int main() | 
 | 14793 | { | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 14794 | 	exit(((-1)>>3 == -1) ? 0 : 1); | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 14795 | } | 
 | 14796 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14797 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14798 | if ac_fn_c_try_run "$LINENO"; then : | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 14799 |   ac_cv_rshift_extends_sign=yes | 
 | 14800 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14801 |   ac_cv_rshift_extends_sign=no | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 14802 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14803 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 14804 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 14805 | fi | 
 | 14806 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14807 | fi | 
 | 14808 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rshift_extends_sign" >&5 | 
 | 14810 | $as_echo "$ac_cv_rshift_extends_sign" >&6; } | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 14811 | if test "$ac_cv_rshift_extends_sign" = no | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 14812 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14813 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14814 | $as_echo "#define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1" >>confdefs.h | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 14815 |  | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 14816 | fi | 
 | 14817 |  | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 14818 | # check for getc_unlocked and related locking functions | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14819 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getc_unlocked() and friends" >&5 | 
 | 14820 | $as_echo_n "checking for getc_unlocked() and friends... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14821 | if ${ac_cv_have_getc_unlocked+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14822 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 14823 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14824 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14825 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14826 | /* end confdefs.h.  */ | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 14827 | #include <stdio.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14828 | int | 
 | 14829 | main () | 
 | 14830 | { | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 14831 |  | 
 | 14832 | 	FILE *f = fopen("/dev/null", "r"); | 
 | 14833 | 	flockfile(f); | 
 | 14834 | 	getc_unlocked(f); | 
 | 14835 | 	funlockfile(f); | 
 | 14836 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14837 |   ; | 
 | 14838 |   return 0; | 
 | 14839 | } | 
 | 14840 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14841 | if ac_fn_c_try_link "$LINENO"; then : | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 14842 |   ac_cv_have_getc_unlocked=yes | 
 | 14843 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14844 |   ac_cv_have_getc_unlocked=no | 
 | 14845 | fi | 
 | 14846 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 14847 |     conftest$ac_exeext conftest.$ac_ext | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 14848 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14849 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getc_unlocked" >&5 | 
 | 14851 | $as_echo "$ac_cv_have_getc_unlocked" >&6; } | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 14852 | if test "$ac_cv_have_getc_unlocked" = yes | 
 | 14853 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14854 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14855 | $as_echo "#define HAVE_GETC_UNLOCKED 1" >>confdefs.h | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 14856 |  | 
 | 14857 | fi | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 14858 |  | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 14859 | # check where readline lives | 
| Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 14860 | # save the value of LIBS so we don't actually link Python with readline | 
 | 14861 | LIBS_no_readline=$LIBS | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 14862 |  | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 14863 | # On some systems we need to link readline to a termcap compatible | 
 | 14864 | # library.  NOTE: Keep the precedence of listed libraries synchronised | 
 | 14865 | # with setup.py. | 
 | 14866 | py_cv_lib_readline=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14867 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link readline libs" >&5 | 
 | 14868 | $as_echo_n "checking how to link readline libs... " >&6; } | 
| doko@ubuntu.com | f2967c7 | 2012-06-30 17:32:23 +0200 | [diff] [blame] | 14869 | for py_libtermcap in "" tinfo ncursesw ncurses curses termcap; do | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 14870 |   if test -z "$py_libtermcap"; then | 
 | 14871 |     READLINE_LIBS="-lreadline" | 
 | 14872 |   else | 
 | 14873 |     READLINE_LIBS="-lreadline -l$py_libtermcap" | 
 | 14874 |   fi | 
 | 14875 |   LIBS="$READLINE_LIBS $LIBS_no_readline" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14876 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 14877 | /* end confdefs.h.  */ | 
 | 14878 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14879 | /* Override any GCC internal prototype to avoid an error. | 
 | 14880 |    Use char because int might match the return type of a GCC | 
 | 14881 |    builtin and then its argument prototype would still apply.  */ | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 14882 | #ifdef __cplusplus | 
 | 14883 | extern "C" | 
 | 14884 | #endif | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 14885 | char readline (); | 
 | 14886 | int | 
 | 14887 | main () | 
 | 14888 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14889 | return readline (); | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 14890 |   ; | 
 | 14891 |   return 0; | 
 | 14892 | } | 
 | 14893 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14894 | if ac_fn_c_try_link "$LINENO"; then : | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 14895 |   py_cv_lib_readline=yes | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 14896 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14897 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 14898 |     conftest$ac_exeext conftest.$ac_ext | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 14899 |   if test $py_cv_lib_readline = yes; then | 
 | 14900 |     break | 
 | 14901 |   fi | 
 | 14902 | done | 
 | 14903 | # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts | 
 | 14904 | #AC_SUBST([READLINE_LIBS]) | 
| Gregory P. Smith | 3856c37 | 2008-09-07 19:24:00 +0000 | [diff] [blame] | 14905 | if test $py_cv_lib_readline = no; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14906 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | 
 | 14907 | $as_echo "none" >&6; } | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 14908 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14909 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE_LIBS" >&5 | 
 | 14910 | $as_echo "$READLINE_LIBS" >&6; } | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 14911 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14912 | $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 14913 |  | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 14914 | fi | 
 | 14915 |  | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14916 | # check for readline 2.1 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14917 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_callback_handler_install in -lreadline" >&5 | 
 | 14918 | $as_echo_n "checking for rl_callback_handler_install in -lreadline... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14919 | if ${ac_cv_lib_readline_rl_callback_handler_install+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14920 |   $as_echo_n "(cached) " >&6 | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14921 | else | 
 | 14922 |   ac_check_lib_save_LIBS=$LIBS | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 14923 | LIBS="-lreadline $READLINE_LIBS $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14924 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14925 | /* end confdefs.h.  */ | 
 | 14926 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14927 | /* Override any GCC internal prototype to avoid an error. | 
 | 14928 |    Use char because int might match the return type of a GCC | 
 | 14929 |    builtin and then its argument prototype would still apply.  */ | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14930 | #ifdef __cplusplus | 
 | 14931 | extern "C" | 
 | 14932 | #endif | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14933 | char rl_callback_handler_install (); | 
 | 14934 | int | 
 | 14935 | main () | 
 | 14936 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14937 | return rl_callback_handler_install (); | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14938 |   ; | 
 | 14939 |   return 0; | 
 | 14940 | } | 
 | 14941 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14942 | if ac_fn_c_try_link "$LINENO"; then : | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14943 |   ac_cv_lib_readline_rl_callback_handler_install=yes | 
 | 14944 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14945 |   ac_cv_lib_readline_rl_callback_handler_install=no | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14946 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14947 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 14948 |     conftest$ac_exeext conftest.$ac_ext | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14949 | LIBS=$ac_check_lib_save_LIBS | 
 | 14950 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5 | 
 | 14952 | $as_echo "$ac_cv_lib_readline_rl_callback_handler_install" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14953 | 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] | 14954 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14955 | $as_echo "#define HAVE_RL_CALLBACK 1" >>confdefs.h | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14956 |  | 
 | 14957 | fi | 
 | 14958 |  | 
 | 14959 |  | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 14960 | # check for readline 2.2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14961 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14962 | /* end confdefs.h.  */ | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 14963 | #include <readline/readline.h> | 
 | 14964 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14965 | if ac_fn_c_try_cpp "$LINENO"; then : | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 14966 |   have_readline=yes | 
 | 14967 | else | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 14968 |   have_readline=no | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 14969 |  | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 14970 | fi | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 14971 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 14972 | if test $have_readline = yes | 
 | 14973 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14974 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14975 | /* end confdefs.h.  */ | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 14976 | #include <readline/readline.h> | 
 | 14977 |  | 
 | 14978 | _ACEOF | 
 | 14979 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14980 |   $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] | 14981 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14982 | $as_echo "#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1" >>confdefs.h | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 14983 |  | 
 | 14984 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 14985 | rm -f conftest* | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 14986 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14987 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Antoine Pitrou | d513177 | 2009-10-26 19:22:14 +0000 | [diff] [blame] | 14988 | /* end confdefs.h.  */ | 
 | 14989 | #include <readline/readline.h> | 
 | 14990 |  | 
 | 14991 | _ACEOF | 
 | 14992 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14993 |   $EGREP "extern int rl_completion_suppress_append;" >/dev/null 2>&1; then : | 
| Antoine Pitrou | d513177 | 2009-10-26 19:22:14 +0000 | [diff] [blame] | 14994 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14995 | $as_echo "#define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1" >>confdefs.h | 
| Antoine Pitrou | d513177 | 2009-10-26 19:22:14 +0000 | [diff] [blame] | 14996 |  | 
 | 14997 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 14998 | rm -f conftest* | 
| Antoine Pitrou | d513177 | 2009-10-26 19:22:14 +0000 | [diff] [blame] | 14999 |  | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 15000 | fi | 
 | 15001 |  | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15002 | # check for readline 4.0 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15003 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_pre_input_hook in -lreadline" >&5 | 
 | 15004 | $as_echo_n "checking for rl_pre_input_hook in -lreadline... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15005 | if ${ac_cv_lib_readline_rl_pre_input_hook+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15006 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15007 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15008 |   ac_check_lib_save_LIBS=$LIBS | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 15009 | LIBS="-lreadline $READLINE_LIBS $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15010 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15011 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15012 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15013 | /* Override any GCC internal prototype to avoid an error. | 
 | 15014 |    Use char because int might match the return type of a GCC | 
 | 15015 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15016 | #ifdef __cplusplus | 
 | 15017 | extern "C" | 
 | 15018 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15019 | char rl_pre_input_hook (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15020 | int | 
 | 15021 | main () | 
 | 15022 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15023 | return rl_pre_input_hook (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15024 |   ; | 
 | 15025 |   return 0; | 
 | 15026 | } | 
 | 15027 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15028 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15029 |   ac_cv_lib_readline_rl_pre_input_hook=yes | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15030 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15031 |   ac_cv_lib_readline_rl_pre_input_hook=no | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15032 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15033 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 15034 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15035 | LIBS=$ac_check_lib_save_LIBS | 
 | 15036 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5 | 
 | 15038 | $as_echo "$ac_cv_lib_readline_rl_pre_input_hook" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15039 | 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] | 15040 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15041 | $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] | 15042 |  | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15043 | fi | 
 | 15044 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15045 |  | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 15046 | # also in 4.0 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15047 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_display_matches_hook in -lreadline" >&5 | 
 | 15048 | $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] | 15049 | if ${ac_cv_lib_readline_rl_completion_display_matches_hook+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15050 |   $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 15051 | else | 
 | 15052 |   ac_check_lib_save_LIBS=$LIBS | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 15053 | LIBS="-lreadline $READLINE_LIBS $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15054 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 15055 | /* end confdefs.h.  */ | 
 | 15056 |  | 
 | 15057 | /* Override any GCC internal prototype to avoid an error. | 
 | 15058 |    Use char because int might match the return type of a GCC | 
 | 15059 |    builtin and then its argument prototype would still apply.  */ | 
 | 15060 | #ifdef __cplusplus | 
 | 15061 | extern "C" | 
 | 15062 | #endif | 
 | 15063 | char rl_completion_display_matches_hook (); | 
 | 15064 | int | 
 | 15065 | main () | 
 | 15066 | { | 
 | 15067 | return rl_completion_display_matches_hook (); | 
 | 15068 |   ; | 
 | 15069 |   return 0; | 
 | 15070 | } | 
 | 15071 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15072 | if ac_fn_c_try_link "$LINENO"; then : | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 15073 |   ac_cv_lib_readline_rl_completion_display_matches_hook=yes | 
 | 15074 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15075 |   ac_cv_lib_readline_rl_completion_display_matches_hook=no | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 15076 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15077 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 15078 |     conftest$ac_exeext conftest.$ac_ext | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 15079 | LIBS=$ac_check_lib_save_LIBS | 
 | 15080 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15081 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5 | 
 | 15082 | $as_echo "$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15083 | 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] | 15084 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15085 | $as_echo "#define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1" >>confdefs.h | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 15086 |  | 
 | 15087 | fi | 
 | 15088 |  | 
 | 15089 |  | 
| Martin Panter | 5dbbf1a | 2016-04-03 02:54:58 +0000 | [diff] [blame] | 15090 | # also in 4.0, but not in editline | 
 | 15091 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_resize_terminal in -lreadline" >&5 | 
 | 15092 | $as_echo_n "checking for rl_resize_terminal in -lreadline... " >&6; } | 
 | 15093 | if ${ac_cv_lib_readline_rl_resize_terminal+:} false; then : | 
 | 15094 |   $as_echo_n "(cached) " >&6 | 
 | 15095 | else | 
 | 15096 |   ac_check_lib_save_LIBS=$LIBS | 
 | 15097 | LIBS="-lreadline $READLINE_LIBS $LIBS" | 
 | 15098 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 15099 | /* end confdefs.h.  */ | 
 | 15100 |  | 
 | 15101 | /* Override any GCC internal prototype to avoid an error. | 
 | 15102 |    Use char because int might match the return type of a GCC | 
 | 15103 |    builtin and then its argument prototype would still apply.  */ | 
 | 15104 | #ifdef __cplusplus | 
 | 15105 | extern "C" | 
 | 15106 | #endif | 
 | 15107 | char rl_resize_terminal (); | 
 | 15108 | int | 
 | 15109 | main () | 
 | 15110 | { | 
 | 15111 | return rl_resize_terminal (); | 
 | 15112 |   ; | 
 | 15113 |   return 0; | 
 | 15114 | } | 
 | 15115 | _ACEOF | 
 | 15116 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 15117 |   ac_cv_lib_readline_rl_resize_terminal=yes | 
 | 15118 | else | 
 | 15119 |   ac_cv_lib_readline_rl_resize_terminal=no | 
 | 15120 | fi | 
 | 15121 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 15122 |     conftest$ac_exeext conftest.$ac_ext | 
 | 15123 | LIBS=$ac_check_lib_save_LIBS | 
 | 15124 | fi | 
 | 15125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_resize_terminal" >&5 | 
 | 15126 | $as_echo "$ac_cv_lib_readline_rl_resize_terminal" >&6; } | 
 | 15127 | if test "x$ac_cv_lib_readline_rl_resize_terminal" = xyes; then : | 
 | 15128 |  | 
 | 15129 | $as_echo "#define HAVE_RL_RESIZE_TERMINAL 1" >>confdefs.h | 
 | 15130 |  | 
 | 15131 | fi | 
 | 15132 |  | 
 | 15133 |  | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15134 | # check for readline 4.2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15135 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_matches in -lreadline" >&5 | 
 | 15136 | $as_echo_n "checking for rl_completion_matches in -lreadline... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15137 | if ${ac_cv_lib_readline_rl_completion_matches+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15138 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15139 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15140 |   ac_check_lib_save_LIBS=$LIBS | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 15141 | LIBS="-lreadline $READLINE_LIBS $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15142 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15143 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15144 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15145 | /* Override any GCC internal prototype to avoid an error. | 
 | 15146 |    Use char because int might match the return type of a GCC | 
 | 15147 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15148 | #ifdef __cplusplus | 
 | 15149 | extern "C" | 
 | 15150 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15151 | char rl_completion_matches (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15152 | int | 
 | 15153 | main () | 
 | 15154 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15155 | return rl_completion_matches (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15156 |   ; | 
 | 15157 |   return 0; | 
 | 15158 | } | 
 | 15159 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15160 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15161 |   ac_cv_lib_readline_rl_completion_matches=yes | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15162 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15163 |   ac_cv_lib_readline_rl_completion_matches=no | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15164 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15165 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 15166 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15167 | LIBS=$ac_check_lib_save_LIBS | 
 | 15168 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_matches" >&5 | 
 | 15170 | $as_echo "$ac_cv_lib_readline_rl_completion_matches" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15171 | 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] | 15172 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15173 | $as_echo "#define HAVE_RL_COMPLETION_MATCHES 1" >>confdefs.h | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15174 |  | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15175 | fi | 
 | 15176 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 15177 |  | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15178 | # also in readline 4.2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15179 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15180 | /* end confdefs.h.  */ | 
 | 15181 | #include <readline/readline.h> | 
 | 15182 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15183 | if ac_fn_c_try_cpp "$LINENO"; then : | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15184 |   have_readline=yes | 
 | 15185 | else | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15186 |   have_readline=no | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 15187 |  | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15188 | fi | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 15189 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15190 | if test $have_readline = yes | 
 | 15191 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15192 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15193 | /* end confdefs.h.  */ | 
 | 15194 | #include <readline/readline.h> | 
 | 15195 |  | 
 | 15196 | _ACEOF | 
 | 15197 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15198 |   $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then : | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15199 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15200 | $as_echo "#define HAVE_RL_CATCH_SIGNAL 1" >>confdefs.h | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15201 |  | 
 | 15202 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 15203 | rm -f conftest* | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15204 |  | 
 | 15205 | fi | 
 | 15206 |  | 
| Benjamin Peterson | d1e22ba | 2014-11-26 14:35:12 -0600 | [diff] [blame] | 15207 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for append_history in -lreadline" >&5 | 
 | 15208 | $as_echo_n "checking for append_history in -lreadline... " >&6; } | 
 | 15209 | if ${ac_cv_lib_readline_append_history+:} false; then : | 
 | 15210 |   $as_echo_n "(cached) " >&6 | 
 | 15211 | else | 
 | 15212 |   ac_check_lib_save_LIBS=$LIBS | 
 | 15213 | LIBS="-lreadline $READLINE_LIBS $LIBS" | 
 | 15214 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 15215 | /* end confdefs.h.  */ | 
 | 15216 |  | 
 | 15217 | /* Override any GCC internal prototype to avoid an error. | 
 | 15218 |    Use char because int might match the return type of a GCC | 
 | 15219 |    builtin and then its argument prototype would still apply.  */ | 
 | 15220 | #ifdef __cplusplus | 
 | 15221 | extern "C" | 
 | 15222 | #endif | 
 | 15223 | char append_history (); | 
 | 15224 | int | 
 | 15225 | main () | 
 | 15226 | { | 
 | 15227 | return append_history (); | 
 | 15228 |   ; | 
 | 15229 |   return 0; | 
 | 15230 | } | 
 | 15231 | _ACEOF | 
 | 15232 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 15233 |   ac_cv_lib_readline_append_history=yes | 
 | 15234 | else | 
 | 15235 |   ac_cv_lib_readline_append_history=no | 
 | 15236 | fi | 
 | 15237 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 15238 |     conftest$ac_exeext conftest.$ac_ext | 
 | 15239 | LIBS=$ac_check_lib_save_LIBS | 
 | 15240 | fi | 
 | 15241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_append_history" >&5 | 
 | 15242 | $as_echo "$ac_cv_lib_readline_append_history" >&6; } | 
 | 15243 | if test "x$ac_cv_lib_readline_append_history" = xyes; then : | 
 | 15244 |  | 
 | 15245 | $as_echo "#define HAVE_RL_APPEND_HISTORY 1" >>confdefs.h | 
 | 15246 |  | 
 | 15247 | fi | 
 | 15248 |  | 
 | 15249 |  | 
| Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 15250 | # End of readline checks: restore LIBS | 
 | 15251 | LIBS=$LIBS_no_readline | 
 | 15252 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15253 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken nice()" >&5 | 
 | 15254 | $as_echo_n "checking for broken nice()... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15255 | if ${ac_cv_broken_nice+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15256 |   $as_echo_n "(cached) " >&6 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15257 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15258 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15259 | if test "$cross_compiling" = yes; then : | 
| Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 15260 |   ac_cv_broken_nice=no | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15261 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15262 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15263 | /* end confdefs.h.  */ | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15264 |  | 
 | 15265 | int main() | 
 | 15266 | { | 
 | 15267 | 	int val1 = nice(1); | 
 | 15268 | 	if (val1 != -1 && val1 == nice(2)) | 
 | 15269 | 		exit(0); | 
 | 15270 | 	exit(1); | 
 | 15271 | } | 
 | 15272 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15273 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15274 | if ac_fn_c_try_run "$LINENO"; then : | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15275 |   ac_cv_broken_nice=yes | 
 | 15276 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15277 |   ac_cv_broken_nice=no | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15278 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15279 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 15280 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15281 | fi | 
 | 15282 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15283 | fi | 
 | 15284 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_nice" >&5 | 
 | 15286 | $as_echo "$ac_cv_broken_nice" >&6; } | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15287 | if test "$ac_cv_broken_nice" = yes | 
 | 15288 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15289 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15290 | $as_echo "#define HAVE_BROKEN_NICE 1" >>confdefs.h | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15291 |  | 
 | 15292 | fi | 
 | 15293 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15294 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken poll()" >&5 | 
 | 15295 | $as_echo_n "checking for broken poll()... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15296 | if ${ac_cv_broken_poll+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15297 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15298 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15299 |   if test "$cross_compiling" = yes; then : | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15300 |   ac_cv_broken_poll=no | 
 | 15301 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15302 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15303 | /* end confdefs.h.  */ | 
 | 15304 |  | 
 | 15305 | #include <poll.h> | 
 | 15306 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15307 | int main() | 
 | 15308 | { | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15309 |     struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 }; | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15310 |     int poll_test; | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15311 |  | 
 | 15312 |     close (42); | 
 | 15313 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15314 |     poll_test = poll(&poll_struct, 1, 0); | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15315 |     if (poll_test < 0) | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15316 |         return 0; | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15317 |     else if (poll_test == 0 && poll_struct.revents != POLLNVAL) | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15318 |         return 0; | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15319 |     else | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15320 |         return 1; | 
 | 15321 | } | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15322 |  | 
 | 15323 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15324 | if ac_fn_c_try_run "$LINENO"; then : | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15325 |   ac_cv_broken_poll=yes | 
 | 15326 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15327 |   ac_cv_broken_poll=no | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15328 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15329 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 15330 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15331 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15332 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15333 | fi | 
 | 15334 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_poll" >&5 | 
 | 15336 | $as_echo "$ac_cv_broken_poll" >&6; } | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15337 | if test "$ac_cv_broken_poll" = yes | 
 | 15338 | then | 
 | 15339 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15340 | $as_echo "#define HAVE_BROKEN_POLL 1" >>confdefs.h | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15341 |  | 
 | 15342 | fi | 
 | 15343 |  | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15344 | # 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] | 15345 | # (which is not required by ISO C or UNIX spec) and/or if we support | 
 | 15346 | # tzname[] | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15347 | 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] | 15348 | #include <$ac_cv_struct_tm> | 
 | 15349 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15350 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15351 | if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then : | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15352 |  | 
 | 15353 | cat >>confdefs.h <<_ACEOF | 
 | 15354 | #define HAVE_STRUCT_TM_TM_ZONE 1 | 
 | 15355 | _ACEOF | 
 | 15356 |  | 
 | 15357 |  | 
 | 15358 | fi | 
 | 15359 |  | 
 | 15360 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then | 
 | 15361 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15362 | $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15363 |  | 
 | 15364 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15365 |   ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> | 
 | 15366 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15367 | if test "x$ac_cv_have_decl_tzname" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15368 |   ac_have_decl=1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15369 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15370 |   ac_have_decl=0 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15371 | fi | 
 | 15372 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15373 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15374 | #define HAVE_DECL_TZNAME $ac_have_decl | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15375 | _ACEOF | 
 | 15376 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15377 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 | 
 | 15378 | $as_echo_n "checking for tzname... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15379 | if ${ac_cv_var_tzname+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15380 |   $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15381 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15382 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15383 | /* end confdefs.h.  */ | 
 | 15384 | #include <time.h> | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15385 | #if !HAVE_DECL_TZNAME | 
 | 15386 | extern char *tzname[]; | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15387 | #endif | 
 | 15388 |  | 
 | 15389 | int | 
 | 15390 | main () | 
 | 15391 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15392 | return tzname[0][0]; | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15393 |   ; | 
 | 15394 |   return 0; | 
 | 15395 | } | 
 | 15396 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15397 | if ac_fn_c_try_link "$LINENO"; then : | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15398 |   ac_cv_var_tzname=yes | 
 | 15399 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15400 |   ac_cv_var_tzname=no | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15401 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15402 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 15403 |     conftest$ac_exeext conftest.$ac_ext | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15404 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 | 
 | 15406 | $as_echo "$ac_cv_var_tzname" >&6; } | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15407 |   if test $ac_cv_var_tzname = yes; then | 
 | 15408 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15409 | $as_echo "#define HAVE_TZNAME 1" >>confdefs.h | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15410 |  | 
 | 15411 |   fi | 
 | 15412 | fi | 
 | 15413 |  | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15414 |  | 
| Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 15415 | # check tzset(3) exists and works like we expect it to | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15416 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working tzset()" >&5 | 
 | 15417 | $as_echo_n "checking for working tzset()... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15418 | if ${ac_cv_working_tzset+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15419 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15420 | else | 
 | 15421 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15422 | if test "$cross_compiling" = yes; then : | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15423 |   ac_cv_working_tzset=no | 
 | 15424 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15425 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15426 | /* end confdefs.h.  */ | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15427 |  | 
 | 15428 | #include <stdlib.h> | 
 | 15429 | #include <time.h> | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15430 | #include <string.h> | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15431 |  | 
 | 15432 | #if HAVE_TZNAME | 
 | 15433 | extern char *tzname[]; | 
 | 15434 | #endif | 
 | 15435 |  | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15436 | int main() | 
 | 15437 | { | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15438 | 	/* Note that we need to ensure that not only does tzset(3) | 
 | 15439 | 	   do 'something' with localtime, but it works as documented | 
 | 15440 | 	   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] | 15441 | 	   This includes making sure that tzname is set properly if | 
 | 15442 | 	   tm->tm_zone does not exist since it is the alternative way | 
 | 15443 | 	   of getting timezone info. | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15444 |  | 
 | 15445 | 	   Red Hat 6.2 doesn't understand the southern hemisphere | 
| Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 15446 | 	   after New Year's Day. | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15447 | 	*/ | 
 | 15448 |  | 
| Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 15449 | 	time_t groundhogday = 1044144000; /* GMT-based */ | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15450 | 	time_t midyear = groundhogday + (365 * 24 * 3600 / 2); | 
 | 15451 |  | 
| Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 15452 | 	putenv("TZ=UTC+0"); | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15453 | 	tzset(); | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15454 | 	if (localtime(&groundhogday)->tm_hour != 0) | 
 | 15455 | 	    exit(1); | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15456 | #if HAVE_TZNAME | 
 | 15457 | 	/* For UTC, tzname[1] is sometimes "", sometimes "   " */ | 
 | 15458 | 	if (strcmp(tzname[0], "UTC") || | 
 | 15459 | 		(tzname[1][0] != 0 && tzname[1][0] != ' ')) | 
 | 15460 | 	    exit(1); | 
 | 15461 | #endif | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15462 |  | 
| Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 15463 | 	putenv("TZ=EST+5EDT,M4.1.0,M10.5.0"); | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15464 | 	tzset(); | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15465 | 	if (localtime(&groundhogday)->tm_hour != 19) | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15466 | 	    exit(1); | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15467 | #if HAVE_TZNAME | 
 | 15468 | 	if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT")) | 
 | 15469 | 	    exit(1); | 
 | 15470 | #endif | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15471 |  | 
 | 15472 | 	putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0"); | 
 | 15473 | 	tzset(); | 
 | 15474 | 	if (localtime(&groundhogday)->tm_hour != 11) | 
 | 15475 | 	    exit(1); | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15476 | #if HAVE_TZNAME | 
 | 15477 | 	if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT")) | 
 | 15478 | 	    exit(1); | 
 | 15479 | #endif | 
 | 15480 |  | 
 | 15481 | #if HAVE_STRUCT_TM_TM_ZONE | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15482 | 	if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT")) | 
 | 15483 | 	    exit(1); | 
 | 15484 | 	if (strcmp(localtime(&midyear)->tm_zone, "AEST")) | 
 | 15485 | 	    exit(1); | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15486 | #endif | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15487 |  | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15488 | 	exit(0); | 
 | 15489 | } | 
 | 15490 |  | 
 | 15491 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15492 | if ac_fn_c_try_run "$LINENO"; then : | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15493 |   ac_cv_working_tzset=yes | 
 | 15494 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15495 |   ac_cv_working_tzset=no | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15496 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15497 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 15498 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15499 | fi | 
 | 15500 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15501 | fi | 
 | 15502 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_tzset" >&5 | 
 | 15504 | $as_echo "$ac_cv_working_tzset" >&6; } | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15505 | if test "$ac_cv_working_tzset" = yes | 
 | 15506 | then | 
 | 15507 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15508 | $as_echo "#define HAVE_WORKING_TZSET 1" >>confdefs.h | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15509 |  | 
 | 15510 | fi | 
 | 15511 |  | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15512 | # Look for subsecond timestamps in struct stat | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15513 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec in struct stat" >&5 | 
 | 15514 | $as_echo_n "checking for tv_nsec in struct stat... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15515 | if ${ac_cv_stat_tv_nsec+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15516 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15517 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15518 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15519 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15520 | #include <sys/stat.h> | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15521 | int | 
 | 15522 | main () | 
 | 15523 | { | 
 | 15524 |  | 
 | 15525 | struct stat st; | 
 | 15526 | st.st_mtim.tv_nsec = 1; | 
 | 15527 |  | 
 | 15528 |   ; | 
 | 15529 |   return 0; | 
 | 15530 | } | 
 | 15531 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15532 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | a32c994 | 2002-09-09 16:17:47 +0000 | [diff] [blame] | 15533 |   ac_cv_stat_tv_nsec=yes | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15534 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15535 |   ac_cv_stat_tv_nsec=no | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15536 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15537 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 15538 | fi | 
 | 15539 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec" >&5 | 
 | 15541 | $as_echo "$ac_cv_stat_tv_nsec" >&6; } | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15542 | if test "$ac_cv_stat_tv_nsec" = yes | 
 | 15543 | then | 
 | 15544 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15545 | $as_echo "#define HAVE_STAT_TV_NSEC 1" >>confdefs.h | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15546 |  | 
 | 15547 | fi | 
 | 15548 |  | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 15549 | # Look for BSD style subsecond timestamps in struct stat | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15550 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec2 in struct stat" >&5 | 
 | 15551 | $as_echo_n "checking for tv_nsec2 in struct stat... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15552 | if ${ac_cv_stat_tv_nsec2+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15553 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 15554 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15555 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 15556 | /* end confdefs.h.  */ | 
 | 15557 | #include <sys/stat.h> | 
 | 15558 | int | 
 | 15559 | main () | 
 | 15560 | { | 
 | 15561 |  | 
 | 15562 | struct stat st; | 
 | 15563 | st.st_mtimespec.tv_nsec = 1; | 
 | 15564 |  | 
 | 15565 |   ; | 
 | 15566 |   return 0; | 
 | 15567 | } | 
 | 15568 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15569 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 15570 |   ac_cv_stat_tv_nsec2=yes | 
 | 15571 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15572 |   ac_cv_stat_tv_nsec2=no | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 15573 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15574 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 15575 | fi | 
 | 15576 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec2" >&5 | 
 | 15578 | $as_echo "$ac_cv_stat_tv_nsec2" >&6; } | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 15579 | if test "$ac_cv_stat_tv_nsec2" = yes | 
 | 15580 | then | 
 | 15581 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15582 | $as_echo "#define HAVE_STAT_TV_NSEC2 1" >>confdefs.h | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 15583 |  | 
 | 15584 | fi | 
 | 15585 |  | 
| doko@ubuntu.com | 1a4f561 | 2014-04-17 20:13:44 +0200 | [diff] [blame] | 15586 | # first curses header check | 
| doko@ubuntu.com | 9dc823d | 2012-07-07 03:06:42 +0200 | [diff] [blame] | 15587 | ac_save_cppflags="$CPPFLAGS" | 
 | 15588 | CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw" | 
| doko@ubuntu.com | 1a4f561 | 2014-04-17 20:13:44 +0200 | [diff] [blame] | 15589 |  | 
 | 15590 | for ac_header in curses.h ncurses.h | 
 | 15591 | do : | 
 | 15592 |   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
 | 15593 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | 
 | 15594 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 
 | 15595 |   cat >>confdefs.h <<_ACEOF | 
 | 15596 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
 | 15597 | _ACEOF | 
 | 15598 |  | 
 | 15599 | fi | 
 | 15600 |  | 
 | 15601 | done | 
 | 15602 |  | 
 | 15603 |  | 
 | 15604 | # On Solaris, term.h requires curses.h | 
 | 15605 | for ac_header in term.h | 
 | 15606 | do : | 
 | 15607 |   ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" " | 
 | 15608 | #ifdef HAVE_CURSES_H | 
 | 15609 | #include <curses.h> | 
 | 15610 | #endif | 
 | 15611 |  | 
 | 15612 | " | 
 | 15613 | if test "x$ac_cv_header_term_h" = xyes; then : | 
 | 15614 |   cat >>confdefs.h <<_ACEOF | 
 | 15615 | #define HAVE_TERM_H 1 | 
 | 15616 | _ACEOF | 
 | 15617 |  | 
 | 15618 | fi | 
 | 15619 |  | 
 | 15620 | done | 
 | 15621 |  | 
 | 15622 |  | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15623 | # 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] | 15624 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mvwdelch is an expression" >&5 | 
 | 15625 | $as_echo_n "checking whether mvwdelch is an expression... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15626 | if ${ac_cv_mvwdelch_is_expression+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15627 |   $as_echo_n "(cached) " >&6 | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15628 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15629 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15630 | /* end confdefs.h.  */ | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15631 | #include <curses.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15632 | int | 
 | 15633 | main () | 
 | 15634 | { | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15635 |  | 
 | 15636 |   int rtn; | 
 | 15637 |   rtn = mvwdelch(0,0,0); | 
 | 15638 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15639 |   ; | 
 | 15640 |   return 0; | 
 | 15641 | } | 
 | 15642 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15643 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15644 |   ac_cv_mvwdelch_is_expression=yes | 
 | 15645 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15646 |   ac_cv_mvwdelch_is_expression=no | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15647 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15648 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 15649 | fi | 
 | 15650 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mvwdelch_is_expression" >&5 | 
 | 15652 | $as_echo "$ac_cv_mvwdelch_is_expression" >&6; } | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15653 |  | 
 | 15654 | if test "$ac_cv_mvwdelch_is_expression" = yes | 
 | 15655 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15656 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15657 | $as_echo "#define MVWDELCH_IS_EXPRESSION 1" >>confdefs.h | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15658 |  | 
 | 15659 | fi | 
 | 15660 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15661 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether WINDOW has _flags" >&5 | 
 | 15662 | $as_echo_n "checking whether WINDOW has _flags... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15663 | if ${ac_cv_window_has_flags+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15664 |   $as_echo_n "(cached) " >&6 | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15665 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15666 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15667 | /* end confdefs.h.  */ | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15668 | #include <curses.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15669 | int | 
 | 15670 | main () | 
 | 15671 | { | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15672 |  | 
 | 15673 |   WINDOW *w; | 
 | 15674 |   w->_flags = 0; | 
 | 15675 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15676 |   ; | 
 | 15677 |   return 0; | 
 | 15678 | } | 
 | 15679 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15680 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15681 |   ac_cv_window_has_flags=yes | 
 | 15682 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15683 |   ac_cv_window_has_flags=no | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15684 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15685 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 15686 | fi | 
 | 15687 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_window_has_flags" >&5 | 
 | 15689 | $as_echo "$ac_cv_window_has_flags" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15690 |  | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15691 |  | 
 | 15692 | if test "$ac_cv_window_has_flags" = yes | 
 | 15693 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15694 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15695 | $as_echo "#define WINDOW_HAS_FLAGS 1" >>confdefs.h | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15696 |  | 
 | 15697 | fi | 
 | 15698 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15699 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_term_resized" >&5 | 
 | 15700 | $as_echo_n "checking for is_term_resized... " >&6; } | 
 | 15701 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15702 | /* end confdefs.h.  */ | 
 | 15703 | #include <curses.h> | 
 | 15704 | int | 
 | 15705 | main () | 
 | 15706 | { | 
 | 15707 | void *x=is_term_resized | 
 | 15708 |   ; | 
 | 15709 |   return 0; | 
 | 15710 | } | 
 | 15711 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15712 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 15713 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15714 | $as_echo "#define HAVE_CURSES_IS_TERM_RESIZED 1" >>confdefs.h | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15715 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 15716 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15717 | $as_echo "yes" >&6; } | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15718 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15719 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 15720 | $as_echo "no" >&6; } | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15721 |  | 
 | 15722 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15723 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 15724 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15725 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resize_term" >&5 | 
 | 15726 | $as_echo_n "checking for resize_term... " >&6; } | 
 | 15727 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15728 | /* end confdefs.h.  */ | 
 | 15729 | #include <curses.h> | 
 | 15730 | int | 
 | 15731 | main () | 
 | 15732 | { | 
 | 15733 | void *x=resize_term | 
 | 15734 |   ; | 
 | 15735 |   return 0; | 
 | 15736 | } | 
 | 15737 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15738 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15739 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15740 | $as_echo "#define HAVE_CURSES_RESIZE_TERM 1" >>confdefs.h | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15741 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 15742 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15743 | $as_echo "yes" >&6; } | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15744 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15745 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 15746 | $as_echo "no" >&6; } | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15747 |  | 
 | 15748 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15749 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 15750 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15751 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resizeterm" >&5 | 
 | 15752 | $as_echo_n "checking for resizeterm... " >&6; } | 
 | 15753 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15754 | /* end confdefs.h.  */ | 
 | 15755 | #include <curses.h> | 
 | 15756 | int | 
 | 15757 | main () | 
 | 15758 | { | 
 | 15759 | void *x=resizeterm | 
 | 15760 |   ; | 
 | 15761 |   return 0; | 
 | 15762 | } | 
 | 15763 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15764 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15765 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15766 | $as_echo "#define HAVE_CURSES_RESIZETERM 1" >>confdefs.h | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15767 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 15768 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15769 | $as_echo "yes" >&6; } | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15770 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15771 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 15772 | $as_echo "no" >&6; } | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15773 |  | 
 | 15774 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15775 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| doko@ubuntu.com | 9dc823d | 2012-07-07 03:06:42 +0200 | [diff] [blame] | 15776 | # last curses configure check | 
 | 15777 | CPPFLAGS=$ac_save_cppflags | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15778 |  | 
| doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 15779 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for device files" >&5 | 
 | 15780 | $as_echo "$as_me: checking for device files" >&6;} | 
 | 15781 |  | 
 | 15782 | if test "x$cross_compiling" = xyes; then | 
 | 15783 |   if test "${ac_cv_file__dev_ptmx+set}" != set; then | 
 | 15784 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5 | 
 | 15785 | $as_echo_n "checking for /dev/ptmx... " >&6; } | 
 | 15786 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5 | 
 | 15787 | $as_echo "not set" >&6; } | 
 | 15788 |     as_fn_error $? "set ac_cv_file__dev_ptmx to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5 | 
 | 15789 |   fi | 
 | 15790 |   if test "${ac_cv_file__dev_ptc+set}" != set; then | 
 | 15791 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5 | 
 | 15792 | $as_echo_n "checking for /dev/ptc... " >&6; } | 
 | 15793 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5 | 
 | 15794 | $as_echo "not set" >&6; } | 
 | 15795 |     as_fn_error $? "set ac_cv_file__dev_ptc to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5 | 
 | 15796 |   fi | 
 | 15797 | fi | 
 | 15798 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15799 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5 | 
 | 15800 | $as_echo_n "checking for /dev/ptmx... " >&6; } | 
| doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 15801 | if ${ac_cv_file__dev_ptmx+:} false; then : | 
 | 15802 |   $as_echo_n "(cached) " >&6 | 
 | 15803 | else | 
 | 15804 |   test "$cross_compiling" = yes && | 
 | 15805 |   as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 | 
 | 15806 | if test -r "/dev/ptmx"; then | 
 | 15807 |   ac_cv_file__dev_ptmx=yes | 
 | 15808 | else | 
 | 15809 |   ac_cv_file__dev_ptmx=no | 
 | 15810 | fi | 
 | 15811 | fi | 
 | 15812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptmx" >&5 | 
 | 15813 | $as_echo "$ac_cv_file__dev_ptmx" >&6; } | 
 | 15814 | if test "x$ac_cv_file__dev_ptmx" = xyes; then : | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 15815 |  | 
| doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 15816 | fi | 
 | 15817 |  | 
 | 15818 | if test "x$ac_cv_file__dev_ptmx" = xyes; then | 
| Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 15819 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15820 | $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h | 
| Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 15821 |  | 
| Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 15822 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15823 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5 | 
 | 15824 | $as_echo_n "checking for /dev/ptc... " >&6; } | 
| doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 15825 | if ${ac_cv_file__dev_ptc+:} false; then : | 
 | 15826 |   $as_echo_n "(cached) " >&6 | 
 | 15827 | else | 
 | 15828 |   test "$cross_compiling" = yes && | 
 | 15829 |   as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 | 
 | 15830 | if test -r "/dev/ptc"; then | 
 | 15831 |   ac_cv_file__dev_ptc=yes | 
 | 15832 | else | 
 | 15833 |   ac_cv_file__dev_ptc=no | 
 | 15834 | fi | 
 | 15835 | fi | 
 | 15836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptc" >&5 | 
 | 15837 | $as_echo "$ac_cv_file__dev_ptc" >&6; } | 
 | 15838 | if test "x$ac_cv_file__dev_ptc" = xyes; then : | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 15839 |  | 
| doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 15840 | fi | 
 | 15841 |  | 
 | 15842 | if test "x$ac_cv_file__dev_ptc" = xyes; then | 
| Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 15843 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15844 | $as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h | 
| Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 15845 |  | 
| Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 15846 | fi | 
 | 15847 |  | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15848 | if test "$have_long_long" = yes | 
 | 15849 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15850 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for %lld and %llu printf() format support" >&5 | 
 | 15851 | $as_echo_n "checking for %lld and %llu printf() format support... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15852 |   if ${ac_cv_have_long_long_format+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15853 |   $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15854 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15855 |   if test "$cross_compiling" = yes; then : | 
| Matthias Klose | 3b739b1 | 2012-03-15 19:31:06 +0100 | [diff] [blame] | 15856 |   ac_cv_have_long_long_format="cross -- assuming no" | 
 | 15857 |    if test x$GCC = xyes; then | 
 | 15858 |     save_CFLAGS=$CFLAGS | 
 | 15859 |     CFLAGS="$CFLAGS -Werror -Wformat" | 
 | 15860 |     cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 15861 | /* end confdefs.h.  */ | 
 | 15862 |  | 
 | 15863 |         #include <stdio.h> | 
 | 15864 |         #include <stddef.h> | 
 | 15865 |  | 
 | 15866 | int | 
 | 15867 | main () | 
 | 15868 | { | 
 | 15869 |  | 
 | 15870 |       char *buffer; | 
 | 15871 |       sprintf(buffer, "%lld", (long long)123); | 
 | 15872 |       sprintf(buffer, "%lld", (long long)-123); | 
 | 15873 |       sprintf(buffer, "%llu", (unsigned long long)123); | 
 | 15874 |  | 
 | 15875 |   ; | 
 | 15876 |   return 0; | 
 | 15877 | } | 
 | 15878 | _ACEOF | 
 | 15879 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 15880 |   ac_cv_have_long_long_format=yes | 
 | 15881 |  | 
 | 15882 | fi | 
 | 15883 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 15884 |     CFLAGS=$save_CFLAGS | 
 | 15885 |    fi | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15886 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15887 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15888 | /* end confdefs.h.  */ | 
 | 15889 |  | 
 | 15890 |   #include <stdio.h> | 
 | 15891 |   #include <stddef.h> | 
 | 15892 |   #include <string.h> | 
 | 15893 |  | 
 | 15894 |   #ifdef HAVE_SYS_TYPES_H | 
 | 15895 |   #include <sys/types.h> | 
 | 15896 |   #endif | 
 | 15897 |  | 
 | 15898 |   int main() | 
 | 15899 |   { | 
 | 15900 |       char buffer[256]; | 
 | 15901 |  | 
 | 15902 |       if (sprintf(buffer, "%lld", (long long)123) < 0) | 
 | 15903 |           return 1; | 
 | 15904 |       if (strcmp(buffer, "123")) | 
 | 15905 |           return 1; | 
 | 15906 |  | 
 | 15907 |       if (sprintf(buffer, "%lld", (long long)-123) < 0) | 
 | 15908 |           return 1; | 
 | 15909 |       if (strcmp(buffer, "-123")) | 
 | 15910 |           return 1; | 
 | 15911 |  | 
 | 15912 |       if (sprintf(buffer, "%llu", (unsigned long long)123) < 0) | 
 | 15913 |           return 1; | 
 | 15914 |       if (strcmp(buffer, "123")) | 
 | 15915 |           return 1; | 
 | 15916 |  | 
 | 15917 |       return 0; | 
 | 15918 |   } | 
 | 15919 |  | 
 | 15920 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15921 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15922 |   ac_cv_have_long_long_format=yes | 
 | 15923 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15924 |   ac_cv_have_long_long_format=no | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15925 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15926 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 15927 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15928 | fi | 
 | 15929 |  | 
 | 15930 |  | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15931 | fi | 
 | 15932 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15933 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_long_long_format" >&5 | 
 | 15934 | $as_echo "$ac_cv_have_long_long_format" >&6; } | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15935 | fi | 
 | 15936 |  | 
| Mark Dickinson | 89d7d41 | 2009-12-31 20:50:59 +0000 | [diff] [blame] | 15937 | if test "$ac_cv_have_long_long_format" = yes | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15938 | then | 
 | 15939 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15940 | $as_echo "#define PY_FORMAT_LONG_LONG \"ll\"" >>confdefs.h | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15941 |  | 
 | 15942 | fi | 
 | 15943 |  | 
| Ronald Oussoren | 3c1928a | 2009-11-19 17:15:31 +0000 | [diff] [blame] | 15944 | if test $ac_sys_system = Darwin | 
 | 15945 | then | 
 | 15946 | 	LIBS="$LIBS -framework CoreFoundation" | 
 | 15947 | fi | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15948 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15949 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for %zd printf() format support" >&5 | 
 | 15950 | $as_echo_n "checking for %zd printf() format support... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15951 | if ${ac_cv_have_size_t_format+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15952 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15953 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15954 |   if test "$cross_compiling" = yes; then : | 
| Benjamin Peterson | 8f326b2 | 2009-12-13 02:10:36 +0000 | [diff] [blame] | 15955 |   ac_cv_have_size_t_format="cross -- assuming yes" | 
 | 15956 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15957 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15958 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15959 | /* end confdefs.h.  */ | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15960 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15961 | #include <stdio.h> | 
 | 15962 | #include <stddef.h> | 
 | 15963 | #include <string.h> | 
 | 15964 |  | 
| Christian Heimes | 2c18161 | 2007-12-17 20:04:13 +0000 | [diff] [blame] | 15965 | #ifdef HAVE_SYS_TYPES_H | 
 | 15966 | #include <sys/types.h> | 
 | 15967 | #endif | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 15968 |  | 
 | 15969 | #ifdef HAVE_SSIZE_T | 
 | 15970 | typedef ssize_t Py_ssize_t; | 
 | 15971 | #elif SIZEOF_VOID_P == SIZEOF_LONG | 
 | 15972 | typedef long Py_ssize_t; | 
 | 15973 | #else | 
 | 15974 | typedef int Py_ssize_t; | 
 | 15975 | #endif | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15976 |  | 
| Christian Heimes | 2c18161 | 2007-12-17 20:04:13 +0000 | [diff] [blame] | 15977 | int main() | 
 | 15978 | { | 
 | 15979 |     char buffer[256]; | 
 | 15980 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15981 |     if(sprintf(buffer, "%zd", (size_t)123) < 0) | 
 | 15982 |        	return 1; | 
 | 15983 |  | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 15984 |     if (strcmp(buffer, "123")) | 
 | 15985 | 	return 1; | 
 | 15986 |  | 
 | 15987 |     if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0) | 
 | 15988 |        	return 1; | 
 | 15989 |  | 
 | 15990 |     if (strcmp(buffer, "-123")) | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15991 | 	return 1; | 
 | 15992 |  | 
 | 15993 |     return 0; | 
 | 15994 | } | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15995 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15996 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15997 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15998 |   ac_cv_have_size_t_format=yes | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15999 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16000 |   ac_cv_have_size_t_format=no | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16001 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16002 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 16003 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 16004 | fi | 
 | 16005 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16006 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_size_t_format" >&5 | 
 | 16008 | $as_echo "$ac_cv_have_size_t_format" >&6; } | 
| Benjamin Peterson | 8f326b2 | 2009-12-13 02:10:36 +0000 | [diff] [blame] | 16009 | if test "$ac_cv_have_size_t_format" != no ; then | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16010 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16011 | $as_echo "#define PY_FORMAT_SIZE_T \"z\"" >>confdefs.h | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16012 |  | 
 | 16013 | fi | 
 | 16014 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16015 | 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] | 16016 | #ifdef HAVE_SYS_TYPES_H | 
 | 16017 | #include <sys/types.h> | 
 | 16018 | #endif | 
 | 16019 | #ifdef HAVE_SYS_SOCKET_H | 
 | 16020 | #include <sys/socket.h> | 
 | 16021 | #endif | 
 | 16022 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16023 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 16024 | if test "x$ac_cv_type_socklen_t" = xyes; then : | 
| Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 16025 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16026 | else | 
| Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 16027 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16028 | $as_echo "#define socklen_t int" >>confdefs.h | 
| Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 16029 |  | 
 | 16030 | fi | 
 | 16031 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16032 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16033 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken mbstowcs" >&5 | 
 | 16034 | $as_echo_n "checking for broken mbstowcs... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 16035 | if ${ac_cv_broken_mbstowcs+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16036 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16037 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16038 |   if test "$cross_compiling" = yes; then : | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16039 |   ac_cv_broken_mbstowcs=no | 
 | 16040 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16041 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16042 | /* end confdefs.h.  */ | 
 | 16043 |  | 
| Stefan Krah | 19c2139 | 2012-11-22 23:47:32 +0100 | [diff] [blame] | 16044 | #include <stdio.h> | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16045 | #include<stdlib.h> | 
 | 16046 | int main() { | 
 | 16047 |     size_t len = -1; | 
 | 16048 |     const char *str = "text"; | 
 | 16049 |     len = mbstowcs(NULL, str, 0); | 
 | 16050 |     return (len != 4); | 
 | 16051 | } | 
 | 16052 |  | 
 | 16053 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16054 | if ac_fn_c_try_run "$LINENO"; then : | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16055 |   ac_cv_broken_mbstowcs=no | 
 | 16056 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16057 |   ac_cv_broken_mbstowcs=yes | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16058 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16059 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 16060 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16061 | fi | 
 | 16062 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16063 | fi | 
 | 16064 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_mbstowcs" >&5 | 
 | 16066 | $as_echo "$ac_cv_broken_mbstowcs" >&6; } | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16067 | if test "$ac_cv_broken_mbstowcs" = yes | 
 | 16068 | then | 
 | 16069 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16070 | $as_echo "#define HAVE_BROKEN_MBSTOWCS 1" >>confdefs.h | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16071 |  | 
 | 16072 | fi | 
 | 16073 |  | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16074 | # Check for --with-computed-gotos | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16075 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-computed-gotos" >&5 | 
 | 16076 | $as_echo_n "checking for --with-computed-gotos... " >&6; } | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16077 |  | 
 | 16078 | # Check whether --with-computed-gotos was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16079 | if test "${with_computed_gotos+set}" = set; then : | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16080 |   withval=$with_computed_gotos; | 
| Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 16081 | if test "$withval" = yes | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16082 | then | 
 | 16083 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16084 | $as_echo "#define USE_COMPUTED_GOTOS 1" >>confdefs.h | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16085 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16086 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 16087 | $as_echo "yes" >&6; } | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16088 | fi | 
| Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 16089 | if test "$withval" = no | 
 | 16090 | then | 
 | 16091 |  | 
 | 16092 | $as_echo "#define USE_COMPUTED_GOTOS 0" >>confdefs.h | 
 | 16093 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16094 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 16095 | $as_echo "no" >&6; } | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16096 | fi | 
 | 16097 |  | 
| Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 16098 | else | 
 | 16099 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5 | 
 | 16100 | $as_echo "no value specified" >&6; } | 
 | 16101 | fi | 
 | 16102 |  | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16103 |  | 
| Matthias Klose | b17289e | 2012-03-15 19:51:34 +0100 | [diff] [blame] | 16104 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports computed gotos" >&5 | 
 | 16105 | $as_echo_n "checking whether $CC supports computed gotos... " >&6; } | 
 | 16106 | if ${ac_cv_computed_gotos+:} false; then : | 
 | 16107 |   $as_echo_n "(cached) " >&6 | 
 | 16108 | else | 
 | 16109 |   if test "$cross_compiling" = yes; then : | 
 | 16110 |   if test "${with_computed_gotos+set}" = set; then | 
 | 16111 |    ac_cv_computed_gotos="$with_computed_gotos -- configured --with(out)-computed-gotos" | 
 | 16112 |  else | 
 | 16113 |    ac_cv_computed_gotos=no | 
 | 16114 |  fi | 
 | 16115 | else | 
 | 16116 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 16117 | /* end confdefs.h.  */ | 
 | 16118 |  | 
 | 16119 | int main(int argc, char **argv) | 
 | 16120 | { | 
 | 16121 |     static void *targets[1] = { &&LABEL1 }; | 
 | 16122 |     goto LABEL2; | 
 | 16123 | LABEL1: | 
 | 16124 |     return 0; | 
 | 16125 | LABEL2: | 
 | 16126 |     goto *targets[0]; | 
 | 16127 |     return 1; | 
 | 16128 | } | 
 | 16129 |  | 
 | 16130 | _ACEOF | 
 | 16131 | if ac_fn_c_try_run "$LINENO"; then : | 
 | 16132 |   ac_cv_computed_gotos=yes | 
 | 16133 | else | 
 | 16134 |   ac_cv_computed_gotos=no | 
 | 16135 | fi | 
 | 16136 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 16137 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
 | 16138 | fi | 
 | 16139 |  | 
 | 16140 | fi | 
 | 16141 |  | 
 | 16142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_computed_gotos" >&5 | 
 | 16143 | $as_echo "$ac_cv_computed_gotos" >&6; } | 
 | 16144 | case "$ac_cv_computed_gotos" in yes*) | 
 | 16145 |  | 
 | 16146 | $as_echo "#define HAVE_COMPUTED_GOTOS 1" >>confdefs.h | 
 | 16147 |  | 
 | 16148 | esac | 
 | 16149 |  | 
| Benjamin Peterson | d8d835b | 2010-10-15 23:14:46 +0000 | [diff] [blame] | 16150 | case $ac_sys_system in | 
 | 16151 | AIX*) | 
 | 16152 |  | 
 | 16153 | $as_echo "#define HAVE_BROKEN_PIPE_BUF 1" >>confdefs.h | 
 | 16154 |  ;; | 
 | 16155 | esac | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16156 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16157 |  | 
| Mark Dickinson | b2153e9 | 2010-05-05 22:31:36 +0000 | [diff] [blame] | 16158 |  | 
 | 16159 |  | 
| Martin v. Löwis | 06f15bb | 2001-12-02 13:02:32 +0000 | [diff] [blame] | 16160 | for h in `(cd $srcdir;echo Python/thread_*.h)` | 
 | 16161 | do | 
 | 16162 |   THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" | 
 | 16163 | done | 
 | 16164 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16165 |  | 
| Ned Deily | 0db50cf | 2014-07-25 12:41:31 -0700 | [diff] [blame] | 16166 | SRCDIRS="Parser Grammar Objects Python Modules Mac Programs" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16167 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build directories" >&5 | 
 | 16168 | $as_echo_n "checking for build directories... " >&6; } | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 16169 | for dir in $SRCDIRS; do | 
 | 16170 |     if test ! -d $dir; then | 
 | 16171 |         mkdir $dir | 
| Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 16172 |     fi | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 16173 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | 
 | 16175 | $as_echo "done" >&6; } | 
| Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 16176 |  | 
| Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 16177 | # Availability of -O2: | 
 | 16178 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -O2" >&5 | 
 | 16179 | $as_echo_n "checking for -O2... " >&6; } | 
 | 16180 | saved_cflags="$CFLAGS" | 
 | 16181 | CFLAGS="-O2" | 
 | 16182 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 16183 | /* end confdefs.h.  */ | 
 | 16184 |  | 
 | 16185 | int | 
 | 16186 | main () | 
 | 16187 | { | 
 | 16188 |  | 
 | 16189 |  | 
 | 16190 |   ; | 
 | 16191 |   return 0; | 
 | 16192 | } | 
 | 16193 | _ACEOF | 
 | 16194 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 16195 |   have_O2=yes | 
 | 16196 | else | 
 | 16197 |   have_O2=no | 
 | 16198 | fi | 
 | 16199 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 16200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_O2" >&5 | 
 | 16201 | $as_echo "$have_O2" >&6; } | 
 | 16202 | CFLAGS="$saved_cflags" | 
 | 16203 |  | 
 | 16204 | # _FORTIFY_SOURCE wrappers for memmove and bcopy are incorrect: | 
 | 16205 | # http://sourceware.org/ml/libc-alpha/2010-12/msg00009.html | 
 | 16206 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc _FORTIFY_SOURCE/memmove bug" >&5 | 
 | 16207 | $as_echo_n "checking for glibc _FORTIFY_SOURCE/memmove bug... " >&6; } | 
 | 16208 | saved_cflags="$CFLAGS" | 
 | 16209 | CFLAGS="-O2 -D_FORTIFY_SOURCE=2" | 
 | 16210 | if test "$have_O2" = no; then | 
 | 16211 |     CFLAGS="" | 
 | 16212 | fi | 
 | 16213 | if test "$cross_compiling" = yes; then : | 
 | 16214 |   have_glibc_memmove_bug=undefined | 
 | 16215 | else | 
 | 16216 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 16217 | /* end confdefs.h.  */ | 
 | 16218 |  | 
 | 16219 | #include <stdio.h> | 
 | 16220 | #include <stdlib.h> | 
 | 16221 | #include <string.h> | 
 | 16222 | void foo(void *p, void *q) { memmove(p, q, 19); } | 
 | 16223 | int main() { | 
 | 16224 |   char a[32] = "123456789000000000"; | 
 | 16225 |   foo(&a[9], a); | 
 | 16226 |   if (strcmp(a, "123456789123456789000000000") != 0) | 
 | 16227 |     return 1; | 
 | 16228 |   foo(a, &a[9]); | 
 | 16229 |   if (strcmp(a, "123456789000000000") != 0) | 
 | 16230 |     return 1; | 
 | 16231 |   return 0; | 
 | 16232 | } | 
 | 16233 |  | 
 | 16234 | _ACEOF | 
 | 16235 | if ac_fn_c_try_run "$LINENO"; then : | 
 | 16236 |   have_glibc_memmove_bug=no | 
 | 16237 | else | 
 | 16238 |   have_glibc_memmove_bug=yes | 
 | 16239 | fi | 
 | 16240 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 16241 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
 | 16242 | fi | 
 | 16243 |  | 
 | 16244 | CFLAGS="$saved_cflags" | 
 | 16245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_glibc_memmove_bug" >&5 | 
 | 16246 | $as_echo "$have_glibc_memmove_bug" >&6; } | 
 | 16247 | if test "$have_glibc_memmove_bug" = yes; then | 
 | 16248 |  | 
 | 16249 | $as_echo "#define HAVE_GLIBC_MEMMOVE_BUG 1" >>confdefs.h | 
 | 16250 |  | 
 | 16251 | fi | 
 | 16252 |  | 
 | 16253 | if test "$have_gcc_asm_for_x87" = yes; then | 
 | 16254 |     # Some versions of gcc miscompile inline asm: | 
 | 16255 |     # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46491 | 
 | 16256 |     # http://gcc.gnu.org/ml/gcc/2010-11/msg00366.html | 
 | 16257 |     case $CC in | 
 | 16258 |         *gcc*) | 
 | 16259 |             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc ipa-pure-const bug" >&5 | 
 | 16260 | $as_echo_n "checking for gcc ipa-pure-const bug... " >&6; } | 
 | 16261 |             saved_cflags="$CFLAGS" | 
 | 16262 |             CFLAGS="-O2" | 
 | 16263 |             if test "$cross_compiling" = yes; then : | 
 | 16264 |   have_ipa_pure_const_bug=undefined | 
 | 16265 | else | 
 | 16266 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 16267 | /* end confdefs.h.  */ | 
 | 16268 |  | 
 | 16269 |             __attribute__((noinline)) int | 
 | 16270 |             foo(int *p) { | 
 | 16271 |               int r; | 
 | 16272 |               asm ( "movl \$6, (%1)\n\t" | 
 | 16273 |                     "xorl %0, %0\n\t" | 
 | 16274 |                     : "=r" (r) : "r" (p) : "memory" | 
 | 16275 |               ); | 
 | 16276 |               return r; | 
 | 16277 |             } | 
 | 16278 |             int main() { | 
 | 16279 |               int p = 8; | 
 | 16280 |               if ((foo(&p) ? : p) != 6) | 
 | 16281 |                 return 1; | 
 | 16282 |               return 0; | 
 | 16283 |             } | 
 | 16284 |  | 
 | 16285 | _ACEOF | 
 | 16286 | if ac_fn_c_try_run "$LINENO"; then : | 
 | 16287 |   have_ipa_pure_const_bug=no | 
 | 16288 | else | 
 | 16289 |   have_ipa_pure_const_bug=yes | 
 | 16290 | fi | 
 | 16291 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 16292 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
 | 16293 | fi | 
 | 16294 |  | 
 | 16295 |             CFLAGS="$saved_cflags" | 
 | 16296 |             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ipa_pure_const_bug" >&5 | 
 | 16297 | $as_echo "$have_ipa_pure_const_bug" >&6; } | 
 | 16298 |             if test "$have_ipa_pure_const_bug" = yes; then | 
 | 16299 |  | 
 | 16300 | $as_echo "#define HAVE_IPA_PURE_CONST_BUG 1" >>confdefs.h | 
 | 16301 |  | 
 | 16302 |             fi | 
 | 16303 |         ;; | 
 | 16304 |     esac | 
 | 16305 | fi | 
 | 16306 |  | 
| Victor Stinner | 4f5366e | 2015-01-09 02:13:19 +0100 | [diff] [blame] | 16307 | # Check for stdatomic.h | 
 | 16308 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdatomic.h" >&5 | 
 | 16309 | $as_echo_n "checking for stdatomic.h... " >&6; } | 
 | 16310 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 16311 | /* end confdefs.h.  */ | 
 | 16312 |  | 
 | 16313 |  | 
 | 16314 |     #include <stdatomic.h> | 
| Victor Stinner | 923e06f | 2015-01-14 16:01:46 +0100 | [diff] [blame] | 16315 |     atomic_int value = ATOMIC_VAR_INIT(1); | 
 | 16316 |     _Atomic void *py_atomic_address = (void*) &value; | 
| Victor Stinner | 4f5366e | 2015-01-09 02:13:19 +0100 | [diff] [blame] | 16317 |     int main() { | 
 | 16318 |       int loaded_value = atomic_load(&value); | 
 | 16319 |       return 0; | 
 | 16320 |     } | 
 | 16321 |  | 
 | 16322 |  | 
 | 16323 | _ACEOF | 
 | 16324 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 16325 |   have_stdatomic_h=yes | 
 | 16326 | else | 
 | 16327 |   have_stdatomic_h=no | 
 | 16328 | fi | 
 | 16329 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 16330 |     conftest$ac_exeext conftest.$ac_ext | 
 | 16331 |  | 
 | 16332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_stdatomic_h" >&5 | 
 | 16333 | $as_echo "$have_stdatomic_h" >&6; } | 
 | 16334 |  | 
 | 16335 | if test "$have_stdatomic_h" = yes; then | 
 | 16336 |  | 
 | 16337 | $as_echo "#define HAVE_STD_ATOMIC 1" >>confdefs.h | 
 | 16338 |  | 
 | 16339 | fi | 
 | 16340 |  | 
 | 16341 | # Check for GCC >= 4.7 __atomic builtins | 
 | 16342 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC >= 4.7 __atomic builtins" >&5 | 
 | 16343 | $as_echo_n "checking for GCC >= 4.7 __atomic builtins... " >&6; } | 
 | 16344 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 16345 | /* end confdefs.h.  */ | 
 | 16346 |  | 
 | 16347 |  | 
 | 16348 |     volatile int val = 1; | 
 | 16349 |     int main() { | 
 | 16350 |       __atomic_load_n(&val, __ATOMIC_SEQ_CST); | 
 | 16351 |       return 0; | 
 | 16352 |     } | 
 | 16353 |  | 
 | 16354 |  | 
 | 16355 | _ACEOF | 
 | 16356 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 16357 |   have_builtin_atomic=yes | 
 | 16358 | else | 
 | 16359 |   have_builtin_atomic=no | 
 | 16360 | fi | 
 | 16361 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 16362 |     conftest$ac_exeext conftest.$ac_ext | 
 | 16363 |  | 
 | 16364 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_builtin_atomic" >&5 | 
 | 16365 | $as_echo "$have_builtin_atomic" >&6; } | 
 | 16366 |  | 
 | 16367 | if test "$have_builtin_atomic" = yes; then | 
 | 16368 |  | 
 | 16369 | $as_echo "#define HAVE_BUILTIN_ATOMIC 1" >>confdefs.h | 
 | 16370 |  | 
 | 16371 | fi | 
 | 16372 |  | 
| Ned Deily | 322f5ba | 2013-11-21 23:01:59 -0800 | [diff] [blame] | 16373 | # ensurepip option | 
 | 16374 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ensurepip" >&5 | 
 | 16375 | $as_echo_n "checking for ensurepip... " >&6; } | 
 | 16376 |  | 
 | 16377 | # Check whether --with-ensurepip was given. | 
 | 16378 | if test "${with_ensurepip+set}" = set; then : | 
 | 16379 |   withval=$with_ensurepip; | 
 | 16380 | else | 
 | 16381 |   with_ensurepip=upgrade | 
 | 16382 | fi | 
 | 16383 |  | 
 | 16384 | case $with_ensurepip in #( | 
 | 16385 |   yes|upgrade) : | 
 | 16386 |     ENSUREPIP=upgrade ;; #( | 
 | 16387 |   install) : | 
 | 16388 |     ENSUREPIP=install ;; #( | 
 | 16389 |   no) : | 
 | 16390 |     ENSUREPIP=no ;; #( | 
 | 16391 |   *) : | 
 | 16392 |     as_fn_error $? "--with-ensurepip=upgrade|install|no" "$LINENO" 5 ;; | 
 | 16393 | esac | 
 | 16394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENSUREPIP" >&5 | 
 | 16395 | $as_echo "$ENSUREPIP" >&6; } | 
 | 16396 |  | 
 | 16397 |  | 
| Victor Stinner | 35a97c0 | 2015-03-08 02:59:09 +0100 | [diff] [blame] | 16398 | # check if the dirent structure of a d_type field and DT_UNKNOWN is defined | 
 | 16399 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the dirent structure of a d_type field" >&5 | 
 | 16400 | $as_echo_n "checking if the dirent structure of a d_type field... " >&6; } | 
 | 16401 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 16402 | /* end confdefs.h.  */ | 
 | 16403 |  | 
 | 16404 |  | 
 | 16405 |     #include <dirent.h> | 
 | 16406 |  | 
 | 16407 |     int main() { | 
 | 16408 |       struct dirent entry; | 
 | 16409 |       return entry.d_type == DT_UNKNOWN; | 
 | 16410 |     } | 
 | 16411 |  | 
 | 16412 |  | 
 | 16413 | _ACEOF | 
 | 16414 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 16415 |   have_dirent_d_type=yes | 
 | 16416 | else | 
 | 16417 |   have_dirent_d_type=no | 
 | 16418 | fi | 
 | 16419 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 16420 |     conftest$ac_exeext conftest.$ac_ext | 
 | 16421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dirent_d_type" >&5 | 
 | 16422 | $as_echo "$have_dirent_d_type" >&6; } | 
 | 16423 |  | 
 | 16424 | if test "$have_dirent_d_type" = yes; then | 
 | 16425 |  | 
 | 16426 | $as_echo "#define HAVE_DIRENT_D_TYPE 1" >>confdefs.h | 
 | 16427 |  | 
 | 16428 | fi | 
 | 16429 |  | 
| Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 16430 | # check if the Linux getrandom() syscall is available | 
 | 16431 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Linux getrandom() syscall" >&5 | 
 | 16432 | $as_echo_n "checking for the Linux getrandom() syscall... " >&6; } | 
 | 16433 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 16434 | /* end confdefs.h.  */ | 
 | 16435 |  | 
 | 16436 |  | 
| Victor Stinner | 1b80b24 | 2016-04-12 22:34:58 +0200 | [diff] [blame] | 16437 |     #include <unistd.h> | 
| Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 16438 |     #include <sys/syscall.h> | 
| Victor Stinner | dddf484 | 2016-06-07 11:21:42 +0200 | [diff] [blame] | 16439 |     #include <linux/random.h> | 
| Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 16440 |  | 
 | 16441 |     int main() { | 
| Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 16442 |         char buffer[1]; | 
| Victor Stinner | bae2d62 | 2015-10-01 09:47:30 +0200 | [diff] [blame] | 16443 |         const size_t buflen = sizeof(buffer); | 
| Victor Stinner | dddf484 | 2016-06-07 11:21:42 +0200 | [diff] [blame] | 16444 |         const int flags = GRND_NONBLOCK; | 
 | 16445 |         /* ignore the result, Python checks for ENOSYS and EAGAIN at runtime */ | 
| Victor Stinner | bae2d62 | 2015-10-01 09:47:30 +0200 | [diff] [blame] | 16446 |         (void)syscall(SYS_getrandom, buffer, buflen, flags); | 
| Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 16447 |         return 0; | 
 | 16448 |     } | 
 | 16449 |  | 
 | 16450 |  | 
 | 16451 | _ACEOF | 
 | 16452 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 16453 |   have_getrandom_syscall=yes | 
 | 16454 | else | 
 | 16455 |   have_getrandom_syscall=no | 
 | 16456 | fi | 
 | 16457 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 16458 |     conftest$ac_exeext conftest.$ac_ext | 
 | 16459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getrandom_syscall" >&5 | 
 | 16460 | $as_echo "$have_getrandom_syscall" >&6; } | 
 | 16461 |  | 
 | 16462 | if test "$have_getrandom_syscall" = yes; then | 
 | 16463 |  | 
 | 16464 | $as_echo "#define HAVE_GETRANDOM_SYSCALL 1" >>confdefs.h | 
 | 16465 |  | 
 | 16466 | fi | 
 | 16467 |  | 
| Victor Stinner | bae2d62 | 2015-10-01 09:47:30 +0200 | [diff] [blame] | 16468 | # check if the getrandom() function is available | 
 | 16469 | # the test was written for the Solaris function of <sys/random.h> | 
 | 16470 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the getrandom() function" >&5 | 
 | 16471 | $as_echo_n "checking for the getrandom() function... " >&6; } | 
 | 16472 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 16473 | /* end confdefs.h.  */ | 
 | 16474 |  | 
 | 16475 |  | 
 | 16476 |     #include <sys/random.h> | 
 | 16477 |  | 
 | 16478 |     int main() { | 
 | 16479 |         char buffer[1]; | 
 | 16480 |         const size_t buflen = sizeof(buffer); | 
 | 16481 |         const int flags = 0; | 
 | 16482 |         /* ignore the result, Python checks for ENOSYS at runtime */ | 
 | 16483 |         (void)getrandom(buffer, buflen, flags); | 
 | 16484 |         return 0; | 
 | 16485 |     } | 
 | 16486 |  | 
 | 16487 |  | 
 | 16488 | _ACEOF | 
 | 16489 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 16490 |   have_getrandom=yes | 
 | 16491 | else | 
 | 16492 |   have_getrandom=no | 
 | 16493 | fi | 
 | 16494 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 16495 |     conftest$ac_exeext conftest.$ac_ext | 
 | 16496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getrandom" >&5 | 
 | 16497 | $as_echo "$have_getrandom" >&6; } | 
 | 16498 |  | 
 | 16499 | if test "$have_getrandom" = yes; then | 
 | 16500 |  | 
 | 16501 | $as_echo "#define HAVE_GETRANDOM 1" >>confdefs.h | 
 | 16502 |  | 
 | 16503 | fi | 
 | 16504 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16505 | # generate output files | 
| doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 16506 | 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] | 16507 |  | 
| Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 16508 | ac_config_files="$ac_config_files Modules/ld_so_aix" | 
 | 16509 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16510 | cat >confcache <<\_ACEOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16511 | # This file is a shell script that caches the results of configure | 
 | 16512 | # 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] | 16513 | # scripts and configure runs, see configure's option --config-cache. | 
 | 16514 | # It is not useful on other systems.  If it contains results you don't | 
 | 16515 | # want to keep, you may remove or edit it. | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16516 | # | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16517 | # config.status only pays attention to the cache file if you give it | 
 | 16518 | # the --recheck option to rerun configure. | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16519 | # | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16520 | # `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] | 16521 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | 
 | 16522 | # following values. | 
 | 16523 |  | 
 | 16524 | _ACEOF | 
 | 16525 |  | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 16526 | # The following way of writing the cache mishandles newlines in values, | 
 | 16527 | # but we know of no workaround that is simple, portable, and efficient. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16528 | # So, we kill variables containing newlines. | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16529 | # Ultrix sh set writes to stderr and can't be redirected directly, | 
 | 16530 | # 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] | 16531 | ( | 
 | 16532 |   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | 
 | 16533 |     eval ac_val=\$$ac_var | 
 | 16534 |     case $ac_val in #( | 
 | 16535 |     *${as_nl}*) | 
 | 16536 |       case $ac_var in #( | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16537 |       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | 
 | 16538 | $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] | 16539 |       esac | 
 | 16540 |       case $ac_var in #( | 
 | 16541 |       _ | IFS | as_nl) ;; #( | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16542 |       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | 
 | 16543 |       *) { eval $ac_var=; unset $ac_var;} ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16544 |       esac ;; | 
 | 16545 |     esac | 
 | 16546 |   done | 
 | 16547 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16548 |   (set) 2>&1 | | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16549 |     case $as_nl`(ac_space=' '; set) 2>&1` in #( | 
 | 16550 |     *${as_nl}ac_space=\ *) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16551 |       # `set' does not quote correctly, so add quotes: double-quote | 
 | 16552 |       # substitution turns \\\\ into \\, and sed turns \\ into \. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16553 |       sed -n \ | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16554 | 	"s/'/'\\\\''/g; | 
 | 16555 | 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16556 |       ;; #( | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16557 |     *) | 
 | 16558 |       # `set' quotes correctly as required by POSIX, so do not add quotes. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16559 |       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16560 |       ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16561 |     esac | | 
 | 16562 |     sort | 
 | 16563 | ) | | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16564 |   sed ' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16565 |      /^ac_cv_env_/b end | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16566 |      t clear | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16567 |      :clear | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16568 |      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | 
 | 16569 |      t end | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16570 |      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | 
 | 16571 |      :end' >>confcache | 
 | 16572 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | 
 | 16573 |   if test -w "$cache_file"; then | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 16574 |     if test "x$cache_file" != "x/dev/null"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16575 |       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | 
 | 16576 | $as_echo "$as_me: updating cache $cache_file" >&6;} | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 16577 |       if test ! -f "$cache_file" || test -h "$cache_file"; then | 
 | 16578 | 	cat confcache >"$cache_file" | 
 | 16579 |       else | 
 | 16580 |         case $cache_file in #( | 
 | 16581 |         */* | ?:*) | 
 | 16582 | 	  mv -f confcache "$cache_file"$$ && | 
 | 16583 | 	  mv -f "$cache_file"$$ "$cache_file" ;; #( | 
 | 16584 |         *) | 
 | 16585 | 	  mv -f confcache "$cache_file" ;; | 
 | 16586 | 	esac | 
 | 16587 |       fi | 
 | 16588 |     fi | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16589 |   else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16590 |     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | 
 | 16591 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16592 |   fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16593 | fi | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16594 | rm -f confcache | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 16595 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16596 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | 
 | 16597 | # Let make expand exec_prefix. | 
 | 16598 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 16599 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16600 | DEFS=-DHAVE_CONFIG_H | 
 | 16601 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16602 | ac_libobjs= | 
 | 16603 | ac_ltlibobjs= | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16604 | U= | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16605 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | 
 | 16606 |   # 1. Remove the extension, and $U if already installed. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16607 |   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16608 |   ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16609 |   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR | 
 | 16610 |   #    will be set to the directory where LIBOBJS objects are built. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16611 |   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | 
 | 16612 |   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16613 | done | 
 | 16614 | LIBOBJS=$ac_libobjs | 
 | 16615 |  | 
 | 16616 | LTLIBOBJS=$ac_ltlibobjs | 
 | 16617 |  | 
 | 16618 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16619 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16620 |  | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 16621 | : "${CONFIG_STATUS=./config.status}" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16622 | ac_write_fail=0 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16623 | ac_clean_files_save=$ac_clean_files | 
 | 16624 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16625 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | 
 | 16626 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | 
 | 16627 | as_write_fail=0 | 
 | 16628 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16629 | #! $SHELL | 
 | 16630 | # Generated by $as_me. | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16631 | # Run this file to recreate the current configuration. | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16632 | # Compiler output produced by configure, useful for debugging | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16633 | # configure, is in config.log if it exists. | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16634 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16635 | debug=false | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16636 | ac_cs_recheck=false | 
 | 16637 | ac_cs_silent=false | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16638 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16639 | SHELL=\${CONFIG_SHELL-$SHELL} | 
 | 16640 | export SHELL | 
 | 16641 | _ASEOF | 
 | 16642 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | 
 | 16643 | ## -------------------- ## | 
 | 16644 | ## M4sh Initialization. ## | 
 | 16645 | ## -------------------- ## | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16646 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16647 | # Be more Bourne compatible | 
 | 16648 | DUALCASE=1; export DUALCASE # for MKS sh | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16649 | 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] | 16650 |   emulate sh | 
 | 16651 |   NULLCMD=: | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16652 |   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16653 |   # is contrary to our usage.  Disable this feature. | 
 | 16654 |   alias -g '${1+"$@"}'='"$@"' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16655 |   setopt NO_GLOB_SUBST | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 16656 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16657 |   case `(set -o) 2>/dev/null` in #( | 
 | 16658 |   *posix*) : | 
 | 16659 |     set -o posix ;; #( | 
 | 16660 |   *) : | 
 | 16661 |      ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16662 | esac | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16663 | fi | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 16664 |  | 
 | 16665 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16666 | as_nl=' | 
 | 16667 | ' | 
 | 16668 | export as_nl | 
 | 16669 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | 
 | 16670 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | 
 | 16671 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | 
 | 16672 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | 
 | 16673 | # Prefer a ksh shell builtin over an external printf program on Solaris, | 
 | 16674 | # but without wasting forks for bash or zsh. | 
 | 16675 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | 
 | 16676 |     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | 
 | 16677 |   as_echo='print -r --' | 
 | 16678 |   as_echo_n='print -rn --' | 
 | 16679 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | 
 | 16680 |   as_echo='printf %s\n' | 
 | 16681 |   as_echo_n='printf %s' | 
 | 16682 | else | 
 | 16683 |   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | 
 | 16684 |     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | 
 | 16685 |     as_echo_n='/usr/ucb/echo -n' | 
 | 16686 |   else | 
 | 16687 |     as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | 
 | 16688 |     as_echo_n_body='eval | 
 | 16689 |       arg=$1; | 
 | 16690 |       case $arg in #( | 
 | 16691 |       *"$as_nl"*) | 
 | 16692 | 	expr "X$arg" : "X\\(.*\\)$as_nl"; | 
 | 16693 | 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | 
 | 16694 |       esac; | 
 | 16695 |       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | 
 | 16696 |     ' | 
 | 16697 |     export as_echo_n_body | 
 | 16698 |     as_echo_n='sh -c $as_echo_n_body as_echo' | 
 | 16699 |   fi | 
 | 16700 |   export as_echo_body | 
 | 16701 |   as_echo='sh -c $as_echo_body as_echo' | 
 | 16702 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16703 |  | 
 | 16704 | # The user is always right. | 
 | 16705 | if test "${PATH_SEPARATOR+set}" != set; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16706 |   PATH_SEPARATOR=: | 
 | 16707 |   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | 
 | 16708 |     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | 
 | 16709 |       PATH_SEPARATOR=';' | 
 | 16710 |   } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16711 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16712 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16713 |  | 
 | 16714 | # IFS | 
 | 16715 | # We need space, tab and new line, in precisely that order.  Quoting is | 
 | 16716 | # there to prevent editors from complaining about space-tab. | 
 | 16717 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | 
 | 16718 | # splitting by setting IFS to empty value.) | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16719 | IFS=" ""	$as_nl" | 
 | 16720 |  | 
 | 16721 | # 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] | 16722 | as_myself= | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16723 | case $0 in #(( | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16724 |   *[\\/]* ) as_myself=$0 ;; | 
 | 16725 |   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16726 | for as_dir in $PATH | 
 | 16727 | do | 
 | 16728 |   IFS=$as_save_IFS | 
 | 16729 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16730 |     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | 
 | 16731 |   done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16732 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16733 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16734 |      ;; | 
 | 16735 | esac | 
 | 16736 | # We did not find ourselves, most probably we were run as `sh COMMAND' | 
 | 16737 | # in which case we are not to be found in the path. | 
 | 16738 | if test "x$as_myself" = x; then | 
 | 16739 |   as_myself=$0 | 
 | 16740 | fi | 
 | 16741 | if test ! -f "$as_myself"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16742 |   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | 
 | 16743 |   exit 1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16744 | fi | 
 | 16745 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16746 | # Unset variables that we do not need and which cause bugs (e.g. in | 
 | 16747 | # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1" | 
 | 16748 | # suppresses any "Segmentation fault" message there.  '((' could | 
 | 16749 | # trigger a bug in pdksh 5.2.14. | 
 | 16750 | for as_var in BASH_ENV ENV MAIL MAILPATH | 
 | 16751 | do eval test x\${$as_var+set} = xset \ | 
 | 16752 |   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16753 | done | 
 | 16754 | PS1='$ ' | 
 | 16755 | PS2='> ' | 
 | 16756 | PS4='+ ' | 
 | 16757 |  | 
 | 16758 | # NLS nuisances. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16759 | LC_ALL=C | 
 | 16760 | export LC_ALL | 
 | 16761 | LANGUAGE=C | 
 | 16762 | export LANGUAGE | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16763 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16764 | # CDPATH. | 
 | 16765 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | 
 | 16766 |  | 
 | 16767 |  | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16768 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | 
 | 16769 | # ---------------------------------------- | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16770 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | 
 | 16771 | # 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] | 16772 | # script with STATUS, using 1 if that was 0. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16773 | as_fn_error () | 
 | 16774 | { | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16775 |   as_status=$1; test $as_status -eq 0 && as_status=1 | 
 | 16776 |   if test "$4"; then | 
 | 16777 |     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 16778 |     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16779 |   fi | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16780 |   $as_echo "$as_me: error: $2" >&2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16781 |   as_fn_exit $as_status | 
 | 16782 | } # as_fn_error | 
 | 16783 |  | 
 | 16784 |  | 
 | 16785 | # as_fn_set_status STATUS | 
 | 16786 | # ----------------------- | 
 | 16787 | # Set $? to STATUS, without forking. | 
 | 16788 | as_fn_set_status () | 
 | 16789 | { | 
 | 16790 |   return $1 | 
 | 16791 | } # as_fn_set_status | 
 | 16792 |  | 
 | 16793 | # as_fn_exit STATUS | 
 | 16794 | # ----------------- | 
 | 16795 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | 
 | 16796 | as_fn_exit () | 
 | 16797 | { | 
 | 16798 |   set +e | 
 | 16799 |   as_fn_set_status $1 | 
 | 16800 |   exit $1 | 
 | 16801 | } # as_fn_exit | 
 | 16802 |  | 
 | 16803 | # as_fn_unset VAR | 
 | 16804 | # --------------- | 
 | 16805 | # Portably unset VAR. | 
 | 16806 | as_fn_unset () | 
 | 16807 | { | 
 | 16808 |   { eval $1=; unset $1;} | 
 | 16809 | } | 
 | 16810 | as_unset=as_fn_unset | 
 | 16811 | # as_fn_append VAR VALUE | 
 | 16812 | # ---------------------- | 
 | 16813 | # Append the text in VALUE to the end of the definition contained in VAR. Take | 
 | 16814 | # advantage of any shell optimizations that allow amortized linear growth over | 
 | 16815 | # repeated appends, instead of the typical quadratic growth present in naive | 
 | 16816 | # implementations. | 
 | 16817 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | 
 | 16818 |   eval 'as_fn_append () | 
 | 16819 |   { | 
 | 16820 |     eval $1+=\$2 | 
 | 16821 |   }' | 
 | 16822 | else | 
 | 16823 |   as_fn_append () | 
 | 16824 |   { | 
 | 16825 |     eval $1=\$$1\$2 | 
 | 16826 |   } | 
 | 16827 | fi # as_fn_append | 
 | 16828 |  | 
 | 16829 | # as_fn_arith ARG... | 
 | 16830 | # ------------------ | 
 | 16831 | # Perform arithmetic evaluation on the ARGs, and store the result in the | 
 | 16832 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | 
 | 16833 | # must be portable across $(()) and expr. | 
 | 16834 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | 
 | 16835 |   eval 'as_fn_arith () | 
 | 16836 |   { | 
 | 16837 |     as_val=$(( $* )) | 
 | 16838 |   }' | 
 | 16839 | else | 
 | 16840 |   as_fn_arith () | 
 | 16841 |   { | 
 | 16842 |     as_val=`expr "$@" || test $? -eq 1` | 
 | 16843 |   } | 
 | 16844 | fi # as_fn_arith | 
 | 16845 |  | 
 | 16846 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16847 | if expr a : '\(a\)' >/dev/null 2>&1 && | 
 | 16848 |    test "X`expr 00001 : '.*\(...\)'`" = X001; then | 
 | 16849 |   as_expr=expr | 
 | 16850 | else | 
 | 16851 |   as_expr=false | 
 | 16852 | fi | 
 | 16853 |  | 
 | 16854 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | 
 | 16855 |   as_basename=basename | 
 | 16856 | else | 
 | 16857 |   as_basename=false | 
 | 16858 | fi | 
 | 16859 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16860 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | 
 | 16861 |   as_dirname=dirname | 
 | 16862 | else | 
 | 16863 |   as_dirname=false | 
 | 16864 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16865 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16866 | as_me=`$as_basename -- "$0" || | 
 | 16867 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | 
 | 16868 | 	 X"$0" : 'X\(//\)$' \| \ | 
 | 16869 | 	 X"$0" : 'X\(/\)' \| . 2>/dev/null || | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16870 | $as_echo X/"$0" | | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16871 |     sed '/^.*\/\([^/][^/]*\)\/*$/{ | 
 | 16872 | 	    s//\1/ | 
 | 16873 | 	    q | 
 | 16874 | 	  } | 
 | 16875 | 	  /^X\/\(\/\/\)$/{ | 
 | 16876 | 	    s//\1/ | 
 | 16877 | 	    q | 
 | 16878 | 	  } | 
 | 16879 | 	  /^X\/\(\/\).*/{ | 
 | 16880 | 	    s//\1/ | 
 | 16881 | 	    q | 
 | 16882 | 	  } | 
 | 16883 | 	  s/.*/./; q'` | 
 | 16884 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16885 | # Avoid depending upon Character Ranges. | 
 | 16886 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | 
 | 16887 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | 
 | 16888 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | 
 | 16889 | as_cr_digits='0123456789' | 
 | 16890 | as_cr_alnum=$as_cr_Letters$as_cr_digits | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16891 |  | 
 | 16892 | ECHO_C= ECHO_N= ECHO_T= | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16893 | case `echo -n x` in #((((( | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16894 | -n*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16895 |   case `echo 'xy\c'` in | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16896 |   *c*) ECHO_T='	';;	# ECHO_T is single tab character. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16897 |   xy)  ECHO_C='\c';; | 
 | 16898 |   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null | 
 | 16899 |        ECHO_T='	';; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16900 |   esac;; | 
 | 16901 | *) | 
 | 16902 |   ECHO_N='-n';; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16903 | esac | 
| Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 16904 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16905 | rm -f conf$$ conf$$.exe conf$$.file | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16906 | if test -d conf$$.dir; then | 
 | 16907 |   rm -f conf$$.dir/conf$$.file | 
 | 16908 | else | 
 | 16909 |   rm -f conf$$.dir | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16910 |   mkdir conf$$.dir 2>/dev/null | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16911 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16912 | if (echo >conf$$.file) 2>/dev/null; then | 
 | 16913 |   if ln -s conf$$.file conf$$ 2>/dev/null; then | 
 | 16914 |     as_ln_s='ln -s' | 
 | 16915 |     # ... but there are two gotchas: | 
 | 16916 |     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | 
 | 16917 |     # 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] | 16918 |     # In both cases, we have to default to `cp -pR'. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16919 |     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] | 16920 |       as_ln_s='cp -pR' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16921 |   elif ln conf$$.file conf$$ 2>/dev/null; then | 
 | 16922 |     as_ln_s=ln | 
 | 16923 |   else | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 16924 |     as_ln_s='cp -pR' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16925 |   fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16926 | else | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 16927 |   as_ln_s='cp -pR' | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16928 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16929 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | 
 | 16930 | rmdir conf$$.dir 2>/dev/null | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16931 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16932 |  | 
 | 16933 | # as_fn_mkdir_p | 
 | 16934 | # ------------- | 
 | 16935 | # Create "$as_dir" as a directory, including parents if necessary. | 
 | 16936 | as_fn_mkdir_p () | 
 | 16937 | { | 
 | 16938 |  | 
 | 16939 |   case $as_dir in #( | 
 | 16940 |   -*) as_dir=./$as_dir;; | 
 | 16941 |   esac | 
 | 16942 |   test -d "$as_dir" || eval $as_mkdir_p || { | 
 | 16943 |     as_dirs= | 
 | 16944 |     while :; do | 
 | 16945 |       case $as_dir in #( | 
 | 16946 |       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | 
 | 16947 |       *) as_qdir=$as_dir;; | 
 | 16948 |       esac | 
 | 16949 |       as_dirs="'$as_qdir' $as_dirs" | 
 | 16950 |       as_dir=`$as_dirname -- "$as_dir" || | 
 | 16951 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
 | 16952 | 	 X"$as_dir" : 'X\(//\)[^/]' \| \ | 
 | 16953 | 	 X"$as_dir" : 'X\(//\)$' \| \ | 
 | 16954 | 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | 
 | 16955 | $as_echo X"$as_dir" | | 
 | 16956 |     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
 | 16957 | 	    s//\1/ | 
 | 16958 | 	    q | 
 | 16959 | 	  } | 
 | 16960 | 	  /^X\(\/\/\)[^/].*/{ | 
 | 16961 | 	    s//\1/ | 
 | 16962 | 	    q | 
 | 16963 | 	  } | 
 | 16964 | 	  /^X\(\/\/\)$/{ | 
 | 16965 | 	    s//\1/ | 
 | 16966 | 	    q | 
 | 16967 | 	  } | 
 | 16968 | 	  /^X\(\/\).*/{ | 
 | 16969 | 	    s//\1/ | 
 | 16970 | 	    q | 
 | 16971 | 	  } | 
 | 16972 | 	  s/.*/./; q'` | 
 | 16973 |       test -d "$as_dir" && break | 
 | 16974 |     done | 
 | 16975 |     test -z "$as_dirs" || eval "mkdir $as_dirs" | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16976 |   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16977 |  | 
 | 16978 |  | 
 | 16979 | } # as_fn_mkdir_p | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16980 | if mkdir -p . 2>/dev/null; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16981 |   as_mkdir_p='mkdir -p "$as_dir"' | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16982 | else | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16983 |   test -d ./-p && rmdir ./-p | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16984 |   as_mkdir_p=false | 
 | 16985 | fi | 
 | 16986 |  | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 16987 |  | 
 | 16988 | # as_fn_executable_p FILE | 
 | 16989 | # ----------------------- | 
 | 16990 | # Test if FILE is an executable regular file. | 
 | 16991 | as_fn_executable_p () | 
 | 16992 | { | 
 | 16993 |   test -f "$1" && test -x "$1" | 
 | 16994 | } # as_fn_executable_p | 
 | 16995 | as_test_x='test -x' | 
 | 16996 | as_executable_p=as_fn_executable_p | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16997 |  | 
 | 16998 | # Sed expression to map a string onto a valid CPP name. | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16999 | 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] | 17000 |  | 
 | 17001 | # Sed expression to map a string onto a valid variable name. | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17002 | 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] | 17003 |  | 
 | 17004 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17005 | exec 6>&1 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17006 | ## ----------------------------------- ## | 
 | 17007 | ## Main body of $CONFIG_STATUS script. ## | 
 | 17008 | ## ----------------------------------- ## | 
 | 17009 | _ASEOF | 
 | 17010 | 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] | 17011 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17012 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
 | 17013 | # 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] | 17014 | # report actual input values of CONFIG_FILES etc. instead of their | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17015 | # values after options handling. | 
 | 17016 | ac_log=" | 
| Yury Selivanov | 7aa5341 | 2015-05-30 10:57:56 -0400 | [diff] [blame] | 17017 | This file was extended by python $as_me 3.5, which was | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 17018 | generated by GNU Autoconf 2.69.  Invocation command line was | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17019 |  | 
 | 17020 |   CONFIG_FILES    = $CONFIG_FILES | 
 | 17021 |   CONFIG_HEADERS  = $CONFIG_HEADERS | 
 | 17022 |   CONFIG_LINKS    = $CONFIG_LINKS | 
 | 17023 |   CONFIG_COMMANDS = $CONFIG_COMMANDS | 
 | 17024 |   $ $0 $@ | 
 | 17025 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17026 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | 
 | 17027 | " | 
 | 17028 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17029 | _ACEOF | 
 | 17030 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17031 | case $ac_config_files in *" | 
 | 17032 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | 
 | 17033 | esac | 
 | 17034 |  | 
 | 17035 | case $ac_config_headers in *" | 
 | 17036 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | 
 | 17037 | esac | 
 | 17038 |  | 
 | 17039 |  | 
 | 17040 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17041 | # Files that config.status was made for. | 
| Charles-François Natali | 6613c18 | 2011-11-27 12:41:06 +0100 | [diff] [blame] | 17042 | config_files="$ac_config_files" | 
 | 17043 | config_headers="$ac_config_headers" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17044 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17045 | _ACEOF | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17046 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17047 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17048 | ac_cs_usage="\ | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17049 | \`$as_me' instantiates files and other configuration actions | 
 | 17050 | from templates according to the current configuration.  Unless the files | 
 | 17051 | 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] | 17052 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17053 | Usage: $0 [OPTION]... [TAG]... | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17054 |  | 
 | 17055 |   -h, --help       print this help, then exit | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17056 |   -V, --version    print version number and configuration settings, then exit | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17057 |       --config     print configuration, then exit | 
 | 17058 |   -q, --quiet, --silent | 
 | 17059 |                    do not print progress messages | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17060 |   -d, --debug      don't remove temporary files | 
 | 17061 |       --recheck    update $as_me by reconfiguring in the same conditions | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17062 |       --file=FILE[:TEMPLATE] | 
 | 17063 |                    instantiate the configuration file FILE | 
 | 17064 |       --header=FILE[:TEMPLATE] | 
 | 17065 |                    instantiate the configuration header FILE | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17066 |  | 
 | 17067 | Configuration files: | 
 | 17068 | $config_files | 
 | 17069 |  | 
 | 17070 | Configuration headers: | 
 | 17071 | $config_headers | 
 | 17072 |  | 
| Benjamin Peterson | c2fcbf4 | 2016-08-03 22:01:32 -0700 | [diff] [blame] | 17073 | Report bugs to <https://bugs.python.org/>." | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 17074 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17075 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17076 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
 | 17077 | 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] | 17078 | ac_cs_version="\\ | 
| Yury Selivanov | 7aa5341 | 2015-05-30 10:57:56 -0400 | [diff] [blame] | 17079 | python config.status 3.5 | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 17080 | configured by $0, generated by GNU Autoconf 2.69, | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17081 |   with options \\"\$ac_cs_config\\" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17082 |  | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 17083 | Copyright (C) 2012 Free Software Foundation, Inc. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17084 | This config.status script is free software; the Free Software Foundation | 
 | 17085 | gives unlimited permission to copy, distribute and modify it." | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17086 |  | 
 | 17087 | ac_pwd='$ac_pwd' | 
 | 17088 | srcdir='$srcdir' | 
 | 17089 | INSTALL='$INSTALL' | 
| Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 17090 | MKDIR_P='$MKDIR_P' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17091 | test -n "\$AWK" || AWK=awk | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17092 | _ACEOF | 
 | 17093 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17094 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
 | 17095 | # 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] | 17096 | ac_need_defaults=: | 
 | 17097 | while test $# != 0 | 
 | 17098 | do | 
 | 17099 |   case $1 in | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17100 |   --*=?*) | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17101 |     ac_option=`expr "X$1" : 'X\([^=]*\)='` | 
 | 17102 |     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17103 |     ac_shift=: | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17104 |     ;; | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17105 |   --*=) | 
 | 17106 |     ac_option=`expr "X$1" : 'X\([^=]*\)='` | 
 | 17107 |     ac_optarg= | 
 | 17108 |     ac_shift=: | 
 | 17109 |     ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17110 |   *) | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17111 |     ac_option=$1 | 
 | 17112 |     ac_optarg=$2 | 
 | 17113 |     ac_shift=shift | 
 | 17114 |     ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17115 |   esac | 
 | 17116 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17117 |   case $ac_option in | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17118 |   # Handling of the options. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17119 |   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | 
 | 17120 |     ac_cs_recheck=: ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17121 |   --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17122 |     $as_echo "$ac_cs_version"; exit ;; | 
 | 17123 |   --config | --confi | --conf | --con | --co | --c ) | 
 | 17124 |     $as_echo "$ac_cs_config"; exit ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17125 |   --debug | --debu | --deb | --de | --d | -d ) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17126 |     debug=: ;; | 
 | 17127 |   --file | --fil | --fi | --f ) | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17128 |     $ac_shift | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17129 |     case $ac_optarg in | 
 | 17130 |     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17131 |     '') as_fn_error $? "missing file argument" ;; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17132 |     esac | 
 | 17133 |     as_fn_append CONFIG_FILES " '$ac_optarg'" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17134 |     ac_need_defaults=false;; | 
 | 17135 |   --header | --heade | --head | --hea ) | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17136 |     $ac_shift | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17137 |     case $ac_optarg in | 
 | 17138 |     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | 
 | 17139 |     esac | 
 | 17140 |     as_fn_append CONFIG_HEADERS " '$ac_optarg'" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17141 |     ac_need_defaults=false;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17142 |   --he | --h) | 
 | 17143 |     # Conflict between --help and --header | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17144 |     as_fn_error $? "ambiguous option: \`$1' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17145 | Try \`$0 --help' for more information.";; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17146 |   --help | --hel | -h ) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17147 |     $as_echo "$ac_cs_usage"; exit ;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17148 |   -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
 | 17149 |   | -silent | --silent | --silen | --sile | --sil | --si | --s) | 
 | 17150 |     ac_cs_silent=: ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17151 |  | 
 | 17152 |   # This is an error. | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17153 |   -*) as_fn_error $? "unrecognized option: \`$1' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17154 | Try \`$0 --help' for more information." ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17155 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17156 |   *) as_fn_append ac_config_targets " $1" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17157 |      ac_need_defaults=false ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17158 |  | 
 | 17159 |   esac | 
 | 17160 |   shift | 
 | 17161 | done | 
 | 17162 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17163 | ac_configure_extra_args= | 
 | 17164 |  | 
 | 17165 | if $ac_cs_silent; then | 
 | 17166 |   exec 6>/dev/null | 
 | 17167 |   ac_configure_extra_args="$ac_configure_extra_args --silent" | 
 | 17168 | fi | 
 | 17169 |  | 
 | 17170 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17171 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17172 | if \$ac_cs_recheck; then | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 17173 |   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] | 17174 |   shift | 
 | 17175 |   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | 
 | 17176 |   CONFIG_SHELL='$SHELL' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17177 |   export CONFIG_SHELL | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17178 |   exec "\$@" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17179 | fi | 
 | 17180 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17181 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17182 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17183 | exec 5>>config.log | 
 | 17184 | { | 
 | 17185 |   echo | 
 | 17186 |   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | 
 | 17187 | ## Running $as_me. ## | 
 | 17188 | _ASBOX | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17189 |   $as_echo "$ac_log" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17190 | } >&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17191 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17192 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17193 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17194 | _ACEOF | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17195 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17196 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17197 |  | 
 | 17198 | # Handling of arguments. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17199 | for ac_config_target in $ac_config_targets | 
 | 17200 | do | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17201 |   case $ac_config_target in | 
 | 17202 |     "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; | 
 | 17203 |     "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;; | 
 | 17204 |     "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;; | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 17205 |     "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;; | 
 | 17206 |     "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] | 17207 |     "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; | 
 | 17208 |     "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;; | 
| Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17209 |     "Misc/python.pc") CONFIG_FILES="$CONFIG_FILES Misc/python.pc" ;; | 
| doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 17210 |     "Misc/python-config.sh") CONFIG_FILES="$CONFIG_FILES Misc/python-config.sh" ;; | 
| Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 17211 |     "Modules/ld_so_aix") CONFIG_FILES="$CONFIG_FILES Modules/ld_so_aix" ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17212 |  | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17213 |   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17214 |   esac | 
 | 17215 | done | 
 | 17216 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17217 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17218 | # If the user did not use the arguments to specify the items to instantiate, | 
 | 17219 | # then the envvar interface is used.  Set only those that are not. | 
 | 17220 | # We use the long form for the default assignment because of an extremely | 
 | 17221 | # bizarre bug on SunOS 4.1.3. | 
 | 17222 | if $ac_need_defaults; then | 
 | 17223 |   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | 
 | 17224 |   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | 
 | 17225 | fi | 
 | 17226 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17227 | # Have a temporary directory for convenience.  Make it in the build tree | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17228 | # 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] | 17229 | # creating and moving files from /tmp can sometimes cause problems. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17230 | # Hook for its removal unless debugging. | 
 | 17231 | # Note that there is a small window in which the directory will not be cleaned: | 
 | 17232 | # 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] | 17233 | $debug || | 
 | 17234 | { | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17235 |   tmp= ac_tmp= | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17236 |   trap 'exit_status=$? | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17237 |   : "${ac_tmp:=$tmp}" | 
 | 17238 |   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17239 | ' 0 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17240 |   trap 'as_fn_exit 1' 1 2 13 15 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17241 | } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17242 | # Create a (secure) tmp directory for tmp files. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17243 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17244 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17245 |   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17246 |   test -d "$tmp" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17247 | }  || | 
 | 17248 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17249 |   tmp=./conf$$-$RANDOM | 
 | 17250 |   (umask 077 && mkdir "$tmp") | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17251 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17252 | ac_tmp=$tmp | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17253 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17254 | # Set up the scripts for CONFIG_FILES section. | 
 | 17255 | # No need to generate them if there are no CONFIG_FILES. | 
 | 17256 | # This happens for instance with `./config.status config.h'. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17257 | if test -n "$CONFIG_FILES"; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17258 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17259 |  | 
 | 17260 | ac_cr=`echo X | tr X '\015'` | 
 | 17261 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | 
 | 17262 | # But we know of no other shell where ac_cr would be empty at this | 
 | 17263 | # point, so we can use a bashism as a fallback. | 
 | 17264 | if test "x$ac_cr" = x; then | 
 | 17265 |   eval ac_cr=\$\'\\r\' | 
 | 17266 | fi | 
 | 17267 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | 
 | 17268 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17269 |   ac_cs_awk_cr='\\r' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17270 | else | 
 | 17271 |   ac_cs_awk_cr=$ac_cr | 
 | 17272 | fi | 
 | 17273 |  | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17274 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17275 | _ACEOF | 
 | 17276 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17277 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17278 | { | 
 | 17279 |   echo "cat >conf$$subs.awk <<_ACEOF" && | 
 | 17280 |   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | 
 | 17281 |   echo "_ACEOF" | 
 | 17282 | } >conf$$subs.sh || | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17283 |   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | 
 | 17284 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17285 | ac_delim='%!_!# ' | 
 | 17286 | for ac_last_try in false false false false false :; do | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17287 |   . ./conf$$subs.sh || | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17288 |     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17289 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17290 |   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | 
 | 17291 |   if test $ac_delim_n = $ac_delim_num; then | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17292 |     break | 
 | 17293 |   elif $ac_last_try; then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17294 |     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17295 |   else | 
 | 17296 |     ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17297 |   fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17298 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17299 | rm -f conf$$subs.sh | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17300 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17301 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17302 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17303 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17304 | sed -n ' | 
 | 17305 | h | 
 | 17306 | s/^/S["/; s/!.*/"]=/ | 
 | 17307 | p | 
 | 17308 | g | 
 | 17309 | s/^[^!]*!// | 
 | 17310 | :repl | 
 | 17311 | t repl | 
 | 17312 | s/'"$ac_delim"'$// | 
 | 17313 | t delim | 
 | 17314 | :nl | 
 | 17315 | h | 
 | 17316 | s/\(.\{148\}\)..*/\1/ | 
 | 17317 | t more1 | 
 | 17318 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | 
 | 17319 | p | 
 | 17320 | n | 
 | 17321 | b repl | 
 | 17322 | :more1 | 
 | 17323 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | 
 | 17324 | p | 
 | 17325 | g | 
 | 17326 | s/.\{148\}// | 
 | 17327 | t nl | 
 | 17328 | :delim | 
 | 17329 | h | 
 | 17330 | s/\(.\{148\}\)..*/\1/ | 
 | 17331 | t more2 | 
 | 17332 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | 
 | 17333 | p | 
 | 17334 | b | 
 | 17335 | :more2 | 
 | 17336 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | 
 | 17337 | p | 
 | 17338 | g | 
 | 17339 | s/.\{148\}// | 
 | 17340 | t delim | 
 | 17341 | ' <conf$$subs.awk | sed ' | 
 | 17342 | /^[^""]/{ | 
 | 17343 |   N | 
 | 17344 |   s/\n// | 
 | 17345 | } | 
 | 17346 | ' >>$CONFIG_STATUS || ac_write_fail=1 | 
 | 17347 | rm -f conf$$subs.awk | 
 | 17348 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
 | 17349 | _ACAWK | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17350 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17351 |   for (key in S) S_is_set[key] = 1 | 
 | 17352 |   FS = "" | 
 | 17353 |  | 
 | 17354 | } | 
 | 17355 | { | 
 | 17356 |   line = $ 0 | 
 | 17357 |   nfields = split(line, field, "@") | 
 | 17358 |   substed = 0 | 
 | 17359 |   len = length(field[1]) | 
 | 17360 |   for (i = 2; i < nfields; i++) { | 
 | 17361 |     key = field[i] | 
 | 17362 |     keylen = length(key) | 
 | 17363 |     if (S_is_set[key]) { | 
 | 17364 |       value = S[key] | 
 | 17365 |       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | 
 | 17366 |       len += length(value) + length(field[++i]) | 
 | 17367 |       substed = 1 | 
 | 17368 |     } else | 
 | 17369 |       len += 1 + keylen | 
 | 17370 |   } | 
 | 17371 |  | 
 | 17372 |   print line | 
 | 17373 | } | 
 | 17374 |  | 
 | 17375 | _ACAWK | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17376 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17377 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
 | 17378 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | 
 | 17379 |   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | 
 | 17380 | else | 
 | 17381 |   cat | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17382 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17383 |   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | 
| Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 17384 | _ACEOF | 
 | 17385 |  | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17386 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), | 
 | 17387 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17388 | # trailing colons and then remove the whole line if VPATH becomes empty | 
 | 17389 | # (actually we leave an empty line to preserve line numbers). | 
 | 17390 | if test "x$srcdir" = x.; then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17391 |   ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{ | 
 | 17392 | h | 
 | 17393 | s/// | 
 | 17394 | s/^/:/ | 
 | 17395 | s/[	 ]*$/:/ | 
 | 17396 | s/:\$(srcdir):/:/g | 
 | 17397 | s/:\${srcdir}:/:/g | 
 | 17398 | s/:@srcdir@:/:/g | 
 | 17399 | s/^:*// | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17400 | s/:*$// | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17401 | x | 
 | 17402 | s/\(=[	 ]*\).*/\1/ | 
 | 17403 | G | 
 | 17404 | s/\n// | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17405 | s/^[^=]*=[	 ]*$// | 
 | 17406 | }' | 
 | 17407 | fi | 
 | 17408 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17409 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17410 | fi # test -n "$CONFIG_FILES" | 
 | 17411 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17412 | # Set up the scripts for CONFIG_HEADERS section. | 
 | 17413 | # No need to generate them if there are no CONFIG_HEADERS. | 
 | 17414 | # This happens for instance with `./config.status Makefile'. | 
 | 17415 | if test -n "$CONFIG_HEADERS"; then | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17416 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17417 | BEGIN { | 
 | 17418 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17419 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17420 | # Transform confdefs.h into an awk script `defines.awk', embedded as | 
 | 17421 | # here-document in config.status, that substitutes the proper values into | 
 | 17422 | # config.h.in to produce config.h. | 
 | 17423 |  | 
 | 17424 | # Create a delimiter string that does not exist in confdefs.h, to ease | 
 | 17425 | # handling of long lines. | 
 | 17426 | ac_delim='%!_!# ' | 
 | 17427 | for ac_last_try in false false :; do | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17428 |   ac_tt=`sed -n "/$ac_delim/p" confdefs.h` | 
 | 17429 |   if test -z "$ac_tt"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17430 |     break | 
 | 17431 |   elif $ac_last_try; then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17432 |     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17433 |   else | 
 | 17434 |     ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | 
 | 17435 |   fi | 
 | 17436 | done | 
 | 17437 |  | 
 | 17438 | # For the awk script, D is an array of macro values keyed by name, | 
 | 17439 | # likewise P contains macro parameters if any.  Preserve backslash | 
 | 17440 | # newline sequences. | 
 | 17441 |  | 
 | 17442 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | 
 | 17443 | sed -n ' | 
 | 17444 | s/.\{148\}/&'"$ac_delim"'/g | 
 | 17445 | t rset | 
 | 17446 | :rset | 
 | 17447 | s/^[	 ]*#[	 ]*define[	 ][	 ]*/ / | 
 | 17448 | t def | 
 | 17449 | d | 
 | 17450 | :def | 
 | 17451 | s/\\$// | 
 | 17452 | t bsnl | 
 | 17453 | s/["\\]/\\&/g | 
 | 17454 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\ | 
 | 17455 | D["\1"]=" \3"/p | 
 | 17456 | s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p | 
 | 17457 | d | 
 | 17458 | :bsnl | 
 | 17459 | s/["\\]/\\&/g | 
 | 17460 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\ | 
 | 17461 | D["\1"]=" \3\\\\\\n"\\/p | 
 | 17462 | t cont | 
 | 17463 | s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | 
 | 17464 | t cont | 
 | 17465 | d | 
 | 17466 | :cont | 
 | 17467 | n | 
 | 17468 | s/.\{148\}/&'"$ac_delim"'/g | 
 | 17469 | t clear | 
 | 17470 | :clear | 
 | 17471 | s/\\$// | 
 | 17472 | t bsnlc | 
 | 17473 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | 
 | 17474 | d | 
 | 17475 | :bsnlc | 
 | 17476 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | 
 | 17477 | b cont | 
 | 17478 | ' <confdefs.h | sed ' | 
 | 17479 | s/'"$ac_delim"'/"\\\ | 
 | 17480 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | 
 | 17481 |  | 
 | 17482 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
 | 17483 |   for (key in D) D_is_set[key] = 1 | 
 | 17484 |   FS = "" | 
 | 17485 | } | 
 | 17486 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | 
 | 17487 |   line = \$ 0 | 
 | 17488 |   split(line, arg, " ") | 
 | 17489 |   if (arg[1] == "#") { | 
 | 17490 |     defundef = arg[2] | 
 | 17491 |     mac1 = arg[3] | 
 | 17492 |   } else { | 
 | 17493 |     defundef = substr(arg[1], 2) | 
 | 17494 |     mac1 = arg[2] | 
 | 17495 |   } | 
 | 17496 |   split(mac1, mac2, "(") #) | 
 | 17497 |   macro = mac2[1] | 
 | 17498 |   prefix = substr(line, 1, index(line, defundef) - 1) | 
 | 17499 |   if (D_is_set[macro]) { | 
 | 17500 |     # Preserve the white space surrounding the "#". | 
 | 17501 |     print prefix "define", macro P[macro] D[macro] | 
 | 17502 |     next | 
 | 17503 |   } else { | 
 | 17504 |     # Replace #undef with comments.  This is necessary, for example, | 
 | 17505 |     # in the case of _POSIX_SOURCE, which is predefined and required | 
 | 17506 |     # on some systems where configure will not decide to define it. | 
 | 17507 |     if (defundef == "undef") { | 
 | 17508 |       print "/*", prefix defundef, macro, "*/" | 
 | 17509 |       next | 
 | 17510 |     } | 
 | 17511 |   } | 
 | 17512 | } | 
 | 17513 | { print } | 
 | 17514 | _ACAWK | 
 | 17515 | _ACEOF | 
 | 17516 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17517 |   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17518 | fi # test -n "$CONFIG_HEADERS" | 
 | 17519 |  | 
 | 17520 |  | 
 | 17521 | eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    " | 
 | 17522 | shift | 
 | 17523 | for ac_tag | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17524 | do | 
 | 17525 |   case $ac_tag in | 
 | 17526 |   :[FHLC]) ac_mode=$ac_tag; continue;; | 
 | 17527 |   esac | 
 | 17528 |   case $ac_mode$ac_tag in | 
 | 17529 |   :[FHL]*:*);; | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17530 |   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17531 |   :[FH]-) ac_tag=-:-;; | 
 | 17532 |   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | 
 | 17533 |   esac | 
 | 17534 |   ac_save_IFS=$IFS | 
 | 17535 |   IFS=: | 
 | 17536 |   set x $ac_tag | 
 | 17537 |   IFS=$ac_save_IFS | 
 | 17538 |   shift | 
 | 17539 |   ac_file=$1 | 
 | 17540 |   shift | 
 | 17541 |  | 
 | 17542 |   case $ac_mode in | 
 | 17543 |   :L) ac_source=$1;; | 
 | 17544 |   :[FH]) | 
 | 17545 |     ac_file_inputs= | 
 | 17546 |     for ac_f | 
 | 17547 |     do | 
 | 17548 |       case $ac_f in | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17549 |       -) ac_f="$ac_tmp/stdin";; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17550 |       *) # Look for the file first in the build tree, then in the source tree | 
 | 17551 | 	 # (if the path is not absolute).  The absolute path cannot be DOS-style, | 
 | 17552 | 	 # because $ac_f cannot contain `:'. | 
 | 17553 | 	 test -f "$ac_f" || | 
 | 17554 | 	   case $ac_f in | 
 | 17555 | 	   [\\/$]*) false;; | 
 | 17556 | 	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | 
 | 17557 | 	   esac || | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17558 | 	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17559 |       esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17560 |       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | 
 | 17561 |       as_fn_append ac_file_inputs " '$ac_f'" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17562 |     done | 
 | 17563 |  | 
 | 17564 |     # Let's still pretend it is `configure' which instantiates (i.e., don't | 
 | 17565 |     # use $as_me), people would be surprised to read: | 
 | 17566 |     #    /* config.h.  Generated by config.status.  */ | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17567 |     configure_input='Generated from '` | 
 | 17568 | 	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | 
 | 17569 | 	`' by configure.' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17570 |     if test x"$ac_file" != x-; then | 
 | 17571 |       configure_input="$ac_file.  $configure_input" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17572 |       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | 
 | 17573 | $as_echo "$as_me: creating $ac_file" >&6;} | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17574 |     fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17575 |     # Neutralize special characters interpreted by sed in replacement strings. | 
 | 17576 |     case $configure_input in #( | 
 | 17577 |     *\&* | *\|* | *\\* ) | 
 | 17578 |        ac_sed_conf_input=`$as_echo "$configure_input" | | 
 | 17579 |        sed 's/[\\\\&|]/\\\\&/g'`;; #( | 
 | 17580 |     *) ac_sed_conf_input=$configure_input;; | 
 | 17581 |     esac | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17582 |  | 
 | 17583 |     case $ac_tag in | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17584 |     *:-:* | *:-) cat >"$ac_tmp/stdin" \ | 
 | 17585 |       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17586 |     esac | 
 | 17587 |     ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17588 |   esac | 
 | 17589 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17590 |   ac_dir=`$as_dirname -- "$ac_file" || | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17591 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17592 | 	 X"$ac_file" : 'X\(//\)[^/]' \| \ | 
 | 17593 | 	 X"$ac_file" : 'X\(//\)$' \| \ | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17594 | 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17595 | $as_echo X"$ac_file" | | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17596 |     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
 | 17597 | 	    s//\1/ | 
 | 17598 | 	    q | 
 | 17599 | 	  } | 
 | 17600 | 	  /^X\(\/\/\)[^/].*/{ | 
 | 17601 | 	    s//\1/ | 
 | 17602 | 	    q | 
 | 17603 | 	  } | 
 | 17604 | 	  /^X\(\/\/\)$/{ | 
 | 17605 | 	    s//\1/ | 
 | 17606 | 	    q | 
 | 17607 | 	  } | 
 | 17608 | 	  /^X\(\/\).*/{ | 
 | 17609 | 	    s//\1/ | 
 | 17610 | 	    q | 
 | 17611 | 	  } | 
 | 17612 | 	  s/.*/./; q'` | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17613 |   as_dir="$ac_dir"; as_fn_mkdir_p | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17614 |   ac_builddir=. | 
 | 17615 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17616 | case "$ac_dir" in | 
 | 17617 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
 | 17618 | *) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17619 |   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17620 |   # A ".." for each directory in $ac_dir_suffix. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17621 |   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] | 17622 |   case $ac_top_builddir_sub in | 
 | 17623 |   "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
 | 17624 |   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;; | 
 | 17625 |   esac ;; | 
 | 17626 | esac | 
 | 17627 | ac_abs_top_builddir=$ac_pwd | 
 | 17628 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | 
 | 17629 | # for backward compatibility: | 
 | 17630 | ac_top_builddir=$ac_top_build_prefix | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17631 |  | 
 | 17632 | case $srcdir in | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17633 |   .)  # We are building in place. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17634 |     ac_srcdir=. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17635 |     ac_top_srcdir=$ac_top_builddir_sub | 
 | 17636 |     ac_abs_top_srcdir=$ac_pwd ;; | 
 | 17637 |   [\\/]* | ?:[\\/]* )  # Absolute name. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17638 |     ac_srcdir=$srcdir$ac_dir_suffix; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17639 |     ac_top_srcdir=$srcdir | 
 | 17640 |     ac_abs_top_srcdir=$srcdir ;; | 
 | 17641 |   *) # Relative name. | 
 | 17642 |     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | 
 | 17643 |     ac_top_srcdir=$ac_top_build_prefix$srcdir | 
 | 17644 |     ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17645 | esac | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17646 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17647 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17648 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17649 |   case $ac_mode in | 
 | 17650 |   :F) | 
 | 17651 |   # | 
 | 17652 |   # CONFIG_FILE | 
 | 17653 |   # | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17654 |  | 
 | 17655 |   case $INSTALL in | 
 | 17656 |   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17657 |   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17658 |   esac | 
| Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 17659 |   ac_MKDIR_P=$MKDIR_P | 
 | 17660 |   case $MKDIR_P in | 
 | 17661 |   [\\/$]* | ?:[\\/]* ) ;; | 
 | 17662 |   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | 
 | 17663 |   esac | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 17664 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17665 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17666 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17667 | # If the template does not know about datarootdir, expand it. | 
 | 17668 | # FIXME: This hack should be removed a few years after 2.60. | 
 | 17669 | ac_datarootdir_hack=; ac_datarootdir_seen= | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17670 | ac_sed_dataroot=' | 
 | 17671 | /datarootdir/ { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17672 |   p | 
 | 17673 |   q | 
 | 17674 | } | 
 | 17675 | /@datadir@/p | 
 | 17676 | /@docdir@/p | 
 | 17677 | /@infodir@/p | 
 | 17678 | /@localedir@/p | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17679 | /@mandir@/p' | 
 | 17680 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17681 | *datarootdir*) ac_datarootdir_seen=yes;; | 
 | 17682 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17683 |   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | 
 | 17684 | $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] | 17685 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17686 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17687 |   ac_datarootdir_hack=' | 
 | 17688 |   s&@datadir@&$datadir&g | 
 | 17689 |   s&@docdir@&$docdir&g | 
 | 17690 |   s&@infodir@&$infodir&g | 
 | 17691 |   s&@localedir@&$localedir&g | 
 | 17692 |   s&@mandir@&$mandir&g | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17693 |   s&\\\${datarootdir}&$datarootdir&g' ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17694 | esac | 
 | 17695 | _ACEOF | 
 | 17696 |  | 
 | 17697 | # Neutralize VPATH when `$srcdir' = `.'. | 
 | 17698 | # Shell code in configure.ac might set extrasub. | 
 | 17699 | # FIXME: do we really want to maintain this feature? | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17700 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
 | 17701 | ac_sed_extra="$ac_vpsub | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17702 | $extrasub | 
 | 17703 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17704 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17705 | :t | 
 | 17706 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17707 | s|@configure_input@|$ac_sed_conf_input|;t t | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17708 | s&@top_builddir@&$ac_top_builddir_sub&;t t | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17709 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17710 | s&@srcdir@&$ac_srcdir&;t t | 
 | 17711 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | 
 | 17712 | s&@top_srcdir@&$ac_top_srcdir&;t t | 
 | 17713 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | 
 | 17714 | s&@builddir@&$ac_builddir&;t t | 
 | 17715 | s&@abs_builddir@&$ac_abs_builddir&;t t | 
 | 17716 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | 
 | 17717 | s&@INSTALL@&$ac_INSTALL&;t t | 
| Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 17718 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17719 | $ac_datarootdir_hack | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17720 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17721 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ | 
 | 17722 |   >$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] | 17723 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17724 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17725 |   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && | 
 | 17726 |   { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \ | 
 | 17727 |       "$ac_tmp/out"`; test -z "$ac_out"; } && | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17728 |   { $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] | 17729 | which seems to be undefined.  Please make sure it is defined" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17730 | $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] | 17731 | which seems to be undefined.  Please make sure it is defined" >&2;} | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 17732 |  | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17733 |   rm -f "$ac_tmp/stdin" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17734 |   case $ac_file in | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17735 |   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; | 
 | 17736 |   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17737 |   esac \ | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17738 |   || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17739 |  ;; | 
 | 17740 |   :H) | 
 | 17741 |   # | 
 | 17742 |   # CONFIG_HEADER | 
 | 17743 |   # | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17744 |   if test x"$ac_file" != x-; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17745 |     { | 
 | 17746 |       $as_echo "/* $configure_input  */" \ | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17747 |       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" | 
 | 17748 |     } >"$ac_tmp/config.h" \ | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17749 |       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17750 |     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] | 17751 |       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | 
 | 17752 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17753 |     else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17754 |       rm -f "$ac_file" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17755 |       mv "$ac_tmp/config.h" "$ac_file" \ | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17756 | 	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17757 |     fi | 
 | 17758 |   else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17759 |     $as_echo "/* $configure_input  */" \ | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17760 |       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17761 |       || as_fn_error $? "could not create -" "$LINENO" 5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17762 |   fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17763 |  ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17764 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17765 |  | 
 | 17766 |   esac | 
 | 17767 |  | 
| Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 17768 |  | 
 | 17769 |   case $ac_file$ac_mode in | 
 | 17770 |     "Modules/ld_so_aix":F) chmod +x Modules/ld_so_aix ;; | 
 | 17771 |  | 
 | 17772 |   esac | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17773 | done # for ac_tag | 
 | 17774 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17775 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17776 | as_fn_exit 0 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17777 | _ACEOF | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17778 | ac_clean_files=$ac_clean_files_save | 
 | 17779 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17780 | test $ac_write_fail = 0 || | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17781 |   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17782 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17783 |  | 
 | 17784 | # configure is writing to config.log, and then calls config.status. | 
 | 17785 | # config.status does its own redirection, appending to config.log. | 
 | 17786 | # Unfortunately, on DOS this fails, as config.log is still kept open | 
 | 17787 | # by configure, so config.status won't be able to write to it; its | 
 | 17788 | # output is simply discarded.  So we exec the FD to /dev/null, | 
 | 17789 | # effectively closing config.log, so it can be properly (re)opened and | 
 | 17790 | # appended to by config.status.  When coming back to configure, we | 
 | 17791 | # need to make the FD available again. | 
 | 17792 | if test "$no_create" != yes; then | 
 | 17793 |   ac_cs_success=: | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17794 |   ac_config_status_args= | 
 | 17795 |   test "$silent" = yes && | 
 | 17796 |     ac_config_status_args="$ac_config_status_args --quiet" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17797 |   exec 5>/dev/null | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17798 |   $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] | 17799 |   exec 5>>config.log | 
 | 17800 |   # Use ||, not &&, to avoid exiting from the if with $? = 1, which | 
 | 17801 |   # would make configure fail if this is the last instruction. | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17802 |   $ac_cs_success || as_fn_exit 1 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17803 | fi | 
 | 17804 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | 
 | 17805 |   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | 
 | 17806 | $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] | 17807 | fi | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17808 |  | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 17809 |  | 
| Christian Heimes | 75ed890 | 2013-11-20 01:11:18 +0100 | [diff] [blame] | 17810 | echo "creating Modules/Setup" >&6 | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 17811 | if test ! -f Modules/Setup | 
 | 17812 | then | 
 | 17813 | 	cp $srcdir/Modules/Setup.dist Modules/Setup | 
 | 17814 | fi | 
 | 17815 |  | 
| Christian Heimes | 75ed890 | 2013-11-20 01:11:18 +0100 | [diff] [blame] | 17816 | echo "creating Modules/Setup.local" >&6 | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 17817 | if test ! -f Modules/Setup.local | 
 | 17818 | then | 
 | 17819 | 	echo "# Edit this file for local setup changes" >Modules/Setup.local | 
 | 17820 | fi | 
 | 17821 |  | 
| Christian Heimes | 75ed890 | 2013-11-20 01:11:18 +0100 | [diff] [blame] | 17822 | echo "creating Makefile" >&6 | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 17823 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ | 
 | 17824 | 			-s Modules Modules/Setup.config \ | 
| Neil Schemenauer | f8b71c5 | 2001-04-21 17:41:16 +0000 | [diff] [blame] | 17825 | 			Modules/Setup.local Modules/Setup | 
| Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 17826 | mv config.c Modules | 
| Brett Cannon | 8c94f97 | 2016-09-06 17:15:21 -0700 | [diff] [blame] | 17827 |  | 
 | 17828 | if test "$Py_OPT" = 'false' -a "$Py_DEBUG" != 'true'; then | 
 | 17829 |     echo "" >&6 | 
 | 17830 |     echo "" >&6 | 
 | 17831 |     echo "If you want a release build with all optimizations active (LTO, PGO, etc)," | 
 | 17832 |     echo "please run ./configure --with-optimizations" >&6 | 
 | 17833 |     echo "" >&6 | 
 | 17834 |     echo "" >&6 | 
 | 17835 | fi | 
 | 17836 |  |