| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1 | #! /bin/sh | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 2 | # From configure.ac Revision. | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3 | # Guess values for system-dependent variables and create Makefiles. | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 4 | # Generated by GNU Autoconf 2.69 for python 2.7. | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5 | # | 
| Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 6 | # Report bugs to <http://bugs.python.org/>. | 
| Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 7 | # | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8 | # | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 9 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10 | # | 
 | 11 | # | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12 | # This configure script is free software; the Free Software Foundation | 
 | 13 | # gives unlimited permission to copy, distribute and modify it. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14 | ## -------------------- ## | 
 | 15 | ## M4sh Initialization. ## | 
 | 16 | ## -------------------- ## | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18 | # Be more Bourne compatible | 
 | 19 | DUALCASE=1; export DUALCASE # for MKS sh | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 20 | 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] | 21 |   emulate sh | 
 | 22 |   NULLCMD=: | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 23 |   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24 |   # is contrary to our usage.  Disable this feature. | 
 | 25 |   alias -g '${1+"$@"}'='"$@"' | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26 |   setopt NO_GLOB_SUBST | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 27 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 28 |   case `(set -o) 2>/dev/null` in #( | 
 | 29 |   *posix*) : | 
 | 30 |     set -o posix ;; #( | 
 | 31 |   *) : | 
 | 32 |      ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 33 | esac | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 34 | fi | 
 | 35 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 36 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 37 | as_nl=' | 
 | 38 | ' | 
 | 39 | export as_nl | 
 | 40 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | 
 | 41 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | 
 | 42 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | 
 | 43 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | 
 | 44 | # Prefer a ksh shell builtin over an external printf program on Solaris, | 
 | 45 | # but without wasting forks for bash or zsh. | 
 | 46 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | 
 | 47 |     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | 
 | 48 |   as_echo='print -r --' | 
 | 49 |   as_echo_n='print -rn --' | 
 | 50 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | 
 | 51 |   as_echo='printf %s\n' | 
 | 52 |   as_echo_n='printf %s' | 
 | 53 | else | 
 | 54 |   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | 
 | 55 |     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | 
 | 56 |     as_echo_n='/usr/ucb/echo -n' | 
 | 57 |   else | 
 | 58 |     as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | 
 | 59 |     as_echo_n_body='eval | 
 | 60 |       arg=$1; | 
 | 61 |       case $arg in #( | 
 | 62 |       *"$as_nl"*) | 
 | 63 | 	expr "X$arg" : "X\\(.*\\)$as_nl"; | 
 | 64 | 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | 
 | 65 |       esac; | 
 | 66 |       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | 
 | 67 |     ' | 
 | 68 |     export as_echo_n_body | 
 | 69 |     as_echo_n='sh -c $as_echo_n_body as_echo' | 
 | 70 |   fi | 
 | 71 |   export as_echo_body | 
 | 72 |   as_echo='sh -c $as_echo_body as_echo' | 
 | 73 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 74 |  | 
 | 75 | # The user is always right. | 
 | 76 | if test "${PATH_SEPARATOR+set}" != set; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 77 |   PATH_SEPARATOR=: | 
 | 78 |   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | 
 | 79 |     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | 
 | 80 |       PATH_SEPARATOR=';' | 
 | 81 |   } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 82 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 83 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 84 |  | 
 | 85 | # IFS | 
 | 86 | # We need space, tab and new line, in precisely that order.  Quoting is | 
 | 87 | # there to prevent editors from complaining about space-tab. | 
 | 88 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | 
 | 89 | # splitting by setting IFS to empty value.) | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 90 | IFS=" ""	$as_nl" | 
 | 91 |  | 
 | 92 | # Find who we are.  Look in the path if we contain no directory separator. | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 93 | as_myself= | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 94 | case $0 in #(( | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 95 |   *[\\/]* ) as_myself=$0 ;; | 
 | 96 |   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 97 | for as_dir in $PATH | 
 | 98 | do | 
 | 99 |   IFS=$as_save_IFS | 
 | 100 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 101 |     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | 
 | 102 |   done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 103 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 104 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 105 |      ;; | 
 | 106 | esac | 
 | 107 | # We did not find ourselves, most probably we were run as `sh COMMAND' | 
 | 108 | # in which case we are not to be found in the path. | 
 | 109 | if test "x$as_myself" = x; then | 
 | 110 |   as_myself=$0 | 
 | 111 | fi | 
 | 112 | if test ! -f "$as_myself"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 113 |   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | 
 | 114 |   exit 1 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 115 | fi | 
 | 116 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 117 | # Unset variables that we do not need and which cause bugs (e.g. in | 
 | 118 | # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1" | 
 | 119 | # suppresses any "Segmentation fault" message there.  '((' could | 
 | 120 | # trigger a bug in pdksh 5.2.14. | 
 | 121 | for as_var in BASH_ENV ENV MAIL MAILPATH | 
 | 122 | do eval test x\${$as_var+set} = xset \ | 
 | 123 |   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 124 | done | 
 | 125 | PS1='$ ' | 
 | 126 | PS2='> ' | 
 | 127 | PS4='+ ' | 
 | 128 |  | 
 | 129 | # NLS nuisances. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 130 | LC_ALL=C | 
 | 131 | export LC_ALL | 
 | 132 | LANGUAGE=C | 
 | 133 | export LANGUAGE | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 134 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 135 | # CDPATH. | 
 | 136 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | 
 | 137 |  | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 138 | # Use a proper internal environment variable to ensure we don't fall | 
 | 139 |   # into an infinite loop, continuously re-executing ourselves. | 
 | 140 |   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then | 
 | 141 |     _as_can_reexec=no; export _as_can_reexec; | 
 | 142 |     # We cannot yet assume a decent shell, so we have to provide a | 
 | 143 | # neutralization value for shells without unset; and this also | 
 | 144 | # works around shells that cannot unset nonexistent variables. | 
 | 145 | # Preserve -v and -x to the replacement shell. | 
 | 146 | BASH_ENV=/dev/null | 
 | 147 | ENV=/dev/null | 
 | 148 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | 
 | 149 | case $- in # (((( | 
 | 150 |   *v*x* | *x*v* ) as_opts=-vx ;; | 
 | 151 |   *v* ) as_opts=-v ;; | 
 | 152 |   *x* ) as_opts=-x ;; | 
 | 153 |   * ) as_opts= ;; | 
 | 154 | esac | 
 | 155 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | 
 | 156 | # Admittedly, this is quite paranoid, since all the known shells bail | 
 | 157 | # out after a failed `exec'. | 
 | 158 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | 
 | 159 | as_fn_exit 255 | 
 | 160 |   fi | 
 | 161 |   # We don't want this to propagate to other subprocesses. | 
 | 162 |           { _as_can_reexec=; unset _as_can_reexec;} | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 163 | if test "x$CONFIG_SHELL" = x; then | 
 | 164 |   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | 
 | 165 |   emulate sh | 
 | 166 |   NULLCMD=: | 
 | 167 |   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | 
 | 168 |   # is contrary to our usage.  Disable this feature. | 
 | 169 |   alias -g '\${1+\"\$@\"}'='\"\$@\"' | 
 | 170 |   setopt NO_GLOB_SUBST | 
 | 171 | else | 
 | 172 |   case \`(set -o) 2>/dev/null\` in #( | 
 | 173 |   *posix*) : | 
 | 174 |     set -o posix ;; #( | 
 | 175 |   *) : | 
 | 176 |      ;; | 
 | 177 | esac | 
 | 178 | fi | 
 | 179 | " | 
 | 180 |   as_required="as_fn_return () { (exit \$1); } | 
 | 181 | as_fn_success () { as_fn_return 0; } | 
 | 182 | as_fn_failure () { as_fn_return 1; } | 
 | 183 | as_fn_ret_success () { return 0; } | 
 | 184 | as_fn_ret_failure () { return 1; } | 
 | 185 |  | 
 | 186 | exitcode=0 | 
 | 187 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | 
 | 188 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | 
 | 189 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | 
 | 190 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | 
 | 191 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | 
 | 192 |  | 
 | 193 | else | 
 | 194 |   exitcode=1; echo positional parameters were not saved. | 
 | 195 | fi | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 196 | test x\$exitcode = x0 || exit 1 | 
 | 197 | test -x / || exit 1" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 198 |   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | 
 | 199 |   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | 
 | 200 |   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | 
 | 201 |   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | 
 | 202 | test \$(( 1 + 1 )) = 2 || exit 1" | 
 | 203 |   if (eval "$as_required") 2>/dev/null; then : | 
 | 204 |   as_have_required=yes | 
 | 205 | else | 
 | 206 |   as_have_required=no | 
 | 207 | fi | 
 | 208 |   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | 
 | 209 |  | 
 | 210 | else | 
 | 211 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 212 | as_found=false | 
 | 213 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | 
 | 214 | do | 
 | 215 |   IFS=$as_save_IFS | 
 | 216 |   test -z "$as_dir" && as_dir=. | 
 | 217 |   as_found=: | 
 | 218 |   case $as_dir in #( | 
 | 219 | 	 /*) | 
 | 220 | 	   for as_base in sh bash ksh sh5; do | 
 | 221 | 	     # Try only shells that exist, to save several forks. | 
 | 222 | 	     as_shell=$as_dir/$as_base | 
 | 223 | 	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | 
 | 224 | 		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | 
 | 225 |   CONFIG_SHELL=$as_shell as_have_required=yes | 
 | 226 | 		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | 
 | 227 |   break 2 | 
 | 228 | fi | 
 | 229 | fi | 
 | 230 | 	   done;; | 
 | 231 |        esac | 
 | 232 |   as_found=false | 
 | 233 | done | 
 | 234 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | 
 | 235 | 	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | 
 | 236 |   CONFIG_SHELL=$SHELL as_have_required=yes | 
 | 237 | fi; } | 
 | 238 | IFS=$as_save_IFS | 
 | 239 |  | 
 | 240 |  | 
 | 241 |       if test "x$CONFIG_SHELL" != x; then : | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 242 |   export CONFIG_SHELL | 
 | 243 |              # We cannot yet assume a decent shell, so we have to provide a | 
 | 244 | # neutralization value for shells without unset; and this also | 
 | 245 | # works around shells that cannot unset nonexistent variables. | 
 | 246 | # Preserve -v and -x to the replacement shell. | 
 | 247 | BASH_ENV=/dev/null | 
 | 248 | ENV=/dev/null | 
 | 249 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | 
 | 250 | case $- in # (((( | 
 | 251 |   *v*x* | *x*v* ) as_opts=-vx ;; | 
 | 252 |   *v* ) as_opts=-v ;; | 
 | 253 |   *x* ) as_opts=-x ;; | 
 | 254 |   * ) as_opts= ;; | 
 | 255 | esac | 
 | 256 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | 
 | 257 | # Admittedly, this is quite paranoid, since all the known shells bail | 
 | 258 | # out after a failed `exec'. | 
 | 259 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | 
 | 260 | exit 255 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 261 | fi | 
 | 262 |  | 
 | 263 |     if test x$as_have_required = xno; then : | 
 | 264 |   $as_echo "$0: This script requires a shell more modern than all" | 
 | 265 |   $as_echo "$0: the shells that I found on your system." | 
 | 266 |   if test x${ZSH_VERSION+set} = xset ; then | 
 | 267 |     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | 
 | 268 |     $as_echo "$0: be upgraded to zsh 4.3.4 or later." | 
 | 269 |   else | 
 | 270 |     $as_echo "$0: Please tell bug-autoconf@gnu.org and | 
 | 271 | $0: http://bugs.python.org/ about your system, including | 
 | 272 | $0: any error possibly output before this message. Then | 
 | 273 | $0: install a modern shell, or manually run the script | 
 | 274 | $0: under such a shell if you do have one." | 
 | 275 |   fi | 
 | 276 |   exit 1 | 
 | 277 | fi | 
 | 278 | fi | 
 | 279 | fi | 
 | 280 | SHELL=${CONFIG_SHELL-/bin/sh} | 
 | 281 | export SHELL | 
 | 282 | # Unset more variables known to interfere with behavior of common tools. | 
 | 283 | CLICOLOR_FORCE= GREP_OPTIONS= | 
 | 284 | unset CLICOLOR_FORCE GREP_OPTIONS | 
 | 285 |  | 
 | 286 | ## --------------------- ## | 
 | 287 | ## M4sh Shell Functions. ## | 
 | 288 | ## --------------------- ## | 
 | 289 | # as_fn_unset VAR | 
 | 290 | # --------------- | 
 | 291 | # Portably unset VAR. | 
 | 292 | as_fn_unset () | 
 | 293 | { | 
 | 294 |   { eval $1=; unset $1;} | 
 | 295 | } | 
 | 296 | as_unset=as_fn_unset | 
 | 297 |  | 
 | 298 | # as_fn_set_status STATUS | 
 | 299 | # ----------------------- | 
 | 300 | # Set $? to STATUS, without forking. | 
 | 301 | as_fn_set_status () | 
 | 302 | { | 
 | 303 |   return $1 | 
 | 304 | } # as_fn_set_status | 
 | 305 |  | 
 | 306 | # as_fn_exit STATUS | 
 | 307 | # ----------------- | 
 | 308 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | 
 | 309 | as_fn_exit () | 
 | 310 | { | 
 | 311 |   set +e | 
 | 312 |   as_fn_set_status $1 | 
 | 313 |   exit $1 | 
 | 314 | } # as_fn_exit | 
 | 315 |  | 
 | 316 | # as_fn_mkdir_p | 
 | 317 | # ------------- | 
 | 318 | # Create "$as_dir" as a directory, including parents if necessary. | 
 | 319 | as_fn_mkdir_p () | 
 | 320 | { | 
 | 321 |  | 
 | 322 |   case $as_dir in #( | 
 | 323 |   -*) as_dir=./$as_dir;; | 
 | 324 |   esac | 
 | 325 |   test -d "$as_dir" || eval $as_mkdir_p || { | 
 | 326 |     as_dirs= | 
 | 327 |     while :; do | 
 | 328 |       case $as_dir in #( | 
 | 329 |       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | 
 | 330 |       *) as_qdir=$as_dir;; | 
 | 331 |       esac | 
 | 332 |       as_dirs="'$as_qdir' $as_dirs" | 
 | 333 |       as_dir=`$as_dirname -- "$as_dir" || | 
 | 334 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
 | 335 | 	 X"$as_dir" : 'X\(//\)[^/]' \| \ | 
 | 336 | 	 X"$as_dir" : 'X\(//\)$' \| \ | 
 | 337 | 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | 
 | 338 | $as_echo X"$as_dir" | | 
 | 339 |     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
 | 340 | 	    s//\1/ | 
 | 341 | 	    q | 
 | 342 | 	  } | 
 | 343 | 	  /^X\(\/\/\)[^/].*/{ | 
 | 344 | 	    s//\1/ | 
 | 345 | 	    q | 
 | 346 | 	  } | 
 | 347 | 	  /^X\(\/\/\)$/{ | 
 | 348 | 	    s//\1/ | 
 | 349 | 	    q | 
 | 350 | 	  } | 
 | 351 | 	  /^X\(\/\).*/{ | 
 | 352 | 	    s//\1/ | 
 | 353 | 	    q | 
 | 354 | 	  } | 
 | 355 | 	  s/.*/./; q'` | 
 | 356 |       test -d "$as_dir" && break | 
 | 357 |     done | 
 | 358 |     test -z "$as_dirs" || eval "mkdir $as_dirs" | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 359 |   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 360 |  | 
 | 361 |  | 
 | 362 | } # as_fn_mkdir_p | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 363 |  | 
 | 364 | # as_fn_executable_p FILE | 
 | 365 | # ----------------------- | 
 | 366 | # Test if FILE is an executable regular file. | 
 | 367 | as_fn_executable_p () | 
 | 368 | { | 
 | 369 |   test -f "$1" && test -x "$1" | 
 | 370 | } # as_fn_executable_p | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 371 | # as_fn_append VAR VALUE | 
 | 372 | # ---------------------- | 
 | 373 | # Append the text in VALUE to the end of the definition contained in VAR. Take | 
 | 374 | # advantage of any shell optimizations that allow amortized linear growth over | 
 | 375 | # repeated appends, instead of the typical quadratic growth present in naive | 
 | 376 | # implementations. | 
 | 377 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | 
 | 378 |   eval 'as_fn_append () | 
 | 379 |   { | 
 | 380 |     eval $1+=\$2 | 
 | 381 |   }' | 
 | 382 | else | 
 | 383 |   as_fn_append () | 
 | 384 |   { | 
 | 385 |     eval $1=\$$1\$2 | 
 | 386 |   } | 
 | 387 | fi # as_fn_append | 
 | 388 |  | 
 | 389 | # as_fn_arith ARG... | 
 | 390 | # ------------------ | 
 | 391 | # Perform arithmetic evaluation on the ARGs, and store the result in the | 
 | 392 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | 
 | 393 | # must be portable across $(()) and expr. | 
 | 394 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | 
 | 395 |   eval 'as_fn_arith () | 
 | 396 |   { | 
 | 397 |     as_val=$(( $* )) | 
 | 398 |   }' | 
 | 399 | else | 
 | 400 |   as_fn_arith () | 
 | 401 |   { | 
 | 402 |     as_val=`expr "$@" || test $? -eq 1` | 
 | 403 |   } | 
 | 404 | fi # as_fn_arith | 
 | 405 |  | 
 | 406 |  | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 407 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | 
 | 408 | # ---------------------------------------- | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 409 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | 
 | 410 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 411 | # script with STATUS, using 1 if that was 0. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 412 | as_fn_error () | 
 | 413 | { | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 414 |   as_status=$1; test $as_status -eq 0 && as_status=1 | 
 | 415 |   if test "$4"; then | 
 | 416 |     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 417 |     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 418 |   fi | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 419 |   $as_echo "$as_me: error: $2" >&2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 420 |   as_fn_exit $as_status | 
 | 421 | } # as_fn_error | 
 | 422 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 423 | if expr a : '\(a\)' >/dev/null 2>&1 && | 
 | 424 |    test "X`expr 00001 : '.*\(...\)'`" = X001; then | 
 | 425 |   as_expr=expr | 
 | 426 | else | 
 | 427 |   as_expr=false | 
 | 428 | fi | 
 | 429 |  | 
 | 430 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | 
 | 431 |   as_basename=basename | 
 | 432 | else | 
 | 433 |   as_basename=false | 
 | 434 | fi | 
 | 435 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 436 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | 
 | 437 |   as_dirname=dirname | 
 | 438 | else | 
 | 439 |   as_dirname=false | 
 | 440 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 441 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 442 | as_me=`$as_basename -- "$0" || | 
 | 443 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | 
 | 444 | 	 X"$0" : 'X\(//\)$' \| \ | 
 | 445 | 	 X"$0" : 'X\(/\)' \| . 2>/dev/null || | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 446 | $as_echo X/"$0" | | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 447 |     sed '/^.*\/\([^/][^/]*\)\/*$/{ | 
 | 448 | 	    s//\1/ | 
 | 449 | 	    q | 
 | 450 | 	  } | 
 | 451 | 	  /^X\/\(\/\/\)$/{ | 
 | 452 | 	    s//\1/ | 
 | 453 | 	    q | 
 | 454 | 	  } | 
 | 455 | 	  /^X\/\(\/\).*/{ | 
 | 456 | 	    s//\1/ | 
 | 457 | 	    q | 
 | 458 | 	  } | 
 | 459 | 	  s/.*/./; q'` | 
 | 460 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 461 | # Avoid depending upon Character Ranges. | 
 | 462 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | 
 | 463 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | 
 | 464 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | 
 | 465 | as_cr_digits='0123456789' | 
 | 466 | as_cr_alnum=$as_cr_Letters$as_cr_digits | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 467 |  | 
 | 468 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 469 |   as_lineno_1=$LINENO as_lineno_1a=$LINENO | 
 | 470 |   as_lineno_2=$LINENO as_lineno_2a=$LINENO | 
 | 471 |   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | 
 | 472 |   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | 
 | 473 |   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-) | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 474 |   sed -n ' | 
 | 475 |     p | 
 | 476 |     /[$]LINENO/= | 
 | 477 |   ' <$as_myself | | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 478 |     sed ' | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 479 |       s/[$]LINENO.*/&-/ | 
 | 480 |       t lineno | 
 | 481 |       b | 
 | 482 |       :lineno | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 483 |       N | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 484 |       :loop | 
 | 485 |       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 486 |       t loop | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 487 |       s/-\n.*// | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 488 |     ' >$as_me.lineno && | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 489 |   chmod +x "$as_me.lineno" || | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 490 |     { $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] | 491 |  | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 492 |   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have | 
 | 493 |   # already done that, so ensure we don't try to do so again and fall | 
 | 494 |   # in an infinite loop.  This has already happened in practice. | 
 | 495 |   _as_can_reexec=no; export _as_can_reexec | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 496 |   # Don't try to exec as it changes $[0], causing all sort of problems | 
 | 497 |   # (the dirname of $[0] is not the place where we might find the | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 498 |   # original and so on.  Autoconf is especially sensitive to this). | 
 | 499 |   . "./$as_me.lineno" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 500 |   # Exit status is that of the last command. | 
 | 501 |   exit | 
 | 502 | } | 
 | 503 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 504 | ECHO_C= ECHO_N= ECHO_T= | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 505 | case `echo -n x` in #((((( | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 506 | -n*) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 507 |   case `echo 'xy\c'` in | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 508 |   *c*) ECHO_T='	';;	# ECHO_T is single tab character. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 509 |   xy)  ECHO_C='\c';; | 
 | 510 |   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null | 
 | 511 |        ECHO_T='	';; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 512 |   esac;; | 
 | 513 | *) | 
 | 514 |   ECHO_N='-n';; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 515 | esac | 
| Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 516 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 517 | rm -f conf$$ conf$$.exe conf$$.file | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 518 | if test -d conf$$.dir; then | 
 | 519 |   rm -f conf$$.dir/conf$$.file | 
 | 520 | else | 
 | 521 |   rm -f conf$$.dir | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 522 |   mkdir conf$$.dir 2>/dev/null | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 523 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 524 | if (echo >conf$$.file) 2>/dev/null; then | 
 | 525 |   if ln -s conf$$.file conf$$ 2>/dev/null; then | 
 | 526 |     as_ln_s='ln -s' | 
 | 527 |     # ... but there are two gotchas: | 
 | 528 |     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | 
 | 529 |     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 530 |     # In both cases, we have to default to `cp -pR'. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 531 |     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 532 |       as_ln_s='cp -pR' | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 533 |   elif ln conf$$.file conf$$ 2>/dev/null; then | 
 | 534 |     as_ln_s=ln | 
 | 535 |   else | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 536 |     as_ln_s='cp -pR' | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 537 |   fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 538 | else | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 539 |   as_ln_s='cp -pR' | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 540 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 541 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | 
 | 542 | rmdir conf$$.dir 2>/dev/null | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 543 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 544 | if mkdir -p . 2>/dev/null; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 545 |   as_mkdir_p='mkdir -p "$as_dir"' | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 546 | else | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 547 |   test -d ./-p && rmdir ./-p | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 548 |   as_mkdir_p=false | 
 | 549 | fi | 
 | 550 |  | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 551 | as_test_x='test -x' | 
 | 552 | as_executable_p=as_fn_executable_p | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 553 |  | 
 | 554 | # Sed expression to map a string onto a valid CPP name. | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 555 | 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] | 556 |  | 
 | 557 | # Sed expression to map a string onto a valid variable name. | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 558 | 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] | 559 |  | 
 | 560 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 561 | test -n "$DJDIR" || exec 7<&0 </dev/null | 
 | 562 | exec 6>&1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 563 |  | 
 | 564 | # Name of the host. | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 565 | # 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] | 566 | # so uname gets run too. | 
 | 567 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | 
 | 568 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 569 | # | 
 | 570 | # Initializations. | 
 | 571 | # | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 572 | ac_default_prefix=/usr/local | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 573 | ac_clean_files= | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 574 | ac_config_libobj_dir=. | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 575 | LIBOBJS= | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 576 | cross_compiling=no | 
 | 577 | subdirs= | 
 | 578 | MFLAGS= | 
 | 579 | MAKEFLAGS= | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 580 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 581 | # Identity of this package. | 
| Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 582 | PACKAGE_NAME='python' | 
 | 583 | PACKAGE_TARNAME='python' | 
| Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 584 | PACKAGE_VERSION='2.7' | 
 | 585 | PACKAGE_STRING='python 2.7' | 
| Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 586 | PACKAGE_BUGREPORT='http://bugs.python.org/' | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 587 | PACKAGE_URL='' | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 588 |  | 
 | 589 | ac_unique_file="Include/object.h" | 
 | 590 | # Factoring default headers for most tests. | 
 | 591 | ac_includes_default="\ | 
 | 592 | #include <stdio.h> | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 593 | #ifdef HAVE_SYS_TYPES_H | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 594 | # include <sys/types.h> | 
 | 595 | #endif | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 596 | #ifdef HAVE_SYS_STAT_H | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 597 | # include <sys/stat.h> | 
 | 598 | #endif | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 599 | #ifdef STDC_HEADERS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 600 | # include <stdlib.h> | 
 | 601 | # include <stddef.h> | 
 | 602 | #else | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 603 | # ifdef HAVE_STDLIB_H | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 604 | #  include <stdlib.h> | 
 | 605 | # endif | 
 | 606 | #endif | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 607 | #ifdef HAVE_STRING_H | 
 | 608 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 609 | #  include <memory.h> | 
 | 610 | # endif | 
 | 611 | # include <string.h> | 
 | 612 | #endif | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 613 | #ifdef HAVE_STRINGS_H | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 614 | # include <strings.h> | 
 | 615 | #endif | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 616 | #ifdef HAVE_INTTYPES_H | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 617 | # include <inttypes.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 618 | #endif | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 619 | #ifdef HAVE_STDINT_H | 
 | 620 | # include <stdint.h> | 
 | 621 | #endif | 
 | 622 | #ifdef HAVE_UNISTD_H | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 623 | # include <unistd.h> | 
 | 624 | #endif" | 
 | 625 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 626 | ac_subst_vars='LTLIBOBJS | 
| Ned Deily | 3f1d0b3 | 2014-11-20 02:11:03 -0800 | [diff] [blame] | 627 | ENSUREPIP | 
| Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 628 | SRCDIRS | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 629 | THREADHEADERS | 
 | 630 | UNICODE_OBJS | 
 | 631 | LIBC | 
 | 632 | LIBM | 
 | 633 | HAVE_GETHOSTBYNAME | 
 | 634 | HAVE_GETHOSTBYNAME_R | 
 | 635 | HAVE_GETHOSTBYNAME_R_3_ARG | 
 | 636 | HAVE_GETHOSTBYNAME_R_5_ARG | 
 | 637 | HAVE_GETHOSTBYNAME_R_6_ARG | 
 | 638 | LIBOBJS | 
 | 639 | TRUE | 
 | 640 | MACHDEP_OBJS | 
 | 641 | DYNLOADFILE | 
 | 642 | DLINCLDIR | 
 | 643 | THREADOBJ | 
 | 644 | LDLAST | 
 | 645 | USE_THREAD_MODULE | 
 | 646 | SIGNAL_OBJS | 
 | 647 | USE_SIGNAL_MODULE | 
| Ned Deily | a2a9f57 | 2013-10-25 00:30:10 -0700 | [diff] [blame] | 648 | TCLTK_LIBS | 
 | 649 | TCLTK_INCLUDES | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 650 | LIBFFI_INCLUDEDIR | 
| Benjamin Peterson | 64e8f6e | 2014-12-15 00:00:23 -0500 | [diff] [blame] | 651 | PKG_CONFIG_LIBDIR | 
 | 652 | PKG_CONFIG_PATH | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 653 | PKG_CONFIG | 
 | 654 | SHLIBS | 
 | 655 | CFLAGSFORSHARED | 
 | 656 | LINKFORSHARED | 
 | 657 | CCSHARED | 
 | 658 | BLDSHARED | 
 | 659 | LDCXXSHARED | 
 | 660 | LDSHARED | 
 | 661 | SO | 
 | 662 | LIBTOOL_CRUFT | 
 | 663 | OTHER_LIBTOOL_OPT | 
| Brett Cannon | 4ff151a | 2015-09-18 15:09:42 -0700 | [diff] [blame] | 664 | LLVM_PROF_FOUND | 
 | 665 | LLVM_PROF_ERR | 
 | 666 | LLVM_PROF_FILE | 
 | 667 | LLVM_PROF_MERGER | 
 | 668 | PGO_PROF_USE_FLAG | 
 | 669 | PGO_PROF_GEN_FLAG | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 670 | UNIVERSAL_ARCH_FLAGS | 
 | 671 | BASECFLAGS | 
 | 672 | OPT | 
 | 673 | LN | 
| Trent Nelson | f6407a1 | 2012-08-30 14:56:13 +0000 | [diff] [blame] | 674 | MKDIR_P | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 675 | INSTALL_DATA | 
 | 676 | INSTALL_SCRIPT | 
 | 677 | INSTALL_PROGRAM | 
| Georg Brandl | 3a5508e | 2011-03-06 10:42:21 +0100 | [diff] [blame] | 678 | HAS_HG | 
 | 679 | HGBRANCH | 
 | 680 | HGTAG | 
 | 681 | HGVERSION | 
| Trent Nelson | d86ceec | 2012-10-16 09:42:45 -0400 | [diff] [blame] | 682 | BASECPPFLAGS | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 683 | SVNVERSION | 
 | 684 | ARFLAGS | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 685 | ac_ct_AR | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 686 | AR | 
 | 687 | RANLIB | 
 | 688 | GNULD | 
 | 689 | LINKCC | 
 | 690 | RUNSHARED | 
 | 691 | INSTSONAME | 
 | 692 | LDLIBRARYDIR | 
 | 693 | BLDLIBRARY | 
 | 694 | DLLLIBRARY | 
 | 695 | LDLIBRARY | 
 | 696 | LIBRARY | 
 | 697 | BUILDEXEEXT | 
 | 698 | EGREP | 
 | 699 | GREP | 
 | 700 | CPP | 
| doko@python.org | 4e63fbe | 2013-01-25 13:08:27 +0100 | [diff] [blame] | 701 | MULTIARCH | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 702 | ac_ct_CXX | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 703 | MAINCC | 
 | 704 | CXX | 
 | 705 | OBJEXT | 
 | 706 | EXEEXT | 
 | 707 | ac_ct_CC | 
 | 708 | CPPFLAGS | 
 | 709 | LDFLAGS | 
 | 710 | CFLAGS | 
 | 711 | CC | 
 | 712 | EXPORT_MACOSX_DEPLOYMENT_TARGET | 
 | 713 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET | 
 | 714 | EXTRAMACHDEPPATH | 
 | 715 | EXTRAPLATDIR | 
| doko@ubuntu.com | a50b0de | 2015-04-13 21:55:59 +0200 | [diff] [blame] | 716 | PLATDIR | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 717 | SGI_ABI | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 718 | _PYTHON_HOST_PLATFORM | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 719 | MACHDEP | 
 | 720 | FRAMEWORKINSTALLAPPSPREFIX | 
 | 721 | FRAMEWORKUNIXTOOLSPREFIX | 
 | 722 | FRAMEWORKALTINSTALLLAST | 
 | 723 | FRAMEWORKALTINSTALLFIRST | 
 | 724 | FRAMEWORKINSTALLLAST | 
 | 725 | FRAMEWORKINSTALLFIRST | 
 | 726 | PYTHONFRAMEWORKINSTALLDIR | 
 | 727 | PYTHONFRAMEWORKPREFIX | 
 | 728 | PYTHONFRAMEWORKDIR | 
 | 729 | PYTHONFRAMEWORKIDENTIFIER | 
 | 730 | PYTHONFRAMEWORK | 
 | 731 | LIPO_32BIT_FLAGS | 
 | 732 | ARCH_RUN_32BIT | 
 | 733 | UNIVERSALSDK | 
 | 734 | CONFIG_ARGS | 
 | 735 | SOVERSION | 
 | 736 | VERSION | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 737 | PYTHON_FOR_BUILD | 
 | 738 | host_os | 
 | 739 | host_vendor | 
 | 740 | host_cpu | 
 | 741 | host | 
 | 742 | build_os | 
 | 743 | build_vendor | 
 | 744 | build_cpu | 
 | 745 | build | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 746 | target_alias | 
 | 747 | host_alias | 
 | 748 | build_alias | 
 | 749 | LIBS | 
 | 750 | ECHO_T | 
 | 751 | ECHO_N | 
 | 752 | ECHO_C | 
 | 753 | DEFS | 
 | 754 | mandir | 
 | 755 | localedir | 
 | 756 | libdir | 
 | 757 | psdir | 
 | 758 | pdfdir | 
 | 759 | dvidir | 
 | 760 | htmldir | 
 | 761 | infodir | 
 | 762 | docdir | 
 | 763 | oldincludedir | 
 | 764 | includedir | 
 | 765 | localstatedir | 
 | 766 | sharedstatedir | 
 | 767 | sysconfdir | 
 | 768 | datadir | 
 | 769 | datarootdir | 
 | 770 | libexecdir | 
 | 771 | sbindir | 
 | 772 | bindir | 
 | 773 | program_transform_name | 
 | 774 | prefix | 
 | 775 | exec_prefix | 
 | 776 | PACKAGE_URL | 
 | 777 | PACKAGE_BUGREPORT | 
 | 778 | PACKAGE_STRING | 
 | 779 | PACKAGE_VERSION | 
 | 780 | PACKAGE_TARNAME | 
 | 781 | PACKAGE_NAME | 
 | 782 | PATH_SEPARATOR | 
 | 783 | SHELL' | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 784 | ac_subst_files='' | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 785 | ac_user_opts=' | 
 | 786 | enable_option_checking | 
 | 787 | enable_universalsdk | 
 | 788 | with_universal_archs | 
 | 789 | with_framework_name | 
 | 790 | enable_framework | 
 | 791 | with_gcc | 
 | 792 | with_cxx_main | 
 | 793 | with_suffix | 
 | 794 | enable_shared | 
 | 795 | enable_profiling | 
 | 796 | with_pydebug | 
 | 797 | enable_toolbox_glue | 
 | 798 | with_libs | 
 | 799 | with_system_expat | 
 | 800 | with_system_ffi | 
| Ned Deily | a2a9f57 | 2013-10-25 00:30:10 -0700 | [diff] [blame] | 801 | with_tcltk_includes | 
 | 802 | with_tcltk_libs | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 803 | with_dbmliborder | 
 | 804 | with_signal_module | 
 | 805 | with_dec_threads | 
 | 806 | with_threads | 
 | 807 | with_thread | 
 | 808 | with_pth | 
 | 809 | enable_ipv6 | 
 | 810 | with_doc_strings | 
 | 811 | with_tsc | 
 | 812 | with_pymalloc | 
 | 813 | with_valgrind | 
 | 814 | with_wctype_functions | 
 | 815 | with_fpectl | 
 | 816 | with_libm | 
 | 817 | with_libc | 
 | 818 | enable_big_digits | 
 | 819 | enable_unicode | 
| Benjamin Peterson | 2c992a0 | 2015-05-28 12:45:31 -0500 | [diff] [blame] | 820 | with_computed_gotos | 
| Ned Deily | 3f1d0b3 | 2014-11-20 02:11:03 -0800 | [diff] [blame] | 821 | with_ensurepip | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 822 | ' | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 823 |       ac_precious_vars='build_alias | 
 | 824 | host_alias | 
 | 825 | target_alias | 
 | 826 | CC | 
 | 827 | CFLAGS | 
 | 828 | LDFLAGS | 
 | 829 | LIBS | 
 | 830 | CPPFLAGS | 
| Benjamin Peterson | 64e8f6e | 2014-12-15 00:00:23 -0500 | [diff] [blame] | 831 | CPP | 
 | 832 | PKG_CONFIG | 
 | 833 | PKG_CONFIG_PATH | 
 | 834 | PKG_CONFIG_LIBDIR' | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 835 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 836 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 837 | # Initialize some variables set by options. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 838 | ac_init_help= | 
 | 839 | ac_init_version=false | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 840 | ac_unrecognized_opts= | 
 | 841 | ac_unrecognized_sep= | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 842 | # The variables have the same names as the options, with | 
 | 843 | # dashes changed to underlines. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 844 | cache_file=/dev/null | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 845 | exec_prefix=NONE | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 846 | no_create= | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 847 | no_recursion= | 
 | 848 | prefix=NONE | 
 | 849 | program_prefix=NONE | 
 | 850 | program_suffix=NONE | 
 | 851 | program_transform_name=s,x,x, | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 852 | silent= | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 853 | site= | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 854 | srcdir= | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 855 | verbose= | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 856 | x_includes=NONE | 
 | 857 | x_libraries=NONE | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 858 |  | 
 | 859 | # Installation directory options. | 
 | 860 | # These are left unexpanded so users can "make install exec_prefix=/foo" | 
 | 861 | # and all the variables that are supposed to be based on exec_prefix | 
 | 862 | # by default will actually change. | 
 | 863 | # Use braces instead of parens because sh, perl, etc. also accept them. | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 864 | # (The list follows the same order as the GNU Coding Standards.) | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 865 | bindir='${exec_prefix}/bin' | 
 | 866 | sbindir='${exec_prefix}/sbin' | 
 | 867 | libexecdir='${exec_prefix}/libexec' | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 868 | datarootdir='${prefix}/share' | 
 | 869 | datadir='${datarootdir}' | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 870 | sysconfdir='${prefix}/etc' | 
 | 871 | sharedstatedir='${prefix}/com' | 
 | 872 | localstatedir='${prefix}/var' | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 873 | includedir='${prefix}/include' | 
 | 874 | oldincludedir='/usr/include' | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 875 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | 
 | 876 | infodir='${datarootdir}/info' | 
 | 877 | htmldir='${docdir}' | 
 | 878 | dvidir='${docdir}' | 
 | 879 | pdfdir='${docdir}' | 
 | 880 | psdir='${docdir}' | 
 | 881 | libdir='${exec_prefix}/lib' | 
 | 882 | localedir='${datarootdir}/locale' | 
 | 883 | mandir='${datarootdir}/man' | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 884 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 885 | ac_prev= | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 886 | ac_dashdash= | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 887 | for ac_option | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 888 | do | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 889 |   # If the previous option needs an argument, assign it. | 
 | 890 |   if test -n "$ac_prev"; then | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 891 |     eval $ac_prev=\$ac_option | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 892 |     ac_prev= | 
 | 893 |     continue | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 894 |   fi | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 895 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 896 |   case $ac_option in | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 897 |   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | 
 | 898 |   *=)   ac_optarg= ;; | 
 | 899 |   *)    ac_optarg=yes ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 900 |   esac | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 901 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 902 |   # Accept the important Cygnus configure options, so we can diagnose typos. | 
 | 903 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 904 |   case $ac_dashdash$ac_option in | 
 | 905 |   --) | 
 | 906 |     ac_dashdash=yes ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 907 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 908 |   -bindir | --bindir | --bindi | --bind | --bin | --bi) | 
 | 909 |     ac_prev=bindir ;; | 
 | 910 |   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 911 |     bindir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 912 |  | 
 | 913 |   -build | --build | --buil | --bui | --bu) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 914 |     ac_prev=build_alias ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 915 |   -build=* | --build=* | --buil=* | --bui=* | --bu=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 916 |     build_alias=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 917 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 918 |   -cache-file | --cache-file | --cache-fil | --cache-fi \ | 
 | 919 |   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | 
 | 920 |     ac_prev=cache_file ;; | 
 | 921 |   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | 
 | 922 |   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 923 |     cache_file=$ac_optarg ;; | 
 | 924 |  | 
 | 925 |   --config-cache | -C) | 
 | 926 |     cache_file=config.cache ;; | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 927 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 928 |   -datadir | --datadir | --datadi | --datad) | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 929 |     ac_prev=datadir ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 930 |   -datadir=* | --datadir=* | --datadi=* | --datad=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 931 |     datadir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 932 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 933 |   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | 
 | 934 |   | --dataroo | --dataro | --datar) | 
 | 935 |     ac_prev=datarootdir ;; | 
 | 936 |   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | 
 | 937 |   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | 
 | 938 |     datarootdir=$ac_optarg ;; | 
 | 939 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 940 |   -disable-* | --disable-*) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 941 |     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 942 |     # Reject names that are not valid shell variable names. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 943 |     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 944 |       as_fn_error $? "invalid feature name: $ac_useropt" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 945 |     ac_useropt_orig=$ac_useropt | 
 | 946 |     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 
 | 947 |     case $ac_user_opts in | 
 | 948 |       *" | 
 | 949 | "enable_$ac_useropt" | 
 | 950 | "*) ;; | 
 | 951 |       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | 
 | 952 | 	 ac_unrecognized_sep=', ';; | 
 | 953 |     esac | 
 | 954 |     eval enable_$ac_useropt=no ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 955 |  | 
 | 956 |   -docdir | --docdir | --docdi | --doc | --do) | 
 | 957 |     ac_prev=docdir ;; | 
 | 958 |   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | 
 | 959 |     docdir=$ac_optarg ;; | 
 | 960 |  | 
 | 961 |   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | 
 | 962 |     ac_prev=dvidir ;; | 
 | 963 |   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | 
 | 964 |     dvidir=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 965 |  | 
 | 966 |   -enable-* | --enable-*) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 967 |     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 968 |     # Reject names that are not valid shell variable names. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 969 |     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 970 |       as_fn_error $? "invalid feature name: $ac_useropt" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 971 |     ac_useropt_orig=$ac_useropt | 
 | 972 |     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 
 | 973 |     case $ac_user_opts in | 
 | 974 |       *" | 
 | 975 | "enable_$ac_useropt" | 
 | 976 | "*) ;; | 
 | 977 |       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | 
 | 978 | 	 ac_unrecognized_sep=', ';; | 
 | 979 |     esac | 
 | 980 |     eval enable_$ac_useropt=\$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 981 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 982 |   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | 
 | 983 |   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | 
 | 984 |   | --exec | --exe | --ex) | 
 | 985 |     ac_prev=exec_prefix ;; | 
 | 986 |   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | 
 | 987 |   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | 
 | 988 |   | --exec=* | --exe=* | --ex=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 989 |     exec_prefix=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 990 |  | 
 | 991 |   -gas | --gas | --ga | --g) | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 992 |     # Obsolete; use --with-gas. | 
 | 993 |     with_gas=yes ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 994 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 995 |   -help | --help | --hel | --he | -h) | 
 | 996 |     ac_init_help=long ;; | 
 | 997 |   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | 
 | 998 |     ac_init_help=recursive ;; | 
 | 999 |   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | 
 | 1000 |     ac_init_help=short ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1001 |  | 
 | 1002 |   -host | --host | --hos | --ho) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1003 |     ac_prev=host_alias ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1004 |   -host=* | --host=* | --hos=* | --ho=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1005 |     host_alias=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1006 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1007 |   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | 
 | 1008 |     ac_prev=htmldir ;; | 
 | 1009 |   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | 
 | 1010 |   | --ht=*) | 
 | 1011 |     htmldir=$ac_optarg ;; | 
 | 1012 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1013 |   -includedir | --includedir | --includedi | --included | --include \ | 
 | 1014 |   | --includ | --inclu | --incl | --inc) | 
 | 1015 |     ac_prev=includedir ;; | 
 | 1016 |   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | 
 | 1017 |   | --includ=* | --inclu=* | --incl=* | --inc=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1018 |     includedir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1019 |  | 
 | 1020 |   -infodir | --infodir | --infodi | --infod | --info | --inf) | 
 | 1021 |     ac_prev=infodir ;; | 
 | 1022 |   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1023 |     infodir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1024 |  | 
 | 1025 |   -libdir | --libdir | --libdi | --libd) | 
 | 1026 |     ac_prev=libdir ;; | 
 | 1027 |   -libdir=* | --libdir=* | --libdi=* | --libd=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1028 |     libdir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1029 |  | 
 | 1030 |   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | 
 | 1031 |   | --libexe | --libex | --libe) | 
 | 1032 |     ac_prev=libexecdir ;; | 
 | 1033 |   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | 
 | 1034 |   | --libexe=* | --libex=* | --libe=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1035 |     libexecdir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1036 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1037 |   -localedir | --localedir | --localedi | --localed | --locale) | 
 | 1038 |     ac_prev=localedir ;; | 
 | 1039 |   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | 
 | 1040 |     localedir=$ac_optarg ;; | 
 | 1041 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1042 |   -localstatedir | --localstatedir | --localstatedi | --localstated \ | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1043 |   | --localstate | --localstat | --localsta | --localst | --locals) | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1044 |     ac_prev=localstatedir ;; | 
 | 1045 |   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1046 |   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1047 |     localstatedir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1048 |  | 
 | 1049 |   -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | 
 | 1050 |     ac_prev=mandir ;; | 
 | 1051 |   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1052 |     mandir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1053 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1054 |   -nfp | --nfp | --nf) | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1055 |     # Obsolete; use --without-fp. | 
 | 1056 |     with_fp=no ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1057 |  | 
 | 1058 |   -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1059 |   | --no-cr | --no-c | -n) | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1060 |     no_create=yes ;; | 
 | 1061 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1062 |   -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | 
 | 1063 |   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | 
 | 1064 |     no_recursion=yes ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1065 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1066 |   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | 
 | 1067 |   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | 
 | 1068 |   | --oldin | --oldi | --old | --ol | --o) | 
 | 1069 |     ac_prev=oldincludedir ;; | 
 | 1070 |   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | 
 | 1071 |   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | 
 | 1072 |   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1073 |     oldincludedir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1074 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1075 |   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | 
 | 1076 |     ac_prev=prefix ;; | 
 | 1077 |   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1078 |     prefix=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1079 |  | 
 | 1080 |   -program-prefix | --program-prefix | --program-prefi | --program-pref \ | 
 | 1081 |   | --program-pre | --program-pr | --program-p) | 
 | 1082 |     ac_prev=program_prefix ;; | 
 | 1083 |   -program-prefix=* | --program-prefix=* | --program-prefi=* \ | 
 | 1084 |   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1085 |     program_prefix=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1086 |  | 
 | 1087 |   -program-suffix | --program-suffix | --program-suffi | --program-suff \ | 
 | 1088 |   | --program-suf | --program-su | --program-s) | 
 | 1089 |     ac_prev=program_suffix ;; | 
 | 1090 |   -program-suffix=* | --program-suffix=* | --program-suffi=* \ | 
 | 1091 |   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1092 |     program_suffix=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1093 |  | 
 | 1094 |   -program-transform-name | --program-transform-name \ | 
 | 1095 |   | --program-transform-nam | --program-transform-na \ | 
 | 1096 |   | --program-transform-n | --program-transform- \ | 
 | 1097 |   | --program-transform | --program-transfor \ | 
 | 1098 |   | --program-transfo | --program-transf \ | 
 | 1099 |   | --program-trans | --program-tran \ | 
 | 1100 |   | --progr-tra | --program-tr | --program-t) | 
 | 1101 |     ac_prev=program_transform_name ;; | 
 | 1102 |   -program-transform-name=* | --program-transform-name=* \ | 
 | 1103 |   | --program-transform-nam=* | --program-transform-na=* \ | 
 | 1104 |   | --program-transform-n=* | --program-transform-=* \ | 
 | 1105 |   | --program-transform=* | --program-transfor=* \ | 
 | 1106 |   | --program-transfo=* | --program-transf=* \ | 
 | 1107 |   | --program-trans=* | --program-tran=* \ | 
 | 1108 |   | --progr-tra=* | --program-tr=* | --program-t=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1109 |     program_transform_name=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1110 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1111 |   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | 
 | 1112 |     ac_prev=pdfdir ;; | 
 | 1113 |   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | 
 | 1114 |     pdfdir=$ac_optarg ;; | 
 | 1115 |  | 
 | 1116 |   -psdir | --psdir | --psdi | --psd | --ps) | 
 | 1117 |     ac_prev=psdir ;; | 
 | 1118 |   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | 
 | 1119 |     psdir=$ac_optarg ;; | 
 | 1120 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1121 |   -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
 | 1122 |   | -silent | --silent | --silen | --sile | --sil) | 
 | 1123 |     silent=yes ;; | 
 | 1124 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1125 |   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | 
 | 1126 |     ac_prev=sbindir ;; | 
 | 1127 |   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | 
 | 1128 |   | --sbi=* | --sb=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1129 |     sbindir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1130 |  | 
 | 1131 |   -sharedstatedir | --sharedstatedir | --sharedstatedi \ | 
 | 1132 |   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | 
 | 1133 |   | --sharedst | --shareds | --shared | --share | --shar \ | 
 | 1134 |   | --sha | --sh) | 
 | 1135 |     ac_prev=sharedstatedir ;; | 
 | 1136 |   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | 
 | 1137 |   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | 
 | 1138 |   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | 
 | 1139 |   | --sha=* | --sh=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1140 |     sharedstatedir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1141 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1142 |   -site | --site | --sit) | 
 | 1143 |     ac_prev=site ;; | 
 | 1144 |   -site=* | --site=* | --sit=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1145 |     site=$ac_optarg ;; | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1146 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1147 |   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | 
 | 1148 |     ac_prev=srcdir ;; | 
 | 1149 |   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1150 |     srcdir=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1151 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1152 |   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | 
 | 1153 |   | --syscon | --sysco | --sysc | --sys | --sy) | 
 | 1154 |     ac_prev=sysconfdir ;; | 
 | 1155 |   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | 
 | 1156 |   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1157 |     sysconfdir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1158 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1159 |   -target | --target | --targe | --targ | --tar | --ta | --t) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1160 |     ac_prev=target_alias ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1161 |   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1162 |     target_alias=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1163 |  | 
 | 1164 |   -v | -verbose | --verbose | --verbos | --verbo | --verb) | 
 | 1165 |     verbose=yes ;; | 
 | 1166 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1167 |   -version | --version | --versio | --versi | --vers | -V) | 
 | 1168 |     ac_init_version=: ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1169 |  | 
 | 1170 |   -with-* | --with-*) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1171 |     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1172 |     # Reject names that are not valid shell variable names. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1173 |     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1174 |       as_fn_error $? "invalid package name: $ac_useropt" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1175 |     ac_useropt_orig=$ac_useropt | 
 | 1176 |     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 
 | 1177 |     case $ac_user_opts in | 
 | 1178 |       *" | 
 | 1179 | "with_$ac_useropt" | 
 | 1180 | "*) ;; | 
 | 1181 |       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | 
 | 1182 | 	 ac_unrecognized_sep=', ';; | 
 | 1183 |     esac | 
 | 1184 |     eval with_$ac_useropt=\$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1185 |  | 
 | 1186 |   -without-* | --without-*) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1187 |     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1188 |     # Reject names that are not valid shell variable names. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1189 |     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1190 |       as_fn_error $? "invalid package name: $ac_useropt" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1191 |     ac_useropt_orig=$ac_useropt | 
 | 1192 |     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 
 | 1193 |     case $ac_user_opts in | 
 | 1194 |       *" | 
 | 1195 | "with_$ac_useropt" | 
 | 1196 | "*) ;; | 
 | 1197 |       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | 
 | 1198 | 	 ac_unrecognized_sep=', ';; | 
 | 1199 |     esac | 
 | 1200 |     eval with_$ac_useropt=no ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1201 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1202 |   --x) | 
 | 1203 |     # Obsolete; use --with-x. | 
 | 1204 |     with_x=yes ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1205 |  | 
 | 1206 |   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | 
 | 1207 |   | --x-incl | --x-inc | --x-in | --x-i) | 
 | 1208 |     ac_prev=x_includes ;; | 
 | 1209 |   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | 
 | 1210 |   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1211 |     x_includes=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1212 |  | 
 | 1213 |   -x-libraries | --x-libraries | --x-librarie | --x-librari \ | 
 | 1214 |   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | 
 | 1215 |     ac_prev=x_libraries ;; | 
 | 1216 |   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | 
 | 1217 |   | --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] | 1218 |     x_libraries=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1219 |  | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1220 |   -*) as_fn_error $? "unrecognized option: \`$ac_option' | 
 | 1221 | Try \`$0 --help' for more information" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1222 |     ;; | 
 | 1223 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1224 |   *=*) | 
 | 1225 |     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | 
 | 1226 |     # Reject names that are not valid shell variable names. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1227 |     case $ac_envvar in #( | 
 | 1228 |       '' | [0-9]* | *[!_$as_cr_alnum]* ) | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1229 |       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1230 |     esac | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1231 |     eval $ac_envvar=\$ac_optarg | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1232 |     export $ac_envvar ;; | 
 | 1233 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1234 |   *) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1235 |     # FIXME: should be removed in autoconf 3.0. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1236 |     $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] | 1237 |     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1238 |       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 1239 |     : "${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] | 1240 |     ;; | 
 | 1241 |  | 
 | 1242 |   esac | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1243 | done | 
 | 1244 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1245 | if test -n "$ac_prev"; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1246 |   ac_option=--`echo $ac_prev | sed 's/_/-/g'` | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1247 |   as_fn_error $? "missing argument to $ac_option" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1248 | fi | 
 | 1249 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1250 | if test -n "$ac_unrecognized_opts"; then | 
 | 1251 |   case $enable_option_checking in | 
 | 1252 |     no) ;; | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1253 |     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1254 |     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | 
 | 1255 |   esac | 
 | 1256 | fi | 
 | 1257 |  | 
 | 1258 | # Check all directory arguments for consistency. | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1259 | for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \ | 
 | 1260 | 		datadir sysconfdir sharedstatedir localstatedir includedir \ | 
 | 1261 | 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | 
 | 1262 | 		libdir localedir mandir | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1263 | do | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1264 |   eval ac_val=\$$ac_var | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1265 |   # Remove trailing slashes. | 
 | 1266 |   case $ac_val in | 
 | 1267 |     */ ) | 
 | 1268 |       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | 
 | 1269 |       eval $ac_var=\$ac_val;; | 
 | 1270 |   esac | 
 | 1271 |   # Be sure to have absolute directory names. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1272 |   case $ac_val in | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1273 |     [\\/$]* | ?:[\\/]* )  continue;; | 
 | 1274 |     NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1275 |   esac | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1276 |   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] | 1277 | done | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1278 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1279 | # There might be people who depend on the old broken behavior: `$host' | 
 | 1280 | # used to hold the argument of --host etc. | 
 | 1281 | # FIXME: To remove some day. | 
 | 1282 | build=$build_alias | 
 | 1283 | host=$host_alias | 
 | 1284 | target=$target_alias | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1285 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1286 | # FIXME: To remove some day. | 
 | 1287 | if test "x$host_alias" != x; then | 
 | 1288 |   if test "x$build_alias" = x; then | 
 | 1289 |     cross_compiling=maybe | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1290 |   elif test "x$build_alias" != "x$host_alias"; then | 
 | 1291 |     cross_compiling=yes | 
 | 1292 |   fi | 
 | 1293 | fi | 
 | 1294 |  | 
 | 1295 | ac_tool_prefix= | 
 | 1296 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | 
 | 1297 |  | 
 | 1298 | test "$silent" = yes && exec 6>/dev/null | 
 | 1299 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1300 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1301 | ac_pwd=`pwd` && test -n "$ac_pwd" && | 
 | 1302 | ac_ls_di=`ls -di .` && | 
 | 1303 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1304 |   as_fn_error $? "working directory cannot be determined" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1305 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1306 |   as_fn_error $? "pwd does not report name of working directory" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1307 |  | 
 | 1308 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1309 | # Find the source files, if location was not specified. | 
 | 1310 | if test -z "$srcdir"; then | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1311 |   ac_srcdir_defaulted=yes | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1312 |   # Try the directory containing this script, then the parent directory. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1313 |   ac_confdir=`$as_dirname -- "$as_myself" || | 
 | 1314 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
 | 1315 | 	 X"$as_myself" : 'X\(//\)[^/]' \| \ | 
 | 1316 | 	 X"$as_myself" : 'X\(//\)$' \| \ | 
 | 1317 | 	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | 
 | 1318 | $as_echo X"$as_myself" | | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1319 |     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
 | 1320 | 	    s//\1/ | 
 | 1321 | 	    q | 
 | 1322 | 	  } | 
 | 1323 | 	  /^X\(\/\/\)[^/].*/{ | 
 | 1324 | 	    s//\1/ | 
 | 1325 | 	    q | 
 | 1326 | 	  } | 
 | 1327 | 	  /^X\(\/\/\)$/{ | 
 | 1328 | 	    s//\1/ | 
 | 1329 | 	    q | 
 | 1330 | 	  } | 
 | 1331 | 	  /^X\(\/\).*/{ | 
 | 1332 | 	    s//\1/ | 
 | 1333 | 	    q | 
 | 1334 | 	  } | 
 | 1335 | 	  s/.*/./; q'` | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1336 |   srcdir=$ac_confdir | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1337 |   if test ! -r "$srcdir/$ac_unique_file"; then | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1338 |     srcdir=.. | 
 | 1339 |   fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1340 | else | 
 | 1341 |   ac_srcdir_defaulted=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1342 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1343 | if test ! -r "$srcdir/$ac_unique_file"; then | 
 | 1344 |   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1345 |   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" | 
| Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 1346 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1347 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | 
 | 1348 | ac_abs_confdir=`( | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1349 | 	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1350 | 	pwd)` | 
 | 1351 | # When building in place, set srcdir=. | 
 | 1352 | if test "$ac_abs_confdir" = "$ac_pwd"; then | 
 | 1353 |   srcdir=. | 
 | 1354 | fi | 
 | 1355 | # Remove unnecessary trailing slashes from srcdir. | 
 | 1356 | # Double slashes in file names in object file debugging info | 
 | 1357 | # mess up M-x gdb in Emacs. | 
 | 1358 | case $srcdir in | 
 | 1359 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | 
 | 1360 | esac | 
 | 1361 | for ac_var in $ac_precious_vars; do | 
 | 1362 |   eval ac_env_${ac_var}_set=\${${ac_var}+set} | 
 | 1363 |   eval ac_env_${ac_var}_value=\$${ac_var} | 
 | 1364 |   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | 
 | 1365 |   eval ac_cv_env_${ac_var}_value=\$${ac_var} | 
 | 1366 | done | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1367 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1368 | # | 
 | 1369 | # Report the --help message. | 
 | 1370 | # | 
 | 1371 | if test "$ac_init_help" = "long"; then | 
 | 1372 |   # Omit some internal or obsolete options to make the list less imposing. | 
 | 1373 |   # This message is too long to be a string in the A/UX 3.1 sh. | 
 | 1374 |   cat <<_ACEOF | 
| Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 1375 | \`configure' configures python 2.7 to adapt to many kinds of systems. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1376 |  | 
 | 1377 | Usage: $0 [OPTION]... [VAR=VALUE]... | 
 | 1378 |  | 
 | 1379 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | 
 | 1380 | VAR=VALUE.  See below for descriptions of some of the useful variables. | 
 | 1381 |  | 
 | 1382 | Defaults for the options are specified in brackets. | 
 | 1383 |  | 
 | 1384 | Configuration: | 
 | 1385 |   -h, --help              display this help and exit | 
 | 1386 |       --help=short        display options specific to this package | 
 | 1387 |       --help=recursive    display the short help of all the included packages | 
 | 1388 |   -V, --version           display version information and exit | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1389 |   -q, --quiet, --silent   do not print \`checking ...' messages | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1390 |       --cache-file=FILE   cache test results in FILE [disabled] | 
 | 1391 |   -C, --config-cache      alias for \`--cache-file=config.cache' | 
 | 1392 |   -n, --no-create         do not create output files | 
 | 1393 |       --srcdir=DIR        find the sources in DIR [configure dir or \`..'] | 
 | 1394 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1395 | Installation directories: | 
 | 1396 |   --prefix=PREFIX         install architecture-independent files in PREFIX | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1397 |                           [$ac_default_prefix] | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1398 |   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1399 |                           [PREFIX] | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1400 |  | 
 | 1401 | By default, \`make install' will install all the files in | 
 | 1402 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify | 
 | 1403 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | 
 | 1404 | for instance \`--prefix=\$HOME'. | 
 | 1405 |  | 
 | 1406 | For better control, use the options below. | 
 | 1407 |  | 
 | 1408 | Fine tuning of the installation directories: | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1409 |   --bindir=DIR            user executables [EPREFIX/bin] | 
 | 1410 |   --sbindir=DIR           system admin executables [EPREFIX/sbin] | 
 | 1411 |   --libexecdir=DIR        program executables [EPREFIX/libexec] | 
 | 1412 |   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc] | 
 | 1413 |   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com] | 
 | 1414 |   --localstatedir=DIR     modifiable single-machine data [PREFIX/var] | 
 | 1415 |   --libdir=DIR            object code libraries [EPREFIX/lib] | 
 | 1416 |   --includedir=DIR        C header files [PREFIX/include] | 
 | 1417 |   --oldincludedir=DIR     C header files for non-gcc [/usr/include] | 
 | 1418 |   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share] | 
 | 1419 |   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR] | 
 | 1420 |   --infodir=DIR           info documentation [DATAROOTDIR/info] | 
 | 1421 |   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale] | 
 | 1422 |   --mandir=DIR            man documentation [DATAROOTDIR/man] | 
 | 1423 |   --docdir=DIR            documentation root [DATAROOTDIR/doc/python] | 
 | 1424 |   --htmldir=DIR           html documentation [DOCDIR] | 
 | 1425 |   --dvidir=DIR            dvi documentation [DOCDIR] | 
 | 1426 |   --pdfdir=DIR            pdf documentation [DOCDIR] | 
 | 1427 |   --psdir=DIR             ps documentation [DOCDIR] | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1428 | _ACEOF | 
 | 1429 |  | 
 | 1430 |   cat <<\_ACEOF | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 1431 |  | 
 | 1432 | System types: | 
 | 1433 |   --build=BUILD     configure for building on BUILD [guessed] | 
 | 1434 |   --host=HOST       cross-compile to build programs to run on HOST [BUILD] | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1435 | _ACEOF | 
 | 1436 | fi | 
 | 1437 |  | 
 | 1438 | if test -n "$ac_init_help"; then | 
| Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1439 |   case $ac_init_help in | 
| Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 1440 |      short | recursive ) echo "Configuration of python 2.7:";; | 
| Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1441 |    esac | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1442 |   cat <<\_ACEOF | 
 | 1443 |  | 
 | 1444 | Optional Features: | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1445 |   --disable-option-checking  ignore unrecognized --enable/--with options | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1446 |   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no) | 
 | 1447 |   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes] | 
| Brett Cannon | 91a1dec | 2008-02-13 19:15:44 +0000 | [diff] [blame] | 1448 |   --enable-universalsdk[=SDKDIR] | 
| Brett Cannon | 9a8bb0e | 2008-02-03 02:07:55 +0000 | [diff] [blame] | 1449 |                           Build against Mac OS X 10.4u SDK (ppc/i386) | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1450 |   --enable-framework[=INSTALLDIR] | 
 | 1451 |                           Build (MacOSX|Darwin) framework | 
 | 1452 |   --enable-shared         disable/enable building shared python library | 
| Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 1453 |   --enable-profiling      enable C-level code profiling | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1454 |   --enable-toolbox-glue   disable/enable MacOSX glue code for extensions | 
 | 1455 |   --enable-ipv6           Enable ipv6 (with ipv4) support | 
 | 1456 |   --disable-ipv6          Disable ipv6 support | 
| Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 1457 |   --enable-big-digits[=BITS] | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1458 |                           use big digits for Python longs [[BITS=30]] | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1459 |   --enable-unicode[=ucs[24]] | 
| Benjamin Peterson | 66556b0 | 2010-05-25 02:23:32 +0000 | [diff] [blame] | 1460 |                           Enable Unicode strings (default is ucs2) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1461 |  | 
 | 1462 | Optional Packages: | 
 | 1463 |   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes] | 
 | 1464 |   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no) | 
| Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 1465 |   --with-universal-archs=ARCH | 
 | 1466 |                           select architectures for universal build ("32-bit", | 
| Ronald Oussoren | 23d9253 | 2009-09-07 06:12:00 +0000 | [diff] [blame] | 1467 |                           "64-bit", "3-way", "intel" or "all") | 
| Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 1468 |   --with-framework-name=FRAMEWORK | 
 | 1469 |                           specify an alternate name of the framework built | 
 | 1470 |                           with --enable-framework | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1471 |   --without-gcc           never use gcc | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 1472 |   --with-cxx-main=<compiler> | 
 | 1473 |                           compile main() and link python executable with C++ | 
 | 1474 |                           compiler | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1475 |   --with-suffix=.exe      set executable suffix | 
 | 1476 |   --with-pydebug          build with Py_DEBUG defined | 
 | 1477 |   --with-libs='lib1 ...'  link against additional libs | 
| Benjamin Peterson | 2c19674 | 2009-12-31 03:17:18 +0000 | [diff] [blame] | 1478 |   --with-system-expat     build pyexpat module using an installed expat | 
 | 1479 |                           library | 
| Martin v. Löwis | 9176fc1 | 2006-04-11 11:12:43 +0000 | [diff] [blame] | 1480 |   --with-system-ffi       build _ctypes module using an installed ffi library | 
| Ned Deily | a2a9f57 | 2013-10-25 00:30:10 -0700 | [diff] [blame] | 1481 |   --with-tcltk-includes='-I...' | 
 | 1482 |                           override search for Tcl and Tk include files | 
 | 1483 |   --with-tcltk-libs='-L...' | 
 | 1484 |                           override search for Tcl and Tk libs | 
| Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 1485 |   --with-dbmliborder=db1:db2:... | 
 | 1486 |                           order to check db backends for dbm. Valid value is a | 
 | 1487 |                           colon separated string with the backend names | 
 | 1488 |                           `ndbm', `gdbm' and `bdb'. | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1489 |   --with-signal-module    disable/enable signal module | 
 | 1490 |   --with-dec-threads      use DEC Alpha/OSF1 thread-safe libraries | 
 | 1491 |   --with(out)-threads[=DIRECTORY] | 
 | 1492 |                           disable/enable thread support | 
 | 1493 |   --with(out)-thread[=DIRECTORY] | 
 | 1494 |                           deprecated; use --with(out)-threads | 
 | 1495 |   --with-pth              use GNU pth threading libraries | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1496 |   --with(out)-doc-strings disable/enable documentation strings | 
| Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 1497 |   --with(out)-tsc         enable/disable timestamp counter profile | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1498 |   --with(out)-pymalloc    disable/enable specialized mallocs | 
| Benjamin Peterson | 91c12eb | 2009-12-03 02:52:39 +0000 | [diff] [blame] | 1499 |   --with-valgrind         Enable Valgrind support | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1500 |   --with-wctype-functions use wctype.h functions | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1501 |   --with-fpectl           enable SIGFPE catching | 
 | 1502 |   --with-libm=STRING      math library | 
 | 1503 |   --with-libc=STRING      C library | 
| Benjamin Peterson | 2c992a0 | 2015-05-28 12:45:31 -0500 | [diff] [blame] | 1504 |   --with(out)-computed-gotos | 
 | 1505 |                           Use computed gotos in evaluation loop (enabled by | 
 | 1506 |                           default on supported compilers) | 
| Ned Deily | 3f1d0b3 | 2014-11-20 02:11:03 -0800 | [diff] [blame] | 1507 |   --with(out)-ensurepip=[=OPTION] | 
 | 1508 |                           "install" or "upgrade" using bundled pip, default is | 
 | 1509 |                           "no" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1510 |  | 
 | 1511 | Some influential environment variables: | 
 | 1512 |   CC          C compiler command | 
 | 1513 |   CFLAGS      C compiler flags | 
 | 1514 |   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a | 
 | 1515 |               nonstandard directory <lib dir> | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1516 |   LIBS        libraries to pass to the linker, e.g. -l<library> | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1517 |   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1518 |               you have headers in a nonstandard directory <include dir> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1519 |   CPP         C preprocessor | 
| Benjamin Peterson | 64e8f6e | 2014-12-15 00:00:23 -0500 | [diff] [blame] | 1520 |   PKG_CONFIG  path to pkg-config utility | 
 | 1521 |   PKG_CONFIG_PATH | 
 | 1522 |               directories to add to pkg-config's search path | 
 | 1523 |   PKG_CONFIG_LIBDIR | 
 | 1524 |               path overriding pkg-config's built-in search path | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1525 |  | 
 | 1526 | Use these variables to override the choices made by `configure' or to help | 
 | 1527 | it to find libraries and programs with nonstandard names/locations. | 
 | 1528 |  | 
| Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 1529 | Report bugs to <http://bugs.python.org/>. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1530 | _ACEOF | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1531 | ac_status=$? | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1532 | fi | 
 | 1533 |  | 
 | 1534 | if test "$ac_init_help" = "recursive"; then | 
 | 1535 |   # If there are subdirs, report their specific --help. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1536 |   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1537 |     test -d "$ac_dir" || | 
 | 1538 |       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | 
 | 1539 |       continue | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1540 |     ac_builddir=. | 
 | 1541 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1542 | case "$ac_dir" in | 
 | 1543 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
 | 1544 | *) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1545 |   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1546 |   # A ".." for each directory in $ac_dir_suffix. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1547 |   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1548 |   case $ac_top_builddir_sub in | 
 | 1549 |   "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
 | 1550 |   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;; | 
 | 1551 |   esac ;; | 
 | 1552 | esac | 
 | 1553 | ac_abs_top_builddir=$ac_pwd | 
 | 1554 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | 
 | 1555 | # for backward compatibility: | 
 | 1556 | ac_top_builddir=$ac_top_build_prefix | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1557 |  | 
 | 1558 | case $srcdir in | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1559 |   .)  # We are building in place. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1560 |     ac_srcdir=. | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1561 |     ac_top_srcdir=$ac_top_builddir_sub | 
 | 1562 |     ac_abs_top_srcdir=$ac_pwd ;; | 
 | 1563 |   [\\/]* | ?:[\\/]* )  # Absolute name. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1564 |     ac_srcdir=$srcdir$ac_dir_suffix; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1565 |     ac_top_srcdir=$srcdir | 
 | 1566 |     ac_abs_top_srcdir=$srcdir ;; | 
 | 1567 |   *) # Relative name. | 
 | 1568 |     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | 
 | 1569 |     ac_top_srcdir=$ac_top_build_prefix$srcdir | 
 | 1570 |     ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1571 | esac | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1572 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1573 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1574 |     cd "$ac_dir" || { ac_status=$?; continue; } | 
 | 1575 |     # Check for guested configure. | 
 | 1576 |     if test -f "$ac_srcdir/configure.gnu"; then | 
 | 1577 |       echo && | 
 | 1578 |       $SHELL "$ac_srcdir/configure.gnu" --help=recursive | 
 | 1579 |     elif test -f "$ac_srcdir/configure"; then | 
 | 1580 |       echo && | 
 | 1581 |       $SHELL "$ac_srcdir/configure" --help=recursive | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1582 |     else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1583 |       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1584 |     fi || ac_status=$? | 
 | 1585 |     cd "$ac_pwd" || { ac_status=$?; break; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1586 |   done | 
 | 1587 | fi | 
 | 1588 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1589 | test -n "$ac_init_help" && exit $ac_status | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1590 | if $ac_init_version; then | 
 | 1591 |   cat <<\_ACEOF | 
| Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 1592 | python configure 2.7 | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 1593 | generated by GNU Autoconf 2.69 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1594 |  | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 1595 | Copyright (C) 2012 Free Software Foundation, Inc. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1596 | This configure script is free software; the Free Software Foundation | 
 | 1597 | gives unlimited permission to copy, distribute and modify it. | 
 | 1598 | _ACEOF | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1599 |   exit | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1600 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1601 |  | 
 | 1602 | ## ------------------------ ## | 
 | 1603 | ## Autoconf initialization. ## | 
 | 1604 | ## ------------------------ ## | 
 | 1605 |  | 
 | 1606 | # ac_fn_c_try_compile LINENO | 
 | 1607 | # -------------------------- | 
 | 1608 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | 
 | 1609 | ac_fn_c_try_compile () | 
 | 1610 | { | 
 | 1611 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 1612 |   rm -f conftest.$ac_objext | 
 | 1613 |   if { { ac_try="$ac_compile" | 
 | 1614 | case "(($ac_try" in | 
 | 1615 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 1616 |   *) ac_try_echo=$ac_try;; | 
 | 1617 | esac | 
 | 1618 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 1619 | $as_echo "$ac_try_echo"; } >&5 | 
 | 1620 |   (eval "$ac_compile") 2>conftest.err | 
 | 1621 |   ac_status=$? | 
 | 1622 |   if test -s conftest.err; then | 
 | 1623 |     grep -v '^ *+' conftest.err >conftest.er1 | 
 | 1624 |     cat conftest.er1 >&5 | 
 | 1625 |     mv -f conftest.er1 conftest.err | 
 | 1626 |   fi | 
 | 1627 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 1628 |   test $ac_status = 0; } && { | 
 | 1629 | 	 test -z "$ac_c_werror_flag" || | 
 | 1630 | 	 test ! -s conftest.err | 
 | 1631 |        } && test -s conftest.$ac_objext; then : | 
 | 1632 |   ac_retval=0 | 
 | 1633 | else | 
 | 1634 |   $as_echo "$as_me: failed program was:" >&5 | 
 | 1635 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 1636 |  | 
 | 1637 | 	ac_retval=1 | 
 | 1638 | fi | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 1639 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1640 |   as_fn_set_status $ac_retval | 
 | 1641 |  | 
 | 1642 | } # ac_fn_c_try_compile | 
 | 1643 |  | 
 | 1644 | # ac_fn_c_try_cpp LINENO | 
 | 1645 | # ---------------------- | 
 | 1646 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | 
 | 1647 | ac_fn_c_try_cpp () | 
 | 1648 | { | 
 | 1649 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 1650 |   if { { ac_try="$ac_cpp conftest.$ac_ext" | 
 | 1651 | case "(($ac_try" in | 
 | 1652 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 1653 |   *) ac_try_echo=$ac_try;; | 
 | 1654 | esac | 
 | 1655 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 1656 | $as_echo "$ac_try_echo"; } >&5 | 
 | 1657 |   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | 
 | 1658 |   ac_status=$? | 
 | 1659 |   if test -s conftest.err; then | 
 | 1660 |     grep -v '^ *+' conftest.err >conftest.er1 | 
 | 1661 |     cat conftest.er1 >&5 | 
 | 1662 |     mv -f conftest.er1 conftest.err | 
 | 1663 |   fi | 
 | 1664 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1665 |   test $ac_status = 0; } > conftest.i && { | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1666 | 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | 
 | 1667 | 	 test ! -s conftest.err | 
 | 1668 |        }; then : | 
 | 1669 |   ac_retval=0 | 
 | 1670 | else | 
 | 1671 |   $as_echo "$as_me: failed program was:" >&5 | 
 | 1672 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 1673 |  | 
 | 1674 |     ac_retval=1 | 
 | 1675 | fi | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 1676 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1677 |   as_fn_set_status $ac_retval | 
 | 1678 |  | 
 | 1679 | } # ac_fn_c_try_cpp | 
 | 1680 |  | 
 | 1681 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | 
 | 1682 | # ------------------------------------------------------- | 
 | 1683 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | 
 | 1684 | # the include files in INCLUDES and setting the cache variable VAR | 
 | 1685 | # accordingly. | 
 | 1686 | ac_fn_c_check_header_mongrel () | 
 | 1687 | { | 
 | 1688 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 1689 |   if eval \${$3+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1690 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
 | 1691 | $as_echo_n "checking for $2... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 1692 | if eval \${$3+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1693 |   $as_echo_n "(cached) " >&6 | 
 | 1694 | fi | 
 | 1695 | eval ac_res=\$$3 | 
 | 1696 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 1697 | $as_echo "$ac_res" >&6; } | 
 | 1698 | else | 
 | 1699 |   # Is the header compilable? | 
 | 1700 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | 
 | 1701 | $as_echo_n "checking $2 usability... " >&6; } | 
 | 1702 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 1703 | /* end confdefs.h.  */ | 
 | 1704 | $4 | 
 | 1705 | #include <$2> | 
 | 1706 | _ACEOF | 
 | 1707 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 1708 |   ac_header_compiler=yes | 
 | 1709 | else | 
 | 1710 |   ac_header_compiler=no | 
 | 1711 | fi | 
 | 1712 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 1713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | 
 | 1714 | $as_echo "$ac_header_compiler" >&6; } | 
 | 1715 |  | 
 | 1716 | # Is the header present? | 
 | 1717 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | 
 | 1718 | $as_echo_n "checking $2 presence... " >&6; } | 
 | 1719 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 1720 | /* end confdefs.h.  */ | 
 | 1721 | #include <$2> | 
 | 1722 | _ACEOF | 
 | 1723 | if ac_fn_c_try_cpp "$LINENO"; then : | 
 | 1724 |   ac_header_preproc=yes | 
 | 1725 | else | 
 | 1726 |   ac_header_preproc=no | 
 | 1727 | fi | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1728 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | 
 | 1730 | $as_echo "$ac_header_preproc" >&6; } | 
 | 1731 |  | 
 | 1732 | # So?  What about this header? | 
 | 1733 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | 
 | 1734 |   yes:no: ) | 
 | 1735 |     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | 
 | 1736 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
 | 1737 |     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | 
 | 1738 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | 
 | 1739 |     ;; | 
 | 1740 |   no:yes:* ) | 
 | 1741 |     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | 
 | 1742 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | 
 | 1743 |     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5 | 
 | 1744 | $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;} | 
 | 1745 |     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | 
 | 1746 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | 
 | 1747 |     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5 | 
 | 1748 | $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;} | 
 | 1749 |     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | 
 | 1750 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1751 | ( $as_echo "## -------------------------------------- ## | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1752 | ## Report this to http://bugs.python.org/ ## | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1753 | ## -------------------------------------- ##" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1754 |      ) | sed "s/^/$as_me: WARNING:     /" >&2 | 
 | 1755 |     ;; | 
 | 1756 | esac | 
 | 1757 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
 | 1758 | $as_echo_n "checking for $2... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 1759 | if eval \${$3+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1760 |   $as_echo_n "(cached) " >&6 | 
 | 1761 | else | 
 | 1762 |   eval "$3=\$ac_header_compiler" | 
 | 1763 | fi | 
 | 1764 | eval ac_res=\$$3 | 
 | 1765 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 1766 | $as_echo "$ac_res" >&6; } | 
 | 1767 | fi | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 1768 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1769 |  | 
 | 1770 | } # ac_fn_c_check_header_mongrel | 
 | 1771 |  | 
 | 1772 | # ac_fn_c_try_run LINENO | 
 | 1773 | # ---------------------- | 
 | 1774 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | 
 | 1775 | # that executables *can* be run. | 
 | 1776 | ac_fn_c_try_run () | 
 | 1777 | { | 
 | 1778 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 1779 |   if { { ac_try="$ac_link" | 
 | 1780 | case "(($ac_try" in | 
 | 1781 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 1782 |   *) ac_try_echo=$ac_try;; | 
 | 1783 | esac | 
 | 1784 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 1785 | $as_echo "$ac_try_echo"; } >&5 | 
 | 1786 |   (eval "$ac_link") 2>&5 | 
 | 1787 |   ac_status=$? | 
 | 1788 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 1789 |   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | 
 | 1790 |   { { case "(($ac_try" in | 
 | 1791 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 1792 |   *) ac_try_echo=$ac_try;; | 
 | 1793 | esac | 
 | 1794 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 1795 | $as_echo "$ac_try_echo"; } >&5 | 
 | 1796 |   (eval "$ac_try") 2>&5 | 
 | 1797 |   ac_status=$? | 
 | 1798 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 1799 |   test $ac_status = 0; }; }; then : | 
 | 1800 |   ac_retval=0 | 
 | 1801 | else | 
 | 1802 |   $as_echo "$as_me: program exited with status $ac_status" >&5 | 
 | 1803 |        $as_echo "$as_me: failed program was:" >&5 | 
 | 1804 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 1805 |  | 
 | 1806 |        ac_retval=$ac_status | 
 | 1807 | fi | 
 | 1808 |   rm -rf conftest.dSYM conftest_ipa8_conftest.oo | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 1809 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1810 |   as_fn_set_status $ac_retval | 
 | 1811 |  | 
 | 1812 | } # ac_fn_c_try_run | 
 | 1813 |  | 
 | 1814 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | 
 | 1815 | # ------------------------------------------------------- | 
 | 1816 | # Tests whether HEADER exists and can be compiled using the include files in | 
 | 1817 | # INCLUDES, setting the cache variable VAR accordingly. | 
 | 1818 | ac_fn_c_check_header_compile () | 
 | 1819 | { | 
 | 1820 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 1821 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
 | 1822 | $as_echo_n "checking for $2... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 1823 | if eval \${$3+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1824 |   $as_echo_n "(cached) " >&6 | 
 | 1825 | else | 
 | 1826 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 1827 | /* end confdefs.h.  */ | 
 | 1828 | $4 | 
 | 1829 | #include <$2> | 
 | 1830 | _ACEOF | 
 | 1831 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 1832 |   eval "$3=yes" | 
 | 1833 | else | 
 | 1834 |   eval "$3=no" | 
 | 1835 | fi | 
 | 1836 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 1837 | fi | 
 | 1838 | eval ac_res=\$$3 | 
 | 1839 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 1840 | $as_echo "$ac_res" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 1841 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1842 |  | 
 | 1843 | } # ac_fn_c_check_header_compile | 
 | 1844 |  | 
 | 1845 | # ac_fn_c_try_link LINENO | 
 | 1846 | # ----------------------- | 
 | 1847 | # Try to link conftest.$ac_ext, and return whether this succeeded. | 
 | 1848 | ac_fn_c_try_link () | 
 | 1849 | { | 
 | 1850 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 1851 |   rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 1852 |   if { { ac_try="$ac_link" | 
 | 1853 | case "(($ac_try" in | 
 | 1854 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 1855 |   *) ac_try_echo=$ac_try;; | 
 | 1856 | esac | 
 | 1857 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 1858 | $as_echo "$ac_try_echo"; } >&5 | 
 | 1859 |   (eval "$ac_link") 2>conftest.err | 
 | 1860 |   ac_status=$? | 
 | 1861 |   if test -s conftest.err; then | 
 | 1862 |     grep -v '^ *+' conftest.err >conftest.er1 | 
 | 1863 |     cat conftest.er1 >&5 | 
 | 1864 |     mv -f conftest.er1 conftest.err | 
 | 1865 |   fi | 
 | 1866 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 1867 |   test $ac_status = 0; } && { | 
 | 1868 | 	 test -z "$ac_c_werror_flag" || | 
 | 1869 | 	 test ! -s conftest.err | 
 | 1870 |        } && test -s conftest$ac_exeext && { | 
 | 1871 | 	 test "$cross_compiling" = yes || | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 1872 | 	 test -x conftest$ac_exeext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1873 |        }; then : | 
 | 1874 |   ac_retval=0 | 
 | 1875 | else | 
 | 1876 |   $as_echo "$as_me: failed program was:" >&5 | 
 | 1877 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 1878 |  | 
 | 1879 | 	ac_retval=1 | 
 | 1880 | fi | 
 | 1881 |   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | 
 | 1882 |   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | 
 | 1883 |   # interfere with the next link command; also delete a directory that is | 
 | 1884 |   # left behind by Apple's compiler.  We do this before executing the actions. | 
 | 1885 |   rm -rf conftest.dSYM conftest_ipa8_conftest.oo | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 1886 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1887 |   as_fn_set_status $ac_retval | 
 | 1888 |  | 
 | 1889 | } # ac_fn_c_try_link | 
 | 1890 |  | 
 | 1891 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES | 
 | 1892 | # ------------------------------------------- | 
 | 1893 | # Tests whether TYPE exists after having included INCLUDES, setting cache | 
 | 1894 | # variable VAR accordingly. | 
 | 1895 | ac_fn_c_check_type () | 
 | 1896 | { | 
 | 1897 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 1898 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
 | 1899 | $as_echo_n "checking for $2... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 1900 | if eval \${$3+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1901 |   $as_echo_n "(cached) " >&6 | 
 | 1902 | else | 
 | 1903 |   eval "$3=no" | 
 | 1904 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 1905 | /* end confdefs.h.  */ | 
 | 1906 | $4 | 
 | 1907 | int | 
 | 1908 | main () | 
 | 1909 | { | 
 | 1910 | if (sizeof ($2)) | 
 | 1911 | 	 return 0; | 
 | 1912 |   ; | 
 | 1913 |   return 0; | 
 | 1914 | } | 
 | 1915 | _ACEOF | 
 | 1916 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 1917 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 1918 | /* end confdefs.h.  */ | 
 | 1919 | $4 | 
 | 1920 | int | 
 | 1921 | main () | 
 | 1922 | { | 
 | 1923 | if (sizeof (($2))) | 
 | 1924 | 	    return 0; | 
 | 1925 |   ; | 
 | 1926 |   return 0; | 
 | 1927 | } | 
 | 1928 | _ACEOF | 
 | 1929 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 1930 |  | 
 | 1931 | else | 
 | 1932 |   eval "$3=yes" | 
 | 1933 | fi | 
 | 1934 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 1935 | fi | 
 | 1936 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 1937 | fi | 
 | 1938 | eval ac_res=\$$3 | 
 | 1939 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 1940 | $as_echo "$ac_res" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 1941 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1942 |  | 
 | 1943 | } # ac_fn_c_check_type | 
 | 1944 |  | 
 | 1945 | # ac_fn_c_find_uintX_t LINENO BITS VAR | 
 | 1946 | # ------------------------------------ | 
 | 1947 | # Finds an unsigned integer type with width BITS, setting cache variable VAR | 
 | 1948 | # accordingly. | 
 | 1949 | ac_fn_c_find_uintX_t () | 
 | 1950 | { | 
 | 1951 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 1952 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 | 
 | 1953 | $as_echo_n "checking for uint$2_t... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 1954 | if eval \${$3+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1955 |   $as_echo_n "(cached) " >&6 | 
 | 1956 | else | 
 | 1957 |   eval "$3=no" | 
 | 1958 |      # Order is important - never check a type that is potentially smaller | 
 | 1959 |      # than half of the expected target width. | 
 | 1960 |      for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ | 
 | 1961 | 	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do | 
 | 1962 |        cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 1963 | /* end confdefs.h.  */ | 
 | 1964 | $ac_includes_default | 
 | 1965 | int | 
 | 1966 | main () | 
 | 1967 | { | 
 | 1968 | static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 1969 | test_array [0] = 0; | 
 | 1970 | return test_array [0]; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1971 |  | 
 | 1972 |   ; | 
 | 1973 |   return 0; | 
 | 1974 | } | 
 | 1975 | _ACEOF | 
 | 1976 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 1977 |   case $ac_type in #( | 
 | 1978 |   uint$2_t) : | 
 | 1979 |     eval "$3=yes" ;; #( | 
 | 1980 |   *) : | 
 | 1981 |     eval "$3=\$ac_type" ;; | 
 | 1982 | esac | 
 | 1983 | fi | 
 | 1984 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1985 |        if eval test \"x\$"$3"\" = x"no"; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1986 |  | 
 | 1987 | else | 
 | 1988 |   break | 
 | 1989 | fi | 
 | 1990 |      done | 
 | 1991 | fi | 
 | 1992 | eval ac_res=\$$3 | 
 | 1993 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 1994 | $as_echo "$ac_res" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 1995 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1996 |  | 
 | 1997 | } # ac_fn_c_find_uintX_t | 
 | 1998 |  | 
 | 1999 | # ac_fn_c_find_intX_t LINENO BITS VAR | 
 | 2000 | # ----------------------------------- | 
 | 2001 | # Finds a signed integer type with width BITS, setting cache variable VAR | 
 | 2002 | # accordingly. | 
 | 2003 | ac_fn_c_find_intX_t () | 
 | 2004 | { | 
 | 2005 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 2006 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 | 
 | 2007 | $as_echo_n "checking for int$2_t... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 2008 | if eval \${$3+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2009 |   $as_echo_n "(cached) " >&6 | 
 | 2010 | else | 
 | 2011 |   eval "$3=no" | 
 | 2012 |      # Order is important - never check a type that is potentially smaller | 
 | 2013 |      # than half of the expected target width. | 
 | 2014 |      for ac_type in int$2_t 'int' 'long int' \ | 
 | 2015 | 	 'long long int' 'short int' 'signed char'; do | 
 | 2016 |        cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2017 | /* end confdefs.h.  */ | 
 | 2018 | $ac_includes_default | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2019 | 	     enum { N = $2 / 2 - 1 }; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2020 | int | 
 | 2021 | main () | 
 | 2022 | { | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2023 | static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 2024 | test_array [0] = 0; | 
 | 2025 | return test_array [0]; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2026 |  | 
 | 2027 |   ; | 
 | 2028 |   return 0; | 
 | 2029 | } | 
 | 2030 | _ACEOF | 
 | 2031 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2032 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2033 | /* end confdefs.h.  */ | 
 | 2034 | $ac_includes_default | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2035 | 	        enum { N = $2 / 2 - 1 }; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2036 | int | 
 | 2037 | main () | 
 | 2038 | { | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2039 | static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2040 | 		 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 2041 | test_array [0] = 0; | 
 | 2042 | return test_array [0]; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2043 |  | 
 | 2044 |   ; | 
 | 2045 |   return 0; | 
 | 2046 | } | 
 | 2047 | _ACEOF | 
 | 2048 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2049 |  | 
 | 2050 | else | 
 | 2051 |   case $ac_type in #( | 
 | 2052 |   int$2_t) : | 
 | 2053 |     eval "$3=yes" ;; #( | 
 | 2054 |   *) : | 
 | 2055 |     eval "$3=\$ac_type" ;; | 
 | 2056 | esac | 
 | 2057 | fi | 
 | 2058 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2059 | fi | 
 | 2060 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2061 |        if eval test \"x\$"$3"\" = x"no"; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2062 |  | 
 | 2063 | else | 
 | 2064 |   break | 
 | 2065 | fi | 
 | 2066 |      done | 
 | 2067 | fi | 
 | 2068 | eval ac_res=\$$3 | 
 | 2069 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 2070 | $as_echo "$ac_res" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 2071 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2072 |  | 
 | 2073 | } # ac_fn_c_find_intX_t | 
 | 2074 |  | 
 | 2075 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES | 
 | 2076 | # -------------------------------------------- | 
 | 2077 | # Tries to find the compile-time value of EXPR in a program that includes | 
 | 2078 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | 
 | 2079 | # computed | 
 | 2080 | ac_fn_c_compute_int () | 
 | 2081 | { | 
 | 2082 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 2083 |   if test "$cross_compiling" = yes; then | 
 | 2084 |     # Depending upon the size, compute the lo and hi bounds. | 
 | 2085 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2086 | /* end confdefs.h.  */ | 
 | 2087 | $4 | 
 | 2088 | int | 
 | 2089 | main () | 
 | 2090 | { | 
 | 2091 | static int test_array [1 - 2 * !(($2) >= 0)]; | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 2092 | test_array [0] = 0; | 
 | 2093 | return test_array [0]; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2094 |  | 
 | 2095 |   ; | 
 | 2096 |   return 0; | 
 | 2097 | } | 
 | 2098 | _ACEOF | 
 | 2099 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2100 |   ac_lo=0 ac_mid=0 | 
 | 2101 |   while :; do | 
 | 2102 |     cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2103 | /* end confdefs.h.  */ | 
 | 2104 | $4 | 
 | 2105 | int | 
 | 2106 | main () | 
 | 2107 | { | 
 | 2108 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 2109 | test_array [0] = 0; | 
 | 2110 | return test_array [0]; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2111 |  | 
 | 2112 |   ; | 
 | 2113 |   return 0; | 
 | 2114 | } | 
 | 2115 | _ACEOF | 
 | 2116 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2117 |   ac_hi=$ac_mid; break | 
 | 2118 | else | 
 | 2119 |   as_fn_arith $ac_mid + 1 && ac_lo=$as_val | 
 | 2120 | 			if test $ac_lo -le $ac_mid; then | 
 | 2121 | 			  ac_lo= ac_hi= | 
 | 2122 | 			  break | 
 | 2123 | 			fi | 
 | 2124 | 			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | 
 | 2125 | fi | 
 | 2126 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2127 |   done | 
 | 2128 | else | 
 | 2129 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2130 | /* end confdefs.h.  */ | 
 | 2131 | $4 | 
 | 2132 | int | 
 | 2133 | main () | 
 | 2134 | { | 
 | 2135 | static int test_array [1 - 2 * !(($2) < 0)]; | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 2136 | test_array [0] = 0; | 
 | 2137 | return test_array [0]; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2138 |  | 
 | 2139 |   ; | 
 | 2140 |   return 0; | 
 | 2141 | } | 
 | 2142 | _ACEOF | 
 | 2143 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2144 |   ac_hi=-1 ac_mid=-1 | 
 | 2145 |   while :; do | 
 | 2146 |     cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2147 | /* end confdefs.h.  */ | 
 | 2148 | $4 | 
 | 2149 | int | 
 | 2150 | main () | 
 | 2151 | { | 
 | 2152 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 2153 | test_array [0] = 0; | 
 | 2154 | return test_array [0]; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2155 |  | 
 | 2156 |   ; | 
 | 2157 |   return 0; | 
 | 2158 | } | 
 | 2159 | _ACEOF | 
 | 2160 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2161 |   ac_lo=$ac_mid; break | 
 | 2162 | else | 
 | 2163 |   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | 
 | 2164 | 			if test $ac_mid -le $ac_hi; then | 
 | 2165 | 			  ac_lo= ac_hi= | 
 | 2166 | 			  break | 
 | 2167 | 			fi | 
 | 2168 | 			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | 
 | 2169 | fi | 
 | 2170 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2171 |   done | 
 | 2172 | else | 
 | 2173 |   ac_lo= ac_hi= | 
 | 2174 | fi | 
 | 2175 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2176 | fi | 
 | 2177 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2178 | # Binary search between lo and hi bounds. | 
 | 2179 | while test "x$ac_lo" != "x$ac_hi"; do | 
 | 2180 |   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | 
 | 2181 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2182 | /* end confdefs.h.  */ | 
 | 2183 | $4 | 
 | 2184 | int | 
 | 2185 | main () | 
 | 2186 | { | 
 | 2187 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 2188 | test_array [0] = 0; | 
 | 2189 | return test_array [0]; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2190 |  | 
 | 2191 |   ; | 
 | 2192 |   return 0; | 
 | 2193 | } | 
 | 2194 | _ACEOF | 
 | 2195 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2196 |   ac_hi=$ac_mid | 
 | 2197 | else | 
 | 2198 |   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | 
 | 2199 | fi | 
 | 2200 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2201 | done | 
 | 2202 | case $ac_lo in #(( | 
 | 2203 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | 
 | 2204 | '') ac_retval=1 ;; | 
 | 2205 | esac | 
 | 2206 |   else | 
 | 2207 |     cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2208 | /* end confdefs.h.  */ | 
 | 2209 | $4 | 
 | 2210 | static long int longval () { return $2; } | 
 | 2211 | static unsigned long int ulongval () { return $2; } | 
 | 2212 | #include <stdio.h> | 
 | 2213 | #include <stdlib.h> | 
 | 2214 | int | 
 | 2215 | main () | 
 | 2216 | { | 
 | 2217 |  | 
 | 2218 |   FILE *f = fopen ("conftest.val", "w"); | 
 | 2219 |   if (! f) | 
 | 2220 |     return 1; | 
 | 2221 |   if (($2) < 0) | 
 | 2222 |     { | 
 | 2223 |       long int i = longval (); | 
 | 2224 |       if (i != ($2)) | 
 | 2225 | 	return 1; | 
 | 2226 |       fprintf (f, "%ld", i); | 
 | 2227 |     } | 
 | 2228 |   else | 
 | 2229 |     { | 
 | 2230 |       unsigned long int i = ulongval (); | 
 | 2231 |       if (i != ($2)) | 
 | 2232 | 	return 1; | 
 | 2233 |       fprintf (f, "%lu", i); | 
 | 2234 |     } | 
 | 2235 |   /* Do not output a trailing newline, as this causes \r\n confusion | 
 | 2236 |      on some platforms.  */ | 
 | 2237 |   return ferror (f) || fclose (f) != 0; | 
 | 2238 |  | 
 | 2239 |   ; | 
 | 2240 |   return 0; | 
 | 2241 | } | 
 | 2242 | _ACEOF | 
 | 2243 | if ac_fn_c_try_run "$LINENO"; then : | 
 | 2244 |   echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | 
 | 2245 | else | 
 | 2246 |   ac_retval=1 | 
 | 2247 | fi | 
 | 2248 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 2249 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
 | 2250 | rm -f conftest.val | 
 | 2251 |  | 
 | 2252 |   fi | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 2253 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2254 |   as_fn_set_status $ac_retval | 
 | 2255 |  | 
 | 2256 | } # ac_fn_c_compute_int | 
 | 2257 |  | 
 | 2258 | # ac_fn_c_check_func LINENO FUNC VAR | 
 | 2259 | # ---------------------------------- | 
 | 2260 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | 
 | 2261 | ac_fn_c_check_func () | 
 | 2262 | { | 
 | 2263 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 2264 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
 | 2265 | $as_echo_n "checking for $2... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 2266 | if eval \${$3+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2267 |   $as_echo_n "(cached) " >&6 | 
 | 2268 | else | 
 | 2269 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2270 | /* end confdefs.h.  */ | 
 | 2271 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | 
 | 2272 |    For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
 | 2273 | #define $2 innocuous_$2 | 
 | 2274 |  | 
 | 2275 | /* System header to define __stub macros and hopefully few prototypes, | 
 | 2276 |     which can conflict with char $2 (); below. | 
 | 2277 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 2278 |     <limits.h> exists even on freestanding compilers.  */ | 
 | 2279 |  | 
 | 2280 | #ifdef __STDC__ | 
 | 2281 | # include <limits.h> | 
 | 2282 | #else | 
 | 2283 | # include <assert.h> | 
 | 2284 | #endif | 
 | 2285 |  | 
 | 2286 | #undef $2 | 
 | 2287 |  | 
 | 2288 | /* Override any GCC internal prototype to avoid an error. | 
 | 2289 |    Use char because int might match the return type of a GCC | 
 | 2290 |    builtin and then its argument prototype would still apply.  */ | 
 | 2291 | #ifdef __cplusplus | 
 | 2292 | extern "C" | 
 | 2293 | #endif | 
 | 2294 | char $2 (); | 
 | 2295 | /* The GNU C library defines this for functions which it implements | 
 | 2296 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 2297 |     something starting with __ and the normal name is an alias.  */ | 
 | 2298 | #if defined __stub_$2 || defined __stub___$2 | 
 | 2299 | choke me | 
 | 2300 | #endif | 
 | 2301 |  | 
 | 2302 | int | 
 | 2303 | main () | 
 | 2304 | { | 
 | 2305 | return $2 (); | 
 | 2306 |   ; | 
 | 2307 |   return 0; | 
 | 2308 | } | 
 | 2309 | _ACEOF | 
 | 2310 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 2311 |   eval "$3=yes" | 
 | 2312 | else | 
 | 2313 |   eval "$3=no" | 
 | 2314 | fi | 
 | 2315 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 2316 |     conftest$ac_exeext conftest.$ac_ext | 
 | 2317 | fi | 
 | 2318 | eval ac_res=\$$3 | 
 | 2319 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 2320 | $as_echo "$ac_res" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 2321 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2322 |  | 
 | 2323 | } # ac_fn_c_check_func | 
 | 2324 |  | 
 | 2325 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES | 
 | 2326 | # ---------------------------------------------------- | 
 | 2327 | # Tries to find if the field MEMBER exists in type AGGR, after including | 
 | 2328 | # INCLUDES, setting cache variable VAR accordingly. | 
 | 2329 | ac_fn_c_check_member () | 
 | 2330 | { | 
 | 2331 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 2332 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 | 
 | 2333 | $as_echo_n "checking for $2.$3... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 2334 | if eval \${$4+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2335 |   $as_echo_n "(cached) " >&6 | 
 | 2336 | else | 
 | 2337 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2338 | /* end confdefs.h.  */ | 
 | 2339 | $5 | 
 | 2340 | int | 
 | 2341 | main () | 
 | 2342 | { | 
 | 2343 | static $2 ac_aggr; | 
 | 2344 | if (ac_aggr.$3) | 
 | 2345 | return 0; | 
 | 2346 |   ; | 
 | 2347 |   return 0; | 
 | 2348 | } | 
 | 2349 | _ACEOF | 
 | 2350 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2351 |   eval "$4=yes" | 
 | 2352 | else | 
 | 2353 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2354 | /* end confdefs.h.  */ | 
 | 2355 | $5 | 
 | 2356 | int | 
 | 2357 | main () | 
 | 2358 | { | 
 | 2359 | static $2 ac_aggr; | 
 | 2360 | if (sizeof ac_aggr.$3) | 
 | 2361 | return 0; | 
 | 2362 |   ; | 
 | 2363 |   return 0; | 
 | 2364 | } | 
 | 2365 | _ACEOF | 
 | 2366 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2367 |   eval "$4=yes" | 
 | 2368 | else | 
 | 2369 |   eval "$4=no" | 
 | 2370 | fi | 
 | 2371 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2372 | fi | 
 | 2373 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2374 | fi | 
 | 2375 | eval ac_res=\$$4 | 
 | 2376 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 2377 | $as_echo "$ac_res" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 2378 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2379 |  | 
 | 2380 | } # ac_fn_c_check_member | 
 | 2381 |  | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2382 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES | 
 | 2383 | # --------------------------------------------- | 
 | 2384 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR | 
 | 2385 | # accordingly. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2386 | ac_fn_c_check_decl () | 
 | 2387 | { | 
 | 2388 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2389 |   as_decl_name=`echo $2|sed 's/ *(.*//'` | 
 | 2390 |   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | 
 | 2391 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | 
 | 2392 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 2393 | if eval \${$3+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2394 |   $as_echo_n "(cached) " >&6 | 
 | 2395 | else | 
 | 2396 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2397 | /* end confdefs.h.  */ | 
 | 2398 | $4 | 
 | 2399 | int | 
 | 2400 | main () | 
 | 2401 | { | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2402 | #ifndef $as_decl_name | 
 | 2403 | #ifdef __cplusplus | 
 | 2404 |   (void) $as_decl_use; | 
 | 2405 | #else | 
 | 2406 |   (void) $as_decl_name; | 
 | 2407 | #endif | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2408 | #endif | 
 | 2409 |  | 
 | 2410 |   ; | 
 | 2411 |   return 0; | 
 | 2412 | } | 
 | 2413 | _ACEOF | 
 | 2414 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2415 |   eval "$3=yes" | 
 | 2416 | else | 
 | 2417 |   eval "$3=no" | 
 | 2418 | fi | 
 | 2419 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2420 | fi | 
 | 2421 | eval ac_res=\$$3 | 
 | 2422 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 2423 | $as_echo "$ac_res" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 2424 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2425 |  | 
 | 2426 | } # ac_fn_c_check_decl | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2427 | cat >config.log <<_ACEOF | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2428 | This file contains any messages produced by compilers while | 
 | 2429 | running configure, to aid debugging if configure makes a mistake. | 
 | 2430 |  | 
| Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 2431 | It was created by python $as_me 2.7, which was | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 2432 | generated by GNU Autoconf 2.69.  Invocation command line was | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2433 |  | 
 | 2434 |   $ $0 $@ | 
 | 2435 |  | 
 | 2436 | _ACEOF | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2437 | exec 5>>config.log | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2438 | { | 
 | 2439 | cat <<_ASUNAME | 
 | 2440 | ## --------- ## | 
 | 2441 | ## Platform. ## | 
 | 2442 | ## --------- ## | 
 | 2443 |  | 
 | 2444 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | 
 | 2445 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | 
 | 2446 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | 
 | 2447 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | 
 | 2448 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | 
 | 2449 |  | 
 | 2450 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | 
 | 2451 | /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown` | 
 | 2452 |  | 
 | 2453 | /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown` | 
 | 2454 | /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown` | 
 | 2455 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2456 | /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] | 2457 | /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown` | 
 | 2458 | /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown` | 
 | 2459 | /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown` | 
 | 2460 |  | 
 | 2461 | _ASUNAME | 
 | 2462 |  | 
 | 2463 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 2464 | for as_dir in $PATH | 
 | 2465 | do | 
 | 2466 |   IFS=$as_save_IFS | 
 | 2467 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2468 |     $as_echo "PATH: $as_dir" | 
 | 2469 |   done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2470 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2471 |  | 
 | 2472 | } >&5 | 
 | 2473 |  | 
 | 2474 | cat >&5 <<_ACEOF | 
 | 2475 |  | 
 | 2476 |  | 
 | 2477 | ## ----------- ## | 
 | 2478 | ## Core tests. ## | 
 | 2479 | ## ----------- ## | 
 | 2480 |  | 
 | 2481 | _ACEOF | 
 | 2482 |  | 
 | 2483 |  | 
 | 2484 | # Keep a trace of the command line. | 
 | 2485 | # 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] | 2486 | # 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] | 2487 | # Also quote any args containing shell meta-characters. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2488 | # Make two passes to allow for proper duplicate-argument suppression. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2489 | ac_configure_args= | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2490 | ac_configure_args0= | 
 | 2491 | ac_configure_args1= | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2492 | ac_must_keep_next=false | 
 | 2493 | for ac_pass in 1 2 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2494 | do | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2495 |   for ac_arg | 
 | 2496 |   do | 
 | 2497 |     case $ac_arg in | 
 | 2498 |     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | 
 | 2499 |     -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
 | 2500 |     | -silent | --silent | --silen | --sile | --sil) | 
 | 2501 |       continue ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2502 |     *\'*) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2503 |       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2504 |     esac | 
 | 2505 |     case $ac_pass in | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2506 |     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2507 |     2) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2508 |       as_fn_append ac_configure_args1 " '$ac_arg'" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2509 |       if test $ac_must_keep_next = true; then | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2510 | 	ac_must_keep_next=false # Got value, back to normal. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2511 |       else | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2512 | 	case $ac_arg in | 
 | 2513 | 	  *=* | --config-cache | -C | -disable-* | --disable-* \ | 
 | 2514 | 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | 
 | 2515 | 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | 
 | 2516 | 	  | -with-* | --with-* | -without-* | --without-* | --x) | 
 | 2517 | 	    case "$ac_configure_args0 " in | 
 | 2518 | 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | 
 | 2519 | 	    esac | 
 | 2520 | 	    ;; | 
 | 2521 | 	  -* ) ac_must_keep_next=true ;; | 
 | 2522 | 	esac | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2523 |       fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2524 |       as_fn_append ac_configure_args " '$ac_arg'" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2525 |       ;; | 
 | 2526 |     esac | 
 | 2527 |   done | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2528 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2529 | { ac_configure_args0=; unset ac_configure_args0;} | 
 | 2530 | { ac_configure_args1=; unset ac_configure_args1;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2531 |  | 
 | 2532 | # When interrupted or exit'd, cleanup temporary files, and complete | 
 | 2533 | # config.log.  We remove comments because anyway the quotes in there | 
 | 2534 | # would cause problems or look ugly. | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2535 | # WARNING: Use '\'' to represent an apostrophe within the trap. | 
 | 2536 | # 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] | 2537 | trap 'exit_status=$? | 
 | 2538 |   # Save into config.log some information that might help in debugging. | 
 | 2539 |   { | 
 | 2540 |     echo | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2541 |  | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2542 |     $as_echo "## ---------------- ## | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2543 | ## Cache variables. ## | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2544 | ## ---------------- ##" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2545 |     echo | 
 | 2546 |     # The following way of writing the cache mishandles newlines in values, | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2547 | ( | 
 | 2548 |   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | 
 | 2549 |     eval ac_val=\$$ac_var | 
 | 2550 |     case $ac_val in #( | 
 | 2551 |     *${as_nl}*) | 
 | 2552 |       case $ac_var in #( | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2553 |       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | 
 | 2554 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2555 |       esac | 
 | 2556 |       case $ac_var in #( | 
 | 2557 |       _ | IFS | as_nl) ;; #( | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2558 |       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | 
 | 2559 |       *) { eval $ac_var=; unset $ac_var;} ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2560 |       esac ;; | 
 | 2561 |     esac | 
 | 2562 |   done | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2563 |   (set) 2>&1 | | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2564 |     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | 
 | 2565 |     *${as_nl}ac_space=\ *) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2566 |       sed -n \ | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2567 | 	"s/'\''/'\''\\\\'\'''\''/g; | 
 | 2568 | 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | 
 | 2569 |       ;; #( | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 2570 |     *) | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2571 |       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 2572 |       ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2573 |     esac | | 
 | 2574 |     sort | 
 | 2575 | ) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2576 |     echo | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2577 |  | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2578 |     $as_echo "## ----------------- ## | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2579 | ## Output variables. ## | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2580 | ## ----------------- ##" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2581 |     echo | 
 | 2582 |     for ac_var in $ac_subst_vars | 
 | 2583 |     do | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2584 |       eval ac_val=\$$ac_var | 
 | 2585 |       case $ac_val in | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2586 |       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2587 |       esac | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2588 |       $as_echo "$ac_var='\''$ac_val'\''" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2589 |     done | sort | 
 | 2590 |     echo | 
 | 2591 |  | 
 | 2592 |     if test -n "$ac_subst_files"; then | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2593 |       $as_echo "## ------------------- ## | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2594 | ## File substitutions. ## | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2595 | ## ------------------- ##" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2596 |       echo | 
 | 2597 |       for ac_var in $ac_subst_files | 
 | 2598 |       do | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2599 | 	eval ac_val=\$$ac_var | 
 | 2600 | 	case $ac_val in | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2601 | 	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2602 | 	esac | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2603 | 	$as_echo "$ac_var='\''$ac_val'\''" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2604 |       done | sort | 
 | 2605 |       echo | 
 | 2606 |     fi | 
 | 2607 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2608 |     if test -s confdefs.h; then | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2609 |       $as_echo "## ----------- ## | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2610 | ## confdefs.h. ## | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2611 | ## ----------- ##" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2612 |       echo | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2613 |       cat confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2614 |       echo | 
 | 2615 |     fi | 
 | 2616 |     test "$ac_signal" != 0 && | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2617 |       $as_echo "$as_me: caught signal $ac_signal" | 
 | 2618 |     $as_echo "$as_me: exit $exit_status" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2619 |   } >&5 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2620 |   rm -f core *.core core.conftest.* && | 
 | 2621 |     rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2622 |     exit $exit_status | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2623 | ' 0 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2624 | for ac_signal in 1 2 13 15; do | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2625 |   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] | 2626 | done | 
 | 2627 | ac_signal=0 | 
 | 2628 |  | 
 | 2629 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2630 | rm -f -r conftest* confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2631 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2632 | $as_echo "/* confdefs.h */" > confdefs.h | 
 | 2633 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2634 | # Predefined preprocessor variables. | 
 | 2635 |  | 
 | 2636 | cat >>confdefs.h <<_ACEOF | 
 | 2637 | #define PACKAGE_NAME "$PACKAGE_NAME" | 
 | 2638 | _ACEOF | 
 | 2639 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2640 | cat >>confdefs.h <<_ACEOF | 
 | 2641 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | 
 | 2642 | _ACEOF | 
 | 2643 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2644 | cat >>confdefs.h <<_ACEOF | 
 | 2645 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | 
 | 2646 | _ACEOF | 
 | 2647 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2648 | cat >>confdefs.h <<_ACEOF | 
 | 2649 | #define PACKAGE_STRING "$PACKAGE_STRING" | 
 | 2650 | _ACEOF | 
 | 2651 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2652 | cat >>confdefs.h <<_ACEOF | 
 | 2653 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | 
 | 2654 | _ACEOF | 
 | 2655 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2656 | cat >>confdefs.h <<_ACEOF | 
 | 2657 | #define PACKAGE_URL "$PACKAGE_URL" | 
 | 2658 | _ACEOF | 
 | 2659 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2660 |  | 
 | 2661 | # Let the site file select an alternate cache file if it wants to. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2662 | # Prefer an explicitly selected file to automatically selected ones. | 
 | 2663 | ac_site_file1=NONE | 
 | 2664 | ac_site_file2=NONE | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2665 | if test -n "$CONFIG_SITE"; then | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2666 |   # We do not want a PATH search for config.site. | 
 | 2667 |   case $CONFIG_SITE in #(( | 
 | 2668 |     -*)  ac_site_file1=./$CONFIG_SITE;; | 
 | 2669 |     */*) ac_site_file1=$CONFIG_SITE;; | 
 | 2670 |     *)   ac_site_file1=./$CONFIG_SITE;; | 
 | 2671 |   esac | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2672 | elif test "x$prefix" != xNONE; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2673 |   ac_site_file1=$prefix/share/config.site | 
 | 2674 |   ac_site_file2=$prefix/etc/config.site | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2675 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2676 |   ac_site_file1=$ac_default_prefix/share/config.site | 
 | 2677 |   ac_site_file2=$ac_default_prefix/etc/config.site | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2678 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2679 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2680 | do | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2681 |   test "x$ac_site_file" = xNONE && continue | 
 | 2682 |   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | 
 | 2683 |     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | 
 | 2684 | $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] | 2685 |     sed 's/^/| /' "$ac_site_file" >&5 | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2686 |     . "$ac_site_file" \ | 
 | 2687 |       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 2688 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
 | 2689 | as_fn_error $? "failed to load site script $ac_site_file | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 2690 | See \`config.log' for more details" "$LINENO" 5; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2691 |   fi | 
 | 2692 | done | 
 | 2693 |  | 
 | 2694 | if test -r "$cache_file"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2695 |   # Some versions of bash will fail to source /dev/null (special files | 
 | 2696 |   # actually), so we avoid doing that.  DJGPP emulates it as a regular file. | 
 | 2697 |   if test /dev/null != "$cache_file" && test -f "$cache_file"; then | 
 | 2698 |     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | 
 | 2699 | $as_echo "$as_me: loading cache $cache_file" >&6;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2700 |     case $cache_file in | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2701 |       [\\/]* | ?:[\\/]* ) . "$cache_file";; | 
 | 2702 |       *)                      . "./$cache_file";; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2703 |     esac | 
 | 2704 |   fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2705 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2706 |   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | 
 | 2707 | $as_echo "$as_me: creating cache $cache_file" >&6;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2708 |   >$cache_file | 
 | 2709 | fi | 
 | 2710 |  | 
 | 2711 | # Check that the precious variables saved in the cache have kept the same | 
 | 2712 | # value. | 
 | 2713 | ac_cache_corrupted=false | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2714 | for ac_var in $ac_precious_vars; do | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2715 |   eval ac_old_set=\$ac_cv_env_${ac_var}_set | 
 | 2716 |   eval ac_new_set=\$ac_env_${ac_var}_set | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2717 |   eval ac_old_val=\$ac_cv_env_${ac_var}_value | 
 | 2718 |   eval ac_new_val=\$ac_env_${ac_var}_value | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2719 |   case $ac_old_set,$ac_new_set in | 
 | 2720 |     set,) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2721 |       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | 
 | 2722 | $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] | 2723 |       ac_cache_corrupted=: ;; | 
 | 2724 |     ,set) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2725 |       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | 
 | 2726 | $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] | 2727 |       ac_cache_corrupted=: ;; | 
 | 2728 |     ,);; | 
 | 2729 |     *) | 
 | 2730 |       if test "x$ac_old_val" != "x$ac_new_val"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2731 | 	# differences in whitespace do not lead to failure. | 
 | 2732 | 	ac_old_val_w=`echo x $ac_old_val` | 
 | 2733 | 	ac_new_val_w=`echo x $ac_new_val` | 
 | 2734 | 	if test "$ac_old_val_w" != "$ac_new_val_w"; then | 
 | 2735 | 	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | 
 | 2736 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | 
 | 2737 | 	  ac_cache_corrupted=: | 
 | 2738 | 	else | 
 | 2739 | 	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | 
 | 2740 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | 
 | 2741 | 	  eval $ac_var=\$ac_old_val | 
 | 2742 | 	fi | 
 | 2743 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5 | 
 | 2744 | $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;} | 
 | 2745 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5 | 
 | 2746 | $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2747 |       fi;; | 
 | 2748 |   esac | 
 | 2749 |   # Pass precious variables to config.status. | 
 | 2750 |   if test "$ac_new_set" = set; then | 
 | 2751 |     case $ac_new_val in | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2752 |     *\'*) 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] | 2753 |     *) ac_arg=$ac_var=$ac_new_val ;; | 
 | 2754 |     esac | 
 | 2755 |     case " $ac_configure_args " in | 
 | 2756 |       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2757 |       *) as_fn_append ac_configure_args " '$ac_arg'" ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2758 |     esac | 
 | 2759 |   fi | 
 | 2760 | done | 
 | 2761 | if $ac_cache_corrupted; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2762 |   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 2763 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
 | 2764 |   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | 
 | 2765 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2766 |   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] | 2767 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2768 | ## -------------------- ## | 
 | 2769 | ## Main body of script. ## | 
 | 2770 | ## -------------------- ## | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2771 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2772 | ac_ext=c | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2773 | ac_cpp='$CPP $CPPFLAGS' | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2774 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 2775 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 2776 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2777 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2778 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2779 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2780 | ac_config_headers="$ac_config_headers pyconfig.h" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2781 |  | 
 | 2782 |  | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 2783 | ac_aux_dir= | 
 | 2784 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | 
 | 2785 |   if test -f "$ac_dir/install-sh"; then | 
 | 2786 |     ac_aux_dir=$ac_dir | 
 | 2787 |     ac_install_sh="$ac_aux_dir/install-sh -c" | 
 | 2788 |     break | 
 | 2789 |   elif test -f "$ac_dir/install.sh"; then | 
 | 2790 |     ac_aux_dir=$ac_dir | 
 | 2791 |     ac_install_sh="$ac_aux_dir/install.sh -c" | 
 | 2792 |     break | 
 | 2793 |   elif test -f "$ac_dir/shtool"; then | 
 | 2794 |     ac_aux_dir=$ac_dir | 
 | 2795 |     ac_install_sh="$ac_aux_dir/shtool install -c" | 
 | 2796 |     break | 
 | 2797 |   fi | 
 | 2798 | done | 
 | 2799 | if test -z "$ac_aux_dir"; then | 
 | 2800 |   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | 
 | 2801 | fi | 
 | 2802 |  | 
 | 2803 | # These three variables are undocumented and unsupported, | 
 | 2804 | # and are intended to be withdrawn in a future Autoconf release. | 
 | 2805 | # They can cause serious problems if a builder's source tree is in a directory | 
 | 2806 | # whose full name contains unusual characters. | 
 | 2807 | ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var. | 
 | 2808 | ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var. | 
 | 2809 | ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var. | 
 | 2810 |  | 
 | 2811 |  | 
 | 2812 | # Make sure we can run config.sub. | 
 | 2813 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | 
 | 2814 |   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | 
 | 2815 |  | 
 | 2816 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | 
 | 2817 | $as_echo_n "checking build system type... " >&6; } | 
 | 2818 | if ${ac_cv_build+:} false; then : | 
 | 2819 |   $as_echo_n "(cached) " >&6 | 
 | 2820 | else | 
 | 2821 |   ac_build_alias=$build_alias | 
 | 2822 | test "x$ac_build_alias" = x && | 
 | 2823 |   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | 
 | 2824 | test "x$ac_build_alias" = x && | 
 | 2825 |   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | 
 | 2826 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | 
 | 2827 |   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | 
 | 2828 |  | 
 | 2829 | fi | 
 | 2830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | 
 | 2831 | $as_echo "$ac_cv_build" >&6; } | 
 | 2832 | case $ac_cv_build in | 
 | 2833 | *-*-*) ;; | 
 | 2834 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | 
 | 2835 | esac | 
 | 2836 | build=$ac_cv_build | 
 | 2837 | ac_save_IFS=$IFS; IFS='-' | 
 | 2838 | set x $ac_cv_build | 
 | 2839 | shift | 
 | 2840 | build_cpu=$1 | 
 | 2841 | build_vendor=$2 | 
 | 2842 | shift; shift | 
 | 2843 | # Remember, the first character of IFS is used to create $*, | 
 | 2844 | # except with old shells: | 
 | 2845 | build_os=$* | 
 | 2846 | IFS=$ac_save_IFS | 
 | 2847 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | 
 | 2848 |  | 
 | 2849 |  | 
 | 2850 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | 
 | 2851 | $as_echo_n "checking host system type... " >&6; } | 
 | 2852 | if ${ac_cv_host+:} false; then : | 
 | 2853 |   $as_echo_n "(cached) " >&6 | 
 | 2854 | else | 
 | 2855 |   if test "x$host_alias" = x; then | 
 | 2856 |   ac_cv_host=$ac_cv_build | 
 | 2857 | else | 
 | 2858 |   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | 
 | 2859 |     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | 
 | 2860 | fi | 
 | 2861 |  | 
 | 2862 | fi | 
 | 2863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | 
 | 2864 | $as_echo "$ac_cv_host" >&6; } | 
 | 2865 | case $ac_cv_host in | 
 | 2866 | *-*-*) ;; | 
 | 2867 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | 
 | 2868 | esac | 
 | 2869 | host=$ac_cv_host | 
 | 2870 | ac_save_IFS=$IFS; IFS='-' | 
 | 2871 | set x $ac_cv_host | 
 | 2872 | shift | 
 | 2873 | host_cpu=$1 | 
 | 2874 | host_vendor=$2 | 
 | 2875 | shift; shift | 
 | 2876 | # Remember, the first character of IFS is used to create $*, | 
 | 2877 | # except with old shells: | 
 | 2878 | host_os=$* | 
 | 2879 | IFS=$ac_save_IFS | 
 | 2880 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | 
 | 2881 |  | 
 | 2882 |  | 
 | 2883 |  | 
 | 2884 |  | 
 | 2885 |  | 
| Ned Deily | 983df86 | 2014-08-22 13:30:59 -0700 | [diff] [blame] | 2886 | # pybuilddir.txt will be created by --generate-posix-vars in the Makefile | 
 | 2887 | rm -f pybuilddir.txt | 
 | 2888 |  | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 2889 | if test "$cross_compiling" = yes; then | 
 | 2890 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python interpreter for cross build" >&5 | 
 | 2891 | $as_echo_n "checking for python interpreter for cross build... " >&6; } | 
 | 2892 |     if test -z "$PYTHON_FOR_BUILD"; then | 
 | 2893 |         for interp in python$PACKAGE_VERSION python2 python; do | 
 | 2894 | 	    which $interp >/dev/null 2>&1 || continue | 
 | 2895 | 	    if $interp -c 'import sys;sys.exit(not (sys.version_info[:2] >= (2,7) and sys.version_info[0] < 3))'; then | 
 | 2896 | 	        break | 
 | 2897 | 	    fi | 
 | 2898 |             interp= | 
 | 2899 | 	done | 
 | 2900 |         if test x$interp = x; then | 
 | 2901 | 	    as_fn_error $? "python$PACKAGE_VERSION interpreter not found" "$LINENO" 5 | 
 | 2902 | 	fi | 
 | 2903 |         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $interp" >&5 | 
 | 2904 | $as_echo "$interp" >&6; } | 
| doko@ubuntu.com | a50b0de | 2015-04-13 21:55:59 +0200 | [diff] [blame] | 2905 | 	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@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 2906 |     fi | 
 | 2907 | elif test "$cross_compiling" = maybe; then | 
 | 2908 |     as_fn_error $? "Cross compiling required --host=HOST-TUPLE and --build=ARCH" "$LINENO" 5 | 
 | 2909 | else | 
 | 2910 |     PYTHON_FOR_BUILD='./$(BUILDPYTHON) -E' | 
 | 2911 | fi | 
 | 2912 |  | 
 | 2913 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2914 |  | 
| Georg Brandl | bcd64a3 | 2009-03-31 21:45:18 +0000 | [diff] [blame] | 2915 | if test "$prefix" != "/"; then | 
 | 2916 |     prefix=`echo "$prefix" | sed -e 's/\/$//g'` | 
 | 2917 | fi | 
 | 2918 |  | 
 | 2919 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2920 |  | 
 | 2921 |  | 
| Martin v. Löwis | 8316feb | 2003-06-14 07:48:07 +0000 | [diff] [blame] | 2922 | # We don't use PACKAGE_ variables, and they cause conflicts | 
 | 2923 | # with other autoconf-based packages that include Python.h | 
 | 2924 | grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new | 
 | 2925 | rm confdefs.h | 
 | 2926 | mv confdefs.h.new confdefs.h | 
 | 2927 |  | 
| Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 2928 |  | 
| Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 2929 | VERSION=2.7 | 
| Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 2930 |  | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 2931 |  | 
 | 2932 | SOVERSION=1.0 | 
 | 2933 |  | 
| Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 2934 | # The later defininition of _XOPEN_SOURCE disables certain features | 
 | 2935 | # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone). | 
 | 2936 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2937 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | 
| Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 2938 |  | 
 | 2939 |  | 
| Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 2940 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables | 
 | 2941 | # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable | 
 | 2942 | # them. | 
 | 2943 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2944 | $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h | 
| Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 2945 |  | 
 | 2946 |  | 
| Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 2947 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables | 
 | 2948 | # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable | 
 | 2949 | # them. | 
 | 2950 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2951 | $as_echo "#define __BSD_VISIBLE 1" >>confdefs.h | 
| Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 2952 |  | 
 | 2953 |  | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 2954 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables | 
 | 2955 | # u_int on Irix 5.3. Defining _BSD_TYPES brings it back. | 
 | 2956 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2957 | $as_echo "#define _BSD_TYPES 1" >>confdefs.h | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 2958 |  | 
 | 2959 |  | 
| Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 2960 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables | 
 | 2961 | # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable | 
 | 2962 | # them. | 
 | 2963 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2964 | $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h | 
| Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 2965 |  | 
 | 2966 |  | 
 | 2967 |  | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2968 | define_xopen_source=yes | 
| Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 2969 |  | 
| Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 +0000 | [diff] [blame] | 2970 | # Arguments passed to configure. | 
 | 2971 |  | 
 | 2972 | CONFIG_ARGS="$ac_configure_args" | 
 | 2973 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2974 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-universalsdk" >&5 | 
 | 2975 | $as_echo_n "checking for --enable-universalsdk... " >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2976 | # Check whether --enable-universalsdk was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2977 | if test "${enable_universalsdk+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2978 |   enableval=$enable_universalsdk; | 
| Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 2979 | 	case $enableval in | 
 | 2980 | 	yes) | 
 | 2981 | 		enableval=/Developer/SDKs/MacOSX10.4u.sdk | 
| Ronald Oussoren | 3c0a126 | 2010-01-17 19:27:57 +0000 | [diff] [blame] | 2982 | 		if test ! -d "${enableval}" | 
 | 2983 | 		then | 
 | 2984 | 			enableval=/ | 
 | 2985 | 		fi | 
| Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 2986 | 		;; | 
 | 2987 | 	esac | 
 | 2988 | 	case $enableval in | 
 | 2989 | 	no) | 
 | 2990 | 		UNIVERSALSDK= | 
 | 2991 | 		enable_universalsdk= | 
 | 2992 | 		;; | 
 | 2993 | 	*) | 
 | 2994 | 		UNIVERSALSDK=$enableval | 
| Ronald Oussoren | 3c0a126 | 2010-01-17 19:27:57 +0000 | [diff] [blame] | 2995 | 		if test ! -d "${UNIVERSALSDK}" | 
 | 2996 | 		then | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2997 | 			as_fn_error $? "--enable-universalsdk specifies non-existing SDK: ${UNIVERSALSDK}" "$LINENO" 5 | 
| Ronald Oussoren | 3c0a126 | 2010-01-17 19:27:57 +0000 | [diff] [blame] | 2998 | 		fi | 
| Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 2999 | 		;; | 
 | 3000 | 	esac | 
 | 3001 |  | 
| Ronald Oussoren | 3c0a126 | 2010-01-17 19:27:57 +0000 | [diff] [blame] | 3002 |  | 
| Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 3003 | else | 
 | 3004 |  | 
 | 3005 |    	UNIVERSALSDK= | 
 | 3006 | 	enable_universalsdk= | 
 | 3007 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3008 | fi | 
| Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 3009 |  | 
| Ronald Oussoren | 3c0a126 | 2010-01-17 19:27:57 +0000 | [diff] [blame] | 3010 | if test -n "${UNIVERSALSDK}" | 
 | 3011 | then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3012 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSALSDK}" >&5 | 
 | 3013 | $as_echo "${UNIVERSALSDK}" >&6; } | 
| Ronald Oussoren | 3c0a126 | 2010-01-17 19:27:57 +0000 | [diff] [blame] | 3014 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3015 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 3016 | $as_echo "no" >&6; } | 
| Ronald Oussoren | 3c0a126 | 2010-01-17 19:27:57 +0000 | [diff] [blame] | 3017 | fi | 
| Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 3018 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3019 |  | 
| Benjamin Peterson | 0e6ea5d | 2008-07-16 20:17:04 +0000 | [diff] [blame] | 3020 |  | 
| Ned Deily | 8e60f6e | 2013-05-30 00:14:29 -0700 | [diff] [blame] | 3021 | ARCH_RUN_32BIT="" | 
| Benjamin Peterson | 0e6ea5d | 2008-07-16 20:17:04 +0000 | [diff] [blame] | 3022 |  | 
| Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 3023 | UNIVERSAL_ARCHS="32-bit" | 
| Ronald Oussoren | 92919a6 | 2009-12-24 13:30:58 +0000 | [diff] [blame] | 3024 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3025 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-universal-archs" >&5 | 
 | 3026 | $as_echo_n "checking for --with-universal-archs... " >&6; } | 
| Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 3027 |  | 
 | 3028 | # Check whether --with-universal-archs was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3029 | if test "${with_universal_archs+set}" = set; then : | 
| Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 3030 |   withval=$with_universal_archs; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3031 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 | 
 | 3032 | $as_echo "$withval" >&6; } | 
| Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 3033 | 	UNIVERSAL_ARCHS="$withval" | 
| Ronald Oussoren | 9ebd242 | 2009-09-29 13:00:44 +0000 | [diff] [blame] | 3034 |         if test "${enable_universalsdk}" ; then | 
 | 3035 | 		: | 
 | 3036 | 	else | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 3037 | 		as_fn_error $? "--with-universal-archs without --enable-universalsdk. See Mac/README" "$LINENO" 5 | 
| Ronald Oussoren | 9ebd242 | 2009-09-29 13:00:44 +0000 | [diff] [blame] | 3038 | 	fi | 
| Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 3039 |  | 
 | 3040 | else | 
 | 3041 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3042 |  	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: 32-bit" >&5 | 
 | 3043 | $as_echo "32-bit" >&6; } | 
| Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 3044 |  | 
 | 3045 | fi | 
 | 3046 |  | 
 | 3047 |  | 
 | 3048 |  | 
 | 3049 |  | 
| Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 3050 |  | 
 | 3051 | # Check whether --with-framework-name was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3052 | if test "${with_framework_name+set}" = set; then : | 
| Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 3053 |   withval=$with_framework_name; | 
| Ronald Oussoren | 9ebd242 | 2009-09-29 13:00:44 +0000 | [diff] [blame] | 3054 |     if test "${enable_framework}"; then | 
 | 3055 | 	    : | 
 | 3056 |     else | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 3057 | 	as_fn_error $? "--with-framework-name without --enable-framework. See Mac/README" "$LINENO" 5 | 
| Ronald Oussoren | 9ebd242 | 2009-09-29 13:00:44 +0000 | [diff] [blame] | 3058 |     fi | 
| Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 3059 |     PYTHONFRAMEWORK=${withval} | 
 | 3060 |     PYTHONFRAMEWORKDIR=${withval}.framework | 
 | 3061 |     PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'` | 
 | 3062 |  | 
 | 3063 | else | 
 | 3064 |  | 
 | 3065 |     PYTHONFRAMEWORK=Python | 
 | 3066 |     PYTHONFRAMEWORKDIR=Python.framework | 
 | 3067 |     PYTHONFRAMEWORKIDENTIFIER=org.python.python | 
 | 3068 |  | 
 | 3069 | fi | 
 | 3070 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3071 | # Check whether --enable-framework was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3072 | if test "${enable_framework+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3073 |   enableval=$enable_framework; | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3074 | 	case $enableval in | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3075 | 	yes) | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3076 | 		enableval=/Library/Frameworks | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3077 | 	esac | 
 | 3078 | 	case $enableval in | 
 | 3079 | 	no) | 
 | 3080 | 		PYTHONFRAMEWORK= | 
 | 3081 | 		PYTHONFRAMEWORKDIR=no-framework | 
 | 3082 | 		PYTHONFRAMEWORKPREFIX= | 
 | 3083 | 		PYTHONFRAMEWORKINSTALLDIR= | 
| Ronald Oussoren | 567a8ff | 2006-05-26 11:43:26 +0000 | [diff] [blame] | 3084 | 		FRAMEWORKINSTALLFIRST= | 
 | 3085 | 		FRAMEWORKINSTALLLAST= | 
| Ronald Oussoren | 5b78732 | 2006-06-06 19:50:24 +0000 | [diff] [blame] | 3086 | 		FRAMEWORKALTINSTALLFIRST= | 
 | 3087 | 		FRAMEWORKALTINSTALLLAST= | 
| Ronald Oussoren | 2db3a8f | 2006-06-07 19:06:01 +0000 | [diff] [blame] | 3088 | 		if test "x${prefix}" = "xNONE"; then | 
 | 3089 | 			FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" | 
 | 3090 | 		else | 
 | 3091 | 			FRAMEWORKUNIXTOOLSPREFIX="${prefix}" | 
 | 3092 | 		fi | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3093 | 		enable_framework= | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3094 | 		;; | 
 | 3095 | 	*) | 
| Ronald Oussoren | 01d149f | 2010-04-30 11:20:14 +0000 | [diff] [blame] | 3096 | 		PYTHONFRAMEWORKPREFIX="${enableval}" | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3097 | 		PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR | 
| Ronald Oussoren | 567a8ff | 2006-05-26 11:43:26 +0000 | [diff] [blame] | 3098 | 		FRAMEWORKINSTALLFIRST="frameworkinstallstructure" | 
| Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 3099 | 		FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure bininstall maninstall" | 
| Ronald Oussoren | 92919a6 | 2009-12-24 13:30:58 +0000 | [diff] [blame] | 3100 | 		FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools" | 
 | 3101 | 		FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools" | 
| Ronald Oussoren | 01d149f | 2010-04-30 11:20:14 +0000 | [diff] [blame] | 3102 | 		FRAMEWORKINSTALLAPPSPREFIX="/Applications" | 
| Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 3103 |  | 
| Ronald Oussoren | 2db3a8f | 2006-06-07 19:06:01 +0000 | [diff] [blame] | 3104 | 		if test "x${prefix}" = "xNONE" ; then | 
 | 3105 | 			FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" | 
| Ronald Oussoren | 01d149f | 2010-04-30 11:20:14 +0000 | [diff] [blame] | 3106 |  | 
| Ronald Oussoren | 2db3a8f | 2006-06-07 19:06:01 +0000 | [diff] [blame] | 3107 | 		else | 
 | 3108 | 			FRAMEWORKUNIXTOOLSPREFIX="${prefix}" | 
 | 3109 | 		fi | 
| Ronald Oussoren | 01d149f | 2010-04-30 11:20:14 +0000 | [diff] [blame] | 3110 |  | 
 | 3111 | 		case "${enableval}" in | 
 | 3112 | 		/System*) | 
 | 3113 | 			FRAMEWORKINSTALLAPPSPREFIX="/Applications" | 
 | 3114 | 			if test "${prefix}" = "NONE" ; then | 
 | 3115 | 				# See below | 
 | 3116 | 				FRAMEWORKUNIXTOOLSPREFIX="/usr" | 
 | 3117 | 			fi | 
 | 3118 | 			;; | 
 | 3119 |  | 
 | 3120 | 		/Library*) | 
 | 3121 | 			FRAMEWORKINSTALLAPPSPREFIX="/Applications" | 
 | 3122 | 			;; | 
 | 3123 |  | 
 | 3124 | 		*/Library/Frameworks) | 
 | 3125 | 			MDIR="`dirname "${enableval}"`" | 
 | 3126 | 			MDIR="`dirname "${MDIR}"`" | 
 | 3127 | 			FRAMEWORKINSTALLAPPSPREFIX="${MDIR}/Applications" | 
 | 3128 |  | 
 | 3129 | 			if test "${prefix}" = "NONE"; then | 
 | 3130 | 				# User hasn't specified the | 
 | 3131 | 				# --prefix option, but wants to install | 
 | 3132 | 				# the framework in a non-default location, | 
 | 3133 | 				# ensure that the compatibility links get | 
 | 3134 | 				# installed relative to that prefix as well | 
 | 3135 | 				# instead of in /usr/local. | 
 | 3136 | 				FRAMEWORKUNIXTOOLSPREFIX="${MDIR}" | 
 | 3137 | 			fi | 
 | 3138 | 			;; | 
 | 3139 |  | 
 | 3140 | 		*) | 
 | 3141 | 			FRAMEWORKINSTALLAPPSPREFIX="/Applications" | 
 | 3142 | 			;; | 
 | 3143 | 		esac | 
 | 3144 |  | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3145 | 		prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION | 
| Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 3146 |  | 
| Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 3147 | 		# Add files for Mac specific code to the list of output | 
| Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 3148 | 		# files: | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3149 | 		ac_config_files="$ac_config_files Mac/Makefile" | 
| Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 3150 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3151 | 		ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile" | 
| Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 3152 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3153 | 		ac_config_files="$ac_config_files Mac/IDLE/Makefile" | 
| Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 3154 |  | 
| Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 3155 | 		ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist" | 
 | 3156 |  | 
 | 3157 | 		ac_config_files="$ac_config_files Mac/Resources/app/Info.plist" | 
 | 3158 |  | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3159 | 	esac | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3160 |  | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3161 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3162 |  | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3163 | 	PYTHONFRAMEWORK= | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3164 | 	PYTHONFRAMEWORKDIR=no-framework | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3165 | 	PYTHONFRAMEWORKPREFIX= | 
 | 3166 | 	PYTHONFRAMEWORKINSTALLDIR= | 
| Ronald Oussoren | 567a8ff | 2006-05-26 11:43:26 +0000 | [diff] [blame] | 3167 | 	FRAMEWORKINSTALLFIRST= | 
 | 3168 | 	FRAMEWORKINSTALLLAST= | 
| Ronald Oussoren | 5b78732 | 2006-06-06 19:50:24 +0000 | [diff] [blame] | 3169 | 	FRAMEWORKALTINSTALLFIRST= | 
 | 3170 | 	FRAMEWORKALTINSTALLLAST= | 
| Ronald Oussoren | 2db3a8f | 2006-06-07 19:06:01 +0000 | [diff] [blame] | 3171 | 	if test "x${prefix}" = "xNONE" ; then | 
 | 3172 | 		FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" | 
 | 3173 | 	else | 
 | 3174 | 		FRAMEWORKUNIXTOOLSPREFIX="${prefix}" | 
 | 3175 | 	fi | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3176 | 	enable_framework= | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3177 |  | 
| Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 3178 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3179 | fi | 
 | 3180 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3181 |  | 
 | 3182 |  | 
 | 3183 |  | 
 | 3184 |  | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3185 |  | 
| Ronald Oussoren | 567a8ff | 2006-05-26 11:43:26 +0000 | [diff] [blame] | 3186 |  | 
 | 3187 |  | 
| Ronald Oussoren | 5b78732 | 2006-06-06 19:50:24 +0000 | [diff] [blame] | 3188 |  | 
 | 3189 |  | 
 | 3190 |  | 
| Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 3191 |  | 
| Ronald Oussoren | 01d149f | 2010-04-30 11:20:14 +0000 | [diff] [blame] | 3192 |  | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3193 | ##AC_ARG_WITH(dyld, | 
| Matthias Klose | 22520ea | 2010-05-08 10:14:46 +0000 | [diff] [blame] | 3194 | ##            AS_HELP_STRING([--with-dyld], | 
 | 3195 | ##                           [Use (OpenStep|Rhapsody) dynamic linker])) | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3196 | ## | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3197 | # Set name for machine-dependent library files | 
 | 3198 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3199 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP" >&5 | 
 | 3200 | $as_echo_n "checking MACHDEP... " >&6; } | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3201 | if test -z "$MACHDEP" | 
 | 3202 | then | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 3203 |     # avoid using uname for cross builds | 
 | 3204 |     if test "$cross_compiling" = yes; then | 
 | 3205 |        # ac_sys_system and ac_sys_release are only used for setting | 
 | 3206 |        # `define_xopen_source' in the case statement below. For the | 
 | 3207 |        # current supported cross builds, this macro is not adjusted. | 
 | 3208 | 	case "$host" in | 
 | 3209 | 	*-*-linux*) | 
 | 3210 | 		ac_sys_system=Linux | 
 | 3211 | 		;; | 
 | 3212 | 	*-*-cygwin*) | 
 | 3213 | 		ac_sys_system=Cygwin | 
 | 3214 | 		;; | 
 | 3215 | 	*) | 
 | 3216 | 		# for now, limit cross builds to known configurations | 
 | 3217 | 		MACHDEP="unknown" | 
 | 3218 | 		as_fn_error $? "cross build not supported for $host" "$LINENO" 5 | 
 | 3219 | 	esac | 
 | 3220 | 	ac_sys_release= | 
 | 3221 |     else | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3222 | 	ac_sys_system=`uname -s` | 
| Georg Brandl | fe18a11 | 2009-09-04 07:55:14 +0000 | [diff] [blame] | 3223 | 	if test "$ac_sys_system" = "AIX" \ | 
| Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 3224 | 	-o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3225 | 		ac_sys_release=`uname -v` | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3226 | 	else | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3227 | 		ac_sys_release=`uname -r` | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3228 | 	fi | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 3229 |     fi | 
 | 3230 |     ac_md_system=`echo $ac_sys_system | | 
 | 3231 | 			tr -d '/ ' | tr '[A-Z]' '[a-z]'` | 
 | 3232 |     ac_md_release=`echo $ac_sys_release | | 
 | 3233 | 			tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'` | 
 | 3234 |     MACHDEP="$ac_md_system$ac_md_release" | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3235 |  | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 3236 |     case $MACHDEP in | 
| Victor Stinner | acacbaa | 2011-08-20 14:02:38 +0200 | [diff] [blame] | 3237 | 	linux*) MACHDEP="linux2";; | 
| Andrew M. Kuchling | 5a3e4cb | 2001-07-20 19:29:04 +0000 | [diff] [blame] | 3238 | 	cygwin*) MACHDEP="cygwin";; | 
| Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame] | 3239 | 	darwin*) MACHDEP="darwin";; | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3240 | 	atheos*) MACHDEP="atheos";; | 
| Martin v. Löwis | f332228 | 2003-07-13 09:46:13 +0000 | [diff] [blame] | 3241 |         irix646) MACHDEP="irix6";; | 
| Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 3242 | 	'')	MACHDEP="unknown";; | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 3243 |     esac | 
 | 3244 | fi | 
 | 3245 |  | 
 | 3246 |  | 
 | 3247 | if test "$cross_compiling" = yes; then | 
 | 3248 | 	case "$host" in | 
 | 3249 | 	*-*-linux*) | 
 | 3250 | 		case "$host_cpu" in | 
 | 3251 | 		arm*) | 
 | 3252 | 			_host_cpu=arm | 
 | 3253 | 			;; | 
 | 3254 | 		*) | 
 | 3255 | 			_host_cpu=$host_cpu | 
 | 3256 | 		esac | 
 | 3257 | 		;; | 
 | 3258 | 	*-*-cygwin*) | 
 | 3259 | 		_host_cpu= | 
 | 3260 | 		;; | 
 | 3261 | 	*) | 
 | 3262 | 		# for now, limit cross builds to known configurations | 
 | 3263 | 		MACHDEP="unknown" | 
 | 3264 | 		as_fn_error $? "cross build not supported for $host" "$LINENO" 5 | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3265 | 	esac | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 3266 | 	_PYTHON_HOST_PLATFORM="$MACHDEP${_host_cpu:+-$_host_cpu}" | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3267 | fi | 
| Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3268 |  | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3269 | # Some systems cannot stand _XOPEN_SOURCE being defined at all; they | 
 | 3270 | # disable features if it is defined, without any means to access these | 
 | 3271 | # features as extensions. For these systems, we skip the definition of | 
 | 3272 | # _XOPEN_SOURCE. Before adding a system to the list to gain access to | 
 | 3273 | # some feature, make sure there is no alternative way to access this | 
 | 3274 | # feature. Also, when using wildcards, make sure you have verified the | 
 | 3275 | # need for not defining _XOPEN_SOURCE on all systems matching the | 
 | 3276 | # wildcard, and that the wildcard does not include future systems | 
 | 3277 | # (which may remove their limitations). | 
 | 3278 | case $ac_sys_system/$ac_sys_release in | 
 | 3279 |   # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined, | 
 | 3280 |   # 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] | 3281 |   # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish. | 
| Martin v. Löwis | 7875ef6 | 2010-02-15 21:41:12 +0000 | [diff] [blame] | 3282 |   # In addition, Stefan Krah confirms that issue #1244610 exists through | 
 | 3283 |   # OpenBSD 4.6, but is fixed in 4.7. | 
| Charles-François Natali | 97781b0 | 2011-07-22 23:43:42 +0200 | [diff] [blame] | 3284 |   OpenBSD/2.* | OpenBSD/3.* | OpenBSD/4.[0123456]) | 
| Martin v. Löwis | cb78de6 | 2007-12-29 18:49:21 +0000 | [diff] [blame] | 3285 |     define_xopen_source=no | 
 | 3286 |     # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is | 
 | 3287 |     # also defined. This can be overridden by defining _BSD_SOURCE | 
 | 3288 |     # As this has a different meaning on Linux, only define it on OpenBSD | 
 | 3289 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3290 | $as_echo "#define _BSD_SOURCE 1" >>confdefs.h | 
| Martin v. Löwis | cb78de6 | 2007-12-29 18:49:21 +0000 | [diff] [blame] | 3291 |  | 
 | 3292 |     ;; | 
| Charles-François Natali | 97781b0 | 2011-07-22 23:43:42 +0200 | [diff] [blame] | 3293 |   OpenBSD/*) | 
| Martin v. Löwis | 5e2dd86 | 2010-02-15 08:32:00 +0000 | [diff] [blame] | 3294 |     # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is | 
 | 3295 |     # also defined. This can be overridden by defining _BSD_SOURCE | 
 | 3296 |     # As this has a different meaning on Linux, only define it on OpenBSD | 
 | 3297 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3298 | $as_echo "#define _BSD_SOURCE 1" >>confdefs.h | 
| Martin v. Löwis | 5e2dd86 | 2010-02-15 08:32:00 +0000 | [diff] [blame] | 3299 |  | 
 | 3300 |     ;; | 
| Martin v. Löwis | 4d542ec | 2006-11-25 15:39:19 +0000 | [diff] [blame] | 3301 |   # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of | 
 | 3302 |   # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by | 
 | 3303 |   # Marc Recht | 
| Benjamin Peterson | eac68f4 | 2008-11-16 17:54:55 +0000 | [diff] [blame] | 3304 |   NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S]) | 
| Martin v. Löwis | 4d542ec | 2006-11-25 15:39:19 +0000 | [diff] [blame] | 3305 |     define_xopen_source=no;; | 
| Martin v. Löwis | b41afb5 | 2010-05-28 15:28:47 +0000 | [diff] [blame] | 3306 |   # From the perspective of Solaris, _XOPEN_SOURCE is not so much a | 
 | 3307 |   # request to enable features supported by the standard as a request | 
 | 3308 |   # to disable features not supported by the standard.  The best way | 
 | 3309 |   # for Python to use Solaris is simply to leave _XOPEN_SOURCE out | 
 | 3310 |   # entirely and define __EXTENSIONS__ instead. | 
 | 3311 |   SunOS/*) | 
| Martin v. Löwis | a9d7142 | 2003-03-28 18:43:31 +0000 | [diff] [blame] | 3312 |     define_xopen_source=no;; | 
| Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 3313 |   # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE, | 
 | 3314 |   # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice. | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3315 |   # Reconfirmed for 7.1.4 by Martin v. Loewis. | 
| Martin v. Löwis | 253d1f4 | 2004-05-07 19:14:14 +0000 | [diff] [blame] | 3316 |   OpenUNIX/8.0.0| UnixWare/7.1.[0-4]) | 
| Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 3317 |     define_xopen_source=no;; | 
 | 3318 |   # 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] | 3319 |   # 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] | 3320 |   SCO_SV/3.2) | 
| Martin v. Löwis | 53e73c3 | 2003-05-05 05:13:18 +0000 | [diff] [blame] | 3321 |     define_xopen_source=no;; | 
| Martin v. Löwis | bb86d83 | 2008-11-04 20:40:09 +0000 | [diff] [blame] | 3322 |   # On FreeBSD 4, the math functions C89 does not cover are never defined | 
 | 3323 |   # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them. | 
 | 3324 |   FreeBSD/4.*) | 
 | 3325 |     define_xopen_source=no;; | 
 | 3326 |   # On MacOS X 10.2, a bug in ncurses.h means that it craps out if | 
 | 3327 |   # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which | 
 | 3328 |   # identifies itself as Darwin/7.* | 
 | 3329 |   # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE | 
 | 3330 |   # disables platform specific features beyond repair. | 
 | 3331 |   # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE | 
 | 3332 |   # has no effect, don't bother defining them | 
 | 3333 |   Darwin/[6789].*) | 
| Anthony Baxter | 6169c6b | 2003-10-04 07:46:23 +0000 | [diff] [blame] | 3334 |     define_xopen_source=no;; | 
| Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 3335 |   Darwin/1[0-9].*) | 
 | 3336 |     define_xopen_source=no;; | 
| Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 3337 |   # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but | 
 | 3338 |   # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined | 
 | 3339 |   # 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] | 3340 |   AIX/4) | 
 | 3341 |     define_xopen_source=no;; | 
| Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 3342 |   AIX/5) | 
 | 3343 |     if test `uname -r` -eq 1; then | 
 | 3344 |       define_xopen_source=no | 
 | 3345 |     fi | 
 | 3346 |     ;; | 
| Martin v. Löwis | 8c255e4 | 2008-05-23 15:06:50 +0000 | [diff] [blame] | 3347 |   # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from | 
 | 3348 |   # defining NI_NUMERICHOST. | 
 | 3349 |   QNX/6.3.2) | 
 | 3350 |     define_xopen_source=no | 
 | 3351 |     ;; | 
| Martin v. Löwis | a058836 | 2006-04-04 06:03:50 +0000 | [diff] [blame] | 3352 |  | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3353 | esac | 
 | 3354 |  | 
 | 3355 | if test $define_xopen_source = yes | 
 | 3356 | then | 
| Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3357 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3358 | $as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3359 |  | 
| Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3360 |  | 
 | 3361 |   # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires | 
 | 3362 |   # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else | 
 | 3363 |   # several APIs are not declared. Since this is also needed in some | 
 | 3364 |   # cases for HP-UX, we define it globally. | 
| Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3365 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3366 | $as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h | 
| Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3367 |  | 
 | 3368 |  | 
| Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 3369 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3370 | $as_echo "#define _POSIX_C_SOURCE 200112L" >>confdefs.h | 
| Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3371 |  | 
 | 3372 |  | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3373 | fi | 
 | 3374 |  | 
| Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3375 | # | 
 | 3376 | # SGI compilers allow the specification of the both the ABI and the | 
 | 3377 | # ISA on the command line.  Depending on the values of these switches, | 
 | 3378 | # different and often incompatable code will be generated. | 
 | 3379 | # | 
 | 3380 | # The SGI_ABI variable can be used to modify the CC and LDFLAGS and | 
 | 3381 | # thus supply support for various ABI/ISA combinations.  The MACHDEP | 
 | 3382 | # variable is also adjusted. | 
 | 3383 | # | 
 | 3384 |  | 
 | 3385 | if test ! -z "$SGI_ABI" | 
 | 3386 | then | 
 | 3387 |         CC="cc $SGI_ABI" | 
 | 3388 |         LDFLAGS="$SGI_ABI $LDFLAGS" | 
 | 3389 |         MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'` | 
 | 3390 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACHDEP" >&5 | 
 | 3392 | $as_echo "$MACHDEP" >&6; } | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3393 |  | 
| doko@ubuntu.com | a50b0de | 2015-04-13 21:55:59 +0200 | [diff] [blame] | 3394 |  | 
 | 3395 | PLATDIR=plat-$MACHDEP | 
 | 3396 |  | 
| Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 3397 | # And add extra plat-mac for darwin | 
 | 3398 |  | 
| Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 3399 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3400 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking EXTRAPLATDIR" >&5 | 
 | 3401 | $as_echo_n "checking EXTRAPLATDIR... " >&6; } | 
| Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 3402 | if test -z "$EXTRAPLATDIR" | 
 | 3403 | then | 
 | 3404 | 	case $MACHDEP in | 
| Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 3405 | 	darwin) | 
 | 3406 | 		EXTRAPLATDIR="\$(PLATMACDIRS)" | 
 | 3407 | 		EXTRAMACHDEPPATH="\$(PLATMACPATH)" | 
 | 3408 | 		;; | 
 | 3409 | 	*) | 
 | 3410 | 		EXTRAPLATDIR="" | 
 | 3411 | 		EXTRAMACHDEPPATH="" | 
 | 3412 | 		;; | 
| Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 3413 | 	esac | 
 | 3414 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRAPLATDIR" >&5 | 
 | 3416 | $as_echo "$EXTRAPLATDIR" >&6; } | 
| Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 3417 |  | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3418 | # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET, | 
 | 3419 | # it may influence the way we can build extensions, so distutils | 
 | 3420 | # needs to check it | 
 | 3421 |  | 
| Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 3422 |  | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3423 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET= | 
| Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 3424 | EXPORT_MACOSX_DEPLOYMENT_TARGET='#' | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3425 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3426 | # checks for alternative programs | 
| Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3427 |  | 
 | 3428 | # compiler flags are generated in two sets, BASECFLAGS and OPT.  OPT is just | 
 | 3429 | # for debug/optimization stuff.  BASECFLAGS is for flags that are required | 
 | 3430 | # just to get things to compile and link.  Users are free to override OPT | 
 | 3431 | # when running configure or make.  The build should not break if they do. | 
 | 3432 | # BASECFLAGS should generally not be messed with, however. | 
 | 3433 |  | 
 | 3434 | # XXX shouldn't some/most/all of this code be merged with the stuff later | 
 | 3435 | # on that fiddles with OPT and BASECFLAGS? | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3436 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --without-gcc" >&5 | 
 | 3437 | $as_echo_n "checking for --without-gcc... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3438 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3439 | # Check whether --with-gcc was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3440 | if test "${with_gcc+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3441 |   withval=$with_gcc; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3442 | 	case $withval in | 
| Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 3443 | 	no)	CC=${CC:-cc} | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3444 | 		without_gcc=yes;; | 
 | 3445 | 	yes)	CC=gcc | 
 | 3446 | 		without_gcc=no;; | 
 | 3447 | 	*)	CC=$withval | 
 | 3448 | 		without_gcc=$withval;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3449 | 	esac | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3450 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3451 |  | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3452 | 	case $ac_sys_system in | 
| Antoine Pitrou | 285cd16 | 2010-09-21 15:23:17 +0000 | [diff] [blame] | 3453 | 	AIX*)   CC=${CC:-xlc_r} | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 3454 | 		without_gcc=;; | 
| Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 3455 | 	BeOS*) | 
| Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 3456 | 		case $BE_HOST_CPU in | 
 | 3457 | 		ppc) | 
| Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 3458 | 			CC=mwcc | 
| Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 3459 | 			without_gcc=yes | 
| Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3460 | 			BASECFLAGS="$BASECFLAGS -export pragma" | 
 | 3461 | 			OPT="$OPT -O" | 
| Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 3462 | 			LDFLAGS="$LDFLAGS -nodup" | 
| Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 3463 | 			;; | 
 | 3464 | 		x86) | 
| Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 3465 | 			CC=gcc | 
| Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 3466 | 			without_gcc=no | 
| Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3467 | 			OPT="$OPT -O" | 
| Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 3468 | 			;; | 
 | 3469 | 		*) | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 3470 | 			as_fn_error $? "Unknown BeOS platform \"$BE_HOST_CPU\"" "$LINENO" 5 | 
| Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 3471 | 			;; | 
 | 3472 | 		esac | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 3473 | 		AR="\$(srcdir)/Modules/ar_beos" | 
 | 3474 | 		RANLIB=: | 
| Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 3475 | 		;; | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3476 | 	*)	without_gcc=no;; | 
| Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 3477 | 	esac | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3478 | fi | 
 | 3479 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $without_gcc" >&5 | 
 | 3481 | $as_echo "$without_gcc" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3482 |  | 
| Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 3483 | # If the user switches compilers, we can't believe the cache | 
 | 3484 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" | 
 | 3485 | then | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 3486 |   as_fn_error $? "cached CC is different -- throw away $cache_file | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3487 | (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] | 3488 | fi | 
 | 3489 |  | 
| Trent Nelson | 15daa35 | 2012-12-13 06:46:39 +0000 | [diff] [blame] | 3490 | if test "$MACHDEP" = "irix6" && test "$CC" != "gcc"; then | 
 | 3491 |     # Normally, MIPSpro CC treats #error directives as warnings, which means | 
 | 3492 |     # a successful exit code is returned (0).  This is a problem because IRIX | 
 | 3493 |     # has a bunch of system headers with this guard at the top: | 
 | 3494 |     # | 
 | 3495 |     #  #ifndef __c99 | 
 | 3496 |     #  #error This header file is to be used only for c99 mode compilations | 
 | 3497 |     #  #else | 
 | 3498 |     # | 
 | 3499 |     # When autoconf tests for such a header, like stdint.h, this happens: | 
 | 3500 |     # | 
 | 3501 |     #  configure:4619: cc -c   conftest.c >&5 | 
 | 3502 |     #  cc-1035 cc: WARNING File = /usr/include/stdint.h, Line = 5 | 
 | 3503 |     #    #error directive:  This header file is to be used only for c99 mode | 
 | 3504 |     #            compilations | 
 | 3505 |     # | 
 | 3506 |     #    #error This header file is to be used only for c99 mode compilations | 
 | 3507 |     #     ^ | 
 | 3508 |     # | 
 | 3509 |     #  configure:4619: $? = 0 | 
 | 3510 |     #  configure:4619: result: yes | 
 | 3511 |     # | 
 | 3512 |     # Therefore, we use `-diag_error 1035` to have the compiler treat the | 
 | 3513 |     # warning as an error, which causes cc to return a non-zero result, | 
 | 3514 |     # which autoconf can interpret correctly. | 
 | 3515 |     CFLAGS="$CFLAGS -diag_error 1035" | 
 | 3516 |     # Whilst we're here, we might as well make sure CXX defaults to something | 
 | 3517 |     # sensible if we're not using gcc. | 
 | 3518 |     if test -z "$CXX"; then | 
 | 3519 |         CXX="CC" | 
 | 3520 |     fi | 
 | 3521 | fi | 
 | 3522 |  | 
| Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 3523 | # If the user set CFLAGS, use this instead of the automatically | 
 | 3524 | # determined setting | 
 | 3525 | preset_cflags="$CFLAGS" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3526 | ac_ext=c | 
 | 3527 | ac_cpp='$CPP $CPPFLAGS' | 
 | 3528 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 3529 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 3530 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 3531 | if test -n "$ac_tool_prefix"; then | 
 | 3532 |   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | 
 | 3533 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3534 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 3535 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 3536 | if ${ac_cv_prog_CC+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3537 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3538 | else | 
 | 3539 |   if test -n "$CC"; then | 
 | 3540 |   ac_cv_prog_CC="$CC" # Let the user override the test. | 
 | 3541 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3542 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 3543 | for as_dir in $PATH | 
 | 3544 | do | 
 | 3545 |   IFS=$as_save_IFS | 
 | 3546 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3547 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 3548 |   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] | 3549 |     ac_cv_prog_CC="${ac_tool_prefix}gcc" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3550 |     $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] | 3551 |     break 2 | 
 | 3552 |   fi | 
 | 3553 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3554 |   done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3555 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3556 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3557 | fi | 
 | 3558 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3559 | CC=$ac_cv_prog_CC | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3560 | if test -n "$CC"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3561 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
 | 3562 | $as_echo "$CC" >&6; } | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3563 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3564 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 3565 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3566 | fi | 
 | 3567 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3568 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3569 | fi | 
 | 3570 | if test -z "$ac_cv_prog_CC"; then | 
 | 3571 |   ac_ct_CC=$CC | 
 | 3572 |   # Extract the first word of "gcc", so it can be a program name with args. | 
 | 3573 | set dummy gcc; ac_word=$2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3574 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 3575 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 3576 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3577 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3578 | else | 
 | 3579 |   if test -n "$ac_ct_CC"; then | 
 | 3580 |   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | 
 | 3581 | else | 
 | 3582 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 3583 | for as_dir in $PATH | 
 | 3584 | do | 
 | 3585 |   IFS=$as_save_IFS | 
 | 3586 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3587 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 3588 |   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] | 3589 |     ac_cv_prog_ac_ct_CC="gcc" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3590 |     $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] | 3591 |     break 2 | 
 | 3592 |   fi | 
 | 3593 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3594 |   done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3595 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3596 |  | 
 | 3597 | fi | 
 | 3598 | fi | 
 | 3599 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | 
 | 3600 | if test -n "$ac_ct_CC"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3601 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | 
 | 3602 | $as_echo "$ac_ct_CC" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3603 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3604 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 3605 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3606 | fi | 
 | 3607 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3608 |   if test "x$ac_ct_CC" = x; then | 
 | 3609 |     CC="" | 
 | 3610 |   else | 
 | 3611 |     case $cross_compiling:$ac_tool_warned in | 
 | 3612 | yes:) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3613 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 3614 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3615 | ac_tool_warned=yes ;; | 
 | 3616 | esac | 
 | 3617 |     CC=$ac_ct_CC | 
 | 3618 |   fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3619 | else | 
 | 3620 |   CC="$ac_cv_prog_CC" | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3621 | fi | 
 | 3622 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3623 | if test -z "$CC"; then | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3624 |           if test -n "$ac_tool_prefix"; then | 
 | 3625 |     # 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] | 3626 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3627 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 3628 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 3629 | if ${ac_cv_prog_CC+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3630 |   $as_echo_n "(cached) " >&6 | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3631 | else | 
 | 3632 |   if test -n "$CC"; then | 
 | 3633 |   ac_cv_prog_CC="$CC" # Let the user override the test. | 
 | 3634 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3635 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 3636 | for as_dir in $PATH | 
 | 3637 | do | 
 | 3638 |   IFS=$as_save_IFS | 
 | 3639 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3640 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 3641 |   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] | 3642 |     ac_cv_prog_CC="${ac_tool_prefix}cc" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3643 |     $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] | 3644 |     break 2 | 
 | 3645 |   fi | 
 | 3646 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3647 |   done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3648 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3649 |  | 
 | 3650 | fi | 
 | 3651 | fi | 
 | 3652 | CC=$ac_cv_prog_CC | 
 | 3653 | if test -n "$CC"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3654 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
 | 3655 | $as_echo "$CC" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3656 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3657 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 3658 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3659 | fi | 
 | 3660 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3661 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3662 |   fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3663 | fi | 
 | 3664 | if test -z "$CC"; then | 
 | 3665 |   # Extract the first word of "cc", so it can be a program name with args. | 
 | 3666 | set dummy cc; ac_word=$2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3667 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 3668 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 3669 | if ${ac_cv_prog_CC+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3670 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3671 | else | 
 | 3672 |   if test -n "$CC"; then | 
 | 3673 |   ac_cv_prog_CC="$CC" # Let the user override the test. | 
 | 3674 | else | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3675 |   ac_prog_rejected=no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3676 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 3677 | for as_dir in $PATH | 
 | 3678 | do | 
 | 3679 |   IFS=$as_save_IFS | 
 | 3680 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3681 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 3682 |   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] | 3683 |     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | 
 | 3684 |        ac_prog_rejected=yes | 
 | 3685 |        continue | 
 | 3686 |      fi | 
 | 3687 |     ac_cv_prog_CC="cc" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3688 |     $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] | 3689 |     break 2 | 
 | 3690 |   fi | 
 | 3691 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3692 |   done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3693 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3694 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3695 | if test $ac_prog_rejected = yes; then | 
 | 3696 |   # We found a bogon in the path, so make sure we never use it. | 
 | 3697 |   set dummy $ac_cv_prog_CC | 
 | 3698 |   shift | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3699 |   if test $# != 0; then | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3700 |     # We chose a different compiler from the bogus one. | 
 | 3701 |     # However, it has the same basename, so the bogon will be chosen | 
 | 3702 |     # first if we set CC to just the basename; use the full file name. | 
 | 3703 |     shift | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3704 |     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3705 |   fi | 
 | 3706 | fi | 
 | 3707 | fi | 
 | 3708 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3709 | CC=$ac_cv_prog_CC | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3710 | if test -n "$CC"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3711 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
 | 3712 | $as_echo "$CC" >&6; } | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3713 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3714 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 3715 | $as_echo "no" >&6; } | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3716 | fi | 
 | 3717 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3718 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3719 | fi | 
 | 3720 | if test -z "$CC"; then | 
 | 3721 |   if test -n "$ac_tool_prefix"; then | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3722 |   for ac_prog in cl.exe | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3723 |   do | 
 | 3724 |     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
 | 3725 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3726 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 3727 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 3728 | if ${ac_cv_prog_CC+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3729 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3730 | else | 
 | 3731 |   if test -n "$CC"; then | 
 | 3732 |   ac_cv_prog_CC="$CC" # Let the user override the test. | 
 | 3733 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3734 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 3735 | for as_dir in $PATH | 
 | 3736 | do | 
 | 3737 |   IFS=$as_save_IFS | 
 | 3738 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3739 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 3740 |   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] | 3741 |     ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3742 |     $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] | 3743 |     break 2 | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3744 |   fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3745 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3746 |   done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3747 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3748 |  | 
 | 3749 | fi | 
 | 3750 | fi | 
 | 3751 | CC=$ac_cv_prog_CC | 
 | 3752 | if test -n "$CC"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3753 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
 | 3754 | $as_echo "$CC" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3755 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3756 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 3757 | $as_echo "no" >&6; } | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3758 | fi | 
 | 3759 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3760 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3761 |     test -n "$CC" && break | 
 | 3762 |   done | 
 | 3763 | fi | 
 | 3764 | if test -z "$CC"; then | 
 | 3765 |   ac_ct_CC=$CC | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3766 |   for ac_prog in cl.exe | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3767 | do | 
 | 3768 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 3769 | set dummy $ac_prog; ac_word=$2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3770 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 3771 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 3772 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3773 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3774 | else | 
 | 3775 |   if test -n "$ac_ct_CC"; then | 
 | 3776 |   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | 
 | 3777 | else | 
 | 3778 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 3779 | for as_dir in $PATH | 
 | 3780 | do | 
 | 3781 |   IFS=$as_save_IFS | 
 | 3782 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3783 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 3784 |   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] | 3785 |     ac_cv_prog_ac_ct_CC="$ac_prog" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3786 |     $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] | 3787 |     break 2 | 
 | 3788 |   fi | 
 | 3789 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3790 |   done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3791 | IFS=$as_save_IFS | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3792 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3793 | fi | 
 | 3794 | fi | 
 | 3795 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | 
 | 3796 | if test -n "$ac_ct_CC"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3797 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | 
 | 3798 | $as_echo "$ac_ct_CC" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3799 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3800 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 3801 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3802 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3803 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3804 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3805 |   test -n "$ac_ct_CC" && break | 
 | 3806 | done | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3807 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3808 |   if test "x$ac_ct_CC" = x; then | 
 | 3809 |     CC="" | 
 | 3810 |   else | 
 | 3811 |     case $cross_compiling:$ac_tool_warned in | 
 | 3812 | yes:) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3813 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 3814 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3815 | ac_tool_warned=yes ;; | 
 | 3816 | esac | 
 | 3817 |     CC=$ac_ct_CC | 
 | 3818 |   fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3819 | fi | 
 | 3820 |  | 
 | 3821 | fi | 
 | 3822 |  | 
 | 3823 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3824 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 3825 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 3826 | as_fn_error $? "no acceptable C compiler found in \$PATH | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 3827 | See \`config.log' for more details" "$LINENO" 5; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3828 |  | 
 | 3829 | # Provide some information about the compiler. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3830 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | 
 | 3831 | set X $ac_compile | 
 | 3832 | ac_compiler=$2 | 
 | 3833 | for ac_option in --version -v -V -qversion; do | 
 | 3834 |   { { ac_try="$ac_compiler $ac_option >&5" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3835 | case "(($ac_try" in | 
 | 3836 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 3837 |   *) ac_try_echo=$ac_try;; | 
 | 3838 | esac | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3839 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 3840 | $as_echo "$ac_try_echo"; } >&5 | 
 | 3841 |   (eval "$ac_compiler $ac_option >&5") 2>conftest.err | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3842 |   ac_status=$? | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3843 |   if test -s conftest.err; then | 
 | 3844 |     sed '10a\ | 
 | 3845 | ... rest of stderr output deleted ... | 
 | 3846 |          10q' conftest.err >conftest.er1 | 
 | 3847 |     cat conftest.er1 >&5 | 
 | 3848 |   fi | 
 | 3849 |   rm -f conftest.er1 conftest.err | 
 | 3850 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 3851 |   test $ac_status = 0; } | 
 | 3852 | done | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3853 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3854 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3855 | /* end confdefs.h.  */ | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3856 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3857 | int | 
 | 3858 | main () | 
 | 3859 | { | 
 | 3860 |  | 
 | 3861 |   ; | 
 | 3862 |   return 0; | 
 | 3863 | } | 
 | 3864 | _ACEOF | 
 | 3865 | ac_clean_files_save=$ac_clean_files | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3866 | 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] | 3867 | # Try to create an executable without -o first, disregard a.out. | 
 | 3868 | # It will help us diagnose broken compilers, and finding out an intuition | 
 | 3869 | # of exeext. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3870 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | 
 | 3871 | $as_echo_n "checking whether the C compiler works... " >&6; } | 
 | 3872 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | 
 | 3873 |  | 
 | 3874 | # The possible output files: | 
 | 3875 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | 
 | 3876 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3877 | ac_rmfiles= | 
 | 3878 | for ac_file in $ac_files | 
 | 3879 | do | 
 | 3880 |   case $ac_file in | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3881 |     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3882 |     * ) ac_rmfiles="$ac_rmfiles $ac_file";; | 
 | 3883 |   esac | 
 | 3884 | done | 
 | 3885 | rm -f $ac_rmfiles | 
 | 3886 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3887 | if { { ac_try="$ac_link_default" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3888 | case "(($ac_try" in | 
 | 3889 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 3890 |   *) ac_try_echo=$ac_try;; | 
 | 3891 | esac | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3892 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 3893 | $as_echo "$ac_try_echo"; } >&5 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3894 |   (eval "$ac_link_default") 2>&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3895 |   ac_status=$? | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3896 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 3897 |   test $ac_status = 0; }; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3898 |   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | 
 | 3899 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | 
 | 3900 | # in a Makefile.  We should not override ac_cv_exeext if it was cached, | 
 | 3901 | # so that the user can short-circuit this test for compilers unknown to | 
 | 3902 | # Autoconf. | 
 | 3903 | for ac_file in $ac_files '' | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3904 | do | 
 | 3905 |   test -f "$ac_file" || continue | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3906 |   case $ac_file in | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3907 |     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3908 | 	;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3909 |     [ab].out ) | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3910 | 	# We found the default executable, but exeext='' is most | 
 | 3911 | 	# certainly right. | 
 | 3912 | 	break;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3913 |     *.* ) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3914 | 	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3915 | 	then :; else | 
 | 3916 | 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | 
 | 3917 | 	fi | 
 | 3918 | 	# We set ac_cv_exeext here because the later test for it is not | 
 | 3919 | 	# safe: cross compilers may not add the suffix if given an `-o' | 
 | 3920 | 	# argument, so we may need to know it at that point already. | 
 | 3921 | 	# Even if this section looks crufty: it has the advantage of | 
 | 3922 | 	# actually working. | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3923 | 	break;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3924 |     * ) | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3925 | 	break;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3926 |   esac | 
 | 3927 | done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3928 | test "$ac_cv_exeext" = no && ac_cv_exeext= | 
 | 3929 |  | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3930 | else | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3931 |   ac_file='' | 
 | 3932 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3933 | if test -z "$ac_file"; then : | 
 | 3934 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 3935 | $as_echo "no" >&6; } | 
 | 3936 | $as_echo "$as_me: failed program was:" >&5 | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3937 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 3938 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3939 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 3940 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 3941 | as_fn_error 77 "C compiler cannot create executables | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 3942 | See \`config.log' for more details" "$LINENO" 5; } | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3943 | else | 
 | 3944 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 3945 | $as_echo "yes" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3946 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3947 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | 
 | 3948 | $as_echo_n "checking for C compiler default output file name... " >&6; } | 
 | 3949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | 
 | 3950 | $as_echo "$ac_file" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3951 | ac_exeext=$ac_cv_exeext | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3952 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3953 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3954 | ac_clean_files=$ac_clean_files_save | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3955 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | 
 | 3956 | $as_echo_n "checking for suffix of executables... " >&6; } | 
 | 3957 | if { { ac_try="$ac_link" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3958 | case "(($ac_try" in | 
 | 3959 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 3960 |   *) ac_try_echo=$ac_try;; | 
 | 3961 | esac | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3962 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 3963 | $as_echo "$ac_try_echo"; } >&5 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3964 |   (eval "$ac_link") 2>&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3965 |   ac_status=$? | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3966 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 3967 |   test $ac_status = 0; }; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3968 |   # If both `conftest.exe' and `conftest' are `present' (well, observable) | 
 | 3969 | # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will | 
 | 3970 | # work properly (i.e., refer to `conftest.exe'), while it won't with | 
 | 3971 | # `rm'. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3972 | for ac_file in conftest.exe conftest conftest.*; do | 
 | 3973 |   test -f "$ac_file" || continue | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3974 |   case $ac_file in | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3975 |     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3976 |     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3977 | 	  break;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3978 |     * ) break;; | 
 | 3979 |   esac | 
 | 3980 | done | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3981 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3982 |   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 3983 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 3984 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 3985 | See \`config.log' for more details" "$LINENO" 5; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3986 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3987 | rm -f conftest conftest$ac_cv_exeext | 
 | 3988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | 
 | 3989 | $as_echo "$ac_cv_exeext" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3990 |  | 
 | 3991 | rm -f conftest.$ac_ext | 
 | 3992 | EXEEXT=$ac_cv_exeext | 
 | 3993 | ac_exeext=$EXEEXT | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3994 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 3995 | /* end confdefs.h.  */ | 
 | 3996 | #include <stdio.h> | 
 | 3997 | int | 
 | 3998 | main () | 
 | 3999 | { | 
 | 4000 | FILE *f = fopen ("conftest.out", "w"); | 
 | 4001 |  return ferror (f) || fclose (f) != 0; | 
 | 4002 |  | 
 | 4003 |   ; | 
 | 4004 |   return 0; | 
 | 4005 | } | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4006 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4007 | ac_clean_files="$ac_clean_files conftest.out" | 
 | 4008 | # Check that the compiler produces executables we can run.  If not, either | 
 | 4009 | # the compiler is broken, or we cross compile. | 
 | 4010 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | 
 | 4011 | $as_echo_n "checking whether we are cross compiling... " >&6; } | 
 | 4012 | if test "$cross_compiling" != yes; then | 
 | 4013 |   { { ac_try="$ac_link" | 
 | 4014 | case "(($ac_try" in | 
 | 4015 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 4016 |   *) ac_try_echo=$ac_try;; | 
 | 4017 | esac | 
 | 4018 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 4019 | $as_echo "$ac_try_echo"; } >&5 | 
 | 4020 |   (eval "$ac_link") 2>&5 | 
 | 4021 |   ac_status=$? | 
 | 4022 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 4023 |   test $ac_status = 0; } | 
 | 4024 |   if { ac_try='./conftest$ac_cv_exeext' | 
 | 4025 |   { { case "(($ac_try" in | 
 | 4026 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 4027 |   *) ac_try_echo=$ac_try;; | 
 | 4028 | esac | 
 | 4029 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 4030 | $as_echo "$ac_try_echo"; } >&5 | 
 | 4031 |   (eval "$ac_try") 2>&5 | 
 | 4032 |   ac_status=$? | 
 | 4033 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 4034 |   test $ac_status = 0; }; }; then | 
 | 4035 |     cross_compiling=no | 
 | 4036 |   else | 
 | 4037 |     if test "$cross_compiling" = maybe; then | 
 | 4038 | 	cross_compiling=yes | 
 | 4039 |     else | 
 | 4040 | 	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 4041 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 4042 | as_fn_error $? "cannot run C compiled programs. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4043 | If you meant to cross compile, use \`--host'. | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 4044 | See \`config.log' for more details" "$LINENO" 5; } | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4045 |     fi | 
 | 4046 |   fi | 
 | 4047 | fi | 
 | 4048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | 
 | 4049 | $as_echo "$cross_compiling" >&6; } | 
 | 4050 |  | 
 | 4051 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | 
 | 4052 | ac_clean_files=$ac_clean_files_save | 
 | 4053 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | 
 | 4054 | $as_echo_n "checking for suffix of object files... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 4055 | if ${ac_cv_objext+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4056 |   $as_echo_n "(cached) " >&6 | 
 | 4057 | else | 
 | 4058 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4059 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +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 | rm -f conftest.o conftest.obj | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4070 | if { { ac_try="$ac_compile" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4071 | case "(($ac_try" in | 
 | 4072 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 4073 |   *) ac_try_echo=$ac_try;; | 
 | 4074 | esac | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4075 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 4076 | $as_echo "$ac_try_echo"; } >&5 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4077 |   (eval "$ac_compile") 2>&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4078 |   ac_status=$? | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4079 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 4080 |   test $ac_status = 0; }; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4081 |   for ac_file in conftest.o conftest.obj conftest.*; do | 
 | 4082 |   test -f "$ac_file" || continue; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4083 |   case $ac_file in | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4084 |     *.$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] | 4085 |     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | 
 | 4086 |        break;; | 
 | 4087 |   esac | 
 | 4088 | done | 
 | 4089 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4090 |   $as_echo "$as_me: failed program was:" >&5 | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4091 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 4092 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4093 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 4094 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 4095 | as_fn_error $? "cannot compute suffix of object files: cannot compile | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 4096 | See \`config.log' for more details" "$LINENO" 5; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4097 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4098 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | 
 | 4099 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | 
 | 4101 | $as_echo "$ac_cv_objext" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4102 | OBJEXT=$ac_cv_objext | 
 | 4103 | ac_objext=$OBJEXT | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4104 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | 
 | 4105 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 4106 | if ${ac_cv_c_compiler_gnu+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4107 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4108 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4109 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4110 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4111 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4112 | int | 
 | 4113 | main () | 
 | 4114 | { | 
 | 4115 | #ifndef __GNUC__ | 
 | 4116 |        choke me | 
 | 4117 | #endif | 
 | 4118 |  | 
 | 4119 |   ; | 
 | 4120 |   return 0; | 
 | 4121 | } | 
 | 4122 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4123 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4124 |   ac_compiler_gnu=yes | 
 | 4125 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4126 |   ac_compiler_gnu=no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4127 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4128 | 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] | 4129 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | 
 | 4130 |  | 
 | 4131 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | 
 | 4133 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | 
 | 4134 | if test $ac_compiler_gnu = yes; then | 
 | 4135 |   GCC=yes | 
 | 4136 | else | 
 | 4137 |   GCC= | 
 | 4138 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4139 | ac_test_CFLAGS=${CFLAGS+set} | 
 | 4140 | ac_save_CFLAGS=$CFLAGS | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4141 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | 
 | 4142 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 4143 | if ${ac_cv_prog_cc_g+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4144 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4145 | else | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4146 |   ac_save_c_werror_flag=$ac_c_werror_flag | 
 | 4147 |    ac_c_werror_flag=yes | 
 | 4148 |    ac_cv_prog_cc_g=no | 
 | 4149 |    CFLAGS="-g" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4150 |    cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4151 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4152 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4153 | int | 
 | 4154 | main () | 
 | 4155 | { | 
 | 4156 |  | 
 | 4157 |   ; | 
 | 4158 |   return 0; | 
 | 4159 | } | 
 | 4160 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4161 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4162 |   ac_cv_prog_cc_g=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4163 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4164 |   CFLAGS="" | 
 | 4165 |       cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4166 | /* end confdefs.h.  */ | 
 | 4167 |  | 
 | 4168 | int | 
 | 4169 | main () | 
 | 4170 | { | 
 | 4171 |  | 
 | 4172 |   ; | 
 | 4173 |   return 0; | 
 | 4174 | } | 
 | 4175 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4176 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4177 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4178 | else | 
 | 4179 |   ac_c_werror_flag=$ac_save_c_werror_flag | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4180 | 	 CFLAGS="-g" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4181 | 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4182 | /* end confdefs.h.  */ | 
 | 4183 |  | 
 | 4184 | int | 
 | 4185 | main () | 
 | 4186 | { | 
 | 4187 |  | 
 | 4188 |   ; | 
 | 4189 |   return 0; | 
 | 4190 | } | 
 | 4191 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4192 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4193 |   ac_cv_prog_cc_g=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4194 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4195 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4196 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4197 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 4198 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4199 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 4200 |    ac_c_werror_flag=$ac_save_c_werror_flag | 
 | 4201 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | 
 | 4203 | $as_echo "$ac_cv_prog_cc_g" >&6; } | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4204 | if test "$ac_test_CFLAGS" = set; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4205 |   CFLAGS=$ac_save_CFLAGS | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4206 | elif test $ac_cv_prog_cc_g = yes; then | 
 | 4207 |   if test "$GCC" = yes; then | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4208 |     CFLAGS="-g -O2" | 
 | 4209 |   else | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4210 |     CFLAGS="-g" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4211 |   fi | 
 | 4212 | else | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4213 |   if test "$GCC" = yes; then | 
 | 4214 |     CFLAGS="-O2" | 
 | 4215 |   else | 
 | 4216 |     CFLAGS= | 
 | 4217 |   fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4218 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4219 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | 
 | 4220 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 4221 | if ${ac_cv_prog_cc_c89+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4222 |   $as_echo_n "(cached) " >&6 | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4223 | else | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4224 |   ac_cv_prog_cc_c89=no | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4225 | ac_save_CC=$CC | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4226 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4227 | /* end confdefs.h.  */ | 
 | 4228 | #include <stdarg.h> | 
 | 4229 | #include <stdio.h> | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 4230 | struct stat; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4231 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */ | 
 | 4232 | struct buf { int x; }; | 
 | 4233 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | 
 | 4234 | static char *e (p, i) | 
 | 4235 |      char **p; | 
 | 4236 |      int i; | 
 | 4237 | { | 
 | 4238 |   return p[i]; | 
 | 4239 | } | 
 | 4240 | static char *f (char * (*g) (char **, int), char **p, ...) | 
 | 4241 | { | 
 | 4242 |   char *s; | 
 | 4243 |   va_list v; | 
 | 4244 |   va_start (v,p); | 
 | 4245 |   s = g (p, va_arg (v,int)); | 
 | 4246 |   va_end (v); | 
 | 4247 |   return s; | 
 | 4248 | } | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4249 |  | 
 | 4250 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has | 
 | 4251 |    function prototypes and stuff, but not '\xHH' hex character constants. | 
 | 4252 |    These don't provoke an error unfortunately, instead are silently treated | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4253 |    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] | 4254 |    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an | 
 | 4255 |    array size at least.  It's necessary to write '\x00'==0 to get something | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4256 |    that's true only with -std.  */ | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4257 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | 
 | 4258 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4259 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | 
 | 4260 |    inside strings and character constants.  */ | 
 | 4261 | #define FOO(x) 'x' | 
 | 4262 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | 
 | 4263 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4264 | int test (int i, double x); | 
 | 4265 | struct s1 {int (*f) (int a);}; | 
 | 4266 | struct s2 {int (*f) (double a);}; | 
 | 4267 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | 
 | 4268 | int argc; | 
 | 4269 | char **argv; | 
 | 4270 | int | 
 | 4271 | main () | 
 | 4272 | { | 
 | 4273 | return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1]; | 
 | 4274 |   ; | 
 | 4275 |   return 0; | 
 | 4276 | } | 
 | 4277 | _ACEOF | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4278 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | 
 | 4279 | 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4280 | do | 
 | 4281 |   CC="$ac_save_CC $ac_arg" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4282 |   if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4283 |   ac_cv_prog_cc_c89=$ac_arg | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4284 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4285 | rm -f core conftest.err conftest.$ac_objext | 
 | 4286 |   test "x$ac_cv_prog_cc_c89" != "xno" && break | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4287 | done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4288 | rm -f conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4289 | CC=$ac_save_CC | 
 | 4290 |  | 
 | 4291 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4292 | # AC_CACHE_VAL | 
 | 4293 | case "x$ac_cv_prog_cc_c89" in | 
 | 4294 |   x) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4295 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | 
 | 4296 | $as_echo "none needed" >&6; } ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4297 |   xno) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4298 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | 
 | 4299 | $as_echo "unsupported" >&6; } ;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4300 |   *) | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4301 |     CC="$CC $ac_cv_prog_cc_c89" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4302 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | 
 | 4303 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4304 | esac | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4305 | if test "x$ac_cv_prog_cc_c89" != xno; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4306 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4307 | fi | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4308 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4309 | ac_ext=c | 
 | 4310 | ac_cpp='$CPP $CPPFLAGS' | 
 | 4311 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 4312 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 4313 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4314 |  | 
| Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 4315 | if test ! -z "$preset_cflags" | 
 | 4316 | then | 
 | 4317 | 	CFLAGS=$preset_cflags | 
 | 4318 | fi | 
| Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 4319 |  | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4320 |  | 
 | 4321 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4322 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-cxx-main=<compiler>" >&5 | 
 | 4323 | $as_echo_n "checking for --with-cxx-main=<compiler>... " >&6; } | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4324 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4325 | # Check whether --with-cxx_main was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4326 | if test "${with_cxx_main+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4327 |   withval=$with_cxx_main; | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4328 |  | 
 | 4329 | 	case $withval in | 
 | 4330 | 	no)	with_cxx_main=no | 
 | 4331 | 		MAINCC='$(CC)';; | 
 | 4332 | 	yes)	with_cxx_main=yes | 
 | 4333 | 		MAINCC='$(CXX)';; | 
 | 4334 | 	*)	with_cxx_main=yes | 
 | 4335 | 		MAINCC=$withval | 
 | 4336 | 		if test -z "$CXX" | 
 | 4337 | 		then | 
 | 4338 | 			CXX=$withval | 
 | 4339 | 		fi;; | 
 | 4340 | 	esac | 
 | 4341 | else | 
 | 4342 |  | 
 | 4343 | 	with_cxx_main=no | 
 | 4344 | 	MAINCC='$(CC)' | 
 | 4345 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4346 | fi | 
 | 4347 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_cxx_main" >&5 | 
 | 4349 | $as_echo "$with_cxx_main" >&6; } | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4350 |  | 
 | 4351 | preset_cxx="$CXX" | 
 | 4352 | if test -z "$CXX" | 
 | 4353 | then | 
 | 4354 |         case "$CC" in | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 4355 |         gcc)    if test -n "$ac_tool_prefix"; then | 
 | 4356 |   # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args. | 
 | 4357 | set dummy ${ac_tool_prefix}g++; ac_word=$2 | 
 | 4358 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 4359 | $as_echo_n "checking for $ac_word... " >&6; } | 
 | 4360 | if ${ac_cv_path_CXX+:} false; then : | 
 | 4361 |   $as_echo_n "(cached) " >&6 | 
 | 4362 | else | 
 | 4363 |   case $CXX in | 
 | 4364 |   [\\/]* | ?:[\\/]*) | 
 | 4365 |   ac_cv_path_CXX="$CXX" # Let the user override the test with a path. | 
 | 4366 |   ;; | 
 | 4367 |   *) | 
 | 4368 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4369 | for as_dir in notfound | 
 | 4370 | do | 
 | 4371 |   IFS=$as_save_IFS | 
 | 4372 |   test -z "$as_dir" && as_dir=. | 
 | 4373 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 4374 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 4375 |     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" | 
 | 4376 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 4377 |     break 2 | 
 | 4378 |   fi | 
 | 4379 | done | 
 | 4380 |   done | 
 | 4381 | IFS=$as_save_IFS | 
 | 4382 |  | 
 | 4383 |   ;; | 
 | 4384 | esac | 
 | 4385 | fi | 
 | 4386 | CXX=$ac_cv_path_CXX | 
 | 4387 | if test -n "$CXX"; then | 
 | 4388 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | 
 | 4389 | $as_echo "$CXX" >&6; } | 
 | 4390 | else | 
 | 4391 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 4392 | $as_echo "no" >&6; } | 
 | 4393 | fi | 
 | 4394 |  | 
 | 4395 |  | 
 | 4396 | fi | 
 | 4397 | if test -z "$ac_cv_path_CXX"; then | 
 | 4398 |   ac_pt_CXX=$CXX | 
 | 4399 |   # Extract the first word of "g++", so it can be a program name with args. | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4400 | set dummy g++; ac_word=$2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4401 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 4402 | $as_echo_n "checking for $ac_word... " >&6; } | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 4403 | if ${ac_cv_path_ac_pt_CXX+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4404 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4405 | else | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 4406 |   case $ac_pt_CXX in | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4407 |   [\\/]* | ?:[\\/]*) | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 4408 |   ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4409 |   ;; | 
 | 4410 |   *) | 
 | 4411 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4412 | for as_dir in notfound | 
 | 4413 | do | 
 | 4414 |   IFS=$as_save_IFS | 
 | 4415 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4416 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 4417 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 4418 |     ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4419 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4420 |     break 2 | 
 | 4421 |   fi | 
 | 4422 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4423 |   done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4424 | IFS=$as_save_IFS | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4425 |  | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4426 |   ;; | 
 | 4427 | esac | 
 | 4428 | fi | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 4429 | ac_pt_CXX=$ac_cv_path_ac_pt_CXX | 
 | 4430 | if test -n "$ac_pt_CXX"; then | 
 | 4431 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 | 
 | 4432 | $as_echo "$ac_pt_CXX" >&6; } | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 4433 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4434 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 4435 | $as_echo "no" >&6; } | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 4436 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4437 |  | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 4438 |   if test "x$ac_pt_CXX" = x; then | 
 | 4439 |     CXX="g++" | 
 | 4440 |   else | 
 | 4441 |     case $cross_compiling:$ac_tool_warned in | 
 | 4442 | yes:) | 
 | 4443 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 4444 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
 | 4445 | ac_tool_warned=yes ;; | 
 | 4446 | esac | 
 | 4447 |     CXX=$ac_pt_CXX | 
 | 4448 |   fi | 
 | 4449 | else | 
 | 4450 |   CXX="$ac_cv_path_CXX" | 
 | 4451 | fi | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4452 |  ;; | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 4453 |         cc)     if test -n "$ac_tool_prefix"; then | 
 | 4454 |   # Extract the first word of "${ac_tool_prefix}c++", so it can be a program name with args. | 
 | 4455 | set dummy ${ac_tool_prefix}c++; ac_word=$2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4456 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 4457 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 4458 | if ${ac_cv_path_CXX+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4459 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4460 | else | 
 | 4461 |   case $CXX in | 
 | 4462 |   [\\/]* | ?:[\\/]*) | 
 | 4463 |   ac_cv_path_CXX="$CXX" # Let the user override the test with a path. | 
 | 4464 |   ;; | 
 | 4465 |   *) | 
 | 4466 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4467 | for as_dir in notfound | 
 | 4468 | do | 
 | 4469 |   IFS=$as_save_IFS | 
 | 4470 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4471 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 4472 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4473 |     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4474 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4475 |     break 2 | 
 | 4476 |   fi | 
 | 4477 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4478 |   done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4479 | IFS=$as_save_IFS | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4480 |  | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4481 |   ;; | 
 | 4482 | esac | 
 | 4483 | fi | 
 | 4484 | CXX=$ac_cv_path_CXX | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 4485 | if test -n "$CXX"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4486 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | 
 | 4487 | $as_echo "$CXX" >&6; } | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 4488 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4489 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 4490 | $as_echo "no" >&6; } | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 4491 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4492 |  | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 4493 |  | 
 | 4494 | fi | 
 | 4495 | if test -z "$ac_cv_path_CXX"; then | 
 | 4496 |   ac_pt_CXX=$CXX | 
 | 4497 |   # Extract the first word of "c++", so it can be a program name with args. | 
 | 4498 | set dummy c++; ac_word=$2 | 
 | 4499 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 4500 | $as_echo_n "checking for $ac_word... " >&6; } | 
 | 4501 | if ${ac_cv_path_ac_pt_CXX+:} false; then : | 
 | 4502 |   $as_echo_n "(cached) " >&6 | 
 | 4503 | else | 
 | 4504 |   case $ac_pt_CXX in | 
 | 4505 |   [\\/]* | ?:[\\/]*) | 
 | 4506 |   ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. | 
 | 4507 |   ;; | 
 | 4508 |   *) | 
 | 4509 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4510 | for as_dir in notfound | 
 | 4511 | do | 
 | 4512 |   IFS=$as_save_IFS | 
 | 4513 |   test -z "$as_dir" && as_dir=. | 
 | 4514 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 4515 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 4516 |     ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext" | 
 | 4517 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 4518 |     break 2 | 
 | 4519 |   fi | 
 | 4520 | done | 
 | 4521 |   done | 
 | 4522 | IFS=$as_save_IFS | 
 | 4523 |  | 
 | 4524 |   ;; | 
 | 4525 | esac | 
 | 4526 | fi | 
 | 4527 | ac_pt_CXX=$ac_cv_path_ac_pt_CXX | 
 | 4528 | if test -n "$ac_pt_CXX"; then | 
 | 4529 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 | 
 | 4530 | $as_echo "$ac_pt_CXX" >&6; } | 
 | 4531 | else | 
 | 4532 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 4533 | $as_echo "no" >&6; } | 
 | 4534 | fi | 
 | 4535 |  | 
 | 4536 |   if test "x$ac_pt_CXX" = x; then | 
 | 4537 |     CXX="c++" | 
 | 4538 |   else | 
 | 4539 |     case $cross_compiling:$ac_tool_warned in | 
 | 4540 | yes:) | 
 | 4541 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 4542 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
 | 4543 | ac_tool_warned=yes ;; | 
 | 4544 | esac | 
 | 4545 |     CXX=$ac_pt_CXX | 
 | 4546 |   fi | 
 | 4547 | else | 
 | 4548 |   CXX="$ac_cv_path_CXX" | 
 | 4549 | fi | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4550 |  ;; | 
 | 4551 |         esac | 
 | 4552 | 	if test "$CXX" = "notfound" | 
 | 4553 | 	then | 
 | 4554 | 		CXX="" | 
 | 4555 | 	fi | 
 | 4556 | fi | 
 | 4557 | if test -z "$CXX" | 
 | 4558 | then | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 4559 | 	if test -n "$ac_tool_prefix"; then | 
 | 4560 |   for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl | 
 | 4561 |   do | 
 | 4562 |     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
 | 4563 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4564 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 4565 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 4566 | if ${ac_cv_prog_CXX+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4567 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4568 | else | 
 | 4569 |   if test -n "$CXX"; then | 
 | 4570 |   ac_cv_prog_CXX="$CXX" # Let the user override the test. | 
 | 4571 | else | 
 | 4572 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4573 | for as_dir in $PATH | 
 | 4574 | do | 
 | 4575 |   IFS=$as_save_IFS | 
 | 4576 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4577 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 4578 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 4579 |     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4580 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4581 |     break 2 | 
 | 4582 |   fi | 
 | 4583 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4584 |   done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4585 | IFS=$as_save_IFS | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4586 |  | 
 | 4587 | fi | 
 | 4588 | fi | 
 | 4589 | CXX=$ac_cv_prog_CXX | 
 | 4590 | if test -n "$CXX"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4591 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | 
 | 4592 | $as_echo "$CXX" >&6; } | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4593 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4594 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 4595 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4596 | fi | 
 | 4597 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4598 |  | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 4599 |     test -n "$CXX" && break | 
 | 4600 |   done | 
 | 4601 | fi | 
 | 4602 | if test -z "$CXX"; then | 
 | 4603 |   ac_ct_CXX=$CXX | 
 | 4604 |   for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl | 
 | 4605 | do | 
 | 4606 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 4607 | set dummy $ac_prog; ac_word=$2 | 
 | 4608 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 4609 | $as_echo_n "checking for $ac_word... " >&6; } | 
 | 4610 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : | 
 | 4611 |   $as_echo_n "(cached) " >&6 | 
 | 4612 | else | 
 | 4613 |   if test -n "$ac_ct_CXX"; then | 
 | 4614 |   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | 
 | 4615 | else | 
 | 4616 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4617 | for as_dir in $PATH | 
 | 4618 | do | 
 | 4619 |   IFS=$as_save_IFS | 
 | 4620 |   test -z "$as_dir" && as_dir=. | 
 | 4621 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 4622 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 4623 |     ac_cv_prog_ac_ct_CXX="$ac_prog" | 
 | 4624 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 4625 |     break 2 | 
 | 4626 |   fi | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4627 | done | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 4628 |   done | 
 | 4629 | IFS=$as_save_IFS | 
 | 4630 |  | 
 | 4631 | fi | 
 | 4632 | fi | 
 | 4633 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | 
 | 4634 | if test -n "$ac_ct_CXX"; then | 
 | 4635 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | 
 | 4636 | $as_echo "$ac_ct_CXX" >&6; } | 
 | 4637 | else | 
 | 4638 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 4639 | $as_echo "no" >&6; } | 
 | 4640 | fi | 
 | 4641 |  | 
 | 4642 |  | 
 | 4643 |   test -n "$ac_ct_CXX" && break | 
 | 4644 | done | 
 | 4645 |  | 
 | 4646 |   if test "x$ac_ct_CXX" = x; then | 
 | 4647 |     CXX="notfound" | 
 | 4648 |   else | 
 | 4649 |     case $cross_compiling:$ac_tool_warned in | 
 | 4650 | yes:) | 
 | 4651 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 4652 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
 | 4653 | ac_tool_warned=yes ;; | 
 | 4654 | esac | 
 | 4655 |     CXX=$ac_ct_CXX | 
 | 4656 |   fi | 
 | 4657 | fi | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4658 |  | 
 | 4659 | 	if test "$CXX" = "notfound" | 
 | 4660 | 	then | 
 | 4661 | 		CXX="" | 
 | 4662 | 	fi | 
 | 4663 | fi | 
 | 4664 | if test "$preset_cxx" != "$CXX" | 
 | 4665 | then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4666 |         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4667 |  | 
 | 4668 |   By default, distutils will build C++ extension modules with \"$CXX\". | 
 | 4669 |   If this is not intended, then set CXX on the configure command line. | 
 | 4670 |   " >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4671 | $as_echo "$as_me: WARNING: | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4672 |  | 
 | 4673 |   By default, distutils will build C++ extension modules with \"$CXX\". | 
 | 4674 |   If this is not intended, then set CXX on the configure command line. | 
 | 4675 |   " >&2;} | 
 | 4676 | fi | 
 | 4677 |  | 
| doko@python.org | 4e63fbe | 2013-01-25 13:08:27 +0100 | [diff] [blame] | 4678 | MULTIARCH=$($CC --print-multiarch 2>/dev/null) | 
 | 4679 |  | 
 | 4680 |  | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4681 |  | 
| Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 4682 | # checks for UNIX variants that set C preprocessor variables | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4683 |  | 
 | 4684 | ac_ext=c | 
 | 4685 | ac_cpp='$CPP $CPPFLAGS' | 
 | 4686 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 4687 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 4688 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4689 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | 
 | 4690 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | 
| Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 4691 | # On Suns, sometimes $CPP names a directory. | 
 | 4692 | if test -n "$CPP" && test -d "$CPP"; then | 
 | 4693 |   CPP= | 
 | 4694 | fi | 
 | 4695 | if test -z "$CPP"; then | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 4696 |   if ${ac_cv_prog_CPP+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4697 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 4698 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4699 |       # Double quotes because CPP needs to be expanded | 
 | 4700 |     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | 
 | 4701 |     do | 
 | 4702 |       ac_preproc_ok=false | 
 | 4703 | for ac_c_preproc_warn_flag in '' yes | 
 | 4704 | do | 
 | 4705 |   # Use a header file that comes with gcc, so configuring glibc | 
 | 4706 |   # with a fresh cross-compiler works. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4707 |   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 4708 |   # <limits.h> exists even on freestanding compilers. | 
| Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 4709 |   # On the NeXT, cc -E runs the code through the compiler's parser, | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4710 |   # not just through cpp. "Syntax error" is here to catch this case. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4711 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4712 | /* end confdefs.h.  */ | 
 | 4713 | #ifdef __STDC__ | 
 | 4714 | # include <limits.h> | 
 | 4715 | #else | 
 | 4716 | # include <assert.h> | 
 | 4717 | #endif | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4718 | 		     Syntax error | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4719 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4720 | if ac_fn_c_try_cpp "$LINENO"; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4721 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4722 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4723 |   # Broken: fails on valid input. | 
 | 4724 | continue | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 4725 | fi | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 4726 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 4727 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4728 |   # OK, works on sane cases.  Now check whether nonexistent headers | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4729 |   # can be detected and how. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4730 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4731 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4732 | #include <ac_nonexistent.h> | 
 | 4733 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4734 | if ac_fn_c_try_cpp "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4735 |   # Broken: success on invalid input. | 
 | 4736 | continue | 
 | 4737 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4738 |   # Passes both tests. | 
 | 4739 | ac_preproc_ok=: | 
 | 4740 | break | 
 | 4741 | fi | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 4742 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4743 |  | 
 | 4744 | done | 
 | 4745 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 4746 | rm -f conftest.i conftest.err conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4747 | if $ac_preproc_ok; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4748 |   break | 
 | 4749 | fi | 
 | 4750 |  | 
 | 4751 |     done | 
 | 4752 |     ac_cv_prog_CPP=$CPP | 
 | 4753 |  | 
 | 4754 | fi | 
 | 4755 |   CPP=$ac_cv_prog_CPP | 
 | 4756 | else | 
 | 4757 |   ac_cv_prog_CPP=$CPP | 
 | 4758 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | 
 | 4760 | $as_echo "$CPP" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4761 | ac_preproc_ok=false | 
 | 4762 | for ac_c_preproc_warn_flag in '' yes | 
 | 4763 | do | 
 | 4764 |   # Use a header file that comes with gcc, so configuring glibc | 
 | 4765 |   # with a fresh cross-compiler works. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4766 |   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 4767 |   # <limits.h> exists even on freestanding compilers. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4768 |   # On the NeXT, cc -E runs the code through the compiler's parser, | 
 | 4769 |   # not just through cpp. "Syntax error" is here to catch this case. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4770 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4771 | /* end confdefs.h.  */ | 
 | 4772 | #ifdef __STDC__ | 
 | 4773 | # include <limits.h> | 
 | 4774 | #else | 
 | 4775 | # include <assert.h> | 
 | 4776 | #endif | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4777 | 		     Syntax error | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4778 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4779 | if ac_fn_c_try_cpp "$LINENO"; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4780 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4781 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4782 |   # Broken: fails on valid input. | 
 | 4783 | continue | 
 | 4784 | fi | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 4785 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4786 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4787 |   # OK, works on sane cases.  Now check whether nonexistent headers | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4788 |   # can be detected and how. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4789 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4790 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4791 | #include <ac_nonexistent.h> | 
 | 4792 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4793 | if ac_fn_c_try_cpp "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4794 |   # Broken: success on invalid input. | 
 | 4795 | continue | 
 | 4796 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4797 |   # Passes both tests. | 
 | 4798 | ac_preproc_ok=: | 
 | 4799 | break | 
 | 4800 | fi | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 4801 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4802 |  | 
 | 4803 | done | 
 | 4804 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 4805 | rm -f conftest.i conftest.err conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4806 | if $ac_preproc_ok; then : | 
 | 4807 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4808 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4809 |   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 4810 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 4811 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 4812 | See \`config.log' for more details" "$LINENO" 5; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4813 | fi | 
 | 4814 |  | 
 | 4815 | ac_ext=c | 
 | 4816 | ac_cpp='$CPP $CPPFLAGS' | 
 | 4817 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 4818 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 4819 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 4820 |  | 
 | 4821 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4822 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | 
 | 4823 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 4824 | if ${ac_cv_path_GREP+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4825 |   $as_echo_n "(cached) " >&6 | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4826 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4827 |   if test -z "$GREP"; then | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4828 |   ac_path_GREP_found=false | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4829 |   # Loop through the user's path and test for each of PROGNAME-LIST | 
 | 4830 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4831 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | 
 | 4832 | do | 
 | 4833 |   IFS=$as_save_IFS | 
 | 4834 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4835 |     for ac_prog in grep ggrep; do | 
 | 4836 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 4837 |       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 4838 |       as_fn_executable_p "$ac_path_GREP" || continue | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4839 | # Check for GNU ac_path_GREP and select it if it is found. | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4840 |   # Check for GNU $ac_path_GREP | 
 | 4841 | case `"$ac_path_GREP" --version 2>&1` in | 
 | 4842 | *GNU*) | 
 | 4843 |   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | 
 | 4844 | *) | 
 | 4845 |   ac_count=0 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4846 |   $as_echo_n 0123456789 >"conftest.in" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4847 |   while : | 
 | 4848 |   do | 
 | 4849 |     cat "conftest.in" "conftest.in" >"conftest.tmp" | 
 | 4850 |     mv "conftest.tmp" "conftest.in" | 
 | 4851 |     cp "conftest.in" "conftest.nl" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4852 |     $as_echo 'GREP' >> "conftest.nl" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4853 |     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | 
 | 4854 |     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4855 |     as_fn_arith $ac_count + 1 && ac_count=$as_val | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4856 |     if test $ac_count -gt ${ac_path_GREP_max-0}; then | 
 | 4857 |       # Best one so far, save it but keep looking for a better one | 
 | 4858 |       ac_cv_path_GREP="$ac_path_GREP" | 
 | 4859 |       ac_path_GREP_max=$ac_count | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4860 |     fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4861 |     # 10*(2^10) chars as input seems more than enough | 
 | 4862 |     test $ac_count -gt 10 && break | 
 | 4863 |   done | 
 | 4864 |   rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | 
 | 4865 | esac | 
 | 4866 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4867 |       $ac_path_GREP_found && break 3 | 
 | 4868 |     done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4869 |   done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4870 |   done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4871 | IFS=$as_save_IFS | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4872 |   if test -z "$ac_cv_path_GREP"; then | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 4873 |     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4874 |   fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4875 | else | 
 | 4876 |   ac_cv_path_GREP=$GREP | 
 | 4877 | fi | 
 | 4878 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4879 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | 
 | 4881 | $as_echo "$ac_cv_path_GREP" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4882 |  GREP="$ac_cv_path_GREP" | 
 | 4883 |  | 
 | 4884 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4885 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | 
 | 4886 | $as_echo_n "checking for egrep... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 4887 | if ${ac_cv_path_EGREP+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4888 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4889 | else | 
 | 4890 |   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | 
 | 4891 |    then ac_cv_path_EGREP="$GREP -E" | 
 | 4892 |    else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4893 |      if test -z "$EGREP"; then | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4894 |   ac_path_EGREP_found=false | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4895 |   # Loop through the user's path and test for each of PROGNAME-LIST | 
 | 4896 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4897 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | 
 | 4898 | do | 
 | 4899 |   IFS=$as_save_IFS | 
 | 4900 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4901 |     for ac_prog in egrep; do | 
 | 4902 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 4903 |       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 4904 |       as_fn_executable_p "$ac_path_EGREP" || continue | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4905 | # Check for GNU ac_path_EGREP and select it if it is found. | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4906 |   # Check for GNU $ac_path_EGREP | 
 | 4907 | case `"$ac_path_EGREP" --version 2>&1` in | 
 | 4908 | *GNU*) | 
 | 4909 |   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | 
 | 4910 | *) | 
 | 4911 |   ac_count=0 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4912 |   $as_echo_n 0123456789 >"conftest.in" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4913 |   while : | 
 | 4914 |   do | 
 | 4915 |     cat "conftest.in" "conftest.in" >"conftest.tmp" | 
 | 4916 |     mv "conftest.tmp" "conftest.in" | 
 | 4917 |     cp "conftest.in" "conftest.nl" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4918 |     $as_echo 'EGREP' >> "conftest.nl" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4919 |     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | 
 | 4920 |     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4921 |     as_fn_arith $ac_count + 1 && ac_count=$as_val | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4922 |     if test $ac_count -gt ${ac_path_EGREP_max-0}; then | 
 | 4923 |       # Best one so far, save it but keep looking for a better one | 
 | 4924 |       ac_cv_path_EGREP="$ac_path_EGREP" | 
 | 4925 |       ac_path_EGREP_max=$ac_count | 
 | 4926 |     fi | 
 | 4927 |     # 10*(2^10) chars as input seems more than enough | 
 | 4928 |     test $ac_count -gt 10 && break | 
 | 4929 |   done | 
 | 4930 |   rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | 
 | 4931 | esac | 
 | 4932 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4933 |       $ac_path_EGREP_found && break 3 | 
 | 4934 |     done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4935 |   done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4936 |   done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4937 | IFS=$as_save_IFS | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4938 |   if test -z "$ac_cv_path_EGREP"; then | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 4939 |     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4940 |   fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4941 | else | 
 | 4942 |   ac_cv_path_EGREP=$EGREP | 
 | 4943 | fi | 
 | 4944 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4945 |    fi | 
 | 4946 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | 
 | 4948 | $as_echo "$ac_cv_path_EGREP" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4949 |  EGREP="$ac_cv_path_EGREP" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4950 |  | 
 | 4951 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4952 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | 
 | 4953 | $as_echo_n "checking for ANSI C header files... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 4954 | if ${ac_cv_header_stdc+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4955 |   $as_echo_n "(cached) " >&6 | 
 | 4956 | else | 
 | 4957 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 4958 | /* end confdefs.h.  */ | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4959 | #include <stdlib.h> | 
 | 4960 | #include <stdarg.h> | 
 | 4961 | #include <string.h> | 
 | 4962 | #include <float.h> | 
 | 4963 |  | 
 | 4964 | int | 
 | 4965 | main () | 
 | 4966 | { | 
 | 4967 |  | 
 | 4968 |   ; | 
 | 4969 |   return 0; | 
 | 4970 | } | 
 | 4971 | _ACEOF | 
 | 4972 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 4973 |   ac_cv_header_stdc=yes | 
 | 4974 | else | 
 | 4975 |   ac_cv_header_stdc=no | 
 | 4976 | fi | 
 | 4977 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 4978 |  | 
 | 4979 | if test $ac_cv_header_stdc = yes; then | 
 | 4980 |   # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | 
 | 4981 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 4982 | /* end confdefs.h.  */ | 
 | 4983 | #include <string.h> | 
| Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 4984 |  | 
| Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 4985 | _ACEOF | 
| Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4986 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4987 |   $EGREP "memchr" >/dev/null 2>&1; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4988 |  | 
| Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4989 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4990 |   ac_cv_header_stdc=no | 
| Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4991 | fi | 
| Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 4992 | rm -f conftest* | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4993 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4994 | fi | 
 | 4995 |  | 
 | 4996 | if test $ac_cv_header_stdc = yes; then | 
 | 4997 |   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | 
 | 4998 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 4999 | /* end confdefs.h.  */ | 
 | 5000 | #include <stdlib.h> | 
 | 5001 |  | 
 | 5002 | _ACEOF | 
 | 5003 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
 | 5004 |   $EGREP "free" >/dev/null 2>&1; then : | 
 | 5005 |  | 
 | 5006 | else | 
 | 5007 |   ac_cv_header_stdc=no | 
 | 5008 | fi | 
 | 5009 | rm -f conftest* | 
 | 5010 |  | 
 | 5011 | fi | 
 | 5012 |  | 
 | 5013 | if test $ac_cv_header_stdc = yes; then | 
 | 5014 |   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | 
 | 5015 |   if test "$cross_compiling" = yes; then : | 
 | 5016 |   : | 
 | 5017 | else | 
 | 5018 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 5019 | /* end confdefs.h.  */ | 
 | 5020 | #include <ctype.h> | 
 | 5021 | #include <stdlib.h> | 
 | 5022 | #if ((' ' & 0x0FF) == 0x020) | 
 | 5023 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | 
 | 5024 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | 
 | 5025 | #else | 
 | 5026 | # define ISLOWER(c) \ | 
 | 5027 | 		   (('a' <= (c) && (c) <= 'i') \ | 
 | 5028 | 		     || ('j' <= (c) && (c) <= 'r') \ | 
 | 5029 | 		     || ('s' <= (c) && (c) <= 'z')) | 
 | 5030 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | 
 | 5031 | #endif | 
 | 5032 |  | 
 | 5033 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | 
 | 5034 | int | 
 | 5035 | main () | 
 | 5036 | { | 
 | 5037 |   int i; | 
 | 5038 |   for (i = 0; i < 256; i++) | 
 | 5039 |     if (XOR (islower (i), ISLOWER (i)) | 
 | 5040 | 	|| toupper (i) != TOUPPER (i)) | 
 | 5041 |       return 2; | 
 | 5042 |   return 0; | 
 | 5043 | } | 
 | 5044 | _ACEOF | 
 | 5045 | if ac_fn_c_try_run "$LINENO"; then : | 
 | 5046 |  | 
 | 5047 | else | 
 | 5048 |   ac_cv_header_stdc=no | 
 | 5049 | fi | 
 | 5050 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 5051 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
 | 5052 | fi | 
 | 5053 |  | 
 | 5054 | fi | 
 | 5055 | fi | 
 | 5056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | 
 | 5057 | $as_echo "$ac_cv_header_stdc" >&6; } | 
 | 5058 | if test $ac_cv_header_stdc = yes; then | 
 | 5059 |  | 
 | 5060 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | 
 | 5061 |  | 
 | 5062 | fi | 
 | 5063 |  | 
 | 5064 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | 
 | 5065 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | 
 | 5066 | 		  inttypes.h stdint.h unistd.h | 
 | 5067 | do : | 
 | 5068 |   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
 | 5069 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | 
 | 5070 | " | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 5071 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5072 |   cat >>confdefs.h <<_ACEOF | 
 | 5073 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
 | 5074 | _ACEOF | 
 | 5075 |  | 
 | 5076 | fi | 
 | 5077 |  | 
 | 5078 | done | 
 | 5079 |  | 
 | 5080 |  | 
 | 5081 |  | 
 | 5082 |   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 5083 | if test "x$ac_cv_header_minix_config_h" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5084 |   MINIX=yes | 
 | 5085 | else | 
 | 5086 |   MINIX= | 
 | 5087 | fi | 
 | 5088 |  | 
 | 5089 |  | 
 | 5090 |   if test "$MINIX" = yes; then | 
 | 5091 |  | 
 | 5092 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | 
 | 5093 |  | 
 | 5094 |  | 
 | 5095 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h | 
 | 5096 |  | 
 | 5097 |  | 
 | 5098 | $as_echo "#define _MINIX 1" >>confdefs.h | 
 | 5099 |  | 
 | 5100 |   fi | 
 | 5101 |  | 
 | 5102 |  | 
 | 5103 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 | 
 | 5104 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 5105 | if ${ac_cv_safe_to_define___extensions__+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5106 |   $as_echo_n "(cached) " >&6 | 
 | 5107 | else | 
 | 5108 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 5109 | /* end confdefs.h.  */ | 
 | 5110 |  | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 5111 | #         define __EXTENSIONS__ 1 | 
 | 5112 |           $ac_includes_default | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5113 | int | 
 | 5114 | main () | 
 | 5115 | { | 
 | 5116 |  | 
 | 5117 |   ; | 
 | 5118 |   return 0; | 
 | 5119 | } | 
 | 5120 | _ACEOF | 
 | 5121 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 5122 |   ac_cv_safe_to_define___extensions__=yes | 
 | 5123 | else | 
 | 5124 |   ac_cv_safe_to_define___extensions__=no | 
 | 5125 | fi | 
 | 5126 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 5127 | fi | 
 | 5128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 | 
 | 5129 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | 
 | 5130 |   test $ac_cv_safe_to_define___extensions__ = yes && | 
 | 5131 |     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | 
 | 5132 |  | 
 | 5133 |   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h | 
 | 5134 |  | 
 | 5135 |   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | 
 | 5136 |  | 
 | 5137 |   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h | 
 | 5138 |  | 
 | 5139 |   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | 
 | 5140 |  | 
 | 5141 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5142 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5143 | # Check for unsupported systems | 
 | 5144 | case $ac_sys_system/$ac_sys_release in | 
 | 5145 | atheos*|Linux*/1*) | 
 | 5146 |    echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported. | 
 | 5147 |    echo See README for details. | 
 | 5148 |    exit 1;; | 
 | 5149 | esac | 
 | 5150 |  | 
 | 5151 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5152 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-suffix" >&5 | 
 | 5153 | $as_echo_n "checking for --with-suffix... " >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5154 |  | 
 | 5155 | # Check whether --with-suffix was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5156 | if test "${with_suffix+set}" = set; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5157 |   withval=$with_suffix; | 
 | 5158 | 	case $withval in | 
 | 5159 | 	no)	EXEEXT=;; | 
 | 5160 | 	yes)	EXEEXT=.exe;; | 
 | 5161 | 	*)	EXEEXT=$withval;; | 
 | 5162 | 	esac | 
 | 5163 | fi | 
 | 5164 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5165 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXEEXT" >&5 | 
 | 5166 | $as_echo "$EXEEXT" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5167 |  | 
 | 5168 | # Test whether we're running on a non-case-sensitive system, in which | 
 | 5169 | # case we give a warning if no ext is given | 
 | 5170 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5171 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for case-insensitive build directory" >&5 | 
 | 5172 | $as_echo_n "checking for case-insensitive build directory... " >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5173 | if test ! -d CaseSensitiveTestDir; then | 
 | 5174 | mkdir CaseSensitiveTestDir | 
 | 5175 | fi | 
 | 5176 |  | 
 | 5177 | if test -d casesensitivetestdir | 
 | 5178 | then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5179 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 5180 | $as_echo "yes" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5181 |     BUILDEXEEXT=.exe | 
 | 5182 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5183 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 5184 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5185 | 	BUILDEXEEXT=$EXEEXT | 
 | 5186 | fi | 
 | 5187 | rmdir CaseSensitiveTestDir | 
 | 5188 |  | 
 | 5189 | case $MACHDEP in | 
 | 5190 | bsdos*) | 
 | 5191 |     case $CC in | 
 | 5192 |     gcc) CC="$CC -D_HAVE_BSDI";; | 
 | 5193 |     esac;; | 
 | 5194 | esac | 
 | 5195 |  | 
 | 5196 | case $ac_sys_system in | 
 | 5197 | hp*|HP*) | 
 | 5198 |     case $CC in | 
 | 5199 |     cc|*/cc) CC="$CC -Ae";; | 
 | 5200 |     esac;; | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5201 | SunOS*) | 
 | 5202 |     # Some functions have a prototype only with that define, e.g. confstr | 
 | 5203 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5204 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5205 |  | 
 | 5206 |     ;; | 
 | 5207 | esac | 
 | 5208 |  | 
 | 5209 |  | 
 | 5210 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5211 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY" >&5 | 
 | 5212 | $as_echo_n "checking LIBRARY... " >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5213 | if test -z "$LIBRARY" | 
 | 5214 | then | 
 | 5215 | 	LIBRARY='libpython$(VERSION).a' | 
 | 5216 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5217 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBRARY" >&5 | 
 | 5218 | $as_echo "$LIBRARY" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5219 |  | 
 | 5220 | # LDLIBRARY is the name of the library to link against (as opposed to the | 
 | 5221 | # name of the library into which to insert object files). BLDLIBRARY is also | 
 | 5222 | # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY | 
 | 5223 | # is blank as the main program is not linked directly against LDLIBRARY. | 
 | 5224 | # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On | 
 | 5225 | # systems without shared libraries, LDLIBRARY is the same as LIBRARY | 
 | 5226 | # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, | 
 | 5227 | # DLLLIBRARY is the shared (i.e., DLL) library. | 
 | 5228 | # | 
 | 5229 | # RUNSHARED is used to run shared python without installed libraries | 
 | 5230 | # | 
 | 5231 | # INSTSONAME is the name of the shared library that will be use to install | 
 | 5232 | # on the system - some systems like version suffix, others don't | 
 | 5233 |  | 
 | 5234 |  | 
 | 5235 |  | 
 | 5236 |  | 
 | 5237 |  | 
 | 5238 |  | 
 | 5239 | LDLIBRARY="$LIBRARY" | 
 | 5240 | BLDLIBRARY='$(LDLIBRARY)' | 
 | 5241 | INSTSONAME='$(LDLIBRARY)' | 
 | 5242 | DLLLIBRARY='' | 
 | 5243 | LDLIBRARYDIR='' | 
 | 5244 | RUNSHARED='' | 
 | 5245 |  | 
 | 5246 | # LINKCC is the command that links the python executable -- default is $(CC). | 
 | 5247 | # If CXX is set, and if it is needed to link a main function that was | 
 | 5248 | # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: | 
 | 5249 | # python might then depend on the C++ runtime | 
 | 5250 | # This is altered for AIX in order to build the export list before | 
 | 5251 | # linking. | 
 | 5252 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5253 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKCC" >&5 | 
 | 5254 | $as_echo_n "checking LINKCC... " >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5255 | if test -z "$LINKCC" | 
 | 5256 | then | 
 | 5257 | 	LINKCC='$(PURIFY) $(MAINCC)' | 
 | 5258 | 	case $ac_sys_system in | 
 | 5259 | 	AIX*) | 
 | 5260 | 	   exp_extra="\"\"" | 
 | 5261 | 	   if test $ac_sys_release -ge 5 -o \ | 
 | 5262 | 		   $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then | 
 | 5263 | 	       exp_extra="." | 
 | 5264 | 	   fi | 
 | 5265 | 	   LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";; | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5266 | 	QNX*) | 
 | 5267 | 	   # qcc must be used because the other compilers do not | 
 | 5268 | 	   # support -N. | 
 | 5269 | 	   LINKCC=qcc;; | 
 | 5270 | 	esac | 
 | 5271 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKCC" >&5 | 
 | 5273 | $as_echo "$LINKCC" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5274 |  | 
 | 5275 | # GNULD is set to "yes" if the GNU linker is used.  If this goes wrong | 
 | 5276 | # make sure we default having it set to "no": this is used by | 
 | 5277 | # distutils.unixccompiler to know if it should add --enable-new-dtags | 
 | 5278 | # to linker command lines, and failing to detect GNU ld simply results | 
 | 5279 | # in the same bahaviour as before. | 
 | 5280 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5281 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | 
 | 5282 | $as_echo_n "checking for GNU ld... " >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5283 | ac_prog=ld | 
 | 5284 | if test "$GCC" = yes; then | 
 | 5285 |        ac_prog=`$CC -print-prog-name=ld` | 
 | 5286 | fi | 
 | 5287 | case `"$ac_prog" -V 2>&1 < /dev/null` in | 
 | 5288 |       *GNU*) | 
 | 5289 |           GNULD=yes;; | 
 | 5290 |       *) | 
 | 5291 |           GNULD=no;; | 
 | 5292 | esac | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNULD" >&5 | 
 | 5294 | $as_echo "$GNULD" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5295 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5296 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-shared" >&5 | 
 | 5297 | $as_echo_n "checking for --enable-shared... " >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5298 | # Check whether --enable-shared was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5299 | if test "${enable_shared+set}" = set; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5300 |   enableval=$enable_shared; | 
 | 5301 | fi | 
 | 5302 |  | 
 | 5303 |  | 
 | 5304 | if test -z "$enable_shared" | 
 | 5305 | then | 
 | 5306 |   case $ac_sys_system in | 
 | 5307 |   CYGWIN* | atheos*) | 
 | 5308 |     enable_shared="yes";; | 
 | 5309 |   *) | 
 | 5310 |     enable_shared="no";; | 
 | 5311 |   esac | 
 | 5312 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | 
 | 5314 | $as_echo "$enable_shared" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5315 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5316 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-profiling" >&5 | 
 | 5317 | $as_echo_n "checking for --enable-profiling... " >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5318 | # Check whether --enable-profiling was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5319 | if test "${enable_profiling+set}" = set; then : | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 5320 |   enableval=$enable_profiling; | 
 | 5321 | fi | 
 | 5322 |  | 
 | 5323 | if test "x$enable_profiling" = xyes; then | 
 | 5324 |   ac_save_cc="$CC" | 
| Benjamin Peterson | b9be7bb | 2013-03-26 08:55:37 -0400 | [diff] [blame] | 5325 |   CC="$CC -pg" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5326 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5327 | /* end confdefs.h.  */ | 
 | 5328 | int main() { return 0; } | 
 | 5329 | _ACEOF | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 5330 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 5331 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5332 | else | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 5333 |   enable_profiling=no | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5334 | fi | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 5335 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 5336 |     conftest$ac_exeext conftest.$ac_ext | 
 | 5337 |   CC="$ac_save_cc" | 
 | 5338 | else | 
 | 5339 |   enable_profiling=no | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5340 | fi | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 5341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_profiling" >&5 | 
 | 5342 | $as_echo "$enable_profiling" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5343 |  | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 5344 | if test "x$enable_profiling" = xyes; then | 
 | 5345 |   BASECFLAGS="-pg $BASECFLAGS" | 
 | 5346 |   LDFLAGS="-pg $LDFLAGS" | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5347 | fi | 
 | 5348 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5349 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDLIBRARY" >&5 | 
 | 5350 | $as_echo_n "checking LDLIBRARY... " >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5351 |  | 
 | 5352 | # MacOSX framework builds need more magic. LDLIBRARY is the dynamic | 
 | 5353 | # library that we build, but we do not want to link against it (we | 
 | 5354 | # will find it with a -framework option). For this reason there is an | 
 | 5355 | # extra variable BLDLIBRARY against which Python and the extension | 
 | 5356 | # modules are linked, BLDLIBRARY. This is normally the same as | 
 | 5357 | # LDLIBRARY, but empty for MacOSX framework builds. | 
 | 5358 | if test "$enable_framework" | 
 | 5359 | then | 
 | 5360 |   LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| doko@ubuntu.com | 9ba90c9 | 2014-05-07 04:41:26 +0200 | [diff] [blame] | 5361 |   RUNSHARED=DYLD_FRAMEWORK_PATH=`pwd`${DYLD_FRAMEWORK_PATH:+:${DYLD_FRAMEWORK_PATH}} | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5362 |   BLDLIBRARY='' | 
 | 5363 | else | 
 | 5364 |   BLDLIBRARY='$(LDLIBRARY)' | 
 | 5365 | fi | 
 | 5366 |  | 
 | 5367 | # Other platforms follow | 
 | 5368 | if test $enable_shared = "yes"; then | 
 | 5369 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5370 | $as_echo "#define Py_ENABLE_SHARED 1" >>confdefs.h | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5371 |  | 
 | 5372 |   case $ac_sys_system in | 
 | 5373 |     BeOS*) | 
 | 5374 |           LDLIBRARY='libpython$(VERSION).so' | 
 | 5375 |           ;; | 
 | 5376 |     CYGWIN*) | 
 | 5377 |           LDLIBRARY='libpython$(VERSION).dll.a' | 
 | 5378 |           DLLLIBRARY='libpython$(VERSION).dll' | 
 | 5379 |           ;; | 
 | 5380 |     SunOS*) | 
 | 5381 | 	  LDLIBRARY='libpython$(VERSION).so' | 
 | 5382 | 	  BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)' | 
| doko@ubuntu.com | 9ba90c9 | 2014-05-07 04:41:26 +0200 | [diff] [blame] | 5383 | 	  RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5384 | 	  INSTSONAME="$LDLIBRARY".$SOVERSION | 
 | 5385 |           ;; | 
| Charles-François Natali | 3de8c73 | 2011-07-24 22:33:35 +0200 | [diff] [blame] | 5386 |     Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*|OpenBSD*) | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5387 | 	  LDLIBRARY='libpython$(VERSION).so' | 
 | 5388 | 	  BLDLIBRARY='-L. -lpython$(VERSION)' | 
| doko@ubuntu.com | 9ba90c9 | 2014-05-07 04:41:26 +0200 | [diff] [blame] | 5389 | 	  RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5390 | 	  case $ac_sys_system in | 
 | 5391 | 	      FreeBSD*) | 
 | 5392 | 		SOVERSION=`echo $SOVERSION|cut -d "." -f 1` | 
 | 5393 | 		;; | 
 | 5394 | 	  esac | 
 | 5395 | 	  INSTSONAME="$LDLIBRARY".$SOVERSION | 
 | 5396 | 	  ;; | 
 | 5397 |     hp*|HP*) | 
 | 5398 | 	  case `uname -m` in | 
 | 5399 | 		ia64) | 
 | 5400 | 			LDLIBRARY='libpython$(VERSION).so' | 
 | 5401 | 			;; | 
 | 5402 | 		*) | 
 | 5403 | 			LDLIBRARY='libpython$(VERSION).sl' | 
 | 5404 | 			;; | 
 | 5405 | 	  esac | 
 | 5406 | 	  BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)' | 
| doko@ubuntu.com | 9ba90c9 | 2014-05-07 04:41:26 +0200 | [diff] [blame] | 5407 | 	  RUNSHARED=SHLIB_PATH=`pwd`${SHLIB_PATH:+:${SHLIB_PATH}} | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5408 | 	  ;; | 
 | 5409 |     OSF*) | 
 | 5410 | 	  LDLIBRARY='libpython$(VERSION).so' | 
 | 5411 | 	  BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)' | 
| doko@ubuntu.com | 9ba90c9 | 2014-05-07 04:41:26 +0200 | [diff] [blame] | 5412 | 	  RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5413 | 	  ;; | 
 | 5414 |     atheos*) | 
 | 5415 | 	  LDLIBRARY='libpython$(VERSION).so' | 
 | 5416 | 	  BLDLIBRARY='-L. -lpython$(VERSION)' | 
 | 5417 | 	  RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib} | 
 | 5418 | 	  ;; | 
 | 5419 |     Darwin*) | 
 | 5420 |     	LDLIBRARY='libpython$(VERSION).dylib' | 
 | 5421 | 	BLDLIBRARY='-L. -lpython$(VERSION)' | 
| doko@ubuntu.com | 9ba90c9 | 2014-05-07 04:41:26 +0200 | [diff] [blame] | 5422 | 	RUNSHARED=DYLD_LIBRARY_PATH=`pwd`${DYLD_LIBRARY_PATH:+:${DYLD_LIBRARY_PATH}} | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5423 | 	;; | 
| Antoine Pitrou | aabdceb | 2010-09-10 20:03:17 +0000 | [diff] [blame] | 5424 |     AIX*) | 
 | 5425 | 	LDLIBRARY='libpython$(VERSION).so' | 
| doko@ubuntu.com | 9ba90c9 | 2014-05-07 04:41:26 +0200 | [diff] [blame] | 5426 | 	RUNSHARED=LIBPATH=`pwd`${LIBPATH:+:${LIBPATH}} | 
| Antoine Pitrou | aabdceb | 2010-09-10 20:03:17 +0000 | [diff] [blame] | 5427 | 	;; | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5428 |  | 
 | 5429 |   esac | 
 | 5430 | else # shared is disabled | 
 | 5431 |   case $ac_sys_system in | 
 | 5432 |     CYGWIN*) | 
 | 5433 |           BLDLIBRARY='$(LIBRARY)' | 
 | 5434 |           LDLIBRARY='libpython$(VERSION).dll.a' | 
 | 5435 |           ;; | 
 | 5436 |   esac | 
 | 5437 | fi | 
 | 5438 |  | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 5439 | if test "$cross_compiling" = yes; then | 
 | 5440 | 	RUNSHARED= | 
 | 5441 | fi | 
 | 5442 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDLIBRARY" >&5 | 
 | 5444 | $as_echo "$LDLIBRARY" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5445 |  | 
 | 5446 | if test -n "$ac_tool_prefix"; then | 
 | 5447 |   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | 
 | 5448 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5449 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 5450 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 5451 | if ${ac_cv_prog_RANLIB+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5452 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5453 | else | 
 | 5454 |   if test -n "$RANLIB"; then | 
 | 5455 |   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | 
 | 5456 | else | 
 | 5457 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5458 | for as_dir in $PATH | 
 | 5459 | do | 
 | 5460 |   IFS=$as_save_IFS | 
 | 5461 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5462 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 5463 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5464 |     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5465 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5466 |     break 2 | 
 | 5467 |   fi | 
 | 5468 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5469 |   done | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5470 | IFS=$as_save_IFS | 
 | 5471 |  | 
 | 5472 | fi | 
 | 5473 | fi | 
 | 5474 | RANLIB=$ac_cv_prog_RANLIB | 
 | 5475 | if test -n "$RANLIB"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5476 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | 
 | 5477 | $as_echo "$RANLIB" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5478 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5479 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 5480 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5481 | fi | 
 | 5482 |  | 
 | 5483 |  | 
 | 5484 | fi | 
 | 5485 | if test -z "$ac_cv_prog_RANLIB"; then | 
 | 5486 |   ac_ct_RANLIB=$RANLIB | 
 | 5487 |   # Extract the first word of "ranlib", so it can be a program name with args. | 
 | 5488 | set dummy ranlib; ac_word=$2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5489 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 5490 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 5491 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5492 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5493 | else | 
 | 5494 |   if test -n "$ac_ct_RANLIB"; then | 
 | 5495 |   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | 
 | 5496 | else | 
 | 5497 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5498 | for as_dir in $PATH | 
 | 5499 | do | 
 | 5500 |   IFS=$as_save_IFS | 
 | 5501 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5502 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 5503 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5504 |     ac_cv_prog_ac_ct_RANLIB="ranlib" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5505 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5506 |     break 2 | 
 | 5507 |   fi | 
 | 5508 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5509 |   done | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5510 | IFS=$as_save_IFS | 
 | 5511 |  | 
 | 5512 | fi | 
 | 5513 | fi | 
 | 5514 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | 
 | 5515 | if test -n "$ac_ct_RANLIB"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5516 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | 
 | 5517 | $as_echo "$ac_ct_RANLIB" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5518 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5519 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 5520 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5521 | fi | 
 | 5522 |  | 
 | 5523 |   if test "x$ac_ct_RANLIB" = x; then | 
 | 5524 |     RANLIB=":" | 
 | 5525 |   else | 
 | 5526 |     case $cross_compiling:$ac_tool_warned in | 
 | 5527 | yes:) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5528 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 5529 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5530 | ac_tool_warned=yes ;; | 
 | 5531 | esac | 
 | 5532 |     RANLIB=$ac_ct_RANLIB | 
 | 5533 |   fi | 
 | 5534 | else | 
 | 5535 |   RANLIB="$ac_cv_prog_RANLIB" | 
 | 5536 | fi | 
 | 5537 |  | 
 | 5538 |  | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 5539 | if test -n "$ac_tool_prefix"; then | 
 | 5540 |   for ac_prog in ar aal | 
 | 5541 |   do | 
 | 5542 |     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
 | 5543 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5544 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 5545 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 5546 | if ${ac_cv_prog_AR+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5547 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5548 | else | 
 | 5549 |   if test -n "$AR"; then | 
 | 5550 |   ac_cv_prog_AR="$AR" # Let the user override the test. | 
 | 5551 | else | 
 | 5552 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5553 | for as_dir in $PATH | 
 | 5554 | do | 
 | 5555 |   IFS=$as_save_IFS | 
 | 5556 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5557 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 5558 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 5559 |     ac_cv_prog_AR="$ac_tool_prefix$ac_prog" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5560 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5561 |     break 2 | 
 | 5562 |   fi | 
 | 5563 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5564 |   done | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5565 | IFS=$as_save_IFS | 
 | 5566 |  | 
 | 5567 | fi | 
 | 5568 | fi | 
 | 5569 | AR=$ac_cv_prog_AR | 
 | 5570 | if test -n "$AR"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5571 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | 
 | 5572 | $as_echo "$AR" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5573 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5574 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 5575 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5576 | fi | 
 | 5577 |  | 
 | 5578 |  | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 5579 |     test -n "$AR" && break | 
 | 5580 |   done | 
 | 5581 | fi | 
 | 5582 | if test -z "$AR"; then | 
 | 5583 |   ac_ct_AR=$AR | 
 | 5584 |   for ac_prog in ar aal | 
 | 5585 | do | 
 | 5586 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 5587 | set dummy $ac_prog; ac_word=$2 | 
 | 5588 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 5589 | $as_echo_n "checking for $ac_word... " >&6; } | 
 | 5590 | if ${ac_cv_prog_ac_ct_AR+:} false; then : | 
 | 5591 |   $as_echo_n "(cached) " >&6 | 
 | 5592 | else | 
 | 5593 |   if test -n "$ac_ct_AR"; then | 
 | 5594 |   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | 
 | 5595 | else | 
 | 5596 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5597 | for as_dir in $PATH | 
 | 5598 | do | 
 | 5599 |   IFS=$as_save_IFS | 
 | 5600 |   test -z "$as_dir" && as_dir=. | 
 | 5601 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 5602 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 5603 |     ac_cv_prog_ac_ct_AR="$ac_prog" | 
 | 5604 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 5605 |     break 2 | 
 | 5606 |   fi | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5607 | done | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 5608 |   done | 
 | 5609 | IFS=$as_save_IFS | 
 | 5610 |  | 
 | 5611 | fi | 
 | 5612 | fi | 
 | 5613 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | 
 | 5614 | if test -n "$ac_ct_AR"; then | 
 | 5615 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | 
 | 5616 | $as_echo "$ac_ct_AR" >&6; } | 
 | 5617 | else | 
 | 5618 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 5619 | $as_echo "no" >&6; } | 
 | 5620 | fi | 
 | 5621 |  | 
 | 5622 |  | 
 | 5623 |   test -n "$ac_ct_AR" && break | 
 | 5624 | done | 
 | 5625 |  | 
 | 5626 |   if test "x$ac_ct_AR" = x; then | 
 | 5627 |     AR="ar" | 
 | 5628 |   else | 
 | 5629 |     case $cross_compiling:$ac_tool_warned in | 
 | 5630 | yes:) | 
 | 5631 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 5632 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
 | 5633 | ac_tool_warned=yes ;; | 
 | 5634 | esac | 
 | 5635 |     AR=$ac_ct_AR | 
 | 5636 |   fi | 
 | 5637 | fi | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5638 |  | 
 | 5639 |  | 
 | 5640 | # tweak ARFLAGS only if the user didn't set it on the command line | 
 | 5641 |  | 
 | 5642 | if test -z "$ARFLAGS" | 
 | 5643 | then | 
 | 5644 |         ARFLAGS="rc" | 
 | 5645 | fi | 
 | 5646 |  | 
 | 5647 |  | 
 | 5648 | # Extract the first word of "svnversion", so it can be a program name with args. | 
 | 5649 | set dummy svnversion; ac_word=$2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5650 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 5651 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 5652 | if ${ac_cv_prog_SVNVERSION+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5653 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5654 | else | 
 | 5655 |   if test -n "$SVNVERSION"; then | 
 | 5656 |   ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test. | 
 | 5657 | else | 
 | 5658 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5659 | for as_dir in $PATH | 
 | 5660 | do | 
 | 5661 |   IFS=$as_save_IFS | 
 | 5662 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5663 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 5664 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5665 |     ac_cv_prog_SVNVERSION="found" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5666 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5667 |     break 2 | 
 | 5668 |   fi | 
 | 5669 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5670 |   done | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5671 | IFS=$as_save_IFS | 
 | 5672 |  | 
 | 5673 |   test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION="not-found" | 
 | 5674 | fi | 
 | 5675 | fi | 
 | 5676 | SVNVERSION=$ac_cv_prog_SVNVERSION | 
 | 5677 | if test -n "$SVNVERSION"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5678 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVNVERSION" >&5 | 
 | 5679 | $as_echo "$SVNVERSION" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5680 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5681 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 5682 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5683 | fi | 
 | 5684 |  | 
 | 5685 |  | 
 | 5686 | if test $SVNVERSION = found | 
 | 5687 | then | 
 | 5688 | 	SVNVERSION="svnversion \$(srcdir)" | 
 | 5689 | else | 
 | 5690 | 	SVNVERSION="echo Unversioned directory" | 
 | 5691 | fi | 
 | 5692 |  | 
| Trent Nelson | d86ceec | 2012-10-16 09:42:45 -0400 | [diff] [blame] | 5693 |  | 
| Trent Nelson | abf2051 | 2012-10-17 04:32:49 -0400 | [diff] [blame] | 5694 | if test "$abs_srcdir" != "$abs_builddir"; then | 
| Trent Nelson | d86ceec | 2012-10-16 09:42:45 -0400 | [diff] [blame] | 5695 |     # If we're building out-of-tree make sure Include (in the current dir) | 
 | 5696 |     # gets picked up before its $srcdir counterpart in order for Python-ast.h | 
 | 5697 |     # and graminit.h to get picked up from the correct directory. | 
 | 5698 |     # (A side effect of this is that these resources will automatically be | 
 | 5699 |     #  regenerated when building out-of-tree, regardless of whether or not | 
 | 5700 |     #  the $srcdir counterpart is up-to-date.  This is an acceptable trade | 
 | 5701 |     #  off.) | 
 | 5702 |     BASECPPFLAGS="-IInclude" | 
 | 5703 | else | 
 | 5704 |     BASECPPFLAGS="" | 
 | 5705 | fi | 
 | 5706 |  | 
| Georg Brandl | 3a5508e | 2011-03-06 10:42:21 +0100 | [diff] [blame] | 5707 |  | 
 | 5708 |  | 
 | 5709 |  | 
 | 5710 | # Extract the first word of "hg", so it can be a program name with args. | 
 | 5711 | set dummy hg; ac_word=$2 | 
 | 5712 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 5713 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 5714 | if ${ac_cv_prog_HAS_HG+:} false; then : | 
| Georg Brandl | 3a5508e | 2011-03-06 10:42:21 +0100 | [diff] [blame] | 5715 |   $as_echo_n "(cached) " >&6 | 
 | 5716 | else | 
 | 5717 |   if test -n "$HAS_HG"; then | 
 | 5718 |   ac_cv_prog_HAS_HG="$HAS_HG" # Let the user override the test. | 
 | 5719 | else | 
 | 5720 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5721 | for as_dir in $PATH | 
 | 5722 | do | 
 | 5723 |   IFS=$as_save_IFS | 
 | 5724 |   test -z "$as_dir" && as_dir=. | 
 | 5725 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 5726 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| Georg Brandl | 3a5508e | 2011-03-06 10:42:21 +0100 | [diff] [blame] | 5727 |     ac_cv_prog_HAS_HG="found" | 
 | 5728 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 5729 |     break 2 | 
 | 5730 |   fi | 
 | 5731 | done | 
 | 5732 |   done | 
 | 5733 | IFS=$as_save_IFS | 
 | 5734 |  | 
 | 5735 |   test -z "$ac_cv_prog_HAS_HG" && ac_cv_prog_HAS_HG="not-found" | 
 | 5736 | fi | 
 | 5737 | fi | 
 | 5738 | HAS_HG=$ac_cv_prog_HAS_HG | 
 | 5739 | if test -n "$HAS_HG"; then | 
 | 5740 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAS_HG" >&5 | 
 | 5741 | $as_echo "$HAS_HG" >&6; } | 
 | 5742 | else | 
 | 5743 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 5744 | $as_echo "no" >&6; } | 
 | 5745 | fi | 
 | 5746 |  | 
 | 5747 |  | 
 | 5748 | if test $HAS_HG = found | 
 | 5749 | then | 
 | 5750 |     HGVERSION="hg id -i \$(srcdir)" | 
 | 5751 |     HGTAG="hg id -t \$(srcdir)" | 
 | 5752 |     HGBRANCH="hg id -b \$(srcdir)" | 
 | 5753 | else | 
 | 5754 |     HGVERSION="" | 
 | 5755 |     HGTAG="" | 
 | 5756 |     HGBRANCH="" | 
 | 5757 | fi | 
 | 5758 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5759 | case $MACHDEP in | 
 | 5760 | bsdos*|hp*|HP*) | 
 | 5761 | 	# install -d does not work on BSDI or HP-UX | 
 | 5762 | 	if test -z "$INSTALL" | 
 | 5763 | 	then | 
 | 5764 | 		INSTALL="${srcdir}/install-sh -c" | 
 | 5765 | 	fi | 
 | 5766 | esac | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5767 | # Find a good install program.  We prefer a C program (faster), | 
 | 5768 | # so one script is as good as another.  But avoid the broken or | 
 | 5769 | # incompatible versions: | 
 | 5770 | # SysV /etc/install, /usr/sbin/install | 
 | 5771 | # SunOS /usr/etc/install | 
 | 5772 | # IRIX /sbin/install | 
 | 5773 | # AIX /bin/install | 
 | 5774 | # AmigaOS /C/install, which installs bootblocks on floppy discs | 
 | 5775 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | 
 | 5776 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | 
 | 5777 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | 
 | 5778 | # OS/2's system install, which has a completely different semantic | 
 | 5779 | # ./install, which can be erroneously created by make from ./install.sh. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5780 | # Reject install programs that cannot install multiple files. | 
 | 5781 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | 
 | 5782 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5783 | if test -z "$INSTALL"; then | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 5784 | if ${ac_cv_path_install+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5785 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5786 | else | 
 | 5787 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5788 | for as_dir in $PATH | 
 | 5789 | do | 
 | 5790 |   IFS=$as_save_IFS | 
 | 5791 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5792 |     # Account for people who put trailing slashes in PATH elements. | 
 | 5793 | case $as_dir/ in #(( | 
 | 5794 |   ./ | .// | /[cC]/* | \ | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5795 |   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5796 |   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5797 |   /usr/ucb/* ) ;; | 
 | 5798 |   *) | 
 | 5799 |     # OSF1 and SCO ODT 3.0 have their own names for install. | 
 | 5800 |     # Don't use installbsd from OSF since it installs stuff as root | 
 | 5801 |     # by default. | 
 | 5802 |     for ac_prog in ginstall scoinst install; do | 
 | 5803 |       for ac_exec_ext in '' $ac_executable_extensions; do | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 5804 | 	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5805 | 	  if test $ac_prog = install && | 
 | 5806 | 	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | 
 | 5807 | 	    # AIX install.  It has an incompatible calling convention. | 
 | 5808 | 	    : | 
 | 5809 | 	  elif test $ac_prog = install && | 
 | 5810 | 	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | 
 | 5811 | 	    # program-specific install script used by HP pwplus--don't use. | 
 | 5812 | 	    : | 
 | 5813 | 	  else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5814 | 	    rm -rf conftest.one conftest.two conftest.dir | 
 | 5815 | 	    echo one > conftest.one | 
 | 5816 | 	    echo two > conftest.two | 
 | 5817 | 	    mkdir conftest.dir | 
 | 5818 | 	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | 
 | 5819 | 	      test -s conftest.one && test -s conftest.two && | 
 | 5820 | 	      test -s conftest.dir/conftest.one && | 
 | 5821 | 	      test -s conftest.dir/conftest.two | 
 | 5822 | 	    then | 
 | 5823 | 	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | 
 | 5824 | 	      break 3 | 
 | 5825 | 	    fi | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5826 | 	  fi | 
 | 5827 | 	fi | 
 | 5828 |       done | 
 | 5829 |     done | 
 | 5830 |     ;; | 
 | 5831 | esac | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5832 |  | 
 | 5833 |   done | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5834 | IFS=$as_save_IFS | 
 | 5835 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5836 | rm -rf conftest.one conftest.two conftest.dir | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5837 |  | 
 | 5838 | fi | 
 | 5839 |   if test "${ac_cv_path_install+set}" = set; then | 
 | 5840 |     INSTALL=$ac_cv_path_install | 
 | 5841 |   else | 
 | 5842 |     # As a last resort, use the slow shell script.  Don't cache a | 
 | 5843 |     # value for INSTALL within a source directory, because that will | 
 | 5844 |     # break other packages using the cache if that directory is | 
 | 5845 |     # removed, or if the value is a relative name. | 
 | 5846 |     INSTALL=$ac_install_sh | 
 | 5847 |   fi | 
 | 5848 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | 
 | 5850 | $as_echo "$INSTALL" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5851 |  | 
 | 5852 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | 
 | 5853 | # It thinks the first close brace ends the variable substitution. | 
 | 5854 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | 
 | 5855 |  | 
 | 5856 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | 
 | 5857 |  | 
 | 5858 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | 
 | 5859 |  | 
| Trent Nelson | f6407a1 | 2012-08-30 14:56:13 +0000 | [diff] [blame] | 5860 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | 
 | 5861 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | 
 | 5862 | if test -z "$MKDIR_P"; then | 
 | 5863 |   if ${ac_cv_path_mkdir+:} false; then : | 
 | 5864 |   $as_echo_n "(cached) " >&6 | 
 | 5865 | else | 
 | 5866 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5867 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | 
 | 5868 | do | 
 | 5869 |   IFS=$as_save_IFS | 
 | 5870 |   test -z "$as_dir" && as_dir=. | 
 | 5871 |     for ac_prog in mkdir gmkdir; do | 
 | 5872 | 	 for ac_exec_ext in '' $ac_executable_extensions; do | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 5873 | 	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue | 
| Trent Nelson | f6407a1 | 2012-08-30 14:56:13 +0000 | [diff] [blame] | 5874 | 	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | 
 | 5875 | 	     'mkdir (GNU coreutils) '* | \ | 
 | 5876 | 	     'mkdir (coreutils) '* | \ | 
 | 5877 | 	     'mkdir (fileutils) '4.1*) | 
 | 5878 | 	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | 
 | 5879 | 	       break 3;; | 
 | 5880 | 	   esac | 
 | 5881 | 	 done | 
 | 5882 |        done | 
 | 5883 |   done | 
 | 5884 | IFS=$as_save_IFS | 
 | 5885 |  | 
 | 5886 | fi | 
 | 5887 |  | 
 | 5888 |   test -d ./--version && rmdir ./--version | 
 | 5889 |   if test "${ac_cv_path_mkdir+set}" = set; then | 
 | 5890 |     MKDIR_P="$ac_cv_path_mkdir -p" | 
 | 5891 |   else | 
 | 5892 |     # As a last resort, use the slow shell script.  Don't cache a | 
 | 5893 |     # value for MKDIR_P within a source directory, because that will | 
 | 5894 |     # break other packages using the cache if that directory is | 
 | 5895 |     # removed, or if the value is a relative name. | 
 | 5896 |     MKDIR_P="$ac_install_sh -d" | 
 | 5897 |   fi | 
 | 5898 | fi | 
 | 5899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | 
 | 5900 | $as_echo "$MKDIR_P" >&6; } | 
 | 5901 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5902 |  | 
 | 5903 | # Not every filesystem supports hard links | 
 | 5904 |  | 
 | 5905 | if test -z "$LN" ; then | 
 | 5906 | 	case $ac_sys_system in | 
 | 5907 | 		BeOS*) LN="ln -s";; | 
 | 5908 | 		CYGWIN*) LN="ln -s";; | 
 | 5909 | 		atheos*) LN="ln -s";; | 
 | 5910 | 		*) LN=ln;; | 
 | 5911 | 	esac | 
 | 5912 | fi | 
 | 5913 |  | 
 | 5914 | # Check for --with-pydebug | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5915 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pydebug" >&5 | 
 | 5916 | $as_echo_n "checking for --with-pydebug... " >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5917 |  | 
 | 5918 | # Check whether --with-pydebug was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5919 | if test "${with_pydebug+set}" = set; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5920 |   withval=$with_pydebug; | 
 | 5921 | if test "$withval" != no | 
 | 5922 | then | 
 | 5923 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5924 | $as_echo "#define Py_DEBUG 1" >>confdefs.h | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5925 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5926 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 5927 | $as_echo "yes" >&6; }; | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5928 |   Py_DEBUG='true' | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5929 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 5930 | $as_echo "no" >&6; }; Py_DEBUG='false' | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5931 | fi | 
 | 5932 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5933 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 5934 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5935 | fi | 
 | 5936 |  | 
 | 5937 |  | 
 | 5938 | # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be | 
 | 5939 | # merged with this chunk of code? | 
 | 5940 |  | 
 | 5941 | # Optimizer/debugger flags | 
 | 5942 | # ------------------------ | 
 | 5943 | # (The following bit of code is complicated enough - please keep things | 
 | 5944 | # indented properly.  Just pretend you're editing Python code. ;-) | 
 | 5945 |  | 
 | 5946 | # There are two parallel sets of case statements below, one that checks to | 
 | 5947 | # see if OPT was set and one that does BASECFLAGS setting based upon | 
 | 5948 | # compiler and platform.  BASECFLAGS tweaks need to be made even if the | 
 | 5949 | # user set OPT. | 
 | 5950 |  | 
 | 5951 | # tweak OPT based on compiler and platform, only if the user didn't set | 
 | 5952 | # it on the command line | 
 | 5953 |  | 
| Benjamin Peterson | d4b721b | 2010-03-23 20:58:37 +0000 | [diff] [blame] | 5954 | if test "${OPT-unset}" = "unset" | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5955 | then | 
 | 5956 |     case $GCC in | 
 | 5957 |     yes) | 
 | 5958 |         if test "$CC" != 'g++' ; then | 
 | 5959 | 	    STRICT_PROTO="-Wstrict-prototypes" | 
 | 5960 | 	fi | 
 | 5961 |         # For gcc 4.x we need to use -fwrapv so lets check if its supported | 
 | 5962 |         if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then | 
 | 5963 |            WRAP="-fwrapv" | 
 | 5964 |         fi | 
| Stefan Krah | 503e5e1 | 2011-09-14 15:19:42 +0200 | [diff] [blame] | 5965 |  | 
 | 5966 |         # Clang also needs -fwrapv | 
| Stefan Krah | 2bc1e8f | 2011-12-08 22:26:06 +0100 | [diff] [blame] | 5967 |         case $CC in | 
 | 5968 |             *clang*) WRAP="-fwrapv" | 
 | 5969 |             ;; | 
 | 5970 |         esac | 
| Stefan Krah | 503e5e1 | 2011-09-14 15:19:42 +0200 | [diff] [blame] | 5971 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5972 | 	case $ac_cv_prog_cc_g in | 
 | 5973 | 	yes) | 
 | 5974 | 	    if test "$Py_DEBUG" = 'true' ; then | 
 | 5975 | 		# Optimization messes up debuggers, so turn it off for | 
 | 5976 | 		# debug builds. | 
| Mark Dickinson | d2f3e3f | 2010-05-05 22:23:58 +0000 | [diff] [blame] | 5977 | 		OPT="-g -O0 -Wall $STRICT_PROTO" | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5978 | 	    else | 
 | 5979 | 		OPT="-g $WRAP -O3 -Wall $STRICT_PROTO" | 
 | 5980 | 	    fi | 
 | 5981 | 	    ;; | 
 | 5982 | 	*) | 
 | 5983 | 	    OPT="-O3 -Wall $STRICT_PROTO" | 
 | 5984 | 	    ;; | 
 | 5985 | 	esac | 
 | 5986 | 	case $ac_sys_system in | 
 | 5987 | 	    SCO_SV*) OPT="$OPT -m486 -DSCO5" | 
 | 5988 | 	    ;; | 
 | 5989 |         esac | 
 | 5990 | 	;; | 
 | 5991 |  | 
 | 5992 |     *) | 
 | 5993 | 	OPT="-O" | 
 | 5994 | 	;; | 
 | 5995 |     esac | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5996 | fi | 
 | 5997 |  | 
 | 5998 |  | 
 | 5999 |  | 
 | 6000 | # The -arch flags for universal builds on OSX | 
 | 6001 | UNIVERSAL_ARCH_FLAGS= | 
 | 6002 |  | 
 | 6003 |  | 
 | 6004 | # tweak BASECFLAGS based on compiler and platform | 
 | 6005 | case $GCC in | 
 | 6006 | yes) | 
 | 6007 |     # Python violates C99 rules, by casting between incompatible | 
 | 6008 |     # pointer types. GCC may generate bad code as a result of that, | 
 | 6009 |     # so use -fno-strict-aliasing if supported. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6010 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -fno-strict-aliasing" >&5 | 
 | 6011 | $as_echo_n "checking whether $CC accepts -fno-strict-aliasing... " >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6012 |      ac_save_cc="$CC" | 
 | 6013 |      CC="$CC -fno-strict-aliasing" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6014 |      if ${ac_cv_no_strict_aliasing_ok+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6015 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 6016 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6017 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6018 | /* end confdefs.h.  */ | 
| Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 6019 |  | 
 | 6020 | int | 
 | 6021 | main () | 
 | 6022 | { | 
| Mark Dickinson | 5e13e29 | 2010-05-11 08:55:06 +0000 | [diff] [blame] | 6023 |  | 
| Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 6024 |   ; | 
 | 6025 |   return 0; | 
 | 6026 | } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6027 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6028 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6029 |   ac_cv_no_strict_aliasing_ok=yes | 
 | 6030 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6031 |   ac_cv_no_strict_aliasing_ok=no | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6032 | fi | 
| Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 6033 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 6034 | fi | 
 | 6035 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6036 |      CC="$ac_save_cc" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6037 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_no_strict_aliasing_ok" >&5 | 
 | 6038 | $as_echo "$ac_cv_no_strict_aliasing_ok" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6039 |     if test $ac_cv_no_strict_aliasing_ok = yes | 
 | 6040 |     then | 
 | 6041 |       BASECFLAGS="$BASECFLAGS -fno-strict-aliasing" | 
 | 6042 |     fi | 
 | 6043 |  | 
 | 6044 |     # if using gcc on alpha, use -mieee to get (near) full IEEE 754 | 
 | 6045 |     # support.  Without this, treatment of subnormals doesn't follow | 
 | 6046 |     # the standard. | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 6047 |     case $host in | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6048 |          alpha*) | 
 | 6049 |                 BASECFLAGS="$BASECFLAGS -mieee" | 
 | 6050 |                 ;; | 
 | 6051 |     esac | 
 | 6052 |  | 
 | 6053 |     case $ac_sys_system in | 
 | 6054 | 	SCO_SV*) | 
 | 6055 | 	    BASECFLAGS="$BASECFLAGS -m486 -DSCO5" | 
 | 6056 | 	    ;; | 
 | 6057 | 	# is there any other compiler on Darwin besides gcc? | 
 | 6058 | 	Darwin*) | 
 | 6059 | 	    # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd | 
 | 6060 | 	    # used to be here, but non-Apple gcc doesn't accept them. | 
| Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 6061 | 	    if test "${CC}" = gcc | 
 | 6062 | 	    then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6063 | 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which compiler should be used" >&5 | 
 | 6064 | $as_echo_n "checking which compiler should be used... " >&6; } | 
| Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 6065 | 		case "${UNIVERSALSDK}" in | 
 | 6066 | 		*/MacOSX10.4u.sdk) | 
 | 6067 | 			# Build using 10.4 SDK, force usage of gcc when the | 
 | 6068 | 			# compiler is gcc, otherwise the user will get very | 
 | 6069 | 			# confusing error messages when building on OSX 10.6 | 
 | 6070 | 			CC=gcc-4.0 | 
 | 6071 | 			CPP=cpp-4.0 | 
 | 6072 | 			;; | 
 | 6073 | 		esac | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6074 | 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
 | 6075 | $as_echo "$CC" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6076 | 	    fi | 
 | 6077 |  | 
 | 6078 | 	    # Calculate the right deployment target for this build. | 
 | 6079 | 	    # | 
| Ned Deily | c40b903 | 2014-06-25 13:48:46 -0700 | [diff] [blame] | 6080 | 		cur_target_major=`sw_vers -productVersion | \ | 
 | 6081 | 				sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'` | 
 | 6082 | 		cur_target_minor=`sw_vers -productVersion | \ | 
 | 6083 | 				sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'` | 
 | 6084 | 		cur_target="${cur_target_major}.${cur_target_minor}" | 
 | 6085 | 		if test ${cur_target_major} -eq 10 && \ | 
 | 6086 | 		   test ${cur_target_minor} -ge 3 | 
 | 6087 | 		then | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6088 | 		    cur_target=10.3 | 
| Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 6089 | 		    if test ${enable_universalsdk}; then | 
 | 6090 | 			    if test "${UNIVERSAL_ARCHS}" = "all"; then | 
 | 6091 | 				    # Ensure that the default platform for a | 
 | 6092 | 				    # 4-way universal build is OSX 10.5, | 
 | 6093 | 				    # that's the first OS release where | 
 | 6094 | 				    # 4-way builds make sense. | 
 | 6095 | 				    cur_target='10.5' | 
| Ronald Oussoren | 23d9253 | 2009-09-07 06:12:00 +0000 | [diff] [blame] | 6096 |  | 
 | 6097 | 			    elif test "${UNIVERSAL_ARCHS}" = "3-way"; then | 
 | 6098 | 				    cur_target='10.5' | 
 | 6099 |  | 
 | 6100 | 			    elif test "${UNIVERSAL_ARCHS}" = "intel"; then | 
 | 6101 | 				    cur_target='10.5' | 
 | 6102 |  | 
 | 6103 | 			    elif test "${UNIVERSAL_ARCHS}" = "64-bit"; then | 
 | 6104 | 				    cur_target='10.5' | 
| Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 6105 | 			    fi | 
 | 6106 | 		    else | 
| Ronald Oussoren | bc0e83c | 2010-02-11 13:26:54 +0000 | [diff] [blame] | 6107 | 			    if test `/usr/bin/arch` = "i386"; then | 
| Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 6108 | 				    # On Intel macs default to a deployment | 
 | 6109 | 				    # target of 10.4, that's the first OSX | 
 | 6110 | 				    # release with Intel support. | 
 | 6111 | 				    cur_target="10.4" | 
 | 6112 | 			    fi | 
 | 6113 | 		    fi | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6114 | 	    fi | 
 | 6115 | 	    CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}} | 
 | 6116 |  | 
 | 6117 | 	    # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the | 
 | 6118 | 	    # environment with a value that is the same as what we'll use | 
 | 6119 | 	    # in the Makefile to ensure that we'll get the same compiler | 
 | 6120 | 	    # environment during configure and build time. | 
 | 6121 | 	    MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET" | 
 | 6122 | 	    export MACOSX_DEPLOYMENT_TARGET | 
 | 6123 | 	    EXPORT_MACOSX_DEPLOYMENT_TARGET='' | 
 | 6124 |  | 
| Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 6125 | 	    if test "${enable_universalsdk}"; then | 
 | 6126 | 		UNIVERSAL_ARCH_FLAGS="" | 
 | 6127 | 	        if test "$UNIVERSAL_ARCHS" = "32-bit" ; then | 
 | 6128 | 		   UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386" | 
 | 6129 | 		   ARCH_RUN_32BIT="" | 
| Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 6130 | 		   LIPO_32BIT_FLAGS="" | 
| Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 6131 |  | 
 | 6132 | 	         elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then | 
 | 6133 | 		   UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64" | 
 | 6134 | 		   LIPO_32BIT_FLAGS="" | 
 | 6135 | 		   ARCH_RUN_32BIT="true" | 
 | 6136 |  | 
 | 6137 | 	         elif test "$UNIVERSAL_ARCHS" = "all" ; then | 
 | 6138 | 		   UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64" | 
 | 6139 | 		   LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" | 
| Ronald Oussoren | 92397ce | 2010-01-17 19:32:00 +0000 | [diff] [blame] | 6140 | 		   ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" | 
| Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 6141 |  | 
 | 6142 | 	         elif test "$UNIVERSAL_ARCHS" = "intel" ; then | 
 | 6143 | 		   UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64" | 
 | 6144 | 		   LIPO_32BIT_FLAGS="-extract i386" | 
| Ronald Oussoren | 92397ce | 2010-01-17 19:32:00 +0000 | [diff] [blame] | 6145 | 		   ARCH_RUN_32BIT="/usr/bin/arch -i386" | 
| Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 6146 |  | 
 | 6147 | 	         elif test "$UNIVERSAL_ARCHS" = "3-way" ; then | 
 | 6148 | 		   UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64" | 
 | 6149 | 		   LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" | 
| Ronald Oussoren | 9922f17 | 2010-02-11 13:19:34 +0000 | [diff] [blame] | 6150 | 		   ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" | 
| Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 6151 |  | 
 | 6152 | 		 else | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 6153 | 	           as_fn_error $? "proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" "$LINENO" 5 | 
| Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 6154 |  | 
 | 6155 | 		 fi | 
 | 6156 |  | 
 | 6157 |  | 
| Ronald Oussoren | 974eb5e | 2010-04-18 17:59:37 +0000 | [diff] [blame] | 6158 | 		CFLAGS="${UNIVERSAL_ARCH_FLAGS} ${CFLAGS}" | 
 | 6159 | 		if test "${UNIVERSALSDK}" != "/" | 
 | 6160 | 		then | 
 | 6161 | 			CPPFLAGS="-isysroot ${UNIVERSALSDK} ${CPPFLAGS}" | 
 | 6162 | 			LDFLAGS="-isysroot ${UNIVERSALSDK} ${LDFLAGS}" | 
 | 6163 | 			CFLAGS="-isysroot ${UNIVERSALSDK} ${CFLAGS}" | 
| Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 6164 | 		fi | 
 | 6165 |  | 
 | 6166 | 	    fi | 
 | 6167 |  | 
 | 6168 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6169 | 	    ;; | 
 | 6170 | 	OSF*) | 
 | 6171 | 	    BASECFLAGS="$BASECFLAGS -mieee" | 
 | 6172 | 	    ;; | 
 | 6173 |     esac | 
 | 6174 |     ;; | 
 | 6175 |  | 
 | 6176 | *) | 
 | 6177 |     case $ac_sys_system in | 
 | 6178 |     OpenUNIX*|UnixWare*) | 
 | 6179 | 	BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca " | 
 | 6180 | 	;; | 
 | 6181 |     OSF*) | 
 | 6182 | 	BASECFLAGS="$BASECFLAGS -ieee -std" | 
 | 6183 |     	;; | 
 | 6184 |     SCO_SV*) | 
 | 6185 | 	BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5" | 
 | 6186 | 	;; | 
 | 6187 |     esac | 
 | 6188 |     ;; | 
 | 6189 | esac | 
 | 6190 |  | 
 | 6191 | if test "$Py_DEBUG" = 'true'; then | 
 | 6192 |   : | 
 | 6193 | else | 
 | 6194 |   OPT="-DNDEBUG $OPT" | 
 | 6195 | fi | 
 | 6196 |  | 
 | 6197 | if test "$ac_arch_flags" | 
 | 6198 | then | 
 | 6199 | 	BASECFLAGS="$BASECFLAGS $ac_arch_flags" | 
 | 6200 | fi | 
 | 6201 |  | 
 | 6202 | # disable check for icc since it seems to pass, but generates a warning | 
 | 6203 | if test "$CC" = icc | 
 | 6204 | then | 
 | 6205 |   ac_cv_opt_olimit_ok=no | 
 | 6206 | fi | 
 | 6207 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6208 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -OPT:Olimit=0" >&5 | 
 | 6209 | $as_echo_n "checking whether $CC accepts -OPT:Olimit=0... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6210 | if ${ac_cv_opt_olimit_ok+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6211 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6212 | else | 
 | 6213 |   ac_save_cc="$CC" | 
 | 6214 | CC="$CC -OPT:Olimit=0" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6215 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6216 | /* end confdefs.h.  */ | 
| Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 6217 |  | 
 | 6218 | int | 
 | 6219 | main () | 
 | 6220 | { | 
| Mark Dickinson | 5e13e29 | 2010-05-11 08:55:06 +0000 | [diff] [blame] | 6221 |  | 
| Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 6222 |   ; | 
 | 6223 |   return 0; | 
 | 6224 | } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6225 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6226 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6227 |   ac_cv_opt_olimit_ok=yes | 
 | 6228 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6229 |   ac_cv_opt_olimit_ok=no | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 6230 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6231 | fi | 
| Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 6232 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6233 | CC="$ac_save_cc" | 
 | 6234 | fi | 
 | 6235 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_opt_olimit_ok" >&5 | 
 | 6237 | $as_echo "$ac_cv_opt_olimit_ok" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6238 | if test $ac_cv_opt_olimit_ok = yes; then | 
 | 6239 |     case $ac_sys_system in | 
 | 6240 | 	# XXX is this branch needed? On MacOSX 10.2.2 the result of the | 
 | 6241 | 	# olimit_ok test is "no".  Is it "yes" in some other Darwin-esque | 
 | 6242 | 	# environment? | 
 | 6243 |         Darwin*) | 
 | 6244 | 	    ;; | 
| Trent Nelson | 34562e1 | 2012-10-17 18:01:12 -0400 | [diff] [blame] | 6245 |         # XXX thankfully this useless troublemaker of a flag has been | 
 | 6246 |         # eradicated in the 3.x line.  For now, make sure it isn't picked | 
 | 6247 |         # up by any of our other platforms that use CC. | 
 | 6248 |         AIX*|SunOS*|HP-UX*|IRIX*) | 
 | 6249 |             ;; | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6250 |         *) | 
 | 6251 | 	    BASECFLAGS="$BASECFLAGS -OPT:Olimit=0" | 
 | 6252 | 	    ;; | 
 | 6253 |     esac | 
 | 6254 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6255 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Olimit 1500" >&5 | 
 | 6256 | $as_echo_n "checking whether $CC accepts -Olimit 1500... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6257 |   if ${ac_cv_olimit_ok+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6258 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6259 | else | 
 | 6260 |   ac_save_cc="$CC" | 
 | 6261 |   CC="$CC -Olimit 1500" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6262 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6263 | /* end confdefs.h.  */ | 
| Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 6264 |  | 
 | 6265 | int | 
 | 6266 | main () | 
 | 6267 | { | 
| Mark Dickinson | 5e13e29 | 2010-05-11 08:55:06 +0000 | [diff] [blame] | 6268 |  | 
| Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 6269 |   ; | 
 | 6270 |   return 0; | 
 | 6271 | } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6272 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6273 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6274 |   ac_cv_olimit_ok=yes | 
 | 6275 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6276 |   ac_cv_olimit_ok=no | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 6277 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6278 | fi | 
| Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 6279 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6280 |   CC="$ac_save_cc" | 
 | 6281 | fi | 
 | 6282 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6283 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_olimit_ok" >&5 | 
 | 6284 | $as_echo "$ac_cv_olimit_ok" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6285 |   if test $ac_cv_olimit_ok = yes; then | 
| Stefan Krah | 6747326 | 2012-11-29 00:17:05 +0100 | [diff] [blame] | 6286 |     case $ac_sys_system in | 
 | 6287 |         # Issue #16534: On HP-UX ac_cv_olimit_ok=yes is a false positive. | 
 | 6288 |         HP-UX*) | 
 | 6289 |             ;; | 
 | 6290 |         *) | 
 | 6291 |             BASECFLAGS="$BASECFLAGS -Olimit 1500" | 
 | 6292 |             ;; | 
 | 6293 |     esac | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6294 |   fi | 
 | 6295 | fi | 
 | 6296 |  | 
 | 6297 | # Check whether GCC supports PyArg_ParseTuple format | 
 | 6298 | if test "$GCC" = "yes" | 
 | 6299 | then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6300 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc supports ParseTuple __format__" >&5 | 
 | 6301 | $as_echo_n "checking whether gcc supports ParseTuple __format__... " >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6302 |   save_CFLAGS=$CFLAGS | 
| Benjamin Peterson | c875966 | 2013-05-11 13:00:05 -0500 | [diff] [blame] | 6303 |   CFLAGS="$CFLAGS -Werror -Wformat" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6304 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6305 | /* end confdefs.h.  */ | 
 | 6306 |  | 
 | 6307 |     void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2))); | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6308 | int | 
 | 6309 | main () | 
 | 6310 | { | 
 | 6311 |  | 
 | 6312 |   ; | 
 | 6313 |   return 0; | 
 | 6314 | } | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 6315 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6316 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6317 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6318 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 6319 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6320 | $as_echo "#define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1" >>confdefs.h | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6321 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 6322 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6323 | $as_echo "yes" >&6; } | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 6324 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6325 | else | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 6326 |  | 
 | 6327 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6328 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6329 |  | 
 | 6330 | fi | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6331 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 6332 |   CFLAGS=$save_CFLAGS | 
 | 6333 | fi | 
 | 6334 |  | 
| Brett Cannon | 4ff151a | 2015-09-18 15:09:42 -0700 | [diff] [blame] | 6335 |  | 
 | 6336 | # Enable PGO flags. | 
 | 6337 | # Extract the first word of "llvm-profdata", so it can be a program name with args. | 
 | 6338 | set dummy llvm-profdata; ac_word=$2 | 
 | 6339 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 6340 | $as_echo_n "checking for $ac_word... " >&6; } | 
 | 6341 | if ${ac_cv_prog_LLVM_PROF_FOUND+:} false; then : | 
 | 6342 |   $as_echo_n "(cached) " >&6 | 
 | 6343 | else | 
 | 6344 |   if test -n "$LLVM_PROF_FOUND"; then | 
 | 6345 |   ac_cv_prog_LLVM_PROF_FOUND="$LLVM_PROF_FOUND" # Let the user override the test. | 
 | 6346 | else | 
 | 6347 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 6348 | for as_dir in $PATH | 
 | 6349 | do | 
 | 6350 |   IFS=$as_save_IFS | 
 | 6351 |   test -z "$as_dir" && as_dir=. | 
 | 6352 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 6353 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 6354 |     ac_cv_prog_LLVM_PROF_FOUND="found" | 
 | 6355 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 6356 |     break 2 | 
 | 6357 |   fi | 
 | 6358 | done | 
 | 6359 |   done | 
 | 6360 | IFS=$as_save_IFS | 
 | 6361 |  | 
 | 6362 |   test -z "$ac_cv_prog_LLVM_PROF_FOUND" && ac_cv_prog_LLVM_PROF_FOUND="not-found" | 
 | 6363 | fi | 
 | 6364 | fi | 
 | 6365 | LLVM_PROF_FOUND=$ac_cv_prog_LLVM_PROF_FOUND | 
 | 6366 | if test -n "$LLVM_PROF_FOUND"; then | 
 | 6367 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_PROF_FOUND" >&5 | 
 | 6368 | $as_echo "$LLVM_PROF_FOUND" >&6; } | 
 | 6369 | else | 
 | 6370 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 6371 | $as_echo "no" >&6; } | 
 | 6372 | fi | 
 | 6373 |  | 
 | 6374 |  | 
 | 6375 | LLVM_PROF_ERR=no | 
 | 6376 | case $CC in | 
 | 6377 |   *clang*) | 
 | 6378 |     # Any changes made here should be reflected in the GCC+Darwin case below | 
 | 6379 |     PGO_PROF_GEN_FLAG="-fprofile-instr-generate" | 
 | 6380 |     PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd" | 
 | 6381 |     LLVM_PROF_MERGER="llvm-profdata merge -output=code.profclangd *.profclangr" | 
 | 6382 |     LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"code-%p.profclangr\"" | 
 | 6383 |     if test $LLVM_PROF_FOUND = not-found | 
 | 6384 |     then | 
 | 6385 |       LLVM_PROF_ERR=yes | 
 | 6386 |     fi | 
 | 6387 |     ;; | 
 | 6388 |   *gcc*) | 
 | 6389 |     case $ac_sys_system in | 
 | 6390 |       Darwin*) | 
 | 6391 |         PGO_PROF_GEN_FLAG="-fprofile-instr-generate" | 
 | 6392 |         PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd" | 
 | 6393 |         LLVM_PROF_MERGER="llvm-profdata merge -output=code.profclangd *.profclangr" | 
 | 6394 |         LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"code-%p.profclangr\"" | 
 | 6395 |         if test $LLVM_PROF_FOUND = not-found | 
 | 6396 |         then | 
 | 6397 |           LLVM_PROF_ERR=yes | 
 | 6398 |         fi | 
 | 6399 |         ;; | 
 | 6400 |       *) | 
 | 6401 |         PGO_PROF_GEN_FLAG="-fprofile-generate" | 
 | 6402 |         PGO_PROF_USE_FLAG="-fprofile-use -fprofile-correction" | 
 | 6403 |         LLVM_PROF_MERGER="true" | 
 | 6404 |         LLVM_PROF_FILE="" | 
 | 6405 |         ;; | 
 | 6406 |     esac | 
 | 6407 |     ;; | 
 | 6408 | esac | 
 | 6409 |  | 
 | 6410 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6411 | # On some compilers, pthreads are available without further options | 
 | 6412 | # (e.g. MacOS X). On some of these systems, the compiler will not | 
 | 6413 | # complain if unaccepted options are passed (e.g. gcc on Mac OS X). | 
 | 6414 | # So we have to see first whether pthreads are available without | 
 | 6415 | # options before we can check whether -Kpthread improves anything. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6416 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads are available without options" >&5 | 
 | 6417 | $as_echo_n "checking whether pthreads are available without options... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6418 | if ${ac_cv_pthread_is_default+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6419 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6420 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6421 |   if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6422 |   ac_cv_pthread_is_default=no | 
 | 6423 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6424 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6425 | /* end confdefs.h.  */ | 
 | 6426 |  | 
| Stefan Krah | ae66ca6 | 2012-11-22 22:36:57 +0100 | [diff] [blame] | 6427 | #include <stdio.h> | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6428 | #include <pthread.h> | 
 | 6429 |  | 
 | 6430 | void* routine(void* p){return NULL;} | 
 | 6431 |  | 
 | 6432 | int main(){ | 
 | 6433 |   pthread_t p; | 
 | 6434 |   if(pthread_create(&p,NULL,routine,NULL)!=0) | 
 | 6435 |     return 1; | 
 | 6436 |   (void)pthread_detach(p); | 
 | 6437 |   return 0; | 
 | 6438 | } | 
 | 6439 |  | 
 | 6440 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6441 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6442 |  | 
 | 6443 |   ac_cv_pthread_is_default=yes | 
 | 6444 |   ac_cv_kthread=no | 
 | 6445 |   ac_cv_pthread=no | 
 | 6446 |  | 
 | 6447 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6448 |   ac_cv_pthread_is_default=no | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6449 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6450 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 6451 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6452 | fi | 
 | 6453 |  | 
 | 6454 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6455 | fi | 
 | 6456 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6457 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_is_default" >&5 | 
 | 6458 | $as_echo "$ac_cv_pthread_is_default" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6459 |  | 
 | 6460 |  | 
 | 6461 | if test $ac_cv_pthread_is_default = yes | 
 | 6462 | then | 
 | 6463 |   ac_cv_kpthread=no | 
 | 6464 | else | 
 | 6465 | # -Kpthread, if available, provides the right #defines | 
 | 6466 | # and linker options to make pthread_create available | 
 | 6467 | # Some compilers won't report that they do not support -Kpthread, | 
 | 6468 | # so we need to run a program to see whether it really made the | 
 | 6469 | # function available. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6470 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kpthread" >&5 | 
 | 6471 | $as_echo_n "checking whether $CC accepts -Kpthread... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6472 | if ${ac_cv_kpthread+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6473 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6474 | else | 
 | 6475 |   ac_save_cc="$CC" | 
 | 6476 | CC="$CC -Kpthread" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6477 | if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6478 |   ac_cv_kpthread=no | 
 | 6479 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6480 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6481 | /* end confdefs.h.  */ | 
 | 6482 |  | 
| Stefan Krah | ae66ca6 | 2012-11-22 22:36:57 +0100 | [diff] [blame] | 6483 | #include <stdio.h> | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6484 | #include <pthread.h> | 
 | 6485 |  | 
 | 6486 | void* routine(void* p){return NULL;} | 
 | 6487 |  | 
 | 6488 | int main(){ | 
 | 6489 |   pthread_t p; | 
 | 6490 |   if(pthread_create(&p,NULL,routine,NULL)!=0) | 
 | 6491 |     return 1; | 
 | 6492 |   (void)pthread_detach(p); | 
 | 6493 |   return 0; | 
 | 6494 | } | 
 | 6495 |  | 
 | 6496 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6497 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6498 |   ac_cv_kpthread=yes | 
 | 6499 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6500 |   ac_cv_kpthread=no | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6501 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6502 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 6503 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6504 | fi | 
 | 6505 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6506 | CC="$ac_save_cc" | 
 | 6507 | fi | 
 | 6508 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kpthread" >&5 | 
 | 6510 | $as_echo "$ac_cv_kpthread" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6511 | fi | 
 | 6512 |  | 
 | 6513 | if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no | 
 | 6514 | then | 
 | 6515 | # -Kthread, if available, provides the right #defines | 
 | 6516 | # and linker options to make pthread_create available | 
 | 6517 | # Some compilers won't report that they do not support -Kthread, | 
 | 6518 | # so we need to run a program to see whether it really made the | 
 | 6519 | # function available. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6520 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kthread" >&5 | 
 | 6521 | $as_echo_n "checking whether $CC accepts -Kthread... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6522 | if ${ac_cv_kthread+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6523 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6524 | else | 
 | 6525 |   ac_save_cc="$CC" | 
 | 6526 | CC="$CC -Kthread" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6527 | if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6528 |   ac_cv_kthread=no | 
 | 6529 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6530 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6531 | /* end confdefs.h.  */ | 
 | 6532 |  | 
| Stefan Krah | ae66ca6 | 2012-11-22 22:36:57 +0100 | [diff] [blame] | 6533 | #include <stdio.h> | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6534 | #include <pthread.h> | 
 | 6535 |  | 
 | 6536 | void* routine(void* p){return NULL;} | 
 | 6537 |  | 
 | 6538 | int main(){ | 
 | 6539 |   pthread_t p; | 
 | 6540 |   if(pthread_create(&p,NULL,routine,NULL)!=0) | 
 | 6541 |     return 1; | 
 | 6542 |   (void)pthread_detach(p); | 
 | 6543 |   return 0; | 
 | 6544 | } | 
 | 6545 |  | 
 | 6546 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6547 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6548 |   ac_cv_kthread=yes | 
 | 6549 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6550 |   ac_cv_kthread=no | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6551 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6552 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 6553 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6554 | fi | 
 | 6555 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6556 | CC="$ac_save_cc" | 
 | 6557 | fi | 
 | 6558 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6559 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kthread" >&5 | 
 | 6560 | $as_echo "$ac_cv_kthread" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6561 | fi | 
 | 6562 |  | 
 | 6563 | if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no | 
 | 6564 | then | 
 | 6565 | # -pthread, if available, provides the right #defines | 
 | 6566 | # and linker options to make pthread_create available | 
 | 6567 | # Some compilers won't report that they do not support -pthread, | 
 | 6568 | # so we need to run a program to see whether it really made the | 
 | 6569 | # function available. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6570 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -pthread" >&5 | 
 | 6571 | $as_echo_n "checking whether $CC accepts -pthread... " >&6; } | 
| doko@python.org | fa3f9a3 | 2013-01-25 15:32:31 +0100 | [diff] [blame] | 6572 | if ${ac_cv_pthread+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6573 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6574 | else | 
 | 6575 |   ac_save_cc="$CC" | 
 | 6576 | CC="$CC -pthread" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6577 | if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6578 |   ac_cv_pthread=no | 
 | 6579 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6580 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6581 | /* end confdefs.h.  */ | 
 | 6582 |  | 
| Stefan Krah | ae66ca6 | 2012-11-22 22:36:57 +0100 | [diff] [blame] | 6583 | #include <stdio.h> | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6584 | #include <pthread.h> | 
 | 6585 |  | 
 | 6586 | void* routine(void* p){return NULL;} | 
 | 6587 |  | 
 | 6588 | int main(){ | 
 | 6589 |   pthread_t p; | 
 | 6590 |   if(pthread_create(&p,NULL,routine,NULL)!=0) | 
 | 6591 |     return 1; | 
 | 6592 |   (void)pthread_detach(p); | 
 | 6593 |   return 0; | 
 | 6594 | } | 
 | 6595 |  | 
 | 6596 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6597 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6598 |   ac_cv_pthread=yes | 
 | 6599 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6600 |   ac_cv_pthread=no | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6601 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6602 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 6603 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6604 | fi | 
 | 6605 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6606 | CC="$ac_save_cc" | 
 | 6607 | fi | 
 | 6608 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread" >&5 | 
 | 6610 | $as_echo "$ac_cv_pthread" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6611 | fi | 
 | 6612 |  | 
 | 6613 | # If we have set a CC compiler flag for thread support then | 
 | 6614 | # check if it works for CXX, too. | 
 | 6615 | ac_cv_cxx_thread=no | 
 | 6616 | if test ! -z "$CXX" | 
 | 6617 | then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6618 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX also accepts flags for thread support" >&5 | 
 | 6619 | $as_echo_n "checking whether $CXX also accepts flags for thread support... " >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6620 | ac_save_cxx="$CXX" | 
 | 6621 |  | 
 | 6622 | if test "$ac_cv_kpthread" = "yes" | 
 | 6623 | then | 
 | 6624 |   CXX="$CXX -Kpthread" | 
 | 6625 |   ac_cv_cxx_thread=yes | 
 | 6626 | elif test "$ac_cv_kthread" = "yes" | 
 | 6627 | then | 
 | 6628 |   CXX="$CXX -Kthread" | 
 | 6629 |   ac_cv_cxx_thread=yes | 
 | 6630 | elif test "$ac_cv_pthread" = "yes" | 
 | 6631 | then | 
 | 6632 |   CXX="$CXX -pthread" | 
 | 6633 |   ac_cv_cxx_thread=yes | 
 | 6634 | fi | 
 | 6635 |  | 
 | 6636 | if test $ac_cv_cxx_thread = yes | 
 | 6637 | then | 
 | 6638 |   echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext | 
 | 6639 |   $CXX -c conftest.$ac_ext 2>&5 | 
 | 6640 |   if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ | 
 | 6641 |      && test -s conftest$ac_exeext && ./conftest$ac_exeext | 
 | 6642 |   then | 
 | 6643 |     ac_cv_cxx_thread=yes | 
 | 6644 |   else | 
 | 6645 |     ac_cv_cxx_thread=no | 
 | 6646 |   fi | 
 | 6647 |   rm -fr conftest* | 
 | 6648 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_thread" >&5 | 
 | 6650 | $as_echo "$ac_cv_cxx_thread" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6651 | fi | 
 | 6652 | CXX="$ac_save_cxx" | 
 | 6653 |  | 
 | 6654 |  | 
 | 6655 | # checks for header files | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6656 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | 
 | 6657 | $as_echo_n "checking for ANSI C header files... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6658 | if ${ac_cv_header_stdc+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6659 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6660 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6661 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6662 | /* end confdefs.h.  */ | 
 | 6663 | #include <stdlib.h> | 
 | 6664 | #include <stdarg.h> | 
 | 6665 | #include <string.h> | 
 | 6666 | #include <float.h> | 
 | 6667 |  | 
 | 6668 | int | 
 | 6669 | main () | 
 | 6670 | { | 
 | 6671 |  | 
 | 6672 |   ; | 
 | 6673 |   return 0; | 
 | 6674 | } | 
 | 6675 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6676 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6677 |   ac_cv_header_stdc=yes | 
 | 6678 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6679 |   ac_cv_header_stdc=no | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6680 | fi | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6681 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 6682 |  | 
 | 6683 | if test $ac_cv_header_stdc = yes; then | 
 | 6684 |   # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6685 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6686 | /* end confdefs.h.  */ | 
 | 6687 | #include <string.h> | 
 | 6688 |  | 
 | 6689 | _ACEOF | 
 | 6690 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6691 |   $EGREP "memchr" >/dev/null 2>&1; then : | 
 | 6692 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6693 | else | 
 | 6694 |   ac_cv_header_stdc=no | 
 | 6695 | fi | 
| Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 6696 | rm -f conftest* | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6697 |  | 
 | 6698 | fi | 
 | 6699 |  | 
 | 6700 | if test $ac_cv_header_stdc = yes; then | 
 | 6701 |   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6702 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6703 | /* end confdefs.h.  */ | 
 | 6704 | #include <stdlib.h> | 
 | 6705 |  | 
 | 6706 | _ACEOF | 
 | 6707 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6708 |   $EGREP "free" >/dev/null 2>&1; then : | 
 | 6709 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6710 | else | 
 | 6711 |   ac_cv_header_stdc=no | 
 | 6712 | fi | 
| Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 6713 | rm -f conftest* | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6714 |  | 
 | 6715 | fi | 
 | 6716 |  | 
 | 6717 | if test $ac_cv_header_stdc = yes; then | 
 | 6718 |   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6719 |   if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6720 |   : | 
 | 6721 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6722 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6723 | /* end confdefs.h.  */ | 
 | 6724 | #include <ctype.h> | 
 | 6725 | #include <stdlib.h> | 
 | 6726 | #if ((' ' & 0x0FF) == 0x020) | 
 | 6727 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | 
 | 6728 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | 
 | 6729 | #else | 
 | 6730 | # define ISLOWER(c) \ | 
 | 6731 | 		   (('a' <= (c) && (c) <= 'i') \ | 
 | 6732 | 		     || ('j' <= (c) && (c) <= 'r') \ | 
 | 6733 | 		     || ('s' <= (c) && (c) <= 'z')) | 
 | 6734 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | 
 | 6735 | #endif | 
 | 6736 |  | 
 | 6737 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | 
 | 6738 | int | 
 | 6739 | main () | 
 | 6740 | { | 
 | 6741 |   int i; | 
 | 6742 |   for (i = 0; i < 256; i++) | 
 | 6743 |     if (XOR (islower (i), ISLOWER (i)) | 
 | 6744 | 	|| toupper (i) != TOUPPER (i)) | 
 | 6745 |       return 2; | 
 | 6746 |   return 0; | 
 | 6747 | } | 
 | 6748 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6749 | if ac_fn_c_try_run "$LINENO"; then : | 
 | 6750 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6751 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6752 |   ac_cv_header_stdc=no | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6753 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6754 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 6755 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6756 | fi | 
 | 6757 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6758 | fi | 
 | 6759 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | 
 | 6761 | $as_echo "$ac_cv_header_stdc" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6762 | if test $ac_cv_header_stdc = yes; then | 
 | 6763 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6764 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6765 |  | 
 | 6766 | fi | 
 | 6767 |  | 
| doko@ubuntu.com | f27ec3e | 2014-04-17 20:11:19 +0200 | [diff] [blame] | 6768 | for ac_header in asm/types.h conio.h direct.h dlfcn.h errno.h \ | 
| Martin v. Löwis | 0e8bd7e | 2006-06-10 12:23:46 +0000 | [diff] [blame] | 6769 | fcntl.h grp.h \ | 
| doko@ubuntu.com | f27ec3e | 2014-04-17 20:11:19 +0200 | [diff] [blame] | 6770 | ieeefp.h io.h langinfo.h libintl.h poll.h process.h pthread.h \ | 
| Martin v. Löwis | 40e9aed | 2006-10-02 15:20:37 +0000 | [diff] [blame] | 6771 | shadow.h signal.h stdint.h stropts.h termios.h thread.h \ | 
| Martin v. Löwis | 14e73b1 | 2003-01-01 09:51:12 +0000 | [diff] [blame] | 6772 | unistd.h utime.h \ | 
| Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 6773 | sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \ | 
 | 6774 | sys/lock.h sys/mkdev.h sys/modem.h \ | 
| Martin v. Löwis | 0e8bd7e | 2006-06-10 12:23:46 +0000 | [diff] [blame] | 6775 | sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \ | 
| Martin v. Löwis | 8c255e4 | 2008-05-23 15:06:50 +0000 | [diff] [blame] | 6776 | sys/termio.h sys/time.h \ | 
| Martin v. Löwis | 0e8bd7e | 2006-06-10 12:23:46 +0000 | [diff] [blame] | 6777 | sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \ | 
| Martin v. Löwis | 0347a9a | 2006-10-27 07:06:52 +0000 | [diff] [blame] | 6778 | sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \ | 
| Christian Heimes | 3aa138f | 2013-06-18 13:25:24 +0200 | [diff] [blame] | 6779 | bluetooth/bluetooth.h linux/tipc.h spawn.h util.h alloca.h | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6780 | do : | 
 | 6781 |   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
 | 6782 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 6783 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6784 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6785 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6786 | _ACEOF | 
 | 6787 |  | 
 | 6788 | fi | 
 | 6789 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6790 | done | 
 | 6791 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6792 | ac_header_dirent=no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6793 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6794 |   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | 
 | 6795 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 | 
 | 6796 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6797 | if eval \${$as_ac_Header+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6798 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6799 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6800 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6801 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6802 | #include <sys/types.h> | 
 | 6803 | #include <$ac_hdr> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6804 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6805 | int | 
 | 6806 | main () | 
 | 6807 | { | 
 | 6808 | if ((DIR *) 0) | 
 | 6809 | return 0; | 
 | 6810 |   ; | 
 | 6811 |   return 0; | 
 | 6812 | } | 
 | 6813 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6814 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6815 |   eval "$as_ac_Header=yes" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6816 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6817 |   eval "$as_ac_Header=no" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6818 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6819 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6820 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6821 | eval ac_res=\$$as_ac_Header | 
 | 6822 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 6823 | $as_echo "$ac_res" >&6; } | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 6824 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6825 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6826 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6827 | _ACEOF | 
 | 6828 |  | 
 | 6829 | ac_header_dirent=$ac_hdr; break | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6830 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6831 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6832 | done | 
 | 6833 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | 
 | 6834 | if test $ac_header_dirent = dirent.h; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6835 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 | 
 | 6836 | $as_echo_n "checking for library containing opendir... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6837 | if ${ac_cv_search_opendir+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6838 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6839 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6840 |   ac_func_search_save_LIBS=$LIBS | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6841 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6842 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6843 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6844 | /* Override any GCC internal prototype to avoid an error. | 
 | 6845 |    Use char because int might match the return type of a GCC | 
 | 6846 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6847 | #ifdef __cplusplus | 
 | 6848 | extern "C" | 
 | 6849 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6850 | char opendir (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6851 | int | 
 | 6852 | main () | 
 | 6853 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6854 | return opendir (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6855 |   ; | 
 | 6856 |   return 0; | 
 | 6857 | } | 
 | 6858 | _ACEOF | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6859 | for ac_lib in '' dir; do | 
 | 6860 |   if test -z "$ac_lib"; then | 
 | 6861 |     ac_res="none required" | 
 | 6862 |   else | 
 | 6863 |     ac_res=-l$ac_lib | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 6864 |     LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6865 |   fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6866 |   if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6867 |   ac_cv_search_opendir=$ac_res | 
| Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 6868 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6869 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 6870 |     conftest$ac_exeext | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6871 |   if ${ac_cv_search_opendir+:} false; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6872 |   break | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 6873 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6874 | done | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6875 | if ${ac_cv_search_opendir+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6876 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6877 | else | 
 | 6878 |   ac_cv_search_opendir=no | 
 | 6879 | fi | 
 | 6880 | rm conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6881 | LIBS=$ac_func_search_save_LIBS | 
 | 6882 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 | 
 | 6884 | $as_echo "$ac_cv_search_opendir" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6885 | ac_res=$ac_cv_search_opendir | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6886 | if test "$ac_res" != no; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6887 |   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6888 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6889 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6890 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6891 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6892 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 | 
 | 6893 | $as_echo_n "checking for library containing opendir... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6894 | if ${ac_cv_search_opendir+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6895 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6896 | else | 
 | 6897 |   ac_func_search_save_LIBS=$LIBS | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6898 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6899 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6900 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6901 | /* Override any GCC internal prototype to avoid an error. | 
 | 6902 |    Use char because int might match the return type of a GCC | 
 | 6903 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6904 | #ifdef __cplusplus | 
 | 6905 | extern "C" | 
 | 6906 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6907 | char opendir (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6908 | int | 
 | 6909 | main () | 
 | 6910 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6911 | return opendir (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6912 |   ; | 
 | 6913 |   return 0; | 
 | 6914 | } | 
 | 6915 | _ACEOF | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6916 | for ac_lib in '' x; do | 
 | 6917 |   if test -z "$ac_lib"; then | 
 | 6918 |     ac_res="none required" | 
 | 6919 |   else | 
 | 6920 |     ac_res=-l$ac_lib | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 6921 |     LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6922 |   fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6923 |   if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6924 |   ac_cv_search_opendir=$ac_res | 
| Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 6925 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6926 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 6927 |     conftest$ac_exeext | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6928 |   if ${ac_cv_search_opendir+:} false; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6929 |   break | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 6930 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6931 | done | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6932 | if ${ac_cv_search_opendir+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6933 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6934 | else | 
 | 6935 |   ac_cv_search_opendir=no | 
 | 6936 | fi | 
 | 6937 | rm conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6938 | LIBS=$ac_func_search_save_LIBS | 
 | 6939 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 | 
 | 6941 | $as_echo "$ac_cv_search_opendir" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6942 | ac_res=$ac_cv_search_opendir | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6943 | if test "$ac_res" != no; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6944 |   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6945 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6946 | fi | 
 | 6947 |  | 
 | 6948 | fi | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6949 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6950 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5 | 
 | 6951 | $as_echo_n "checking whether sys/types.h defines makedev... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6952 | if ${ac_cv_header_sys_types_h_makedev+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6953 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6954 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6955 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6956 | /* end confdefs.h.  */ | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6957 | #include <sys/types.h> | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6958 | int | 
 | 6959 | main () | 
 | 6960 | { | 
 | 6961 | return makedev(0, 0); | 
 | 6962 |   ; | 
 | 6963 |   return 0; | 
 | 6964 | } | 
 | 6965 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6966 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6967 |   ac_cv_header_sys_types_h_makedev=yes | 
 | 6968 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6969 |   ac_cv_header_sys_types_h_makedev=no | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6970 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6971 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 6972 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6973 |  | 
 | 6974 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5 | 
 | 6976 | $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; } | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6977 |  | 
 | 6978 | if test $ac_cv_header_sys_types_h_makedev = no; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6979 | ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6980 | if test "x$ac_cv_header_sys_mkdev_h" = xyes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6981 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6982 | $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6983 |  | 
 | 6984 | fi | 
 | 6985 |  | 
 | 6986 |  | 
 | 6987 |  | 
 | 6988 |   if test $ac_cv_header_sys_mkdev_h = no; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6989 |     ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 6990 | if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6991 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6992 | $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6993 |  | 
 | 6994 | fi | 
 | 6995 |  | 
 | 6996 |  | 
 | 6997 |   fi | 
 | 6998 | fi | 
 | 6999 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7000 |  | 
| Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 7001 | # On Linux, netlink.h requires asm/types.h | 
| Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 7002 | for ac_header in linux/netlink.h | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7003 | do : | 
 | 7004 |   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] | 7005 | #ifdef HAVE_ASM_TYPES_H | 
 | 7006 | #include <asm/types.h> | 
 | 7007 | #endif | 
 | 7008 | #ifdef HAVE_SYS_SOCKET_H | 
 | 7009 | #include <sys/socket.h> | 
 | 7010 | #endif | 
 | 7011 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7012 | " | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7013 | 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] | 7014 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7015 | #define HAVE_LINUX_NETLINK_H 1 | 
| Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 7016 | _ACEOF | 
 | 7017 |  | 
 | 7018 | fi | 
 | 7019 |  | 
 | 7020 | done | 
 | 7021 |  | 
 | 7022 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7023 | # checks for typedefs | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 7024 | was_it_defined=no | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7025 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t in time.h" >&5 | 
 | 7026 | $as_echo_n "checking for clock_t in time.h... " >&6; } | 
 | 7027 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7028 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7029 | #include <time.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7030 |  | 
 | 7031 | _ACEOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7032 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7033 |   $EGREP "clock_t" >/dev/null 2>&1; then : | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 7034 |   was_it_defined=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7035 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7036 |  | 
 | 7037 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7038 | $as_echo "#define clock_t long" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7039 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 7040 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7041 | fi | 
| Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 7042 | rm -f conftest* | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7043 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7044 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5 | 
 | 7045 | $as_echo "$was_it_defined" >&6; } | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 7046 |  | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7047 | # Check whether using makedev requires defining _OSF_SOURCE | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7048 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for makedev" >&5 | 
 | 7049 | $as_echo_n "checking for makedev... " >&6; } | 
 | 7050 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7051 | /* end confdefs.h.  */ | 
| Jesus Cea | 616de77 | 2010-04-28 10:32:30 +0000 | [diff] [blame] | 7052 |  | 
 | 7053 | #if defined(MAJOR_IN_MKDEV) | 
 | 7054 | #include <sys/mkdev.h> | 
 | 7055 | #elif defined(MAJOR_IN_SYSMACROS) | 
 | 7056 | #include <sys/sysmacros.h> | 
 | 7057 | #else | 
| Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 7058 | #include <sys/types.h> | 
| Jesus Cea | 616de77 | 2010-04-28 10:32:30 +0000 | [diff] [blame] | 7059 | #endif | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7060 | int | 
 | 7061 | main () | 
 | 7062 | { | 
 | 7063 |  makedev(0, 0) | 
 | 7064 |   ; | 
 | 7065 |   return 0; | 
 | 7066 | } | 
 | 7067 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7068 | if ac_fn_c_try_link "$LINENO"; then : | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7069 |   ac_cv_has_makedev=yes | 
 | 7070 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7071 |   ac_cv_has_makedev=no | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7072 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7073 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 7074 |     conftest$ac_exeext conftest.$ac_ext | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7075 | if test "$ac_cv_has_makedev" = "no"; then | 
 | 7076 |     # we didn't link, try if _OSF_SOURCE will allow us to link | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7077 |     cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7078 | /* end confdefs.h.  */ | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7079 |  | 
| Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 7080 | #define _OSF_SOURCE 1 | 
 | 7081 | #include <sys/types.h> | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7082 |  | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7083 | int | 
 | 7084 | main () | 
 | 7085 | { | 
 | 7086 |  makedev(0, 0) | 
 | 7087 |   ; | 
 | 7088 |   return 0; | 
 | 7089 | } | 
 | 7090 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7091 | if ac_fn_c_try_link "$LINENO"; then : | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7092 |   ac_cv_has_makedev=yes | 
 | 7093 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7094 |   ac_cv_has_makedev=no | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7095 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7096 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 7097 |     conftest$ac_exeext conftest.$ac_ext | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7098 |     if test "$ac_cv_has_makedev" = "yes"; then | 
 | 7099 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7100 | $as_echo "#define _OSF_SOURCE 1" >>confdefs.h | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7101 |  | 
 | 7102 |     fi | 
 | 7103 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_makedev" >&5 | 
 | 7105 | $as_echo "$ac_cv_has_makedev" >&6; } | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7106 | if test "$ac_cv_has_makedev" = "yes"; then | 
 | 7107 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7108 | $as_echo "#define HAVE_MAKEDEV 1" >>confdefs.h | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7109 |  | 
 | 7110 | fi | 
 | 7111 |  | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 7112 | # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in | 
 | 7113 | # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are | 
 | 7114 | # defined, but the compiler does not support pragma redefine_extname, | 
 | 7115 | # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit | 
 | 7116 | # structures (such as rlimit64) without declaring them. As a | 
 | 7117 | # work-around, disable LFS on such configurations | 
 | 7118 |  | 
 | 7119 | use_lfs=yes | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7120 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking Solaris LFS bug" >&5 | 
 | 7121 | $as_echo_n "checking Solaris LFS bug... " >&6; } | 
 | 7122 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7123 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 7124 |  | 
 | 7125 | #define _LARGEFILE_SOURCE 1 | 
 | 7126 | #define _FILE_OFFSET_BITS 64 | 
 | 7127 | #include <sys/resource.h> | 
 | 7128 |  | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 7129 | int | 
 | 7130 | main () | 
 | 7131 | { | 
 | 7132 | struct rlimit foo; | 
 | 7133 |   ; | 
 | 7134 |   return 0; | 
 | 7135 | } | 
 | 7136 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7137 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 7138 |   sol_lfs_bug=no | 
 | 7139 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7140 |   sol_lfs_bug=yes | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 7141 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7142 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sol_lfs_bug" >&5 | 
 | 7144 | $as_echo "$sol_lfs_bug" >&6; } | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 7145 | if test "$sol_lfs_bug" = "yes"; then | 
 | 7146 |   use_lfs=no | 
 | 7147 | fi | 
 | 7148 |  | 
 | 7149 | if test "$use_lfs" = "yes"; then | 
| Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 7150 | # Two defines needed to enable largefile support on various platforms | 
 | 7151 | # These may affect some typedefs | 
| Georg Brandl | 94800df | 2011-02-25 11:09:02 +0000 | [diff] [blame] | 7152 | case $ac_sys_system/$ac_sys_release in | 
 | 7153 | AIX*) | 
 | 7154 |  | 
 | 7155 | $as_echo "#define _LARGE_FILES 1" >>confdefs.h | 
 | 7156 |  | 
 | 7157 |     ;; | 
 | 7158 | esac | 
| Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 7159 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7160 | $as_echo "#define _LARGEFILE_SOURCE 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7161 |  | 
 | 7162 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7163 | $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h | 
| Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 7164 |  | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 7165 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7166 |  | 
| Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 7167 | # Add some code to confdefs.h so that the test for off_t works on SCO | 
 | 7168 | cat >> confdefs.h <<\EOF | 
 | 7169 | #if defined(SCO_DS) | 
 | 7170 | #undef _OFF_T | 
 | 7171 | #endif | 
 | 7172 | EOF | 
 | 7173 |  | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7174 | # Type availability checks | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7175 | ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7176 | if test "x$ac_cv_type_mode_t" = xyes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7177 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7178 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7179 |  | 
 | 7180 | cat >>confdefs.h <<_ACEOF | 
 | 7181 | #define mode_t int | 
 | 7182 | _ACEOF | 
 | 7183 |  | 
 | 7184 | fi | 
 | 7185 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7186 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7187 | if test "x$ac_cv_type_off_t" = xyes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7188 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7189 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7190 |  | 
 | 7191 | cat >>confdefs.h <<_ACEOF | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7192 | #define off_t long int | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7193 | _ACEOF | 
 | 7194 |  | 
 | 7195 | fi | 
 | 7196 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7197 | ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7198 | if test "x$ac_cv_type_pid_t" = xyes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7199 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7200 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7201 |  | 
 | 7202 | cat >>confdefs.h <<_ACEOF | 
 | 7203 | #define pid_t int | 
 | 7204 | _ACEOF | 
 | 7205 |  | 
 | 7206 | fi | 
 | 7207 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 7208 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7209 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | cbf54b1 | 2010-05-08 11:04:18 +0000 | [diff] [blame] | 7210 | #define RETSIGTYPE void | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7211 | _ACEOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7212 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7213 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7214 | if test "x$ac_cv_type_size_t" = xyes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7215 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7216 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7217 |  | 
 | 7218 | cat >>confdefs.h <<_ACEOF | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7219 | #define size_t unsigned int | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7220 | _ACEOF | 
 | 7221 |  | 
 | 7222 | fi | 
 | 7223 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7224 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 | 
 | 7225 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7226 | if ${ac_cv_type_uid_t+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7227 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7228 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7229 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7230 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7231 | #include <sys/types.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7232 |  | 
 | 7233 | _ACEOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7234 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7235 |   $EGREP "uid_t" >/dev/null 2>&1; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7236 |   ac_cv_type_uid_t=yes | 
 | 7237 | else | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7238 |   ac_cv_type_uid_t=no | 
 | 7239 | fi | 
| Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 7240 | rm -f conftest* | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7241 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7242 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 | 
 | 7244 | $as_echo "$ac_cv_type_uid_t" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7245 | if test $ac_cv_type_uid_t = no; then | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7246 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7247 | $as_echo "#define uid_t int" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7248 |  | 
 | 7249 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7250 | $as_echo "#define gid_t int" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7251 |  | 
 | 7252 | fi | 
 | 7253 |  | 
| Mark Dickinson | 17c50cd | 2012-12-02 13:13:56 +0000 | [diff] [blame] | 7254 |  | 
 | 7255 | # There are two separate checks for each of the exact-width integer types we | 
 | 7256 | # need.  First we check whether the type is available using the usual | 
 | 7257 | # AC_CHECK_TYPE macro with the default includes (which includes <inttypes.h> | 
 | 7258 | # and <stdint.h> where available).  We then also use the special type checks of | 
 | 7259 | # the form AC_TYPE_UINT32_T, which in the case that uint32_t is not available | 
 | 7260 | # directly, #define's uint32_t to be a suitable type. | 
 | 7261 |  | 
 | 7262 | ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default" | 
 | 7263 | if test "x$ac_cv_type_uint32_t" = xyes; then : | 
 | 7264 |  | 
 | 7265 | $as_echo "#define HAVE_UINT32_T 1" >>confdefs.h | 
 | 7266 |  | 
 | 7267 | fi | 
 | 7268 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7269 | ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" | 
 | 7270 | case $ac_cv_c_uint32_t in #( | 
| Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7271 |   no|yes) ;; #( | 
 | 7272 |   *) | 
 | 7273 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7274 | $as_echo "#define _UINT32_T 1" >>confdefs.h | 
| Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7275 |  | 
 | 7276 |  | 
 | 7277 | cat >>confdefs.h <<_ACEOF | 
 | 7278 | #define uint32_t $ac_cv_c_uint32_t | 
 | 7279 | _ACEOF | 
 | 7280 | ;; | 
 | 7281 |   esac | 
 | 7282 |  | 
| Mark Dickinson | 17c50cd | 2012-12-02 13:13:56 +0000 | [diff] [blame] | 7283 |  | 
 | 7284 | ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default" | 
 | 7285 | if test "x$ac_cv_type_uint64_t" = xyes; then : | 
 | 7286 |  | 
 | 7287 | $as_echo "#define HAVE_UINT64_T 1" >>confdefs.h | 
 | 7288 |  | 
 | 7289 | fi | 
 | 7290 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7291 | ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t" | 
 | 7292 | case $ac_cv_c_uint64_t in #( | 
| Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7293 |   no|yes) ;; #( | 
 | 7294 |   *) | 
 | 7295 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7296 | $as_echo "#define _UINT64_T 1" >>confdefs.h | 
| Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7297 |  | 
 | 7298 |  | 
 | 7299 | cat >>confdefs.h <<_ACEOF | 
 | 7300 | #define uint64_t $ac_cv_c_uint64_t | 
 | 7301 | _ACEOF | 
 | 7302 | ;; | 
 | 7303 |   esac | 
 | 7304 |  | 
| Mark Dickinson | 17c50cd | 2012-12-02 13:13:56 +0000 | [diff] [blame] | 7305 |  | 
 | 7306 | ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default" | 
 | 7307 | if test "x$ac_cv_type_int32_t" = xyes; then : | 
 | 7308 |  | 
 | 7309 | $as_echo "#define HAVE_INT32_T 1" >>confdefs.h | 
 | 7310 |  | 
 | 7311 | fi | 
 | 7312 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7313 | ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" | 
 | 7314 | case $ac_cv_c_int32_t in #( | 
| Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7315 |   no|yes) ;; #( | 
 | 7316 |   *) | 
 | 7317 |  | 
 | 7318 | cat >>confdefs.h <<_ACEOF | 
 | 7319 | #define int32_t $ac_cv_c_int32_t | 
 | 7320 | _ACEOF | 
 | 7321 | ;; | 
| Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7322 | esac | 
 | 7323 |  | 
| Mark Dickinson | 17c50cd | 2012-12-02 13:13:56 +0000 | [diff] [blame] | 7324 |  | 
 | 7325 | ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default" | 
 | 7326 | if test "x$ac_cv_type_int64_t" = xyes; then : | 
 | 7327 |  | 
 | 7328 | $as_echo "#define HAVE_INT64_T 1" >>confdefs.h | 
 | 7329 |  | 
 | 7330 | fi | 
 | 7331 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7332 | ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t" | 
 | 7333 | case $ac_cv_c_int64_t in #( | 
| Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7334 |   no|yes) ;; #( | 
 | 7335 |   *) | 
 | 7336 |  | 
 | 7337 | cat >>confdefs.h <<_ACEOF | 
 | 7338 | #define int64_t $ac_cv_c_int64_t | 
 | 7339 | _ACEOF | 
 | 7340 | ;; | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7341 | esac | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7342 |  | 
| Mark Dickinson | 17c50cd | 2012-12-02 13:13:56 +0000 | [diff] [blame] | 7343 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7344 | ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7345 | if test "x$ac_cv_type_ssize_t" = xyes; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7346 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7347 | $as_echo "#define HAVE_SSIZE_T 1" >>confdefs.h | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7348 |  | 
 | 7349 | fi | 
 | 7350 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 7351 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7352 | # Sizes of various common basic types | 
| Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 7353 | # ANSI C requires sizeof(char) == 1, so no need to check it | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7354 | # The cast to long int works around a bug in the HP C Compiler | 
 | 7355 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 7356 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 7357 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7358 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 | 
 | 7359 | $as_echo_n "checking size of int... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7360 | if ${ac_cv_sizeof_int+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7361 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7362 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7363 |   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] | 7364 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7365 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7366 |   if test "$ac_cv_type_int" = yes; then | 
 | 7367 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 7368 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7369 | as_fn_error 77 "cannot compute sizeof (int) | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7370 | See \`config.log' for more details" "$LINENO" 5; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7371 |    else | 
 | 7372 |      ac_cv_sizeof_int=0 | 
 | 7373 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7374 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7375 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7376 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 | 
 | 7378 | $as_echo "$ac_cv_sizeof_int" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7379 |  | 
 | 7380 |  | 
 | 7381 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7382 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7383 | #define SIZEOF_INT $ac_cv_sizeof_int | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7384 | _ACEOF | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7385 |  | 
 | 7386 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7387 | # The cast to long int works around a bug in the HP C Compiler | 
 | 7388 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 7389 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 7390 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7391 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 | 
 | 7392 | $as_echo_n "checking size of long... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7393 | if ${ac_cv_sizeof_long+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7394 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7395 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7396 |   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] | 7397 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7398 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7399 |   if test "$ac_cv_type_long" = yes; then | 
 | 7400 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 7401 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7402 | as_fn_error 77 "cannot compute sizeof (long) | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7403 | See \`config.log' for more details" "$LINENO" 5; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7404 |    else | 
 | 7405 |      ac_cv_sizeof_long=0 | 
 | 7406 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7407 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7408 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7409 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7410 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 | 
 | 7411 | $as_echo "$ac_cv_sizeof_long" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7412 |  | 
 | 7413 |  | 
 | 7414 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7415 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7416 | #define SIZEOF_LONG $ac_cv_sizeof_long | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7417 | _ACEOF | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7418 |  | 
 | 7419 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7420 | # The cast to long int works around a bug in the HP C Compiler | 
 | 7421 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 7422 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 7423 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7424 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 | 
 | 7425 | $as_echo_n "checking size of void *... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7426 | if ${ac_cv_sizeof_void_p+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7427 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7428 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7429 |   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] | 7430 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7431 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7432 |   if test "$ac_cv_type_void_p" = yes; then | 
 | 7433 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 7434 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7435 | as_fn_error 77 "cannot compute sizeof (void *) | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7436 | See \`config.log' for more details" "$LINENO" 5; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7437 |    else | 
 | 7438 |      ac_cv_sizeof_void_p=0 | 
 | 7439 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7440 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7441 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7442 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 | 
 | 7444 | $as_echo "$ac_cv_sizeof_void_p" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7445 |  | 
 | 7446 |  | 
 | 7447 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7448 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7449 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7450 | _ACEOF | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7451 |  | 
 | 7452 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7453 | # The cast to long int works around a bug in the HP C Compiler | 
 | 7454 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 7455 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 7456 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7457 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 | 
 | 7458 | $as_echo_n "checking size of short... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7459 | if ${ac_cv_sizeof_short+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7460 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7461 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7462 |   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] | 7463 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7464 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7465 |   if test "$ac_cv_type_short" = yes; then | 
 | 7466 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 7467 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7468 | as_fn_error 77 "cannot compute sizeof (short) | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7469 | See \`config.log' for more details" "$LINENO" 5; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7470 |    else | 
 | 7471 |      ac_cv_sizeof_short=0 | 
 | 7472 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7473 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7474 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7475 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 | 
 | 7477 | $as_echo "$ac_cv_sizeof_short" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7478 |  | 
 | 7479 |  | 
 | 7480 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7481 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7482 | #define SIZEOF_SHORT $ac_cv_sizeof_short | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7483 | _ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7484 |  | 
 | 7485 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7486 | # The cast to long int works around a bug in the HP C Compiler | 
 | 7487 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 7488 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 7489 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7490 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5 | 
 | 7491 | $as_echo_n "checking size of float... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7492 | if ${ac_cv_sizeof_float+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7493 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7494 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7495 |   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] | 7496 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7497 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7498 |   if test "$ac_cv_type_float" = yes; then | 
 | 7499 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 7500 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7501 | as_fn_error 77 "cannot compute sizeof (float) | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7502 | See \`config.log' for more details" "$LINENO" 5; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7503 |    else | 
 | 7504 |      ac_cv_sizeof_float=0 | 
 | 7505 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7506 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7507 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7508 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5 | 
 | 7510 | $as_echo "$ac_cv_sizeof_float" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7511 |  | 
 | 7512 |  | 
 | 7513 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7514 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7515 | #define SIZEOF_FLOAT $ac_cv_sizeof_float | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7516 | _ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7517 |  | 
 | 7518 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7519 | # The cast to long int works around a bug in the HP C Compiler | 
 | 7520 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 7521 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 7522 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7523 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5 | 
 | 7524 | $as_echo_n "checking size of double... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7525 | if ${ac_cv_sizeof_double+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7526 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7527 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7528 |   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] | 7529 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7530 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7531 |   if test "$ac_cv_type_double" = yes; then | 
 | 7532 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 7533 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7534 | as_fn_error 77 "cannot compute sizeof (double) | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7535 | See \`config.log' for more details" "$LINENO" 5; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7536 |    else | 
 | 7537 |      ac_cv_sizeof_double=0 | 
 | 7538 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7539 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7540 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7541 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5 | 
 | 7543 | $as_echo "$ac_cv_sizeof_double" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7544 |  | 
 | 7545 |  | 
 | 7546 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7547 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7548 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7549 | _ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7550 |  | 
 | 7551 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7552 | # The cast to long int works around a bug in the HP C Compiler | 
 | 7553 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 7554 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 7555 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7556 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of fpos_t" >&5 | 
 | 7557 | $as_echo_n "checking size of fpos_t... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7558 | if ${ac_cv_sizeof_fpos_t+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7559 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7560 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7561 |   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] | 7562 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7563 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7564 |   if test "$ac_cv_type_fpos_t" = yes; then | 
 | 7565 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 7566 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7567 | as_fn_error 77 "cannot compute sizeof (fpos_t) | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7568 | See \`config.log' for more details" "$LINENO" 5; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7569 |    else | 
 | 7570 |      ac_cv_sizeof_fpos_t=0 | 
 | 7571 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7572 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7573 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7574 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_fpos_t" >&5 | 
 | 7576 | $as_echo "$ac_cv_sizeof_fpos_t" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7577 |  | 
 | 7578 |  | 
 | 7579 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7580 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7581 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7582 | _ACEOF | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7583 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7584 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7585 | # The cast to long int works around a bug in the HP C Compiler | 
 | 7586 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 7587 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 7588 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7589 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 | 
 | 7590 | $as_echo_n "checking size of size_t... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7591 | if ${ac_cv_sizeof_size_t+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7592 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7593 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7594 |   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] | 7595 |  | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7596 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7597 |   if test "$ac_cv_type_size_t" = yes; then | 
 | 7598 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 7599 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7600 | as_fn_error 77 "cannot compute sizeof (size_t) | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7601 | See \`config.log' for more details" "$LINENO" 5; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7602 |    else | 
 | 7603 |      ac_cv_sizeof_size_t=0 | 
 | 7604 |    fi | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7605 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7606 |  | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7607 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 | 
 | 7609 | $as_echo "$ac_cv_sizeof_size_t" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7610 |  | 
 | 7611 |  | 
 | 7612 |  | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7613 | cat >>confdefs.h <<_ACEOF | 
 | 7614 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t | 
 | 7615 | _ACEOF | 
 | 7616 |  | 
 | 7617 |  | 
| Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 7618 | # The cast to long int works around a bug in the HP C Compiler | 
 | 7619 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 7620 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 7621 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7622 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pid_t" >&5 | 
 | 7623 | $as_echo_n "checking size of pid_t... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7624 | if ${ac_cv_sizeof_pid_t+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7625 |   $as_echo_n "(cached) " >&6 | 
| Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 7626 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7627 |   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pid_t))" "ac_cv_sizeof_pid_t"        "$ac_includes_default"; then : | 
| Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 7628 |  | 
| Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 7629 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7630 |   if test "$ac_cv_type_pid_t" = yes; then | 
 | 7631 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 7632 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7633 | as_fn_error 77 "cannot compute sizeof (pid_t) | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7634 | See \`config.log' for more details" "$LINENO" 5; } | 
| Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 7635 |    else | 
 | 7636 |      ac_cv_sizeof_pid_t=0 | 
 | 7637 |    fi | 
 | 7638 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7639 |  | 
| Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 7640 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pid_t" >&5 | 
 | 7642 | $as_echo "$ac_cv_sizeof_pid_t" >&6; } | 
| Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 7643 |  | 
 | 7644 |  | 
 | 7645 |  | 
 | 7646 | cat >>confdefs.h <<_ACEOF | 
 | 7647 | #define SIZEOF_PID_T $ac_cv_sizeof_pid_t | 
 | 7648 | _ACEOF | 
 | 7649 |  | 
 | 7650 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7651 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7652 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support" >&5 | 
 | 7653 | $as_echo_n "checking for long long support... " >&6; } | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7654 | have_long_long=no | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7655 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7656 | /* end confdefs.h.  */ | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7657 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7658 | int | 
 | 7659 | main () | 
 | 7660 | { | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7661 | long long x; x = (long long)0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7662 |   ; | 
 | 7663 |   return 0; | 
 | 7664 | } | 
 | 7665 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7666 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7667 |  | 
 | 7668 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7669 | $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7670 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 7671 |   have_long_long=yes | 
 | 7672 |  | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7673 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7674 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_long_long" >&5 | 
 | 7676 | $as_echo "$have_long_long" >&6; } | 
| Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 7677 | if test "$have_long_long" = yes ; then | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7678 | # The cast to long int works around a bug in the HP C Compiler | 
 | 7679 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 7680 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 7681 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7682 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 | 
 | 7683 | $as_echo_n "checking size of long long... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7684 | if ${ac_cv_sizeof_long_long+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7685 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7686 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7687 |   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] | 7688 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7689 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7690 |   if test "$ac_cv_type_long_long" = yes; then | 
 | 7691 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 7692 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7693 | as_fn_error 77 "cannot compute sizeof (long long) | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7694 | See \`config.log' for more details" "$LINENO" 5; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7695 |    else | 
 | 7696 |      ac_cv_sizeof_long_long=0 | 
 | 7697 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7698 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7699 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7700 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 | 
 | 7702 | $as_echo "$ac_cv_sizeof_long_long" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7703 |  | 
 | 7704 |  | 
 | 7705 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7706 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7707 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7708 | _ACEOF | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7709 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7710 |  | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7711 | fi | 
 | 7712 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7713 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support" >&5 | 
 | 7714 | $as_echo_n "checking for long double support... " >&6; } | 
| Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7715 | have_long_double=no | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7716 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7717 | /* end confdefs.h.  */ | 
 | 7718 |  | 
 | 7719 | int | 
 | 7720 | main () | 
 | 7721 | { | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 7722 | long double x; x = (long double)0; | 
| Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7723 |   ; | 
 | 7724 |   return 0; | 
 | 7725 | } | 
 | 7726 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7727 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7728 |  | 
 | 7729 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7730 | $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h | 
| Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7731 |  | 
 | 7732 |   have_long_double=yes | 
 | 7733 |  | 
| Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7734 | fi | 
| Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7735 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_long_double" >&5 | 
 | 7737 | $as_echo "$have_long_double" >&6; } | 
| Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7738 | if test "$have_long_double" = yes ; then | 
| Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7739 | # The cast to long int works around a bug in the HP C Compiler | 
 | 7740 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 7741 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 7742 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7743 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5 | 
 | 7744 | $as_echo_n "checking size of long double... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7745 | if ${ac_cv_sizeof_long_double+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7746 |   $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7747 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7748 |   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double"        "$ac_includes_default"; then : | 
| Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7749 |  | 
| Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7750 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7751 |   if test "$ac_cv_type_long_double" = yes; then | 
 | 7752 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 7753 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7754 | as_fn_error 77 "cannot compute sizeof (long double) | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7755 | See \`config.log' for more details" "$LINENO" 5; } | 
| Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7756 |    else | 
 | 7757 |      ac_cv_sizeof_long_double=0 | 
 | 7758 |    fi | 
 | 7759 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7760 |  | 
| Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7761 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5 | 
 | 7763 | $as_echo "$ac_cv_sizeof_long_double" >&6; } | 
| Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7764 |  | 
 | 7765 |  | 
 | 7766 |  | 
 | 7767 | cat >>confdefs.h <<_ACEOF | 
 | 7768 | #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double | 
 | 7769 | _ACEOF | 
 | 7770 |  | 
 | 7771 |  | 
 | 7772 | fi | 
 | 7773 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7774 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Bool support" >&5 | 
 | 7775 | $as_echo_n "checking for _Bool support... " >&6; } | 
| Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7776 | have_c99_bool=no | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7777 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7778 | /* end confdefs.h.  */ | 
 | 7779 |  | 
 | 7780 | int | 
 | 7781 | main () | 
 | 7782 | { | 
 | 7783 | _Bool x; x = (_Bool)0; | 
 | 7784 |   ; | 
 | 7785 |   return 0; | 
 | 7786 | } | 
 | 7787 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7788 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7789 |  | 
 | 7790 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7791 | $as_echo "#define HAVE_C99_BOOL 1" >>confdefs.h | 
| Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7792 |  | 
 | 7793 |   have_c99_bool=yes | 
 | 7794 |  | 
| Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7795 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7796 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_c99_bool" >&5 | 
 | 7798 | $as_echo "$have_c99_bool" >&6; } | 
| Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7799 | if test "$have_c99_bool" = yes ; then | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7800 | # The cast to long int works around a bug in the HP C Compiler | 
 | 7801 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 7802 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 7803 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7804 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of _Bool" >&5 | 
 | 7805 | $as_echo_n "checking size of _Bool... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7806 | if ${ac_cv_sizeof__Bool+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7807 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7808 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7809 |   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (_Bool))" "ac_cv_sizeof__Bool"        "$ac_includes_default"; then : | 
| Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7810 |  | 
| Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7811 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7812 |   if test "$ac_cv_type__Bool" = yes; then | 
 | 7813 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 7814 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7815 | as_fn_error 77 "cannot compute sizeof (_Bool) | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7816 | See \`config.log' for more details" "$LINENO" 5; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7817 |    else | 
 | 7818 |      ac_cv_sizeof__Bool=0 | 
 | 7819 |    fi | 
| Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7820 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7821 |  | 
| Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7822 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof__Bool" >&5 | 
 | 7824 | $as_echo "$ac_cv_sizeof__Bool" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7825 |  | 
 | 7826 |  | 
 | 7827 |  | 
| Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7828 | cat >>confdefs.h <<_ACEOF | 
 | 7829 | #define SIZEOF__BOOL $ac_cv_sizeof__Bool | 
 | 7830 | _ACEOF | 
 | 7831 |  | 
 | 7832 |  | 
 | 7833 | fi | 
 | 7834 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7835 | ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#ifdef HAVE_STDINT_H | 
| Martin v. Löwis | 40e9aed | 2006-10-02 15:20:37 +0000 | [diff] [blame] | 7836 |         #include <stdint.h> | 
 | 7837 |         #endif | 
| Antoine Pitrou | 7be5a65 | 2010-10-10 08:14:41 +0000 | [diff] [blame] | 7838 |         #ifdef HAVE_INTTYPES_H | 
 | 7839 |         #include <inttypes.h> | 
 | 7840 |         #endif | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7841 | " | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7842 | if test "x$ac_cv_type_uintptr_t" = xyes; then : | 
| Martin v. Löwis | ebe2670 | 2006-10-02 14:55:51 +0000 | [diff] [blame] | 7843 |  | 
 | 7844 | cat >>confdefs.h <<_ACEOF | 
 | 7845 | #define HAVE_UINTPTR_T 1 | 
 | 7846 | _ACEOF | 
 | 7847 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7848 | # The cast to long int works around a bug in the HP C Compiler | 
 | 7849 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 7850 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 7851 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7852 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uintptr_t" >&5 | 
 | 7853 | $as_echo_n "checking size of uintptr_t... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7854 | if ${ac_cv_sizeof_uintptr_t+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7855 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7856 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7857 |   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] | 7858 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7859 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7860 |   if test "$ac_cv_type_uintptr_t" = yes; then | 
 | 7861 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 7862 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7863 | as_fn_error 77 "cannot compute sizeof (uintptr_t) | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7864 | See \`config.log' for more details" "$LINENO" 5; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7865 |    else | 
 | 7866 |      ac_cv_sizeof_uintptr_t=0 | 
 | 7867 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7868 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7869 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7870 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uintptr_t" >&5 | 
 | 7872 | $as_echo "$ac_cv_sizeof_uintptr_t" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7873 |  | 
 | 7874 |  | 
 | 7875 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7876 | cat >>confdefs.h <<_ACEOF | 
| Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 7877 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7878 | _ACEOF | 
| Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 7879 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7880 |  | 
| Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 7881 | fi | 
 | 7882 |  | 
| Martin v. Löwis | ebe2670 | 2006-10-02 14:55:51 +0000 | [diff] [blame] | 7883 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7884 | # The cast to long int works around a bug in the HP C Compiler | 
 | 7885 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 7886 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 7887 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7888 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 | 
 | 7889 | $as_echo_n "checking size of off_t... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7890 | if ${ac_cv_sizeof_off_t+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7891 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7892 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7893 |   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        " | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7894 | #ifdef HAVE_SYS_TYPES_H | 
 | 7895 | #include <sys/types.h> | 
 | 7896 | #endif | 
 | 7897 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7898 | "; then : | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7899 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7900 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7901 |   if test "$ac_cv_type_off_t" = yes; then | 
 | 7902 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 7903 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7904 | as_fn_error 77 "cannot compute sizeof (off_t) | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7905 | See \`config.log' for more details" "$LINENO" 5; } | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7906 |    else | 
 | 7907 |      ac_cv_sizeof_off_t=0 | 
 | 7908 |    fi | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7909 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7910 |  | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7911 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 | 
 | 7913 | $as_echo "$ac_cv_sizeof_off_t" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7914 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7915 |  | 
 | 7916 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7917 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7918 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7919 | _ACEOF | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7920 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7921 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7922 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7923 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable large file support" >&5 | 
 | 7924 | $as_echo_n "checking whether to enable large file support... " >&6; } | 
| Mark Dickinson | 0ef0b91 | 2009-12-31 21:11:48 +0000 | [diff] [blame] | 7925 | if test "$have_long_long" = yes | 
 | 7926 | then | 
 | 7927 | 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] | 7928 | 	"$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] | 7929 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7930 | $as_echo "#define HAVE_LARGEFILE_SUPPORT 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7931 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7932 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 7933 | $as_echo "yes" >&6; } | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7934 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7935 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 7936 | $as_echo "no" >&6; } | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7937 | fi | 
| Mark Dickinson | 0ef0b91 | 2009-12-31 21:11:48 +0000 | [diff] [blame] | 7938 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7939 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 7940 | $as_echo "no" >&6; } | 
| Mark Dickinson | 0ef0b91 | 2009-12-31 21:11:48 +0000 | [diff] [blame] | 7941 | fi | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7942 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7943 | # The cast to long int works around a bug in the HP C Compiler | 
 | 7944 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 7945 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 7946 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7947 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 | 
 | 7948 | $as_echo_n "checking size of time_t... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7949 | if ${ac_cv_sizeof_time_t+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7950 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7951 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7952 |   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        " | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7953 | #ifdef HAVE_SYS_TYPES_H | 
 | 7954 | #include <sys/types.h> | 
 | 7955 | #endif | 
 | 7956 | #ifdef HAVE_TIME_H | 
 | 7957 | #include <time.h> | 
 | 7958 | #endif | 
 | 7959 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7960 | "; then : | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7961 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7962 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7963 |   if test "$ac_cv_type_time_t" = yes; then | 
 | 7964 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 7965 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7966 | as_fn_error 77 "cannot compute sizeof (time_t) | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 7967 | See \`config.log' for more details" "$LINENO" 5; } | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7968 |    else | 
 | 7969 |      ac_cv_sizeof_time_t=0 | 
 | 7970 |    fi | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7971 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7972 |  | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7973 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 | 
 | 7975 | $as_echo "$ac_cv_sizeof_time_t" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7976 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7977 |  | 
 | 7978 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7979 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7980 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7981 | _ACEOF | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7982 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7983 |  | 
 | 7984 |  | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7985 | # if have pthread_t then define SIZEOF_PTHREAD_T | 
| Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 7986 | ac_save_cc="$CC" | 
 | 7987 | if test "$ac_cv_kpthread" = "yes" | 
 | 7988 | then CC="$CC -Kpthread" | 
| Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 7989 | elif test "$ac_cv_kthread" = "yes" | 
 | 7990 | then CC="$CC -Kthread" | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 7991 | elif test "$ac_cv_pthread" = "yes" | 
 | 7992 | then CC="$CC -pthread" | 
| Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 7993 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7994 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_t" >&5 | 
 | 7995 | $as_echo_n "checking for pthread_t... " >&6; } | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7996 | have_pthread_t=no | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7997 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7998 | /* end confdefs.h.  */ | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 7999 |  | 
 | 8000 |   #include <pthread.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8001 | int | 
 | 8002 | main () | 
 | 8003 | { | 
| Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 8004 | pthread_t x; x = *(pthread_t*)0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8005 |   ; | 
 | 8006 |   return 0; | 
 | 8007 | } | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 8008 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8009 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8010 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8011 |   have_pthread_t=yes | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8012 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8013 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_t" >&5 | 
 | 8015 | $as_echo "$have_pthread_t" >&6; } | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8016 | if test "$have_pthread_t" = yes ; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8017 |   # The cast to long int works around a bug in the HP C Compiler | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 8018 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 8019 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 8020 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8021 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5 | 
 | 8022 | $as_echo_n "checking size of pthread_t... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8023 | if ${ac_cv_sizeof_pthread_t+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8024 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 8025 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8026 |   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t"        " | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 8027 | #ifdef HAVE_PTHREAD_H | 
 | 8028 | #include <pthread.h> | 
 | 8029 | #endif | 
 | 8030 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8031 | "; then : | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 8032 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 8033 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8034 |   if test "$ac_cv_type_pthread_t" = yes; then | 
 | 8035 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 8036 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 8037 | as_fn_error 77 "cannot compute sizeof (pthread_t) | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8038 | See \`config.log' for more details" "$LINENO" 5; } | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 8039 |    else | 
 | 8040 |      ac_cv_sizeof_pthread_t=0 | 
 | 8041 |    fi | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8042 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8043 |  | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8044 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5 | 
 | 8046 | $as_echo "$ac_cv_sizeof_pthread_t" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8047 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 8048 |  | 
 | 8049 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8050 | cat >>confdefs.h <<_ACEOF | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8051 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8052 | _ACEOF | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8053 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 8054 |  | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8055 | fi | 
| Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 8056 | CC="$ac_save_cc" | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8057 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8058 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-toolbox-glue" >&5 | 
 | 8059 | $as_echo_n "checking for --enable-toolbox-glue... " >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8060 | # Check whether --enable-toolbox-glue was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8061 | if test "${enable_toolbox_glue+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8062 |   enableval=$enable_toolbox_glue; | 
 | 8063 | fi | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8064 |  | 
 | 8065 |  | 
 | 8066 | if test -z "$enable_toolbox_glue" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8067 | then | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8068 | 	case $ac_sys_system/$ac_sys_release in | 
 | 8069 | 	Darwin/*) | 
 | 8070 | 		enable_toolbox_glue="yes";; | 
 | 8071 | 	*) | 
 | 8072 | 		enable_toolbox_glue="no";; | 
 | 8073 | 	esac | 
 | 8074 | fi | 
 | 8075 | case "$enable_toolbox_glue" in | 
 | 8076 | yes) | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8077 | 	extra_machdep_objs="Python/mactoolboxglue.o" | 
| Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 8078 | 	extra_undefs="-u _PyMac_Error" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8079 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8080 | $as_echo "#define USE_TOOLBOX_OBJECT_GLUE 1" >>confdefs.h | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8081 |  | 
 | 8082 | 	;; | 
 | 8083 | *) | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8084 | 	extra_machdep_objs="" | 
| Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 8085 | 	extra_undefs="" | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8086 | 	;; | 
 | 8087 | esac | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_toolbox_glue" >&5 | 
 | 8089 | $as_echo "$enable_toolbox_glue" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8090 |  | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8091 |  | 
| Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 8092 |  | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8093 | case $ac_sys_system/$ac_sys_release in | 
| Anthony Baxter | 8220174 | 2006-04-09 15:07:40 +0000 | [diff] [blame] | 8094 |   Darwin/[01567]\..*) | 
| Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 8095 |     OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000" | 
 | 8096 |     ;; | 
 | 8097 |   Darwin/*) | 
 | 8098 |     OTHER_LIBTOOL_OPT="" | 
 | 8099 |     ;; | 
 | 8100 | esac | 
 | 8101 |  | 
 | 8102 |  | 
| Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 8103 |  | 
| Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 8104 | case $ac_sys_system/$ac_sys_release in | 
| Anthony Baxter | 8220174 | 2006-04-09 15:07:40 +0000 | [diff] [blame] | 8105 |   Darwin/[01567]\..*) | 
| Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 8106 |     LIBTOOL_CRUFT="-framework System -lcc_dynamic" | 
 | 8107 |     if test "${enable_universalsdk}"; then | 
 | 8108 | 	    : | 
 | 8109 |     else | 
| Ronald Oussoren | bc0e83c | 2010-02-11 13:26:54 +0000 | [diff] [blame] | 8110 |         LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `/usr/bin/arch`" | 
| Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 8111 |     fi | 
| Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 8112 |     LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 8113 |     LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; | 
| Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 8114 |   Darwin/*) | 
| Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 8115 |     gcc_version=`gcc -dumpversion` | 
| Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 8116 |     if test ${gcc_version} '<' 4.0 | 
 | 8117 |         then | 
 | 8118 |             LIBTOOL_CRUFT="-lcc_dynamic" | 
 | 8119 |         else | 
 | 8120 |             LIBTOOL_CRUFT="" | 
 | 8121 |     fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8122 |     if test "$cross_compiling" = yes; then : | 
| Ronald Oussoren | 23d9253 | 2009-09-07 06:12:00 +0000 | [diff] [blame] | 8123 |   ac_osx_32bit=yes | 
| Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 8124 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8125 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 8126 | /* end confdefs.h.  */ | 
| Ronald Oussoren | 23d9253 | 2009-09-07 06:12:00 +0000 | [diff] [blame] | 8127 |  | 
| Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 8128 |     #include <unistd.h> | 
 | 8129 |     int main(int argc, char*argv[]) | 
 | 8130 |     { | 
 | 8131 |       if (sizeof(long) == 4) { | 
 | 8132 |     	  return 0; | 
 | 8133 |       } else { | 
 | 8134 |       	  return 1; | 
 | 8135 |       } | 
| Ronald Oussoren | 84ddd72 | 2009-09-08 07:17:10 +0000 | [diff] [blame] | 8136 |     } | 
| Ronald Oussoren | 23d9253 | 2009-09-07 06:12:00 +0000 | [diff] [blame] | 8137 |  | 
| Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 8138 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8139 | if ac_fn_c_try_run "$LINENO"; then : | 
| Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 8140 |   ac_osx_32bit=yes | 
 | 8141 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8142 |   ac_osx_32bit=no | 
| Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 8143 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8144 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 8145 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 8146 | fi | 
 | 8147 |  | 
 | 8148 |  | 
| Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 8149 |     if test "${ac_osx_32bit}" = "yes"; then | 
| Ronald Oussoren | bc0e83c | 2010-02-11 13:26:54 +0000 | [diff] [blame] | 8150 |     	case `/usr/bin/arch` in | 
| Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 8151 |     	i386) | 
 | 8152 |     		MACOSX_DEFAULT_ARCH="i386" | 
 | 8153 |     		;; | 
 | 8154 |     	ppc) | 
 | 8155 |     		MACOSX_DEFAULT_ARCH="ppc" | 
 | 8156 |     		;; | 
 | 8157 |     	*) | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 8158 |     		as_fn_error $? "Unexpected output of 'arch' on OSX" "$LINENO" 5 | 
| Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 8159 |     		;; | 
 | 8160 |     	esac | 
 | 8161 |     else | 
| Ronald Oussoren | bc0e83c | 2010-02-11 13:26:54 +0000 | [diff] [blame] | 8162 |     	case `/usr/bin/arch` in | 
| Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 8163 |     	i386) | 
 | 8164 |     		MACOSX_DEFAULT_ARCH="x86_64" | 
 | 8165 |     		;; | 
 | 8166 |     	ppc) | 
 | 8167 |     		MACOSX_DEFAULT_ARCH="ppc64" | 
 | 8168 |     		;; | 
 | 8169 |     	*) | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 8170 |     		as_fn_error $? "Unexpected output of 'arch' on OSX" "$LINENO" 5 | 
| Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 8171 |     		;; | 
 | 8172 |     	esac | 
 | 8173 |  | 
 | 8174 | 	#ARCH_RUN_32BIT="true" | 
 | 8175 |     fi | 
 | 8176 |  | 
 | 8177 |     LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}" | 
| Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 8178 |     LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8179 |     LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8180 | esac | 
 | 8181 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8182 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-framework" >&5 | 
 | 8183 | $as_echo_n "checking for --enable-framework... " >&6; } | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8184 | if test "$enable_framework" | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8185 | then | 
| Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 8186 | 	BASECFLAGS="$BASECFLAGS -fno-common -dynamic" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8187 | 	# -F. is needed to allow linking to the framework while | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8188 | 	# in the build location. | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8189 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8190 | $as_echo "#define WITH_NEXT_FRAMEWORK 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8191 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8192 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 8193 | $as_echo "yes" >&6; } | 
| Ronald Oussoren | 450d561 | 2009-06-08 21:12:41 +0000 | [diff] [blame] | 8194 | 	if test $enable_shared = "yes" | 
 | 8195 | 	then | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 8196 | 		as_fn_error $? "Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead. See Mac/README." "$LINENO" 5 | 
| Ronald Oussoren | 450d561 | 2009-06-08 21:12:41 +0000 | [diff] [blame] | 8197 | 	fi | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8198 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8199 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 8200 | $as_echo "no" >&6; } | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8201 | fi | 
 | 8202 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8203 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dyld" >&5 | 
 | 8204 | $as_echo_n "checking for dyld... " >&6; } | 
| Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 8205 | case $ac_sys_system/$ac_sys_release in | 
 | 8206 |   Darwin/*) | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8207 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8208 | $as_echo "#define WITH_DYLD 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8209 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8210 |   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: always on for Darwin" >&5 | 
 | 8211 | $as_echo "always on for Darwin" >&6; } | 
| Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 8212 |   	;; | 
 | 8213 |   *) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8214 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 8215 | $as_echo "no" >&6; } | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8216 | 	;; | 
| Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 8217 | esac | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8218 |  | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8219 | # Set info about shared libraries. | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8220 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8221 |  | 
 | 8222 |  | 
 | 8223 |  | 
 | 8224 |  | 
| Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 8225 |  | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8226 | # SO is the extension of shared libraries `(including the dot!) | 
| Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 8227 | # -- usually .so, .sl on HP-UX, .dll on Cygwin | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8228 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking SO" >&5 | 
 | 8229 | $as_echo_n "checking SO... " >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8230 | if test -z "$SO" | 
 | 8231 | then | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8232 | 	case $ac_sys_system in | 
| Neal Norwitz | 58e2888 | 2006-05-19 07:00:58 +0000 | [diff] [blame] | 8233 | 	hp*|HP*) | 
 | 8234 | 		case `uname -m` in | 
 | 8235 | 			ia64) SO=.so;; | 
 | 8236 | 	  		*)    SO=.sl;; | 
 | 8237 | 		esac | 
 | 8238 | 		;; | 
| Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 8239 | 	CYGWIN*)   SO=.dll;; | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 8240 | 	*)	   SO=.so;; | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8241 | 	esac | 
| Martin v. Löwis | 368de8f | 2003-06-14 14:46:38 +0000 | [diff] [blame] | 8242 | else | 
 | 8243 | 	# this might also be a termcap variable, see #610332 | 
 | 8244 |         echo | 
 | 8245 |         echo '=====================================================================' | 
 | 8246 |         echo '+                                                                   +' | 
 | 8247 | 	echo '+ WARNING: You have set SO in your environment.                     +' | 
 | 8248 |         echo '+ Do you really mean to change the extension for shared libraries?  +' | 
 | 8249 |         echo '+ Continuing in 10 seconds to let you to ponder.                    +' | 
 | 8250 |         echo '+                                                                   +' | 
 | 8251 |         echo '=====================================================================' | 
 | 8252 | 	sleep 10 | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8253 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SO" >&5 | 
 | 8255 | $as_echo "$SO" >&6; } | 
| Neal Norwitz | 58e2888 | 2006-05-19 07:00:58 +0000 | [diff] [blame] | 8256 |  | 
| Ronald Oussoren | 79f9049 | 2009-01-02 10:44:46 +0000 | [diff] [blame] | 8257 |  | 
| Neal Norwitz | 58e2888 | 2006-05-19 07:00:58 +0000 | [diff] [blame] | 8258 | cat >>confdefs.h <<_ACEOF | 
 | 8259 | #define SHLIB_EXT "$SO" | 
 | 8260 | _ACEOF | 
 | 8261 |  | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8262 | # LDSHARED is the ld *command* used to create shared library | 
| Martin v. Löwis | 12af048 | 2004-01-31 12:34:17 +0000 | [diff] [blame] | 8263 | # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5 | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8264 | # (Shared libraries in this instance are shared modules to be loaded into | 
 | 8265 | # Python, as opposed to building Python itself as a shared library.) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8266 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDSHARED" >&5 | 
 | 8267 | $as_echo_n "checking LDSHARED... " >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8268 | if test -z "$LDSHARED" | 
 | 8269 | then | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8270 | 	case $ac_sys_system/$ac_sys_release in | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 8271 | 	AIX*) | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 8272 | 		BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:\$(srcdir)/Modules/python.exp" | 
| Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 8273 | 		LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp" | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 8274 | 		;; | 
 | 8275 | 	BeOS*) | 
 | 8276 | 		BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY" | 
| Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 8277 | 		LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY" | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 8278 | 		;; | 
| Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 8279 | 	IRIX/5*) LDSHARED="ld -shared";; | 
| Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 8280 | 	IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8281 | 	SunOS/5*) | 
| Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 8282 | 		if test "$GCC" = "yes" ; then | 
 | 8283 | 			LDSHARED='$(CC) -shared' | 
 | 8284 | 			LDCXXSHARED='$(CXX) -shared' | 
 | 8285 | 		else | 
 | 8286 | 			LDSHARED='$(CC) -G' | 
 | 8287 | 			LDCXXSHARED='$(CXX) -G' | 
| Greg Ward | 57c9a66 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 8288 | 		fi ;; | 
| Thomas Heller | dc96a77 | 2008-04-04 10:07:55 +0000 | [diff] [blame] | 8289 | 	hp*|HP*) | 
| Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 8290 | 		if test "$GCC" = "yes" ; then | 
 | 8291 | 			LDSHARED='$(CC) -shared' | 
 | 8292 | 			LDCXXSHARED='$(CXX) -shared' | 
 | 8293 | 		else | 
 | 8294 | 			LDSHARED='ld -b' | 
| Thomas Heller | dc96a77 | 2008-04-04 10:07:55 +0000 | [diff] [blame] | 8295 | 		fi ;; | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 8296 | 	OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";; | 
| Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 8297 | 	Darwin/1.3*) | 
| Stefan Krah | 3a3e203 | 2010-11-28 15:30:05 +0000 | [diff] [blame] | 8298 | 		LDSHARED='$(CC) -bundle' | 
 | 8299 | 		LDCXXSHARED='$(CXX) -bundle' | 
| Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 8300 | 		if test "$enable_framework" ; then | 
 | 8301 | 			# Link against the framework. All externals should be defined. | 
| Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 8302 | 			BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
 | 8303 | 			LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 8304 | 			LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 8305 | 		else | 
 | 8306 | 			# No framework. Ignore undefined symbols, assuming they come from Python | 
| Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 8307 | 			LDSHARED="$LDSHARED -undefined suppress" | 
| Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 8308 | 			LDCXXSHARED="$LDCXXSHARED -undefined suppress" | 
| Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 8309 | 		fi ;; | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 8310 | 	Darwin/1.4*|Darwin/5.*|Darwin/6.*) | 
| Stefan Krah | 3a3e203 | 2010-11-28 15:30:05 +0000 | [diff] [blame] | 8311 | 		LDSHARED='$(CC) -bundle' | 
 | 8312 | 		LDCXXSHARED='$(CXX) -bundle' | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8313 | 		if test "$enable_framework" ; then | 
 | 8314 | 			# Link against the framework. All externals should be defined. | 
| Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 8315 | 			BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
 | 8316 | 			LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 8317 | 			LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8318 | 		else | 
| Michael W. Hudson | 594bc80 | 2002-03-07 09:59:15 +0000 | [diff] [blame] | 8319 | 			# No framework, use the Python app as bundle-loader | 
 | 8320 | 			BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' | 
| Jack Jansen | c28fc37 | 2003-02-25 13:14:43 +0000 | [diff] [blame] | 8321 | 			LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' | 
| Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 8322 | 			LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8323 | 		fi ;; | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 8324 | 	Darwin/*) | 
 | 8325 | 		# Use -undefined dynamic_lookup whenever possible (10.3 and later). | 
 | 8326 | 		# This allows an extension to be used in any Python | 
| Ronald Oussoren | 38f1b98 | 2007-09-02 09:46:07 +0000 | [diff] [blame] | 8327 |  | 
| Ned Deily | c40b903 | 2014-06-25 13:48:46 -0700 | [diff] [blame] | 8328 | 		dep_target_major=`echo ${MACOSX_DEPLOYMENT_TARGET} | \ | 
 | 8329 | 				sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'` | 
 | 8330 | 		dep_target_minor=`echo ${MACOSX_DEPLOYMENT_TARGET} | \ | 
 | 8331 | 				sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'` | 
 | 8332 | 		if test ${dep_target_major} -eq 10 && \ | 
 | 8333 | 		   test ${dep_target_minor} -le 2 | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 8334 | 		then | 
| Ned Deily | c40b903 | 2014-06-25 13:48:46 -0700 | [diff] [blame] | 8335 | 			# building for OS X 10.0 through 10.2 | 
| Stefan Krah | 3a3e203 | 2010-11-28 15:30:05 +0000 | [diff] [blame] | 8336 | 			LDSHARED='$(CC) -bundle' | 
 | 8337 | 			LDCXXSHARED='$(CXX) -bundle' | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 8338 | 			if test "$enable_framework" ; then | 
 | 8339 | 				# Link against the framework. All externals should be defined. | 
| Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 8340 | 				BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
 | 8341 | 				LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 8342 | 				LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 8343 | 			else | 
 | 8344 | 				# No framework, use the Python app as bundle-loader | 
 | 8345 | 				BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' | 
 | 8346 | 				LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' | 
| Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 8347 | 				LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 8348 | 			fi | 
| Ned Deily | c40b903 | 2014-06-25 13:48:46 -0700 | [diff] [blame] | 8349 | 		else | 
 | 8350 | 			# building for OS X 10.3 and later | 
 | 8351 | 			if test "${enable_universalsdk}"; then | 
 | 8352 | 				LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}" | 
 | 8353 | 			fi | 
 | 8354 | 			LDSHARED='$(CC) -bundle -undefined dynamic_lookup' | 
 | 8355 | 			LDCXXSHARED='$(CXX) -bundle -undefined dynamic_lookup' | 
 | 8356 | 			BLDSHARED="$LDSHARED" | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 8357 | 		fi | 
 | 8358 | 		;; | 
| Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 8359 | 	Linux*|GNU*|QNX*) | 
 | 8360 | 		LDSHARED='$(CC) -shared' | 
 | 8361 | 		LDCXXSHARED='$(CXX) -shared';; | 
 | 8362 | 	BSD/OS*/4*) | 
 | 8363 | 		LDSHARED="gcc -shared" | 
 | 8364 | 		LDCXXSHARED="g++ -shared";; | 
| Martin v. Löwis | 222c515 | 2006-06-03 07:37:13 +0000 | [diff] [blame] | 8365 | 	FreeBSD*) | 
| Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 8366 | 		if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] | 
| Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 8367 | 		then | 
| Stefan Krah | 3a3e203 | 2010-11-28 15:30:05 +0000 | [diff] [blame] | 8368 | 			LDSHARED='$(CC) -shared' | 
 | 8369 | 			LDCXXSHARED='$(CXX) -shared' | 
| Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 8370 | 		else | 
| Stefan Krah | 3a3e203 | 2010-11-28 15:30:05 +0000 | [diff] [blame] | 8371 | 			LDSHARED="ld -Bshareable" | 
| Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 8372 | 		fi;; | 
| Martin v. Löwis | 222c515 | 2006-06-03 07:37:13 +0000 | [diff] [blame] | 8373 | 	OpenBSD*) | 
 | 8374 | 		if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] | 
 | 8375 | 		then | 
| Stefan Krah | 3a3e203 | 2010-11-28 15:30:05 +0000 | [diff] [blame] | 8376 | 				LDSHARED='$(CC) -shared $(CCSHARED)' | 
 | 8377 | 				LDCXXSHARED='$(CXX) -shared $(CCSHARED)' | 
| Martin v. Löwis | 222c515 | 2006-06-03 07:37:13 +0000 | [diff] [blame] | 8378 | 		else | 
 | 8379 | 				case `uname -r` in | 
 | 8380 | 				[01].* | 2.[0-7] | 2.[0-7].*) | 
 | 8381 | 				   LDSHARED="ld -Bshareable ${LDFLAGS}" | 
 | 8382 | 				   ;; | 
 | 8383 | 				*) | 
| Stefan Krah | 3a3e203 | 2010-11-28 15:30:05 +0000 | [diff] [blame] | 8384 | 				   LDSHARED='$(CC) -shared $(CCSHARED)' | 
 | 8385 | 				   LDCXXSHARED='$(CXX) -shared $(CCSHARED)' | 
| Martin v. Löwis | 222c515 | 2006-06-03 07:37:13 +0000 | [diff] [blame] | 8386 | 				   ;; | 
 | 8387 | 				esac | 
 | 8388 | 		fi;; | 
| Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 8389 | 	NetBSD*|DragonFly*) | 
| Antoine Pitrou | cb40277 | 2011-01-02 20:51:34 +0000 | [diff] [blame] | 8390 | 		LDSHARED='$(CC) -shared' | 
 | 8391 | 		LDCXXSHARED='$(CXX) -shared';; | 
| Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 8392 | 	OpenUNIX*|UnixWare*) | 
| Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 8393 | 		if test "$GCC" = "yes" ; then | 
 | 8394 | 			LDSHARED='$(CC) -shared' | 
 | 8395 | 			LDCXXSHARED='$(CXX) -shared' | 
 | 8396 | 		else | 
 | 8397 | 			LDSHARED='$(CC) -G' | 
 | 8398 | 			LDCXXSHARED='$(CXX) -G' | 
| Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 8399 | 		fi;; | 
| Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 8400 | 	SCO_SV*) | 
 | 8401 | 		LDSHARED='$(CC) -Wl,-G,-Bexport' | 
 | 8402 | 		LDCXXSHARED='$(CXX) -Wl,-G,-Bexport';; | 
 | 8403 | 	CYGWIN*) | 
 | 8404 | 		LDSHARED="gcc -shared -Wl,--enable-auto-image-base" | 
 | 8405 | 		LDCXXSHARED="g++ -shared -Wl,--enable-auto-image-base";; | 
 | 8406 | 	atheos*) | 
 | 8407 | 		LDSHARED="gcc -shared" | 
 | 8408 | 		LDCXXSHARED="g++ -shared";; | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8409 | 	*)	LDSHARED="ld";; | 
 | 8410 | 	esac | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8411 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDSHARED" >&5 | 
 | 8413 | $as_echo "$LDSHARED" >&6; } | 
| Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 8414 | LDCXXSHARED=${LDCXXSHARED-$LDSHARED} | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 8415 | BLDSHARED=${BLDSHARED-$LDSHARED} | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8416 | # 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] | 8417 | # library (module) -- this is only needed for a few systems | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8418 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CCSHARED" >&5 | 
 | 8419 | $as_echo_n "checking CCSHARED... " >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8420 | if test -z "$CCSHARED" | 
 | 8421 | then | 
| Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 8422 | 	case $ac_sys_system/$ac_sys_release in | 
| Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 8423 | 	SunOS*) if test "$GCC" = yes; | 
| Martin v. Löwis | eb62357 | 2007-03-12 10:50:39 +0000 | [diff] [blame] | 8424 | 		then CCSHARED="-fPIC"; | 
 | 8425 | 		elif test `uname -p` = sparc; | 
 | 8426 | 		then CCSHARED="-xcode=pic32"; | 
 | 8427 | 		else CCSHARED="-Kpic"; | 
 | 8428 | 		fi;; | 
| Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 8429 | 	hp*|HP*) if test "$GCC" = yes; | 
| Martin v. Löwis | 703ad70 | 2001-09-05 08:36:52 +0000 | [diff] [blame] | 8430 | 		 then CCSHARED="-fPIC"; | 
| Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 8431 | 		 else CCSHARED="+z"; | 
 | 8432 | 		 fi;; | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8433 | 	Linux*|GNU*) CCSHARED="-fPIC";; | 
| Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 8434 | 	BSD/OS*/4*) CCSHARED="-fpic";; | 
| Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 8435 | 	FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";; | 
| Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 8436 | 	OpenUNIX*|UnixWare*) | 
| Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 8437 | 		if test "$GCC" = "yes" | 
 | 8438 | 		then CCSHARED="-fPIC" | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8439 | 		else CCSHARED="-KPIC" | 
| Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 8440 | 		fi;; | 
| Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 8441 | 	SCO_SV*) | 
 | 8442 | 		if test "$GCC" = "yes" | 
 | 8443 | 		then CCSHARED="-fPIC" | 
 | 8444 | 		else CCSHARED="-Kpic -belf" | 
 | 8445 | 		fi;; | 
| Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 8446 | 	IRIX*/6*)  case $CC in | 
 | 8447 | 		   *gcc*) CCSHARED="-shared";; | 
| Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 8448 | 		   *) CCSHARED="";; | 
| Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 8449 | 		   esac;; | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 8450 | 	atheos*) CCSHARED="-fPIC";; | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8451 | 	esac | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8452 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCSHARED" >&5 | 
 | 8454 | $as_echo "$CCSHARED" >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8455 | # LINKFORSHARED are the flags passed to the $(CC) command that links | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8456 | # the python executable -- this is only needed for a few systems | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8457 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKFORSHARED" >&5 | 
 | 8458 | $as_echo_n "checking LINKFORSHARED... " >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8459 | if test -z "$LINKFORSHARED" | 
 | 8460 | then | 
| Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 8461 | 	case $ac_sys_system/$ac_sys_release in | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 8462 | 	AIX*)	LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8463 | 	hp*|HP*) | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 8464 | 	    LINKFORSHARED="-Wl,-E -Wl,+s";; | 
 | 8465 | #	    LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; | 
| Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 8466 | 	BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8467 | 	Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8468 | 	# -u libsys_s pulls in all symbols in libsys | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8469 | 	Darwin/*) | 
| Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 8470 | 		# -u _PyMac_Error is needed to pull in the mac toolbox glue, | 
 | 8471 | 		# which is | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8472 | 		# not used by the core itself but which needs to be in the core so | 
 | 8473 | 		# that dynamically loaded extension modules have access to it. | 
| Jack Jansen | 97e3f00 | 2003-02-23 22:59:01 +0000 | [diff] [blame] | 8474 | 		# -prebind is no longer used, because it actually seems to give a | 
 | 8475 | 		# slowdown in stead of a speedup, maybe due to the large number of | 
 | 8476 | 		# dynamic loads Python does. | 
| Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 8477 |  | 
 | 8478 | 		LINKFORSHARED="$extra_undefs" | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8479 | 		if test "$enable_framework" | 
 | 8480 | 		then | 
| Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 8481 | 			LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8482 | 		fi | 
| Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 8483 | 		LINKFORSHARED="$LINKFORSHARED";; | 
| Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 8484 | 	OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; | 
| Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 8485 | 	SCO_SV*) LINKFORSHARED="-Wl,-Bexport";; | 
| Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 8486 | 	ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; | 
| Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 8487 | 	FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) | 
| Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 8488 | 		if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] | 
 | 8489 | 		then | 
 | 8490 | 			LINKFORSHARED="-Wl,--export-dynamic" | 
 | 8491 | 		fi;; | 
| Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 8492 | 	SunOS/5*) case $CC in | 
 | 8493 | 		  *gcc*) | 
| Martin v. Löwis | a454857 | 2002-04-18 14:51:36 +0000 | [diff] [blame] | 8494 | 		    if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null | 
| Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 8495 | 		    then | 
 | 8496 | 			LINKFORSHARED="-Xlinker --export-dynamic" | 
| Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 8497 | 		    fi;; | 
 | 8498 | 		  esac;; | 
| Jason Tishler | 3076559 | 2003-09-04 11:04:06 +0000 | [diff] [blame] | 8499 | 	CYGWIN*) | 
 | 8500 | 		if test $enable_shared = "no" | 
 | 8501 | 		then | 
 | 8502 | 			LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)' | 
 | 8503 | 		fi;; | 
| Martin v. Löwis | 8c255e4 | 2008-05-23 15:06:50 +0000 | [diff] [blame] | 8504 | 	QNX*) | 
 | 8505 | 		# -Wl,-E causes the symbols to be added to the dynamic | 
 | 8506 | 		# symbol table so that they can be found when a module | 
 | 8507 | 		# is loaded.  -N 2048K causes the stack size to be set | 
 | 8508 | 		# to 2048 kilobytes so that the stack doesn't overflow | 
 | 8509 | 		# when running test_compile.py. | 
 | 8510 | 		LINKFORSHARED='-Wl,-E -N 2048K';; | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8511 | 	esac | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8512 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKFORSHARED" >&5 | 
 | 8514 | $as_echo "$LINKFORSHARED" >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8515 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8516 |  | 
| Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 8517 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8518 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGSFORSHARED" >&5 | 
 | 8519 | $as_echo_n "checking CFLAGSFORSHARED... " >&6; } | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 8520 | if test ! "$LIBRARY" = "$LDLIBRARY" | 
 | 8521 | then | 
| Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 +0000 | [diff] [blame] | 8522 | 	case $ac_sys_system in | 
 | 8523 | 	CYGWIN*) | 
 | 8524 | 		# Cygwin needs CCSHARED when building extension DLLs | 
 | 8525 | 		# but not when building the interpreter DLL. | 
 | 8526 | 		CFLAGSFORSHARED='';; | 
 | 8527 | 	*) | 
 | 8528 | 		CFLAGSFORSHARED='$(CCSHARED)' | 
 | 8529 | 	esac | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 8530 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLAGSFORSHARED" >&5 | 
 | 8532 | $as_echo "$CFLAGSFORSHARED" >&6; } | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 8533 |  | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 8534 | # SHLIBS are libraries (except -lc and -lm) to link to the python shared | 
 | 8535 | # library (with --enable-shared). | 
 | 8536 | # 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] | 8537 | # symbols, this must be set to $(LIBS) (expanded by make). We do this even | 
 | 8538 | # if it is not required, since it creates a dependency of the shared library | 
 | 8539 | # to LIBS. This, in turn, means that applications linking the shared libpython | 
 | 8540 | # don't need to link LIBS explicitly. The default should be only changed | 
 | 8541 | # on systems where this approach causes problems. | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 8542 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8543 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking SHLIBS" >&5 | 
 | 8544 | $as_echo_n "checking SHLIBS... " >&6; } | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 8545 | case "$ac_sys_system" in | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 8546 | 	*) | 
| Martin v. Löwis | d6359c5 | 2002-08-04 12:38:50 +0000 | [diff] [blame] | 8547 | 		SHLIBS='$(LIBS)';; | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 8548 | esac | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIBS" >&5 | 
 | 8550 | $as_echo "$SHLIBS" >&6; } | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 8551 |  | 
 | 8552 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8553 | # checks for libraries | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8554 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | 
 | 8555 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8556 | if ${ac_cv_lib_dl_dlopen+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8557 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8558 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8559 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8560 | LIBS="-ldl  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8561 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8562 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8563 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8564 | /* Override any GCC internal prototype to avoid an error. | 
 | 8565 |    Use char because int might match the return type of a GCC | 
 | 8566 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8567 | #ifdef __cplusplus | 
 | 8568 | extern "C" | 
 | 8569 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8570 | char dlopen (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8571 | int | 
 | 8572 | main () | 
 | 8573 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8574 | return dlopen (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8575 |   ; | 
 | 8576 |   return 0; | 
 | 8577 | } | 
 | 8578 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8579 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8580 |   ac_cv_lib_dl_dlopen=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8581 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8582 |   ac_cv_lib_dl_dlopen=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8583 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8584 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 8585 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8586 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8587 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | 
 | 8589 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8590 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8591 |   cat >>confdefs.h <<_ACEOF | 
 | 8592 | #define HAVE_LIBDL 1 | 
 | 8593 | _ACEOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8594 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8595 |   LIBS="-ldl $LIBS" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 8596 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8597 | fi | 
 | 8598 | 	# Dynamic linking for SunOS/Solaris and SYSV | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8599 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | 
 | 8600 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8601 | if ${ac_cv_lib_dld_shl_load+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8602 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8603 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8604 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8605 | LIBS="-ldld  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8606 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8607 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8608 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8609 | /* Override any GCC internal prototype to avoid an error. | 
 | 8610 |    Use char because int might match the return type of a GCC | 
 | 8611 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8612 | #ifdef __cplusplus | 
 | 8613 | extern "C" | 
 | 8614 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8615 | char shl_load (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8616 | int | 
 | 8617 | main () | 
 | 8618 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8619 | return shl_load (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8620 |   ; | 
 | 8621 |   return 0; | 
 | 8622 | } | 
 | 8623 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8624 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8625 |   ac_cv_lib_dld_shl_load=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8626 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8627 |   ac_cv_lib_dld_shl_load=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8628 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8629 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 8630 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8631 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8632 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 | 
 | 8634 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8635 | 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] | 8636 |   cat >>confdefs.h <<_ACEOF | 
 | 8637 | #define HAVE_LIBDLD 1 | 
 | 8638 | _ACEOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8639 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8640 |   LIBS="-ldld $LIBS" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8641 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8642 | fi | 
 | 8643 | 	# Dynamic linking for HP-UX | 
| Victor Stinner | 7c90667 | 2015-01-06 13:53:37 +0100 | [diff] [blame] | 8644 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RAND_egd in -lcrypto" >&5 | 
 | 8645 | $as_echo_n "checking for RAND_egd in -lcrypto... " >&6; } | 
 | 8646 | if ${ac_cv_lib_crypto_RAND_egd+:} false; then : | 
 | 8647 |   $as_echo_n "(cached) " >&6 | 
 | 8648 | else | 
 | 8649 |   ac_check_lib_save_LIBS=$LIBS | 
 | 8650 | LIBS="-lcrypto  $LIBS" | 
 | 8651 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 8652 | /* end confdefs.h.  */ | 
 | 8653 |  | 
 | 8654 | /* Override any GCC internal prototype to avoid an error. | 
 | 8655 |    Use char because int might match the return type of a GCC | 
 | 8656 |    builtin and then its argument prototype would still apply.  */ | 
 | 8657 | #ifdef __cplusplus | 
 | 8658 | extern "C" | 
 | 8659 | #endif | 
 | 8660 | char RAND_egd (); | 
 | 8661 | int | 
 | 8662 | main () | 
 | 8663 | { | 
 | 8664 | return RAND_egd (); | 
 | 8665 |   ; | 
 | 8666 |   return 0; | 
 | 8667 | } | 
 | 8668 | _ACEOF | 
 | 8669 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 8670 |   ac_cv_lib_crypto_RAND_egd=yes | 
 | 8671 | else | 
 | 8672 |   ac_cv_lib_crypto_RAND_egd=no | 
 | 8673 | fi | 
 | 8674 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 8675 |     conftest$ac_exeext conftest.$ac_ext | 
 | 8676 | LIBS=$ac_check_lib_save_LIBS | 
 | 8677 | fi | 
 | 8678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RAND_egd" >&5 | 
 | 8679 | $as_echo "$ac_cv_lib_crypto_RAND_egd" >&6; } | 
 | 8680 | if test "x$ac_cv_lib_crypto_RAND_egd" = xyes; then : | 
 | 8681 |  | 
 | 8682 | $as_echo "#define HAVE_RAND_EGD 1" >>confdefs.h | 
 | 8683 |  | 
 | 8684 | fi | 
 | 8685 |  | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 8686 |  | 
| Ronald Oussoren | 79f9049 | 2009-01-02 10:44:46 +0000 | [diff] [blame] | 8687 | # only check for sem_init if thread support is requested | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 8688 | if test "$with_threads" = "yes" -o -z "$with_threads"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8689 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5 | 
 | 8690 | $as_echo_n "checking for library containing sem_init... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8691 | if ${ac_cv_search_sem_init+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8692 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 8693 | else | 
| Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 8694 |   ac_func_search_save_LIBS=$LIBS | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8695 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8696 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8697 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8698 | /* Override any GCC internal prototype to avoid an error. | 
 | 8699 |    Use char because int might match the return type of a GCC | 
 | 8700 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8701 | #ifdef __cplusplus | 
 | 8702 | extern "C" | 
 | 8703 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8704 | char sem_init (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8705 | int | 
 | 8706 | main () | 
 | 8707 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8708 | return sem_init (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8709 |   ; | 
 | 8710 |   return 0; | 
 | 8711 | } | 
 | 8712 | _ACEOF | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8713 | for ac_lib in '' pthread rt posix4; do | 
 | 8714 |   if test -z "$ac_lib"; then | 
 | 8715 |     ac_res="none required" | 
 | 8716 |   else | 
 | 8717 |     ac_res=-l$ac_lib | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 8718 |     LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8719 |   fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8720 |   if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8721 |   ac_cv_search_sem_init=$ac_res | 
| Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 8722 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8723 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 8724 |     conftest$ac_exeext | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8725 |   if ${ac_cv_search_sem_init+:} false; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8726 |   break | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 8727 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8728 | done | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8729 | if ${ac_cv_search_sem_init+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8730 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8731 | else | 
 | 8732 |   ac_cv_search_sem_init=no | 
 | 8733 | fi | 
 | 8734 | rm conftest.$ac_ext | 
| Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 8735 | LIBS=$ac_func_search_save_LIBS | 
 | 8736 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5 | 
 | 8738 | $as_echo "$ac_cv_search_sem_init" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8739 | ac_res=$ac_cv_search_sem_init | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8740 | if test "$ac_res" != no; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8741 |   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
| Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 8742 |  | 
| Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 8743 | fi | 
| Martin v. Löwis | d3545ec | 2003-05-03 11:25:43 +0000 | [diff] [blame] | 8744 |  # 'Real Time' functions on Solaris | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 8745 | 						# posix4 on Solaris 2.6 | 
 | 8746 | 						# pthread (first!) on Linux | 
 | 8747 | fi | 
 | 8748 |  | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8749 | # check if we need libintl for locale functions | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8750 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for textdomain in -lintl" >&5 | 
 | 8751 | $as_echo_n "checking for textdomain in -lintl... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8752 | if ${ac_cv_lib_intl_textdomain+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8753 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8754 | else | 
 | 8755 |   ac_check_lib_save_LIBS=$LIBS | 
 | 8756 | LIBS="-lintl  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8757 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8758 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8759 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8760 | /* Override any GCC internal prototype to avoid an error. | 
 | 8761 |    Use char because int might match the return type of a GCC | 
 | 8762 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8763 | #ifdef __cplusplus | 
 | 8764 | extern "C" | 
 | 8765 | #endif | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8766 | char textdomain (); | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8767 | int | 
 | 8768 | main () | 
 | 8769 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8770 | return textdomain (); | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8771 |   ; | 
 | 8772 |   return 0; | 
 | 8773 | } | 
 | 8774 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8775 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8776 |   ac_cv_lib_intl_textdomain=yes | 
 | 8777 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8778 |   ac_cv_lib_intl_textdomain=no | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8779 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8780 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 8781 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8782 | LIBS=$ac_check_lib_save_LIBS | 
 | 8783 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_textdomain" >&5 | 
 | 8785 | $as_echo "$ac_cv_lib_intl_textdomain" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8786 | if test "x$ac_cv_lib_intl_textdomain" = xyes; then : | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8787 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8788 | $as_echo "#define WITH_LIBINTL 1" >>confdefs.h | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8789 |  | 
 | 8790 | fi | 
 | 8791 |  | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 8792 |  | 
 | 8793 | # checks for system dependent C++ extensions support | 
 | 8794 | case "$ac_sys_system" in | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8795 | 	AIX*)	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for genuine AIX C++ extensions support" >&5 | 
 | 8796 | $as_echo_n "checking for genuine AIX C++ extensions support... " >&6; } | 
 | 8797 | 		cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8798 | /* end confdefs.h.  */ | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 8799 |  | 
| Georg Brandl | 94800df | 2011-02-25 11:09:02 +0000 | [diff] [blame] | 8800 | 		  #include <load.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8801 | int | 
 | 8802 | main () | 
 | 8803 | { | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 8804 | loadAndInit("", 0, "") | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8805 |   ; | 
 | 8806 |   return 0; | 
 | 8807 | } | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 8808 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8809 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8810 | if ac_fn_c_try_link "$LINENO"; then : | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 8811 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 8812 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8813 | $as_echo "#define AIX_GENUINE_CPLUSPLUS 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8814 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 8815 | 		  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8816 | $as_echo "yes" >&6; } | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 8817 |  | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 8818 | else | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 8819 |  | 
 | 8820 | 		  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8821 | $as_echo "no" >&6; } | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 8822 |  | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 8823 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8824 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 8825 |     conftest$ac_exeext conftest.$ac_ext;; | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 8826 | 	*) ;; | 
 | 8827 | esac | 
 | 8828 |  | 
| Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 8829 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8830 | # BeOS' sockets are stashed in libnet. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8831 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_open in -lnsl" >&5 | 
 | 8832 | $as_echo_n "checking for t_open in -lnsl... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8833 | if ${ac_cv_lib_nsl_t_open+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8834 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 8835 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8836 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8837 | LIBS="-lnsl  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8838 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8839 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8840 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8841 | /* Override any GCC internal prototype to avoid an error. | 
 | 8842 |    Use char because int might match the return type of a GCC | 
 | 8843 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8844 | #ifdef __cplusplus | 
 | 8845 | extern "C" | 
 | 8846 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8847 | char t_open (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8848 | int | 
 | 8849 | main () | 
 | 8850 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8851 | return t_open (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8852 |   ; | 
 | 8853 |   return 0; | 
 | 8854 | } | 
 | 8855 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8856 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8857 |   ac_cv_lib_nsl_t_open=yes | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 8858 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8859 |   ac_cv_lib_nsl_t_open=no | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 8860 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8861 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 8862 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8863 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 8864 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8865 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_t_open" >&5 | 
 | 8866 | $as_echo "$ac_cv_lib_nsl_t_open" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8867 | if test "x$ac_cv_lib_nsl_t_open" = xyes; then : | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 8868 |   LIBS="-lnsl $LIBS" | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 8869 | fi | 
| Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 8870 |  # SVR4 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8871 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 | 
 | 8872 | $as_echo_n "checking for socket in -lsocket... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8873 | if ${ac_cv_lib_socket_socket+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8874 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8875 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8876 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8877 | LIBS="-lsocket $LIBS $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8878 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8879 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8880 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8881 | /* Override any GCC internal prototype to avoid an error. | 
 | 8882 |    Use char because int might match the return type of a GCC | 
 | 8883 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8884 | #ifdef __cplusplus | 
 | 8885 | extern "C" | 
 | 8886 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8887 | char socket (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8888 | int | 
 | 8889 | main () | 
 | 8890 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8891 | return socket (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8892 |   ; | 
 | 8893 |   return 0; | 
 | 8894 | } | 
 | 8895 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8896 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8897 |   ac_cv_lib_socket_socket=yes | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8898 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8899 |   ac_cv_lib_socket_socket=no | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8900 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8901 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 8902 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8903 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8904 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 | 
 | 8906 | $as_echo "$ac_cv_lib_socket_socket" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8907 | if test "x$ac_cv_lib_socket_socket" = xyes; then : | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8908 |   LIBS="-lsocket $LIBS" | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8909 | fi | 
 | 8910 |  # SVR4 sockets | 
| Skip Montanaro | b9949db | 2004-01-17 04:04:13 +0000 | [diff] [blame] | 8911 |  | 
| Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 8912 | case "$ac_sys_system" in | 
 | 8913 | BeOS*) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8914 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnet" >&5 | 
 | 8915 | $as_echo_n "checking for socket in -lnet... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8916 | if ${ac_cv_lib_net_socket+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8917 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8918 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8919 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8920 | LIBS="-lnet $LIBS $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8921 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8922 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8923 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8924 | /* Override any GCC internal prototype to avoid an error. | 
 | 8925 |    Use char because int might match the return type of a GCC | 
 | 8926 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8927 | #ifdef __cplusplus | 
 | 8928 | extern "C" | 
 | 8929 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8930 | char socket (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8931 | int | 
 | 8932 | main () | 
 | 8933 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8934 | return socket (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8935 |   ; | 
 | 8936 |   return 0; | 
 | 8937 | } | 
 | 8938 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8939 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8940 |   ac_cv_lib_net_socket=yes | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8941 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8942 |   ac_cv_lib_net_socket=no | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8943 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8944 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 8945 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8946 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8947 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8948 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_net_socket" >&5 | 
 | 8949 | $as_echo "$ac_cv_lib_net_socket" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8950 | if test "x$ac_cv_lib_net_socket" = xyes; then : | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8951 |   LIBS="-lnet $LIBS" | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8952 | fi | 
 | 8953 |  # BeOS | 
 | 8954 | ;; | 
 | 8955 | esac | 
| Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 8956 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8957 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libs" >&5 | 
 | 8958 | $as_echo_n "checking for --with-libs... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8959 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8960 | # Check whether --with-libs was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8961 | if test "${with_libs+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8962 |   withval=$with_libs; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 | 
 | 8964 | $as_echo "$withval" >&6; } | 
| Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 8965 | LIBS="$withval $LIBS" | 
 | 8966 |  | 
 | 8967 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8968 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 8969 | $as_echo "no" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8970 | fi | 
 | 8971 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 8972 |  | 
| Benjamin Peterson | 64e8f6e | 2014-12-15 00:00:23 -0500 | [diff] [blame] | 8973 |  | 
 | 8974 |  | 
 | 8975 |  | 
 | 8976 |  | 
 | 8977 |  | 
 | 8978 |  | 
 | 8979 |  | 
 | 8980 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | 
 | 8981 | 	if test -n "$ac_tool_prefix"; then | 
| Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 8982 |   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | 
 | 8983 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8984 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 8985 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 8986 | if ${ac_cv_path_PKG_CONFIG+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8987 |   $as_echo_n "(cached) " >&6 | 
| Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 8988 | else | 
 | 8989 |   case $PKG_CONFIG in | 
 | 8990 |   [\\/]* | ?:[\\/]*) | 
 | 8991 |   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | 
 | 8992 |   ;; | 
 | 8993 |   *) | 
 | 8994 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 8995 | for as_dir in $PATH | 
 | 8996 | do | 
 | 8997 |   IFS=$as_save_IFS | 
 | 8998 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8999 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 9000 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 9001 |     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9002 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 9003 |     break 2 | 
 | 9004 |   fi | 
 | 9005 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9006 |   done | 
| Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 9007 | IFS=$as_save_IFS | 
 | 9008 |  | 
 | 9009 |   ;; | 
 | 9010 | esac | 
 | 9011 | fi | 
 | 9012 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | 
 | 9013 | if test -n "$PKG_CONFIG"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9014 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | 
 | 9015 | $as_echo "$PKG_CONFIG" >&6; } | 
| Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 9016 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9017 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 9018 | $as_echo "no" >&6; } | 
| Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 9019 | fi | 
 | 9020 |  | 
 | 9021 |  | 
 | 9022 | fi | 
 | 9023 | if test -z "$ac_cv_path_PKG_CONFIG"; then | 
 | 9024 |   ac_pt_PKG_CONFIG=$PKG_CONFIG | 
 | 9025 |   # Extract the first word of "pkg-config", so it can be a program name with args. | 
 | 9026 | set dummy pkg-config; ac_word=$2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9027 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 9028 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 9029 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9030 |   $as_echo_n "(cached) " >&6 | 
| Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 9031 | else | 
 | 9032 |   case $ac_pt_PKG_CONFIG in | 
 | 9033 |   [\\/]* | ?:[\\/]*) | 
 | 9034 |   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | 
 | 9035 |   ;; | 
 | 9036 |   *) | 
 | 9037 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 9038 | for as_dir in $PATH | 
 | 9039 | do | 
 | 9040 |   IFS=$as_save_IFS | 
 | 9041 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9042 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 9043 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 9044 |     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9045 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 9046 |     break 2 | 
 | 9047 |   fi | 
 | 9048 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9049 |   done | 
| Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 9050 | IFS=$as_save_IFS | 
 | 9051 |  | 
 | 9052 |   ;; | 
 | 9053 | esac | 
 | 9054 | fi | 
 | 9055 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | 
 | 9056 | if test -n "$ac_pt_PKG_CONFIG"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9057 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | 
 | 9058 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | 
| Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 9059 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9060 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 9061 | $as_echo "no" >&6; } | 
| Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 9062 | fi | 
 | 9063 |  | 
 | 9064 |   if test "x$ac_pt_PKG_CONFIG" = x; then | 
 | 9065 |     PKG_CONFIG="" | 
 | 9066 |   else | 
 | 9067 |     case $cross_compiling:$ac_tool_warned in | 
 | 9068 | yes:) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9069 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 9070 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
| Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 9071 | ac_tool_warned=yes ;; | 
 | 9072 | esac | 
 | 9073 |     PKG_CONFIG=$ac_pt_PKG_CONFIG | 
 | 9074 |   fi | 
 | 9075 | else | 
 | 9076 |   PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | 
 | 9077 | fi | 
 | 9078 |  | 
| Benjamin Peterson | 64e8f6e | 2014-12-15 00:00:23 -0500 | [diff] [blame] | 9079 | fi | 
 | 9080 | if test -n "$PKG_CONFIG"; then | 
 | 9081 | 	_pkg_min_version=0.9.0 | 
 | 9082 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | 
 | 9083 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | 
 | 9084 | 	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | 
 | 9085 | 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 9086 | $as_echo "yes" >&6; } | 
 | 9087 | 	else | 
 | 9088 | 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 9089 | $as_echo "no" >&6; } | 
 | 9090 | 		PKG_CONFIG="" | 
 | 9091 | 	fi | 
 | 9092 | fi | 
| Benjamin Peterson | e9e07bf | 2010-03-09 21:46:54 +0000 | [diff] [blame] | 9093 |  | 
 | 9094 | # Check for use of the system expat library | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9095 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-expat" >&5 | 
 | 9096 | $as_echo_n "checking for --with-system-expat... " >&6; } | 
| Benjamin Peterson | e9e07bf | 2010-03-09 21:46:54 +0000 | [diff] [blame] | 9097 |  | 
 | 9098 | # Check whether --with-system_expat was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9099 | if test "${with_system_expat+set}" = set; then : | 
| Benjamin Peterson | e9e07bf | 2010-03-09 21:46:54 +0000 | [diff] [blame] | 9100 |   withval=$with_system_expat; | 
| Benjamin Peterson | f2d1b2a | 2010-10-31 16:53:53 +0000 | [diff] [blame] | 9101 | else | 
 | 9102 |   with_system_expat="no" | 
| Benjamin Peterson | e9e07bf | 2010-03-09 21:46:54 +0000 | [diff] [blame] | 9103 | fi | 
 | 9104 |  | 
 | 9105 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_expat" >&5 | 
 | 9107 | $as_echo "$with_system_expat" >&6; } | 
| Benjamin Peterson | e9e07bf | 2010-03-09 21:46:54 +0000 | [diff] [blame] | 9108 |  | 
 | 9109 | # Check for use of the system libffi library | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9110 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-ffi" >&5 | 
 | 9111 | $as_echo_n "checking for --with-system-ffi... " >&6; } | 
| Benjamin Peterson | e9e07bf | 2010-03-09 21:46:54 +0000 | [diff] [blame] | 9112 |  | 
 | 9113 | # Check whether --with-system_ffi was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9114 | if test "${with_system_ffi+set}" = set; then : | 
| Benjamin Peterson | e9e07bf | 2010-03-09 21:46:54 +0000 | [diff] [blame] | 9115 |   withval=$with_system_ffi; | 
| Benjamin Peterson | f2d1b2a | 2010-10-31 16:53:53 +0000 | [diff] [blame] | 9116 | else | 
 | 9117 |   with_system_ffi="no" | 
| Benjamin Peterson | e9e07bf | 2010-03-09 21:46:54 +0000 | [diff] [blame] | 9118 | fi | 
 | 9119 |  | 
 | 9120 |  | 
 | 9121 | if test "$with_system_ffi" = "yes" && test -n "$PKG_CONFIG"; then | 
| Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 9122 |     LIBFFI_INCLUDEDIR="`"$PKG_CONFIG" libffi --cflags-only-I 2>/dev/null | sed -e 's/^-I//;s/ *$//'`" | 
 | 9123 | else | 
 | 9124 |     LIBFFI_INCLUDEDIR="" | 
 | 9125 | fi | 
 | 9126 |  | 
 | 9127 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_ffi" >&5 | 
 | 9129 | $as_echo "$with_system_ffi" >&6; } | 
| Martin v. Löwis | 9176fc1 | 2006-04-11 11:12:43 +0000 | [diff] [blame] | 9130 |  | 
| Ned Deily | a2a9f57 | 2013-10-25 00:30:10 -0700 | [diff] [blame] | 9131 | # Check for --with-tcltk-includes=path and --with-tcltk-libs=path | 
 | 9132 |  | 
 | 9133 |  | 
 | 9134 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tcltk-includes" >&5 | 
 | 9135 | $as_echo_n "checking for --with-tcltk-includes... " >&6; } | 
 | 9136 |  | 
 | 9137 | # Check whether --with-tcltk-includes was given. | 
 | 9138 | if test "${with_tcltk_includes+set}" = set; then : | 
 | 9139 |   withval=$with_tcltk_includes; | 
 | 9140 | else | 
 | 9141 |   with_tcltk_includes="default" | 
 | 9142 | fi | 
 | 9143 |  | 
 | 9144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcltk_includes" >&5 | 
 | 9145 | $as_echo "$with_tcltk_includes" >&6; } | 
 | 9146 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tcltk-libs" >&5 | 
 | 9147 | $as_echo_n "checking for --with-tcltk-libs... " >&6; } | 
 | 9148 |  | 
 | 9149 | # Check whether --with-tcltk-libs was given. | 
 | 9150 | if test "${with_tcltk_libs+set}" = set; then : | 
 | 9151 |   withval=$with_tcltk_libs; | 
 | 9152 | else | 
 | 9153 |   with_tcltk_libs="default" | 
 | 9154 | fi | 
 | 9155 |  | 
 | 9156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcltk_libs" >&5 | 
 | 9157 | $as_echo "$with_tcltk_libs" >&6; } | 
 | 9158 | if test "x$with_tcltk_includes" = xdefault || test "x$with_tcltk_libs" = xdefault | 
 | 9159 | then | 
 | 9160 |   if test "x$with_tcltk_includes" != "x$with_tcltk_libs" | 
 | 9161 |   then | 
 | 9162 |     as_fn_error $? "use both --with-tcltk-includes='...' and --with-tcltk-libs='...' or neither" "$LINENO" 5 | 
 | 9163 |   fi | 
 | 9164 |   TCLTK_INCLUDES="" | 
 | 9165 |   TCLTK_LIBS="" | 
 | 9166 | else | 
 | 9167 |   TCLTK_INCLUDES="$with_tcltk_includes" | 
 | 9168 |   TCLTK_LIBS="$with_tcltk_libs" | 
 | 9169 | fi | 
 | 9170 |  | 
| Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 9171 | # Check for --with-dbmliborder | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9172 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dbmliborder" >&5 | 
 | 9173 | $as_echo_n "checking for --with-dbmliborder... " >&6; } | 
| Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 9174 |  | 
 | 9175 | # Check whether --with-dbmliborder was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9176 | if test "${with_dbmliborder+set}" = set; then : | 
| Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 9177 |   withval=$with_dbmliborder; | 
 | 9178 | if test x$with_dbmliborder = xyes | 
 | 9179 | then | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 9180 | as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5 | 
| Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 9181 | else | 
 | 9182 |   for db in `echo $with_dbmliborder | sed 's/:/ /g'`; do | 
 | 9183 |     if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb | 
 | 9184 |     then | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 9185 |       as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5 | 
| Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 9186 |     fi | 
 | 9187 |   done | 
 | 9188 | fi | 
 | 9189 | fi | 
 | 9190 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_dbmliborder" >&5 | 
 | 9192 | $as_echo "$with_dbmliborder" >&6; } | 
| Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 9193 |  | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 9194 | # Determine if signalmodule should be used. | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 9195 |  | 
 | 9196 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9197 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-signal-module" >&5 | 
 | 9198 | $as_echo_n "checking for --with-signal-module... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9199 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9200 | # Check whether --with-signal-module was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9201 | if test "${with_signal_module+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9202 |   withval=$with_signal_module; | 
 | 9203 | fi | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 9204 |  | 
 | 9205 |  | 
 | 9206 | if test -z "$with_signal_module" | 
 | 9207 | then with_signal_module="yes" | 
 | 9208 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_signal_module" >&5 | 
 | 9210 | $as_echo "$with_signal_module" >&6; } | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 9211 |  | 
 | 9212 | if test "${with_signal_module}" = "yes"; then | 
 | 9213 | 	USE_SIGNAL_MODULE="" | 
 | 9214 | 	SIGNAL_OBJS="" | 
 | 9215 | else | 
 | 9216 | 	USE_SIGNAL_MODULE="#" | 
 | 9217 | 	SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o" | 
 | 9218 | fi | 
 | 9219 |  | 
| Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 9220 | # This is used to generate Setup.config | 
| Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 9221 |  | 
| Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9222 | USE_THREAD_MODULE="" | 
| Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 9223 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9224 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dec-threads" >&5 | 
 | 9225 | $as_echo_n "checking for --with-dec-threads... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9226 |  | 
| Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9227 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9228 | # Check whether --with-dec-threads was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9229 | if test "${with_dec_threads+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9230 |   withval=$with_dec_threads; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 | 
 | 9232 | $as_echo "$withval" >&6; } | 
| Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9233 | LDLAST=-threads | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 9234 | if test "${with_thread+set}" != set; then | 
| Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9235 |    with_thread="$withval"; | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 9236 | fi | 
| Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9237 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9238 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 9239 | $as_echo "no" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9240 | fi | 
 | 9241 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9242 |  | 
 | 9243 | # Templates for things AC_DEFINEd more than once. | 
 | 9244 | # For a single AC_DEFINE, no template is needed. | 
| Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9245 |  | 
 | 9246 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9247 |  | 
 | 9248 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9249 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-threads" >&5 | 
 | 9250 | $as_echo_n "checking for --with-threads... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9251 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9252 | # Check whether --with-threads was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9253 | if test "${with_threads+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9254 |   withval=$with_threads; | 
 | 9255 | fi | 
| Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9256 |  | 
 | 9257 |  | 
| Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9258 | # --with-thread is deprecated, but check for it anyway | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9259 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9260 | # Check whether --with-thread was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9261 | if test "${with_thread+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9262 |   withval=$with_thread; with_threads=$with_thread | 
 | 9263 | fi | 
 | 9264 |  | 
| Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9265 |  | 
 | 9266 | if test -z "$with_threads" | 
 | 9267 | then with_threads="yes" | 
 | 9268 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_threads" >&5 | 
 | 9270 | $as_echo "$with_threads" >&6; } | 
| Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9271 |  | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9272 |  | 
| Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9273 | if test "$with_threads" = "no" | 
 | 9274 | then | 
 | 9275 |     USE_THREAD_MODULE="#" | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9276 | elif test "$ac_cv_pthread_is_default" = yes | 
 | 9277 | then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9278 |     $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9279 |  | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9280 |     # Defining _REENTRANT on system with POSIX threads should not hurt. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9281 |     $as_echo "#define _REENTRANT 1" >>confdefs.h | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9282 |  | 
 | 9283 |     posix_threads=yes | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9284 |     THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9285 | elif test "$ac_cv_kpthread" = "yes" | 
 | 9286 | then | 
 | 9287 |     CC="$CC -Kpthread" | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 9288 |     if test "$ac_cv_cxx_thread" = "yes"; then | 
 | 9289 |         CXX="$CXX -Kpthread" | 
 | 9290 |     fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9291 |     $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 9292 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 9293 |     posix_threads=yes | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9294 |     THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 9295 | elif test "$ac_cv_kthread" = "yes" | 
 | 9296 | then | 
 | 9297 |     CC="$CC -Kthread" | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 9298 |     if test "$ac_cv_cxx_thread" = "yes"; then | 
 | 9299 |         CXX="$CXX -Kthread" | 
 | 9300 |     fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9301 |     $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 9302 |  | 
 | 9303 |     posix_threads=yes | 
 | 9304 |     THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9305 | elif test "$ac_cv_pthread" = "yes" | 
 | 9306 | then | 
 | 9307 |     CC="$CC -pthread" | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 9308 |     if test "$ac_cv_cxx_thread" = "yes"; then | 
 | 9309 |         CXX="$CXX -pthread" | 
 | 9310 |     fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9311 |     $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9312 |  | 
 | 9313 |     posix_threads=yes | 
 | 9314 |     THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9315 | else | 
 | 9316 |     if test ! -z "$with_threads" -a -d "$with_threads" | 
 | 9317 |     then LDFLAGS="$LDFLAGS -L$with_threads" | 
 | 9318 |     fi | 
 | 9319 |     if test ! -z "$withval" -a -d "$withval" | 
 | 9320 |     then LDFLAGS="$LDFLAGS -L$withval" | 
 | 9321 |     fi | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9322 |  | 
 | 9323 |     # According to the POSIX spec, a pthreads implementation must | 
| Matthias Klose | a2542be | 2004-08-16 11:35:51 +0000 | [diff] [blame] | 9324 |     # define _POSIX_THREADS in unistd.h. Some apparently don't | 
 | 9325 |     # (e.g. gnu pth with pthread emulation) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9326 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _POSIX_THREADS in unistd.h" >&5 | 
 | 9327 | $as_echo_n "checking for _POSIX_THREADS in unistd.h... " >&6; } | 
 | 9328 |     cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9329 | /* end confdefs.h.  */ | 
| Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 9330 |  | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9331 | #include <unistd.h> | 
| Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 9332 | #ifdef _POSIX_THREADS | 
 | 9333 | yes | 
 | 9334 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9335 |  | 
 | 9336 | _ACEOF | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9337 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9338 |   $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9339 |   unistd_defines_pthreads=yes | 
 | 9340 | else | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9341 |   unistd_defines_pthreads=no | 
 | 9342 | fi | 
| Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 9343 | rm -f conftest* | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9344 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9345 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unistd_defines_pthreads" >&5 | 
 | 9346 | $as_echo "$unistd_defines_pthreads" >&6; } | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9347 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9348 |     $as_echo "#define _REENTRANT 1" >>confdefs.h | 
| Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 9349 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9350 |     ac_fn_c_check_header_mongrel "$LINENO" "cthreads.h" "ac_cv_header_cthreads_h" "$ac_includes_default" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 9351 | if test "x$ac_cv_header_cthreads_h" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9352 |   $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9353 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9354 |     $as_echo "#define C_THREADS 1" >>confdefs.h | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9355 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9356 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9357 | $as_echo "#define HURD_C_THREADS 1" >>confdefs.h | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9358 |  | 
 | 9359 |     LIBS="$LIBS -lthreads" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9360 |     THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9361 | else | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9362 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9363 |     ac_fn_c_check_header_mongrel "$LINENO" "mach/cthreads.h" "ac_cv_header_mach_cthreads_h" "$ac_includes_default" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 9364 | if test "x$ac_cv_header_mach_cthreads_h" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9365 |   $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9366 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9367 |     $as_echo "#define C_THREADS 1" >>confdefs.h | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9368 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9369 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9370 | $as_echo "#define MACH_C_THREADS 1" >>confdefs.h | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9371 |  | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9372 |     THREADOBJ="Python/thread.o" | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9373 | else | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9374 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9375 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pth" >&5 | 
 | 9376 | $as_echo_n "checking for --with-pth... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9377 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9378 | # Check whether --with-pth was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9379 | if test "${with_pth+set}" = set; then : | 
 | 9380 |   withval=$with_pth; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 | 
 | 9381 | $as_echo "$withval" >&6; } | 
 | 9382 |                   $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9383 |  | 
 | 9384 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9385 | $as_echo "#define HAVE_PTH 1" >>confdefs.h | 
| Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 9386 |  | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 9387 |                   LIBS="-lpth $LIBS" | 
 | 9388 |                   THREADOBJ="Python/thread.o" | 
| Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 9389 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9390 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 9391 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 9392 |  | 
 | 9393 |     # Just looking for pthread_create in libpthread is not enough: | 
 | 9394 |     # on HP/UX, pthread.h renames pthread_create to a different symbol name. | 
 | 9395 |     # So we really have to include pthread.h, and then link. | 
 | 9396 |     _libs=$LIBS | 
 | 9397 |     LIBS="$LIBS -lpthread" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9398 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 | 
 | 9399 | $as_echo_n "checking for pthread_create in -lpthread... " >&6; } | 
 | 9400 |     cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9401 | /* end confdefs.h.  */ | 
| Stefan Krah | ae66ca6 | 2012-11-22 22:36:57 +0100 | [diff] [blame] | 9402 |  | 
 | 9403 | #include <stdio.h> | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 9404 | #include <pthread.h> | 
| Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 9405 |  | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 9406 | void * start_routine (void *arg) { exit (0); } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9407 | int | 
 | 9408 | main () | 
 | 9409 | { | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 9410 |  | 
 | 9411 | pthread_create (NULL, NULL, start_routine, NULL) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9412 |   ; | 
 | 9413 |   return 0; | 
 | 9414 | } | 
 | 9415 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9416 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9417 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9418 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 9419 | $as_echo "yes" >&6; } | 
 | 9420 |     $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 9421 |  | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9422 |     posix_threads=yes | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9423 |     THREADOBJ="Python/thread.o" | 
| Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 9424 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9425 |  | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 9426 |     LIBS=$_libs | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9427 |     ac_fn_c_check_func "$LINENO" "pthread_detach" "ac_cv_func_pthread_detach" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 9428 | if test "x$ac_cv_func_pthread_detach" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9429 |   $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9430 |  | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9431 |     posix_threads=yes | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9432 |     THREADOBJ="Python/thread.o" | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9433 | else | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9434 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9435 |     ac_fn_c_check_header_mongrel "$LINENO" "atheos/threads.h" "ac_cv_header_atheos_threads_h" "$ac_includes_default" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 9436 | if test "x$ac_cv_header_atheos_threads_h" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9437 |   $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9438 |  | 
 | 9439 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9440 | $as_echo "#define ATHEOS_THREADS 1" >>confdefs.h | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9441 |  | 
 | 9442 |     THREADOBJ="Python/thread.o" | 
 | 9443 | else | 
 | 9444 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9445 |     ac_fn_c_check_header_mongrel "$LINENO" "kernel/OS.h" "ac_cv_header_kernel_OS_h" "$ac_includes_default" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 9446 | if test "x$ac_cv_header_kernel_OS_h" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9447 |   $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9448 |  | 
 | 9449 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9450 | $as_echo "#define BEOS_THREADS 1" >>confdefs.h | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9451 |  | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9452 |     THREADOBJ="Python/thread.o" | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9453 | else | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9454 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9455 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5 | 
 | 9456 | $as_echo_n "checking for pthread_create in -lpthreads... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 9457 | if ${ac_cv_lib_pthreads_pthread_create+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9458 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9459 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9460 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9461 | LIBS="-lpthreads  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9462 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9463 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9464 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9465 | /* Override any GCC internal prototype to avoid an error. | 
 | 9466 |    Use char because int might match the return type of a GCC | 
 | 9467 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9468 | #ifdef __cplusplus | 
 | 9469 | extern "C" | 
 | 9470 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9471 | char pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9472 | int | 
 | 9473 | main () | 
 | 9474 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9475 | return pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9476 |   ; | 
 | 9477 |   return 0; | 
 | 9478 | } | 
 | 9479 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9480 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9481 |   ac_cv_lib_pthreads_pthread_create=yes | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 9482 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9483 |   ac_cv_lib_pthreads_pthread_create=no | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 9484 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9485 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 9486 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9487 | LIBS=$ac_check_lib_save_LIBS | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 9488 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5 | 
 | 9490 | $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 9491 | if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9492 |   $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 9493 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 9494 |     posix_threads=yes | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9495 |     LIBS="$LIBS -lpthreads" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9496 |     THREADOBJ="Python/thread.o" | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 9497 | else | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 9498 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9499 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5 | 
 | 9500 | $as_echo_n "checking for pthread_create in -lc_r... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 9501 | if ${ac_cv_lib_c_r_pthread_create+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9502 |   $as_echo_n "(cached) " >&6 | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 9503 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9504 |   ac_check_lib_save_LIBS=$LIBS | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 9505 | LIBS="-lc_r  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9506 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9507 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9508 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9509 | /* Override any GCC internal prototype to avoid an error. | 
 | 9510 |    Use char because int might match the return type of a GCC | 
 | 9511 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9512 | #ifdef __cplusplus | 
 | 9513 | extern "C" | 
 | 9514 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9515 | char pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9516 | int | 
 | 9517 | main () | 
 | 9518 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9519 | return pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9520 |   ; | 
 | 9521 |   return 0; | 
 | 9522 | } | 
 | 9523 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9524 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9525 |   ac_cv_lib_c_r_pthread_create=yes | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 9526 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9527 |   ac_cv_lib_c_r_pthread_create=no | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 9528 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9529 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 9530 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9531 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 9532 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5 | 
 | 9534 | $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 9535 | if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9536 |   $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 9537 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 9538 |     posix_threads=yes | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9539 |     LIBS="$LIBS -lc_r" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9540 |     THREADOBJ="Python/thread.o" | 
| Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 9541 | else | 
| Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 9542 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9543 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __pthread_create_system in -lpthread" >&5 | 
 | 9544 | $as_echo_n "checking for __pthread_create_system in -lpthread... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 9545 | if ${ac_cv_lib_pthread___pthread_create_system+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9546 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +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 | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 9549 | LIBS="-lpthread  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +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 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +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 __pthread_create_system (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9560 | int | 
 | 9561 | main () | 
 | 9562 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9563 | return __pthread_create_system (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9564 |   ; | 
 | 9565 |   return 0; | 
 | 9566 | } | 
 | 9567 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +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_pthread___pthread_create_system=yes | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 9570 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9571 |   ac_cv_lib_pthread___pthread_create_system=no | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 9572 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +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 | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 9576 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_create_system" >&5 | 
 | 9578 | $as_echo "$ac_cv_lib_pthread___pthread_create_system" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 9579 | if test "x$ac_cv_lib_pthread___pthread_create_system" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9580 |   $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 9581 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 9582 |     posix_threads=yes | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9583 |     LIBS="$LIBS -lpthread" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9584 |     THREADOBJ="Python/thread.o" | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 9585 | else | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 9586 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9587 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lcma" >&5 | 
 | 9588 | $as_echo_n "checking for pthread_create in -lcma... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 9589 | if ${ac_cv_lib_cma_pthread_create+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9590 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 9591 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9592 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 9593 | LIBS="-lcma  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9594 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9595 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9596 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9597 | /* Override any GCC internal prototype to avoid an error. | 
 | 9598 |    Use char because int might match the return type of a GCC | 
 | 9599 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9600 | #ifdef __cplusplus | 
 | 9601 | extern "C" | 
 | 9602 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9603 | char pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9604 | int | 
 | 9605 | main () | 
 | 9606 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9607 | return pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9608 |   ; | 
 | 9609 |   return 0; | 
 | 9610 | } | 
 | 9611 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9612 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9613 |   ac_cv_lib_cma_pthread_create=yes | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 9614 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9615 |   ac_cv_lib_cma_pthread_create=no | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 9616 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9617 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 9618 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9619 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 9620 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cma_pthread_create" >&5 | 
 | 9622 | $as_echo "$ac_cv_lib_cma_pthread_create" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 9623 | if test "x$ac_cv_lib_cma_pthread_create" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9624 |   $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 9625 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 9626 |     posix_threads=yes | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9627 |     LIBS="$LIBS -lcma" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9628 |     THREADOBJ="Python/thread.o" | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 9629 | else | 
| Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 9630 |  | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9631 |     USE_THREAD_MODULE="#" | 
| Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 9632 | fi | 
 | 9633 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9634 |  | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9635 | fi | 
 | 9636 |  | 
| Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 9637 | fi | 
 | 9638 |  | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 9639 | fi | 
 | 9640 |  | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 9641 | fi | 
 | 9642 |  | 
| Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 9643 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9644 | fi | 
 | 9645 |  | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9646 |  | 
 | 9647 | fi | 
 | 9648 |  | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9649 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9650 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 9651 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9652 | fi | 
 | 9653 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9654 | fi | 
 | 9655 |  | 
 | 9656 |  | 
 | 9657 | fi | 
 | 9658 |  | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9659 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9660 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9661 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usconfig in -lmpc" >&5 | 
 | 9662 | $as_echo_n "checking for usconfig in -lmpc... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 9663 | if ${ac_cv_lib_mpc_usconfig+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9664 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9665 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9666 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9667 | LIBS="-lmpc  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9668 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9669 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9670 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9671 | /* Override any GCC internal prototype to avoid an error. | 
 | 9672 |    Use char because int might match the return type of a GCC | 
 | 9673 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9674 | #ifdef __cplusplus | 
 | 9675 | extern "C" | 
 | 9676 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9677 | char usconfig (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9678 | int | 
 | 9679 | main () | 
 | 9680 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9681 | return usconfig (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9682 |   ; | 
 | 9683 |   return 0; | 
 | 9684 | } | 
 | 9685 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9686 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9687 |   ac_cv_lib_mpc_usconfig=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9688 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9689 |   ac_cv_lib_mpc_usconfig=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9690 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9691 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 9692 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9693 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9694 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpc_usconfig" >&5 | 
 | 9696 | $as_echo "$ac_cv_lib_mpc_usconfig" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 9697 | if test "x$ac_cv_lib_mpc_usconfig" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9698 |   $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9699 |  | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9700 |     LIBS="$LIBS -lmpc" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9701 |     THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9702 |     USE_THREAD_MODULE="" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9703 | fi | 
 | 9704 |  | 
| Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 9705 |  | 
| Neal Norwitz | a978ab0 | 2002-11-02 16:58:05 +0000 | [diff] [blame] | 9706 |     if test "$posix_threads" != "yes"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9707 |       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5 | 
 | 9708 | $as_echo_n "checking for thr_create in -lthread... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 9709 | if ${ac_cv_lib_thread_thr_create+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9710 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9711 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9712 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9713 | LIBS="-lthread  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9714 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9715 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9716 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9717 | /* Override any GCC internal prototype to avoid an error. | 
 | 9718 |    Use char because int might match the return type of a GCC | 
 | 9719 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9720 | #ifdef __cplusplus | 
 | 9721 | extern "C" | 
 | 9722 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9723 | char thr_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9724 | int | 
 | 9725 | main () | 
 | 9726 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9727 | return thr_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9728 |   ; | 
 | 9729 |   return 0; | 
 | 9730 | } | 
 | 9731 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9732 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9733 |   ac_cv_lib_thread_thr_create=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9734 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9735 |   ac_cv_lib_thread_thr_create=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9736 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9737 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 9738 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9739 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9740 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5 | 
 | 9742 | $as_echo "$ac_cv_lib_thread_thr_create" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 9743 | if test "x$ac_cv_lib_thread_thr_create" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9744 |   $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9745 |  | 
| Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 9746 |       LIBS="$LIBS -lthread" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9747 |       THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 9748 |       USE_THREAD_MODULE="" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9749 | fi | 
 | 9750 |  | 
| Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 9751 |     fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9752 |  | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9753 |     if test "$USE_THREAD_MODULE" != "#" | 
 | 9754 |     then | 
 | 9755 |         # If the above checks didn't disable threads, (at least) OSF1 | 
 | 9756 |         # needs this '-threads' argument during linking. | 
 | 9757 |         case $ac_sys_system in | 
 | 9758 |         OSF1) LDLAST=-threads;; | 
 | 9759 |         esac | 
| Jeremy Hylton | 1a2ca86 | 2000-10-16 16:59:12 +0000 | [diff] [blame] | 9760 |     fi | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9761 | fi | 
| Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 9762 |  | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9763 | if test "$posix_threads" = "yes"; then | 
 | 9764 |       if test "$unistd_defines_pthreads" = "no"; then | 
| Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 9765 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9766 | $as_echo "#define _POSIX_THREADS 1" >>confdefs.h | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9767 |  | 
 | 9768 |       fi | 
 | 9769 |  | 
 | 9770 |       # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8. | 
 | 9771 |       case  $ac_sys_system/$ac_sys_release in | 
| Charles-François Natali | 4929eb9 | 2011-07-21 19:41:04 +0200 | [diff] [blame] | 9772 |       SunOS/5.6) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9773 | $as_echo "#define HAVE_PTHREAD_DESTRUCTOR 1" >>confdefs.h | 
| Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 9774 |  | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9775 | 		       ;; | 
 | 9776 |       SunOS/5.8) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9777 | $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9778 |  | 
 | 9779 | 		       ;; | 
| Charles-François Natali | 4929eb9 | 2011-07-21 19:41:04 +0200 | [diff] [blame] | 9780 |       AIX/*) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9781 | $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h | 
| Christian Heimes | cba36bb | 2008-01-30 22:54:18 +0000 | [diff] [blame] | 9782 |  | 
 | 9783 | 		       ;; | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9784 |       esac | 
 | 9785 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9786 |       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 | 
 | 9787 | $as_echo_n "checking if PTHREAD_SCOPE_SYSTEM is supported... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 9788 |       if ${ac_cv_pthread_system_supported+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9789 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9790 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9791 |   if test "$cross_compiling" = yes; then : | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9792 |   ac_cv_pthread_system_supported=no | 
 | 9793 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9794 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9795 | /* end confdefs.h.  */ | 
| Stefan Krah | ae66ca6 | 2012-11-22 22:36:57 +0100 | [diff] [blame] | 9796 |  | 
 | 9797 |       #include <stdio.h> | 
 | 9798 |       #include <pthread.h> | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9799 |       void *foo(void *parm) { | 
 | 9800 |         return NULL; | 
 | 9801 |       } | 
 | 9802 |       main() { | 
 | 9803 |         pthread_attr_t attr; | 
 | 9804 |         pthread_t id; | 
 | 9805 |         if (pthread_attr_init(&attr)) exit(-1); | 
 | 9806 |         if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1); | 
 | 9807 |         if (pthread_create(&id, &attr, foo, NULL)) exit(-1); | 
 | 9808 |         exit(0); | 
 | 9809 |       } | 
 | 9810 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9811 | if ac_fn_c_try_run "$LINENO"; then : | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9812 |   ac_cv_pthread_system_supported=yes | 
 | 9813 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9814 |   ac_cv_pthread_system_supported=no | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9815 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9816 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 9817 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9818 | fi | 
| Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 9819 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9820 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9821 | fi | 
 | 9822 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9823 |       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_system_supported" >&5 | 
 | 9824 | $as_echo "$ac_cv_pthread_system_supported" >&6; } | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9825 |       if test "$ac_cv_pthread_system_supported" = "yes"; then | 
 | 9826 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9827 | $as_echo "#define PTHREAD_SYSTEM_SCHED_SUPPORTED 1" >>confdefs.h | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9828 |  | 
 | 9829 |       fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9830 |       for ac_func in pthread_sigmask | 
 | 9831 | do : | 
 | 9832 |   ac_fn_c_check_func "$LINENO" "pthread_sigmask" "ac_cv_func_pthread_sigmask" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 9833 | if test "x$ac_cv_func_pthread_sigmask" = xyes; then : | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9834 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9835 | #define HAVE_PTHREAD_SIGMASK 1 | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9836 | _ACEOF | 
| Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 9837 |  case $ac_sys_system in | 
 | 9838 |         CYGWIN*) | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9839 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9840 | $as_echo "#define HAVE_BROKEN_PTHREAD_SIGMASK 1" >>confdefs.h | 
| Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 9841 |  | 
 | 9842 |             ;; | 
 | 9843 |         esac | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9844 | fi | 
 | 9845 | done | 
 | 9846 |  | 
| Christian Heimes | 0d604cf | 2013-08-21 13:26:05 +0200 | [diff] [blame] | 9847 |       for ac_func in pthread_atfork | 
 | 9848 | do : | 
 | 9849 |   ac_fn_c_check_func "$LINENO" "pthread_atfork" "ac_cv_func_pthread_atfork" | 
 | 9850 | if test "x$ac_cv_func_pthread_atfork" = xyes; then : | 
 | 9851 |   cat >>confdefs.h <<_ACEOF | 
 | 9852 | #define HAVE_PTHREAD_ATFORK 1 | 
 | 9853 | _ACEOF | 
 | 9854 |  | 
 | 9855 | fi | 
 | 9856 | done | 
 | 9857 |  | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9858 | fi | 
 | 9859 |  | 
 | 9860 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9861 | # Check for enable-ipv6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9862 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9863 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-ipv6 is specified" >&5 | 
 | 9864 | $as_echo_n "checking if --enable-ipv6 is specified... " >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9865 | # Check whether --enable-ipv6 was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9866 | if test "${enable_ipv6+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9867 |   enableval=$enable_ipv6;  case "$enableval" in | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9868 |   no) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9869 |        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 9870 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9871 |        ipv6=no | 
 | 9872 |        ;; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9873 |   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 9874 | $as_echo "yes" >&6; } | 
 | 9875 |        $as_echo "#define ENABLE_IPV6 1" >>confdefs.h | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9876 |  | 
 | 9877 |        ipv6=yes | 
 | 9878 |        ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9879 |   esac | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9880 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9881 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9882 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9883 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9884 |  /* AF_INET6 available check */ | 
 | 9885 | #include <sys/types.h> | 
 | 9886 | #include <sys/socket.h> | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 9887 | int | 
 | 9888 | main () | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9889 | { | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 9890 | int domain = AF_INET6; | 
 | 9891 |   ; | 
 | 9892 |   return 0; | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9893 | } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9894 | _ACEOF | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 9895 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9896 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9897 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 9898 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9899 |   ipv6=yes | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9900 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9901 | else | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9902 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9903 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 9904 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9905 |   ipv6=no | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9906 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9907 | fi | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 9908 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9909 |  | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 9910 | if test "$ipv6" = "yes"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9911 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RFC2553 API is available" >&5 | 
 | 9912 | $as_echo_n "checking if RFC2553 API is available... " >&6; } | 
 | 9913 | 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9914 | /* end confdefs.h.  */ | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9915 |  | 
 | 9916 | 	  #include <sys/types.h> | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 9917 | #include <netinet/in.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9918 | int | 
 | 9919 | main () | 
 | 9920 | { | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 9921 | struct sockaddr_in6 x; | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9922 | 			    x.sin6_scope_id; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9923 |   ; | 
 | 9924 |   return 0; | 
 | 9925 | } | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9926 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9927 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9928 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9929 |  | 
 | 9930 | 	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9931 | $as_echo "yes" >&6; } | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9932 | 	  ipv6=yes | 
 | 9933 |  | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 9934 | else | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9935 |  | 
 | 9936 | 	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9937 | $as_echo "no" >&6; } | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9938 | 	  ipv6=no | 
 | 9939 |  | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 9940 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9941 | 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] | 9942 | fi | 
 | 9943 |  | 
 | 9944 | if test "$ipv6" = "yes"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9945 | 	$as_echo "#define ENABLE_IPV6 1" >>confdefs.h | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 9946 |  | 
 | 9947 | fi | 
 | 9948 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9949 | fi | 
 | 9950 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9951 |  | 
 | 9952 | ipv6type=unknown | 
 | 9953 | ipv6lib=none | 
 | 9954 | ipv6trylibc=no | 
 | 9955 |  | 
 | 9956 | if test "$ipv6" = "yes"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9957 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ipv6 stack type" >&5 | 
 | 9958 | $as_echo_n "checking ipv6 stack type... " >&6; } | 
| Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 9959 | 	for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; | 
 | 9960 | 	do | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9961 | 		case $i in | 
 | 9962 | 		inria) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9963 | 						cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9964 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9965 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9966 | #include <netinet/in.h> | 
 | 9967 | #ifdef IPV6_INRIA_VERSION | 
 | 9968 | yes | 
 | 9969 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9970 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9971 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9972 |   $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 9973 |   ipv6type=$i | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9974 | fi | 
| Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 9975 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9976 |  | 
 | 9977 | 			;; | 
 | 9978 | 		kame) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9979 | 						cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9980 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9981 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9982 | #include <netinet/in.h> | 
 | 9983 | #ifdef __KAME__ | 
 | 9984 | yes | 
 | 9985 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9986 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9987 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9988 |   $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9989 |   ipv6type=$i; | 
 | 9990 | 				ipv6lib=inet6 | 
 | 9991 | 				ipv6libdir=/usr/local/v6/lib | 
 | 9992 | 				ipv6trylibc=yes | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9993 | fi | 
| Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 9994 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9995 |  | 
 | 9996 | 			;; | 
 | 9997 | 		linux-glibc) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9998 | 						cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9999 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10000 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10001 | #include <features.h> | 
 | 10002 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) | 
 | 10003 | yes | 
 | 10004 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10005 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10006 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10007 |   $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10008 |   ipv6type=$i; | 
 | 10009 | 				ipv6trylibc=yes | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10010 | fi | 
| Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 10011 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10012 |  | 
 | 10013 | 			;; | 
 | 10014 | 		linux-inet6) | 
 | 10015 | 						if test -d /usr/inet6; then | 
 | 10016 | 				ipv6type=$i | 
 | 10017 | 				ipv6lib=inet6 | 
 | 10018 | 				ipv6libdir=/usr/inet6/lib | 
| Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 10019 | 				BASECFLAGS="-I/usr/inet6/include $BASECFLAGS" | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10020 | 			fi | 
 | 10021 | 			;; | 
 | 10022 | 		solaris) | 
 | 10023 | 			if test -f /etc/netconfig; then | 
| Antoine Pitrou | 31e8595 | 2011-01-03 18:57:14 +0000 | [diff] [blame] | 10024 |                           if $GREP -q tcp6 /etc/netconfig; then | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10025 | 				ipv6type=$i | 
 | 10026 | 				ipv6trylibc=yes | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10027 |                           fi | 
 | 10028 |                         fi | 
 | 10029 | 			;; | 
 | 10030 | 		toshiba) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10031 | 			cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10032 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10033 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10034 | #include <sys/param.h> | 
 | 10035 | #ifdef _TOSHIBA_INET6 | 
 | 10036 | yes | 
 | 10037 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10038 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10039 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10040 |   $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10041 |   ipv6type=$i; | 
 | 10042 | 				ipv6lib=inet6; | 
| Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 10043 | 				ipv6libdir=/usr/local/v6/lib | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10044 | fi | 
| Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 10045 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10046 |  | 
 | 10047 | 			;; | 
 | 10048 | 		v6d) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10049 | 			cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10050 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10051 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10052 | #include </usr/local/v6/include/sys/v6config.h> | 
 | 10053 | #ifdef __V6D__ | 
 | 10054 | yes | 
 | 10055 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10056 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10057 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10058 |   $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10059 |   ipv6type=$i; | 
 | 10060 | 				ipv6lib=v6; | 
 | 10061 | 				ipv6libdir=/usr/local/v6/lib; | 
| Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 10062 | 				BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS" | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10063 | fi | 
| Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 10064 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10065 |  | 
 | 10066 | 			;; | 
 | 10067 | 		zeta) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10068 | 			cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10069 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10070 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10071 | #include <sys/param.h> | 
 | 10072 | #ifdef _ZETA_MINAMI_INET6 | 
 | 10073 | yes | 
 | 10074 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10075 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10076 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10077 |   $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10078 |   ipv6type=$i; | 
 | 10079 | 				ipv6lib=inet6; | 
| Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 10080 | 				ipv6libdir=/usr/local/v6/lib | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10081 | fi | 
| Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 10082 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10083 |  | 
 | 10084 | 			;; | 
 | 10085 | 		esac | 
 | 10086 | 		if test "$ipv6type" != "unknown"; then | 
 | 10087 | 			break | 
 | 10088 | 		fi | 
 | 10089 | 	done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10090 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6type" >&5 | 
 | 10091 | $as_echo "$ipv6type" >&6; } | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10092 | fi | 
 | 10093 |  | 
 | 10094 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then | 
 | 10095 | 	if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then | 
 | 10096 | 		LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" | 
 | 10097 | 		echo "using lib$ipv6lib" | 
 | 10098 | 	else | 
 | 10099 | 		if test $ipv6trylibc = "yes"; then | 
 | 10100 | 			echo "using libc" | 
 | 10101 | 		else | 
 | 10102 | 			echo 'Fatal: no $ipv6lib library found.  cannot continue.' | 
 | 10103 | 			echo "You need to fetch lib$ipv6lib.a from appropriate" | 
 | 10104 | 			echo 'ipv6 kit and compile beforehand.' | 
 | 10105 | 			exit 1 | 
 | 10106 | 		fi | 
 | 10107 | 	fi | 
 | 10108 | fi | 
 | 10109 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10110 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSX 10.5 SDK or later" >&5 | 
 | 10111 | $as_echo_n "checking for OSX 10.5 SDK or later... " >&6; } | 
 | 10112 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 10113 | /* end confdefs.h.  */ | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 10114 |  | 
 | 10115 |   #include <Carbon/Carbon.h> | 
| Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 10116 | int | 
 | 10117 | main () | 
 | 10118 | { | 
 | 10119 | FSIORefNum fRef = 0 | 
 | 10120 |   ; | 
 | 10121 |   return 0; | 
 | 10122 | } | 
| Mark Dickinson | 0712b56 | 2010-05-08 19:13:21 +0000 | [diff] [blame] | 10123 |  | 
| Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 10124 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10125 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 10126 |  | 
| Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 10127 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10128 | $as_echo "#define HAVE_OSX105_SDK 1" >>confdefs.h | 
| Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 10129 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10130 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 10131 | $as_echo "yes" >&6; } | 
| Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 10132 |  | 
| Mark Dickinson | 0712b56 | 2010-05-08 19:13:21 +0000 | [diff] [blame] | 10133 | else | 
 | 10134 |  | 
 | 10135 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10136 | $as_echo "no" >&6; } | 
 | 10137 |  | 
| Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 10138 | fi | 
| Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 10139 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 10140 |  | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 10141 | # Check for --with-doc-strings | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10142 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-doc-strings" >&5 | 
 | 10143 | $as_echo_n "checking for --with-doc-strings... " >&6; } | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 10144 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10145 | # Check whether --with-doc-strings was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10146 | if test "${with_doc_strings+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10147 |   withval=$with_doc_strings; | 
 | 10148 | fi | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 10149 |  | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 10150 |  | 
 | 10151 | if test -z "$with_doc_strings" | 
 | 10152 | then with_doc_strings="yes" | 
 | 10153 | fi | 
 | 10154 | if test "$with_doc_strings" != "no" | 
 | 10155 | then | 
 | 10156 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10157 | $as_echo "#define WITH_DOC_STRINGS 1" >>confdefs.h | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 10158 |  | 
 | 10159 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_doc_strings" >&5 | 
 | 10161 | $as_echo "$with_doc_strings" >&6; } | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 10162 |  | 
| Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 10163 | # Check for Python-specific malloc support | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10164 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tsc" >&5 | 
 | 10165 | $as_echo_n "checking for --with-tsc... " >&6; } | 
| Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 10166 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10167 | # Check whether --with-tsc was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10168 | if test "${with_tsc+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10169 |   withval=$with_tsc; | 
| Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 10170 | if test "$withval" != no | 
 | 10171 | then | 
 | 10172 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10173 | $as_echo "#define WITH_TSC 1" >>confdefs.h | 
| Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 10174 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10175 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 10176 | $as_echo "yes" >&6; } | 
 | 10177 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10178 | $as_echo "no" >&6; } | 
| Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 10179 | fi | 
 | 10180 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10181 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10182 | $as_echo "no" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10183 | fi | 
 | 10184 |  | 
| Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 10185 |  | 
 | 10186 | # Check for Python-specific malloc support | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10187 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pymalloc" >&5 | 
 | 10188 | $as_echo_n "checking for --with-pymalloc... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10189 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10190 | # Check whether --with-pymalloc was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10191 | if test "${with_pymalloc+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10192 |   withval=$with_pymalloc; | 
 | 10193 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10194 |  | 
| Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 10195 |  | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 10196 | if test -z "$with_pymalloc" | 
 | 10197 | then with_pymalloc="yes" | 
 | 10198 | fi | 
 | 10199 | if test "$with_pymalloc" != "no" | 
 | 10200 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10201 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10202 | $as_echo "#define WITH_PYMALLOC 1" >>confdefs.h | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 10203 |  | 
 | 10204 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pymalloc" >&5 | 
 | 10206 | $as_echo "$with_pymalloc" >&6; } | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 10207 |  | 
| Benjamin Peterson | 91c12eb | 2009-12-03 02:52:39 +0000 | [diff] [blame] | 10208 | # Check for Valgrind support | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10209 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-valgrind" >&5 | 
 | 10210 | $as_echo_n "checking for --with-valgrind... " >&6; } | 
| Benjamin Peterson | 91c12eb | 2009-12-03 02:52:39 +0000 | [diff] [blame] | 10211 |  | 
 | 10212 | # Check whether --with-valgrind was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10213 | if test "${with_valgrind+set}" = set; then : | 
| Benjamin Peterson | 91c12eb | 2009-12-03 02:52:39 +0000 | [diff] [blame] | 10214 |   withval=$with_valgrind; | 
 | 10215 | else | 
 | 10216 |   with_valgrind=no | 
 | 10217 | fi | 
 | 10218 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_valgrind" >&5 | 
 | 10220 | $as_echo "$with_valgrind" >&6; } | 
| Benjamin Peterson | 91c12eb | 2009-12-03 02:52:39 +0000 | [diff] [blame] | 10221 | if test "$with_valgrind" != no; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10222 |     ac_fn_c_check_header_mongrel "$LINENO" "valgrind/valgrind.h" "ac_cv_header_valgrind_valgrind_h" "$ac_includes_default" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10223 | if test "x$ac_cv_header_valgrind_valgrind_h" = xyes; then : | 
| Benjamin Peterson | 91c12eb | 2009-12-03 02:52:39 +0000 | [diff] [blame] | 10224 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10225 | $as_echo "#define WITH_VALGRIND 1" >>confdefs.h | 
| Benjamin Peterson | 91c12eb | 2009-12-03 02:52:39 +0000 | [diff] [blame] | 10226 |  | 
 | 10227 | else | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 10228 |   as_fn_error $? "Valgrind support requested but headers not available" "$LINENO" 5 | 
| Benjamin Peterson | 91c12eb | 2009-12-03 02:52:39 +0000 | [diff] [blame] | 10229 |  | 
 | 10230 | fi | 
 | 10231 |  | 
 | 10232 |  | 
 | 10233 | fi | 
 | 10234 |  | 
| Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 10235 | # Check for --with-wctype-functions | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10236 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-wctype-functions" >&5 | 
 | 10237 | $as_echo_n "checking for --with-wctype-functions... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10238 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10239 | # Check whether --with-wctype-functions was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10240 | if test "${with_wctype_functions+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10241 |   withval=$with_wctype_functions; | 
| Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 10242 | if test "$withval" != no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10243 | then | 
 | 10244 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10245 | $as_echo "#define WANT_WCTYPE_FUNCTIONS 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10246 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10247 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 10248 | $as_echo "yes" >&6; } | 
 | 10249 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10250 | $as_echo "no" >&6; } | 
| Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 10251 | fi | 
 | 10252 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10253 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10254 | $as_echo "no" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10255 | fi | 
 | 10256 |  | 
| Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 10257 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10258 | # -I${DLINCLDIR} is added to the compile rule for importdl.o | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 10259 |  | 
| Guido van Rossum | 98935bf | 2001-09-05 19:13:16 +0000 | [diff] [blame] | 10260 | DLINCLDIR=. | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 10261 |  | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 10262 | # the dlopen() function means we might want to use dynload_shlib.o. some | 
 | 10263 | # 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] | 10264 | for ac_func in dlopen | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10265 | do : | 
 | 10266 |   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10267 | if test "x$ac_cv_func_dlopen" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10268 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10269 | #define HAVE_DLOPEN 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10270 | _ACEOF | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 10271 |  | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 10272 | fi | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 10273 | done | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 10274 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10275 |  | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 10276 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic | 
 | 10277 | # loading of modules. | 
 | 10278 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10279 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking DYNLOADFILE" >&5 | 
 | 10280 | $as_echo_n "checking DYNLOADFILE... " >&6; } | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 10281 | if test -z "$DYNLOADFILE" | 
 | 10282 | then | 
 | 10283 | 	case $ac_sys_system/$ac_sys_release in | 
| Martin v. Löwis | c19c5a6 | 2003-11-18 20:00:44 +0000 | [diff] [blame] | 10284 | 	AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c | 
 | 10285 | 	if test "$ac_cv_func_dlopen" = yes | 
 | 10286 | 	then DYNLOADFILE="dynload_shlib.o" | 
 | 10287 | 	else DYNLOADFILE="dynload_aix.o" | 
 | 10288 | 	fi | 
 | 10289 | 	;; | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 10290 | 	BeOS*) DYNLOADFILE="dynload_beos.o";; | 
 | 10291 | 	hp*|HP*) DYNLOADFILE="dynload_hpux.o";; | 
| Anthony Baxter | 8220174 | 2006-04-09 15:07:40 +0000 | [diff] [blame] | 10292 | 	# Use dynload_next.c only on 10.2 and below, which don't have native dlopen() | 
 | 10293 | 	Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";; | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10294 | 	atheos*) DYNLOADFILE="dynload_atheos.o";; | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 10295 | 	*) | 
 | 10296 | 	# use dynload_shlib.c and dlopen() if we have it; otherwise stub | 
 | 10297 | 	# out any dynamic loading | 
 | 10298 | 	if test "$ac_cv_func_dlopen" = yes | 
 | 10299 | 	then DYNLOADFILE="dynload_shlib.o" | 
 | 10300 | 	else DYNLOADFILE="dynload_stub.o" | 
 | 10301 | 	fi | 
 | 10302 | 	;; | 
 | 10303 | 	esac | 
 | 10304 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DYNLOADFILE" >&5 | 
 | 10306 | $as_echo "$DYNLOADFILE" >&6; } | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 10307 | if test "$DYNLOADFILE" != "dynload_stub.o" | 
 | 10308 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10309 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10310 | $as_echo "#define HAVE_DYNAMIC_LOADING 1" >>confdefs.h | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 10311 |  | 
 | 10312 | fi | 
 | 10313 |  | 
| Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 10314 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python | 
 | 10315 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10316 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10317 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP_OBJS" >&5 | 
 | 10318 | $as_echo_n "checking MACHDEP_OBJS... " >&6; } | 
| Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 10319 | if test -z "$MACHDEP_OBJS" | 
 | 10320 | then | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10321 | 	MACHDEP_OBJS=$extra_machdep_objs | 
 | 10322 | else | 
 | 10323 | 	MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" | 
| Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 10324 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: MACHDEP_OBJS" >&5 | 
 | 10326 | $as_echo "MACHDEP_OBJS" >&6; } | 
| Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 10327 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10328 | # checks for library functions | 
| Martin v. Löwis | aef18b1 | 2008-03-24 13:31:16 +0000 | [diff] [blame] | 10329 | for ac_func in alarm setitimer getitimer bind_textdomain_codeset chown \ | 
 | 10330 |  clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \ | 
| doko@ubuntu.com | a50b0de | 2015-04-13 21:55:59 +0200 | [diff] [blame] | 10331 |  gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \ | 
 | 10332 |  getentropy \ | 
| Martin v. Löwis | 50ea456 | 2009-11-27 13:56:01 +0000 | [diff] [blame] | 10333 |  getpriority getresuid getresgid getpwent getspnam getspent getsid getwd \ | 
| Benjamin Peterson | d16e01c | 2014-02-04 10:20:26 -0500 | [diff] [blame] | 10334 |  initgroups kill killpg lchmod lchown lstat mkfifo mknod mktime mmap \ | 
| Martin v. Löwis | a5f0907 | 2002-10-11 05:37:59 +0000 | [diff] [blame] | 10335 |  mremap nice pathconf pause plock poll pthread_init \ | 
| Guido van Rossum | 162e38c | 2003-02-19 15:25:10 +0000 | [diff] [blame] | 10336 |  putenv readlink realpath \ | 
| Jesse Noller | 355b126 | 2009-04-02 00:03:28 +0000 | [diff] [blame] | 10337 |  select sem_open sem_timedwait sem_getvalue sem_unlink setegid seteuid \ | 
 | 10338 |  setgid \ | 
| Martin v. Löwis | 4daacb1 | 2003-03-28 18:37:01 +0000 | [diff] [blame] | 10339 |  setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \ | 
| Martin v. Löwis | 50ea456 | 2009-11-27 13:56:01 +0000 | [diff] [blame] | 10340 |  setlocale setregid setreuid setresuid setresgid \ | 
 | 10341 |  setsid setpgid setpgrp setuid setvbuf snprintf \ | 
| Skip Montanaro | 7e11a01 | 2004-02-07 12:55:46 +0000 | [diff] [blame] | 10342 |  sigaction siginterrupt sigrelse strftime \ | 
| Michael W. Hudson | 34f20ea | 2002-05-27 15:08:24 +0000 | [diff] [blame] | 10343 |  sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ | 
| Neal Norwitz | 05a4559 | 2006-03-20 06:30:08 +0000 | [diff] [blame] | 10344 |  truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10345 | do : | 
 | 10346 |   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
 | 10347 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 10348 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10349 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10350 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10351 | _ACEOF | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10352 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10353 | fi | 
 | 10354 | done | 
 | 10355 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10356 |  | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10357 | # For some functions, having a definition is not sufficient, since | 
 | 10358 | # we want to take their address. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10359 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chroot" >&5 | 
 | 10360 | $as_echo_n "checking for chroot... " >&6; } | 
 | 10361 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10362 | /* end confdefs.h.  */ | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10363 | #include <unistd.h> | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10364 | int | 
 | 10365 | main () | 
 | 10366 | { | 
 | 10367 | void *x=chroot | 
 | 10368 |   ; | 
 | 10369 |   return 0; | 
 | 10370 | } | 
 | 10371 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10372 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10373 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10374 | $as_echo "#define HAVE_CHROOT 1" >>confdefs.h | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10375 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 10376 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10377 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10378 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10379 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10380 | $as_echo "no" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10381 |  | 
 | 10382 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10383 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10384 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for link" >&5 | 
 | 10385 | $as_echo_n "checking for link... " >&6; } | 
 | 10386 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10387 | /* end confdefs.h.  */ | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10388 | #include <unistd.h> | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10389 | int | 
 | 10390 | main () | 
 | 10391 | { | 
 | 10392 | void *x=link | 
 | 10393 |   ; | 
 | 10394 |   return 0; | 
 | 10395 | } | 
 | 10396 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10397 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10398 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10399 | $as_echo "#define HAVE_LINK 1" >>confdefs.h | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10400 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 10401 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10402 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10403 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10404 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10405 | $as_echo "no" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10406 |  | 
 | 10407 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10408 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10409 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for symlink" >&5 | 
 | 10410 | $as_echo_n "checking for symlink... " >&6; } | 
 | 10411 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10412 | /* end confdefs.h.  */ | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10413 | #include <unistd.h> | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10414 | int | 
 | 10415 | main () | 
 | 10416 | { | 
 | 10417 | void *x=symlink | 
 | 10418 |   ; | 
 | 10419 |   return 0; | 
 | 10420 | } | 
 | 10421 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10422 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10423 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10424 | $as_echo "#define HAVE_SYMLINK 1" >>confdefs.h | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10425 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 10426 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10427 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10428 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10429 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10430 | $as_echo "no" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10431 |  | 
 | 10432 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10433 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10434 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fchdir" >&5 | 
 | 10435 | $as_echo_n "checking for fchdir... " >&6; } | 
 | 10436 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10437 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 10438 | #include <unistd.h> | 
 | 10439 | int | 
 | 10440 | main () | 
 | 10441 | { | 
 | 10442 | void *x=fchdir | 
 | 10443 |   ; | 
 | 10444 |   return 0; | 
 | 10445 | } | 
 | 10446 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10447 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 10448 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10449 | $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 10450 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 10451 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10452 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 10453 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10454 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10455 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 10456 |  | 
 | 10457 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10458 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10459 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fsync" >&5 | 
 | 10460 | $as_echo_n "checking for fsync... " >&6; } | 
 | 10461 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10462 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 10463 | #include <unistd.h> | 
 | 10464 | int | 
 | 10465 | main () | 
 | 10466 | { | 
 | 10467 | void *x=fsync | 
 | 10468 |   ; | 
 | 10469 |   return 0; | 
 | 10470 | } | 
 | 10471 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10472 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 10473 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10474 | $as_echo "#define HAVE_FSYNC 1" >>confdefs.h | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 10475 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 10476 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10477 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 10478 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10479 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10480 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 10481 |  | 
 | 10482 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10483 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10484 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fdatasync" >&5 | 
 | 10485 | $as_echo_n "checking for fdatasync... " >&6; } | 
 | 10486 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10487 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 10488 | #include <unistd.h> | 
 | 10489 | int | 
 | 10490 | main () | 
 | 10491 | { | 
 | 10492 | void *x=fdatasync | 
 | 10493 |   ; | 
 | 10494 |   return 0; | 
 | 10495 | } | 
 | 10496 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10497 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 10498 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10499 | $as_echo "#define HAVE_FDATASYNC 1" >>confdefs.h | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 10500 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 10501 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10502 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 10503 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10504 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10505 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 10506 |  | 
 | 10507 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10508 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10509 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll" >&5 | 
 | 10510 | $as_echo_n "checking for epoll... " >&6; } | 
 | 10511 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 10512 | /* end confdefs.h.  */ | 
 | 10513 | #include <sys/epoll.h> | 
 | 10514 | int | 
 | 10515 | main () | 
 | 10516 | { | 
 | 10517 | void *x=epoll_create | 
 | 10518 |   ; | 
 | 10519 |   return 0; | 
 | 10520 | } | 
 | 10521 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10522 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10523 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10524 | $as_echo "#define HAVE_EPOLL 1" >>confdefs.h | 
| Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 10525 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 10526 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10527 | $as_echo "yes" >&6; } | 
| Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 10528 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10529 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10530 | $as_echo "no" >&6; } | 
| Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 10531 |  | 
 | 10532 | fi | 
| Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 10533 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10534 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kqueue" >&5 | 
 | 10535 | $as_echo_n "checking for kqueue... " >&6; } | 
 | 10536 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 10537 | /* end confdefs.h.  */ | 
 | 10538 |  | 
 | 10539 | #include <sys/types.h> | 
 | 10540 | #include <sys/event.h> | 
 | 10541 |  | 
 | 10542 | int | 
 | 10543 | main () | 
 | 10544 | { | 
 | 10545 | int x=kqueue() | 
 | 10546 |   ; | 
 | 10547 |   return 0; | 
 | 10548 | } | 
 | 10549 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10550 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 10551 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10552 | $as_echo "#define HAVE_KQUEUE 1" >>confdefs.h | 
| Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 10553 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 10554 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10555 | $as_echo "yes" >&6; } | 
| Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 10556 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10557 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10558 | $as_echo "no" >&6; } | 
| Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 10559 |  | 
 | 10560 | fi | 
| Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 10561 | 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] | 10562 | # On some systems (eg. FreeBSD 5), we would find a definition of the | 
 | 10563 | # functions ctermid_r, setgroups in the library, but no prototype | 
 | 10564 | # (e.g. because we use _XOPEN_SOURCE). See whether we can take their | 
 | 10565 | # address to avoid compiler warnings and potential miscompilations | 
 | 10566 | # because of the missing prototypes. | 
 | 10567 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10568 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctermid_r" >&5 | 
 | 10569 | $as_echo_n "checking for ctermid_r... " >&6; } | 
 | 10570 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10571 | /* end confdefs.h.  */ | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10572 |  | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10573 | #include <stdio.h> | 
 | 10574 |  | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10575 | int | 
 | 10576 | main () | 
 | 10577 | { | 
 | 10578 | void* p = ctermid_r | 
 | 10579 |   ; | 
 | 10580 |   return 0; | 
 | 10581 | } | 
 | 10582 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10583 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10584 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10585 | $as_echo "#define HAVE_CTERMID_R 1" >>confdefs.h | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10586 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 10587 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10588 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10589 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10590 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10591 | $as_echo "no" >&6; } | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10592 |  | 
 | 10593 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10594 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 10595 |  | 
| Antoine Pitrou | b170f17 | 2010-09-10 18:47:36 +0000 | [diff] [blame] | 10596 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock declaration" >&5 | 
 | 10597 | $as_echo_n "checking for flock declaration... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10598 | if ${ac_cv_flock_decl+:} false; then : | 
| Antoine Pitrou | b170f17 | 2010-09-10 18:47:36 +0000 | [diff] [blame] | 10599 |   $as_echo_n "(cached) " >&6 | 
 | 10600 | else | 
 | 10601 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10602 | /* end confdefs.h.  */ | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 10603 | #include <sys/file.h> | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 10604 | int | 
 | 10605 | main () | 
 | 10606 | { | 
 | 10607 | void* p = flock | 
| Antoine Pitrou | b170f17 | 2010-09-10 18:47:36 +0000 | [diff] [blame] | 10608 |  | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 10609 |   ; | 
 | 10610 |   return 0; | 
 | 10611 | } | 
 | 10612 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10613 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Antoine Pitrou | b170f17 | 2010-09-10 18:47:36 +0000 | [diff] [blame] | 10614 |   ac_cv_flock_decl=yes | 
 | 10615 | else | 
 | 10616 |   ac_cv_flock_decl=no | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 10617 |  | 
 | 10618 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10619 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Antoine Pitrou | 8572981 | 2010-09-07 14:55:24 +0000 | [diff] [blame] | 10620 |  | 
| Antoine Pitrou | b170f17 | 2010-09-10 18:47:36 +0000 | [diff] [blame] | 10621 | fi | 
 | 10622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flock_decl" >&5 | 
 | 10623 | $as_echo "$ac_cv_flock_decl" >&6; } | 
 | 10624 | if test "x${ac_cv_flock_decl}" = xyes; then | 
 | 10625 |   for ac_func in flock | 
 | 10626 | do : | 
 | 10627 |   ac_fn_c_check_func "$LINENO" "flock" "ac_cv_func_flock" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10628 | if test "x$ac_cv_func_flock" = xyes; then : | 
| Antoine Pitrou | b170f17 | 2010-09-10 18:47:36 +0000 | [diff] [blame] | 10629 |   cat >>confdefs.h <<_ACEOF | 
 | 10630 | #define HAVE_FLOCK 1 | 
| Antoine Pitrou | 8572981 | 2010-09-07 14:55:24 +0000 | [diff] [blame] | 10631 | _ACEOF | 
| Antoine Pitrou | b170f17 | 2010-09-10 18:47:36 +0000 | [diff] [blame] | 10632 |  | 
| Antoine Pitrou | 8572981 | 2010-09-07 14:55:24 +0000 | [diff] [blame] | 10633 | else | 
| Antoine Pitrou | b170f17 | 2010-09-10 18:47:36 +0000 | [diff] [blame] | 10634 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock in -lbsd" >&5 | 
| Antoine Pitrou | 8572981 | 2010-09-07 14:55:24 +0000 | [diff] [blame] | 10635 | $as_echo_n "checking for flock in -lbsd... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10636 | if ${ac_cv_lib_bsd_flock+:} false; then : | 
| Antoine Pitrou | 8572981 | 2010-09-07 14:55:24 +0000 | [diff] [blame] | 10637 |   $as_echo_n "(cached) " >&6 | 
 | 10638 | else | 
 | 10639 |   ac_check_lib_save_LIBS=$LIBS | 
 | 10640 | LIBS="-lbsd  $LIBS" | 
 | 10641 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 10642 | /* end confdefs.h.  */ | 
 | 10643 |  | 
 | 10644 | /* Override any GCC internal prototype to avoid an error. | 
 | 10645 |    Use char because int might match the return type of a GCC | 
 | 10646 |    builtin and then its argument prototype would still apply.  */ | 
 | 10647 | #ifdef __cplusplus | 
 | 10648 | extern "C" | 
 | 10649 | #endif | 
 | 10650 | char flock (); | 
 | 10651 | int | 
 | 10652 | main () | 
 | 10653 | { | 
 | 10654 | return flock (); | 
 | 10655 |   ; | 
 | 10656 |   return 0; | 
 | 10657 | } | 
 | 10658 | _ACEOF | 
 | 10659 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 10660 |   ac_cv_lib_bsd_flock=yes | 
 | 10661 | else | 
 | 10662 |   ac_cv_lib_bsd_flock=no | 
 | 10663 | fi | 
 | 10664 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 10665 |     conftest$ac_exeext conftest.$ac_ext | 
 | 10666 | LIBS=$ac_check_lib_save_LIBS | 
 | 10667 | fi | 
 | 10668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_flock" >&5 | 
 | 10669 | $as_echo "$ac_cv_lib_bsd_flock" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10670 | if test "x$ac_cv_lib_bsd_flock" = xyes; then : | 
| Antoine Pitrou | b170f17 | 2010-09-10 18:47:36 +0000 | [diff] [blame] | 10671 |   $as_echo "#define HAVE_FLOCK 1" >>confdefs.h | 
| Antoine Pitrou | 8572981 | 2010-09-07 14:55:24 +0000 | [diff] [blame] | 10672 |  | 
 | 10673 |  | 
 | 10674 | $as_echo "#define FLOCK_NEEDS_LIBBSD 1" >>confdefs.h | 
 | 10675 |  | 
 | 10676 |  | 
 | 10677 | fi | 
 | 10678 |  | 
 | 10679 |  | 
 | 10680 | fi | 
| Antoine Pitrou | b170f17 | 2010-09-10 18:47:36 +0000 | [diff] [blame] | 10681 | done | 
 | 10682 |  | 
| Antoine Pitrou | 8572981 | 2010-09-07 14:55:24 +0000 | [diff] [blame] | 10683 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10684 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10685 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize" >&5 | 
 | 10686 | $as_echo_n "checking for getpagesize... " >&6; } | 
 | 10687 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10688 | /* end confdefs.h.  */ | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 10689 |  | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 10690 | #include <unistd.h> | 
 | 10691 |  | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 10692 | int | 
 | 10693 | main () | 
 | 10694 | { | 
 | 10695 | void* p = getpagesize | 
 | 10696 |   ; | 
 | 10697 |   return 0; | 
 | 10698 | } | 
 | 10699 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10700 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 10701 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10702 | $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 10703 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 10704 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10705 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 10706 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10707 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10708 | $as_echo "no" >&6; } | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 10709 |  | 
 | 10710 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10711 | 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] | 10712 |  | 
| Charles-François Natali | 93a1175 | 2011-11-27 13:01:35 +0100 | [diff] [blame] | 10713 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken unsetenv" >&5 | 
 | 10714 | $as_echo_n "checking for broken unsetenv... " >&6; } | 
 | 10715 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 10716 | /* end confdefs.h.  */ | 
 | 10717 |  | 
 | 10718 | #include <stdlib.h> | 
 | 10719 |  | 
 | 10720 | int | 
 | 10721 | main () | 
 | 10722 | { | 
 | 10723 | int res = unsetenv("DUMMY") | 
 | 10724 |   ; | 
 | 10725 |   return 0; | 
 | 10726 | } | 
 | 10727 | _ACEOF | 
 | 10728 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 10729 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10730 | $as_echo "no" >&6; } | 
 | 10731 | else | 
 | 10732 |  | 
 | 10733 | $as_echo "#define HAVE_BROKEN_UNSETENV 1" >>confdefs.h | 
 | 10734 |  | 
 | 10735 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 10736 | $as_echo "yes" >&6; } | 
 | 10737 |  | 
 | 10738 | fi | 
 | 10739 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 10740 |  | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10741 | for ac_prog in true | 
 | 10742 | do | 
 | 10743 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 10744 | set dummy $ac_prog; ac_word=$2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10745 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 10746 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10747 | if ${ac_cv_prog_TRUE+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10748 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10749 | else | 
 | 10750 |   if test -n "$TRUE"; then | 
 | 10751 |   ac_cv_prog_TRUE="$TRUE" # Let the user override the test. | 
 | 10752 | else | 
 | 10753 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 10754 | for as_dir in $PATH | 
 | 10755 | do | 
 | 10756 |   IFS=$as_save_IFS | 
 | 10757 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10758 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 10759 |   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] | 10760 |     ac_cv_prog_TRUE="$ac_prog" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10761 |     $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] | 10762 |     break 2 | 
 | 10763 |   fi | 
 | 10764 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10765 |   done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10766 | IFS=$as_save_IFS | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10767 |  | 
 | 10768 | fi | 
 | 10769 | fi | 
 | 10770 | TRUE=$ac_cv_prog_TRUE | 
 | 10771 | if test -n "$TRUE"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10772 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUE" >&5 | 
 | 10773 | $as_echo "$TRUE" >&6; } | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10774 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10775 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10776 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10777 | fi | 
 | 10778 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10779 |  | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10780 |   test -n "$TRUE" && break | 
 | 10781 | done | 
 | 10782 | test -n "$TRUE" || TRUE="/bin/true" | 
 | 10783 |  | 
 | 10784 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10785 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lc" >&5 | 
 | 10786 | $as_echo_n "checking for inet_aton in -lc... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10787 | if ${ac_cv_lib_c_inet_aton+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10788 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10789 | else | 
 | 10790 |   ac_check_lib_save_LIBS=$LIBS | 
 | 10791 | LIBS="-lc  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10792 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10793 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10794 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10795 | /* Override any GCC internal prototype to avoid an error. | 
 | 10796 |    Use char because int might match the return type of a GCC | 
 | 10797 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10798 | #ifdef __cplusplus | 
 | 10799 | extern "C" | 
 | 10800 | #endif | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10801 | char inet_aton (); | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10802 | int | 
 | 10803 | main () | 
 | 10804 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10805 | return inet_aton (); | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10806 |   ; | 
 | 10807 |   return 0; | 
 | 10808 | } | 
 | 10809 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10810 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10811 |   ac_cv_lib_c_inet_aton=yes | 
 | 10812 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10813 |   ac_cv_lib_c_inet_aton=no | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10814 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10815 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 10816 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10817 | LIBS=$ac_check_lib_save_LIBS | 
 | 10818 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_inet_aton" >&5 | 
 | 10820 | $as_echo "$ac_cv_lib_c_inet_aton" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10821 | 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] | 10822 |   $ac_cv_prog_TRUE | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10823 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10824 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5 | 
 | 10825 | $as_echo_n "checking for inet_aton in -lresolv... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10826 | if ${ac_cv_lib_resolv_inet_aton+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10827 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10828 | else | 
 | 10829 |   ac_check_lib_save_LIBS=$LIBS | 
 | 10830 | LIBS="-lresolv  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10831 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10832 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10833 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10834 | /* Override any GCC internal prototype to avoid an error. | 
 | 10835 |    Use char because int might match the return type of a GCC | 
 | 10836 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10837 | #ifdef __cplusplus | 
 | 10838 | extern "C" | 
 | 10839 | #endif | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10840 | char inet_aton (); | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10841 | int | 
 | 10842 | main () | 
 | 10843 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10844 | return inet_aton (); | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10845 |   ; | 
 | 10846 |   return 0; | 
 | 10847 | } | 
 | 10848 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10849 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10850 |   ac_cv_lib_resolv_inet_aton=yes | 
 | 10851 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10852 |   ac_cv_lib_resolv_inet_aton=no | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10853 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10854 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 10855 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10856 | LIBS=$ac_check_lib_save_LIBS | 
 | 10857 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5 | 
 | 10859 | $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10860 | 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] | 10861 |   cat >>confdefs.h <<_ACEOF | 
 | 10862 | #define HAVE_LIBRESOLV 1 | 
 | 10863 | _ACEOF | 
 | 10864 |  | 
 | 10865 |   LIBS="-lresolv $LIBS" | 
 | 10866 |  | 
 | 10867 | fi | 
 | 10868 |  | 
 | 10869 |  | 
 | 10870 | fi | 
 | 10871 |  | 
 | 10872 |  | 
| Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 10873 | # On Tru64, chflags seems to be present, but calling it will | 
 | 10874 | # exit Python | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10875 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chflags" >&5 | 
 | 10876 | $as_echo_n "checking for chflags... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10877 | if ${ac_cv_have_chflags+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10878 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10879 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10880 |   if test "$cross_compiling" = yes; then : | 
| Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 10881 |   ac_cv_have_chflags=cross | 
| Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 10882 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10883 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 10884 | /* end confdefs.h.  */ | 
| Ned Deily | 43e1054 | 2011-06-27 23:41:53 -0700 | [diff] [blame] | 10885 |  | 
| Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 10886 | #include <sys/stat.h> | 
 | 10887 | #include <unistd.h> | 
 | 10888 | int main(int argc, char*argv[]) | 
 | 10889 | { | 
 | 10890 |   if(chflags(argv[0], 0) != 0) | 
 | 10891 |     return 1; | 
 | 10892 |   return 0; | 
 | 10893 | } | 
| Ned Deily | 43e1054 | 2011-06-27 23:41:53 -0700 | [diff] [blame] | 10894 |  | 
| Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 10895 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10896 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10897 |   ac_cv_have_chflags=yes | 
| Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10898 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10899 |   ac_cv_have_chflags=no | 
| Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10900 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10901 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 10902 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 10903 | fi | 
 | 10904 |  | 
| Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10905 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10906 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_chflags" >&5 | 
 | 10908 | $as_echo "$ac_cv_have_chflags" >&6; } | 
| Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 10909 | if test "$ac_cv_have_chflags" = cross ; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10910 |   ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10911 | if test "x$ac_cv_func_chflags" = xyes; then : | 
| Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 10912 |   ac_cv_have_chflags="yes" | 
 | 10913 | else | 
 | 10914 |   ac_cv_have_chflags="no" | 
 | 10915 | fi | 
 | 10916 |  | 
 | 10917 | fi | 
 | 10918 | if test "$ac_cv_have_chflags" = yes ; then | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10919 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10920 | $as_echo "#define HAVE_CHFLAGS 1" >>confdefs.h | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10921 |  | 
 | 10922 | fi | 
 | 10923 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10924 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lchflags" >&5 | 
 | 10925 | $as_echo_n "checking for lchflags... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10926 | if ${ac_cv_have_lchflags+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10927 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10928 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10929 |   if test "$cross_compiling" = yes; then : | 
| Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 10930 |   ac_cv_have_lchflags=cross | 
| Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 10931 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10932 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 10933 | /* end confdefs.h.  */ | 
| Ned Deily | 43e1054 | 2011-06-27 23:41:53 -0700 | [diff] [blame] | 10934 |  | 
| Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 10935 | #include <sys/stat.h> | 
 | 10936 | #include <unistd.h> | 
 | 10937 | int main(int argc, char*argv[]) | 
 | 10938 | { | 
 | 10939 |   if(lchflags(argv[0], 0) != 0) | 
 | 10940 |     return 1; | 
 | 10941 |   return 0; | 
 | 10942 | } | 
| Ned Deily | 43e1054 | 2011-06-27 23:41:53 -0700 | [diff] [blame] | 10943 |  | 
| Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 10944 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10945 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10946 |   ac_cv_have_lchflags=yes | 
| Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10947 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10948 |   ac_cv_have_lchflags=no | 
| Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 10949 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10950 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 10951 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10952 | fi | 
 | 10953 |  | 
 | 10954 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10955 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_lchflags" >&5 | 
 | 10957 | $as_echo "$ac_cv_have_lchflags" >&6; } | 
| Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 10958 | if test "$ac_cv_have_lchflags" = cross ; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10959 |   ac_fn_c_check_func "$LINENO" "lchflags" "ac_cv_func_lchflags" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10960 | if test "x$ac_cv_func_lchflags" = xyes; then : | 
| Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 10961 |   ac_cv_have_lchflags="yes" | 
 | 10962 | else | 
 | 10963 |   ac_cv_have_lchflags="no" | 
 | 10964 | fi | 
 | 10965 |  | 
 | 10966 | fi | 
 | 10967 | if test "$ac_cv_have_lchflags" = yes ; then | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10968 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10969 | $as_echo "#define HAVE_LCHFLAGS 1" >>confdefs.h | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10970 |  | 
 | 10971 | fi | 
 | 10972 |  | 
| Ronald Oussoren | f875264 | 2006-07-06 10:13:35 +0000 | [diff] [blame] | 10973 | case $ac_sys_system/$ac_sys_release in | 
 | 10974 | Darwin/*) | 
 | 10975 | 	_CUR_CFLAGS="${CFLAGS}" | 
 | 10976 | 	_CUR_LDFLAGS="${LDFLAGS}" | 
 | 10977 | 	CFLAGS="${CFLAGS} -Wl,-search_paths_first" | 
 | 10978 | 	LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib" | 
 | 10979 | 	;; | 
 | 10980 | esac | 
 | 10981 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10982 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5 | 
 | 10983 | $as_echo_n "checking for inflateCopy in -lz... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 10984 | if ${ac_cv_lib_z_inflateCopy+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10985 |   $as_echo_n "(cached) " >&6 | 
| Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 10986 | else | 
 | 10987 |   ac_check_lib_save_LIBS=$LIBS | 
 | 10988 | LIBS="-lz  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10989 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 10990 | /* end confdefs.h.  */ | 
 | 10991 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10992 | /* Override any GCC internal prototype to avoid an error. | 
 | 10993 |    Use char because int might match the return type of a GCC | 
 | 10994 |    builtin and then its argument prototype would still apply.  */ | 
| Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 10995 | #ifdef __cplusplus | 
 | 10996 | extern "C" | 
 | 10997 | #endif | 
| Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 10998 | char inflateCopy (); | 
 | 10999 | int | 
 | 11000 | main () | 
 | 11001 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11002 | return inflateCopy (); | 
| Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 11003 |   ; | 
 | 11004 |   return 0; | 
 | 11005 | } | 
 | 11006 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11007 | if ac_fn_c_try_link "$LINENO"; then : | 
| Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 11008 |   ac_cv_lib_z_inflateCopy=yes | 
 | 11009 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11010 |   ac_cv_lib_z_inflateCopy=no | 
| Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 11011 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11012 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 11013 |     conftest$ac_exeext conftest.$ac_ext | 
| Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 11014 | LIBS=$ac_check_lib_save_LIBS | 
 | 11015 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5 | 
 | 11017 | $as_echo "$ac_cv_lib_z_inflateCopy" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11018 | if test "x$ac_cv_lib_z_inflateCopy" = xyes; then : | 
| Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 11019 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11020 | $as_echo "#define HAVE_ZLIB_COPY 1" >>confdefs.h | 
| Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 11021 |  | 
 | 11022 | fi | 
 | 11023 |  | 
 | 11024 |  | 
| Ronald Oussoren | f875264 | 2006-07-06 10:13:35 +0000 | [diff] [blame] | 11025 | case $ac_sys_system/$ac_sys_release in | 
 | 11026 | Darwin/*) | 
 | 11027 | 	CFLAGS="${_CUR_CFLAGS}" | 
 | 11028 | 	LDFLAGS="${_CUR_LDFLAGS}" | 
 | 11029 | 	;; | 
 | 11030 | esac | 
 | 11031 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11032 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hstrerror" >&5 | 
 | 11033 | $as_echo_n "checking for hstrerror... " >&6; } | 
 | 11034 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11035 | /* end confdefs.h.  */ | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11036 |  | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11037 | #include <netdb.h> | 
 | 11038 |  | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11039 | int | 
 | 11040 | main () | 
 | 11041 | { | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11042 | void* p = hstrerror; hstrerror(0) | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11043 |   ; | 
 | 11044 |   return 0; | 
 | 11045 | } | 
 | 11046 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11047 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11048 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11049 | $as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11050 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 11051 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11052 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11053 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11054 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11055 | $as_echo "no" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11056 |  | 
 | 11057 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11058 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 11059 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11060 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11061 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton" >&5 | 
 | 11062 | $as_echo_n "checking for inet_aton... " >&6; } | 
 | 11063 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11064 | /* end confdefs.h.  */ | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11065 |  | 
| Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 11066 | #include <sys/types.h> | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11067 | #include <sys/socket.h> | 
 | 11068 | #include <netinet/in.h> | 
 | 11069 | #include <arpa/inet.h> | 
 | 11070 |  | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11071 | int | 
 | 11072 | main () | 
 | 11073 | { | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11074 | void* p = inet_aton;inet_aton(0,0) | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11075 |   ; | 
 | 11076 |   return 0; | 
 | 11077 | } | 
 | 11078 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11079 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11080 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11081 | $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11082 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 11083 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11084 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11085 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11086 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11087 | $as_echo "no" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11088 |  | 
 | 11089 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11090 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 11091 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11092 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11093 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_pton" >&5 | 
 | 11094 | $as_echo_n "checking for inet_pton... " >&6; } | 
 | 11095 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11096 | /* end confdefs.h.  */ | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11097 |  | 
| Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 11098 | #include <sys/types.h> | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11099 | #include <sys/socket.h> | 
 | 11100 | #include <netinet/in.h> | 
 | 11101 | #include <arpa/inet.h> | 
 | 11102 |  | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11103 | int | 
 | 11104 | main () | 
 | 11105 | { | 
 | 11106 | void* p = inet_pton | 
 | 11107 |   ; | 
 | 11108 |   return 0; | 
 | 11109 | } | 
 | 11110 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11111 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11112 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11113 | $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11114 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 11115 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11116 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11117 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11118 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11119 | $as_echo "no" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11120 |  | 
 | 11121 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11122 | 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] | 11123 |  | 
| Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 11124 | # On some systems, setgroups is in unistd.h, on others, in grp.h | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11125 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setgroups" >&5 | 
 | 11126 | $as_echo_n "checking for setgroups... " >&6; } | 
 | 11127 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11128 | /* end confdefs.h.  */ | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11129 |  | 
| Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 11130 | #include <unistd.h> | 
| Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 11131 | #ifdef HAVE_GRP_H | 
 | 11132 | #include <grp.h> | 
 | 11133 | #endif | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11134 |  | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11135 | int | 
 | 11136 | main () | 
 | 11137 | { | 
 | 11138 | void* p = setgroups | 
 | 11139 |   ; | 
 | 11140 |   return 0; | 
 | 11141 | } | 
 | 11142 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11143 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11144 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11145 | $as_echo "#define HAVE_SETGROUPS 1" >>confdefs.h | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11146 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 11147 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11148 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11149 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11150 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11151 | $as_echo "no" >&6; } | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11152 |  | 
 | 11153 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11154 | 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] | 11155 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11156 | # check for openpty and forkpty | 
 | 11157 |  | 
 | 11158 | for ac_func in openpty | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11159 | do : | 
 | 11160 |   ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11161 | if test "x$ac_cv_func_openpty" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11162 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11163 | #define HAVE_OPENPTY 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11164 | _ACEOF | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11165 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11166 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11167 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5 | 
 | 11168 | $as_echo_n "checking for openpty in -lutil... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11169 | if ${ac_cv_lib_util_openpty+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11170 |   $as_echo_n "(cached) " >&6 | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11171 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11172 |   ac_check_lib_save_LIBS=$LIBS | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11173 | LIBS="-lutil  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11174 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11175 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11176 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11177 | /* Override any GCC internal prototype to avoid an error. | 
 | 11178 |    Use char because int might match the return type of a GCC | 
 | 11179 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11180 | #ifdef __cplusplus | 
 | 11181 | extern "C" | 
 | 11182 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11183 | char openpty (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11184 | int | 
 | 11185 | main () | 
 | 11186 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11187 | return openpty (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11188 |   ; | 
 | 11189 |   return 0; | 
 | 11190 | } | 
 | 11191 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11192 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11193 |   ac_cv_lib_util_openpty=yes | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11194 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11195 |   ac_cv_lib_util_openpty=no | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11196 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11197 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 11198 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11199 | LIBS=$ac_check_lib_save_LIBS | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11200 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5 | 
 | 11202 | $as_echo "$ac_cv_lib_util_openpty" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11203 | if test "x$ac_cv_lib_util_openpty" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11204 |   $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11205 |  LIBS="$LIBS -lutil" | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11206 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11207 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lbsd" >&5 | 
 | 11208 | $as_echo_n "checking for openpty in -lbsd... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11209 | if ${ac_cv_lib_bsd_openpty+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11210 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11211 | else | 
 | 11212 |   ac_check_lib_save_LIBS=$LIBS | 
 | 11213 | LIBS="-lbsd  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11214 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11215 | /* end confdefs.h.  */ | 
 | 11216 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11217 | /* Override any GCC internal prototype to avoid an error. | 
 | 11218 |    Use char because int might match the return type of a GCC | 
 | 11219 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11220 | #ifdef __cplusplus | 
 | 11221 | extern "C" | 
 | 11222 | #endif | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11223 | char openpty (); | 
 | 11224 | int | 
 | 11225 | main () | 
 | 11226 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11227 | return openpty (); | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11228 |   ; | 
 | 11229 |   return 0; | 
 | 11230 | } | 
 | 11231 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11232 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11233 |   ac_cv_lib_bsd_openpty=yes | 
 | 11234 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11235 |   ac_cv_lib_bsd_openpty=no | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11236 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11237 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 11238 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11239 | LIBS=$ac_check_lib_save_LIBS | 
 | 11240 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_openpty" >&5 | 
 | 11242 | $as_echo "$ac_cv_lib_bsd_openpty" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11243 | if test "x$ac_cv_lib_bsd_openpty" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11244 |   $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11245 |  LIBS="$LIBS -lbsd" | 
 | 11246 | fi | 
 | 11247 |  | 
 | 11248 |  | 
 | 11249 | fi | 
 | 11250 |  | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11251 |  | 
 | 11252 | fi | 
 | 11253 | done | 
 | 11254 |  | 
 | 11255 | for ac_func in forkpty | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11256 | do : | 
 | 11257 |   ac_fn_c_check_func "$LINENO" "forkpty" "ac_cv_func_forkpty" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11258 | if test "x$ac_cv_func_forkpty" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11259 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11260 | #define HAVE_FORKPTY 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11261 | _ACEOF | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11262 |  | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11263 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11264 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lutil" >&5 | 
 | 11265 | $as_echo_n "checking for forkpty in -lutil... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11266 | if ${ac_cv_lib_util_forkpty+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11267 |   $as_echo_n "(cached) " >&6 | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11268 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11269 |   ac_check_lib_save_LIBS=$LIBS | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11270 | LIBS="-lutil  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11271 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11272 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11273 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11274 | /* Override any GCC internal prototype to avoid an error. | 
 | 11275 |    Use char because int might match the return type of a GCC | 
 | 11276 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11277 | #ifdef __cplusplus | 
 | 11278 | extern "C" | 
 | 11279 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11280 | char forkpty (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11281 | int | 
 | 11282 | main () | 
 | 11283 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11284 | return forkpty (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11285 |   ; | 
 | 11286 |   return 0; | 
 | 11287 | } | 
 | 11288 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11289 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11290 |   ac_cv_lib_util_forkpty=yes | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11291 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11292 |   ac_cv_lib_util_forkpty=no | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11293 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11294 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 11295 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11296 | LIBS=$ac_check_lib_save_LIBS | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11297 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_forkpty" >&5 | 
 | 11299 | $as_echo "$ac_cv_lib_util_forkpty" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11300 | if test "x$ac_cv_lib_util_forkpty" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11301 |   $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11302 |  LIBS="$LIBS -lutil" | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11303 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11304 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lbsd" >&5 | 
 | 11305 | $as_echo_n "checking for forkpty in -lbsd... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11306 | if ${ac_cv_lib_bsd_forkpty+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11307 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11308 | else | 
 | 11309 |   ac_check_lib_save_LIBS=$LIBS | 
 | 11310 | LIBS="-lbsd  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11311 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11312 | /* end confdefs.h.  */ | 
 | 11313 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11314 | /* Override any GCC internal prototype to avoid an error. | 
 | 11315 |    Use char because int might match the return type of a GCC | 
 | 11316 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11317 | #ifdef __cplusplus | 
 | 11318 | extern "C" | 
 | 11319 | #endif | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11320 | char forkpty (); | 
 | 11321 | int | 
 | 11322 | main () | 
 | 11323 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11324 | return forkpty (); | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11325 |   ; | 
 | 11326 |   return 0; | 
 | 11327 | } | 
 | 11328 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11329 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11330 |   ac_cv_lib_bsd_forkpty=yes | 
 | 11331 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11332 |   ac_cv_lib_bsd_forkpty=no | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11333 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11334 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 11335 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11336 | LIBS=$ac_check_lib_save_LIBS | 
 | 11337 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_forkpty" >&5 | 
 | 11339 | $as_echo "$ac_cv_lib_bsd_forkpty" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11340 | if test "x$ac_cv_lib_bsd_forkpty" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11341 |   $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11342 |  LIBS="$LIBS -lbsd" | 
 | 11343 | fi | 
 | 11344 |  | 
 | 11345 |  | 
 | 11346 | fi | 
 | 11347 |  | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11348 |  | 
 | 11349 | fi | 
 | 11350 | done | 
 | 11351 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 11352 |  | 
| Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 11353 | # Stuff for expat. | 
| Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 11354 | for ac_func in memmove | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11355 | do : | 
 | 11356 |   ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11357 | if test "x$ac_cv_func_memmove" = xyes; then : | 
| Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 11358 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11359 | #define HAVE_MEMMOVE 1 | 
| Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 11360 | _ACEOF | 
 | 11361 |  | 
 | 11362 | fi | 
 | 11363 | done | 
 | 11364 |  | 
 | 11365 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11366 | # check for long file support functions | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11367 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11368 | do : | 
 | 11369 |   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
 | 11370 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 11371 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11372 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11373 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11374 | _ACEOF | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11375 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11376 | fi | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11377 | done | 
 | 11378 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11379 |  | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 11380 | ac_fn_c_check_func "$LINENO" "dup2" "ac_cv_func_dup2" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11381 | if test "x$ac_cv_func_dup2" = xyes; then : | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 11382 |   $as_echo "#define HAVE_DUP2 1" >>confdefs.h | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11383 |  | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11384 | else | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11385 |   case " $LIBOBJS " in | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 11386 |   *" dup2.$ac_objext "* ) ;; | 
 | 11387 |   *) LIBOBJS="$LIBOBJS dup2.$ac_objext" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11388 |  ;; | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11389 | esac | 
 | 11390 |  | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11391 | fi | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 11392 |  | 
 | 11393 | ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11394 | if test "x$ac_cv_func_getcwd" = xyes; then : | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 11395 |   $as_echo "#define HAVE_GETCWD 1" >>confdefs.h | 
 | 11396 |  | 
 | 11397 | else | 
 | 11398 |   case " $LIBOBJS " in | 
 | 11399 |   *" getcwd.$ac_objext "* ) ;; | 
 | 11400 |   *) LIBOBJS="$LIBOBJS getcwd.$ac_objext" | 
 | 11401 |  ;; | 
 | 11402 | esac | 
 | 11403 |  | 
 | 11404 | fi | 
 | 11405 |  | 
 | 11406 | ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11407 | if test "x$ac_cv_func_strdup" = xyes; then : | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 11408 |   $as_echo "#define HAVE_STRDUP 1" >>confdefs.h | 
 | 11409 |  | 
 | 11410 | else | 
 | 11411 |   case " $LIBOBJS " in | 
 | 11412 |   *" strdup.$ac_objext "* ) ;; | 
 | 11413 |   *) LIBOBJS="$LIBOBJS strdup.$ac_objext" | 
 | 11414 |  ;; | 
 | 11415 | esac | 
 | 11416 |  | 
 | 11417 | fi | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11418 |  | 
 | 11419 |  | 
 | 11420 | for ac_func in getpgrp | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11421 | do : | 
 | 11422 |   ac_fn_c_check_func "$LINENO" "getpgrp" "ac_cv_func_getpgrp" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11423 | if test "x$ac_cv_func_getpgrp" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11424 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11425 | #define HAVE_GETPGRP 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11426 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11427 |  cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11428 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11429 | #include <unistd.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11430 | int | 
 | 11431 | main () | 
 | 11432 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11433 | getpgrp(0); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11434 |   ; | 
 | 11435 |   return 0; | 
 | 11436 | } | 
 | 11437 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11438 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11439 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11440 | $as_echo "#define GETPGRP_HAVE_ARG 1" >>confdefs.h | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11441 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11442 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11443 | 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] | 11444 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11445 | fi | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11446 | done | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11447 |  | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 11448 | for ac_func in setpgrp | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11449 | do : | 
 | 11450 |   ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11451 | if test "x$ac_cv_func_setpgrp" = xyes; then : | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 11452 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11453 | #define HAVE_SETPGRP 1 | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 11454 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11455 |  cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11456 | /* end confdefs.h.  */ | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 11457 | #include <unistd.h> | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 11458 | int | 
 | 11459 | main () | 
 | 11460 | { | 
 | 11461 | setpgrp(0,0); | 
 | 11462 |   ; | 
 | 11463 |   return 0; | 
 | 11464 | } | 
 | 11465 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11466 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11467 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11468 | $as_echo "#define SETPGRP_HAVE_ARG 1" >>confdefs.h | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11469 |  | 
| Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 11470 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11471 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 11472 |  | 
 | 11473 | fi | 
 | 11474 | done | 
| Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 11475 |  | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11476 | for ac_func in gettimeofday | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11477 | do : | 
 | 11478 |   ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11479 | if test "x$ac_cv_func_gettimeofday" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11480 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11481 | #define HAVE_GETTIMEOFDAY 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11482 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11483 |  cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11484 | /* end confdefs.h.  */ | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11485 | #include <sys/time.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11486 | int | 
 | 11487 | main () | 
 | 11488 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11489 | gettimeofday((struct timeval*)0,(struct timezone*)0); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11490 |   ; | 
 | 11491 |   return 0; | 
 | 11492 | } | 
 | 11493 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11494 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 11495 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11496 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11497 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11498 | $as_echo "#define GETTIMEOFDAY_NO_TZ 1" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11499 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11500 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11501 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11502 | 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] | 11503 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11504 | fi | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11505 | done | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11506 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11507 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11508 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for major" >&5 | 
 | 11509 | $as_echo_n "checking for major... " >&6; } | 
 | 11510 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11511 | /* end confdefs.h.  */ | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 11512 |  | 
| Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 11513 | #if defined(MAJOR_IN_MKDEV) | 
 | 11514 | #include <sys/mkdev.h> | 
 | 11515 | #elif defined(MAJOR_IN_SYSMACROS) | 
 | 11516 | #include <sys/sysmacros.h> | 
 | 11517 | #else | 
 | 11518 | #include <sys/types.h> | 
 | 11519 | #endif | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 11520 |  | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 11521 | int | 
 | 11522 | main () | 
 | 11523 | { | 
 | 11524 |  | 
 | 11525 |   makedev(major(0),minor(0)); | 
 | 11526 |  | 
 | 11527 |   ; | 
 | 11528 |   return 0; | 
 | 11529 | } | 
 | 11530 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11531 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 11532 |  | 
 | 11533 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11534 | $as_echo "#define HAVE_DEVICE_MACROS 1" >>confdefs.h | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 11535 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11536 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 11537 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 11538 |  | 
 | 11539 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11540 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11541 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11542 | $as_echo "no" >&6; } | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 11543 |  | 
 | 11544 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11545 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 11546 |     conftest$ac_exeext conftest.$ac_ext | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11547 |  | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 11548 | # 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] | 11549 | # for [no]getaddrinfo in netdb.h. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11550 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5 | 
 | 11551 | $as_echo_n "checking for getaddrinfo... " >&6; } | 
 | 11552 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11553 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 11554 |  | 
| Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 11555 | #include <sys/types.h> | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 11556 | #include <sys/socket.h> | 
 | 11557 | #include <netdb.h> | 
| Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 11558 | #include <stdio.h> | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11559 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11560 | int | 
 | 11561 | main () | 
 | 11562 | { | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 11563 | getaddrinfo(NULL, NULL, NULL, NULL); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11564 |   ; | 
 | 11565 |   return 0; | 
 | 11566 | } | 
 | 11567 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11568 | if ac_fn_c_try_link "$LINENO"; then : | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 11569 |   have_getaddrinfo=yes | 
 | 11570 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11571 |   have_getaddrinfo=no | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 11572 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11573 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 11574 |     conftest$ac_exeext conftest.$ac_ext | 
 | 11575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getaddrinfo" >&5 | 
 | 11576 | $as_echo "$have_getaddrinfo" >&6; } | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 11577 | if test $have_getaddrinfo = yes | 
 | 11578 | then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11579 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking getaddrinfo bug" >&5 | 
 | 11580 | $as_echo_n "checking getaddrinfo bug... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11581 |   if ${ac_cv_buggy_getaddrinfo+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11582 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 11583 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11584 |   if test "$cross_compiling" = yes; then : | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 11585 |  | 
 | 11586 | if test "${enable_ipv6+set}" = set; then | 
 | 11587 |   ac_cv_buggy_getaddrinfo="no -- configured with --(en|dis)able-ipv6" | 
 | 11588 | else | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 11589 |   ac_cv_buggy_getaddrinfo=yes | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 11590 | fi | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11591 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11592 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11593 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11594 |  | 
| Stefan Krah | 0afe4e4 | 2012-11-22 23:56:51 +0100 | [diff] [blame] | 11595 | #include <stdio.h> | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11596 | #include <sys/types.h> | 
 | 11597 | #include <netdb.h> | 
 | 11598 | #include <string.h> | 
 | 11599 | #include <sys/socket.h> | 
 | 11600 | #include <netinet/in.h> | 
 | 11601 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 11602 | int main() | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11603 | { | 
 | 11604 |   int passive, gaierr, inet4 = 0, inet6 = 0; | 
 | 11605 |   struct addrinfo hints, *ai, *aitop; | 
 | 11606 |   char straddr[INET6_ADDRSTRLEN], strport[16]; | 
 | 11607 |  | 
 | 11608 |   for (passive = 0; passive <= 1; passive++) { | 
 | 11609 |     memset(&hints, 0, sizeof(hints)); | 
 | 11610 |     hints.ai_family = AF_UNSPEC; | 
 | 11611 |     hints.ai_flags = passive ? AI_PASSIVE : 0; | 
 | 11612 |     hints.ai_socktype = SOCK_STREAM; | 
| Hye-Shik Chang | 54f9439 | 2004-04-14 07:55:31 +0000 | [diff] [blame] | 11613 |     hints.ai_protocol = IPPROTO_TCP; | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11614 |     if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { | 
 | 11615 |       (void)gai_strerror(gaierr); | 
 | 11616 |       goto bad; | 
 | 11617 |     } | 
 | 11618 |     for (ai = aitop; ai; ai = ai->ai_next) { | 
 | 11619 |       if (ai->ai_addr == NULL || | 
 | 11620 |           ai->ai_addrlen == 0 || | 
 | 11621 |           getnameinfo(ai->ai_addr, ai->ai_addrlen, | 
 | 11622 |                       straddr, sizeof(straddr), strport, sizeof(strport), | 
 | 11623 |                       NI_NUMERICHOST|NI_NUMERICSERV) != 0) { | 
 | 11624 |         goto bad; | 
 | 11625 |       } | 
 | 11626 |       switch (ai->ai_family) { | 
 | 11627 |       case AF_INET: | 
 | 11628 |         if (strcmp(strport, "54321") != 0) { | 
 | 11629 |           goto bad; | 
 | 11630 |         } | 
 | 11631 |         if (passive) { | 
 | 11632 |           if (strcmp(straddr, "0.0.0.0") != 0) { | 
 | 11633 |             goto bad; | 
 | 11634 |           } | 
 | 11635 |         } else { | 
 | 11636 |           if (strcmp(straddr, "127.0.0.1") != 0) { | 
 | 11637 |             goto bad; | 
 | 11638 |           } | 
 | 11639 |         } | 
 | 11640 |         inet4++; | 
 | 11641 |         break; | 
 | 11642 |       case AF_INET6: | 
 | 11643 |         if (strcmp(strport, "54321") != 0) { | 
 | 11644 |           goto bad; | 
 | 11645 |         } | 
 | 11646 |         if (passive) { | 
 | 11647 |           if (strcmp(straddr, "::") != 0) { | 
 | 11648 |             goto bad; | 
 | 11649 |           } | 
 | 11650 |         } else { | 
 | 11651 |           if (strcmp(straddr, "::1") != 0) { | 
 | 11652 |             goto bad; | 
 | 11653 |           } | 
 | 11654 |         } | 
 | 11655 |         inet6++; | 
 | 11656 |         break; | 
 | 11657 |       case AF_UNSPEC: | 
 | 11658 |         goto bad; | 
 | 11659 |         break; | 
 | 11660 |       default: | 
 | 11661 |         /* another family support? */ | 
 | 11662 |         break; | 
 | 11663 |       } | 
 | 11664 |     } | 
 | 11665 |   } | 
 | 11666 |  | 
 | 11667 |   if (!(inet4 == 0 || inet4 == 2)) | 
 | 11668 |     goto bad; | 
 | 11669 |   if (!(inet6 == 0 || inet6 == 2)) | 
 | 11670 |     goto bad; | 
 | 11671 |  | 
 | 11672 |   if (aitop) | 
 | 11673 |     freeaddrinfo(aitop); | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 11674 |   return 0; | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11675 |  | 
 | 11676 |  bad: | 
 | 11677 |   if (aitop) | 
 | 11678 |     freeaddrinfo(aitop); | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 11679 |   return 1; | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11680 | } | 
 | 11681 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11682 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11683 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 11684 |   ac_cv_buggy_getaddrinfo=no | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11685 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11686 |   ac_cv_buggy_getaddrinfo=yes | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11687 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11688 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 11689 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11690 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11691 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 11692 | fi | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11693 |  | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 11694 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11695 |  | 
| Benjamin Peterson | 75fed81 | 2010-11-01 01:47:19 +0000 | [diff] [blame] | 11696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_buggy_getaddrinfo" >&5 | 
 | 11697 | $as_echo "$ac_cv_buggy_getaddrinfo" >&6; } | 
 | 11698 |  | 
| Mark Dickinson | 0ef0b91 | 2009-12-31 21:11:48 +0000 | [diff] [blame] | 11699 | if test $have_getaddrinfo = no -o "$ac_cv_buggy_getaddrinfo" = yes | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 11700 | then | 
 | 11701 | 	if test $ipv6 = yes | 
 | 11702 | 	then | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11703 | 		echo 'Fatal: You must get working getaddrinfo() function.' | 
 | 11704 | 		echo '       or you can specify "--disable-ipv6"'. | 
 | 11705 | 		exit 1 | 
 | 11706 | 	fi | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 11707 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11708 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11709 | $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 11710 |  | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11711 | fi | 
| Benjamin Peterson | 75fed81 | 2010-11-01 01:47:19 +0000 | [diff] [blame] | 11712 |  | 
| Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 11713 | for ac_func in getnameinfo | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11714 | do : | 
 | 11715 |   ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11716 | if test "x$ac_cv_func_getnameinfo" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11717 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11718 | #define HAVE_GETNAMEINFO 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11719 | _ACEOF | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11720 |  | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11721 | fi | 
 | 11722 | done | 
 | 11723 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11724 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11725 | # checks for structures | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11726 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 | 
 | 11727 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11728 | if ${ac_cv_header_time+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11729 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11730 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11731 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11732 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11733 | #include <sys/types.h> | 
 | 11734 | #include <sys/time.h> | 
 | 11735 | #include <time.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11736 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11737 | int | 
 | 11738 | main () | 
 | 11739 | { | 
 | 11740 | if ((struct tm *) 0) | 
 | 11741 | return 0; | 
 | 11742 |   ; | 
 | 11743 |   return 0; | 
 | 11744 | } | 
 | 11745 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11746 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11747 |   ac_cv_header_time=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11748 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11749 |   ac_cv_header_time=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11750 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11751 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11752 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 | 
 | 11754 | $as_echo "$ac_cv_header_time" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11755 | if test $ac_cv_header_time = yes; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11756 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11757 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11758 |  | 
 | 11759 | fi | 
 | 11760 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11761 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 | 
 | 11762 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11763 | if ${ac_cv_struct_tm+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11764 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11765 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11766 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11767 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11768 | #include <sys/types.h> | 
 | 11769 | #include <time.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11770 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11771 | int | 
 | 11772 | main () | 
 | 11773 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11774 | struct tm tm; | 
 | 11775 | 				     int *p = &tm.tm_sec; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11776 | 				     return !p; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11777 |   ; | 
 | 11778 |   return 0; | 
 | 11779 | } | 
 | 11780 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11781 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11782 |   ac_cv_struct_tm=time.h | 
 | 11783 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11784 |   ac_cv_struct_tm=sys/time.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11785 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11786 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11787 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 | 
 | 11789 | $as_echo "$ac_cv_struct_tm" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11790 | if test $ac_cv_struct_tm = sys/time.h; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11791 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11792 | $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11793 |  | 
 | 11794 | fi | 
 | 11795 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11796 | 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] | 11797 | #include <$ac_cv_struct_tm> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11798 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11799 | " | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11800 | 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] | 11801 |  | 
 | 11802 | cat >>confdefs.h <<_ACEOF | 
 | 11803 | #define HAVE_STRUCT_TM_TM_ZONE 1 | 
 | 11804 | _ACEOF | 
 | 11805 |  | 
 | 11806 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11807 | fi | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11808 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11809 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then | 
 | 11810 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11811 | $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11812 |  | 
 | 11813 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11814 |   ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> | 
 | 11815 | " | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11816 | if test "x$ac_cv_have_decl_tzname" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11817 |   ac_have_decl=1 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11818 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11819 |   ac_have_decl=0 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11820 | fi | 
 | 11821 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11822 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11823 | #define HAVE_DECL_TZNAME $ac_have_decl | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11824 | _ACEOF | 
 | 11825 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11826 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 | 
 | 11827 | $as_echo_n "checking for tzname... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11828 | if ${ac_cv_var_tzname+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11829 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11830 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +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.  */ | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11833 | #include <time.h> | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11834 | #if !HAVE_DECL_TZNAME | 
 | 11835 | extern char *tzname[]; | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11836 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11837 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11838 | int | 
 | 11839 | main () | 
 | 11840 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11841 | return tzname[0][0]; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11842 |   ; | 
 | 11843 |   return 0; | 
 | 11844 | } | 
 | 11845 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11846 | if ac_fn_c_try_link "$LINENO"; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11847 |   ac_cv_var_tzname=yes | 
 | 11848 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11849 |   ac_cv_var_tzname=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11850 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11851 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 11852 |     conftest$ac_exeext conftest.$ac_ext | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11853 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 | 
 | 11855 | $as_echo "$ac_cv_var_tzname" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11856 |   if test $ac_cv_var_tzname = yes; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11857 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11858 | $as_echo "#define HAVE_TZNAME 1" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11859 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11860 |   fi | 
 | 11861 | fi | 
 | 11862 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11863 | ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11864 | 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] | 11865 |  | 
 | 11866 | cat >>confdefs.h <<_ACEOF | 
 | 11867 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | 
 | 11868 | _ACEOF | 
 | 11869 |  | 
 | 11870 |  | 
| Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 11871 | fi | 
 | 11872 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11873 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11874 | if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then : | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 11875 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11876 | cat >>confdefs.h <<_ACEOF | 
 | 11877 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | 
 | 11878 | _ACEOF | 
 | 11879 |  | 
 | 11880 |  | 
| Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 11881 | fi | 
 | 11882 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11883 | ac_fn_c_check_member "$LINENO" "struct stat" "st_flags" "ac_cv_member_struct_stat_st_flags" "$ac_includes_default" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11884 | 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] | 11885 |  | 
 | 11886 | cat >>confdefs.h <<_ACEOF | 
 | 11887 | #define HAVE_STRUCT_STAT_ST_FLAGS 1 | 
 | 11888 | _ACEOF | 
 | 11889 |  | 
 | 11890 |  | 
 | 11891 | fi | 
 | 11892 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11893 | ac_fn_c_check_member "$LINENO" "struct stat" "st_gen" "ac_cv_member_struct_stat_st_gen" "$ac_includes_default" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11894 | 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] | 11895 |  | 
 | 11896 | cat >>confdefs.h <<_ACEOF | 
 | 11897 | #define HAVE_STRUCT_STAT_ST_GEN 1 | 
 | 11898 | _ACEOF | 
 | 11899 |  | 
 | 11900 |  | 
 | 11901 | fi | 
 | 11902 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11903 | ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "$ac_includes_default" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11904 | 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] | 11905 |  | 
 | 11906 | cat >>confdefs.h <<_ACEOF | 
 | 11907 | #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1 | 
 | 11908 | _ACEOF | 
 | 11909 |  | 
 | 11910 |  | 
 | 11911 | fi | 
 | 11912 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11913 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11914 | if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then : | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 11915 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11916 | cat >>confdefs.h <<_ACEOF | 
 | 11917 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 | 
 | 11918 | _ACEOF | 
 | 11919 |  | 
 | 11920 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11921 | $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h | 
| Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 11922 |  | 
 | 11923 | else | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11924 |   case " $LIBOBJS " in | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11925 |   *" fileblocks.$ac_objext "* ) ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11926 |   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" | 
 | 11927 |  ;; | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11928 | esac | 
 | 11929 |  | 
| Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 11930 | fi | 
 | 11931 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11932 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11933 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11934 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for time.h that defines altzone" >&5 | 
 | 11935 | $as_echo_n "checking for time.h that defines altzone... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 11936 | if ${ac_cv_header_time_altzone+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11937 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11938 | else | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 11939 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11940 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11941 | /* end confdefs.h.  */ | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11942 | #include <time.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11943 | int | 
 | 11944 | main () | 
 | 11945 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11946 | return altzone; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11947 |   ; | 
 | 11948 |   return 0; | 
 | 11949 | } | 
 | 11950 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11951 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11952 |   ac_cv_header_time_altzone=yes | 
 | 11953 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11954 |   ac_cv_header_time_altzone=no | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11955 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11956 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 11957 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11958 | fi | 
 | 11959 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time_altzone" >&5 | 
 | 11961 | $as_echo "$ac_cv_header_time_altzone" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11962 | if test $ac_cv_header_time_altzone = yes; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11963 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11964 | $as_echo "#define HAVE_ALTZONE 1" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11965 |  | 
 | 11966 | fi | 
 | 11967 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11968 | was_it_defined=no | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11969 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be included" >&5 | 
 | 11970 | $as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; } | 
 | 11971 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11972 | /* end confdefs.h.  */ | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11973 |  | 
 | 11974 | #include <sys/types.h> | 
 | 11975 | #include <sys/select.h> | 
 | 11976 | #include <sys/time.h> | 
 | 11977 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11978 | int | 
 | 11979 | main () | 
 | 11980 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11981 | ; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11982 |   ; | 
 | 11983 |   return 0; | 
 | 11984 | } | 
 | 11985 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11986 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11987 |  | 
 | 11988 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11989 | $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] | 11990 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 11991 |   was_it_defined=yes | 
 | 11992 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11993 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11994 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5 | 
 | 11996 | $as_echo "$was_it_defined" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11997 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11998 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for addrinfo" >&5 | 
 | 11999 | $as_echo_n "checking for addrinfo... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 12000 | if ${ac_cv_struct_addrinfo+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12001 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12002 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12003 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12004 | /* end confdefs.h.  */ | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 12005 | #include <netdb.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12006 | int | 
 | 12007 | main () | 
 | 12008 | { | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12009 | struct addrinfo a | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12010 |   ; | 
 | 12011 |   return 0; | 
 | 12012 | } | 
 | 12013 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12014 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12015 |   ac_cv_struct_addrinfo=yes | 
 | 12016 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12017 |   ac_cv_struct_addrinfo=no | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12018 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12019 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 12020 | fi | 
 | 12021 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_addrinfo" >&5 | 
 | 12023 | $as_echo "$ac_cv_struct_addrinfo" >&6; } | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12024 | if test $ac_cv_struct_addrinfo = yes; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12025 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12026 | $as_echo "#define HAVE_ADDRINFO 1" >>confdefs.h | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12027 |  | 
 | 12028 | fi | 
 | 12029 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12030 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage" >&5 | 
 | 12031 | $as_echo_n "checking for sockaddr_storage... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 12032 | if ${ac_cv_struct_sockaddr_storage+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12033 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12034 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12035 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12036 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12037 |  | 
 | 12038 | #		include <sys/types.h> | 
 | 12039 | #		include <sys/socket.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12040 | int | 
 | 12041 | main () | 
 | 12042 | { | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12043 | struct sockaddr_storage s | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12044 |   ; | 
 | 12045 |   return 0; | 
 | 12046 | } | 
 | 12047 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12048 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12049 |   ac_cv_struct_sockaddr_storage=yes | 
 | 12050 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12051 |   ac_cv_struct_sockaddr_storage=no | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12052 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12053 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 12054 | fi | 
 | 12055 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_storage" >&5 | 
 | 12057 | $as_echo "$ac_cv_struct_sockaddr_storage" >&6; } | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12058 | if test $ac_cv_struct_sockaddr_storage = yes; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12059 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12060 | $as_echo "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12061 |  | 
 | 12062 | fi | 
 | 12063 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12064 | # checks for compiler characteristics | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12065 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12066 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5 | 
 | 12067 | $as_echo_n "checking whether char is unsigned... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 12068 | if ${ac_cv_c_char_unsigned+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12069 |   $as_echo_n "(cached) " >&6 | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 12070 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12071 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12072 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12073 | $ac_includes_default | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12074 | int | 
 | 12075 | main () | 
 | 12076 | { | 
 | 12077 | static int test_array [1 - 2 * !(((char) -1) < 0)]; | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 12078 | test_array [0] = 0; | 
 | 12079 | return test_array [0]; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12080 |  | 
 | 12081 |   ; | 
 | 12082 |   return 0; | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12083 | } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12084 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12085 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12086 |   ac_cv_c_char_unsigned=no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12087 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12088 |   ac_cv_c_char_unsigned=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12089 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12090 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12091 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12092 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5 | 
 | 12093 | $as_echo "$ac_cv_c_char_unsigned" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12094 | if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12095 |   $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12096 |  | 
 | 12097 | fi | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12098 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12099 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 | 
 | 12100 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 12101 | if ${ac_cv_c_const+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12102 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12103 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12104 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12105 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12106 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12107 | int | 
 | 12108 | main () | 
 | 12109 | { | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 12110 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12111 | #ifndef __cplusplus | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 12112 |   /* Ultrix mips cc rejects this sort of thing.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12113 |   typedef int charset[2]; | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 12114 |   const charset cs = { 0, 0 }; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12115 |   /* SunOS 4.1.1 cc rejects this.  */ | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12116 |   char const *const *pcpcc; | 
 | 12117 |   char **ppc; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12118 |   /* NEC SVR4.0.2 mips cc rejects this.  */ | 
 | 12119 |   struct point {int x, y;}; | 
 | 12120 |   static struct point const zero = {0,0}; | 
 | 12121 |   /* AIX XL C 1.02.0.0 rejects this. | 
 | 12122 |      It does not let you subtract one const X* pointer from another in | 
 | 12123 |      an arm of an if-expression whose if-part is not a constant | 
 | 12124 |      expression */ | 
 | 12125 |   const char *g = "string"; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12126 |   pcpcc = &g + (g ? g-g : 0); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12127 |   /* HPUX 7.0 cc rejects these. */ | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12128 |   ++pcpcc; | 
 | 12129 |   ppc = (char**) pcpcc; | 
 | 12130 |   pcpcc = (char const *const *) ppc; | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 12131 |   { /* SCO 3.2v4 cc rejects this sort of thing.  */ | 
 | 12132 |     char tx; | 
 | 12133 |     char *t = &tx; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12134 |     char const *s = 0 ? (char *) 0 : (char const *) 0; | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12135 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12136 |     *t++ = 0; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12137 |     if (s) return 0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12138 |   } | 
 | 12139 |   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */ | 
 | 12140 |     int x[] = {25, 17}; | 
 | 12141 |     const int *foo = &x[0]; | 
 | 12142 |     ++foo; | 
 | 12143 |   } | 
 | 12144 |   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | 
 | 12145 |     typedef const int *iptr; | 
 | 12146 |     iptr p = 0; | 
 | 12147 |     ++p; | 
 | 12148 |   } | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 12149 |   { /* 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] | 12150 |        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 12151 |     struct s { int j; const int *ap[3]; } bx; | 
 | 12152 |     struct s *b = &bx; b->j = 5; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12153 |   } | 
 | 12154 |   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | 
 | 12155 |     const int foo = 10; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12156 |     if (!foo) return 0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12157 |   } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12158 |   return !cs[0] && !zero.x; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12159 | #endif | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12160 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12161 |   ; | 
 | 12162 |   return 0; | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12163 | } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12164 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12165 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12166 |   ac_cv_c_const=yes | 
 | 12167 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12168 |   ac_cv_c_const=no | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12169 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12170 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12171 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 | 
 | 12173 | $as_echo "$ac_cv_c_const" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12174 | if test $ac_cv_c_const = no; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12175 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12176 | $as_echo "#define const /**/" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12177 |  | 
 | 12178 | fi | 
 | 12179 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12180 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 12181 | works=no | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12182 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 | 
 | 12183 | $as_echo_n "checking for working volatile... " >&6; } | 
 | 12184 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12185 | /* end confdefs.h.  */ | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12186 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12187 | int | 
 | 12188 | main () | 
 | 12189 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12190 | volatile int x; x = 0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12191 |   ; | 
 | 12192 |   return 0; | 
 | 12193 | } | 
 | 12194 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12195 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 12196 |   works=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12197 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12198 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12199 | $as_echo "#define volatile /**/" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12200 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 12201 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12202 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12203 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 | 
 | 12205 | $as_echo "$works" >&6; } | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12206 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 12207 | works=no | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12208 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working signed char" >&5 | 
 | 12209 | $as_echo_n "checking for working signed char... " >&6; } | 
 | 12210 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12211 | /* end confdefs.h.  */ | 
| Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 12212 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12213 | int | 
 | 12214 | main () | 
 | 12215 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12216 | signed char c; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12217 |   ; | 
 | 12218 |   return 0; | 
 | 12219 | } | 
 | 12220 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12221 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 12222 |   works=yes | 
| Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 12223 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12224 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12225 | $as_echo "#define signed /**/" >>confdefs.h | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12226 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 12227 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12228 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12229 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 | 
 | 12231 | $as_echo "$works" >&6; } | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12232 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 12233 | have_prototypes=no | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12234 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prototypes" >&5 | 
 | 12235 | $as_echo_n "checking for prototypes... " >&6; } | 
 | 12236 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12237 | /* end confdefs.h.  */ | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12238 | int foo(int x) { return 0; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12239 | int | 
 | 12240 | main () | 
 | 12241 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12242 | return foo(10); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12243 |   ; | 
 | 12244 |   return 0; | 
 | 12245 | } | 
 | 12246 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12247 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12248 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12249 | $as_echo "#define HAVE_PROTOTYPES 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12250 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 12251 |    have_prototypes=yes | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12252 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12253 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_prototypes" >&5 | 
 | 12255 | $as_echo "$have_prototypes" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12256 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 12257 | works=no | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12258 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for variable length prototypes and stdarg.h" >&5 | 
 | 12259 | $as_echo_n "checking for variable length prototypes and stdarg.h... " >&6; } | 
 | 12260 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12261 | /* end confdefs.h.  */ | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12262 |  | 
 | 12263 | #include <stdarg.h> | 
| Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 12264 | int foo(int x, ...) { | 
 | 12265 | 	va_list va; | 
 | 12266 | 	va_start(va, x); | 
 | 12267 | 	va_arg(va, int); | 
 | 12268 | 	va_arg(va, char *); | 
 | 12269 | 	va_arg(va, double); | 
 | 12270 | 	return 0; | 
 | 12271 | } | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12272 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12273 | int | 
 | 12274 | main () | 
 | 12275 | { | 
| Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 12276 | return foo(10, "", 3.14); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12277 |   ; | 
 | 12278 |   return 0; | 
 | 12279 | } | 
 | 12280 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12281 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12282 |  | 
 | 12283 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12284 | $as_echo "#define HAVE_STDARG_PROTOTYPES 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12285 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 12286 |   works=yes | 
 | 12287 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12288 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12289 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 | 
 | 12291 | $as_echo "$works" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12292 |  | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 12293 | # check for socketpair | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12294 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socketpair" >&5 | 
 | 12295 | $as_echo_n "checking for socketpair... " >&6; } | 
 | 12296 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 12297 | /* end confdefs.h.  */ | 
 | 12298 |  | 
 | 12299 | #include <sys/types.h> | 
 | 12300 | #include <sys/socket.h> | 
 | 12301 |  | 
 | 12302 | int | 
 | 12303 | main () | 
 | 12304 | { | 
 | 12305 | void *x=socketpair | 
 | 12306 |   ; | 
 | 12307 |   return 0; | 
 | 12308 | } | 
 | 12309 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12310 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 12311 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12312 | $as_echo "#define HAVE_SOCKETPAIR 1" >>confdefs.h | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 12313 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 12314 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12315 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 12316 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12317 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 12318 | $as_echo "no" >&6; } | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 12319 |  | 
 | 12320 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12321 | 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] | 12322 |  | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12323 | # check if sockaddr has sa_len member | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12324 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr has sa_len member" >&5 | 
 | 12325 | $as_echo_n "checking if sockaddr has sa_len member... " >&6; } | 
 | 12326 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12327 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12328 | #include <sys/types.h> | 
 | 12329 | #include <sys/socket.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12330 | int | 
 | 12331 | main () | 
 | 12332 | { | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12333 | struct sockaddr x; | 
 | 12334 | x.sa_len = 0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12335 |   ; | 
 | 12336 |   return 0; | 
 | 12337 | } | 
 | 12338 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12339 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 12340 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 12341 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12342 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12343 | $as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12344 |  | 
 | 12345 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12346 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 12347 | $as_echo "no" >&6; } | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 12348 |  | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12349 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12350 | 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] | 12351 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 12352 | va_list_is_array=no | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12353 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether va_list is an array" >&5 | 
 | 12354 | $as_echo_n "checking whether va_list is an array... " >&6; } | 
 | 12355 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12356 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12357 |  | 
 | 12358 | #ifdef HAVE_STDARG_PROTOTYPES | 
 | 12359 | #include <stdarg.h> | 
 | 12360 | #else | 
 | 12361 | #include <varargs.h> | 
 | 12362 | #endif | 
 | 12363 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12364 | int | 
 | 12365 | main () | 
 | 12366 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12367 | va_list list1, list2; list1 = list2; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12368 |   ; | 
 | 12369 |   return 0; | 
 | 12370 | } | 
 | 12371 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12372 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 12373 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12374 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12375 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12376 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12377 | $as_echo "#define VA_LIST_IS_ARRAY 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12378 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 12379 |  va_list_is_array=yes | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 12380 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12381 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12382 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $va_list_is_array" >&5 | 
 | 12384 | $as_echo "$va_list_is_array" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12385 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12386 | # 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] | 12387 |  | 
 | 12388 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12389 | ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 12390 | if test "x$ac_cv_func_gethostbyname_r" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12391 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12392 |   $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h | 
| Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 12393 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12394 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 6 args" >&5 | 
 | 12395 | $as_echo_n "checking gethostbyname_r with 6 args... " >&6; } | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12396 |   OLD_CFLAGS=$CFLAGS | 
 | 12397 |   CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12398 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12399 | /* end confdefs.h.  */ | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12400 |  | 
 | 12401 | #   include <netdb.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12402 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12403 | int | 
 | 12404 | main () | 
 | 12405 | { | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12406 |  | 
 | 12407 |     char *name; | 
 | 12408 |     struct hostent *he, *res; | 
 | 12409 |     char buffer[2048]; | 
 | 12410 |     int buflen = 2048; | 
 | 12411 |     int h_errnop; | 
 | 12412 |  | 
 | 12413 |     (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12414 |  | 
 | 12415 |   ; | 
 | 12416 |   return 0; | 
 | 12417 | } | 
 | 12418 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12419 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12420 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12421 |     $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h | 
| Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 12422 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12423 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12424 | $as_echo "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12425 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12426 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 12427 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12428 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12429 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12430 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12431 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 12432 | $as_echo "no" >&6; } | 
 | 12433 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 5 args" >&5 | 
 | 12434 | $as_echo_n "checking gethostbyname_r with 5 args... " >&6; } | 
 | 12435 |     cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12436 | /* end confdefs.h.  */ | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12437 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12438 | #       include <netdb.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12439 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12440 | int | 
 | 12441 | main () | 
 | 12442 | { | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12443 |  | 
 | 12444 |         char *name; | 
 | 12445 |         struct hostent *he; | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 12446 |         char buffer[2048]; | 
 | 12447 |         int buflen = 2048; | 
 | 12448 |         int h_errnop; | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12449 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 12450 |         (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12451 |  | 
 | 12452 |   ; | 
 | 12453 |   return 0; | 
 | 12454 | } | 
 | 12455 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12456 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12457 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12458 |         $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h | 
| Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 12459 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12460 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 12461 | $as_echo "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12462 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12463 |         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 12464 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12465 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12466 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12467 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12468 |         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 12469 | $as_echo "no" >&6; } | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 12470 |         { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 3 args" >&5 | 
 | 12471 | $as_echo_n "checking gethostbyname_r with 3 args... " >&6; } | 
 | 12472 |         cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 12473 | /* end confdefs.h.  */ | 
 | 12474 |  | 
 | 12475 | #           include <netdb.h> | 
 | 12476 |  | 
 | 12477 | int | 
 | 12478 | main () | 
 | 12479 | { | 
 | 12480 |  | 
 | 12481 |             char *name; | 
 | 12482 |             struct hostent *he; | 
 | 12483 |             struct hostent_data data; | 
 | 12484 |  | 
 | 12485 |             (void) gethostbyname_r(name, he, &data); | 
 | 12486 |  | 
 | 12487 |   ; | 
 | 12488 |   return 0; | 
 | 12489 | } | 
 | 12490 | _ACEOF | 
 | 12491 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 12492 |  | 
 | 12493 |             $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h | 
 | 12494 |  | 
 | 12495 |  | 
 | 12496 | $as_echo "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h | 
 | 12497 |  | 
 | 12498 |             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 12499 | $as_echo "yes" >&6; } | 
 | 12500 |  | 
 | 12501 | else | 
 | 12502 |  | 
 | 12503 |            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 12504 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12505 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12506 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12507 | 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] | 12508 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12509 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12510 | 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] | 12511 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12512 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12513 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12514 |   CFLAGS=$OLD_CFLAGS | 
 | 12515 |  | 
 | 12516 | else | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12517 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12518 |   for ac_func in gethostbyname | 
 | 12519 | do : | 
 | 12520 |   ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 12521 | if test "x$ac_cv_func_gethostbyname" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12522 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12523 | #define HAVE_GETHOSTBYNAME 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12524 | _ACEOF | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12525 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12526 | fi | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12527 | done | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12528 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12529 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 12530 | fi | 
 | 12531 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12532 |  | 
 | 12533 |  | 
 | 12534 |  | 
 | 12535 |  | 
 | 12536 |  | 
 | 12537 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12538 | # checks for system services | 
 | 12539 | # (none yet) | 
 | 12540 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12541 | # Linux requires this for correct f.p. operations | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12542 | ac_fn_c_check_func "$LINENO" "__fpu_control" "ac_cv_func___fpu_control" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 12543 | if test "x$ac_cv_func___fpu_control" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12544 |  | 
| Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 12545 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12546 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __fpu_control in -lieee" >&5 | 
 | 12547 | $as_echo_n "checking for __fpu_control in -lieee... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 12548 | if ${ac_cv_lib_ieee___fpu_control+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12549 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12550 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12551 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12552 | LIBS="-lieee  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12553 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12554 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12555 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12556 | /* Override any GCC internal prototype to avoid an error. | 
 | 12557 |    Use char because int might match the return type of a GCC | 
 | 12558 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12559 | #ifdef __cplusplus | 
 | 12560 | extern "C" | 
 | 12561 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12562 | char __fpu_control (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12563 | int | 
 | 12564 | main () | 
 | 12565 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12566 | return __fpu_control (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12567 |   ; | 
 | 12568 |   return 0; | 
 | 12569 | } | 
 | 12570 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12571 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12572 |   ac_cv_lib_ieee___fpu_control=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12573 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12574 |   ac_cv_lib_ieee___fpu_control=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12575 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12576 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 12577 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12578 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12579 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ieee___fpu_control" >&5 | 
 | 12581 | $as_echo "$ac_cv_lib_ieee___fpu_control" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 12582 | 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] | 12583 |   cat >>confdefs.h <<_ACEOF | 
 | 12584 | #define HAVE_LIBIEEE 1 | 
 | 12585 | _ACEOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12586 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12587 |   LIBS="-lieee $LIBS" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12588 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12589 | fi | 
 | 12590 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12591 |  | 
| Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 12592 | fi | 
 | 12593 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12594 |  | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 12595 | # Check for --with-fpectl | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12596 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-fpectl" >&5 | 
 | 12597 | $as_echo_n "checking for --with-fpectl... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12598 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12599 | # Check whether --with-fpectl was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12600 | if test "${with_fpectl+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12601 |   withval=$with_fpectl; | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 12602 | if test "$withval" != no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12603 | then | 
 | 12604 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12605 | $as_echo "#define WANT_SIGFPE_HANDLER 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12606 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12607 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 12608 | $as_echo "yes" >&6; } | 
 | 12609 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 12610 | $as_echo "no" >&6; } | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 12611 | fi | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12612 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12613 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 12614 | $as_echo "no" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12615 | fi | 
 | 12616 |  | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 12617 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12618 | # check for --with-libm=... | 
 | 12619 |  | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 12620 | case $ac_sys_system in | 
| Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 12621 | Darwin) ;; | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 12622 | BeOS) ;; | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 12623 | *) LIBM=-lm | 
 | 12624 | esac | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12625 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libm=STRING" >&5 | 
 | 12626 | $as_echo_n "checking for --with-libm=STRING... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12627 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12628 | # Check whether --with-libm was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12629 | if test "${with_libm+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12630 |   withval=$with_libm; | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 12631 | if test "$withval" = no | 
 | 12632 | then LIBM= | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12633 |      { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBM empty" >&5 | 
 | 12634 | $as_echo "force LIBM empty" >&6; } | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 12635 | elif test "$withval" != yes | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12636 | then LIBM=$withval | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12637 |      { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBM=\"$withval\"" >&5 | 
 | 12638 | $as_echo "set LIBM=\"$withval\"" >&6; } | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 12639 | 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] | 12640 | fi | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 12641 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12642 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBM=\"$LIBM\"" >&5 | 
 | 12643 | $as_echo "default LIBM=\"$LIBM\"" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12644 | fi | 
 | 12645 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12646 |  | 
 | 12647 | # check for --with-libc=... | 
 | 12648 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12649 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libc=STRING" >&5 | 
 | 12650 | $as_echo_n "checking for --with-libc=STRING... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12651 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12652 | # Check whether --with-libc was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12653 | if test "${with_libc+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12654 |   withval=$with_libc; | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 12655 | if test "$withval" = no | 
 | 12656 | then LIBC= | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12657 |      { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBC empty" >&5 | 
 | 12658 | $as_echo "force LIBC empty" >&6; } | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 12659 | elif test "$withval" != yes | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12660 | then LIBC=$withval | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12661 |      { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBC=\"$withval\"" >&5 | 
 | 12662 | $as_echo "set LIBC=\"$withval\"" >&6; } | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 12663 | 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] | 12664 | fi | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 12665 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12666 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBC=\"$LIBC\"" >&5 | 
 | 12667 | $as_echo "default LIBC=\"$LIBC\"" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12668 | fi | 
 | 12669 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12670 |  | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12671 | # ************************************************** | 
 | 12672 | # * Check for various properties of floating point * | 
 | 12673 | # ************************************************** | 
| Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 12674 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12675 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are little-endian IEEE 754 binary64" >&5 | 
 | 12676 | $as_echo_n "checking whether C doubles are little-endian IEEE 754 binary64... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 12677 | if ${ac_cv_little_endian_double+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12678 |   $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12679 | else | 
 | 12680 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12681 | if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12682 |   ac_cv_little_endian_double=no | 
 | 12683 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12684 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12685 | /* end confdefs.h.  */ | 
 | 12686 |  | 
 | 12687 | #include <string.h> | 
 | 12688 | int main() { | 
 | 12689 |     double x = 9006104071832581.0; | 
 | 12690 |     if (memcmp(&x, "\x05\x04\x03\x02\x01\xff\x3f\x43", 8) == 0) | 
 | 12691 |         return 0; | 
 | 12692 |     else | 
 | 12693 |         return 1; | 
 | 12694 | } | 
 | 12695 |  | 
 | 12696 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12697 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12698 |   ac_cv_little_endian_double=yes | 
 | 12699 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12700 |   ac_cv_little_endian_double=no | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12701 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12702 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 12703 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12704 | fi | 
 | 12705 |  | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12706 | fi | 
 | 12707 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_little_endian_double" >&5 | 
 | 12709 | $as_echo "$ac_cv_little_endian_double" >&6; } | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12710 | if test "$ac_cv_little_endian_double" = yes | 
 | 12711 | then | 
 | 12712 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12713 | $as_echo "#define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1" >>confdefs.h | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12714 |  | 
 | 12715 | fi | 
 | 12716 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12717 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are big-endian IEEE 754 binary64" >&5 | 
 | 12718 | $as_echo_n "checking whether C doubles are big-endian IEEE 754 binary64... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 12719 | if ${ac_cv_big_endian_double+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12720 |   $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12721 | else | 
 | 12722 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12723 | if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12724 |   ac_cv_big_endian_double=no | 
 | 12725 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12726 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12727 | /* end confdefs.h.  */ | 
 | 12728 |  | 
 | 12729 | #include <string.h> | 
 | 12730 | int main() { | 
 | 12731 |     double x = 9006104071832581.0; | 
 | 12732 |     if (memcmp(&x, "\x43\x3f\xff\x01\x02\x03\x04\x05", 8) == 0) | 
 | 12733 |         return 0; | 
 | 12734 |     else | 
 | 12735 |         return 1; | 
 | 12736 | } | 
 | 12737 |  | 
 | 12738 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12739 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12740 |   ac_cv_big_endian_double=yes | 
 | 12741 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12742 |   ac_cv_big_endian_double=no | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12743 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12744 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 12745 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12746 | fi | 
 | 12747 |  | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12748 | fi | 
 | 12749 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_big_endian_double" >&5 | 
 | 12751 | $as_echo "$ac_cv_big_endian_double" >&6; } | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12752 | if test "$ac_cv_big_endian_double" = yes | 
 | 12753 | then | 
 | 12754 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12755 | $as_echo "#define DOUBLE_IS_BIG_ENDIAN_IEEE754 1" >>confdefs.h | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12756 |  | 
 | 12757 | fi | 
 | 12758 |  | 
 | 12759 | # Some ARM platforms use a mixed-endian representation for doubles. | 
 | 12760 | # While Python doesn't currently have full support for these platforms | 
 | 12761 | # (see e.g., issue 1762561), we can at least make sure that float <-> string | 
 | 12762 | # conversions work. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12763 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are ARM mixed-endian IEEE 754 binary64" >&5 | 
 | 12764 | $as_echo_n "checking whether C doubles are ARM mixed-endian IEEE 754 binary64... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 12765 | if ${ac_cv_mixed_endian_double+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12766 |   $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12767 | else | 
 | 12768 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12769 | if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12770 |   ac_cv_mixed_endian_double=no | 
 | 12771 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12772 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12773 | /* end confdefs.h.  */ | 
 | 12774 |  | 
 | 12775 | #include <string.h> | 
 | 12776 | int main() { | 
 | 12777 |     double x = 9006104071832581.0; | 
 | 12778 |     if (memcmp(&x, "\x01\xff\x3f\x43\x05\x04\x03\x02", 8) == 0) | 
 | 12779 |         return 0; | 
 | 12780 |     else | 
 | 12781 |         return 1; | 
 | 12782 | } | 
 | 12783 |  | 
 | 12784 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12785 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12786 |   ac_cv_mixed_endian_double=yes | 
 | 12787 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12788 |   ac_cv_mixed_endian_double=no | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12789 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12790 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 12791 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12792 | fi | 
 | 12793 |  | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12794 | fi | 
 | 12795 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mixed_endian_double" >&5 | 
 | 12797 | $as_echo "$ac_cv_mixed_endian_double" >&6; } | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12798 | if test "$ac_cv_mixed_endian_double" = yes | 
 | 12799 | then | 
 | 12800 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12801 | $as_echo "#define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1" >>confdefs.h | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12802 |  | 
 | 12803 | fi | 
 | 12804 |  | 
 | 12805 | # The short float repr introduced in Python 3.1 requires the | 
 | 12806 | # correctly-rounded string <-> double conversion functions from | 
 | 12807 | # Python/dtoa.c, which in turn require that the FPU uses 53-bit | 
 | 12808 | # rounding; this is a problem on x86, where the x87 FPU has a default | 
| Mark Dickinson | a548dee | 2009-11-15 13:12:43 +0000 | [diff] [blame] | 12809 | # rounding precision of 64 bits.  For gcc/x86, we can fix this by | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12810 | # using inline assembler to get and set the x87 FPU control word. | 
| Mark Dickinson | a548dee | 2009-11-15 13:12:43 +0000 | [diff] [blame] | 12811 |  | 
 | 12812 | # This inline assembler syntax may also work for suncc and icc, | 
 | 12813 | # so we try it on all platforms. | 
 | 12814 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12815 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set x87 control word" >&5 | 
 | 12816 | $as_echo_n "checking whether we can use gcc inline assembler to get and set x87 control word... " >&6; } | 
 | 12817 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12818 | /* end confdefs.h.  */ | 
 | 12819 |  | 
 | 12820 | int | 
 | 12821 | main () | 
 | 12822 | { | 
 | 12823 |  | 
| Mark Dickinson | a548dee | 2009-11-15 13:12:43 +0000 | [diff] [blame] | 12824 |   unsigned short cw; | 
 | 12825 |   __asm__ __volatile__ ("fnstcw %0" : "=m" (cw)); | 
 | 12826 |   __asm__ __volatile__ ("fldcw %0" : : "m" (cw)); | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12827 |  | 
 | 12828 |   ; | 
 | 12829 |   return 0; | 
 | 12830 | } | 
 | 12831 | _ACEOF | 
| Stefan Krah | 99e36b9 | 2015-07-03 15:30:54 +0200 | [diff] [blame] | 12832 | if ac_fn_c_try_link "$LINENO"; then : | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12833 |   have_gcc_asm_for_x87=yes | 
 | 12834 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12835 |   have_gcc_asm_for_x87=no | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12836 | fi | 
| Stefan Krah | 99e36b9 | 2015-07-03 15:30:54 +0200 | [diff] [blame] | 12837 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 12838 |     conftest$ac_exeext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_x87" >&5 | 
 | 12840 | $as_echo "$have_gcc_asm_for_x87" >&6; } | 
| Mark Dickinson | a548dee | 2009-11-15 13:12:43 +0000 | [diff] [blame] | 12841 | if test "$have_gcc_asm_for_x87" = yes | 
 | 12842 | then | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12843 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12844 | $as_echo "#define HAVE_GCC_ASM_FOR_X87 1" >>confdefs.h | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12845 |  | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12846 | fi | 
| Mark Dickinson | 7a3d864 | 2008-04-22 00:54:27 +0000 | [diff] [blame] | 12847 |  | 
| Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 12848 | # Detect whether system arithmetic is subject to x87-style double | 
 | 12849 | # rounding issues.  The result of this test has little meaning on non | 
 | 12850 | # IEEE 754 platforms.  On IEEE 754, test should return 1 if rounding | 
 | 12851 | # mode is round-to-nearest and double rounding issues are present, and | 
 | 12852 | # 0 otherwise.  See http://bugs.python.org/issue2937 for more info. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12853 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x87-style double rounding" >&5 | 
 | 12854 | $as_echo_n "checking for x87-style double rounding... " >&6; } | 
| Mark Dickinson | 99abd14 | 2009-10-24 13:44:16 +0000 | [diff] [blame] | 12855 | # $BASECFLAGS may affect the result | 
 | 12856 | ac_save_cc="$CC" | 
 | 12857 | CC="$CC $BASECFLAGS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12858 | if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 12859 |   ac_cv_x87_double_rounding=no | 
 | 12860 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12861 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 12862 | /* end confdefs.h.  */ | 
 | 12863 |  | 
 | 12864 | #include <stdlib.h> | 
 | 12865 | #include <math.h> | 
 | 12866 | int main() { | 
 | 12867 |     volatile double x, y, z; | 
 | 12868 |     /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */ | 
 | 12869 |     x = 0.99999999999999989; /* 1-2**-53 */ | 
 | 12870 |     y = 1./x; | 
 | 12871 |     if (y != 1.) | 
 | 12872 |         exit(0); | 
 | 12873 |     /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */ | 
 | 12874 |     x = 1e16; | 
 | 12875 |     y = 2.99999; | 
 | 12876 |     z = x + y; | 
 | 12877 |     if (z != 1e16+4.) | 
 | 12878 |         exit(0); | 
 | 12879 |     /* both tests show evidence of double rounding */ | 
 | 12880 |     exit(1); | 
 | 12881 | } | 
 | 12882 |  | 
 | 12883 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12884 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 12885 |   ac_cv_x87_double_rounding=no | 
 | 12886 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12887 |   ac_cv_x87_double_rounding=yes | 
| Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 12888 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12889 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 12890 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 12891 | fi | 
 | 12892 |  | 
| Mark Dickinson | 99abd14 | 2009-10-24 13:44:16 +0000 | [diff] [blame] | 12893 | CC="$ac_save_cc" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_x87_double_rounding" >&5 | 
 | 12895 | $as_echo "$ac_cv_x87_double_rounding" >&6; } | 
| Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 12896 | if test "$ac_cv_x87_double_rounding" = yes | 
 | 12897 | then | 
 | 12898 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12899 | $as_echo "#define X87_DOUBLE_ROUNDING 1" >>confdefs.h | 
| Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 12900 |  | 
 | 12901 | fi | 
 | 12902 |  | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12903 | # ************************************ | 
 | 12904 | # * Check for mathematical functions * | 
 | 12905 | # ************************************ | 
 | 12906 |  | 
 | 12907 | LIBS_SAVE=$LIBS | 
 | 12908 | LIBS="$LIBS $LIBM" | 
 | 12909 |  | 
| Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 12910 | # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of | 
 | 12911 | # -0. on some architectures. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12912 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tanh preserves the sign of zero" >&5 | 
 | 12913 | $as_echo_n "checking whether tanh preserves the sign of zero... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 12914 | if ${ac_cv_tanh_preserves_zero_sign+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12915 |   $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 12916 | else | 
 | 12917 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12918 | if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 12919 |   ac_cv_tanh_preserves_zero_sign=no | 
 | 12920 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12921 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 12922 | /* end confdefs.h.  */ | 
 | 12923 |  | 
 | 12924 | #include <math.h> | 
| Mark Dickinson | 7a3d864 | 2008-04-22 00:54:27 +0000 | [diff] [blame] | 12925 | #include <stdlib.h> | 
| Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 12926 | int main() { | 
 | 12927 |     /* return 0 if either negative zeros don't exist | 
 | 12928 |        on this platform or if negative zeros exist | 
 | 12929 |        and tanh(-0.) == -0. */ | 
 | 12930 |   if (atan2(0., -1.) == atan2(-0., -1.) || | 
 | 12931 |       atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0); | 
 | 12932 |   else exit(1); | 
 | 12933 | } | 
 | 12934 |  | 
 | 12935 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12936 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 12937 |   ac_cv_tanh_preserves_zero_sign=yes | 
 | 12938 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12939 |   ac_cv_tanh_preserves_zero_sign=no | 
| Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 12940 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12941 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 12942 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 12943 | fi | 
 | 12944 |  | 
| Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 12945 | fi | 
 | 12946 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tanh_preserves_zero_sign" >&5 | 
 | 12948 | $as_echo "$ac_cv_tanh_preserves_zero_sign" >&6; } | 
| Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 12949 | if test "$ac_cv_tanh_preserves_zero_sign" = yes | 
 | 12950 | then | 
 | 12951 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12952 | $as_echo "#define TANH_PRESERVES_ZERO_SIGN 1" >>confdefs.h | 
| Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 12953 |  | 
 | 12954 | fi | 
 | 12955 |  | 
| Mark Dickinson | 65898e0 | 2009-09-05 10:27:00 +0000 | [diff] [blame] | 12956 | for ac_func in acosh asinh atanh copysign erf erfc expm1 finite gamma | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12957 | do : | 
 | 12958 |   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
 | 12959 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 12960 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | 
| Mark Dickinson | 65898e0 | 2009-09-05 10:27:00 +0000 | [diff] [blame] | 12961 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12962 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| Mark Dickinson | 65898e0 | 2009-09-05 10:27:00 +0000 | [diff] [blame] | 12963 | _ACEOF | 
 | 12964 |  | 
 | 12965 | fi | 
 | 12966 | done | 
 | 12967 |  | 
| Mark Dickinson | 65898e0 | 2009-09-05 10:27:00 +0000 | [diff] [blame] | 12968 | for ac_func in hypot lgamma log1p round tgamma | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12969 | do : | 
 | 12970 |   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
 | 12971 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 12972 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | 
| Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 12973 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12974 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 12975 | _ACEOF | 
 | 12976 |  | 
 | 12977 | fi | 
 | 12978 | done | 
 | 12979 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12980 | ac_fn_c_check_decl "$LINENO" "isinf" "ac_cv_have_decl_isinf" "#include <math.h> | 
 | 12981 | " | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 12982 | if test "x$ac_cv_have_decl_isinf" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12983 |   ac_have_decl=1 | 
| Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 12984 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12985 |   ac_have_decl=0 | 
| Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 12986 | fi | 
 | 12987 |  | 
| Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 12988 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12989 | #define HAVE_DECL_ISINF $ac_have_decl | 
| Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 12990 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12991 | ac_fn_c_check_decl "$LINENO" "isnan" "ac_cv_have_decl_isnan" "#include <math.h> | 
 | 12992 | " | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 12993 | if test "x$ac_cv_have_decl_isnan" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12994 |   ac_have_decl=1 | 
| Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 12995 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12996 |   ac_have_decl=0 | 
| Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 12997 | fi | 
| Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 12998 |  | 
 | 12999 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13000 | #define HAVE_DECL_ISNAN $ac_have_decl | 
| Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 13001 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13002 | ac_fn_c_check_decl "$LINENO" "isfinite" "ac_cv_have_decl_isfinite" "#include <math.h> | 
 | 13003 | " | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13004 | if test "x$ac_cv_have_decl_isfinite" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13005 |   ac_have_decl=1 | 
| Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 13006 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13007 |   ac_have_decl=0 | 
| Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 13008 | fi | 
| Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 13009 |  | 
 | 13010 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13011 | #define HAVE_DECL_ISFINITE $ac_have_decl | 
| Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 13012 | _ACEOF | 
 | 13013 |  | 
 | 13014 |  | 
| Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 13015 | LIBS=$LIBS_SAVE | 
 | 13016 |  | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 13017 | # For multiprocessing module, check that sem_open | 
 | 13018 | # actually works.  For FreeBSD versions <= 7.2, | 
 | 13019 | # the kernel module that provides POSIX semaphores | 
 | 13020 | # isn't loaded by default, so an attempt to call | 
 | 13021 | # sem_open results in a 'Signal 12' error. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13022 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX semaphores are enabled" >&5 | 
 | 13023 | $as_echo_n "checking whether POSIX semaphores are enabled... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13024 | if ${ac_cv_posix_semaphores_enabled+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13025 |   $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 13026 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13027 |   if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 13028 |   ac_cv_posix_semaphores_enabled=yes | 
 | 13029 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13030 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 13031 | /* end confdefs.h.  */ | 
 | 13032 |  | 
 | 13033 | #include <unistd.h> | 
 | 13034 | #include <fcntl.h> | 
 | 13035 | #include <stdio.h> | 
 | 13036 | #include <semaphore.h> | 
 | 13037 | #include <sys/stat.h> | 
 | 13038 |  | 
 | 13039 | int main(void) { | 
 | 13040 |   sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0); | 
 | 13041 |   if (a == SEM_FAILED) { | 
 | 13042 |     perror("sem_open"); | 
 | 13043 |     return 1; | 
 | 13044 |   } | 
 | 13045 |   sem_close(a); | 
| Mark Dickinson | 59dc89e | 2009-12-13 21:06:06 +0000 | [diff] [blame] | 13046 |   sem_unlink("/autoconf"); | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 13047 |   return 0; | 
 | 13048 | } | 
 | 13049 |  | 
 | 13050 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13051 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 13052 |   ac_cv_posix_semaphores_enabled=yes | 
 | 13053 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13054 |   ac_cv_posix_semaphores_enabled=no | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 13055 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13056 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 13057 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 13058 | fi | 
 | 13059 |  | 
 | 13060 |  | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 13061 | fi | 
 | 13062 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13063 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_semaphores_enabled" >&5 | 
 | 13064 | $as_echo "$ac_cv_posix_semaphores_enabled" >&6; } | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 13065 | if test $ac_cv_posix_semaphores_enabled = no | 
 | 13066 | then | 
 | 13067 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13068 | $as_echo "#define POSIX_SEMAPHORES_NOT_ENABLED 1" >>confdefs.h | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 13069 |  | 
 | 13070 | fi | 
 | 13071 |  | 
 | 13072 | # Multiprocessing check for broken sem_getvalue | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13073 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken sem_getvalue" >&5 | 
 | 13074 | $as_echo_n "checking for broken sem_getvalue... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13075 | if ${ac_cv_broken_sem_getvalue+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13076 |   $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 13077 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13078 |   if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 13079 |   ac_cv_broken_sem_getvalue=yes | 
 | 13080 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13081 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 13082 | /* end confdefs.h.  */ | 
 | 13083 |  | 
 | 13084 | #include <unistd.h> | 
 | 13085 | #include <fcntl.h> | 
 | 13086 | #include <stdio.h> | 
 | 13087 | #include <semaphore.h> | 
 | 13088 | #include <sys/stat.h> | 
 | 13089 |  | 
 | 13090 | int main(void){ | 
| Mark Dickinson | 59dc89e | 2009-12-13 21:06:06 +0000 | [diff] [blame] | 13091 |   sem_t *a = sem_open("/autocftw", O_CREAT, S_IRUSR|S_IWUSR, 0); | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 13092 |   int count; | 
 | 13093 |   int res; | 
 | 13094 |   if(a==SEM_FAILED){ | 
 | 13095 |     perror("sem_open"); | 
 | 13096 |     return 1; | 
 | 13097 |  | 
 | 13098 |   } | 
 | 13099 |   res = sem_getvalue(a, &count); | 
 | 13100 |   sem_close(a); | 
| Mark Dickinson | 59dc89e | 2009-12-13 21:06:06 +0000 | [diff] [blame] | 13101 |   sem_unlink("/autocftw"); | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 13102 |   return res==-1 ? 1 : 0; | 
 | 13103 | } | 
 | 13104 |  | 
 | 13105 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13106 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 13107 |   ac_cv_broken_sem_getvalue=no | 
 | 13108 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13109 |   ac_cv_broken_sem_getvalue=yes | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 13110 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13111 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 13112 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 13113 | fi | 
 | 13114 |  | 
 | 13115 |  | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 13116 | fi | 
 | 13117 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_sem_getvalue" >&5 | 
 | 13119 | $as_echo "$ac_cv_broken_sem_getvalue" >&6; } | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 13120 | if test $ac_cv_broken_sem_getvalue = yes | 
 | 13121 | then | 
 | 13122 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13123 | $as_echo "#define HAVE_BROKEN_SEM_GETVALUE 1" >>confdefs.h | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 13124 |  | 
 | 13125 | fi | 
 | 13126 |  | 
| Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 13127 | # determine what size digit to use for Python's longs | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13128 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking digit size for Python's longs" >&5 | 
 | 13129 | $as_echo_n "checking digit size for Python's longs... " >&6; } | 
| Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 13130 | # Check whether --enable-big-digits was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13131 | if test "${enable_big_digits+set}" = set; then : | 
| Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 13132 |   enableval=$enable_big_digits; case $enable_big_digits in | 
 | 13133 | yes) | 
 | 13134 |   enable_big_digits=30 ;; | 
 | 13135 | no) | 
 | 13136 |   enable_big_digits=15 ;; | 
 | 13137 | 15|30) | 
 | 13138 |   ;; | 
 | 13139 | *) | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13140 |   as_fn_error $? "bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" "$LINENO" 5 ;; | 
| Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 13141 | esac | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_big_digits" >&5 | 
 | 13143 | $as_echo "$enable_big_digits" >&6; } | 
| Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 13144 |  | 
 | 13145 | cat >>confdefs.h <<_ACEOF | 
 | 13146 | #define PYLONG_BITS_IN_DIGIT $enable_big_digits | 
 | 13147 | _ACEOF | 
 | 13148 |  | 
 | 13149 |  | 
 | 13150 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13151 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5 | 
 | 13152 | $as_echo "no value specified" >&6; } | 
| Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 13153 | fi | 
 | 13154 |  | 
 | 13155 |  | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13156 | # check for wchar.h | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13157 | ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13158 | if test "x$ac_cv_header_wchar_h" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13159 |  | 
 | 13160 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13161 | $as_echo "#define HAVE_WCHAR_H 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13162 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13163 |   wchar_h="yes" | 
 | 13164 |  | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13165 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13166 |   wchar_h="no" | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13167 |  | 
 | 13168 | fi | 
 | 13169 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13170 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13171 |  | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 13172 | # determine wchar_t size | 
 | 13173 | if test "$wchar_h" = yes | 
 | 13174 | then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13175 |   # The cast to long int works around a bug in the HP C Compiler | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13176 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 13177 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 13178 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13179 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5 | 
 | 13180 | $as_echo_n "checking size of wchar_t... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13181 | if ${ac_cv_sizeof_wchar_t+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13182 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13183 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13184 |   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t"        "#include <wchar.h> | 
 | 13185 | "; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13186 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13187 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13188 |   if test "$ac_cv_type_wchar_t" = yes; then | 
 | 13189 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 13190 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 13191 | as_fn_error 77 "cannot compute sizeof (wchar_t) | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13192 | See \`config.log' for more details" "$LINENO" 5; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13193 |    else | 
 | 13194 |      ac_cv_sizeof_wchar_t=0 | 
 | 13195 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13196 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13197 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13198 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5 | 
 | 13200 | $as_echo "$ac_cv_sizeof_wchar_t" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13201 |  | 
 | 13202 |  | 
 | 13203 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13204 | cat >>confdefs.h <<_ACEOF | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 13205 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13206 | _ACEOF | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 13207 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13208 |  | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 13209 | fi | 
 | 13210 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13211 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UCS-4 tcl" >&5 | 
 | 13212 | $as_echo_n "checking for UCS-4 tcl... " >&6; } | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 13213 | have_ucs4_tcl=no | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13214 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13215 | /* end confdefs.h.  */ | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 13216 |  | 
 | 13217 | #include <tcl.h> | 
 | 13218 | #if TCL_UTF_MAX != 6 | 
 | 13219 | # error "NOT UCS4_TCL" | 
 | 13220 | #endif | 
 | 13221 | int | 
 | 13222 | main () | 
 | 13223 | { | 
 | 13224 |  | 
 | 13225 |   ; | 
 | 13226 |   return 0; | 
 | 13227 | } | 
 | 13228 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13229 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 13230 |  | 
 | 13231 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13232 | $as_echo "#define HAVE_UCS4_TCL 1" >>confdefs.h | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 13233 |  | 
 | 13234 |   have_ucs4_tcl=yes | 
 | 13235 |  | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 13236 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13237 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ucs4_tcl" >&5 | 
 | 13239 | $as_echo "$have_ucs4_tcl" >&6; } | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 13240 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13241 | # check whether wchar_t is signed or not | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 13242 | if test "$wchar_h" = yes | 
 | 13243 | then | 
 | 13244 |   # check whether wchar_t is signed or not | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13245 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wchar_t is signed" >&5 | 
 | 13246 | $as_echo_n "checking whether wchar_t is signed... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13247 |   if ${ac_cv_wchar_t_signed+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13248 |   $as_echo_n "(cached) " >&6 | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 13249 | else | 
 | 13250 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13251 |   if test "$cross_compiling" = yes; then : | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 13252 |   ac_cv_wchar_t_signed=yes | 
 | 13253 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13254 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13255 | /* end confdefs.h.  */ | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 13256 |  | 
 | 13257 |   #include <wchar.h> | 
 | 13258 |   int main() | 
 | 13259 |   { | 
| Martin v. Löwis | 44fe0e4 | 2006-04-11 07:15:30 +0000 | [diff] [blame] | 13260 | 	/* Success: exit code 0 */ | 
 | 13261 |         exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1); | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 13262 |   } | 
 | 13263 |  | 
 | 13264 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13265 | if ac_fn_c_try_run "$LINENO"; then : | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 13266 |   ac_cv_wchar_t_signed=yes | 
 | 13267 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13268 |   ac_cv_wchar_t_signed=no | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 13269 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13270 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 13271 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 13272 | fi | 
 | 13273 |  | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 13274 | fi | 
 | 13275 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13276 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_wchar_t_signed" >&5 | 
 | 13277 | $as_echo "$ac_cv_wchar_t_signed" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13278 | fi | 
 | 13279 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13280 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking what type to use for unicode" >&5 | 
 | 13281 | $as_echo_n "checking what type to use for unicode... " >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13282 | # Check whether --enable-unicode was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13283 | if test "${enable_unicode+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13284 |   enableval=$enable_unicode; | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 13285 | else | 
 | 13286 |   enable_unicode=yes | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13287 | fi | 
 | 13288 |  | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 13289 |  | 
 | 13290 | if test $enable_unicode = yes | 
 | 13291 | then | 
| Martin v. Löwis | fd91779 | 2001-06-27 20:22:04 +0000 | [diff] [blame] | 13292 |   # Without any arguments, Py_UNICODE defaults to two-byte mode | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 13293 |   case "$have_ucs4_tcl" in | 
 | 13294 |   yes) enable_unicode="ucs4" | 
 | 13295 |        ;; | 
 | 13296 |   *)   enable_unicode="ucs2" | 
 | 13297 |        ;; | 
 | 13298 |   esac | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 13299 | fi | 
 | 13300 |  | 
| Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 13301 |  | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 13302 | case "$enable_unicode" in | 
 | 13303 | ucs2) unicode_size="2" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13304 |       $as_echo "#define Py_UNICODE_SIZE 2" >>confdefs.h | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 13305 |  | 
 | 13306 |       ;; | 
 | 13307 | ucs4) unicode_size="4" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13308 |       $as_echo "#define Py_UNICODE_SIZE 4" >>confdefs.h | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 13309 |  | 
 | 13310 |       ;; | 
| Martin v. Löwis | ed11a5d | 2012-05-20 10:42:17 +0200 | [diff] [blame] | 13311 | no)   ;;      # To allow --disable-unicode | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13312 | *) as_fn_error $? "invalid value for --enable-unicode. Use either ucs2 or ucs4 (lowercase)." "$LINENO" 5 ;; | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 13313 | esac | 
 | 13314 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13315 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13316 |  | 
 | 13317 |  | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 13318 | if test "$enable_unicode" = "no" | 
 | 13319 | then | 
| Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 13320 |   UNICODE_OBJS="" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13321 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not used" >&5 | 
 | 13322 | $as_echo "not used" >&6; } | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 13323 | else | 
| Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 13324 |   UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13325 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13326 | $as_echo "#define Py_USING_UNICODE 1" >>confdefs.h | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 13327 |  | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 13328 |  | 
 | 13329 |   # wchar_t is only usable if it maps to an unsigned type | 
 | 13330 |   if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \ | 
| Matthias Klose | 7dbeed7 | 2004-12-24 08:22:17 +0000 | [diff] [blame] | 13331 |           -a "$ac_cv_wchar_t_signed" = "no" | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 13332 |   then | 
 | 13333 |     PY_UNICODE_TYPE="wchar_t" | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 13334 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13335 | $as_echo "#define HAVE_USABLE_WCHAR_T 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13336 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13337 |     $as_echo "#define PY_UNICODE_TYPE wchar_t" >>confdefs.h | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 13338 |  | 
 | 13339 |   elif test "$ac_cv_sizeof_short" = "$unicode_size" | 
 | 13340 |   then | 
 | 13341 |        PY_UNICODE_TYPE="unsigned short" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13342 |        $as_echo "#define PY_UNICODE_TYPE unsigned short" >>confdefs.h | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 13343 |  | 
 | 13344 |   elif test "$ac_cv_sizeof_long" = "$unicode_size" | 
 | 13345 |   then | 
 | 13346 |        PY_UNICODE_TYPE="unsigned long" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13347 |        $as_echo "#define PY_UNICODE_TYPE unsigned long" >>confdefs.h | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 13348 |  | 
 | 13349 |   else | 
 | 13350 |        PY_UNICODE_TYPE="no type found" | 
 | 13351 |   fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13352 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PY_UNICODE_TYPE" >&5 | 
 | 13353 | $as_echo "$PY_UNICODE_TYPE" >&6; } | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 13354 | fi | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13355 |  | 
 | 13356 | # check for endianness | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13357 |  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 | 
 | 13358 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13359 | if ${ac_cv_c_bigendian+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13360 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13361 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13362 |   ac_cv_c_bigendian=unknown | 
 | 13363 |     # See if we're dealing with a universal compiler. | 
 | 13364 |     cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 13365 | /* end confdefs.h.  */ | 
 | 13366 | #ifndef __APPLE_CC__ | 
 | 13367 | 	       not a universal capable compiler | 
 | 13368 | 	     #endif | 
 | 13369 | 	     typedef int dummy; | 
 | 13370 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13371 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13372 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 13373 |  | 
 | 13374 | 	# Check for potential -arch flags.  It is not universal unless | 
 | 13375 | 	# there are at least two -arch flags with different values. | 
 | 13376 | 	ac_arch= | 
 | 13377 | 	ac_prev= | 
 | 13378 | 	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | 
 | 13379 | 	 if test -n "$ac_prev"; then | 
 | 13380 | 	   case $ac_word in | 
 | 13381 | 	     i?86 | x86_64 | ppc | ppc64) | 
 | 13382 | 	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | 
 | 13383 | 		 ac_arch=$ac_word | 
 | 13384 | 	       else | 
 | 13385 | 		 ac_cv_c_bigendian=universal | 
 | 13386 | 		 break | 
 | 13387 | 	       fi | 
 | 13388 | 	       ;; | 
 | 13389 | 	   esac | 
 | 13390 | 	   ac_prev= | 
 | 13391 | 	 elif test "x$ac_word" = "x-arch"; then | 
 | 13392 | 	   ac_prev=arch | 
 | 13393 | 	 fi | 
 | 13394 |        done | 
 | 13395 | fi | 
 | 13396 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 13397 |     if test $ac_cv_c_bigendian = unknown; then | 
 | 13398 |       # See if sys/param.h defines the BYTE_ORDER macro. | 
 | 13399 |       cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13400 | /* end confdefs.h.  */ | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13401 | #include <sys/types.h> | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13402 | 	     #include <sys/param.h> | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13403 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13404 | int | 
 | 13405 | main () | 
 | 13406 | { | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13407 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ | 
 | 13408 | 		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | 
 | 13409 | 		     && LITTLE_ENDIAN) | 
 | 13410 | 	      bogus endian macros | 
 | 13411 | 	     #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13412 |  | 
 | 13413 |   ; | 
 | 13414 |   return 0; | 
 | 13415 | } | 
 | 13416 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13417 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13418 |   # It does; now see whether it defined to BIG_ENDIAN or not. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13419 | 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13420 | /* end confdefs.h.  */ | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13421 | #include <sys/types.h> | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13422 | 		#include <sys/param.h> | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13423 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13424 | int | 
 | 13425 | main () | 
 | 13426 | { | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13427 | #if BYTE_ORDER != BIG_ENDIAN | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13428 | 		 not big endian | 
 | 13429 | 		#endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13430 |  | 
 | 13431 |   ; | 
 | 13432 |   return 0; | 
 | 13433 | } | 
 | 13434 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13435 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13436 |   ac_cv_c_bigendian=yes | 
 | 13437 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13438 |   ac_cv_c_bigendian=no | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13439 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13440 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13441 | fi | 
 | 13442 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 13443 |     fi | 
 | 13444 |     if test $ac_cv_c_bigendian = unknown; then | 
 | 13445 |       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | 
 | 13446 |       cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13447 | /* end confdefs.h.  */ | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13448 | #include <limits.h> | 
 | 13449 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13450 | int | 
 | 13451 | main () | 
 | 13452 | { | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13453 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | 
 | 13454 | 	      bogus endian macros | 
 | 13455 | 	     #endif | 
 | 13456 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13457 |   ; | 
 | 13458 |   return 0; | 
 | 13459 | } | 
 | 13460 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13461 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 13462 |   # It does; now see whether it defined to _BIG_ENDIAN or not. | 
 | 13463 | 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 13464 | /* end confdefs.h.  */ | 
 | 13465 | #include <limits.h> | 
 | 13466 |  | 
 | 13467 | int | 
 | 13468 | main () | 
 | 13469 | { | 
 | 13470 | #ifndef _BIG_ENDIAN | 
 | 13471 | 		 not big endian | 
 | 13472 | 		#endif | 
 | 13473 |  | 
 | 13474 |   ; | 
 | 13475 |   return 0; | 
 | 13476 | } | 
 | 13477 | _ACEOF | 
 | 13478 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13479 |   ac_cv_c_bigendian=yes | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 13480 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13481 |   ac_cv_c_bigendian=no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13482 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13483 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 13484 | fi | 
 | 13485 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 13486 |     fi | 
 | 13487 |     if test $ac_cv_c_bigendian = unknown; then | 
 | 13488 |       # Compile a test program. | 
 | 13489 |       if test "$cross_compiling" = yes; then : | 
 | 13490 |   # Try to guess by grepping values from an object file. | 
 | 13491 | 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 13492 | /* end confdefs.h.  */ | 
 | 13493 | short int ascii_mm[] = | 
 | 13494 | 		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | 
 | 13495 | 		short int ascii_ii[] = | 
 | 13496 | 		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | 
 | 13497 | 		int use_ascii (int i) { | 
 | 13498 | 		  return ascii_mm[i] + ascii_ii[i]; | 
 | 13499 | 		} | 
 | 13500 | 		short int ebcdic_ii[] = | 
 | 13501 | 		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | 
 | 13502 | 		short int ebcdic_mm[] = | 
 | 13503 | 		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | 
 | 13504 | 		int use_ebcdic (int i) { | 
 | 13505 | 		  return ebcdic_mm[i] + ebcdic_ii[i]; | 
 | 13506 | 		} | 
 | 13507 | 		extern int foo; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13508 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13509 | int | 
 | 13510 | main () | 
 | 13511 | { | 
 | 13512 | return use_ascii (foo) == use_ebcdic (foo); | 
 | 13513 |   ; | 
 | 13514 |   return 0; | 
 | 13515 | } | 
 | 13516 | _ACEOF | 
 | 13517 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 13518 |   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | 
 | 13519 | 	      ac_cv_c_bigendian=yes | 
 | 13520 | 	    fi | 
 | 13521 | 	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | 
 | 13522 | 	      if test "$ac_cv_c_bigendian" = unknown; then | 
 | 13523 | 		ac_cv_c_bigendian=no | 
 | 13524 | 	      else | 
 | 13525 | 		# finding both strings is unlikely to happen, but who knows? | 
 | 13526 | 		ac_cv_c_bigendian=unknown | 
 | 13527 | 	      fi | 
 | 13528 | 	    fi | 
 | 13529 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13530 | 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] | 13531 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13532 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13533 | /* end confdefs.h.  */ | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13534 | $ac_includes_default | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13535 | int | 
 | 13536 | main () | 
 | 13537 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13538 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13539 | 	     /* Are we little or big endian?  From Harbison&Steele.  */ | 
 | 13540 | 	     union | 
 | 13541 | 	     { | 
 | 13542 | 	       long int l; | 
 | 13543 | 	       char c[sizeof (long int)]; | 
 | 13544 | 	     } u; | 
 | 13545 | 	     u.l = 1; | 
 | 13546 | 	     return u.c[sizeof (long int) - 1] == 1; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13547 |  | 
 | 13548 |   ; | 
 | 13549 |   return 0; | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13550 | } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13551 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13552 | if ac_fn_c_try_run "$LINENO"; then : | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13553 |   ac_cv_c_bigendian=no | 
 | 13554 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13555 |   ac_cv_c_bigendian=yes | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13556 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13557 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 13558 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13559 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13560 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13561 |     fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13562 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 | 
 | 13564 | $as_echo "$ac_cv_c_bigendian" >&6; } | 
 | 13565 |  case $ac_cv_c_bigendian in #( | 
 | 13566 |    yes) | 
 | 13567 |      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | 
 | 13568 | ;; #( | 
 | 13569 |    no) | 
 | 13570 |       ;; #( | 
 | 13571 |    universal) | 
| Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13572 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13573 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 13574 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13575 |      ;; #( | 
 | 13576 |    *) | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 13577 |      as_fn_error $? "unknown endianness | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13578 |  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13579 |  esac | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13580 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13581 |  | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 13582 | # Check whether right shifting a negative integer extends the sign bit | 
 | 13583 | # or fills with zeros (like the Cray J90, according to Tim Peters). | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13584 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether right shift extends the sign bit" >&5 | 
 | 13585 | $as_echo_n "checking whether right shift extends the sign bit... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13586 | if ${ac_cv_rshift_extends_sign+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13587 |   $as_echo_n "(cached) " >&6 | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 13588 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13589 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13590 | if test "$cross_compiling" = yes; then : | 
| Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 13591 |   ac_cv_rshift_extends_sign=yes | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 13592 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13593 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13594 | /* end confdefs.h.  */ | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 13595 |  | 
 | 13596 | int main() | 
 | 13597 | { | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 13598 | 	exit(((-1)>>3 == -1) ? 0 : 1); | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 13599 | } | 
 | 13600 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13601 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13602 | if ac_fn_c_try_run "$LINENO"; then : | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 13603 |   ac_cv_rshift_extends_sign=yes | 
 | 13604 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13605 |   ac_cv_rshift_extends_sign=no | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 13606 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13607 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 13608 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 13609 | fi | 
 | 13610 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13611 | fi | 
 | 13612 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rshift_extends_sign" >&5 | 
 | 13614 | $as_echo "$ac_cv_rshift_extends_sign" >&6; } | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 13615 | if test "$ac_cv_rshift_extends_sign" = no | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 13616 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13617 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13618 | $as_echo "#define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1" >>confdefs.h | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 13619 |  | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 13620 | fi | 
 | 13621 |  | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 13622 | # check for getc_unlocked and related locking functions | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13623 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getc_unlocked() and friends" >&5 | 
 | 13624 | $as_echo_n "checking for getc_unlocked() and friends... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13625 | if ${ac_cv_have_getc_unlocked+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13626 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 13627 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13628 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13629 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13630 | /* end confdefs.h.  */ | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 13631 | #include <stdio.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13632 | int | 
 | 13633 | main () | 
 | 13634 | { | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 13635 |  | 
 | 13636 | 	FILE *f = fopen("/dev/null", "r"); | 
 | 13637 | 	flockfile(f); | 
 | 13638 | 	getc_unlocked(f); | 
 | 13639 | 	funlockfile(f); | 
 | 13640 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13641 |   ; | 
 | 13642 |   return 0; | 
 | 13643 | } | 
 | 13644 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13645 | if ac_fn_c_try_link "$LINENO"; then : | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 13646 |   ac_cv_have_getc_unlocked=yes | 
 | 13647 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13648 |   ac_cv_have_getc_unlocked=no | 
 | 13649 | fi | 
 | 13650 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 13651 |     conftest$ac_exeext conftest.$ac_ext | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 13652 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13653 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getc_unlocked" >&5 | 
 | 13655 | $as_echo "$ac_cv_have_getc_unlocked" >&6; } | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 13656 | if test "$ac_cv_have_getc_unlocked" = yes | 
 | 13657 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13658 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13659 | $as_echo "#define HAVE_GETC_UNLOCKED 1" >>confdefs.h | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 13660 |  | 
 | 13661 | fi | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 13662 |  | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 13663 | # check where readline lives | 
| Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 13664 | # save the value of LIBS so we don't actually link Python with readline | 
 | 13665 | LIBS_no_readline=$LIBS | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 13666 |  | 
| Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 13667 | # On some systems we need to link readline to a termcap compatible | 
 | 13668 | # library.  NOTE: Keep the precedence of listed libraries synchronised | 
 | 13669 | # with setup.py. | 
 | 13670 | py_cv_lib_readline=no | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13671 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link readline libs" >&5 | 
 | 13672 | $as_echo_n "checking how to link readline libs... " >&6; } | 
| Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 13673 | for py_libtermcap in "" ncursesw ncurses curses termcap; do | 
 | 13674 |   if test -z "$py_libtermcap"; then | 
 | 13675 |     READLINE_LIBS="-lreadline" | 
 | 13676 |   else | 
 | 13677 |     READLINE_LIBS="-lreadline -l$py_libtermcap" | 
 | 13678 |   fi | 
 | 13679 |   LIBS="$READLINE_LIBS $LIBS_no_readline" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13680 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 13681 | /* end confdefs.h.  */ | 
 | 13682 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13683 | /* Override any GCC internal prototype to avoid an error. | 
 | 13684 |    Use char because int might match the return type of a GCC | 
 | 13685 |    builtin and then its argument prototype would still apply.  */ | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 13686 | #ifdef __cplusplus | 
 | 13687 | extern "C" | 
 | 13688 | #endif | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 13689 | char readline (); | 
 | 13690 | int | 
 | 13691 | main () | 
 | 13692 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13693 | return readline (); | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 13694 |   ; | 
 | 13695 |   return 0; | 
 | 13696 | } | 
 | 13697 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13698 | if ac_fn_c_try_link "$LINENO"; then : | 
| Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 13699 |   py_cv_lib_readline=yes | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 13700 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13701 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 13702 |     conftest$ac_exeext conftest.$ac_ext | 
| Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 13703 |   if test $py_cv_lib_readline = yes; then | 
 | 13704 |     break | 
 | 13705 |   fi | 
 | 13706 | done | 
 | 13707 | # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts | 
 | 13708 | #AC_SUBST([READLINE_LIBS]) | 
| Gregory P. Smith | e080cdf | 2008-09-07 19:19:04 +0000 | [diff] [blame] | 13709 | if test $py_cv_lib_readline = no; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13710 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | 
 | 13711 | $as_echo "none" >&6; } | 
| Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 13712 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13713 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE_LIBS" >&5 | 
 | 13714 | $as_echo "$READLINE_LIBS" >&6; } | 
| Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 13715 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13716 | $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 13717 |  | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 13718 | fi | 
 | 13719 |  | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13720 | # check for readline 2.1 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13721 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_callback_handler_install in -lreadline" >&5 | 
 | 13722 | $as_echo_n "checking for rl_callback_handler_install in -lreadline... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13723 | if ${ac_cv_lib_readline_rl_callback_handler_install+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13724 |   $as_echo_n "(cached) " >&6 | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13725 | else | 
 | 13726 |   ac_check_lib_save_LIBS=$LIBS | 
| Gregory P. Smith | ff7b2d5 | 2008-09-03 05:57:48 +0000 | [diff] [blame] | 13727 | LIBS="-lreadline $READLINE_LIBS $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13728 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13729 | /* end confdefs.h.  */ | 
 | 13730 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13731 | /* Override any GCC internal prototype to avoid an error. | 
 | 13732 |    Use char because int might match the return type of a GCC | 
 | 13733 |    builtin and then its argument prototype would still apply.  */ | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13734 | #ifdef __cplusplus | 
 | 13735 | extern "C" | 
 | 13736 | #endif | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13737 | char rl_callback_handler_install (); | 
 | 13738 | int | 
 | 13739 | main () | 
 | 13740 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13741 | return rl_callback_handler_install (); | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13742 |   ; | 
 | 13743 |   return 0; | 
 | 13744 | } | 
 | 13745 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13746 | if ac_fn_c_try_link "$LINENO"; then : | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13747 |   ac_cv_lib_readline_rl_callback_handler_install=yes | 
 | 13748 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13749 |   ac_cv_lib_readline_rl_callback_handler_install=no | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13750 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13751 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 13752 |     conftest$ac_exeext conftest.$ac_ext | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13753 | LIBS=$ac_check_lib_save_LIBS | 
 | 13754 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5 | 
 | 13756 | $as_echo "$ac_cv_lib_readline_rl_callback_handler_install" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13757 | 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] | 13758 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13759 | $as_echo "#define HAVE_RL_CALLBACK 1" >>confdefs.h | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13760 |  | 
 | 13761 | fi | 
 | 13762 |  | 
 | 13763 |  | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 13764 | # check for readline 2.2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13765 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13766 | /* end confdefs.h.  */ | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 13767 | #include <readline/readline.h> | 
 | 13768 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13769 | if ac_fn_c_try_cpp "$LINENO"; then : | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 13770 |   have_readline=yes | 
 | 13771 | else | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 13772 |   have_readline=no | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 13773 |  | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 13774 | fi | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 13775 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 13776 | if test $have_readline = yes | 
 | 13777 | then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13778 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13779 | /* end confdefs.h.  */ | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 13780 | #include <readline/readline.h> | 
 | 13781 |  | 
 | 13782 | _ACEOF | 
 | 13783 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13784 |   $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] | 13785 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13786 | $as_echo "#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1" >>confdefs.h | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 13787 |  | 
 | 13788 | fi | 
| Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 13789 | rm -f conftest* | 
| Antoine Pitrou | d9ff74e | 2009-10-26 19:16:46 +0000 | [diff] [blame] | 13790 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13791 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Antoine Pitrou | d9ff74e | 2009-10-26 19:16:46 +0000 | [diff] [blame] | 13792 | /* end confdefs.h.  */ | 
 | 13793 | #include <readline/readline.h> | 
 | 13794 |  | 
 | 13795 | _ACEOF | 
 | 13796 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13797 |   $EGREP "extern int rl_completion_suppress_append;" >/dev/null 2>&1; then : | 
| Antoine Pitrou | d9ff74e | 2009-10-26 19:16:46 +0000 | [diff] [blame] | 13798 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13799 | $as_echo "#define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1" >>confdefs.h | 
| Antoine Pitrou | d9ff74e | 2009-10-26 19:16:46 +0000 | [diff] [blame] | 13800 |  | 
 | 13801 | fi | 
| Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 13802 | rm -f conftest* | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 13803 |  | 
 | 13804 | fi | 
 | 13805 |  | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 13806 | # check for readline 4.0 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13807 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_pre_input_hook in -lreadline" >&5 | 
 | 13808 | $as_echo_n "checking for rl_pre_input_hook in -lreadline... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13809 | if ${ac_cv_lib_readline_rl_pre_input_hook+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13810 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 13811 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13812 |   ac_check_lib_save_LIBS=$LIBS | 
| Gregory P. Smith | ff7b2d5 | 2008-09-03 05:57:48 +0000 | [diff] [blame] | 13813 | LIBS="-lreadline $READLINE_LIBS $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13814 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13815 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13816 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13817 | /* Override any GCC internal prototype to avoid an error. | 
 | 13818 |    Use char because int might match the return type of a GCC | 
 | 13819 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13820 | #ifdef __cplusplus | 
 | 13821 | extern "C" | 
 | 13822 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13823 | char rl_pre_input_hook (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13824 | int | 
 | 13825 | main () | 
 | 13826 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13827 | return rl_pre_input_hook (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13828 |   ; | 
 | 13829 |   return 0; | 
 | 13830 | } | 
 | 13831 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13832 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13833 |   ac_cv_lib_readline_rl_pre_input_hook=yes | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 13834 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13835 |   ac_cv_lib_readline_rl_pre_input_hook=no | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 13836 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13837 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 13838 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13839 | LIBS=$ac_check_lib_save_LIBS | 
 | 13840 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5 | 
 | 13842 | $as_echo "$ac_cv_lib_readline_rl_pre_input_hook" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13843 | 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] | 13844 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13845 | $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] | 13846 |  | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 13847 | fi | 
 | 13848 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13849 |  | 
| Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 13850 | # also in 4.0 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13851 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_display_matches_hook in -lreadline" >&5 | 
 | 13852 | $as_echo_n "checking for rl_completion_display_matches_hook in -lreadline... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13853 | if ${ac_cv_lib_readline_rl_completion_display_matches_hook+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13854 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 13855 | else | 
 | 13856 |   ac_check_lib_save_LIBS=$LIBS | 
| Gregory P. Smith | ff7b2d5 | 2008-09-03 05:57:48 +0000 | [diff] [blame] | 13857 | LIBS="-lreadline $READLINE_LIBS $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13858 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 13859 | /* end confdefs.h.  */ | 
 | 13860 |  | 
 | 13861 | /* Override any GCC internal prototype to avoid an error. | 
 | 13862 |    Use char because int might match the return type of a GCC | 
 | 13863 |    builtin and then its argument prototype would still apply.  */ | 
 | 13864 | #ifdef __cplusplus | 
 | 13865 | extern "C" | 
 | 13866 | #endif | 
 | 13867 | char rl_completion_display_matches_hook (); | 
 | 13868 | int | 
 | 13869 | main () | 
 | 13870 | { | 
 | 13871 | return rl_completion_display_matches_hook (); | 
 | 13872 |   ; | 
 | 13873 |   return 0; | 
 | 13874 | } | 
 | 13875 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13876 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 13877 |   ac_cv_lib_readline_rl_completion_display_matches_hook=yes | 
 | 13878 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13879 |   ac_cv_lib_readline_rl_completion_display_matches_hook=no | 
| Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 13880 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13881 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 13882 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 13883 | LIBS=$ac_check_lib_save_LIBS | 
 | 13884 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5 | 
 | 13886 | $as_echo "$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13887 | if test "x$ac_cv_lib_readline_rl_completion_display_matches_hook" = xyes; then : | 
| Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 13888 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13889 | $as_echo "#define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1" >>confdefs.h | 
| Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 13890 |  | 
 | 13891 | fi | 
 | 13892 |  | 
 | 13893 |  | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 13894 | # check for readline 4.2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13895 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_matches in -lreadline" >&5 | 
 | 13896 | $as_echo_n "checking for rl_completion_matches in -lreadline... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13897 | if ${ac_cv_lib_readline_rl_completion_matches+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13898 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 13899 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13900 |   ac_check_lib_save_LIBS=$LIBS | 
| Gregory P. Smith | ff7b2d5 | 2008-09-03 05:57:48 +0000 | [diff] [blame] | 13901 | LIBS="-lreadline $READLINE_LIBS $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13902 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13903 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13904 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13905 | /* Override any GCC internal prototype to avoid an error. | 
 | 13906 |    Use char because int might match the return type of a GCC | 
 | 13907 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13908 | #ifdef __cplusplus | 
 | 13909 | extern "C" | 
 | 13910 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13911 | char rl_completion_matches (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13912 | int | 
 | 13913 | main () | 
 | 13914 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13915 | return rl_completion_matches (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13916 |   ; | 
 | 13917 |   return 0; | 
 | 13918 | } | 
 | 13919 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13920 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13921 |   ac_cv_lib_readline_rl_completion_matches=yes | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 13922 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13923 |   ac_cv_lib_readline_rl_completion_matches=no | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 13924 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13925 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 13926 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13927 | LIBS=$ac_check_lib_save_LIBS | 
 | 13928 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_matches" >&5 | 
 | 13930 | $as_echo "$ac_cv_lib_readline_rl_completion_matches" >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13931 | 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] | 13932 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13933 | $as_echo "#define HAVE_RL_COMPLETION_MATCHES 1" >>confdefs.h | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 13934 |  | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 13935 | fi | 
 | 13936 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 13937 |  | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13938 | # also in readline 4.2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13939 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13940 | /* end confdefs.h.  */ | 
 | 13941 | #include <readline/readline.h> | 
 | 13942 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13943 | if ac_fn_c_try_cpp "$LINENO"; then : | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13944 |   have_readline=yes | 
 | 13945 | else | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13946 |   have_readline=no | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 13947 |  | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13948 | fi | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 13949 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13950 | if test $have_readline = yes | 
 | 13951 | then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13952 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13953 | /* end confdefs.h.  */ | 
 | 13954 | #include <readline/readline.h> | 
 | 13955 |  | 
 | 13956 | _ACEOF | 
 | 13957 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13958 |   $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then : | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13959 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13960 | $as_echo "#define HAVE_RL_CATCH_SIGNAL 1" >>confdefs.h | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13961 |  | 
 | 13962 | fi | 
| Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 13963 | rm -f conftest* | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13964 |  | 
 | 13965 | fi | 
 | 13966 |  | 
| Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 13967 | # End of readline checks: restore LIBS | 
 | 13968 | LIBS=$LIBS_no_readline | 
 | 13969 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken nice()" >&5 | 
 | 13971 | $as_echo_n "checking for broken nice()... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 13972 | if ${ac_cv_broken_nice+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13973 |   $as_echo_n "(cached) " >&6 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13974 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13975 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13976 | if test "$cross_compiling" = yes; then : | 
| Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 13977 |   ac_cv_broken_nice=no | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 13978 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13979 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13980 | /* end confdefs.h.  */ | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 13981 |  | 
 | 13982 | int main() | 
 | 13983 | { | 
 | 13984 | 	int val1 = nice(1); | 
 | 13985 | 	if (val1 != -1 && val1 == nice(2)) | 
 | 13986 | 		exit(0); | 
 | 13987 | 	exit(1); | 
 | 13988 | } | 
 | 13989 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13990 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13991 | if ac_fn_c_try_run "$LINENO"; then : | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 13992 |   ac_cv_broken_nice=yes | 
 | 13993 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13994 |   ac_cv_broken_nice=no | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 13995 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13996 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 13997 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 13998 | fi | 
 | 13999 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14000 | fi | 
 | 14001 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_nice" >&5 | 
 | 14003 | $as_echo "$ac_cv_broken_nice" >&6; } | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 14004 | if test "$ac_cv_broken_nice" = yes | 
 | 14005 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14006 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14007 | $as_echo "#define HAVE_BROKEN_NICE 1" >>confdefs.h | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 14008 |  | 
 | 14009 | fi | 
 | 14010 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14011 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken poll()" >&5 | 
 | 14012 | $as_echo_n "checking for broken poll()... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 14013 | if ${ac_cv_broken_poll+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14014 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14015 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14016 |   if test "$cross_compiling" = yes; then : | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 14017 |   ac_cv_broken_poll=no | 
 | 14018 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14019 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 14020 | /* end confdefs.h.  */ | 
 | 14021 |  | 
 | 14022 | #include <poll.h> | 
 | 14023 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14024 | int main() | 
 | 14025 | { | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 14026 |     struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 }; | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14027 |     int poll_test; | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 14028 |  | 
 | 14029 |     close (42); | 
 | 14030 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14031 |     poll_test = poll(&poll_struct, 1, 0); | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 14032 |     if (poll_test < 0) | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14033 |         return 0; | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 14034 |     else if (poll_test == 0 && poll_struct.revents != POLLNVAL) | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14035 |         return 0; | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 14036 |     else | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14037 |         return 1; | 
 | 14038 | } | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 14039 |  | 
 | 14040 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14041 | if ac_fn_c_try_run "$LINENO"; then : | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 14042 |   ac_cv_broken_poll=yes | 
 | 14043 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14044 |   ac_cv_broken_poll=no | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 14045 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14046 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 14047 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 14048 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14049 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14050 | fi | 
 | 14051 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14052 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_poll" >&5 | 
 | 14053 | $as_echo "$ac_cv_broken_poll" >&6; } | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 14054 | if test "$ac_cv_broken_poll" = yes | 
 | 14055 | then | 
 | 14056 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14057 | $as_echo "#define HAVE_BROKEN_POLL 1" >>confdefs.h | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 14058 |  | 
 | 14059 | fi | 
 | 14060 |  | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14061 | # 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] | 14062 | # (which is not required by ISO C or UNIX spec) and/or if we support | 
 | 14063 | # tzname[] | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14064 | 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] | 14065 | #include <$ac_cv_struct_tm> | 
 | 14066 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14067 | " | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 14068 | if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then : | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14069 |  | 
 | 14070 | cat >>confdefs.h <<_ACEOF | 
 | 14071 | #define HAVE_STRUCT_TM_TM_ZONE 1 | 
 | 14072 | _ACEOF | 
 | 14073 |  | 
 | 14074 |  | 
 | 14075 | fi | 
 | 14076 |  | 
 | 14077 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then | 
 | 14078 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14079 | $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14080 |  | 
 | 14081 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14082 |   ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> | 
 | 14083 | " | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 14084 | if test "x$ac_cv_have_decl_tzname" = xyes; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14085 |   ac_have_decl=1 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14086 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14087 |   ac_have_decl=0 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14088 | fi | 
 | 14089 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14090 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14091 | #define HAVE_DECL_TZNAME $ac_have_decl | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14092 | _ACEOF | 
 | 14093 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14094 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 | 
 | 14095 | $as_echo_n "checking for tzname... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 14096 | if ${ac_cv_var_tzname+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14097 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14098 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14099 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14100 | /* end confdefs.h.  */ | 
 | 14101 | #include <time.h> | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14102 | #if !HAVE_DECL_TZNAME | 
 | 14103 | extern char *tzname[]; | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14104 | #endif | 
 | 14105 |  | 
 | 14106 | int | 
 | 14107 | main () | 
 | 14108 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14109 | return tzname[0][0]; | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14110 |   ; | 
 | 14111 |   return 0; | 
 | 14112 | } | 
 | 14113 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14114 | if ac_fn_c_try_link "$LINENO"; then : | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14115 |   ac_cv_var_tzname=yes | 
 | 14116 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14117 |   ac_cv_var_tzname=no | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14118 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14119 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 14120 |     conftest$ac_exeext conftest.$ac_ext | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14121 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 | 
 | 14123 | $as_echo "$ac_cv_var_tzname" >&6; } | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14124 |   if test $ac_cv_var_tzname = yes; then | 
 | 14125 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14126 | $as_echo "#define HAVE_TZNAME 1" >>confdefs.h | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14127 |  | 
 | 14128 |   fi | 
 | 14129 | fi | 
 | 14130 |  | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 14131 |  | 
| Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 14132 | # check tzset(3) exists and works like we expect it to | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14133 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working tzset()" >&5 | 
 | 14134 | $as_echo_n "checking for working tzset()... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 14135 | if ${ac_cv_working_tzset+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14136 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 14137 | else | 
 | 14138 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14139 | if test "$cross_compiling" = yes; then : | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 14140 |   ac_cv_working_tzset=no | 
 | 14141 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14142 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14143 | /* end confdefs.h.  */ | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 14144 |  | 
 | 14145 | #include <stdlib.h> | 
 | 14146 | #include <time.h> | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 14147 | #include <string.h> | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14148 |  | 
 | 14149 | #if HAVE_TZNAME | 
 | 14150 | extern char *tzname[]; | 
 | 14151 | #endif | 
 | 14152 |  | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 14153 | int main() | 
 | 14154 | { | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 14155 | 	/* Note that we need to ensure that not only does tzset(3) | 
 | 14156 | 	   do 'something' with localtime, but it works as documented | 
 | 14157 | 	   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] | 14158 | 	   This includes making sure that tzname is set properly if | 
 | 14159 | 	   tm->tm_zone does not exist since it is the alternative way | 
 | 14160 | 	   of getting timezone info. | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 14161 |  | 
 | 14162 | 	   Red Hat 6.2 doesn't understand the southern hemisphere | 
| Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 14163 | 	   after New Year's Day. | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 14164 | 	*/ | 
 | 14165 |  | 
| Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 14166 | 	time_t groundhogday = 1044144000; /* GMT-based */ | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 14167 | 	time_t midyear = groundhogday + (365 * 24 * 3600 / 2); | 
 | 14168 |  | 
| Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 14169 | 	putenv("TZ=UTC+0"); | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 14170 | 	tzset(); | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 14171 | 	if (localtime(&groundhogday)->tm_hour != 0) | 
 | 14172 | 	    exit(1); | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14173 | #if HAVE_TZNAME | 
 | 14174 | 	/* For UTC, tzname[1] is sometimes "", sometimes "   " */ | 
 | 14175 | 	if (strcmp(tzname[0], "UTC") || | 
 | 14176 | 		(tzname[1][0] != 0 && tzname[1][0] != ' ')) | 
 | 14177 | 	    exit(1); | 
 | 14178 | #endif | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 14179 |  | 
| Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 14180 | 	putenv("TZ=EST+5EDT,M4.1.0,M10.5.0"); | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 14181 | 	tzset(); | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 14182 | 	if (localtime(&groundhogday)->tm_hour != 19) | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 14183 | 	    exit(1); | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14184 | #if HAVE_TZNAME | 
 | 14185 | 	if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT")) | 
 | 14186 | 	    exit(1); | 
 | 14187 | #endif | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 14188 |  | 
 | 14189 | 	putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0"); | 
 | 14190 | 	tzset(); | 
 | 14191 | 	if (localtime(&groundhogday)->tm_hour != 11) | 
 | 14192 | 	    exit(1); | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14193 | #if HAVE_TZNAME | 
 | 14194 | 	if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT")) | 
 | 14195 | 	    exit(1); | 
 | 14196 | #endif | 
 | 14197 |  | 
 | 14198 | #if HAVE_STRUCT_TM_TM_ZONE | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 14199 | 	if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT")) | 
 | 14200 | 	    exit(1); | 
 | 14201 | 	if (strcmp(localtime(&midyear)->tm_zone, "AEST")) | 
 | 14202 | 	    exit(1); | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14203 | #endif | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 14204 |  | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 14205 | 	exit(0); | 
 | 14206 | } | 
 | 14207 |  | 
 | 14208 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14209 | if ac_fn_c_try_run "$LINENO"; then : | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 14210 |   ac_cv_working_tzset=yes | 
 | 14211 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14212 |   ac_cv_working_tzset=no | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 14213 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14214 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 14215 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 14216 | fi | 
 | 14217 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14218 | fi | 
 | 14219 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14220 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_tzset" >&5 | 
 | 14221 | $as_echo "$ac_cv_working_tzset" >&6; } | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 14222 | if test "$ac_cv_working_tzset" = yes | 
 | 14223 | then | 
 | 14224 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14225 | $as_echo "#define HAVE_WORKING_TZSET 1" >>confdefs.h | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 14226 |  | 
 | 14227 | fi | 
 | 14228 |  | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 14229 | # Look for subsecond timestamps in struct stat | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14230 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec in struct stat" >&5 | 
 | 14231 | $as_echo_n "checking for tv_nsec in struct stat... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 14232 | if ${ac_cv_stat_tv_nsec+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14233 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 14234 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14235 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14236 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 14237 | #include <sys/stat.h> | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 14238 | int | 
 | 14239 | main () | 
 | 14240 | { | 
 | 14241 |  | 
 | 14242 | struct stat st; | 
 | 14243 | st.st_mtim.tv_nsec = 1; | 
 | 14244 |  | 
 | 14245 |   ; | 
 | 14246 |   return 0; | 
 | 14247 | } | 
 | 14248 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14249 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | a32c994 | 2002-09-09 16:17:47 +0000 | [diff] [blame] | 14250 |   ac_cv_stat_tv_nsec=yes | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 14251 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14252 |   ac_cv_stat_tv_nsec=no | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 14253 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14254 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 14255 | fi | 
 | 14256 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec" >&5 | 
 | 14258 | $as_echo "$ac_cv_stat_tv_nsec" >&6; } | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 14259 | if test "$ac_cv_stat_tv_nsec" = yes | 
 | 14260 | then | 
 | 14261 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14262 | $as_echo "#define HAVE_STAT_TV_NSEC 1" >>confdefs.h | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 14263 |  | 
 | 14264 | fi | 
 | 14265 |  | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 14266 | # Look for BSD style subsecond timestamps in struct stat | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14267 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec2 in struct stat" >&5 | 
 | 14268 | $as_echo_n "checking for tv_nsec2 in struct stat... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 14269 | if ${ac_cv_stat_tv_nsec2+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14270 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 14271 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14272 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 14273 | /* end confdefs.h.  */ | 
 | 14274 | #include <sys/stat.h> | 
 | 14275 | int | 
 | 14276 | main () | 
 | 14277 | { | 
 | 14278 |  | 
 | 14279 | struct stat st; | 
 | 14280 | st.st_mtimespec.tv_nsec = 1; | 
 | 14281 |  | 
 | 14282 |   ; | 
 | 14283 |   return 0; | 
 | 14284 | } | 
 | 14285 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14286 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 14287 |   ac_cv_stat_tv_nsec2=yes | 
 | 14288 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14289 |   ac_cv_stat_tv_nsec2=no | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 14290 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14291 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 14292 | fi | 
 | 14293 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec2" >&5 | 
 | 14295 | $as_echo "$ac_cv_stat_tv_nsec2" >&6; } | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 14296 | if test "$ac_cv_stat_tv_nsec2" = yes | 
 | 14297 | then | 
 | 14298 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14299 | $as_echo "#define HAVE_STAT_TV_NSEC2 1" >>confdefs.h | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 14300 |  | 
 | 14301 | fi | 
 | 14302 |  | 
| doko@ubuntu.com | f27ec3e | 2014-04-17 20:11:19 +0200 | [diff] [blame] | 14303 | # first curses configure check | 
 | 14304 | ac_save_cppflags="$CPPFLAGS" | 
 | 14305 | CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw" | 
 | 14306 |  | 
 | 14307 | for ac_header in curses.h ncurses.h | 
 | 14308 | do : | 
 | 14309 |   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
 | 14310 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | 
 | 14311 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 
 | 14312 |   cat >>confdefs.h <<_ACEOF | 
 | 14313 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
 | 14314 | _ACEOF | 
 | 14315 |  | 
 | 14316 | fi | 
 | 14317 |  | 
 | 14318 | done | 
 | 14319 |  | 
 | 14320 |  | 
 | 14321 | # On Solaris, term.h requires curses.h | 
 | 14322 | for ac_header in term.h | 
 | 14323 | do : | 
 | 14324 |   ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" " | 
 | 14325 | #ifdef HAVE_CURSES_H | 
 | 14326 | #include <curses.h> | 
 | 14327 | #endif | 
 | 14328 |  | 
 | 14329 | " | 
 | 14330 | if test "x$ac_cv_header_term_h" = xyes; then : | 
 | 14331 |   cat >>confdefs.h <<_ACEOF | 
 | 14332 | #define HAVE_TERM_H 1 | 
 | 14333 | _ACEOF | 
 | 14334 |  | 
 | 14335 | fi | 
 | 14336 |  | 
 | 14337 | done | 
 | 14338 |  | 
 | 14339 |  | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 14340 | # On HP/UX 11.0, mvwdelch is a block with a return statement | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14341 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mvwdelch is an expression" >&5 | 
 | 14342 | $as_echo_n "checking whether mvwdelch is an expression... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 14343 | if ${ac_cv_mvwdelch_is_expression+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14344 |   $as_echo_n "(cached) " >&6 | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 14345 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14346 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14347 | /* end confdefs.h.  */ | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 14348 | #include <curses.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14349 | int | 
 | 14350 | main () | 
 | 14351 | { | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 14352 |  | 
 | 14353 |   int rtn; | 
 | 14354 |   rtn = mvwdelch(0,0,0); | 
 | 14355 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14356 |   ; | 
 | 14357 |   return 0; | 
 | 14358 | } | 
 | 14359 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14360 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 14361 |   ac_cv_mvwdelch_is_expression=yes | 
 | 14362 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14363 |   ac_cv_mvwdelch_is_expression=no | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 14364 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14365 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 14366 | fi | 
 | 14367 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mvwdelch_is_expression" >&5 | 
 | 14369 | $as_echo "$ac_cv_mvwdelch_is_expression" >&6; } | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 14370 |  | 
 | 14371 | if test "$ac_cv_mvwdelch_is_expression" = yes | 
 | 14372 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14373 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14374 | $as_echo "#define MVWDELCH_IS_EXPRESSION 1" >>confdefs.h | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 14375 |  | 
 | 14376 | fi | 
 | 14377 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14378 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether WINDOW has _flags" >&5 | 
 | 14379 | $as_echo_n "checking whether WINDOW has _flags... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 14380 | if ${ac_cv_window_has_flags+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14381 |   $as_echo_n "(cached) " >&6 | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 14382 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14383 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14384 | /* end confdefs.h.  */ | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 14385 | #include <curses.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14386 | int | 
 | 14387 | main () | 
 | 14388 | { | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 14389 |  | 
 | 14390 |   WINDOW *w; | 
 | 14391 |   w->_flags = 0; | 
 | 14392 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14393 |   ; | 
 | 14394 |   return 0; | 
 | 14395 | } | 
 | 14396 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14397 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 14398 |   ac_cv_window_has_flags=yes | 
 | 14399 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14400 |   ac_cv_window_has_flags=no | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 14401 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14402 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 14403 | fi | 
 | 14404 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_window_has_flags" >&5 | 
 | 14406 | $as_echo "$ac_cv_window_has_flags" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14407 |  | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 14408 |  | 
 | 14409 | if test "$ac_cv_window_has_flags" = yes | 
 | 14410 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14411 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14412 | $as_echo "#define WINDOW_HAS_FLAGS 1" >>confdefs.h | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 14413 |  | 
 | 14414 | fi | 
 | 14415 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14416 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_term_resized" >&5 | 
 | 14417 | $as_echo_n "checking for is_term_resized... " >&6; } | 
 | 14418 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 14419 | /* end confdefs.h.  */ | 
 | 14420 | #include <curses.h> | 
 | 14421 | int | 
 | 14422 | main () | 
 | 14423 | { | 
 | 14424 | void *x=is_term_resized | 
 | 14425 |   ; | 
 | 14426 |   return 0; | 
 | 14427 | } | 
 | 14428 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14429 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 14430 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14431 | $as_echo "#define HAVE_CURSES_IS_TERM_RESIZED 1" >>confdefs.h | 
| Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 14432 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 14433 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14434 | $as_echo "yes" >&6; } | 
| Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 14435 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14436 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 14437 | $as_echo "no" >&6; } | 
| Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 14438 |  | 
 | 14439 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14440 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 14441 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14442 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resize_term" >&5 | 
 | 14443 | $as_echo_n "checking for resize_term... " >&6; } | 
 | 14444 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 14445 | /* end confdefs.h.  */ | 
 | 14446 | #include <curses.h> | 
 | 14447 | int | 
 | 14448 | main () | 
 | 14449 | { | 
 | 14450 | void *x=resize_term | 
 | 14451 |   ; | 
 | 14452 |   return 0; | 
 | 14453 | } | 
 | 14454 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14455 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 14456 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14457 | $as_echo "#define HAVE_CURSES_RESIZE_TERM 1" >>confdefs.h | 
| Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 14458 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 14459 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14460 | $as_echo "yes" >&6; } | 
| Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 14461 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14462 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 14463 | $as_echo "no" >&6; } | 
| Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 14464 |  | 
 | 14465 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14466 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 14467 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14468 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resizeterm" >&5 | 
 | 14469 | $as_echo_n "checking for resizeterm... " >&6; } | 
 | 14470 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 14471 | /* end confdefs.h.  */ | 
 | 14472 | #include <curses.h> | 
 | 14473 | int | 
 | 14474 | main () | 
 | 14475 | { | 
 | 14476 | void *x=resizeterm | 
 | 14477 |   ; | 
 | 14478 |   return 0; | 
 | 14479 | } | 
 | 14480 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14481 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 14482 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14483 | $as_echo "#define HAVE_CURSES_RESIZETERM 1" >>confdefs.h | 
| Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 14484 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 14485 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14486 | $as_echo "yes" >&6; } | 
| Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 14487 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14488 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 14489 | $as_echo "no" >&6; } | 
| Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 14490 |  | 
 | 14491 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14492 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| doko@ubuntu.com | f27ec3e | 2014-04-17 20:11:19 +0200 | [diff] [blame] | 14493 | # last curses configure check | 
 | 14494 | CPPFLAGS=$ac_save_cppflags | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14495 |  | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 14496 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for device files" >&5 | 
 | 14497 | $as_echo "$as_me: checking for device files" >&6;} | 
 | 14498 |  | 
 | 14499 | if test "x$cross_compiling" = xyes; then | 
 | 14500 |   if test "${ac_cv_file__dev_ptmx+set}" != set; then | 
 | 14501 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5 | 
 | 14502 | $as_echo_n "checking for /dev/ptmx... " >&6; } | 
 | 14503 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5 | 
 | 14504 | $as_echo "not set" >&6; } | 
 | 14505 |     as_fn_error $? "set ac_cv_file__dev_ptmx to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5 | 
 | 14506 |   fi | 
 | 14507 |   if test "${ac_cv_file__dev_ptc+set}" != set; then | 
 | 14508 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5 | 
 | 14509 | $as_echo_n "checking for /dev/ptc... " >&6; } | 
 | 14510 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5 | 
 | 14511 | $as_echo "not set" >&6; } | 
 | 14512 |     as_fn_error $? "set ac_cv_file__dev_ptc to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5 | 
 | 14513 |   fi | 
 | 14514 | fi | 
 | 14515 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14516 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5 | 
 | 14517 | $as_echo_n "checking for /dev/ptmx... " >&6; } | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 14518 | if ${ac_cv_file__dev_ptmx+:} false; then : | 
 | 14519 |   $as_echo_n "(cached) " >&6 | 
 | 14520 | else | 
 | 14521 |   test "$cross_compiling" = yes && | 
 | 14522 |   as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 | 
 | 14523 | if test -r "/dev/ptmx"; then | 
 | 14524 |   ac_cv_file__dev_ptmx=yes | 
 | 14525 | else | 
 | 14526 |   ac_cv_file__dev_ptmx=no | 
 | 14527 | fi | 
 | 14528 | fi | 
 | 14529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptmx" >&5 | 
 | 14530 | $as_echo "$ac_cv_file__dev_ptmx" >&6; } | 
 | 14531 | if test "x$ac_cv_file__dev_ptmx" = xyes; then : | 
| Martin v. Löwis | fefbc20 | 2006-10-17 18:59:23 +0000 | [diff] [blame] | 14532 |  | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 14533 | fi | 
 | 14534 |  | 
 | 14535 | if test "x$ac_cv_file__dev_ptmx" = xyes; then | 
| Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 14536 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14537 | $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h | 
| Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 14538 |  | 
| Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 14539 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14540 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5 | 
 | 14541 | $as_echo_n "checking for /dev/ptc... " >&6; } | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 14542 | if ${ac_cv_file__dev_ptc+:} false; then : | 
 | 14543 |   $as_echo_n "(cached) " >&6 | 
 | 14544 | else | 
 | 14545 |   test "$cross_compiling" = yes && | 
 | 14546 |   as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 | 
 | 14547 | if test -r "/dev/ptc"; then | 
 | 14548 |   ac_cv_file__dev_ptc=yes | 
 | 14549 | else | 
 | 14550 |   ac_cv_file__dev_ptc=no | 
 | 14551 | fi | 
 | 14552 | fi | 
 | 14553 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptc" >&5 | 
 | 14554 | $as_echo "$ac_cv_file__dev_ptc" >&6; } | 
 | 14555 | if test "x$ac_cv_file__dev_ptc" = xyes; then : | 
| Martin v. Löwis | fefbc20 | 2006-10-17 18:59:23 +0000 | [diff] [blame] | 14556 |  | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 14557 | fi | 
 | 14558 |  | 
 | 14559 | if test "x$ac_cv_file__dev_ptc" = xyes; then | 
| Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 14560 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14561 | $as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h | 
| Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 14562 |  | 
| Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 14563 | fi | 
 | 14564 |  | 
| Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 14565 | if test "$have_long_long" = yes | 
 | 14566 | then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14567 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for %lld and %llu printf() format support" >&5 | 
 | 14568 | $as_echo_n "checking for %lld and %llu printf() format support... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 14569 |   if ${ac_cv_have_long_long_format+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14570 |   $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 14571 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14572 |   if test "$cross_compiling" = yes; then : | 
| doko@python.org | d65e2ba | 2013-01-31 23:52:03 +0100 | [diff] [blame] | 14573 |   ac_cv_have_long_long_format="cross -- assuming no" | 
 | 14574 |    if test x$GCC = xyes; then | 
 | 14575 |     save_CFLAGS=$CFLAGS | 
 | 14576 |     CFLAGS="$CFLAGS -Werror -Wformat" | 
 | 14577 |     cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 14578 | /* end confdefs.h.  */ | 
 | 14579 |  | 
 | 14580 |         #include <stdio.h> | 
 | 14581 |         #include <stddef.h> | 
 | 14582 |  | 
 | 14583 | int | 
 | 14584 | main () | 
 | 14585 | { | 
 | 14586 |  | 
 | 14587 |       char *buffer; | 
 | 14588 |       sprintf(buffer, "%lld", (long long)123); | 
 | 14589 |       sprintf(buffer, "%lld", (long long)-123); | 
 | 14590 |       sprintf(buffer, "%llu", (unsigned long long)123); | 
 | 14591 |  | 
 | 14592 |   ; | 
 | 14593 |   return 0; | 
 | 14594 | } | 
 | 14595 | _ACEOF | 
 | 14596 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 14597 |   ac_cv_have_long_long_format=yes | 
 | 14598 |  | 
 | 14599 | fi | 
 | 14600 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 14601 |     CFLAGS=$save_CFLAGS | 
 | 14602 |    fi | 
| Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 14603 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14604 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 14605 | /* end confdefs.h.  */ | 
 | 14606 |  | 
 | 14607 |   #include <stdio.h> | 
 | 14608 |   #include <stddef.h> | 
 | 14609 |   #include <string.h> | 
 | 14610 |  | 
 | 14611 |   #ifdef HAVE_SYS_TYPES_H | 
 | 14612 |   #include <sys/types.h> | 
 | 14613 |   #endif | 
 | 14614 |  | 
 | 14615 |   int main() | 
 | 14616 |   { | 
 | 14617 |       char buffer[256]; | 
 | 14618 |  | 
 | 14619 |       if (sprintf(buffer, "%lld", (long long)123) < 0) | 
 | 14620 |           return 1; | 
 | 14621 |       if (strcmp(buffer, "123")) | 
 | 14622 |           return 1; | 
 | 14623 |  | 
 | 14624 |       if (sprintf(buffer, "%lld", (long long)-123) < 0) | 
 | 14625 |           return 1; | 
 | 14626 |       if (strcmp(buffer, "-123")) | 
 | 14627 |           return 1; | 
 | 14628 |  | 
 | 14629 |       if (sprintf(buffer, "%llu", (unsigned long long)123) < 0) | 
 | 14630 |           return 1; | 
 | 14631 |       if (strcmp(buffer, "123")) | 
 | 14632 |           return 1; | 
 | 14633 |  | 
 | 14634 |       return 0; | 
 | 14635 |   } | 
 | 14636 |  | 
 | 14637 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14638 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 14639 |   ac_cv_have_long_long_format=yes | 
 | 14640 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14641 |   ac_cv_have_long_long_format=no | 
| Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 14642 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14643 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 14644 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 14645 | fi | 
 | 14646 |  | 
 | 14647 |  | 
| Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 14648 | fi | 
 | 14649 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14650 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_long_long_format" >&5 | 
 | 14651 | $as_echo "$ac_cv_have_long_long_format" >&6; } | 
| Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 14652 | fi | 
 | 14653 |  | 
| Mark Dickinson | 5ce8474 | 2009-12-31 20:48:04 +0000 | [diff] [blame] | 14654 | if test "$ac_cv_have_long_long_format" = yes | 
| Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 14655 | then | 
 | 14656 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14657 | $as_echo "#define PY_FORMAT_LONG_LONG \"ll\"" >>confdefs.h | 
| Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 14658 |  | 
 | 14659 | fi | 
 | 14660 |  | 
| Ronald Oussoren | 315cd0c | 2009-11-19 16:25:21 +0000 | [diff] [blame] | 14661 | if test $ac_sys_system = Darwin | 
 | 14662 | then | 
 | 14663 | 	LIBS="$LIBS -framework CoreFoundation" | 
 | 14664 | fi | 
 | 14665 |  | 
| Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 14666 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14667 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for %zd printf() format support" >&5 | 
 | 14668 | $as_echo_n "checking for %zd printf() format support... " >&6; } | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 14669 | if ${ac_cv_have_size_t_format+:} false; then : | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14670 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14671 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14672 |   if test "$cross_compiling" = yes; then : | 
| Gregory P. Smith | c9ff3a7 | 2009-11-02 02:03:16 +0000 | [diff] [blame] | 14673 |   ac_cv_have_size_t_format="cross -- assuming yes" | 
 | 14674 |  | 
| Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 14675 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14676 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 14677 | /* end confdefs.h.  */ | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14678 |  | 
| Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 14679 | #include <stdio.h> | 
 | 14680 | #include <stddef.h> | 
 | 14681 | #include <string.h> | 
 | 14682 |  | 
| Christian Heimes | db3d6cb | 2007-12-16 21:39:43 +0000 | [diff] [blame] | 14683 | #ifdef HAVE_SYS_TYPES_H | 
 | 14684 | #include <sys/types.h> | 
 | 14685 | #endif | 
| Neal Norwitz | 4a8fbdb | 2006-09-22 08:16:26 +0000 | [diff] [blame] | 14686 |  | 
 | 14687 | #ifdef HAVE_SSIZE_T | 
 | 14688 | typedef ssize_t Py_ssize_t; | 
 | 14689 | #elif SIZEOF_VOID_P == SIZEOF_LONG | 
 | 14690 | typedef long Py_ssize_t; | 
 | 14691 | #else | 
 | 14692 | typedef int Py_ssize_t; | 
 | 14693 | #endif | 
| Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 14694 |  | 
| Christian Heimes | db3d6cb | 2007-12-16 21:39:43 +0000 | [diff] [blame] | 14695 | int main() | 
 | 14696 | { | 
 | 14697 |     char buffer[256]; | 
 | 14698 |  | 
| Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 14699 |     if(sprintf(buffer, "%zd", (size_t)123) < 0) | 
 | 14700 |        	return 1; | 
 | 14701 |  | 
| Neal Norwitz | 4a8fbdb | 2006-09-22 08:16:26 +0000 | [diff] [blame] | 14702 |     if (strcmp(buffer, "123")) | 
 | 14703 | 	return 1; | 
 | 14704 |  | 
 | 14705 |     if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0) | 
 | 14706 |        	return 1; | 
 | 14707 |  | 
 | 14708 |     if (strcmp(buffer, "-123")) | 
| Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 14709 | 	return 1; | 
 | 14710 |  | 
 | 14711 |     return 0; | 
 | 14712 | } | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14713 |  | 
| Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 14714 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14715 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14716 |   ac_cv_have_size_t_format=yes | 
| Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14717 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14718 |   ac_cv_have_size_t_format=no | 
| Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14719 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14720 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 14721 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 14722 | fi | 
 | 14723 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14724 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_size_t_format" >&5 | 
 | 14726 | $as_echo "$ac_cv_have_size_t_format" >&6; } | 
| Gregory P. Smith | c9ff3a7 | 2009-11-02 02:03:16 +0000 | [diff] [blame] | 14727 | if test "$ac_cv_have_size_t_format" != no ; then | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14728 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14729 | $as_echo "#define PY_FORMAT_SIZE_T \"z\"" >>confdefs.h | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14730 |  | 
 | 14731 | fi | 
 | 14732 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14733 | 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] | 14734 | #ifdef HAVE_SYS_TYPES_H | 
 | 14735 | #include <sys/types.h> | 
 | 14736 | #endif | 
 | 14737 | #ifdef HAVE_SYS_SOCKET_H | 
 | 14738 | #include <sys/socket.h> | 
 | 14739 | #endif | 
 | 14740 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14741 | " | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 14742 | if test "x$ac_cv_type_socklen_t" = xyes; then : | 
| Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 14743 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14744 | else | 
| Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 14745 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14746 | $as_echo "#define socklen_t int" >>confdefs.h | 
| Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 14747 |  | 
 | 14748 | fi | 
 | 14749 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14750 |  | 
| Benjamin Peterson | 7497e91 | 2010-10-16 00:53:39 +0000 | [diff] [blame] | 14751 | case $ac_sys_system in | 
 | 14752 | AIX*) | 
 | 14753 |  | 
 | 14754 | $as_echo "#define HAVE_BROKEN_PIPE_BUF 1" >>confdefs.h | 
 | 14755 |  ;; | 
 | 14756 | esac | 
 | 14757 |  | 
 | 14758 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14759 |  | 
 | 14760 |  | 
| Martin v. Löwis | 06f15bb | 2001-12-02 13:02:32 +0000 | [diff] [blame] | 14761 | for h in `(cd $srcdir;echo Python/thread_*.h)` | 
 | 14762 | do | 
 | 14763 |   THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" | 
 | 14764 | done | 
 | 14765 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14766 |  | 
| Neal Norwitz | d24499d | 2005-12-18 21:36:39 +0000 | [diff] [blame] | 14767 | SRCDIRS="Parser Grammar Objects Python Modules Mac" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14768 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build directories" >&5 | 
 | 14769 | $as_echo_n "checking for build directories... " >&6; } | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 14770 | for dir in $SRCDIRS; do | 
 | 14771 |     if test ! -d $dir; then | 
 | 14772 |         mkdir $dir | 
| Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 14773 |     fi | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 14774 | done | 
| Benjamin Peterson | 2c992a0 | 2015-05-28 12:45:31 -0500 | [diff] [blame] | 14775 |  | 
 | 14776 | # BEGIN_COMPUTED_GOTO | 
 | 14777 | # Check for --with-computed-gotos | 
 | 14778 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-computed-gotos" >&5 | 
 | 14779 | $as_echo_n "checking for --with-computed-gotos... " >&6; } | 
 | 14780 |  | 
 | 14781 | # Check whether --with-computed-gotos was given. | 
 | 14782 | if test "${with_computed_gotos+set}" = set; then : | 
 | 14783 |   withval=$with_computed_gotos; | 
 | 14784 | if test "$withval" = yes | 
 | 14785 | then | 
 | 14786 |  | 
 | 14787 | $as_echo "#define USE_COMPUTED_GOTOS 1" >>confdefs.h | 
 | 14788 |  | 
 | 14789 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 14790 | $as_echo "yes" >&6; } | 
 | 14791 | fi | 
 | 14792 | if test "$withval" = no | 
 | 14793 | then | 
 | 14794 |  | 
 | 14795 | $as_echo "#define USE_COMPUTED_GOTOS 0" >>confdefs.h | 
 | 14796 |  | 
 | 14797 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 14798 | $as_echo "no" >&6; } | 
 | 14799 | fi | 
 | 14800 |  | 
 | 14801 | else | 
 | 14802 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5 | 
 | 14803 | $as_echo "no value specified" >&6; } | 
 | 14804 | fi | 
 | 14805 |  | 
 | 14806 |  | 
 | 14807 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports computed gotos" >&5 | 
 | 14808 | $as_echo_n "checking whether $CC supports computed gotos... " >&6; } | 
 | 14809 | if ${ac_cv_computed_gotos+:} false; then : | 
 | 14810 |   $as_echo_n "(cached) " >&6 | 
 | 14811 | else | 
 | 14812 |   if test "$cross_compiling" = yes; then : | 
 | 14813 |   if test "${with_computed_gotos+set}" = set; then | 
 | 14814 |    ac_cv_computed_gotos="$with_computed_gotos -- configured --with(out)-computed-gotos" | 
 | 14815 |  else | 
 | 14816 |    ac_cv_computed_gotos=no | 
 | 14817 |  fi | 
 | 14818 | else | 
 | 14819 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 14820 | /* end confdefs.h.  */ | 
 | 14821 |  | 
 | 14822 | int main(int argc, char **argv) | 
 | 14823 | { | 
 | 14824 |     static void *targets[1] = { &&LABEL1 }; | 
 | 14825 |     goto LABEL2; | 
 | 14826 | LABEL1: | 
 | 14827 |     return 0; | 
 | 14828 | LABEL2: | 
 | 14829 |     goto *targets[0]; | 
 | 14830 |     return 1; | 
 | 14831 | } | 
 | 14832 |  | 
 | 14833 | _ACEOF | 
 | 14834 | if ac_fn_c_try_run "$LINENO"; then : | 
 | 14835 |   ac_cv_computed_gotos=yes | 
 | 14836 | else | 
 | 14837 |   ac_cv_computed_gotos=no | 
 | 14838 | fi | 
 | 14839 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 14840 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
 | 14841 | fi | 
 | 14842 |  | 
 | 14843 | fi | 
 | 14844 |  | 
 | 14845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_computed_gotos" >&5 | 
 | 14846 | $as_echo "$ac_cv_computed_gotos" >&6; } | 
 | 14847 | case "$ac_cv_computed_gotos" in yes*) | 
 | 14848 |  | 
 | 14849 | $as_echo "#define HAVE_COMPUTED_GOTOS 1" >>confdefs.h | 
 | 14850 |  | 
 | 14851 | esac | 
 | 14852 | # END_COMPUTED_GOTO | 
 | 14853 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | 
 | 14855 | $as_echo "done" >&6; } | 
| Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 14856 |  | 
| Ned Deily | 3f1d0b3 | 2014-11-20 02:11:03 -0800 | [diff] [blame] | 14857 | # ensurepip option | 
 | 14858 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ensurepip" >&5 | 
 | 14859 | $as_echo_n "checking for ensurepip... " >&6; } | 
 | 14860 |  | 
 | 14861 | # Check whether --with-ensurepip was given. | 
 | 14862 | if test "${with_ensurepip+set}" = set; then : | 
 | 14863 |   withval=$with_ensurepip; | 
 | 14864 | else | 
 | 14865 |   with_ensurepip=no | 
 | 14866 | fi | 
 | 14867 |  | 
 | 14868 | case $with_ensurepip in #( | 
 | 14869 |   yes|upgrade) : | 
 | 14870 |     ENSUREPIP=upgrade ;; #( | 
 | 14871 |   install) : | 
 | 14872 |     ENSUREPIP=install ;; #( | 
 | 14873 |   no) : | 
 | 14874 |     ENSUREPIP=no ;; #( | 
 | 14875 |   *) : | 
 | 14876 |     as_fn_error $? "--with-ensurepip=upgrade|install|no" "$LINENO" 5 ;; | 
 | 14877 | esac | 
 | 14878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENSUREPIP" >&5 | 
 | 14879 | $as_echo "$ENSUREPIP" >&6; } | 
 | 14880 |  | 
 | 14881 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14882 | # generate output files | 
| Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 14883 | ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config Misc/python.pc" | 
| Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 14884 |  | 
| Antoine Pitrou | aabdceb | 2010-09-10 20:03:17 +0000 | [diff] [blame] | 14885 | ac_config_files="$ac_config_files Modules/ld_so_aix" | 
 | 14886 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14887 | cat >confcache <<\_ACEOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14888 | # This file is a shell script that caches the results of configure | 
 | 14889 | # 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] | 14890 | # scripts and configure runs, see configure's option --config-cache. | 
 | 14891 | # It is not useful on other systems.  If it contains results you don't | 
 | 14892 | # want to keep, you may remove or edit it. | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14893 | # | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14894 | # config.status only pays attention to the cache file if you give it | 
 | 14895 | # the --recheck option to rerun configure. | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14896 | # | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14897 | # `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] | 14898 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | 
 | 14899 | # following values. | 
 | 14900 |  | 
 | 14901 | _ACEOF | 
 | 14902 |  | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 14903 | # The following way of writing the cache mishandles newlines in values, | 
 | 14904 | # but we know of no workaround that is simple, portable, and efficient. | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14905 | # So, we kill variables containing newlines. | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14906 | # Ultrix sh set writes to stderr and can't be redirected directly, | 
 | 14907 | # and sets the high bit in the cache file unless we assign to the vars. | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14908 | ( | 
 | 14909 |   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | 
 | 14910 |     eval ac_val=\$$ac_var | 
 | 14911 |     case $ac_val in #( | 
 | 14912 |     *${as_nl}*) | 
 | 14913 |       case $ac_var in #( | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14914 |       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | 
 | 14915 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14916 |       esac | 
 | 14917 |       case $ac_var in #( | 
 | 14918 |       _ | IFS | as_nl) ;; #( | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14919 |       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | 
 | 14920 |       *) { eval $ac_var=; unset $ac_var;} ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14921 |       esac ;; | 
 | 14922 |     esac | 
 | 14923 |   done | 
 | 14924 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14925 |   (set) 2>&1 | | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14926 |     case $as_nl`(ac_space=' '; set) 2>&1` in #( | 
 | 14927 |     *${as_nl}ac_space=\ *) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14928 |       # `set' does not quote correctly, so add quotes: double-quote | 
 | 14929 |       # substitution turns \\\\ into \\, and sed turns \\ into \. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14930 |       sed -n \ | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14931 | 	"s/'/'\\\\''/g; | 
 | 14932 | 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14933 |       ;; #( | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14934 |     *) | 
 | 14935 |       # `set' quotes correctly as required by POSIX, so do not add quotes. | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14936 |       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14937 |       ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14938 |     esac | | 
 | 14939 |     sort | 
 | 14940 | ) | | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14941 |   sed ' | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14942 |      /^ac_cv_env_/b end | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14943 |      t clear | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14944 |      :clear | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14945 |      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | 
 | 14946 |      t end | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14947 |      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | 
 | 14948 |      :end' >>confcache | 
 | 14949 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | 
 | 14950 |   if test -w "$cache_file"; then | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 14951 |     if test "x$cache_file" != "x/dev/null"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14952 |       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | 
 | 14953 | $as_echo "$as_me: updating cache $cache_file" >&6;} | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 14954 |       if test ! -f "$cache_file" || test -h "$cache_file"; then | 
 | 14955 | 	cat confcache >"$cache_file" | 
 | 14956 |       else | 
 | 14957 |         case $cache_file in #( | 
 | 14958 |         */* | ?:*) | 
 | 14959 | 	  mv -f confcache "$cache_file"$$ && | 
 | 14960 | 	  mv -f "$cache_file"$$ "$cache_file" ;; #( | 
 | 14961 |         *) | 
 | 14962 | 	  mv -f confcache "$cache_file" ;; | 
 | 14963 | 	esac | 
 | 14964 |       fi | 
 | 14965 |     fi | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14966 |   else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14967 |     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | 
 | 14968 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14969 |   fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14970 | fi | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14971 | rm -f confcache | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14972 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14973 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | 
 | 14974 | # Let make expand exec_prefix. | 
 | 14975 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14976 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14977 | DEFS=-DHAVE_CONFIG_H | 
 | 14978 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14979 | ac_libobjs= | 
 | 14980 | ac_ltlibobjs= | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 14981 | U= | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14982 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | 
 | 14983 |   # 1. Remove the extension, and $U if already installed. | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14984 |   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14985 |   ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14986 |   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR | 
 | 14987 |   #    will be set to the directory where LIBOBJS objects are built. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14988 |   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | 
 | 14989 |   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14990 | done | 
 | 14991 | LIBOBJS=$ac_libobjs | 
 | 14992 |  | 
 | 14993 | LTLIBOBJS=$ac_ltlibobjs | 
 | 14994 |  | 
 | 14995 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14996 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14997 |  | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 14998 | : "${CONFIG_STATUS=./config.status}" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14999 | ac_write_fail=0 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15000 | ac_clean_files_save=$ac_clean_files | 
 | 15001 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15002 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | 
 | 15003 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | 
 | 15004 | as_write_fail=0 | 
 | 15005 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15006 | #! $SHELL | 
 | 15007 | # Generated by $as_me. | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15008 | # Run this file to recreate the current configuration. | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15009 | # Compiler output produced by configure, useful for debugging | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15010 | # configure, is in config.log if it exists. | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15011 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15012 | debug=false | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15013 | ac_cs_recheck=false | 
 | 15014 | ac_cs_silent=false | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 15015 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15016 | SHELL=\${CONFIG_SHELL-$SHELL} | 
 | 15017 | export SHELL | 
 | 15018 | _ASEOF | 
 | 15019 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | 
 | 15020 | ## -------------------- ## | 
 | 15021 | ## M4sh Initialization. ## | 
 | 15022 | ## -------------------- ## | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 15023 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15024 | # Be more Bourne compatible | 
 | 15025 | DUALCASE=1; export DUALCASE # for MKS sh | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15026 | 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] | 15027 |   emulate sh | 
 | 15028 |   NULLCMD=: | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15029 |   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15030 |   # is contrary to our usage.  Disable this feature. | 
 | 15031 |   alias -g '${1+"$@"}'='"$@"' | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15032 |   setopt NO_GLOB_SUBST | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 15033 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15034 |   case `(set -o) 2>/dev/null` in #( | 
 | 15035 |   *posix*) : | 
 | 15036 |     set -o posix ;; #( | 
 | 15037 |   *) : | 
 | 15038 |      ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15039 | esac | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15040 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15041 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15042 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15043 | as_nl=' | 
 | 15044 | ' | 
 | 15045 | export as_nl | 
 | 15046 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | 
 | 15047 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | 
 | 15048 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | 
 | 15049 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | 
 | 15050 | # Prefer a ksh shell builtin over an external printf program on Solaris, | 
 | 15051 | # but without wasting forks for bash or zsh. | 
 | 15052 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | 
 | 15053 |     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | 
 | 15054 |   as_echo='print -r --' | 
 | 15055 |   as_echo_n='print -rn --' | 
 | 15056 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | 
 | 15057 |   as_echo='printf %s\n' | 
 | 15058 |   as_echo_n='printf %s' | 
 | 15059 | else | 
 | 15060 |   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | 
 | 15061 |     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | 
 | 15062 |     as_echo_n='/usr/ucb/echo -n' | 
 | 15063 |   else | 
 | 15064 |     as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | 
 | 15065 |     as_echo_n_body='eval | 
 | 15066 |       arg=$1; | 
 | 15067 |       case $arg in #( | 
 | 15068 |       *"$as_nl"*) | 
 | 15069 | 	expr "X$arg" : "X\\(.*\\)$as_nl"; | 
 | 15070 | 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | 
 | 15071 |       esac; | 
 | 15072 |       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | 
 | 15073 |     ' | 
 | 15074 |     export as_echo_n_body | 
 | 15075 |     as_echo_n='sh -c $as_echo_n_body as_echo' | 
 | 15076 |   fi | 
 | 15077 |   export as_echo_body | 
 | 15078 |   as_echo='sh -c $as_echo_body as_echo' | 
 | 15079 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15080 |  | 
 | 15081 | # The user is always right. | 
 | 15082 | if test "${PATH_SEPARATOR+set}" != set; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15083 |   PATH_SEPARATOR=: | 
 | 15084 |   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | 
 | 15085 |     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | 
 | 15086 |       PATH_SEPARATOR=';' | 
 | 15087 |   } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15088 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15089 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15090 |  | 
 | 15091 | # IFS | 
 | 15092 | # We need space, tab and new line, in precisely that order.  Quoting is | 
 | 15093 | # there to prevent editors from complaining about space-tab. | 
 | 15094 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | 
 | 15095 | # splitting by setting IFS to empty value.) | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15096 | IFS=" ""	$as_nl" | 
 | 15097 |  | 
 | 15098 | # Find who we are.  Look in the path if we contain no directory separator. | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15099 | as_myself= | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15100 | case $0 in #(( | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15101 |   *[\\/]* ) as_myself=$0 ;; | 
 | 15102 |   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15103 | for as_dir in $PATH | 
 | 15104 | do | 
 | 15105 |   IFS=$as_save_IFS | 
 | 15106 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15107 |     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | 
 | 15108 |   done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15109 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15110 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15111 |      ;; | 
 | 15112 | esac | 
 | 15113 | # We did not find ourselves, most probably we were run as `sh COMMAND' | 
 | 15114 | # in which case we are not to be found in the path. | 
 | 15115 | if test "x$as_myself" = x; then | 
 | 15116 |   as_myself=$0 | 
 | 15117 | fi | 
 | 15118 | if test ! -f "$as_myself"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15119 |   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | 
 | 15120 |   exit 1 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15121 | fi | 
 | 15122 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15123 | # Unset variables that we do not need and which cause bugs (e.g. in | 
 | 15124 | # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1" | 
 | 15125 | # suppresses any "Segmentation fault" message there.  '((' could | 
 | 15126 | # trigger a bug in pdksh 5.2.14. | 
 | 15127 | for as_var in BASH_ENV ENV MAIL MAILPATH | 
 | 15128 | do eval test x\${$as_var+set} = xset \ | 
 | 15129 |   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15130 | done | 
 | 15131 | PS1='$ ' | 
 | 15132 | PS2='> ' | 
 | 15133 | PS4='+ ' | 
 | 15134 |  | 
 | 15135 | # NLS nuisances. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15136 | LC_ALL=C | 
 | 15137 | export LC_ALL | 
 | 15138 | LANGUAGE=C | 
 | 15139 | export LANGUAGE | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15140 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15141 | # CDPATH. | 
 | 15142 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | 
 | 15143 |  | 
 | 15144 |  | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15145 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | 
 | 15146 | # ---------------------------------------- | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15147 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | 
 | 15148 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15149 | # script with STATUS, using 1 if that was 0. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15150 | as_fn_error () | 
 | 15151 | { | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15152 |   as_status=$1; test $as_status -eq 0 && as_status=1 | 
 | 15153 |   if test "$4"; then | 
 | 15154 |     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 15155 |     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15156 |   fi | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15157 |   $as_echo "$as_me: error: $2" >&2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15158 |   as_fn_exit $as_status | 
 | 15159 | } # as_fn_error | 
 | 15160 |  | 
 | 15161 |  | 
 | 15162 | # as_fn_set_status STATUS | 
 | 15163 | # ----------------------- | 
 | 15164 | # Set $? to STATUS, without forking. | 
 | 15165 | as_fn_set_status () | 
 | 15166 | { | 
 | 15167 |   return $1 | 
 | 15168 | } # as_fn_set_status | 
 | 15169 |  | 
 | 15170 | # as_fn_exit STATUS | 
 | 15171 | # ----------------- | 
 | 15172 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | 
 | 15173 | as_fn_exit () | 
 | 15174 | { | 
 | 15175 |   set +e | 
 | 15176 |   as_fn_set_status $1 | 
 | 15177 |   exit $1 | 
 | 15178 | } # as_fn_exit | 
 | 15179 |  | 
 | 15180 | # as_fn_unset VAR | 
 | 15181 | # --------------- | 
 | 15182 | # Portably unset VAR. | 
 | 15183 | as_fn_unset () | 
 | 15184 | { | 
 | 15185 |   { eval $1=; unset $1;} | 
 | 15186 | } | 
 | 15187 | as_unset=as_fn_unset | 
 | 15188 | # as_fn_append VAR VALUE | 
 | 15189 | # ---------------------- | 
 | 15190 | # Append the text in VALUE to the end of the definition contained in VAR. Take | 
 | 15191 | # advantage of any shell optimizations that allow amortized linear growth over | 
 | 15192 | # repeated appends, instead of the typical quadratic growth present in naive | 
 | 15193 | # implementations. | 
 | 15194 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | 
 | 15195 |   eval 'as_fn_append () | 
 | 15196 |   { | 
 | 15197 |     eval $1+=\$2 | 
 | 15198 |   }' | 
 | 15199 | else | 
 | 15200 |   as_fn_append () | 
 | 15201 |   { | 
 | 15202 |     eval $1=\$$1\$2 | 
 | 15203 |   } | 
 | 15204 | fi # as_fn_append | 
 | 15205 |  | 
 | 15206 | # as_fn_arith ARG... | 
 | 15207 | # ------------------ | 
 | 15208 | # Perform arithmetic evaluation on the ARGs, and store the result in the | 
 | 15209 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | 
 | 15210 | # must be portable across $(()) and expr. | 
 | 15211 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | 
 | 15212 |   eval 'as_fn_arith () | 
 | 15213 |   { | 
 | 15214 |     as_val=$(( $* )) | 
 | 15215 |   }' | 
 | 15216 | else | 
 | 15217 |   as_fn_arith () | 
 | 15218 |   { | 
 | 15219 |     as_val=`expr "$@" || test $? -eq 1` | 
 | 15220 |   } | 
 | 15221 | fi # as_fn_arith | 
 | 15222 |  | 
 | 15223 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15224 | if expr a : '\(a\)' >/dev/null 2>&1 && | 
 | 15225 |    test "X`expr 00001 : '.*\(...\)'`" = X001; then | 
 | 15226 |   as_expr=expr | 
 | 15227 | else | 
 | 15228 |   as_expr=false | 
 | 15229 | fi | 
 | 15230 |  | 
 | 15231 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | 
 | 15232 |   as_basename=basename | 
 | 15233 | else | 
 | 15234 |   as_basename=false | 
 | 15235 | fi | 
 | 15236 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15237 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | 
 | 15238 |   as_dirname=dirname | 
 | 15239 | else | 
 | 15240 |   as_dirname=false | 
 | 15241 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15242 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15243 | as_me=`$as_basename -- "$0" || | 
 | 15244 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | 
 | 15245 | 	 X"$0" : 'X\(//\)$' \| \ | 
 | 15246 | 	 X"$0" : 'X\(/\)' \| . 2>/dev/null || | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15247 | $as_echo X/"$0" | | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15248 |     sed '/^.*\/\([^/][^/]*\)\/*$/{ | 
 | 15249 | 	    s//\1/ | 
 | 15250 | 	    q | 
 | 15251 | 	  } | 
 | 15252 | 	  /^X\/\(\/\/\)$/{ | 
 | 15253 | 	    s//\1/ | 
 | 15254 | 	    q | 
 | 15255 | 	  } | 
 | 15256 | 	  /^X\/\(\/\).*/{ | 
 | 15257 | 	    s//\1/ | 
 | 15258 | 	    q | 
 | 15259 | 	  } | 
 | 15260 | 	  s/.*/./; q'` | 
 | 15261 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15262 | # Avoid depending upon Character Ranges. | 
 | 15263 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | 
 | 15264 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | 
 | 15265 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | 
 | 15266 | as_cr_digits='0123456789' | 
 | 15267 | as_cr_alnum=$as_cr_Letters$as_cr_digits | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15268 |  | 
 | 15269 | ECHO_C= ECHO_N= ECHO_T= | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15270 | case `echo -n x` in #((((( | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15271 | -n*) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15272 |   case `echo 'xy\c'` in | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15273 |   *c*) ECHO_T='	';;	# ECHO_T is single tab character. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15274 |   xy)  ECHO_C='\c';; | 
 | 15275 |   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null | 
 | 15276 |        ECHO_T='	';; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15277 |   esac;; | 
 | 15278 | *) | 
 | 15279 |   ECHO_N='-n';; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15280 | esac | 
| Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15281 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15282 | rm -f conf$$ conf$$.exe conf$$.file | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15283 | if test -d conf$$.dir; then | 
 | 15284 |   rm -f conf$$.dir/conf$$.file | 
 | 15285 | else | 
 | 15286 |   rm -f conf$$.dir | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15287 |   mkdir conf$$.dir 2>/dev/null | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15288 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15289 | if (echo >conf$$.file) 2>/dev/null; then | 
 | 15290 |   if ln -s conf$$.file conf$$ 2>/dev/null; then | 
 | 15291 |     as_ln_s='ln -s' | 
 | 15292 |     # ... but there are two gotchas: | 
 | 15293 |     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | 
 | 15294 |     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 15295 |     # In both cases, we have to default to `cp -pR'. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15296 |     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 15297 |       as_ln_s='cp -pR' | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15298 |   elif ln conf$$.file conf$$ 2>/dev/null; then | 
 | 15299 |     as_ln_s=ln | 
 | 15300 |   else | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 15301 |     as_ln_s='cp -pR' | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15302 |   fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15303 | else | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 15304 |   as_ln_s='cp -pR' | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15305 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15306 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | 
 | 15307 | rmdir conf$$.dir 2>/dev/null | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15308 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15309 |  | 
 | 15310 | # as_fn_mkdir_p | 
 | 15311 | # ------------- | 
 | 15312 | # Create "$as_dir" as a directory, including parents if necessary. | 
 | 15313 | as_fn_mkdir_p () | 
 | 15314 | { | 
 | 15315 |  | 
 | 15316 |   case $as_dir in #( | 
 | 15317 |   -*) as_dir=./$as_dir;; | 
 | 15318 |   esac | 
 | 15319 |   test -d "$as_dir" || eval $as_mkdir_p || { | 
 | 15320 |     as_dirs= | 
 | 15321 |     while :; do | 
 | 15322 |       case $as_dir in #( | 
 | 15323 |       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | 
 | 15324 |       *) as_qdir=$as_dir;; | 
 | 15325 |       esac | 
 | 15326 |       as_dirs="'$as_qdir' $as_dirs" | 
 | 15327 |       as_dir=`$as_dirname -- "$as_dir" || | 
 | 15328 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
 | 15329 | 	 X"$as_dir" : 'X\(//\)[^/]' \| \ | 
 | 15330 | 	 X"$as_dir" : 'X\(//\)$' \| \ | 
 | 15331 | 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | 
 | 15332 | $as_echo X"$as_dir" | | 
 | 15333 |     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
 | 15334 | 	    s//\1/ | 
 | 15335 | 	    q | 
 | 15336 | 	  } | 
 | 15337 | 	  /^X\(\/\/\)[^/].*/{ | 
 | 15338 | 	    s//\1/ | 
 | 15339 | 	    q | 
 | 15340 | 	  } | 
 | 15341 | 	  /^X\(\/\/\)$/{ | 
 | 15342 | 	    s//\1/ | 
 | 15343 | 	    q | 
 | 15344 | 	  } | 
 | 15345 | 	  /^X\(\/\).*/{ | 
 | 15346 | 	    s//\1/ | 
 | 15347 | 	    q | 
 | 15348 | 	  } | 
 | 15349 | 	  s/.*/./; q'` | 
 | 15350 |       test -d "$as_dir" && break | 
 | 15351 |     done | 
 | 15352 |     test -z "$as_dirs" || eval "mkdir $as_dirs" | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15353 |   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15354 |  | 
 | 15355 |  | 
 | 15356 | } # as_fn_mkdir_p | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15357 | if mkdir -p . 2>/dev/null; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15358 |   as_mkdir_p='mkdir -p "$as_dir"' | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15359 | else | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15360 |   test -d ./-p && rmdir ./-p | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15361 |   as_mkdir_p=false | 
 | 15362 | fi | 
 | 15363 |  | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 15364 |  | 
 | 15365 | # as_fn_executable_p FILE | 
 | 15366 | # ----------------------- | 
 | 15367 | # Test if FILE is an executable regular file. | 
 | 15368 | as_fn_executable_p () | 
 | 15369 | { | 
 | 15370 |   test -f "$1" && test -x "$1" | 
 | 15371 | } # as_fn_executable_p | 
 | 15372 | as_test_x='test -x' | 
 | 15373 | as_executable_p=as_fn_executable_p | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15374 |  | 
 | 15375 | # Sed expression to map a string onto a valid CPP name. | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15376 | 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] | 15377 |  | 
 | 15378 | # Sed expression to map a string onto a valid variable name. | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15379 | 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] | 15380 |  | 
 | 15381 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15382 | exec 6>&1 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15383 | ## ----------------------------------- ## | 
 | 15384 | ## Main body of $CONFIG_STATUS script. ## | 
 | 15385 | ## ----------------------------------- ## | 
 | 15386 | _ASEOF | 
 | 15387 | 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] | 15388 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15389 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
 | 15390 | # 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] | 15391 | # report actual input values of CONFIG_FILES etc. instead of their | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15392 | # values after options handling. | 
 | 15393 | ac_log=" | 
| Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 15394 | This file was extended by python $as_me 2.7, which was | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 15395 | generated by GNU Autoconf 2.69.  Invocation command line was | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15396 |  | 
 | 15397 |   CONFIG_FILES    = $CONFIG_FILES | 
 | 15398 |   CONFIG_HEADERS  = $CONFIG_HEADERS | 
 | 15399 |   CONFIG_LINKS    = $CONFIG_LINKS | 
 | 15400 |   CONFIG_COMMANDS = $CONFIG_COMMANDS | 
 | 15401 |   $ $0 $@ | 
 | 15402 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15403 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | 
 | 15404 | " | 
 | 15405 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15406 | _ACEOF | 
 | 15407 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15408 | case $ac_config_files in *" | 
 | 15409 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | 
 | 15410 | esac | 
 | 15411 |  | 
 | 15412 | case $ac_config_headers in *" | 
 | 15413 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | 
 | 15414 | esac | 
 | 15415 |  | 
 | 15416 |  | 
 | 15417 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15418 | # Files that config.status was made for. | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15419 | config_files="$ac_config_files" | 
 | 15420 | config_headers="$ac_config_headers" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15421 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15422 | _ACEOF | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15423 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15424 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15425 | ac_cs_usage="\ | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15426 | \`$as_me' instantiates files and other configuration actions | 
 | 15427 | from templates according to the current configuration.  Unless the files | 
 | 15428 | 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] | 15429 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15430 | Usage: $0 [OPTION]... [TAG]... | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15431 |  | 
 | 15432 |   -h, --help       print this help, then exit | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15433 |   -V, --version    print version number and configuration settings, then exit | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15434 |       --config     print configuration, then exit | 
 | 15435 |   -q, --quiet, --silent | 
 | 15436 |                    do not print progress messages | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15437 |   -d, --debug      don't remove temporary files | 
 | 15438 |       --recheck    update $as_me by reconfiguring in the same conditions | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15439 |       --file=FILE[:TEMPLATE] | 
 | 15440 |                    instantiate the configuration file FILE | 
 | 15441 |       --header=FILE[:TEMPLATE] | 
 | 15442 |                    instantiate the configuration header FILE | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15443 |  | 
 | 15444 | Configuration files: | 
 | 15445 | $config_files | 
 | 15446 |  | 
 | 15447 | Configuration headers: | 
 | 15448 | $config_headers | 
 | 15449 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15450 | Report bugs to <http://bugs.python.org/>." | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 15451 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15452 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15453 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
 | 15454 | 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] | 15455 | ac_cs_version="\\ | 
| Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 15456 | python config.status 2.7 | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 15457 | configured by $0, generated by GNU Autoconf 2.69, | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15458 |   with options \\"\$ac_cs_config\\" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15459 |  | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 15460 | Copyright (C) 2012 Free Software Foundation, Inc. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15461 | This config.status script is free software; the Free Software Foundation | 
 | 15462 | gives unlimited permission to copy, distribute and modify it." | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15463 |  | 
 | 15464 | ac_pwd='$ac_pwd' | 
 | 15465 | srcdir='$srcdir' | 
 | 15466 | INSTALL='$INSTALL' | 
| Trent Nelson | f6407a1 | 2012-08-30 14:56:13 +0000 | [diff] [blame] | 15467 | MKDIR_P='$MKDIR_P' | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15468 | test -n "\$AWK" || AWK=awk | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15469 | _ACEOF | 
 | 15470 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15471 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
 | 15472 | # 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] | 15473 | ac_need_defaults=: | 
 | 15474 | while test $# != 0 | 
 | 15475 | do | 
 | 15476 |   case $1 in | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15477 |   --*=?*) | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15478 |     ac_option=`expr "X$1" : 'X\([^=]*\)='` | 
 | 15479 |     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15480 |     ac_shift=: | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15481 |     ;; | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15482 |   --*=) | 
 | 15483 |     ac_option=`expr "X$1" : 'X\([^=]*\)='` | 
 | 15484 |     ac_optarg= | 
 | 15485 |     ac_shift=: | 
 | 15486 |     ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15487 |   *) | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15488 |     ac_option=$1 | 
 | 15489 |     ac_optarg=$2 | 
 | 15490 |     ac_shift=shift | 
 | 15491 |     ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15492 |   esac | 
 | 15493 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15494 |   case $ac_option in | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15495 |   # Handling of the options. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15496 |   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | 
 | 15497 |     ac_cs_recheck=: ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15498 |   --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15499 |     $as_echo "$ac_cs_version"; exit ;; | 
 | 15500 |   --config | --confi | --conf | --con | --co | --c ) | 
 | 15501 |     $as_echo "$ac_cs_config"; exit ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15502 |   --debug | --debu | --deb | --de | --d | -d ) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15503 |     debug=: ;; | 
 | 15504 |   --file | --fil | --fi | --f ) | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15505 |     $ac_shift | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15506 |     case $ac_optarg in | 
 | 15507 |     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15508 |     '') as_fn_error $? "missing file argument" ;; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15509 |     esac | 
 | 15510 |     as_fn_append CONFIG_FILES " '$ac_optarg'" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15511 |     ac_need_defaults=false;; | 
 | 15512 |   --header | --heade | --head | --hea ) | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15513 |     $ac_shift | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15514 |     case $ac_optarg in | 
 | 15515 |     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | 
 | 15516 |     esac | 
 | 15517 |     as_fn_append CONFIG_HEADERS " '$ac_optarg'" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15518 |     ac_need_defaults=false;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15519 |   --he | --h) | 
 | 15520 |     # Conflict between --help and --header | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15521 |     as_fn_error $? "ambiguous option: \`$1' | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15522 | Try \`$0 --help' for more information.";; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15523 |   --help | --hel | -h ) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15524 |     $as_echo "$ac_cs_usage"; exit ;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15525 |   -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
 | 15526 |   | -silent | --silent | --silen | --sile | --sil | --si | --s) | 
 | 15527 |     ac_cs_silent=: ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15528 |  | 
 | 15529 |   # This is an error. | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15530 |   -*) as_fn_error $? "unrecognized option: \`$1' | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15531 | Try \`$0 --help' for more information." ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15532 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15533 |   *) as_fn_append ac_config_targets " $1" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15534 |      ac_need_defaults=false ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15535 |  | 
 | 15536 |   esac | 
 | 15537 |   shift | 
 | 15538 | done | 
 | 15539 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15540 | ac_configure_extra_args= | 
 | 15541 |  | 
 | 15542 | if $ac_cs_silent; then | 
 | 15543 |   exec 6>/dev/null | 
 | 15544 |   ac_configure_extra_args="$ac_configure_extra_args --silent" | 
 | 15545 | fi | 
 | 15546 |  | 
 | 15547 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15548 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15549 | if \$ac_cs_recheck; then | 
| Charles-François Natali | be2b907 | 2013-01-08 19:47:00 +0100 | [diff] [blame] | 15550 |   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15551 |   shift | 
 | 15552 |   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | 
 | 15553 |   CONFIG_SHELL='$SHELL' | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15554 |   export CONFIG_SHELL | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15555 |   exec "\$@" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15556 | fi | 
 | 15557 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15558 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15559 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15560 | exec 5>>config.log | 
 | 15561 | { | 
 | 15562 |   echo | 
 | 15563 |   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | 
 | 15564 | ## Running $as_me. ## | 
 | 15565 | _ASBOX | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15566 |   $as_echo "$ac_log" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15567 | } >&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15568 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15569 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15570 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15571 | _ACEOF | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15572 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15573 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15574 |  | 
 | 15575 | # Handling of arguments. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15576 | for ac_config_target in $ac_config_targets | 
 | 15577 | do | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15578 |   case $ac_config_target in | 
 | 15579 |     "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; | 
 | 15580 |     "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;; | 
 | 15581 |     "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;; | 
 | 15582 |     "Mac/IDLE/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/IDLE/Makefile" ;; | 
| Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 15583 |     "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;; | 
 | 15584 |     "Mac/Resources/app/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/app/Info.plist" ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15585 |     "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; | 
 | 15586 |     "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;; | 
| Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 15587 |     "Misc/python.pc") CONFIG_FILES="$CONFIG_FILES Misc/python.pc" ;; | 
| Antoine Pitrou | aabdceb | 2010-09-10 20:03:17 +0000 | [diff] [blame] | 15588 |     "Modules/ld_so_aix") CONFIG_FILES="$CONFIG_FILES Modules/ld_so_aix" ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15589 |  | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15590 |   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15591 |   esac | 
 | 15592 | done | 
 | 15593 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15594 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15595 | # If the user did not use the arguments to specify the items to instantiate, | 
 | 15596 | # then the envvar interface is used.  Set only those that are not. | 
 | 15597 | # We use the long form for the default assignment because of an extremely | 
 | 15598 | # bizarre bug on SunOS 4.1.3. | 
 | 15599 | if $ac_need_defaults; then | 
 | 15600 |   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | 
 | 15601 |   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | 
 | 15602 | fi | 
 | 15603 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15604 | # Have a temporary directory for convenience.  Make it in the build tree | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15605 | # 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] | 15606 | # creating and moving files from /tmp can sometimes cause problems. | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15607 | # Hook for its removal unless debugging. | 
 | 15608 | # Note that there is a small window in which the directory will not be cleaned: | 
 | 15609 | # 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] | 15610 | $debug || | 
 | 15611 | { | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15612 |   tmp= ac_tmp= | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15613 |   trap 'exit_status=$? | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15614 |   : "${ac_tmp:=$tmp}" | 
 | 15615 |   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15616 | ' 0 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15617 |   trap 'as_fn_exit 1' 1 2 13 15 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15618 | } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15619 | # Create a (secure) tmp directory for tmp files. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15620 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15621 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15622 |   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15623 |   test -d "$tmp" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15624 | }  || | 
 | 15625 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15626 |   tmp=./conf$$-$RANDOM | 
 | 15627 |   (umask 077 && mkdir "$tmp") | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15628 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15629 | ac_tmp=$tmp | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15630 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15631 | # Set up the scripts for CONFIG_FILES section. | 
 | 15632 | # No need to generate them if there are no CONFIG_FILES. | 
 | 15633 | # This happens for instance with `./config.status config.h'. | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15634 | if test -n "$CONFIG_FILES"; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15635 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15636 |  | 
 | 15637 | ac_cr=`echo X | tr X '\015'` | 
 | 15638 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | 
 | 15639 | # But we know of no other shell where ac_cr would be empty at this | 
 | 15640 | # point, so we can use a bashism as a fallback. | 
 | 15641 | if test "x$ac_cr" = x; then | 
 | 15642 |   eval ac_cr=\$\'\\r\' | 
 | 15643 | fi | 
 | 15644 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | 
 | 15645 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15646 |   ac_cs_awk_cr='\\r' | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15647 | else | 
 | 15648 |   ac_cs_awk_cr=$ac_cr | 
 | 15649 | fi | 
 | 15650 |  | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15651 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15652 | _ACEOF | 
 | 15653 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15654 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15655 | { | 
 | 15656 |   echo "cat >conf$$subs.awk <<_ACEOF" && | 
 | 15657 |   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | 
 | 15658 |   echo "_ACEOF" | 
 | 15659 | } >conf$$subs.sh || | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15660 |   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | 
 | 15661 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15662 | ac_delim='%!_!# ' | 
 | 15663 | for ac_last_try in false false false false false :; do | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15664 |   . ./conf$$subs.sh || | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15665 |     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15666 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15667 |   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | 
 | 15668 |   if test $ac_delim_n = $ac_delim_num; then | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15669 |     break | 
 | 15670 |   elif $ac_last_try; then | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15671 |     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15672 |   else | 
 | 15673 |     ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15674 |   fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15675 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15676 | rm -f conf$$subs.sh | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15677 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15678 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15679 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15680 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15681 | sed -n ' | 
 | 15682 | h | 
 | 15683 | s/^/S["/; s/!.*/"]=/ | 
 | 15684 | p | 
 | 15685 | g | 
 | 15686 | s/^[^!]*!// | 
 | 15687 | :repl | 
 | 15688 | t repl | 
 | 15689 | s/'"$ac_delim"'$// | 
 | 15690 | t delim | 
 | 15691 | :nl | 
 | 15692 | h | 
 | 15693 | s/\(.\{148\}\)..*/\1/ | 
 | 15694 | t more1 | 
 | 15695 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | 
 | 15696 | p | 
 | 15697 | n | 
 | 15698 | b repl | 
 | 15699 | :more1 | 
 | 15700 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | 
 | 15701 | p | 
 | 15702 | g | 
 | 15703 | s/.\{148\}// | 
 | 15704 | t nl | 
 | 15705 | :delim | 
 | 15706 | h | 
 | 15707 | s/\(.\{148\}\)..*/\1/ | 
 | 15708 | t more2 | 
 | 15709 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | 
 | 15710 | p | 
 | 15711 | b | 
 | 15712 | :more2 | 
 | 15713 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | 
 | 15714 | p | 
 | 15715 | g | 
 | 15716 | s/.\{148\}// | 
 | 15717 | t delim | 
 | 15718 | ' <conf$$subs.awk | sed ' | 
 | 15719 | /^[^""]/{ | 
 | 15720 |   N | 
 | 15721 |   s/\n// | 
 | 15722 | } | 
 | 15723 | ' >>$CONFIG_STATUS || ac_write_fail=1 | 
 | 15724 | rm -f conf$$subs.awk | 
 | 15725 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
 | 15726 | _ACAWK | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15727 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15728 |   for (key in S) S_is_set[key] = 1 | 
 | 15729 |   FS = "" | 
 | 15730 |  | 
 | 15731 | } | 
 | 15732 | { | 
 | 15733 |   line = $ 0 | 
 | 15734 |   nfields = split(line, field, "@") | 
 | 15735 |   substed = 0 | 
 | 15736 |   len = length(field[1]) | 
 | 15737 |   for (i = 2; i < nfields; i++) { | 
 | 15738 |     key = field[i] | 
 | 15739 |     keylen = length(key) | 
 | 15740 |     if (S_is_set[key]) { | 
 | 15741 |       value = S[key] | 
 | 15742 |       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | 
 | 15743 |       len += length(value) + length(field[++i]) | 
 | 15744 |       substed = 1 | 
 | 15745 |     } else | 
 | 15746 |       len += 1 + keylen | 
 | 15747 |   } | 
 | 15748 |  | 
 | 15749 |   print line | 
 | 15750 | } | 
 | 15751 |  | 
 | 15752 | _ACAWK | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15753 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15754 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
 | 15755 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | 
 | 15756 |   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | 
 | 15757 | else | 
 | 15758 |   cat | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15759 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15760 |   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | 
| Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15761 | _ACEOF | 
 | 15762 |  | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15763 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), | 
 | 15764 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15765 | # trailing colons and then remove the whole line if VPATH becomes empty | 
 | 15766 | # (actually we leave an empty line to preserve line numbers). | 
 | 15767 | if test "x$srcdir" = x.; then | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15768 |   ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{ | 
 | 15769 | h | 
 | 15770 | s/// | 
 | 15771 | s/^/:/ | 
 | 15772 | s/[	 ]*$/:/ | 
 | 15773 | s/:\$(srcdir):/:/g | 
 | 15774 | s/:\${srcdir}:/:/g | 
 | 15775 | s/:@srcdir@:/:/g | 
 | 15776 | s/^:*// | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15777 | s/:*$// | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15778 | x | 
 | 15779 | s/\(=[	 ]*\).*/\1/ | 
 | 15780 | G | 
 | 15781 | s/\n// | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15782 | s/^[^=]*=[	 ]*$// | 
 | 15783 | }' | 
 | 15784 | fi | 
 | 15785 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15786 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15787 | fi # test -n "$CONFIG_FILES" | 
 | 15788 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15789 | # Set up the scripts for CONFIG_HEADERS section. | 
 | 15790 | # No need to generate them if there are no CONFIG_HEADERS. | 
 | 15791 | # This happens for instance with `./config.status Makefile'. | 
 | 15792 | if test -n "$CONFIG_HEADERS"; then | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15793 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15794 | BEGIN { | 
 | 15795 | _ACEOF | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15796 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15797 | # Transform confdefs.h into an awk script `defines.awk', embedded as | 
 | 15798 | # here-document in config.status, that substitutes the proper values into | 
 | 15799 | # config.h.in to produce config.h. | 
 | 15800 |  | 
 | 15801 | # Create a delimiter string that does not exist in confdefs.h, to ease | 
 | 15802 | # handling of long lines. | 
 | 15803 | ac_delim='%!_!# ' | 
 | 15804 | for ac_last_try in false false :; do | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15805 |   ac_tt=`sed -n "/$ac_delim/p" confdefs.h` | 
 | 15806 |   if test -z "$ac_tt"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15807 |     break | 
 | 15808 |   elif $ac_last_try; then | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15809 |     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15810 |   else | 
 | 15811 |     ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | 
 | 15812 |   fi | 
 | 15813 | done | 
 | 15814 |  | 
 | 15815 | # For the awk script, D is an array of macro values keyed by name, | 
 | 15816 | # likewise P contains macro parameters if any.  Preserve backslash | 
 | 15817 | # newline sequences. | 
 | 15818 |  | 
 | 15819 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | 
 | 15820 | sed -n ' | 
 | 15821 | s/.\{148\}/&'"$ac_delim"'/g | 
 | 15822 | t rset | 
 | 15823 | :rset | 
 | 15824 | s/^[	 ]*#[	 ]*define[	 ][	 ]*/ / | 
 | 15825 | t def | 
 | 15826 | d | 
 | 15827 | :def | 
 | 15828 | s/\\$// | 
 | 15829 | t bsnl | 
 | 15830 | s/["\\]/\\&/g | 
 | 15831 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\ | 
 | 15832 | D["\1"]=" \3"/p | 
 | 15833 | s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p | 
 | 15834 | d | 
 | 15835 | :bsnl | 
 | 15836 | s/["\\]/\\&/g | 
 | 15837 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\ | 
 | 15838 | D["\1"]=" \3\\\\\\n"\\/p | 
 | 15839 | t cont | 
 | 15840 | s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | 
 | 15841 | t cont | 
 | 15842 | d | 
 | 15843 | :cont | 
 | 15844 | n | 
 | 15845 | s/.\{148\}/&'"$ac_delim"'/g | 
 | 15846 | t clear | 
 | 15847 | :clear | 
 | 15848 | s/\\$// | 
 | 15849 | t bsnlc | 
 | 15850 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | 
 | 15851 | d | 
 | 15852 | :bsnlc | 
 | 15853 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | 
 | 15854 | b cont | 
 | 15855 | ' <confdefs.h | sed ' | 
 | 15856 | s/'"$ac_delim"'/"\\\ | 
 | 15857 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | 
 | 15858 |  | 
 | 15859 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
 | 15860 |   for (key in D) D_is_set[key] = 1 | 
 | 15861 |   FS = "" | 
 | 15862 | } | 
 | 15863 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | 
 | 15864 |   line = \$ 0 | 
 | 15865 |   split(line, arg, " ") | 
 | 15866 |   if (arg[1] == "#") { | 
 | 15867 |     defundef = arg[2] | 
 | 15868 |     mac1 = arg[3] | 
 | 15869 |   } else { | 
 | 15870 |     defundef = substr(arg[1], 2) | 
 | 15871 |     mac1 = arg[2] | 
 | 15872 |   } | 
 | 15873 |   split(mac1, mac2, "(") #) | 
 | 15874 |   macro = mac2[1] | 
 | 15875 |   prefix = substr(line, 1, index(line, defundef) - 1) | 
 | 15876 |   if (D_is_set[macro]) { | 
 | 15877 |     # Preserve the white space surrounding the "#". | 
 | 15878 |     print prefix "define", macro P[macro] D[macro] | 
 | 15879 |     next | 
 | 15880 |   } else { | 
 | 15881 |     # Replace #undef with comments.  This is necessary, for example, | 
 | 15882 |     # in the case of _POSIX_SOURCE, which is predefined and required | 
 | 15883 |     # on some systems where configure will not decide to define it. | 
 | 15884 |     if (defundef == "undef") { | 
 | 15885 |       print "/*", prefix defundef, macro, "*/" | 
 | 15886 |       next | 
 | 15887 |     } | 
 | 15888 |   } | 
 | 15889 | } | 
 | 15890 | { print } | 
 | 15891 | _ACAWK | 
 | 15892 | _ACEOF | 
 | 15893 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15894 |   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15895 | fi # test -n "$CONFIG_HEADERS" | 
 | 15896 |  | 
 | 15897 |  | 
 | 15898 | eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    " | 
 | 15899 | shift | 
 | 15900 | for ac_tag | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15901 | do | 
 | 15902 |   case $ac_tag in | 
 | 15903 |   :[FHLC]) ac_mode=$ac_tag; continue;; | 
 | 15904 |   esac | 
 | 15905 |   case $ac_mode$ac_tag in | 
 | 15906 |   :[FHL]*:*);; | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15907 |   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15908 |   :[FH]-) ac_tag=-:-;; | 
 | 15909 |   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | 
 | 15910 |   esac | 
 | 15911 |   ac_save_IFS=$IFS | 
 | 15912 |   IFS=: | 
 | 15913 |   set x $ac_tag | 
 | 15914 |   IFS=$ac_save_IFS | 
 | 15915 |   shift | 
 | 15916 |   ac_file=$1 | 
 | 15917 |   shift | 
 | 15918 |  | 
 | 15919 |   case $ac_mode in | 
 | 15920 |   :L) ac_source=$1;; | 
 | 15921 |   :[FH]) | 
 | 15922 |     ac_file_inputs= | 
 | 15923 |     for ac_f | 
 | 15924 |     do | 
 | 15925 |       case $ac_f in | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15926 |       -) ac_f="$ac_tmp/stdin";; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15927 |       *) # Look for the file first in the build tree, then in the source tree | 
 | 15928 | 	 # (if the path is not absolute).  The absolute path cannot be DOS-style, | 
 | 15929 | 	 # because $ac_f cannot contain `:'. | 
 | 15930 | 	 test -f "$ac_f" || | 
 | 15931 | 	   case $ac_f in | 
 | 15932 | 	   [\\/$]*) false;; | 
 | 15933 | 	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | 
 | 15934 | 	   esac || | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15935 | 	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15936 |       esac | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15937 |       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | 
 | 15938 |       as_fn_append ac_file_inputs " '$ac_f'" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15939 |     done | 
 | 15940 |  | 
 | 15941 |     # Let's still pretend it is `configure' which instantiates (i.e., don't | 
 | 15942 |     # use $as_me), people would be surprised to read: | 
 | 15943 |     #    /* config.h.  Generated by config.status.  */ | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15944 |     configure_input='Generated from '` | 
 | 15945 | 	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | 
 | 15946 | 	`' by configure.' | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15947 |     if test x"$ac_file" != x-; then | 
 | 15948 |       configure_input="$ac_file.  $configure_input" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15949 |       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | 
 | 15950 | $as_echo "$as_me: creating $ac_file" >&6;} | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15951 |     fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15952 |     # Neutralize special characters interpreted by sed in replacement strings. | 
 | 15953 |     case $configure_input in #( | 
 | 15954 |     *\&* | *\|* | *\\* ) | 
 | 15955 |        ac_sed_conf_input=`$as_echo "$configure_input" | | 
 | 15956 |        sed 's/[\\\\&|]/\\\\&/g'`;; #( | 
 | 15957 |     *) ac_sed_conf_input=$configure_input;; | 
 | 15958 |     esac | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15959 |  | 
 | 15960 |     case $ac_tag in | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 15961 |     *:-:* | *:-) cat >"$ac_tmp/stdin" \ | 
 | 15962 |       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15963 |     esac | 
 | 15964 |     ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15965 |   esac | 
 | 15966 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15967 |   ac_dir=`$as_dirname -- "$ac_file" || | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15968 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15969 | 	 X"$ac_file" : 'X\(//\)[^/]' \| \ | 
 | 15970 | 	 X"$ac_file" : 'X\(//\)$' \| \ | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15971 | 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15972 | $as_echo X"$ac_file" | | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15973 |     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
 | 15974 | 	    s//\1/ | 
 | 15975 | 	    q | 
 | 15976 | 	  } | 
 | 15977 | 	  /^X\(\/\/\)[^/].*/{ | 
 | 15978 | 	    s//\1/ | 
 | 15979 | 	    q | 
 | 15980 | 	  } | 
 | 15981 | 	  /^X\(\/\/\)$/{ | 
 | 15982 | 	    s//\1/ | 
 | 15983 | 	    q | 
 | 15984 | 	  } | 
 | 15985 | 	  /^X\(\/\).*/{ | 
 | 15986 | 	    s//\1/ | 
 | 15987 | 	    q | 
 | 15988 | 	  } | 
 | 15989 | 	  s/.*/./; q'` | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15990 |   as_dir="$ac_dir"; as_fn_mkdir_p | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15991 |   ac_builddir=. | 
 | 15992 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15993 | case "$ac_dir" in | 
 | 15994 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
 | 15995 | *) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15996 |   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15997 |   # A ".." for each directory in $ac_dir_suffix. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15998 |   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15999 |   case $ac_top_builddir_sub in | 
 | 16000 |   "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
 | 16001 |   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;; | 
 | 16002 |   esac ;; | 
 | 16003 | esac | 
 | 16004 | ac_abs_top_builddir=$ac_pwd | 
 | 16005 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | 
 | 16006 | # for backward compatibility: | 
 | 16007 | ac_top_builddir=$ac_top_build_prefix | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16008 |  | 
 | 16009 | case $srcdir in | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16010 |   .)  # We are building in place. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16011 |     ac_srcdir=. | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16012 |     ac_top_srcdir=$ac_top_builddir_sub | 
 | 16013 |     ac_abs_top_srcdir=$ac_pwd ;; | 
 | 16014 |   [\\/]* | ?:[\\/]* )  # Absolute name. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16015 |     ac_srcdir=$srcdir$ac_dir_suffix; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16016 |     ac_top_srcdir=$srcdir | 
 | 16017 |     ac_abs_top_srcdir=$srcdir ;; | 
 | 16018 |   *) # Relative name. | 
 | 16019 |     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | 
 | 16020 |     ac_top_srcdir=$ac_top_build_prefix$srcdir | 
 | 16021 |     ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16022 | esac | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16023 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16024 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16025 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16026 |   case $ac_mode in | 
 | 16027 |   :F) | 
 | 16028 |   # | 
 | 16029 |   # CONFIG_FILE | 
 | 16030 |   # | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16031 |  | 
 | 16032 |   case $INSTALL in | 
 | 16033 |   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16034 |   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16035 |   esac | 
| Trent Nelson | f6407a1 | 2012-08-30 14:56:13 +0000 | [diff] [blame] | 16036 |   ac_MKDIR_P=$MKDIR_P | 
 | 16037 |   case $MKDIR_P in | 
 | 16038 |   [\\/$]* | ?:[\\/]* ) ;; | 
 | 16039 |   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | 
 | 16040 |   esac | 
| Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 16041 | _ACEOF | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16042 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 16043 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16044 | # If the template does not know about datarootdir, expand it. | 
 | 16045 | # FIXME: This hack should be removed a few years after 2.60. | 
 | 16046 | ac_datarootdir_hack=; ac_datarootdir_seen= | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 16047 | ac_sed_dataroot=' | 
 | 16048 | /datarootdir/ { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16049 |   p | 
 | 16050 |   q | 
 | 16051 | } | 
 | 16052 | /@datadir@/p | 
 | 16053 | /@docdir@/p | 
 | 16054 | /@infodir@/p | 
 | 16055 | /@localedir@/p | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 16056 | /@mandir@/p' | 
 | 16057 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16058 | *datarootdir*) ac_datarootdir_seen=yes;; | 
 | 16059 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 16060 |   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | 
 | 16061 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16062 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 16063 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16064 |   ac_datarootdir_hack=' | 
 | 16065 |   s&@datadir@&$datadir&g | 
 | 16066 |   s&@docdir@&$docdir&g | 
 | 16067 |   s&@infodir@&$infodir&g | 
 | 16068 |   s&@localedir@&$localedir&g | 
 | 16069 |   s&@mandir@&$mandir&g | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 16070 |   s&\\\${datarootdir}&$datarootdir&g' ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16071 | esac | 
 | 16072 | _ACEOF | 
 | 16073 |  | 
 | 16074 | # Neutralize VPATH when `$srcdir' = `.'. | 
 | 16075 | # Shell code in configure.ac might set extrasub. | 
 | 16076 | # FIXME: do we really want to maintain this feature? | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 16077 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
 | 16078 | ac_sed_extra="$ac_vpsub | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16079 | $extrasub | 
 | 16080 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 16081 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16082 | :t | 
 | 16083 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 16084 | s|@configure_input@|$ac_sed_conf_input|;t t | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16085 | s&@top_builddir@&$ac_top_builddir_sub&;t t | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 16086 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16087 | s&@srcdir@&$ac_srcdir&;t t | 
 | 16088 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | 
 | 16089 | s&@top_srcdir@&$ac_top_srcdir&;t t | 
 | 16090 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | 
 | 16091 | s&@builddir@&$ac_builddir&;t t | 
 | 16092 | s&@abs_builddir@&$ac_abs_builddir&;t t | 
 | 16093 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | 
 | 16094 | s&@INSTALL@&$ac_INSTALL&;t t | 
| Trent Nelson | f6407a1 | 2012-08-30 14:56:13 +0000 | [diff] [blame] | 16095 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16096 | $ac_datarootdir_hack | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 16097 | " | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 16098 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ | 
 | 16099 |   >$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] | 16100 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16101 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 16102 |   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && | 
 | 16103 |   { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \ | 
 | 16104 |       "$ac_tmp/out"`; test -z "$ac_out"; } && | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 16105 |   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 16106 | which seems to be undefined.  Please make sure it is defined" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 16107 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 16108 | which seems to be undefined.  Please make sure it is defined" >&2;} | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16109 |  | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 16110 |   rm -f "$ac_tmp/stdin" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16111 |   case $ac_file in | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 16112 |   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; | 
 | 16113 |   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 16114 |   esac \ | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 16115 |   || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16116 |  ;; | 
 | 16117 |   :H) | 
 | 16118 |   # | 
 | 16119 |   # CONFIG_HEADER | 
 | 16120 |   # | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16121 |   if test x"$ac_file" != x-; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 16122 |     { | 
 | 16123 |       $as_echo "/* $configure_input  */" \ | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 16124 |       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" | 
 | 16125 |     } >"$ac_tmp/config.h" \ | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 16126 |       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 16127 |     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 16128 |       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | 
 | 16129 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16130 |     else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 16131 |       rm -f "$ac_file" | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 16132 |       mv "$ac_tmp/config.h" "$ac_file" \ | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 16133 | 	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16134 |     fi | 
 | 16135 |   else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 16136 |     $as_echo "/* $configure_input  */" \ | 
| Matthias Klose | 3cef2a9 | 2012-03-14 23:39:33 +0100 | [diff] [blame] | 16137 |       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 16138 |       || as_fn_error $? "could not create -" "$LINENO" 5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16139 |   fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16140 |  ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16141 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16142 |  | 
 | 16143 |   esac | 
 | 16144 |  | 
| Antoine Pitrou | aabdceb | 2010-09-10 20:03:17 +0000 | [diff] [blame] | 16145 |  | 
 | 16146 |   case $ac_file$ac_mode in | 
 | 16147 |     "Modules/ld_so_aix":F) chmod +x Modules/ld_so_aix ;; | 
 | 16148 |  | 
 | 16149 |   esac | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16150 | done # for ac_tag | 
 | 16151 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16152 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 16153 | as_fn_exit 0 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16154 | _ACEOF | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16155 | ac_clean_files=$ac_clean_files_save | 
 | 16156 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 16157 | test $ac_write_fail = 0 || | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 16158 |   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 16159 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16160 |  | 
 | 16161 | # configure is writing to config.log, and then calls config.status. | 
 | 16162 | # config.status does its own redirection, appending to config.log. | 
 | 16163 | # Unfortunately, on DOS this fails, as config.log is still kept open | 
 | 16164 | # by configure, so config.status won't be able to write to it; its | 
 | 16165 | # output is simply discarded.  So we exec the FD to /dev/null, | 
 | 16166 | # effectively closing config.log, so it can be properly (re)opened and | 
 | 16167 | # appended to by config.status.  When coming back to configure, we | 
 | 16168 | # need to make the FD available again. | 
 | 16169 | if test "$no_create" != yes; then | 
 | 16170 |   ac_cs_success=: | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16171 |   ac_config_status_args= | 
 | 16172 |   test "$silent" = yes && | 
 | 16173 |     ac_config_status_args="$ac_config_status_args --quiet" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16174 |   exec 5>/dev/null | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16175 |   $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] | 16176 |   exec 5>>config.log | 
 | 16177 |   # Use ||, not &&, to avoid exiting from the if with $? = 1, which | 
 | 16178 |   # would make configure fail if this is the last instruction. | 
| Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 16179 |   $ac_cs_success || as_fn_exit 1 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 16180 | fi | 
 | 16181 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | 
 | 16182 |   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | 
 | 16183 | $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] | 16184 | fi | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16185 |  | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 16186 |  | 
| Martin v. Löwis | f7afe95 | 2006-04-14 15:16:15 +0000 | [diff] [blame] | 16187 | echo "creating Modules/Setup" | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 16188 | if test ! -f Modules/Setup | 
 | 16189 | then | 
 | 16190 | 	cp $srcdir/Modules/Setup.dist Modules/Setup | 
 | 16191 | fi | 
 | 16192 |  | 
| Martin v. Löwis | f7afe95 | 2006-04-14 15:16:15 +0000 | [diff] [blame] | 16193 | echo "creating Modules/Setup.local" | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 16194 | if test ! -f Modules/Setup.local | 
 | 16195 | then | 
 | 16196 | 	echo "# Edit this file for local setup changes" >Modules/Setup.local | 
 | 16197 | fi | 
 | 16198 |  | 
 | 16199 | echo "creating Makefile" | 
 | 16200 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ | 
 | 16201 | 			-s Modules Modules/Setup.config \ | 
| Neil Schemenauer | f8b71c5 | 2001-04-21 17:41:16 +0000 | [diff] [blame] | 16202 | 			Modules/Setup.local Modules/Setup | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 16203 |  | 
 | 16204 | case $ac_sys_system in | 
 | 16205 | BeOS) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 16206 |         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 16207 |  | 
 | 16208 |   Support for BeOS is deprecated as of Python 2.6. | 
 | 16209 |   See PEP 11 for the gory details. | 
 | 16210 |   " >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 16211 | $as_echo "$as_me: WARNING: | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 16212 |  | 
 | 16213 |   Support for BeOS is deprecated as of Python 2.6. | 
 | 16214 |   See PEP 11 for the gory details. | 
 | 16215 |   " >&2;} | 
 | 16216 |   ;; | 
 | 16217 | *) ;; | 
 | 16218 | esac | 
 | 16219 |  | 
| Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 16220 | mv config.c Modules |